@treasuredata/tdx 2026.6.2 → 2026.6.4

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 (235) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-command.js.map +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/delivery-command.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-campaign-pull-command.js +1 -1
  25. package/dist/commands/engage-campaign-push-command.js +1 -1
  26. package/dist/commands/engage-campaign-validate-command.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/engage-template-pull-command.js +1 -1
  29. package/dist/commands/engage-template-push-command.js +1 -1
  30. package/dist/commands/engage-template-validate-command.js +1 -1
  31. package/dist/commands/job-command.js +1 -1
  32. package/dist/commands/journey-command.js +1 -1
  33. package/dist/commands/journey-validate-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/mcp-command.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/policy-command.js +1 -1
  38. package/dist/commands/profile-command.js +1 -1
  39. package/dist/commands/profiles-command.js +1 -1
  40. package/dist/commands/query-command.js +1 -1
  41. package/dist/commands/schedule-command.js +1 -1
  42. package/dist/commands/segment-command.js +1 -1
  43. package/dist/commands/segment-create-command.js +1 -1
  44. package/dist/commands/segment-fields-command.js +1 -1
  45. package/dist/commands/segment-pull-command.js +1 -1
  46. package/dist/commands/segment-push-command.js +1 -1
  47. package/dist/commands/segment-update-command.js +1 -1
  48. package/dist/commands/segment-use-command.js +1 -1
  49. package/dist/commands/segment-validate-command.js +1 -1
  50. package/dist/commands/segments.js +1 -1
  51. package/dist/commands/show.js +1 -1
  52. package/dist/commands/status-command.js +1 -1
  53. package/dist/commands/table-deleted.js +1 -1
  54. package/dist/commands/tables.js +1 -1
  55. package/dist/commands/unset-command.js +1 -1
  56. package/dist/commands/upgrade-command.js +1 -1
  57. package/dist/commands/use-command.js +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/work-command.js +1 -1
  60. package/dist/commands/workflow-command.js +1 -1
  61. package/dist/core/auth.js +1 -1
  62. package/dist/core/command-output.js +1 -1
  63. package/dist/core/config.d.ts +14 -0
  64. package/dist/core/config.d.ts.map +1 -1
  65. package/dist/core/config.js +1 -1
  66. package/dist/core/config.js.map +1 -1
  67. package/dist/core/connection-cache.js +1 -1
  68. package/dist/core/constants.js +1 -1
  69. package/dist/core/credential-cache.js +1 -1
  70. package/dist/core/global-context.js +1 -1
  71. package/dist/core/keychain.js +1 -1
  72. package/dist/core/oauth-keychain.js +1 -1
  73. package/dist/core/oauth.js +1 -1
  74. package/dist/core/profile.js +1 -1
  75. package/dist/core/project-config.d.ts +1 -0
  76. package/dist/core/project-config.d.ts.map +1 -1
  77. package/dist/core/project-config.js +1 -1
  78. package/dist/core/project-config.js.map +1 -1
  79. package/dist/core/session.js +1 -1
  80. package/dist/core/user-cache.js +1 -1
  81. package/dist/core/version.js +1 -1
  82. package/dist/index.js +1 -1
  83. package/dist/mcp/server.js +1 -1
  84. package/dist/mcp/tools/index.js +1 -1
  85. package/dist/mcp/tools/tdx-run.js +1 -1
  86. package/dist/mcp/tools/tdx-search.d.ts.map +1 -1
  87. package/dist/mcp/tools/tdx-search.js +1 -1
  88. package/dist/mcp/tools/tdx-search.js.map +1 -1
  89. package/dist/mcp/tools/work-create-item.js +1 -1
  90. package/dist/mcp/utils.js +1 -1
  91. package/dist/proxy/claude-usage-tracker.js +1 -1
  92. package/dist/proxy/passthrough-server.js +1 -1
  93. package/dist/proxy/sse-usage-parser.js +1 -1
  94. package/dist/sdk/agent/agent-config.js +1 -1
  95. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  96. package/dist/sdk/agent/agent-yaml.js +1 -1
  97. package/dist/sdk/agent/test/evaluator.js +1 -1
  98. package/dist/sdk/agent/test/executor.js +1 -1
  99. package/dist/sdk/agent/test/index.js +1 -1
  100. package/dist/sdk/agent/test/output.js +1 -1
  101. package/dist/sdk/agent/test/parser.js +1 -1
  102. package/dist/sdk/agent/tool-target-registry.js +1 -1
  103. package/dist/sdk/api.js +1 -1
  104. package/dist/sdk/cas/cas-api-client.js +1 -1
  105. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  106. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  107. package/dist/sdk/cas/index.js +1 -1
  108. package/dist/sdk/cas/pull-workflow.js +1 -1
  109. package/dist/sdk/cas/push-workflow.js +1 -1
  110. package/dist/sdk/client/cdp-api-client.js +1 -1
  111. package/dist/sdk/client/delivery-api-client.js +1 -1
  112. package/dist/sdk/client/endpoints.js +1 -1
  113. package/dist/sdk/client/engage-api-client.js +1 -1
  114. package/dist/sdk/client/http-client.js +1 -1
  115. package/dist/sdk/client/llm-api-client.js +1 -1
  116. package/dist/sdk/client/oauth-refresh.js +1 -1
  117. package/dist/sdk/client/rate-limiter.js +1 -1
  118. package/dist/sdk/client/td-api-client.js +1 -1
  119. package/dist/sdk/client/trino-api-client.js +1 -1
  120. package/dist/sdk/client/workflow-client.js +1 -1
  121. package/dist/sdk/connection-validator.js +1 -1
  122. package/dist/sdk/connection.js +1 -1
  123. package/dist/sdk/delivery.js +1 -1
  124. package/dist/sdk/engage/campaign-pull.js +1 -1
  125. package/dist/sdk/engage/campaign-push.js +1 -1
  126. package/dist/sdk/engage/campaign-validator.js +1 -1
  127. package/dist/sdk/engage/campaign-yaml.js +1 -1
  128. package/dist/sdk/engage/template-pull.js +1 -1
  129. package/dist/sdk/engage/template-push.js +1 -1
  130. package/dist/sdk/engage/template-validator.js +1 -1
  131. package/dist/sdk/engage/template-yaml.js +1 -1
  132. package/dist/sdk/engage/types/campaign-def.js +1 -1
  133. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  134. package/dist/sdk/engage/types/template-schema.js +1 -1
  135. package/dist/sdk/engage.js +1 -1
  136. package/dist/sdk/errors.js +1 -1
  137. package/dist/sdk/index.js +1 -1
  138. package/dist/sdk/io/index.js +1 -1
  139. package/dist/sdk/io/node-filesystem.js +1 -1
  140. package/dist/sdk/job.js +1 -1
  141. package/dist/sdk/journey.js +1 -1
  142. package/dist/sdk/llm/chat-cache.js +1 -1
  143. package/dist/sdk/llm/index.js +1 -1
  144. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  145. package/dist/sdk/llm/model-factors.js +1 -1
  146. package/dist/sdk/llm/user-settings.js +1 -1
  147. package/dist/sdk/personalization.js +1 -1
  148. package/dist/sdk/policy.js +1 -1
  149. package/dist/sdk/query/deleted-table-validation.js +1 -1
  150. package/dist/sdk/query/index.js +1 -1
  151. package/dist/sdk/query/sql-parser.js +1 -1
  152. package/dist/sdk/realtime.js +1 -1
  153. package/dist/sdk/schedule.js +1 -1
  154. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  155. package/dist/sdk/segment/fields-display.js +1 -1
  156. package/dist/sdk/segment/file-discovery.js +1 -1
  157. package/dist/sdk/segment/journey-utils.js +1 -1
  158. package/dist/sdk/segment/journey-validator.js +1 -1
  159. package/dist/sdk/segment/journey-yaml.js +1 -1
  160. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  161. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  162. package/dist/sdk/segment/pull-workflow.js +1 -1
  163. package/dist/sdk/segment/push-recovery.js +1 -1
  164. package/dist/sdk/segment/push-workflow.js +1 -1
  165. package/dist/sdk/segment/resolution-context.js +1 -1
  166. package/dist/sdk/segment/segment-path-parser.js +1 -1
  167. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  168. package/dist/sdk/segment/segment-validator.js +1 -1
  169. package/dist/sdk/segment/target-resolution.js +1 -1
  170. package/dist/sdk/segment/tdx-config.js +1 -1
  171. package/dist/sdk/segment/types/activation-schema.js +1 -1
  172. package/dist/sdk/segment/types/journey-def.js +1 -1
  173. package/dist/sdk/segment/types/journey-schema.js +1 -1
  174. package/dist/sdk/segment/types/segment-def.js +1 -1
  175. package/dist/sdk/segment/types/segment-schema.js +1 -1
  176. package/dist/sdk/segment/validate-files.js +1 -1
  177. package/dist/sdk/segment/yaml-validator.js +1 -1
  178. package/dist/sdk/segment.js +1 -1
  179. package/dist/sdk/types/index.js +1 -1
  180. package/dist/sdk/types/progress.js +1 -1
  181. package/dist/sdk/types/workspace.js +1 -1
  182. package/dist/sdk/user.js +1 -1
  183. package/dist/sdk/util/format-detector.js +1 -1
  184. package/dist/sdk/util/formatters.js +1 -1
  185. package/dist/sdk/util/index.js +1 -1
  186. package/dist/sdk/util/paginate.js +1 -1
  187. package/dist/sdk/util/tree-formatter.js +1 -1
  188. package/dist/sdk/workflow/archive-validation.js +1 -1
  189. package/dist/sdk/workflow/clone-workflow.js +1 -1
  190. package/dist/sdk/workflow/index.js +1 -1
  191. package/dist/sdk/workflow/pull-workflow.js +1 -1
  192. package/dist/sdk/workflow/push-workflow.js +1 -1
  193. package/dist/sdk/workflow/task-graph.js +1 -1
  194. package/dist/sdk/workflow/tdx-config.js +1 -1
  195. package/dist/sdk/workflow/workflow-utils.js +1 -1
  196. package/dist/sdk/workspace/access-tracker.js +1 -1
  197. package/dist/sdk/workspace/frontmatter.js +1 -1
  198. package/dist/sdk/workspace/git.js +1 -1
  199. package/dist/sdk/workspace/index.js +1 -1
  200. package/dist/sdk/workspace/templates.js +1 -1
  201. package/dist/sdk/workspace/weekly.js +1 -1
  202. package/dist/sdk/workspace/wikilinks.js +1 -1
  203. package/dist/test-utils/command-runner.js +1 -1
  204. package/dist/test-utils/factories.js +1 -1
  205. package/dist/test-utils/fixtures.js +1 -1
  206. package/dist/test-utils/http-mock.js +1 -1
  207. package/dist/test-utils/index.js +1 -1
  208. package/dist/utils/async.js +1 -1
  209. package/dist/utils/colors.js +1 -1
  210. package/dist/utils/diff.js +1 -1
  211. package/dist/utils/file-permissions.js +1 -1
  212. package/dist/utils/file-reader.js +1 -1
  213. package/dist/utils/github-releases.js +1 -1
  214. package/dist/utils/global-cache.js +1 -1
  215. package/dist/utils/json-loader.js +1 -1
  216. package/dist/utils/local-cache.js +1 -1
  217. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  218. package/dist/utils/logger/formatters/index.js +1 -1
  219. package/dist/utils/logger/handlers/console-handler.js +1 -1
  220. package/dist/utils/logger/handlers/file-handler.js +1 -1
  221. package/dist/utils/logger/handlers/index.js +1 -1
  222. package/dist/utils/logger/handlers/null-handler.js +1 -1
  223. package/dist/utils/logger/index.js +1 -1
  224. package/dist/utils/logger/logger.js +1 -1
  225. package/dist/utils/logger/types.js +1 -1
  226. package/dist/utils/option-validation.js +1 -1
  227. package/dist/utils/process.js +1 -1
  228. package/dist/utils/prompt.js +1 -1
  229. package/dist/utils/spinner.js +1 -1
  230. package/dist/utils/sse-parser.js +1 -1
  231. package/dist/utils/string-utils.js +1 -1
  232. package/dist/utils/table-ref-parser.js +1 -1
  233. package/dist/utils/tdx-logger.js +1 -1
  234. package/dist/utils/version-check.js +1 -1
  235. package/package.json +1 -1
@@ -1 +1 @@
1
- function a211_0x49b9(){const _0x33dcff=['push','2748348vpdubA','matchCount','stack','includes','filter','Bad\x20Gateway','16945990HLMMnp','Not\x20Found','textResponse','Conflict','https://api.treasuredata.com/errors/','entries','td-api','matched','4uuWJFu','reset','getRequests','host','method','Unknown','test','parseRequest','errorResponse','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','requests','isArray','stringify','mockImplementation','fetchMock','1628770XMSdLK','Unprocessable\x20Entity','wasCalled','Forbidden','jsonResponseWithHeaders','2075130wFRUpY','getLastRequest','stubs','split','length','join','register','6147tqSTEN','toLowerCase','description','responder','searchParams','5769AhODVV','Bad\x20Request','getMatchCount','withQuery','pathname','error','9592qqsBbb','headers','toUpperCase','withBody','fail','Service\x20Unavailable','forEach','rfc9457','application/json','verify','get','every','registerWithInspector','some','Request\x20body:\x20','No\x20Content','\x20registered\x20at:\x0a','body','REST','url','Internal\x20Server\x20Error','No\x20stub\x20matched\x20request:\x20','string','11RqCsNS','1941219UcWADA','56BETnZq','GET'];a211_0x49b9=function(){return _0x33dcff;};return a211_0x49b9();}const a211_0x5450ad=a211_0x491f;(function(_0x494bdf,_0x51da84){const _0x5c1cdf=a211_0x491f,_0x1f7b5f=_0x494bdf();while(!![]){try{const _0x261ef3=parseInt(_0x5c1cdf(0x1cd))/0x1*(parseInt(_0x5c1cdf(0x1a1))/0x2)+parseInt(_0x5c1cdf(0x1c6))/0x3+parseInt(_0x5c1cdf(0x1b2))/0x4*(parseInt(_0x5c1cdf(0x1c1))/0x5)+parseInt(_0x5c1cdf(0x1a4))/0x6+-parseInt(_0x5c1cdf(0x1a0))/0x7+parseInt(_0x5c1cdf(0x1d8))/0x8*(parseInt(_0x5c1cdf(0x1d2))/0x9)+parseInt(_0x5c1cdf(0x1aa))/0xa*(-parseInt(_0x5c1cdf(0x19f))/0xb);if(_0x261ef3===_0x51da84)break;else _0x1f7b5f['push'](_0x1f7b5f['shift']());}catch(_0x33b4a9){_0x1f7b5f['push'](_0x1f7b5f['shift']());}}}(a211_0x49b9,0x6c779));function a211_0x491f(_0xab9da,_0x4b0316){_0xab9da=_0xab9da-0x190;const _0x49b978=a211_0x49b9();let _0x491fe6=_0x49b978[_0xab9da];return _0x491fe6;}import{vi}from'vitest';export class HTTPMockRegistry{[a211_0x5450ad(0x1c8)]=[];[a211_0x5450ad(0x1bc)]=[];[a211_0x5450ad(0x1c0)]=null;[a211_0x5450ad(0x19a)](_0x1061dc,_0x34a20c){return _0x3e4aa1=>{const _0x352393=a211_0x491f;if(_0x3e4aa1[_0x352393(0x1b6)][_0x352393(0x1da)]()!==_0x1061dc[_0x352393(0x1da)]())return![];const _0x3cfe73=new URL(_0x3e4aa1['url']);if(typeof _0x34a20c===_0x352393(0x19e))return _0x3cfe73['pathname']===_0x34a20c||_0x3cfe73[_0x352393(0x1d6)][_0x352393(0x1a7)](_0x34a20c);return _0x34a20c[_0x352393(0x1b8)](_0x3cfe73[_0x352393(0x1d6)]);};}[a211_0x5450ad(0x1d5)](_0x190c4d,_0x36d5b7){return _0x5e7780=>{const _0x5a6297=a211_0x491f;if(!_0x190c4d(_0x5e7780))return![];const _0x1b0a08=new URL(_0x5e7780['url']);return Object[_0x5a6297(0x1af)](_0x36d5b7)[_0x5a6297(0x193)](([_0x2d1ae6,_0x2c074e])=>_0x1b0a08[_0x5a6297(0x1d1)][_0x5a6297(0x192)](_0x2d1ae6)===_0x2c074e);};}[a211_0x5450ad(0x1db)](_0xf37cce,_0x115e81){return _0x33249d=>{const _0x2e5d3e=a211_0x491f;if(!_0xf37cce(_0x33249d))return![];if(typeof _0x115e81==='function')return _0x115e81(_0x33249d[_0x2e5d3e(0x199)]);return JSON[_0x2e5d3e(0x1be)](_0x33249d[_0x2e5d3e(0x199)])===JSON[_0x2e5d3e(0x1be)](_0x115e81);};}['withHost'](_0xad89c8,_0xbb236b){return _0xe6673d=>{const _0x10b116=a211_0x491f;if(!_0xad89c8(_0xe6673d))return![];const _0x4a845b=new URL(_0xe6673d['url']);return _0x4a845b[_0x10b116(0x1b5)]===_0xbb236b;};}['register'](_0x40f863,_0x4ba7ff,_0x1bc454){const _0x1e8df6=a211_0x5450ad;this[_0x1e8df6(0x1c8)][_0x1e8df6(0x1a3)]({'matcher':_0x40f863,'responder':_0x4ba7ff,'matched':![],'matchCount':0x0,'stack':new Error()[_0x1e8df6(0x1a6)]??'','description':_0x1bc454?.[_0x1e8df6(0x1cf)]});}[a211_0x5450ad(0x194)](_0x8beab6,_0x13e5c8,_0x2ec102){const _0x6f8ef8=a211_0x5450ad,_0x457f1f=_0x21fd5e=>{const _0x18f913=a211_0x491f;return _0x2ec102(_0x21fd5e[_0x18f913(0x199)],_0x21fd5e),_0x13e5c8(_0x21fd5e);};this[_0x6f8ef8(0x1cc)](_0x8beab6,_0x457f1f);}static['jsonResponse'](_0x2284b1,_0x1b4cf9=0xc8){const _0x4c4ce9=a211_0x5450ad;return()=>new Response(JSON[_0x4c4ce9(0x1be)](_0x2284b1),{'status':_0x1b4cf9,'headers':{'Content-Type':'application/json'}});}static[a211_0x5450ad(0x1ba)](_0xd16d7f,_0x2fd3e6,_0x16af2c='simple'){return()=>{const _0x613e67=a211_0x491f;let _0x1308cf;switch(_0x16af2c){case _0x613e67(0x1b0):_0x1308cf={'errors':{'error':_0x2fd3e6,'message':_0x2fd3e6,'severity':_0x613e67(0x1d7),'status_code':_0xd16d7f}};break;case _0x613e67(0x1df):_0x1308cf={'type':_0x613e67(0x1ae)+_0xd16d7f,'title':HTTPMockRegistry['getStatusText'](_0xd16d7f),'status':_0xd16d7f,'detail':_0x2fd3e6};break;default:_0x1308cf={'error':_0x2fd3e6};}return new Response(JSON[_0x613e67(0x1be)](_0x1308cf),{'status':_0xd16d7f,'headers':{'Content-Type':_0x613e67(0x190)}});};}static[a211_0x5450ad(0x1c5)](_0x56a68e,_0x1e0520,_0x34e449=0xc8){return()=>new Response(JSON['stringify'](_0x56a68e),{'status':_0x34e449,'headers':{'Content-Type':'application/json',..._0x1e0520}});}static[a211_0x5450ad(0x1ac)](_0x56567b,_0x561170=0xc8){return()=>new Response(_0x56567b,{'status':_0x561170,'headers':{'Content-Type':'text/plain'}});}static['networkError'](_0x337a4c){return()=>{throw new Error(_0x337a4c);};}['createFetch'](){const _0x317c72=a211_0x5450ad;return this['fetchMock']=vi['fn']()[_0x317c72(0x1bf)](async(_0x1bbd40,_0x2193ec)=>{const _0x47e4df=_0x317c72,_0x486902=this[_0x47e4df(0x1b9)](_0x1bbd40,_0x2193ec);this[_0x47e4df(0x1bc)][_0x47e4df(0x1a3)](_0x486902);for(const _0x4d0271 of this[_0x47e4df(0x1c8)]){if(_0x4d0271['matcher'](_0x486902))return _0x4d0271[_0x47e4df(0x1b1)]=!![],_0x4d0271[_0x47e4df(0x1a5)]++,_0x4d0271[_0x47e4df(0x1d0)](_0x486902);}const _0x52867c=this[_0x47e4df(0x1c8)]['map']((_0x4b85e8,_0x242458)=>'\x20\x20'+(_0x242458+0x1)+'.\x20'+(_0x4b85e8[_0x47e4df(0x1cf)]??'unnamed\x20stub'))[_0x47e4df(0x1cb)]('\x0a');throw new Error(_0x47e4df(0x19d)+_0x486902[_0x47e4df(0x1b6)]+'\x20'+_0x486902[_0x47e4df(0x19b)]+'\x0a'+(_0x47e4df(0x196)+JSON[_0x47e4df(0x1be)](_0x486902['body'])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x52867c||'\x20\x20(none)')));}),this['fetchMock'];}[a211_0x5450ad(0x1b9)](_0x59d66c,_0x1ef231){const _0x4db22e=a211_0x5450ad,_0x319621={};if(_0x1ef231?.['headers']){if(_0x1ef231[_0x4db22e(0x1d9)]instanceof Headers)_0x1ef231[_0x4db22e(0x1d9)][_0x4db22e(0x1de)]((_0xb68aec,_0x242bc8)=>{const _0x5466da=_0x4db22e;_0x319621[_0x242bc8[_0x5466da(0x1ce)]()]=_0xb68aec;});else{if(Array[_0x4db22e(0x1bd)](_0x1ef231[_0x4db22e(0x1d9)]))for(const [_0x13851e,_0x4c0985]of _0x1ef231[_0x4db22e(0x1d9)]){_0x319621[_0x13851e[_0x4db22e(0x1ce)]()]=_0x4c0985;}else for(const [_0x177b03,_0x1d46b6]of Object[_0x4db22e(0x1af)](_0x1ef231['headers'])){_0x1d46b6!==undefined&&(_0x319621[_0x177b03[_0x4db22e(0x1ce)]()]=_0x1d46b6);}}}let _0x241753;if(_0x1ef231?.['body'])try{_0x241753=JSON['parse'](_0x1ef231[_0x4db22e(0x199)]);}catch{_0x241753=_0x1ef231[_0x4db22e(0x199)];}return{'method':_0x1ef231?.[_0x4db22e(0x1b6)]??_0x4db22e(0x1a2),'url':_0x59d66c,'headers':_0x319621,'body':_0x241753};}[a211_0x5450ad(0x191)](_0x3b459d){const _0x548a7a=a211_0x5450ad,_0x16aab1=this['stubs'][_0x548a7a(0x1a8)](_0x333b09=>!_0x333b09[_0x548a7a(0x1b1)]);if(_0x16aab1[_0x548a7a(0x1ca)]>0x0){const _0x1c373d=_0x16aab1['map'](_0xdd44e6=>{const _0x2986c7=_0x548a7a,_0x52ab54=_0xdd44e6['description']?'\x20('+_0xdd44e6[_0x2986c7(0x1cf)]+')':'',_0x2099d9=_0xdd44e6['stack'][_0x2986c7(0x1c9)]('\x0a')['slice'](0x2,0x5)['join']('\x0a');return'Unmatched\x20stub'+_0x52ab54+_0x2986c7(0x198)+_0x2099d9;});_0x3b459d[_0x548a7a(0x1dc)](_0x16aab1[_0x548a7a(0x1ca)]+_0x548a7a(0x1bb)+_0x1c373d[_0x548a7a(0x1cb)]('\x0a\x0a'));}}[a211_0x5450ad(0x1b4)](){const _0x152b78=a211_0x5450ad;return[...this[_0x152b78(0x1bc)]];}[a211_0x5450ad(0x1c7)](){const _0xbc3658=a211_0x5450ad;return this[_0xbc3658(0x1bc)][this[_0xbc3658(0x1bc)][_0xbc3658(0x1ca)]-0x1];}[a211_0x5450ad(0x1c3)](_0x2059fb,_0xf365d6){const _0x4e86af=a211_0x5450ad;return this[_0x4e86af(0x1bc)][_0x4e86af(0x195)](_0x4f8ac6=>{const _0x12310c=_0x4e86af;if(_0x4f8ac6[_0x12310c(0x1b6)]['toUpperCase']()!==_0x2059fb[_0x12310c(0x1da)]())return![];if(typeof _0xf365d6==='string')return _0x4f8ac6['url'][_0x12310c(0x1a7)](_0xf365d6);return _0xf365d6[_0x12310c(0x1b8)](_0x4f8ac6[_0x12310c(0x19b)]);});}[a211_0x5450ad(0x1d4)](_0x464310){const _0x29ed23=a211_0x5450ad;return this[_0x29ed23(0x1c8)][_0x464310]?.['matchCount']??0x0;}[a211_0x5450ad(0x1b3)](){const _0x5b30b=a211_0x5450ad;this[_0x5b30b(0x1c8)]=[],this[_0x5b30b(0x1bc)]=[],this[_0x5b30b(0x1c0)]=null;}static['getStatusText'](_0x11debc){const _0x2ed4bf=a211_0x5450ad,_0x1193e1={0xc8:'OK',0xc9:'Created',0xcc:_0x2ed4bf(0x197),0x190:_0x2ed4bf(0x1d3),0x191:'Unauthorized',0x193:_0x2ed4bf(0x1c4),0x194:_0x2ed4bf(0x1ab),0x199:_0x2ed4bf(0x1ad),0x1a6:_0x2ed4bf(0x1c2),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x2ed4bf(0x19c),0x1f6:_0x2ed4bf(0x1a9),0x1f7:_0x2ed4bf(0x1dd)};return _0x1193e1[_0x11debc]??_0x2ed4bf(0x1b7);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a211_0x48c011=a211_0x1472;function a211_0x1472(_0xbf8e36,_0x189d65){_0xbf8e36=_0xbf8e36-0xdf;const _0x4f6e03=a211_0x4f6e();let _0x1472c5=_0x4f6e03[_0xbf8e36];return _0x1472c5;}(function(_0x208fc9,_0x1855a3){const _0x10aa74=a211_0x1472,_0x3b4818=_0x208fc9();while(!![]){try{const _0x5c31b9=-parseInt(_0x10aa74(0x108))/0x1+parseInt(_0x10aa74(0xf0))/0x2+parseInt(_0x10aa74(0x11c))/0x3*(-parseInt(_0x10aa74(0x104))/0x4)+-parseInt(_0x10aa74(0x106))/0x5+-parseInt(_0x10aa74(0x121))/0x6+parseInt(_0x10aa74(0x101))/0x7*(-parseInt(_0x10aa74(0x126))/0x8)+parseInt(_0x10aa74(0x103))/0x9;if(_0x5c31b9===_0x1855a3)break;else _0x3b4818['push'](_0x3b4818['shift']());}catch(_0x19965f){_0x3b4818['push'](_0x3b4818['shift']());}}}(a211_0x4f6e,0x9c38a));import{vi}from'vitest';function a211_0x4f6e(){const _0x1fc470=['159044qptBhJ','body','4051070OcNtyR','No\x20stub\x20matched\x20request:\x20','490411PfKMKz','Unauthorized','withBody','string','stubs','responder','Too\x20Many\x20Requests','method','Created','matched','text/plain','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','map','fetchMock','Unknown','networkError','toUpperCase','parseRequest','rfc9457','\x20registered\x20at:\x0a','48vLZjlH','toLowerCase','searchParams','getRequests','createFetch','5172162LXoNSu','stack','entries','verify','slice','53136ArBeCc','host','mockImplementation','pathname','every','Bad\x20Request','Bad\x20Gateway','url','REST','description','reset','Forbidden','simple','join','td-api','withHost','fail','filter','withQuery','get','matcher','register','includes','Unprocessable\x20Entity','test','1052042ahgwCM','Service\x20Unavailable','headers','forEach','length','stringify','getMatchCount','No\x20Content','requests','getStatusText','isArray','jsonResponse','jsonResponseWithHeaders','matchCount','Conflict','push','application/json','1267cJayGW','Internal\x20Server\x20Error','37034019nPDFbH'];a211_0x4f6e=function(){return _0x1fc470;};return a211_0x4f6e();}export class HTTPMockRegistry{[a211_0x48c011(0x10c)]=[];['requests']=[];['fetchMock']=null;[a211_0x48c011(0xdf)](_0x88d598,_0x53dd0b){return _0x5a7612=>{const _0x2df6f4=a211_0x1472;if(_0x5a7612[_0x2df6f4(0x10f)][_0x2df6f4(0x118)]()!==_0x88d598[_0x2df6f4(0x118)]())return![];const _0x514cc0=new URL(_0x5a7612[_0x2df6f4(0x12d)]);if(typeof _0x53dd0b===_0x2df6f4(0x10b))return _0x514cc0[_0x2df6f4(0x129)]===_0x53dd0b||_0x514cc0[_0x2df6f4(0x129)][_0x2df6f4(0xed)](_0x53dd0b);return _0x53dd0b[_0x2df6f4(0xef)](_0x514cc0[_0x2df6f4(0x129)]);};}[a211_0x48c011(0xe9)](_0x5aa6ea,_0x85ab1f){return _0x56acb4=>{const _0x310155=a211_0x1472;if(!_0x5aa6ea(_0x56acb4))return![];const _0x236358=new URL(_0x56acb4[_0x310155(0x12d)]);return Object[_0x310155(0x123)](_0x85ab1f)[_0x310155(0x12a)](([_0x118dab,_0x1bbbbc])=>_0x236358[_0x310155(0x11e)][_0x310155(0xea)](_0x118dab)===_0x1bbbbc);};}[a211_0x48c011(0x10a)](_0x5b34ae,_0x251d41){return _0x5d30a4=>{const _0x3c4bc8=a211_0x1472;if(!_0x5b34ae(_0x5d30a4))return![];if(typeof _0x251d41==='function')return _0x251d41(_0x5d30a4[_0x3c4bc8(0x105)]);return JSON[_0x3c4bc8(0xf5)](_0x5d30a4[_0x3c4bc8(0x105)])===JSON['stringify'](_0x251d41);};}[a211_0x48c011(0xe6)](_0x55fad6,_0x52deea){return _0x202a6d=>{const _0x4719b3=a211_0x1472;if(!_0x55fad6(_0x202a6d))return![];const _0x149e1c=new URL(_0x202a6d['url']);return _0x149e1c[_0x4719b3(0x127)]===_0x52deea;};}[a211_0x48c011(0xec)](_0xba135d,_0x5596c8,_0x522d02){const _0x44ceb9=a211_0x48c011;this[_0x44ceb9(0x10c)][_0x44ceb9(0xff)]({'matcher':_0xba135d,'responder':_0x5596c8,'matched':![],'matchCount':0x0,'stack':new Error()[_0x44ceb9(0x122)]??'','description':_0x522d02?.[_0x44ceb9(0xe0)]});}['registerWithInspector'](_0x2193b7,_0x5c8177,_0x4a99f3){const _0xd63e1d=a211_0x48c011,_0x4f7aee=_0x2cbec5=>{const _0x11a74d=a211_0x1472;return _0x4a99f3(_0x2cbec5[_0x11a74d(0x105)],_0x2cbec5),_0x5c8177(_0x2cbec5);};this[_0xd63e1d(0xec)](_0x2193b7,_0x4f7aee);}static[a211_0x48c011(0xfb)](_0x21e5fe,_0x21ab18=0xc8){return()=>new Response(JSON['stringify'](_0x21e5fe),{'status':_0x21ab18,'headers':{'Content-Type':'application/json'}});}static['errorResponse'](_0x8ddb6b,_0x4b01f0,_0x378950=a211_0x48c011(0xe3)){return()=>{const _0x1fc572=a211_0x1472;let _0x3b65f7;switch(_0x378950){case _0x1fc572(0xe5):_0x3b65f7={'errors':{'error':_0x4b01f0,'message':_0x4b01f0,'severity':'error','status_code':_0x8ddb6b}};break;case _0x1fc572(0x11a):_0x3b65f7={'type':'https://api.treasuredata.com/errors/'+_0x8ddb6b,'title':HTTPMockRegistry[_0x1fc572(0xf9)](_0x8ddb6b),'status':_0x8ddb6b,'detail':_0x4b01f0};break;default:_0x3b65f7={'error':_0x4b01f0};}return new Response(JSON[_0x1fc572(0xf5)](_0x3b65f7),{'status':_0x8ddb6b,'headers':{'Content-Type':_0x1fc572(0x100)}});};}static[a211_0x48c011(0xfc)](_0x5d1c1b,_0x569cfd,_0x2e4db1=0xc8){const _0x2c8033=a211_0x48c011;return()=>new Response(JSON['stringify'](_0x5d1c1b),{'status':_0x2e4db1,'headers':{'Content-Type':_0x2c8033(0x100),..._0x569cfd}});}static['textResponse'](_0x3d0a9e,_0x50dddb=0xc8){const _0x2d100f=a211_0x48c011;return()=>new Response(_0x3d0a9e,{'status':_0x50dddb,'headers':{'Content-Type':_0x2d100f(0x112)}});}static[a211_0x48c011(0x117)](_0x52eb7c){return()=>{throw new Error(_0x52eb7c);};}[a211_0x48c011(0x120)](){const _0x3881e0=a211_0x48c011;return this[_0x3881e0(0x115)]=vi['fn']()[_0x3881e0(0x128)](async(_0x4a2c94,_0x2dca43)=>{const _0x9da71c=_0x3881e0,_0x228186=this[_0x9da71c(0x119)](_0x4a2c94,_0x2dca43);this[_0x9da71c(0xf8)][_0x9da71c(0xff)](_0x228186);for(const _0x83e93a of this[_0x9da71c(0x10c)]){if(_0x83e93a[_0x9da71c(0xeb)](_0x228186))return _0x83e93a[_0x9da71c(0x111)]=!![],_0x83e93a[_0x9da71c(0xfd)]++,_0x83e93a[_0x9da71c(0x10d)](_0x228186);}const _0x18f065=this['stubs'][_0x9da71c(0x114)]((_0x1f02ad,_0x378bf3)=>'\x20\x20'+(_0x378bf3+0x1)+'.\x20'+(_0x1f02ad[_0x9da71c(0xe0)]??'unnamed\x20stub'))['join']('\x0a');throw new Error(_0x9da71c(0x107)+_0x228186[_0x9da71c(0x10f)]+'\x20'+_0x228186[_0x9da71c(0x12d)]+'\x0a'+('Request\x20body:\x20'+JSON[_0x9da71c(0xf5)](_0x228186['body'])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x18f065||'\x20\x20(none)')));}),this[_0x3881e0(0x115)];}['parseRequest'](_0x563cc0,_0x5cc407){const _0x11cd49=a211_0x48c011,_0x670515={};if(_0x5cc407?.[_0x11cd49(0xf2)]){if(_0x5cc407[_0x11cd49(0xf2)]instanceof Headers)_0x5cc407[_0x11cd49(0xf2)][_0x11cd49(0xf3)]((_0x638a02,_0x382e6a)=>{const _0x5458c1=_0x11cd49;_0x670515[_0x382e6a[_0x5458c1(0x11d)]()]=_0x638a02;});else{if(Array[_0x11cd49(0xfa)](_0x5cc407[_0x11cd49(0xf2)]))for(const [_0x483b61,_0x37956e]of _0x5cc407[_0x11cd49(0xf2)]){_0x670515[_0x483b61[_0x11cd49(0x11d)]()]=_0x37956e;}else for(const [_0x2c8f46,_0x15870a]of Object[_0x11cd49(0x123)](_0x5cc407[_0x11cd49(0xf2)])){_0x15870a!==undefined&&(_0x670515[_0x2c8f46[_0x11cd49(0x11d)]()]=_0x15870a);}}}let _0x35c608;if(_0x5cc407?.['body'])try{_0x35c608=JSON['parse'](_0x5cc407[_0x11cd49(0x105)]);}catch{_0x35c608=_0x5cc407[_0x11cd49(0x105)];}return{'method':_0x5cc407?.[_0x11cd49(0x10f)]??'GET','url':_0x563cc0,'headers':_0x670515,'body':_0x35c608};}[a211_0x48c011(0x124)](_0x1cf7dd){const _0x1c79a7=a211_0x48c011,_0x2977bf=this[_0x1c79a7(0x10c)][_0x1c79a7(0xe8)](_0x266a8d=>!_0x266a8d[_0x1c79a7(0x111)]);if(_0x2977bf['length']>0x0){const _0x45506e=_0x2977bf[_0x1c79a7(0x114)](_0x44f395=>{const _0x19a9ee=_0x1c79a7,_0x2bb2d6=_0x44f395[_0x19a9ee(0xe0)]?'\x20('+_0x44f395[_0x19a9ee(0xe0)]+')':'',_0x14b9b7=_0x44f395[_0x19a9ee(0x122)]['split']('\x0a')[_0x19a9ee(0x125)](0x2,0x5)['join']('\x0a');return'Unmatched\x20stub'+_0x2bb2d6+_0x19a9ee(0x11b)+_0x14b9b7;});_0x1cf7dd[_0x1c79a7(0xe7)](_0x2977bf['length']+_0x1c79a7(0x113)+_0x45506e[_0x1c79a7(0xe4)]('\x0a\x0a'));}}[a211_0x48c011(0x11f)](){const _0xad9527=a211_0x48c011;return[...this[_0xad9527(0xf8)]];}['getLastRequest'](){const _0x29903f=a211_0x48c011;return this[_0x29903f(0xf8)][this['requests'][_0x29903f(0xf4)]-0x1];}['wasCalled'](_0x3d3a4d,_0x143a9b){const _0x8e1880=a211_0x48c011;return this[_0x8e1880(0xf8)]['some'](_0x58d832=>{const _0x33c399=_0x8e1880;if(_0x58d832[_0x33c399(0x10f)][_0x33c399(0x118)]()!==_0x3d3a4d[_0x33c399(0x118)]())return![];if(typeof _0x143a9b===_0x33c399(0x10b))return _0x58d832[_0x33c399(0x12d)][_0x33c399(0xed)](_0x143a9b);return _0x143a9b[_0x33c399(0xef)](_0x58d832[_0x33c399(0x12d)]);});}[a211_0x48c011(0xf6)](_0x2f160a){const _0x55a0b3=a211_0x48c011;return this[_0x55a0b3(0x10c)][_0x2f160a]?.[_0x55a0b3(0xfd)]??0x0;}[a211_0x48c011(0xe1)](){const _0x29f370=a211_0x48c011;this[_0x29f370(0x10c)]=[],this['requests']=[],this['fetchMock']=null;}static[a211_0x48c011(0xf9)](_0x2ebb55){const _0x3a8bda=a211_0x48c011,_0x2b57fc={0xc8:'OK',0xc9:_0x3a8bda(0x110),0xcc:_0x3a8bda(0xf7),0x190:_0x3a8bda(0x12b),0x191:_0x3a8bda(0x109),0x193:_0x3a8bda(0xe2),0x194:'Not\x20Found',0x199:_0x3a8bda(0xfe),0x1a6:_0x3a8bda(0xee),0x1ad:_0x3a8bda(0x10e),0x1f4:_0x3a8bda(0x102),0x1f6:_0x3a8bda(0x12c),0x1f7:_0x3a8bda(0xf1)};return _0x2b57fc[_0x2ebb55]??_0x3a8bda(0x116);}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x256894,_0x1116a2){var _0x1e079f=a212_0x2d49,_0x2cff6e=_0x256894();while(!![]){try{var _0x41f770=-parseInt(_0x1e079f(0x19e))/0x1+-parseInt(_0x1e079f(0x19c))/0x2*(-parseInt(_0x1e079f(0x1a1))/0x3)+parseInt(_0x1e079f(0x1a5))/0x4+parseInt(_0x1e079f(0x1a3))/0x5+-parseInt(_0x1e079f(0x19f))/0x6*(-parseInt(_0x1e079f(0x1a2))/0x7)+-parseInt(_0x1e079f(0x1a4))/0x8*(parseInt(_0x1e079f(0x19d))/0x9)+-parseInt(_0x1e079f(0x1a0))/0xa;if(_0x41f770===_0x1116a2)break;else _0x2cff6e['push'](_0x2cff6e['shift']());}catch(_0x5be0a8){_0x2cff6e['push'](_0x2cff6e['shift']());}}}(a212_0x33f1,0xbe5b4));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a212_0x33f1(){var _0x542acb=['710806qAturC','4493817BwHzeg','1405869vFEPjD','114qrBump','6937090pKKdGj','9jybeNY','424172iAwpuK','2889755KZWFfu','8ZcCvPg','2332428dGnxyJ'];a212_0x33f1=function(){return _0x542acb;};return a212_0x33f1();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a212_0x2d49(_0x3959d6,_0x51aacb){_0x3959d6=_0x3959d6-0x19c;var _0x33f13f=a212_0x33f1();var _0x2d49d2=_0x33f13f[_0x3959d6];return _0x2d49d2;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ function a212_0x5d75(){var _0x4879ab=['42686gcJnsq','1603284QKFDQE','1hSfVhr','361068zfjanu','273148KdmVSv','45pYEZXd','580910sFngGP','539ZGRpHz','296WoOXkf','15fBKreh','173476ZdNdNL','683172NKZakW'];a212_0x5d75=function(){return _0x4879ab;};return a212_0x5d75();}(function(_0xac6732,_0x1a8378){var _0x1f8ef9=a212_0x4a07,_0x1a6ee2=_0xac6732();while(!![]){try{var _0x1c6b09=-parseInt(_0x1f8ef9(0xcf))/0x1*(parseInt(_0x1f8ef9(0xcb))/0x2)+-parseInt(_0x1f8ef9(0xcc))/0x3+-parseInt(_0x1f8ef9(0xc5))/0x4*(parseInt(_0x1f8ef9(0xca))/0x5)+-parseInt(_0x1f8ef9(0xce))/0x6+parseInt(_0x1f8ef9(0xcd))/0x7*(-parseInt(_0x1f8ef9(0xc9))/0x8)+-parseInt(_0x1f8ef9(0xc6))/0x9*(parseInt(_0x1f8ef9(0xc7))/0xa)+parseInt(_0x1f8ef9(0xc8))/0xb*(parseInt(_0x1f8ef9(0xd0))/0xc);if(_0x1c6b09===_0x1a8378)break;else _0x1a6ee2['push'](_0x1a6ee2['shift']());}catch(_0x1d9402){_0x1a6ee2['push'](_0x1a6ee2['shift']());}}}(a212_0x5d75,0x29edf));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a212_0x4a07(_0x3f6ea0,_0x5501d1){_0x3f6ea0=_0x3f6ea0-0xc5;var _0x5d7561=a212_0x5d75();var _0x4a0744=_0x5d7561[_0x3f6ea0];return _0x4a0744;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a213_0x1211(){const _0x5d79c1=['5334006vXQsYz','5zFLAdP','1444035bxiPEK','658184IVqpPR','35Cyqqzx','slice','45egyDfC','map','5632490caucGI','3698628cFlEcw','296656WQmWDF','345866IqrEMZ','length'];a213_0x1211=function(){return _0x5d79c1;};return a213_0x1211();}function a213_0x143f(_0x59d32b,_0x1d95c8){_0x59d32b=_0x59d32b-0x1b5;const _0x1211b8=a213_0x1211();let _0x143ff0=_0x1211b8[_0x59d32b];return _0x143ff0;}(function(_0x5819d5,_0x15a601){const _0x4c7b1e=a213_0x143f,_0x3a1991=_0x5819d5();while(!![]){try{const _0x579b09=parseInt(_0x4c7b1e(0x1b7))/0x1+parseInt(_0x4c7b1e(0x1b6))/0x2+-parseInt(_0x4c7b1e(0x1bb))/0x3+-parseInt(_0x4c7b1e(0x1b5))/0x4+-parseInt(_0x4c7b1e(0x1ba))/0x5*(parseInt(_0x4c7b1e(0x1b9))/0x6)+parseInt(_0x4c7b1e(0x1bd))/0x7*(-parseInt(_0x4c7b1e(0x1bc))/0x8)+parseInt(_0x4c7b1e(0x1bf))/0x9*(parseInt(_0x4c7b1e(0x1c1))/0xa);if(_0x579b09===_0x15a601)break;else _0x3a1991['push'](_0x3a1991['shift']());}catch(_0x3c9952){_0x3a1991['push'](_0x3a1991['shift']());}}}(a213_0x1211,0x937a7));export async function batchAsync(_0xc2f754,_0x115984,_0x5ebe5a=0xa){const _0x41360f=a213_0x143f,_0x27b7dc=[];for(let _0x1031c4=0x0;_0x1031c4<_0xc2f754[_0x41360f(0x1b8)];_0x1031c4+=_0x5ebe5a){const _0x59dc6a=_0xc2f754[_0x41360f(0x1be)](_0x1031c4,_0x1031c4+_0x5ebe5a),_0x44a53d=await Promise['all'](_0x59dc6a[_0x41360f(0x1c0)](_0x115984));_0x27b7dc['push'](..._0x44a53d);}return _0x27b7dc;}
1
+ function a213_0x5f1c(_0x3a7c59,_0x46d85e){_0x3a7c59=_0x3a7c59-0xca;const _0x5d5f8a=a213_0x5d5f();let _0x5f1c7b=_0x5d5f8a[_0x3a7c59];return _0x5f1c7b;}function a213_0x5d5f(){const _0x2bc47e=['1483gHfJxk','9WkdwEb','1868012FhgeOz','3903370onkZKC','length','1153764OOQRil','42599964YPlbwq','5OKIoez','7itDQJi','3872472BkVGhr','all','6871938FPPWlB','1166AcZnDw','slice','push','11JXkYWO'];a213_0x5d5f=function(){return _0x2bc47e;};return a213_0x5d5f();}(function(_0x1ed02c,_0xb2061e){const _0x1101f4=a213_0x5f1c,_0x4a4b72=_0x1ed02c();while(!![]){try{const _0x2768ad=parseInt(_0x1101f4(0xd8))/0x1*(-parseInt(_0x1101f4(0xd4))/0x2)+-parseInt(_0x1101f4(0xcd))/0x3+-parseInt(_0x1101f4(0xca))/0x4*(parseInt(_0x1101f4(0xcf))/0x5)+-parseInt(_0x1101f4(0xd3))/0x6*(parseInt(_0x1101f4(0xd0))/0x7)+parseInt(_0x1101f4(0xd1))/0x8*(-parseInt(_0x1101f4(0xd9))/0x9)+-parseInt(_0x1101f4(0xcb))/0xa*(-parseInt(_0x1101f4(0xd7))/0xb)+parseInt(_0x1101f4(0xce))/0xc;if(_0x2768ad===_0xb2061e)break;else _0x4a4b72['push'](_0x4a4b72['shift']());}catch(_0xf8af41){_0x4a4b72['push'](_0x4a4b72['shift']());}}}(a213_0x5d5f,0x91354));export async function batchAsync(_0x4eef82,_0x206c79,_0x58ba6b=0xa){const _0x95e921=a213_0x5f1c,_0x2151aa=[];for(let _0x34aab8=0x0;_0x34aab8<_0x4eef82[_0x95e921(0xcc)];_0x34aab8+=_0x58ba6b){const _0xeb9975=_0x4eef82[_0x95e921(0xd5)](_0x34aab8,_0x34aab8+_0x58ba6b),_0x345d82=await Promise[_0x95e921(0xd2)](_0xeb9975['map'](_0x206c79));_0x2151aa[_0x95e921(0xd6)](..._0x345d82);}return _0x2151aa;}
@@ -1 +1 @@
1
- const a214_0x55e4c0=a214_0x495a;(function(_0x6fad77,_0x43ca91){const _0x3478d3=a214_0x495a,_0x394b19=_0x6fad77();while(!![]){try{const _0x55d4ef=parseInt(_0x3478d3(0x169))/0x1+-parseInt(_0x3478d3(0x15c))/0x2+-parseInt(_0x3478d3(0x166))/0x3*(parseInt(_0x3478d3(0x15b))/0x4)+parseInt(_0x3478d3(0x172))/0x5*(parseInt(_0x3478d3(0x164))/0x6)+-parseInt(_0x3478d3(0x15a))/0x7+-parseInt(_0x3478d3(0x16e))/0x8*(-parseInt(_0x3478d3(0x171))/0x9)+parseInt(_0x3478d3(0x162))/0xa;if(_0x55d4ef===_0x43ca91)break;else _0x394b19['push'](_0x394b19['shift']());}catch(_0x52b3c6){_0x394b19['push'](_0x394b19['shift']());}}}(a214_0x10d9,0xb102c));import*as a214_0x40b816 from'chalk';const Chalk=a214_0x40b816[a214_0x55e4c0(0x175)];export function shouldUseColor(_0xc61212={}){const _0x3111b0=a214_0x55e4c0;if(_0xc61212[_0x3111b0(0x157)]===!![])return![];if(_0xc61212[_0x3111b0(0x167)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3111b0(0x159)][_0x3111b0(0x16c)]??![];}function a214_0x10d9(){const _0x7e7f3a=['isTTY','join','8WVJsNU','map','yellow','4357107ZbaZFt','10hkVUQw','string','dim','Chalk','noColor','isArray','stdout','3472084nERPSd','4yZGUMw','2849758drIzJN','length','repeat','number','null','blue','31947870LgYjMc','cyan','174690JgyLgi','entries','4313067moCFPP','color','green','346476azEMQI','boolean','stringify'];a214_0x10d9=function(){return _0x7e7f3a;};return a214_0x10d9();}export function getChalk(_0x531485={}){if(shouldUseColor(_0x531485))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x36cd9c,_0x4748a1={}){const _0x255bb6=a214_0x55e4c0;return getChalk(_0x4748a1)[_0x255bb6(0x174)](_0x36cd9c);}export function colorHeader(_0x182da1,_0x188e86={}){const _0x2cc815=a214_0x55e4c0;return getChalk(_0x188e86)[_0x2cc815(0x163)](_0x182da1);}export function colorType(_0x424e1d,_0x48f5c7={}){const _0x1bfdd9=a214_0x55e4c0;return getChalk(_0x48f5c7)[_0x1bfdd9(0x174)](_0x424e1d);}export function colorJSONKey(_0x552db5,_0x17e93c={}){const _0x85fc5d=a214_0x55e4c0;return getChalk(_0x17e93c)[_0x85fc5d(0x161)](_0x552db5);}export function colorJSONString(_0x7f870e,_0x15ccdf={}){const _0x19f842=a214_0x55e4c0;return getChalk(_0x15ccdf)[_0x19f842(0x168)](_0x7f870e);}export function colorJSONNumber(_0x3d4d58,_0x4c4c00={}){const _0x34fd9e=a214_0x55e4c0;return getChalk(_0x4c4c00)[_0x34fd9e(0x163)](_0x3d4d58);}export function colorJSONBoolean(_0x8d2e51,_0x1741ee={}){const _0x3579ef=a214_0x55e4c0;return getChalk(_0x1741ee)[_0x3579ef(0x170)](_0x8d2e51);}export function colorJSONNull(_0x4ee1ae,_0x5507e1={}){const _0x3b98cf=a214_0x55e4c0;return getChalk(_0x5507e1)[_0x3b98cf(0x174)](_0x4ee1ae);}function a214_0x495a(_0x55bd68,_0x259c10){_0x55bd68=_0x55bd68-0x157;const _0x10d910=a214_0x10d9();let _0x495a53=_0x10d910[_0x55bd68];return _0x495a53;}export function colorizeJSONCompact(_0x3d8db6,_0x12074f={}){const _0x1fd0d5=a214_0x55e4c0;if(!shouldUseColor(_0x12074f))return JSON['stringify'](_0x3d8db6);if(_0x3d8db6===null)return colorJSONNull(_0x1fd0d5(0x160),_0x12074f);if(typeof _0x3d8db6===_0x1fd0d5(0x16a))return colorJSONBoolean(String(_0x3d8db6),_0x12074f);if(typeof _0x3d8db6===_0x1fd0d5(0x15f))return colorJSONNumber(String(_0x3d8db6),_0x12074f);if(typeof _0x3d8db6===_0x1fd0d5(0x173))return colorJSONString(JSON[_0x1fd0d5(0x16b)](_0x3d8db6),_0x12074f);if(Array['isArray'](_0x3d8db6)){if(_0x3d8db6[_0x1fd0d5(0x15d)]===0x0)return'[]';const _0x340ec2=_0x3d8db6[_0x1fd0d5(0x16f)](_0x4fe22f=>colorizeJSONCompact(_0x4fe22f,_0x12074f));return'['+_0x340ec2[_0x1fd0d5(0x16d)](',')+']';}if(typeof _0x3d8db6==='object'){const _0x34eca0=Object['entries'](_0x3d8db6);if(_0x34eca0[_0x1fd0d5(0x15d)]===0x0)return'{}';const _0xfd70f6=_0x34eca0[_0x1fd0d5(0x16f)](([_0x56a68f,_0x28c1e1])=>{const _0x133fdb=_0x1fd0d5,_0x5e6b58=colorJSONKey(JSON[_0x133fdb(0x16b)](_0x56a68f),_0x12074f),_0x20e515=colorizeJSONCompact(_0x28c1e1,_0x12074f);return _0x5e6b58+':'+_0x20e515;});return'{'+_0xfd70f6[_0x1fd0d5(0x16d)](',')+'}';}return String(_0x3d8db6);}export function colorizeJSON(_0x5e4e89,_0xb200a1={},_0x8649c5=0x0){const _0x1a451f=a214_0x55e4c0;if(!shouldUseColor(_0xb200a1))return JSON[_0x1a451f(0x16b)](_0x5e4e89,null,0x2);const _0x14897b='\x20'[_0x1a451f(0x15e)](_0x8649c5),_0xe7b78a=_0x8649c5+0x2;if(_0x5e4e89===null)return colorJSONNull(_0x1a451f(0x160),_0xb200a1);if(typeof _0x5e4e89===_0x1a451f(0x16a))return colorJSONBoolean(String(_0x5e4e89),_0xb200a1);if(typeof _0x5e4e89===_0x1a451f(0x15f))return colorJSONNumber(String(_0x5e4e89),_0xb200a1);if(typeof _0x5e4e89==='string')return colorJSONString(JSON[_0x1a451f(0x16b)](_0x5e4e89),_0xb200a1);if(Array[_0x1a451f(0x158)](_0x5e4e89)){if(_0x5e4e89[_0x1a451f(0x15d)]===0x0)return'[]';const _0x44974b=_0x5e4e89[_0x1a451f(0x16f)](_0x997d16=>{const _0x224982=_0x1a451f,_0xb0f1be=colorizeJSON(_0x997d16,_0xb200a1,_0xe7b78a);return''+'\x20'[_0x224982(0x15e)](_0xe7b78a)+_0xb0f1be;});return'[\x0a'+_0x44974b[_0x1a451f(0x16d)](',\x0a')+('\x0a'+_0x14897b+']');}if(typeof _0x5e4e89==='object'){const _0x5b4443=Object[_0x1a451f(0x165)](_0x5e4e89);if(_0x5b4443[_0x1a451f(0x15d)]===0x0)return'{}';const _0x40a58e=_0x5b4443[_0x1a451f(0x16f)](([_0x45b890,_0xe4563c])=>{const _0x2bae5b=_0x1a451f,_0x233189=colorJSONKey(JSON[_0x2bae5b(0x16b)](_0x45b890),_0xb200a1),_0x552447=colorizeJSON(_0xe4563c,_0xb200a1,_0xe7b78a);return''+'\x20'[_0x2bae5b(0x15e)](_0xe7b78a)+_0x233189+':\x20'+_0x552447;});return'{\x0a'+_0x40a58e[_0x1a451f(0x16d)](',\x0a')+('\x0a'+_0x14897b+'}');}return String(_0x5e4e89);}
1
+ const a214_0x283207=a214_0x2752;(function(_0xdc7c6c,_0x5e7973){const _0x1cff41=a214_0x2752,_0x1e0ef0=_0xdc7c6c();while(!![]){try{const _0x3a0cd0=-parseInt(_0x1cff41(0xf5))/0x1+-parseInt(_0x1cff41(0xf1))/0x2*(parseInt(_0x1cff41(0xe9))/0x3)+-parseInt(_0x1cff41(0xed))/0x4+parseInt(_0x1cff41(0xf7))/0x5+-parseInt(_0x1cff41(0xf2))/0x6*(parseInt(_0x1cff41(0xf4))/0x7)+parseInt(_0x1cff41(0xdf))/0x8+parseInt(_0x1cff41(0xeb))/0x9*(parseInt(_0x1cff41(0xec))/0xa);if(_0x3a0cd0===_0x5e7973)break;else _0x1e0ef0['push'](_0x1e0ef0['shift']());}catch(_0x3a7446){_0x1e0ef0['push'](_0x1e0ef0['shift']());}}}(a214_0x3179,0xafbb9));import*as a214_0xe8e593 from'chalk';function a214_0x3179(){const _0x77ace6=['30700DRSCDJ','entries','6598860MsOPKk','repeat','number','blue','yellow','9869064VYLzDM','dim','object','boolean','map','stdout','string','Chalk','join','length','1758sUfhEk','stringify','44739NVyYtQ','10KQRJsk','2259032WAqRpO','null','isArray','noColor','2734EolBjq','2652330ghEGuU','cyan','7zAapMb'];a214_0x3179=function(){return _0x77ace6;};return a214_0x3179();}const Chalk=a214_0xe8e593[a214_0x283207(0xe6)];export function shouldUseColor(_0x38ed18={}){const _0x1b0575=a214_0x283207;if(_0x38ed18[_0x1b0575(0xf0)]===!![])return![];if(_0x38ed18['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x1b0575(0xe4)]['isTTY']??![];}export function getChalk(_0x3364b3={}){if(shouldUseColor(_0x3364b3))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x23509a,_0x5177e9={}){const _0x334b64=a214_0x283207;return getChalk(_0x5177e9)[_0x334b64(0xe0)](_0x23509a);}export function colorHeader(_0x266f98,_0x2f7463={}){return getChalk(_0x2f7463)['cyan'](_0x266f98);}export function colorType(_0x4cceb6,_0x3ecd97={}){const _0x4494de=a214_0x283207;return getChalk(_0x3ecd97)[_0x4494de(0xe0)](_0x4cceb6);}function a214_0x2752(_0x1ade7c,_0x39c9ef){_0x1ade7c=_0x1ade7c-0xdd;const _0x317904=a214_0x3179();let _0x27524b=_0x317904[_0x1ade7c];return _0x27524b;}export function colorJSONKey(_0x2f5ebc,_0x28f3b7={}){const _0x343d04=a214_0x283207;return getChalk(_0x28f3b7)[_0x343d04(0xdd)](_0x2f5ebc);}export function colorJSONString(_0x25fc2b,_0x206ed1={}){return getChalk(_0x206ed1)['green'](_0x25fc2b);}export function colorJSONNumber(_0x59c169,_0x36f573={}){const _0x5dc9df=a214_0x283207;return getChalk(_0x36f573)[_0x5dc9df(0xf3)](_0x59c169);}export function colorJSONBoolean(_0x109f82,_0x5eb338={}){const _0xfc55c2=a214_0x283207;return getChalk(_0x5eb338)[_0xfc55c2(0xde)](_0x109f82);}export function colorJSONNull(_0x48629f,_0x5e8417={}){return getChalk(_0x5e8417)['dim'](_0x48629f);}export function colorizeJSONCompact(_0x5d5fee,_0x37dd25={}){const _0x24681a=a214_0x283207;if(!shouldUseColor(_0x37dd25))return JSON[_0x24681a(0xea)](_0x5d5fee);if(_0x5d5fee===null)return colorJSONNull(_0x24681a(0xee),_0x37dd25);if(typeof _0x5d5fee===_0x24681a(0xe2))return colorJSONBoolean(String(_0x5d5fee),_0x37dd25);if(typeof _0x5d5fee===_0x24681a(0xf9))return colorJSONNumber(String(_0x5d5fee),_0x37dd25);if(typeof _0x5d5fee===_0x24681a(0xe5))return colorJSONString(JSON['stringify'](_0x5d5fee),_0x37dd25);if(Array[_0x24681a(0xef)](_0x5d5fee)){if(_0x5d5fee['length']===0x0)return'[]';const _0x527abe=_0x5d5fee[_0x24681a(0xe3)](_0x3ca2f8=>colorizeJSONCompact(_0x3ca2f8,_0x37dd25));return'['+_0x527abe[_0x24681a(0xe7)](',')+']';}if(typeof _0x5d5fee===_0x24681a(0xe1)){const _0x1c48f5=Object[_0x24681a(0xf6)](_0x5d5fee);if(_0x1c48f5['length']===0x0)return'{}';const _0x44f63a=_0x1c48f5['map'](([_0x3af4ee,_0x15d074])=>{const _0x4897a0=_0x24681a,_0x3d974a=colorJSONKey(JSON[_0x4897a0(0xea)](_0x3af4ee),_0x37dd25),_0x2981cb=colorizeJSONCompact(_0x15d074,_0x37dd25);return _0x3d974a+':'+_0x2981cb;});return'{'+_0x44f63a[_0x24681a(0xe7)](',')+'}';}return String(_0x5d5fee);}export function colorizeJSON(_0x512798,_0x46d1b9={},_0x3944ec=0x0){const _0x58edfc=a214_0x283207;if(!shouldUseColor(_0x46d1b9))return JSON[_0x58edfc(0xea)](_0x512798,null,0x2);const _0x2263ba='\x20'[_0x58edfc(0xf8)](_0x3944ec),_0x2b0fde=_0x3944ec+0x2;if(_0x512798===null)return colorJSONNull('null',_0x46d1b9);if(typeof _0x512798==='boolean')return colorJSONBoolean(String(_0x512798),_0x46d1b9);if(typeof _0x512798===_0x58edfc(0xf9))return colorJSONNumber(String(_0x512798),_0x46d1b9);if(typeof _0x512798===_0x58edfc(0xe5))return colorJSONString(JSON['stringify'](_0x512798),_0x46d1b9);if(Array['isArray'](_0x512798)){if(_0x512798[_0x58edfc(0xe8)]===0x0)return'[]';const _0x149be8=_0x512798[_0x58edfc(0xe3)](_0x59c077=>{const _0x2adbe5=_0x58edfc,_0x48a648=colorizeJSON(_0x59c077,_0x46d1b9,_0x2b0fde);return''+'\x20'[_0x2adbe5(0xf8)](_0x2b0fde)+_0x48a648;});return'[\x0a'+_0x149be8['join'](',\x0a')+('\x0a'+_0x2263ba+']');}if(typeof _0x512798===_0x58edfc(0xe1)){const _0x23fe52=Object[_0x58edfc(0xf6)](_0x512798);if(_0x23fe52[_0x58edfc(0xe8)]===0x0)return'{}';const _0x15efb1=_0x23fe52[_0x58edfc(0xe3)](([_0x2ce673,_0x524b30])=>{const _0x40879e=_0x58edfc,_0x21e477=colorJSONKey(JSON[_0x40879e(0xea)](_0x2ce673),_0x46d1b9),_0x2a51b0=colorizeJSON(_0x524b30,_0x46d1b9,_0x2b0fde);return''+'\x20'[_0x40879e(0xf8)](_0x2b0fde)+_0x21e477+':\x20'+_0x2a51b0;});return'{\x0a'+_0x15efb1['join'](',\x0a')+('\x0a'+_0x2263ba+'}');}return String(_0x512798);}
@@ -1 +1 @@
1
- (function(_0x26fddd,_0x47e1d6){const _0x1546fe=a215_0x3bed,_0x304726=_0x26fddd();while(!![]){try{const _0x479a33=-parseInt(_0x1546fe(0x201))/0x1*(parseInt(_0x1546fe(0x20e))/0x2)+-parseInt(_0x1546fe(0x1f9))/0x3*(parseInt(_0x1546fe(0x1fa))/0x4)+parseInt(_0x1546fe(0x1f3))/0x5+-parseInt(_0x1546fe(0x20a))/0x6*(parseInt(_0x1546fe(0x20c))/0x7)+-parseInt(_0x1546fe(0x214))/0x8+parseInt(_0x1546fe(0x1ff))/0x9*(-parseInt(_0x1546fe(0x1f4))/0xa)+parseInt(_0x1546fe(0x1fb))/0xb;if(_0x479a33===_0x47e1d6)break;else _0x304726['push'](_0x304726['shift']());}catch(_0x3fd6b2){_0x304726['push'](_0x304726['shift']());}}}(a215_0x5ad6,0x26356));import a215_0x169e4e from'chalk';function a215_0x5ad6(){const _0x4db0ae=['length','360PgUHCz','map','41rftSvT','removed','push','add','dim','old','has','split','\x20-\x20','420oRogen','some','16723xVDzmQ','padStart','5094UujutV','repeat','content','min','\x20\x20\x20','max','954496LxTNUH','fill','type','red','forEach','625445doRUAd','66750FzbXgu','join','unchanged','\x20+\x20','added','3yuBQRZ','934792bJrPVi','10153880EzGrks','cyan','size'];a215_0x5ad6=function(){return _0x4db0ae;};return a215_0x5ad6();}function a215_0x3bed(_0x44335f,_0x1a7c71){_0x44335f=_0x44335f-0x1f3;const _0x5ad697=a215_0x5ad6();let _0x3bed05=_0x5ad697[_0x44335f];return _0x3bed05;}export function generateDiff(_0x593bd5,_0x1d58ef){const _0x406d4b=a215_0x3bed,_0x4cf7f7=_0x593bd5[_0x406d4b(0x208)]('\x0a'),_0x40dd06=_0x1d58ef[_0x406d4b(0x208)]('\x0a'),_0x5bb2cc=[],_0xc23cac=computeLCS(_0x4cf7f7,_0x40dd06);let _0x504629=0x0,_0x189eb7=0x0,_0x5c6f87=0x0;while(_0x504629<_0x4cf7f7[_0x406d4b(0x1fe)]||_0x189eb7<_0x40dd06[_0x406d4b(0x1fe)]){if(_0x5c6f87<_0xc23cac[_0x406d4b(0x1fe)]&&_0x504629<_0x4cf7f7[_0x406d4b(0x1fe)]&&_0x4cf7f7[_0x504629]===_0xc23cac[_0x5c6f87])_0x189eb7<_0x40dd06[_0x406d4b(0x1fe)]&&_0x40dd06[_0x189eb7]===_0xc23cac[_0x5c6f87]?(_0x5bb2cc[_0x406d4b(0x203)]({'type':_0x406d4b(0x1f6),'content':_0x4cf7f7[_0x504629]}),_0x504629++,_0x189eb7++,_0x5c6f87++):(_0x5bb2cc[_0x406d4b(0x203)]({'type':_0x406d4b(0x1f8),'content':_0x40dd06[_0x189eb7]}),_0x189eb7++);else{if(_0x5c6f87<_0xc23cac['length']&&_0x189eb7<_0x40dd06[_0x406d4b(0x1fe)]&&_0x40dd06[_0x189eb7]===_0xc23cac[_0x5c6f87])_0x5bb2cc['push']({'type':_0x406d4b(0x202),'content':_0x4cf7f7[_0x504629]}),_0x504629++;else{if(_0x504629<_0x4cf7f7[_0x406d4b(0x1fe)]&&(_0x5c6f87>=_0xc23cac[_0x406d4b(0x1fe)]||_0x4cf7f7[_0x504629]!==_0xc23cac[_0x5c6f87]))_0x5bb2cc[_0x406d4b(0x203)]({'type':_0x406d4b(0x202),'content':_0x4cf7f7[_0x504629]}),_0x504629++;else _0x189eb7<_0x40dd06[_0x406d4b(0x1fe)]&&(_0x5bb2cc[_0x406d4b(0x203)]({'type':'added','content':_0x40dd06[_0x189eb7]}),_0x189eb7++);}}}return _0x5bb2cc;}function computeLCS(_0x496704,_0x125155){const _0x4913b2=a215_0x3bed,_0x3f4403=_0x496704[_0x4913b2(0x1fe)],_0x252b1e=_0x125155[_0x4913b2(0x1fe)],_0x4f9060=Array(_0x3f4403+0x1)[_0x4913b2(0x215)](null)[_0x4913b2(0x200)](()=>Array(_0x252b1e+0x1)[_0x4913b2(0x215)](0x0));for(let _0x3cc260=0x1;_0x3cc260<=_0x3f4403;_0x3cc260++){for(let _0x4edbfc=0x1;_0x4edbfc<=_0x252b1e;_0x4edbfc++){_0x496704[_0x3cc260-0x1]===_0x125155[_0x4edbfc-0x1]?_0x4f9060[_0x3cc260][_0x4edbfc]=_0x4f9060[_0x3cc260-0x1][_0x4edbfc-0x1]+0x1:_0x4f9060[_0x3cc260][_0x4edbfc]=Math['max'](_0x4f9060[_0x3cc260-0x1][_0x4edbfc],_0x4f9060[_0x3cc260][_0x4edbfc-0x1]);}}const _0x53792f=[];let _0x14cc32=_0x3f4403,_0x43d742=_0x252b1e;while(_0x14cc32>0x0&&_0x43d742>0x0){if(_0x496704[_0x14cc32-0x1]===_0x125155[_0x43d742-0x1])_0x53792f['unshift'](_0x496704[_0x14cc32-0x1]),_0x14cc32--,_0x43d742--;else _0x4f9060[_0x14cc32-0x1][_0x43d742]>_0x4f9060[_0x14cc32][_0x43d742-0x1]?_0x14cc32--:_0x43d742--;}return _0x53792f;}export function formatDiffWithColors(_0x4d9536,_0xaa184=0x3){const _0x4c76b6=a215_0x3bed,_0x5637de=new Set();_0x4d9536[_0x4c76b6(0x218)]((_0x1e57d3,_0x2f66e4)=>{const _0x19ba8a=_0x4c76b6;_0x1e57d3[_0x19ba8a(0x216)]!==_0x19ba8a(0x1f6)&&_0x5637de[_0x19ba8a(0x204)](_0x2f66e4);});if(_0x5637de[_0x4c76b6(0x1fd)]===0x0)return'';const _0x406702=new Set();for(const _0x1ef25 of _0x5637de){for(let _0xc4e6fe=Math[_0x4c76b6(0x213)](0x0,_0x1ef25-_0xaa184);_0xc4e6fe<=Math[_0x4c76b6(0x211)](_0x4d9536['length']-0x1,_0x1ef25+_0xaa184);_0xc4e6fe++){_0x406702[_0x4c76b6(0x204)](_0xc4e6fe);}}const _0x115d30=[];let _0x11ab43=-0x1;const _0x5cc918=_0x4d9536[_0x4c76b6(0x1fe)],_0x3fb8ed=Math['max'](0x3,String(_0x5cc918)[_0x4c76b6(0x1fe)]),_0xce4a3d=[];let _0x1c3647=0x0,_0x462cc2=0x0;for(const _0x16eadf of _0x4d9536){if(_0x16eadf[_0x4c76b6(0x216)]===_0x4c76b6(0x202))_0x1c3647++,_0xce4a3d[_0x4c76b6(0x203)]({'old':_0x1c3647,'new':0x0});else _0x16eadf[_0x4c76b6(0x216)]===_0x4c76b6(0x1f8)?(_0x462cc2++,_0xce4a3d[_0x4c76b6(0x203)]({'old':0x0,'new':_0x462cc2})):(_0x1c3647++,_0x462cc2++,_0xce4a3d[_0x4c76b6(0x203)]({'old':_0x1c3647,'new':_0x462cc2}));}for(let _0x3f652f=0x0;_0x3f652f<_0x4d9536[_0x4c76b6(0x1fe)];_0x3f652f++){if(!_0x406702[_0x4c76b6(0x207)](_0x3f652f))continue;_0x11ab43!==-0x1&&_0x3f652f>_0x11ab43+0x1&&_0x115d30[_0x4c76b6(0x203)](a215_0x169e4e[_0x4c76b6(0x1fc)]('\x20\x20...'));_0x11ab43=_0x3f652f;const _0xbf999c=_0x4d9536[_0x3f652f],_0x4ca0b8=_0xce4a3d[_0x3f652f],_0x4caec8=_0x4ca0b8[_0x4c76b6(0x206)]>0x0?String(_0x4ca0b8[_0x4c76b6(0x206)])[_0x4c76b6(0x20d)](_0x3fb8ed):'\x20'[_0x4c76b6(0x20f)](_0x3fb8ed),_0x57fdc2=_0x4ca0b8['new']>0x0?String(_0x4ca0b8['new'])[_0x4c76b6(0x20d)](_0x3fb8ed):'\x20'[_0x4c76b6(0x20f)](_0x3fb8ed);switch(_0xbf999c[_0x4c76b6(0x216)]){case _0x4c76b6(0x202):_0x115d30[_0x4c76b6(0x203)](a215_0x169e4e[_0x4c76b6(0x217)](_0x4caec8+'\x20'+_0x57fdc2+_0x4c76b6(0x209)+_0xbf999c[_0x4c76b6(0x210)]));break;case _0x4c76b6(0x1f8):_0x115d30[_0x4c76b6(0x203)](a215_0x169e4e['green'](_0x4caec8+'\x20'+_0x57fdc2+_0x4c76b6(0x1f7)+_0xbf999c[_0x4c76b6(0x210)]));break;default:_0x115d30[_0x4c76b6(0x203)](a215_0x169e4e[_0x4c76b6(0x205)](_0x4caec8+'\x20'+_0x57fdc2+_0x4c76b6(0x212)+_0xbf999c[_0x4c76b6(0x210)]));break;}}return _0x115d30[_0x4c76b6(0x1f5)]('\x0a');}export function hasChanges(_0x4405a6){const _0x59c8e0=a215_0x3bed;return _0x4405a6[_0x59c8e0(0x20b)](_0x2afa72=>_0x2afa72[_0x59c8e0(0x216)]!==_0x59c8e0(0x1f6));}
1
+ (function(_0x3156cf,_0x353ca4){const _0x25ac40=a215_0x367f,_0x5981ba=_0x3156cf();while(!![]){try{const _0x272980=parseInt(_0x25ac40(0xe1))/0x1*(-parseInt(_0x25ac40(0xeb))/0x2)+-parseInt(_0x25ac40(0x104))/0x3+parseInt(_0x25ac40(0xf1))/0x4+-parseInt(_0x25ac40(0xea))/0x5*(parseInt(_0x25ac40(0xde))/0x6)+parseInt(_0x25ac40(0xdf))/0x7+parseInt(_0x25ac40(0xf4))/0x8*(-parseInt(_0x25ac40(0xec))/0x9)+parseInt(_0x25ac40(0x103))/0xa;if(_0x272980===_0x353ca4)break;else _0x5981ba['push'](_0x5981ba['shift']());}catch(_0x9bfdc1){_0x5981ba['push'](_0x5981ba['shift']());}}}(a215_0x5406,0xc2e2e));function a215_0x367f(_0x3713a8,_0x139602){_0x3713a8=_0x3713a8-0xde;const _0x540604=a215_0x5406();let _0x367ffe=_0x540604[_0x3713a8];return _0x367ffe;}import a215_0x4f5303 from'chalk';export function generateDiff(_0x159c76,_0x5b7108){const _0x2a75fa=a215_0x367f,_0x3bde6b=_0x159c76[_0x2a75fa(0x101)]('\x0a'),_0x29370d=_0x5b7108['split']('\x0a'),_0x3c1996=[],_0x4e36e7=computeLCS(_0x3bde6b,_0x29370d);let _0x40d4ff=0x0,_0x436d86=0x0,_0x350ccf=0x0;while(_0x40d4ff<_0x3bde6b[_0x2a75fa(0xe2)]||_0x436d86<_0x29370d[_0x2a75fa(0xe2)]){if(_0x350ccf<_0x4e36e7[_0x2a75fa(0xe2)]&&_0x40d4ff<_0x3bde6b[_0x2a75fa(0xe2)]&&_0x3bde6b[_0x40d4ff]===_0x4e36e7[_0x350ccf])_0x436d86<_0x29370d[_0x2a75fa(0xe2)]&&_0x29370d[_0x436d86]===_0x4e36e7[_0x350ccf]?(_0x3c1996[_0x2a75fa(0xe6)]({'type':_0x2a75fa(0xf2),'content':_0x3bde6b[_0x40d4ff]}),_0x40d4ff++,_0x436d86++,_0x350ccf++):(_0x3c1996['push']({'type':_0x2a75fa(0xf0),'content':_0x29370d[_0x436d86]}),_0x436d86++);else{if(_0x350ccf<_0x4e36e7[_0x2a75fa(0xe2)]&&_0x436d86<_0x29370d[_0x2a75fa(0xe2)]&&_0x29370d[_0x436d86]===_0x4e36e7[_0x350ccf])_0x3c1996['push']({'type':'removed','content':_0x3bde6b[_0x40d4ff]}),_0x40d4ff++;else{if(_0x40d4ff<_0x3bde6b[_0x2a75fa(0xe2)]&&(_0x350ccf>=_0x4e36e7[_0x2a75fa(0xe2)]||_0x3bde6b[_0x40d4ff]!==_0x4e36e7[_0x350ccf]))_0x3c1996[_0x2a75fa(0xe6)]({'type':_0x2a75fa(0xfc),'content':_0x3bde6b[_0x40d4ff]}),_0x40d4ff++;else _0x436d86<_0x29370d[_0x2a75fa(0xe2)]&&(_0x3c1996[_0x2a75fa(0xe6)]({'type':_0x2a75fa(0xf0),'content':_0x29370d[_0x436d86]}),_0x436d86++);}}}return _0x3c1996;}function a215_0x5406(){const _0x29e6d5=['\x20\x20\x20','dim','has','push','forEach','add','old','5wxsVUG','23774YlDcnH','1274436ZMpldI','min','repeat','padStart','added','1923240oTichz','unchanged','max','56XankdU','unshift','some','size','content','cyan','\x20+\x20','fill','removed','\x20\x20...','map','join','type','split','new','20962900kQOxth','2083734ZMHvmn','3780294zshcKS','11081455LolszT','red','88ppUPnl','length'];a215_0x5406=function(){return _0x29e6d5;};return a215_0x5406();}function computeLCS(_0x50b8cd,_0x195f3c){const _0x3d1a1e=a215_0x367f,_0x23e459=_0x50b8cd['length'],_0x492a4e=_0x195f3c['length'],_0x522bf1=Array(_0x23e459+0x1)[_0x3d1a1e(0xfb)](null)[_0x3d1a1e(0xfe)](()=>Array(_0x492a4e+0x1)[_0x3d1a1e(0xfb)](0x0));for(let _0x1a8356=0x1;_0x1a8356<=_0x23e459;_0x1a8356++){for(let _0x37fde4=0x1;_0x37fde4<=_0x492a4e;_0x37fde4++){_0x50b8cd[_0x1a8356-0x1]===_0x195f3c[_0x37fde4-0x1]?_0x522bf1[_0x1a8356][_0x37fde4]=_0x522bf1[_0x1a8356-0x1][_0x37fde4-0x1]+0x1:_0x522bf1[_0x1a8356][_0x37fde4]=Math['max'](_0x522bf1[_0x1a8356-0x1][_0x37fde4],_0x522bf1[_0x1a8356][_0x37fde4-0x1]);}}const _0x3786be=[];let _0x1c80f5=_0x23e459,_0x3615b5=_0x492a4e;while(_0x1c80f5>0x0&&_0x3615b5>0x0){if(_0x50b8cd[_0x1c80f5-0x1]===_0x195f3c[_0x3615b5-0x1])_0x3786be[_0x3d1a1e(0xf5)](_0x50b8cd[_0x1c80f5-0x1]),_0x1c80f5--,_0x3615b5--;else _0x522bf1[_0x1c80f5-0x1][_0x3615b5]>_0x522bf1[_0x1c80f5][_0x3615b5-0x1]?_0x1c80f5--:_0x3615b5--;}return _0x3786be;}export function formatDiffWithColors(_0x35167f,_0x183bff=0x3){const _0x5a1c92=a215_0x367f,_0xbf2eb7=new Set();_0x35167f[_0x5a1c92(0xe7)]((_0x24c85c,_0x30ee64)=>{const _0x2ce954=_0x5a1c92;_0x24c85c[_0x2ce954(0x100)]!==_0x2ce954(0xf2)&&_0xbf2eb7[_0x2ce954(0xe8)](_0x30ee64);});if(_0xbf2eb7[_0x5a1c92(0xf7)]===0x0)return'';const _0x3152a2=new Set();for(const _0xcea9d3 of _0xbf2eb7){for(let _0x102318=Math[_0x5a1c92(0xf3)](0x0,_0xcea9d3-_0x183bff);_0x102318<=Math[_0x5a1c92(0xed)](_0x35167f[_0x5a1c92(0xe2)]-0x1,_0xcea9d3+_0x183bff);_0x102318++){_0x3152a2[_0x5a1c92(0xe8)](_0x102318);}}const _0xefe861=[];let _0x446374=-0x1;const _0x4ff15a=_0x35167f[_0x5a1c92(0xe2)],_0x2e3e7a=Math[_0x5a1c92(0xf3)](0x3,String(_0x4ff15a)[_0x5a1c92(0xe2)]),_0x22912f=[];let _0x5e7bf0=0x0,_0x4bfe99=0x0;for(const _0x440348 of _0x35167f){if(_0x440348['type']===_0x5a1c92(0xfc))_0x5e7bf0++,_0x22912f[_0x5a1c92(0xe6)]({'old':_0x5e7bf0,'new':0x0});else _0x440348['type']===_0x5a1c92(0xf0)?(_0x4bfe99++,_0x22912f[_0x5a1c92(0xe6)]({'old':0x0,'new':_0x4bfe99})):(_0x5e7bf0++,_0x4bfe99++,_0x22912f[_0x5a1c92(0xe6)]({'old':_0x5e7bf0,'new':_0x4bfe99}));}for(let _0x451428=0x0;_0x451428<_0x35167f[_0x5a1c92(0xe2)];_0x451428++){if(!_0x3152a2[_0x5a1c92(0xe5)](_0x451428))continue;_0x446374!==-0x1&&_0x451428>_0x446374+0x1&&_0xefe861[_0x5a1c92(0xe6)](a215_0x4f5303[_0x5a1c92(0xf9)](_0x5a1c92(0xfd)));_0x446374=_0x451428;const _0x2f84a1=_0x35167f[_0x451428],_0x4a6ec1=_0x22912f[_0x451428],_0x267b5a=_0x4a6ec1[_0x5a1c92(0xe9)]>0x0?String(_0x4a6ec1[_0x5a1c92(0xe9)])[_0x5a1c92(0xef)](_0x2e3e7a):'\x20'[_0x5a1c92(0xee)](_0x2e3e7a),_0x15d114=_0x4a6ec1[_0x5a1c92(0x102)]>0x0?String(_0x4a6ec1['new'])['padStart'](_0x2e3e7a):'\x20'[_0x5a1c92(0xee)](_0x2e3e7a);switch(_0x2f84a1[_0x5a1c92(0x100)]){case _0x5a1c92(0xfc):_0xefe861[_0x5a1c92(0xe6)](a215_0x4f5303[_0x5a1c92(0xe0)](_0x267b5a+'\x20'+_0x15d114+'\x20-\x20'+_0x2f84a1[_0x5a1c92(0xf8)]));break;case _0x5a1c92(0xf0):_0xefe861['push'](a215_0x4f5303['green'](_0x267b5a+'\x20'+_0x15d114+_0x5a1c92(0xfa)+_0x2f84a1[_0x5a1c92(0xf8)]));break;default:_0xefe861[_0x5a1c92(0xe6)](a215_0x4f5303[_0x5a1c92(0xe4)](_0x267b5a+'\x20'+_0x15d114+_0x5a1c92(0xe3)+_0x2f84a1[_0x5a1c92(0xf8)]));break;}}return _0xefe861[_0x5a1c92(0xff)]('\x0a');}export function hasChanges(_0x382e17){const _0xdaa5f9=a215_0x367f;return _0x382e17[_0xdaa5f9(0xf6)](_0x3415fe=>_0x3415fe[_0xdaa5f9(0x100)]!=='unchanged');}
@@ -1 +1 @@
1
- (function(_0x5c9a81,_0x28e902){const _0x41a2eb=a216_0x5662,_0x52c3e4=_0x5c9a81();while(!![]){try{const _0x2bb91d=-parseInt(_0x41a2eb(0x16b))/0x1+-parseInt(_0x41a2eb(0x15d))/0x2+-parseInt(_0x41a2eb(0x16d))/0x3*(parseInt(_0x41a2eb(0x16e))/0x4)+-parseInt(_0x41a2eb(0x166))/0x5*(-parseInt(_0x41a2eb(0x164))/0x6)+parseInt(_0x41a2eb(0x15c))/0x7+-parseInt(_0x41a2eb(0x168))/0x8+parseInt(_0x41a2eb(0x161))/0x9;if(_0x2bb91d===_0x28e902)break;else _0x52c3e4['push'](_0x52c3e4['shift']());}catch(_0x291d04){_0x52c3e4['push'](_0x52c3e4['shift']());}}}(a216_0x3e3a,0xa698d));import*as a216_0x536dda from'node:fs';import*as a216_0x5ddd0d from'node:path';function a216_0x5662(_0x15c36b,_0x34fa2f){_0x15c36b=_0x15c36b-0x15c;const _0x3e3ab0=a216_0x3e3a();let _0x566297=_0x3e3ab0[_0x15c36b];return _0x566297;}export function setSecureFilePermissions(_0x12d525){const _0x3d3e3b=a216_0x5662;try{a216_0x536dda[_0x3d3e3b(0x15e)](_0x12d525,0x180);}catch{console[_0x3d3e3b(0x15f)](_0x3d3e3b(0x165)+_0x12d525);}}export function setSecureDirectoryPermissions(_0x244c89){const _0x41df0e=a216_0x5662;try{a216_0x536dda['chmodSync'](_0x244c89,0x1c0);}catch{console[_0x41df0e(0x15f)](_0x41df0e(0x165)+_0x244c89);}}export function createSecureDirectory(_0x48ed0f){const _0x392ef5=a216_0x5662;!a216_0x536dda[_0x392ef5(0x162)](_0x48ed0f)&&(a216_0x536dda[_0x392ef5(0x16f)](_0x48ed0f,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x48ed0f));}export function validateSecureFilePermissions(_0x1797aa){const _0x390528=a216_0x5662;try{const _0x35849f=a216_0x536dda['statSync'](_0x1797aa),_0x1009c4=_0x35849f[_0x390528(0x16a)]&0x1ff,_0x17c439=(_0x1009c4&0x3f)!==0x0;if(_0x17c439)return console['warn'](_0x390528(0x169)+_0x1797aa+_0x390528(0x16c)+_0x1009c4['toString'](0x8)+_0x390528(0x160)+_0x390528(0x167)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x4722c6,_0x2d49dc){const _0x5c1790=a216_0x5662,_0x169a07=a216_0x5ddd0d[_0x5c1790(0x163)](_0x4722c6);createSecureDirectory(_0x169a07),a216_0x536dda['writeFileSync'](_0x4722c6,_0x2d49dc,{'mode':0x180}),setSecureFilePermissions(_0x4722c6);}function a216_0x3e3a(){const _0x2c8af2=['5825280xrqmFC','Warning:\x20','mode','608245bzTxun','\x20has\x20insecure\x20permissions\x20(','21201fMCbXi','48YjJcbo','mkdirSync','5982158hUttWv','2401110JfzOWT','chmodSync','warn',').\x20','12233106ZVmsdG','existsSync','dirname','6LzOftJ','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','5451585QDHIDR','Should\x20be\x200600\x20or\x20more\x20restrictive.'];a216_0x3e3a=function(){return _0x2c8af2;};return a216_0x3e3a();}
1
+ function a216_0x227f(_0x142be8,_0x190b31){_0x142be8=_0x142be8-0x1aa;const _0x51886a=a216_0x5188();let _0x227f0e=_0x51886a[_0x142be8];return _0x227f0e;}(function(_0x499f60,_0x463abc){const _0x44e973=a216_0x227f,_0x1ad9cb=_0x499f60();while(!![]){try{const _0x2b140c=-parseInt(_0x44e973(0x1b8))/0x1+-parseInt(_0x44e973(0x1bd))/0x2+-parseInt(_0x44e973(0x1ac))/0x3+parseInt(_0x44e973(0x1b1))/0x4*(parseInt(_0x44e973(0x1b5))/0x5)+parseInt(_0x44e973(0x1aa))/0x6+-parseInt(_0x44e973(0x1ab))/0x7+parseInt(_0x44e973(0x1b6))/0x8;if(_0x2b140c===_0x463abc)break;else _0x1ad9cb['push'](_0x1ad9cb['shift']());}catch(_0x356c24){_0x1ad9cb['push'](_0x1ad9cb['shift']());}}}(a216_0x5188,0x196ee));import*as a216_0xc93a2e from'node:fs';import*as a216_0x5527c6 from'node:path';export function setSecureFilePermissions(_0x3a3ae2){const _0x13a4f7=a216_0x227f;try{a216_0xc93a2e[_0x13a4f7(0x1b9)](_0x3a3ae2,0x180);}catch{console[_0x13a4f7(0x1b2)](_0x13a4f7(0x1b0)+_0x3a3ae2);}}export function setSecureDirectoryPermissions(_0x274116){const _0x515345=a216_0x227f;try{a216_0xc93a2e[_0x515345(0x1b9)](_0x274116,0x1c0);}catch{console[_0x515345(0x1b2)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x274116);}}export function createSecureDirectory(_0x3fa6cb){const _0x30dc61=a216_0x227f;!a216_0xc93a2e[_0x30dc61(0x1af)](_0x3fa6cb)&&(a216_0xc93a2e[_0x30dc61(0x1ba)](_0x3fa6cb,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3fa6cb));}export function validateSecureFilePermissions(_0x608a55){const _0x238481=a216_0x227f;try{const _0x188cdc=a216_0xc93a2e[_0x238481(0x1b7)](_0x608a55),_0x4c359e=_0x188cdc['mode']&0x1ff,_0xa37896=(_0x4c359e&0x3f)!==0x0;if(_0xa37896)return console[_0x238481(0x1b2)](_0x238481(0x1b3)+_0x608a55+_0x238481(0x1bc)+_0x4c359e[_0x238481(0x1ad)](0x8)+_0x238481(0x1b4)+_0x238481(0x1bb)),![];return!![];}catch{return!![];}}function a216_0x5188(){const _0x1e7d5b=['Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','12916IwDGNX','warn','Warning:\x20',').\x20','215gCDjtd','1695920QUVCGU','statSync','156074nBONWv','chmodSync','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','\x20has\x20insecure\x20permissions\x20(','172470MayTue','871344HLgHOk','453292tBEJyk','254466bKFvCS','toString','writeFileSync','existsSync'];a216_0x5188=function(){return _0x1e7d5b;};return a216_0x5188();}export function writeSecureFile(_0x3513eb,_0x2ce23f){const _0x5e245d=a216_0x227f,_0x552360=a216_0x5527c6['dirname'](_0x3513eb);createSecureDirectory(_0x552360),a216_0xc93a2e[_0x5e245d(0x1ae)](_0x3513eb,_0x2ce23f,{'mode':0x180}),setSecureFilePermissions(_0x3513eb);}
@@ -1 +1 @@
1
- function a217_0x1f61(_0x4dbebb,_0x58b3a5){_0x4dbebb=_0x4dbebb-0x116;const _0x2308fe=a217_0x2308();let _0x1f612b=_0x2308fe[_0x4dbebb];return _0x1f612b;}(function(_0x2bf613,_0x1620b6){const _0x232fcf=a217_0x1f61,_0x117eaf=_0x2bf613();while(!![]){try{const _0x56318a=parseInt(_0x232fcf(0x118))/0x1*(parseInt(_0x232fcf(0x11c))/0x2)+-parseInt(_0x232fcf(0x117))/0x3+-parseInt(_0x232fcf(0x123))/0x4*(parseInt(_0x232fcf(0x128))/0x5)+parseInt(_0x232fcf(0x126))/0x6*(parseInt(_0x232fcf(0x124))/0x7)+parseInt(_0x232fcf(0x11a))/0x8*(-parseInt(_0x232fcf(0x122))/0x9)+-parseInt(_0x232fcf(0x125))/0xa*(parseInt(_0x232fcf(0x127))/0xb)+parseInt(_0x232fcf(0x12a))/0xc;if(_0x56318a===_0x1620b6)break;else _0x117eaf['push'](_0x117eaf['shift']());}catch(_0x591659){_0x117eaf['push'](_0x117eaf['shift']());}}}(a217_0x2308,0xac94b));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a217_0x2308(){const _0x5789c3=['utf-8','12187035kbtDeA','4GbcwZw','1102633saFlwK','190bIEMdO','6kYaMZA','251350etXbRl','5491015wGeDRk','\x27:\x20','44777424OcaryA','PERMISSION_DENIED','File\x20\x27','2541573BeyCQU','1JXtVlx','ENOENT','8uiwxph','code','1103158mSuLDe','message','\x27\x20not\x20found','INTERNAL','EACCES'];a217_0x2308=function(){return _0x5789c3;};return a217_0x2308();}export function readFileContent(_0x49760f){const _0x43405c=a217_0x1f61;try{return readFileSync(_0x49760f,_0x43405c(0x121));}catch(_0x392463){const _0x332a09=_0x392463[_0x43405c(0x11b)];if(_0x332a09===_0x43405c(0x119))throw new SDKError(ErrorCode['NOT_FOUND'],_0x43405c(0x116)+_0x49760f+_0x43405c(0x11e),_0x392463);else{if(_0x332a09===_0x43405c(0x120))throw new SDKError(ErrorCode[_0x43405c(0x12b)],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x49760f+'\x27',_0x392463);else throw new SDKError(ErrorCode[_0x43405c(0x11f)],'Error\x20reading\x20file\x20\x27'+_0x49760f+_0x43405c(0x129)+_0x392463[_0x43405c(0x11d)],_0x392463);}}}
1
+ (function(_0x17ca9e,_0x22a0f1){const _0x1e2de8=a217_0x2417,_0x9b0361=_0x17ca9e();while(!![]){try{const _0x55c1b7=-parseInt(_0x1e2de8(0x1a0))/0x1+-parseInt(_0x1e2de8(0x19d))/0x2*(-parseInt(_0x1e2de8(0x1a1))/0x3)+parseInt(_0x1e2de8(0x1a6))/0x4*(-parseInt(_0x1e2de8(0x19f))/0x5)+parseInt(_0x1e2de8(0x19b))/0x6*(-parseInt(_0x1e2de8(0x19a))/0x7)+parseInt(_0x1e2de8(0x1a3))/0x8+-parseInt(_0x1e2de8(0x1a5))/0x9*(parseInt(_0x1e2de8(0x19c))/0xa)+parseInt(_0x1e2de8(0x1aa))/0xb;if(_0x55c1b7===_0x22a0f1)break;else _0x9b0361['push'](_0x9b0361['shift']());}catch(_0x94cfc2){_0x9b0361['push'](_0x9b0361['shift']());}}}(a217_0x28e2,0x814b9));function a217_0x2417(_0x167a9a,_0x11c6f5){_0x167a9a=_0x167a9a-0x199;const _0x28e291=a217_0x28e2();let _0x2417ed=_0x28e291[_0x167a9a];return _0x2417ed;}import{readFileSync}from'fs';function a217_0x28e2(){const _0x4043a6=['4998843vVblJQ','1208Fftibz','message','INTERNAL','PERMISSION_DENIED','28332238frOyHh','File\x20\x27','ENOENT','7zZvkQB','594138bkRcTE','10OfOoWZ','509868RlPsxH','EACCES','16385DHBhzH','710512CErHOx','3Ihvznv','utf-8','428936XLzLSs','Permission\x20denied\x20reading\x20file\x20\x27'];a217_0x28e2=function(){return _0x4043a6;};return a217_0x28e2();}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x37967a){const _0x58d8db=a217_0x2417;try{return readFileSync(_0x37967a,_0x58d8db(0x1a2));}catch(_0x247d48){const _0x5e8415=_0x247d48['code'];if(_0x5e8415===_0x58d8db(0x199))throw new SDKError(ErrorCode['NOT_FOUND'],_0x58d8db(0x1ab)+_0x37967a+'\x27\x20not\x20found',_0x247d48);else{if(_0x5e8415===_0x58d8db(0x19e))throw new SDKError(ErrorCode[_0x58d8db(0x1a9)],_0x58d8db(0x1a4)+_0x37967a+'\x27',_0x247d48);else throw new SDKError(ErrorCode[_0x58d8db(0x1a8)],'Error\x20reading\x20file\x20\x27'+_0x37967a+'\x27:\x20'+_0x247d48[_0x58d8db(0x1a7)],_0x247d48);}}}
@@ -1 +1 @@
1
- (function(_0x4483a8,_0x497037){const _0x2eaa32=a218_0x12a5,_0x3d7b4a=_0x4483a8();while(!![]){try{const _0x5405c6=-parseInt(_0x2eaa32(0x1bd))/0x1*(parseInt(_0x2eaa32(0x1c9))/0x2)+-parseInt(_0x2eaa32(0x1c4))/0x3*(-parseInt(_0x2eaa32(0x1cc))/0x4)+-parseInt(_0x2eaa32(0x1c5))/0x5*(-parseInt(_0x2eaa32(0x1d0))/0x6)+-parseInt(_0x2eaa32(0x1c7))/0x7+parseInt(_0x2eaa32(0x1bf))/0x8*(-parseInt(_0x2eaa32(0x1b4))/0x9)+parseInt(_0x2eaa32(0x1bb))/0xa*(-parseInt(_0x2eaa32(0x1b3))/0xb)+parseInt(_0x2eaa32(0x1bc))/0xc;if(_0x5405c6===_0x497037)break;else _0x3d7b4a['push'](_0x3d7b4a['shift']());}catch(_0x4fa254){_0x3d7b4a['push'](_0x3d7b4a['shift']());}}}(a218_0x2d0a,0x5f2b7));function a218_0x12a5(_0x3db78d,_0x5cd8b8){_0x3db78d=_0x3db78d-0x1b3;const _0x2d0a67=a218_0x2d0a();let _0x12a510=_0x2d0a67[_0x3db78d];return _0x12a510;}import*as a218_0x34cf81 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0xa2bb21,_0x3b024d,_0x1dae92){const _0x595575=a218_0x12a5,_0x593f6d=_0xa2bb21+'/'+_0x3b024d,_0xcb8329=cache[_0x595575(0x1c6)](_0x593f6d);if(_0xcb8329&&Date[_0x595575(0x1ba)]()-_0xcb8329[_0x595575(0x1cd)]<CACHE_TTL_MS)return Promise[_0x595575(0x1b9)](_0xcb8329[_0x595575(0x1c2)]);return new Promise((_0x5d4749,_0x2026ac)=>{const _0x13a6ff=_0x595575,_0x1dd180={'hostname':'api.github.com','path':_0x13a6ff(0x1c8)+_0xa2bb21+'/'+_0x3b024d+_0x13a6ff(0x1b7),'headers':{'User-Agent':_0x1dae92,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x7a0f78=a218_0x34cf81[_0x13a6ff(0x1c6)](_0x1dd180,_0x152aed=>{const _0x308117=_0x13a6ff;let _0x731688='';_0x152aed['on']('data',_0x670ded=>{const _0x50439f=a218_0x12a5;_0x731688+=_0x670ded[_0x50439f(0x1cb)]();}),_0x152aed['on'](_0x308117(0x1c0),()=>{const _0x43bd5c=_0x308117;if(_0x152aed[_0x43bd5c(0x1ce)]!==0xc8){_0x2026ac(new Error(_0x43bd5c(0x1b5)+_0x152aed[_0x43bd5c(0x1ce)]+':\x20'+_0x731688[_0x43bd5c(0x1c3)](0x0,0xc8)));return;}try{const _0x4a6457=JSON['parse'](_0x731688);cache[_0x43bd5c(0x1c1)](_0x593f6d,{'releases':_0x4a6457,'fetchedAt':Date[_0x43bd5c(0x1ba)]()}),_0x5d4749(_0x4a6457);}catch(_0x55e361){_0x2026ac(_0x55e361);}});});_0x7a0f78['on']('timeout',()=>{const _0x22f18a=_0x13a6ff;_0x7a0f78[_0x22f18a(0x1ca)](),_0x2026ac(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x7a0f78['on'](_0x13a6ff(0x1cf),_0x2026ac);});}export async function resolveReleaseTag(_0x49fe6f,_0x4caefc,_0x2f8299,_0x30e503){const _0x5a9929=a218_0x12a5;if(_0x49fe6f==='next')return null;const _0x51b506=await fetchGitHubReleases(_0x4caefc,_0x2f8299,_0x30e503);if(_0x51b506['length']===0x0)return null;const _0x8fcc59=_0x51b506[_0x5a9929(0x1b8)](_0x15e334=>!_0x15e334[_0x5a9929(0x1b6)]);return _0x8fcc59?_0x8fcc59[_0x5a9929(0x1be)]:null;}function a218_0x2d0a(){const _0x2ce204=['set','releases','slice','6UyRtyb','222745tPGZCt','get','1974574LFNAAs','/repos/','4510DLIqNJ','destroy','toString','981012REARgo','fetchedAt','statusCode','error','66rxxcph','2211SbcBxf','9adtQbl','GitHub\x20API\x20returned\x20','prerelease','/releases?per_page=20','find','resolve','now','33540GoRwRQ','13792860ilDTMJ','43EwFfRe','tag_name','5495472cOulYB','end'];a218_0x2d0a=function(){return _0x2ce204;};return a218_0x2d0a();}
1
+ (function(_0x20218b,_0x4b9254){const _0x3728b9=a218_0xeac0,_0x412d14=_0x20218b();while(!![]){try{const _0x4ed7d6=-parseInt(_0x3728b9(0x1b0))/0x1*(-parseInt(_0x3728b9(0x1a2))/0x2)+parseInt(_0x3728b9(0x1b2))/0x3+-parseInt(_0x3728b9(0x1ab))/0x4+parseInt(_0x3728b9(0x19e))/0x5*(parseInt(_0x3728b9(0x1bb))/0x6)+-parseInt(_0x3728b9(0x1a0))/0x7*(parseInt(_0x3728b9(0x1b1))/0x8)+parseInt(_0x3728b9(0x1a1))/0x9+parseInt(_0x3728b9(0x1b9))/0xa*(-parseInt(_0x3728b9(0x1a6))/0xb);if(_0x4ed7d6===_0x4b9254)break;else _0x412d14['push'](_0x412d14['shift']());}catch(_0x4fc197){_0x412d14['push'](_0x412d14['shift']());}}}(a218_0x1fba,0x634c2));import*as a218_0x49e4f1 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a218_0xeac0(_0x3284d8,_0x455e85){_0x3284d8=_0x3284d8-0x19c;const _0x1fba9c=a218_0x1fba();let _0xeac052=_0x1fba9c[_0x3284d8];return _0xeac052;}function a218_0x1fba(){const _0x5d43af=['application/vnd.github+json','prerelease','26080XHwrTc','statusCode','12fQCBNz','releases','length','GitHub\x20API\x20returned\x20','end','1460465vrdTyL','timeout','2378733kGiDxX','1357497UMddXc','1089938XYxNFp','data','resolve','destroy','3707TEBaCl','slice','find','error','/releases?per_page=20','300876PJRRPI','set','parse','api.github.com','fetchedAt','1ySRhdw','16MSeusl','2281461zxCtEe','next','now','get','GitHub\x20API\x20request\x20timed\x20out\x20after\x20'];a218_0x1fba=function(){return _0x5d43af;};return a218_0x1fba();}export function fetchGitHubReleases(_0x3e6547,_0x5c4687,_0x31767a){const _0x5bb19c=a218_0xeac0,_0xcef975=_0x3e6547+'/'+_0x5c4687,_0xf56b02=cache['get'](_0xcef975);if(_0xf56b02&&Date[_0x5bb19c(0x1b4)]()-_0xf56b02[_0x5bb19c(0x1af)]<CACHE_TTL_MS)return Promise[_0x5bb19c(0x1a4)](_0xf56b02[_0x5bb19c(0x1bc)]);return new Promise((_0x4f9e01,_0x25da87)=>{const _0x33d637=_0x5bb19c,_0x5efb3d={'hostname':_0x33d637(0x1ae),'path':'/repos/'+_0x3e6547+'/'+_0x5c4687+_0x33d637(0x1aa),'headers':{'User-Agent':_0x31767a,'Accept':_0x33d637(0x1b7)},'timeout':REQUEST_TIMEOUT_MS},_0x5930dc=a218_0x49e4f1[_0x33d637(0x1b5)](_0x5efb3d,_0x2de3f9=>{const _0x173def=_0x33d637;let _0x396684='';_0x2de3f9['on'](_0x173def(0x1a3),_0x2bc351=>{_0x396684+=_0x2bc351['toString']();}),_0x2de3f9['on'](_0x173def(0x19d),()=>{const _0x35432b=_0x173def;if(_0x2de3f9[_0x35432b(0x1ba)]!==0xc8){_0x25da87(new Error(_0x35432b(0x19c)+_0x2de3f9[_0x35432b(0x1ba)]+':\x20'+_0x396684[_0x35432b(0x1a7)](0x0,0xc8)));return;}try{const _0x48f7bc=JSON[_0x35432b(0x1ad)](_0x396684);cache[_0x35432b(0x1ac)](_0xcef975,{'releases':_0x48f7bc,'fetchedAt':Date[_0x35432b(0x1b4)]()}),_0x4f9e01(_0x48f7bc);}catch(_0x34f3ac){_0x25da87(_0x34f3ac);}});});_0x5930dc['on'](_0x33d637(0x19f),()=>{const _0x581a8d=_0x33d637;_0x5930dc[_0x581a8d(0x1a5)](),_0x25da87(new Error(_0x581a8d(0x1b6)+REQUEST_TIMEOUT_MS+'ms'));}),_0x5930dc['on'](_0x33d637(0x1a9),_0x25da87);});}export async function resolveReleaseTag(_0x4978e8,_0x2b674b,_0x4d95cf,_0x5264e1){const _0x2a686=a218_0xeac0;if(_0x4978e8===_0x2a686(0x1b3))return null;const _0x5bca45=await fetchGitHubReleases(_0x2b674b,_0x4d95cf,_0x5264e1);if(_0x5bca45[_0x2a686(0x1bd)]===0x0)return null;const _0x427113=_0x5bca45[_0x2a686(0x1a8)](_0x595e54=>!_0x595e54[_0x2a686(0x1b8)]);return _0x427113?_0x427113['tag_name']:null;}
@@ -1 +1 @@
1
- (function(_0x409c56,_0x1eeef3){const _0x1444a5=a219_0x40e0,_0x5f360d=_0x409c56();while(!![]){try{const _0x142f0a=-parseInt(_0x1444a5(0x13d))/0x1+parseInt(_0x1444a5(0x139))/0x2*(-parseInt(_0x1444a5(0x14b))/0x3)+parseInt(_0x1444a5(0x147))/0x4+-parseInt(_0x1444a5(0x138))/0x5*(-parseInt(_0x1444a5(0x137))/0x6)+parseInt(_0x1444a5(0x142))/0x7*(parseInt(_0x1444a5(0x13f))/0x8)+-parseInt(_0x1444a5(0x143))/0x9+parseInt(_0x1444a5(0x13e))/0xa;if(_0x142f0a===_0x1eeef3)break;else _0x5f360d['push'](_0x5f360d['shift']());}catch(_0x169e14){_0x5f360d['push'](_0x5f360d['shift']());}}}(a219_0x46a3,0xf03f7));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x1ad2e0=a219_0x40e0;return process.env.TDX_CACHE_DIR||join(homedir(),_0x1ad2e0(0x13b),_0x1ad2e0(0x145));}const registry=new Map();export function registerGlobalCacheKey(_0x343ade,_0x1394c0){const _0x5aaba6=a219_0x40e0,_0x3a4746=registry['get'](_0x343ade);if(_0x3a4746&&_0x3a4746!==_0x1394c0)throw new Error(_0x5aaba6(0x141)+_0x343ade+'\x22\x20already\x20registered\x20by\x20\x22'+_0x3a4746+_0x5aaba6(0x140)+_0x1394c0+'\x22');registry[_0x5aaba6(0x148)](_0x343ade,_0x1394c0);}export function getGlobalCachePath(_0x25c129){return join(getGlobalCacheDir(),_0x25c129);}function ensureGlobalCacheDir(){const _0x47e8ab=getGlobalCacheDir();!existsSync(_0x47e8ab)&&mkdirSync(_0x47e8ab,{'recursive':!![]});}function readCacheJson(_0x47e7d6){const _0x1a5457=a219_0x40e0,_0xebecb3=getGlobalCachePath(_0x47e7d6);if(!existsSync(_0xebecb3))return undefined;try{const _0x519919=readFileSync(_0xebecb3,_0x1a5457(0x149));return JSON[_0x1a5457(0x14a)](_0x519919);}catch{return undefined;}}function writeCacheJson(_0x23501f,_0xf98159){const _0x59d1a8=a219_0x40e0;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x23501f),JSON[_0x59d1a8(0x144)](_0xf98159,null,0x2),_0x59d1a8(0x149));}function readCacheText(_0x5847f9){const _0x34c6e0=getGlobalCachePath(_0x5847f9);if(!existsSync(_0x34c6e0))return undefined;try{return readFileSync(_0x34c6e0,'utf-8');}catch{return undefined;}}function writeCacheText(_0x54d68d,_0x415821){const _0x4b897d=a219_0x40e0;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x54d68d),_0x415821,_0x4b897d(0x149));}function clearCache(_0x55e914){const _0x5916c5=getGlobalCachePath(_0x55e914);if(existsSync(_0x5916c5))try{unlinkSync(_0x5916c5);}catch{}}function cacheExists(_0x48eac1){return existsSync(getGlobalCachePath(_0x48eac1));}export function createGlobalCache(_0x2a27f4,_0x4cf4bc){return registerGlobalCacheKey(_0x2a27f4,_0x4cf4bc),{'read':()=>readCacheJson(_0x2a27f4),'write':_0x31ec34=>writeCacheJson(_0x2a27f4,_0x31ec34),'clear':()=>clearCache(_0x2a27f4),'exists':()=>cacheExists(_0x2a27f4),'path':()=>getGlobalCachePath(_0x2a27f4)};}export function createGlobalTextCache(_0x19454d,_0x3b77bd){return registerGlobalCacheKey(_0x19454d,_0x3b77bd),{'read':()=>readCacheText(_0x19454d)?.['trim']()||undefined,'write':_0x200fe1=>writeCacheText(_0x19454d,_0x200fe1),'clear':()=>clearCache(_0x19454d),'exists':()=>cacheExists(_0x19454d),'path':()=>getGlobalCachePath(_0x19454d)};}function a219_0x46a3(){const _0x1a3fb9=['7GBOuRB','286335gjkWwQ','stringify','tdx','{profile}','914988InulJE','set','utf-8','parse','392940yfZdFC','3416412ULXokV','5MlZizR','10TBewuJ','replace','.cache','clear','419678AYiBWk','6518280OdeJYx','5123768buwrUo','\x22,\x20cannot\x20register\x20for\x20\x22','Global\x20cache\x20key\x20\x22'];a219_0x46a3=function(){return _0x1a3fb9;};return a219_0x46a3();}export function createProfileCache(_0x233f3f,_0x151d75){const _0x2f910a=_0x19f839=>{const _0x31b9e2=a219_0x40e0,_0x5f585a=_0x19f839||'default';return _0x233f3f[_0x31b9e2(0x13a)](_0x31b9e2(0x146),_0x5f585a);};return{'read':_0x250f88=>{const _0x1453fb=_0x2f910a(_0x250f88);return registerGlobalCacheKey(_0x1453fb,_0x151d75),readCacheJson(_0x1453fb);},'write':(_0x3e7f62,_0x435552)=>{const _0x27a159=_0x2f910a(_0x3e7f62);registerGlobalCacheKey(_0x27a159,_0x151d75),writeCacheJson(_0x27a159,_0x435552);},'clear':_0x572bf3=>{const _0x60c9da=_0x2f910a(_0x572bf3);clearCache(_0x60c9da);},'exists':_0x11745b=>{const _0x22763d=_0x2f910a(_0x11745b);return cacheExists(_0x22763d);},'path':_0x401f5d=>{const _0x3e3f92=_0x2f910a(_0x401f5d);return getGlobalCachePath(_0x3e3f92);}};}export function createOptionalProfileCache(_0x3cd8c7,_0xdae18f,_0x1bed62={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x1bed62,_0x33d5b8=_0x54c124=>{return _0x54c124?''+_0x3cd8c7+profileSeparator+_0x54c124+suffix:''+_0x3cd8c7+suffix;};return{'read':_0x35f6c1=>{const _0x6b6d1c=_0x33d5b8(_0x35f6c1);return registerGlobalCacheKey(_0x6b6d1c,_0xdae18f),readCacheJson(_0x6b6d1c);},'write':(_0x35929d,_0x1cae32)=>{const _0x551c72=_0x33d5b8(_0x1cae32);registerGlobalCacheKey(_0x551c72,_0xdae18f),writeCacheJson(_0x551c72,_0x35929d);},'clear':_0x22d5d2=>{const _0x11e97d=_0x33d5b8(_0x22d5d2);clearCache(_0x11e97d);},'exists':_0x2c71f8=>{const _0x55fbd5=_0x33d5b8(_0x2c71f8);return cacheExists(_0x55fbd5);},'path':_0x2095fa=>{const _0x3be2a8=_0x33d5b8(_0x2095fa);return getGlobalCachePath(_0x3be2a8);}};}function a219_0x40e0(_0xafa25c,_0x216fd1){_0xafa25c=_0xafa25c-0x137;const _0x46a33e=a219_0x46a3();let _0x40e093=_0x46a33e[_0xafa25c];return _0x40e093;}export function clearGlobalRegistry(){const _0x3c55aa=a219_0x40e0;registry[_0x3c55aa(0x13c)]();}
1
+ (function(_0x525ad6,_0x3ce090){const _0x316824=a219_0x1c2f,_0x414218=_0x525ad6();while(!![]){try{const _0x52af2f=parseInt(_0x316824(0x102))/0x1*(-parseInt(_0x316824(0xfa))/0x2)+parseInt(_0x316824(0x103))/0x3+parseInt(_0x316824(0x101))/0x4+parseInt(_0x316824(0xfb))/0x5+-parseInt(_0x316824(0x104))/0x6*(-parseInt(_0x316824(0x100))/0x7)+parseInt(_0x316824(0xfd))/0x8+-parseInt(_0x316824(0xfe))/0x9;if(_0x52af2f===_0x3ce090)break;else _0x414218['push'](_0x414218['shift']());}catch(_0x35e666){_0x414218['push'](_0x414218['shift']());}}}(a219_0x443b,0x8a663));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x48a7ad=a219_0x1c2f;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x48a7ad(0x107));}const registry=new Map();export function registerGlobalCacheKey(_0x34c071,_0x130445){const _0x34df0c=a219_0x1c2f,_0x5032b2=registry[_0x34df0c(0x106)](_0x34c071);if(_0x5032b2&&_0x5032b2!==_0x130445)throw new Error(_0x34df0c(0xfc)+_0x34c071+_0x34df0c(0xff)+_0x5032b2+_0x34df0c(0x105)+_0x130445+'\x22');registry[_0x34df0c(0x108)](_0x34c071,_0x130445);}export function getGlobalCachePath(_0x3ba940){return join(getGlobalCacheDir(),_0x3ba940);}function a219_0x1c2f(_0x386a83,_0x35c0d1){_0x386a83=_0x386a83-0xf9;const _0x443b58=a219_0x443b();let _0x1c2f1b=_0x443b58[_0x386a83];return _0x1c2f1b;}function ensureGlobalCacheDir(){const _0x585201=getGlobalCacheDir();!existsSync(_0x585201)&&mkdirSync(_0x585201,{'recursive':!![]});}function a219_0x443b(){const _0x45956e=['trim','359878iYWDOY','3694450jeHsmm','Global\x20cache\x20key\x20\x22','1344056GrqmmF','10484883cUUxBL','\x22\x20already\x20registered\x20by\x20\x22','2321501ZoImjB','1267940SyBmGt','3dBGRGj','2148486xHOKcc','6cxGSBe','\x22,\x20cannot\x20register\x20for\x20\x22','get','tdx','set','utf-8','parse','default'];a219_0x443b=function(){return _0x45956e;};return a219_0x443b();}function readCacheJson(_0x555aed){const _0x11684e=a219_0x1c2f,_0x53fe66=getGlobalCachePath(_0x555aed);if(!existsSync(_0x53fe66))return undefined;try{const _0x450071=readFileSync(_0x53fe66,_0x11684e(0x109));return JSON[_0x11684e(0x10a)](_0x450071);}catch{return undefined;}}function writeCacheJson(_0x1b40a5,_0x9a0019){const _0x294196=a219_0x1c2f;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1b40a5),JSON['stringify'](_0x9a0019,null,0x2),_0x294196(0x109));}function readCacheText(_0x4946ed){const _0x3414bd=a219_0x1c2f,_0x36eb59=getGlobalCachePath(_0x4946ed);if(!existsSync(_0x36eb59))return undefined;try{return readFileSync(_0x36eb59,_0x3414bd(0x109));}catch{return undefined;}}function writeCacheText(_0x3a28ce,_0x5aede9){const _0x13c012=a219_0x1c2f;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3a28ce),_0x5aede9,_0x13c012(0x109));}function clearCache(_0x483e07){const _0x7bbacd=getGlobalCachePath(_0x483e07);if(existsSync(_0x7bbacd))try{unlinkSync(_0x7bbacd);}catch{}}function cacheExists(_0x4a7d87){return existsSync(getGlobalCachePath(_0x4a7d87));}export function createGlobalCache(_0x3839d9,_0x16527a){return registerGlobalCacheKey(_0x3839d9,_0x16527a),{'read':()=>readCacheJson(_0x3839d9),'write':_0x1589cd=>writeCacheJson(_0x3839d9,_0x1589cd),'clear':()=>clearCache(_0x3839d9),'exists':()=>cacheExists(_0x3839d9),'path':()=>getGlobalCachePath(_0x3839d9)};}export function createGlobalTextCache(_0x36e88e,_0x4309cf){const _0x2e364e=a219_0x1c2f;return registerGlobalCacheKey(_0x36e88e,_0x4309cf),{'read':()=>readCacheText(_0x36e88e)?.[_0x2e364e(0xf9)]()||undefined,'write':_0x77198d=>writeCacheText(_0x36e88e,_0x77198d),'clear':()=>clearCache(_0x36e88e),'exists':()=>cacheExists(_0x36e88e),'path':()=>getGlobalCachePath(_0x36e88e)};}export function createProfileCache(_0x3d7f81,_0x1c133e){const _0x33490f=_0x2556ea=>{const _0x3aec96=a219_0x1c2f,_0x3df4c5=_0x2556ea||_0x3aec96(0x10b);return _0x3d7f81['replace']('{profile}',_0x3df4c5);};return{'read':_0x8dc36f=>{const _0x1386dd=_0x33490f(_0x8dc36f);return registerGlobalCacheKey(_0x1386dd,_0x1c133e),readCacheJson(_0x1386dd);},'write':(_0x48703b,_0x5a8561)=>{const _0x5ec0e9=_0x33490f(_0x48703b);registerGlobalCacheKey(_0x5ec0e9,_0x1c133e),writeCacheJson(_0x5ec0e9,_0x5a8561);},'clear':_0x18f73d=>{const _0x523605=_0x33490f(_0x18f73d);clearCache(_0x523605);},'exists':_0x5036eb=>{const _0x3822c9=_0x33490f(_0x5036eb);return cacheExists(_0x3822c9);},'path':_0x5cc56c=>{const _0x1b447b=_0x33490f(_0x5cc56c);return getGlobalCachePath(_0x1b447b);}};}export function createOptionalProfileCache(_0x4a13b4,_0x133493,_0x313395={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x313395,_0x583a66=_0x1799c3=>{return _0x1799c3?''+_0x4a13b4+profileSeparator+_0x1799c3+suffix:''+_0x4a13b4+suffix;};return{'read':_0x359327=>{const _0x2492ad=_0x583a66(_0x359327);return registerGlobalCacheKey(_0x2492ad,_0x133493),readCacheJson(_0x2492ad);},'write':(_0x4e0b16,_0x375a5c)=>{const _0x13b0ea=_0x583a66(_0x375a5c);registerGlobalCacheKey(_0x13b0ea,_0x133493),writeCacheJson(_0x13b0ea,_0x4e0b16);},'clear':_0x2892bc=>{const _0x67f9d2=_0x583a66(_0x2892bc);clearCache(_0x67f9d2);},'exists':_0x14957f=>{const _0xf633cb=_0x583a66(_0x14957f);return cacheExists(_0xf633cb);},'path':_0x46c588=>{const _0x36936d=_0x583a66(_0x46c588);return getGlobalCachePath(_0x36936d);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- (function(_0xfcfd85,_0x22de0a){const _0x2b66ff=a220_0x331e,_0x29048c=_0xfcfd85();while(!![]){try{const _0x339f3a=parseInt(_0x2b66ff(0x1f7))/0x1*(parseInt(_0x2b66ff(0x1f8))/0x2)+-parseInt(_0x2b66ff(0x1f4))/0x3+parseInt(_0x2b66ff(0x1fc))/0x4+-parseInt(_0x2b66ff(0x1f5))/0x5*(parseInt(_0x2b66ff(0x1fe))/0x6)+-parseInt(_0x2b66ff(0x202))/0x7*(-parseInt(_0x2b66ff(0x205))/0x8)+-parseInt(_0x2b66ff(0x204))/0x9+parseInt(_0x2b66ff(0x1f9))/0xa;if(_0x339f3a===_0x22de0a)break;else _0x29048c['push'](_0x29048c['shift']());}catch(_0xb4ae98){_0x29048c['push'](_0x29048c['shift']());}}}(a220_0xa7b5,0xaf140));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a220_0x331e(_0x3821d7,_0x39cf68){_0x3821d7=_0x3821d7-0x1f0;const _0xa7b574=a220_0xa7b5();let _0x331ef2=_0xa7b574[_0x3821d7];return _0x331ef2;}function a220_0xa7b5(){const _0x5b9602=['2824344NUMaFA','code','90QSRVjC','ENOENT','Invalid\x20JSON\x20in\x20file\x20\x27','parse','35RIPVmf','utf-8','3095685dAefas','1047096lAXBtf','Failed\x20to\x20load\x20JSON:\x20','EACCES','message','PERMISSION_DENIED','INVALID_ARGUMENT','1940625ilbwUe','48720bIhtdi','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','2tTMtJb','95518RUinez','3980810YfVEER','INTERNAL','NOT_FOUND'];a220_0xa7b5=function(){return _0x5b9602;};return a220_0xa7b5();}export async function loadJSON(_0xf3e5cc,_0x2ffaee){const _0x368cbb=a220_0x331e;try{if(_0x2ffaee){const _0x2ba36c=await readFile(_0xf3e5cc,_0x368cbb(0x203));try{return JSON['parse'](_0x2ba36c);}catch(_0x4f0b2a){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x368cbb(0x200)+_0xf3e5cc+'\x27:\x20'+(_0x4f0b2a instanceof Error?_0x4f0b2a['message']:String(_0x4f0b2a)));}}else try{return JSON[_0x368cbb(0x201)](_0xf3e5cc);}catch(_0xc5e19d){throw new SDKError(ErrorCode[_0x368cbb(0x1f3)],'Invalid\x20JSON\x20string:\x20'+(_0xc5e19d instanceof Error?_0xc5e19d[_0x368cbb(0x1f1)]:String(_0xc5e19d)));}}catch(_0x515f70){if(_0x515f70 instanceof SDKError)throw _0x515f70;if(_0x515f70 instanceof Error&&'code'in _0x515f70){const _0xce458=_0x515f70;if(_0xce458[_0x368cbb(0x1fd)]===_0x368cbb(0x1ff))throw new SDKError(ErrorCode[_0x368cbb(0x1fb)],'File\x20not\x20found:\x20'+_0xf3e5cc);else{if(_0xce458[_0x368cbb(0x1fd)]===_0x368cbb(0x1f0))throw new SDKError(ErrorCode[_0x368cbb(0x1f2)],'Permission\x20denied\x20reading\x20file:\x20'+_0xf3e5cc);}}throw new SDKError(ErrorCode[_0x368cbb(0x1fa)],_0x368cbb(0x206)+(_0x515f70 instanceof Error?_0x515f70[_0x368cbb(0x1f1)]:String(_0x515f70)));}}export async function loadJSONFromOptions(_0x310baf,_0x2265a2){const _0x3ea542=a220_0x331e;if(_0x310baf&&_0x2265a2)throw new SDKError(ErrorCode[_0x3ea542(0x1f3)],_0x3ea542(0x1f6));if(_0x310baf)return await loadJSON(_0x310baf,![]);if(_0x2265a2)return await loadJSON(_0x2265a2,!![]);return undefined;}
1
+ function a220_0x17a8(_0x14facf,_0xbce6b8){_0x14facf=_0x14facf-0x142;const _0x56ff8=a220_0x56ff();let _0x17a81f=_0x56ff8[_0x14facf];return _0x17a81f;}function a220_0x56ff(){const _0xda295e=['PERMISSION_DENIED','parse','4851342foTfgY','Invalid\x20JSON\x20in\x20file\x20\x27','879094PGabwt','Failed\x20to\x20load\x20JSON:\x20','File\x20not\x20found:\x20','455508kTondB','Invalid\x20JSON\x20string:\x20','NOT_FOUND','EACCES','INVALID_ARGUMENT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','7642875VCCxXF','551324cxtGgi','2008oaMeqJ','20482vothIH','ENOENT','Permission\x20denied\x20reading\x20file:\x20','2751296xXWnUc','message','code'];a220_0x56ff=function(){return _0xda295e;};return a220_0x56ff();}(function(_0x327cc1,_0x3b87ad){const _0x6d584=a220_0x17a8,_0x59242a=_0x327cc1();while(!![]){try{const _0x4731b1=-parseInt(_0x6d584(0x153))/0x1+parseInt(_0x6d584(0x149))/0x2+parseInt(_0x6d584(0x14c))/0x3+-parseInt(_0x6d584(0x142))/0x4+parseInt(_0x6d584(0x152))/0x5+-parseInt(_0x6d584(0x147))/0x6+parseInt(_0x6d584(0x155))/0x7*(parseInt(_0x6d584(0x154))/0x8);if(_0x4731b1===_0x3b87ad)break;else _0x59242a['push'](_0x59242a['shift']());}catch(_0x28b681){_0x59242a['push'](_0x59242a['shift']());}}}(a220_0x56ff,0xc4f17));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x4635cc,_0x38752a){const _0x240fbb=a220_0x17a8;try{if(_0x38752a){const _0xd6be00=await readFile(_0x4635cc,'utf-8');try{return JSON[_0x240fbb(0x146)](_0xd6be00);}catch(_0x5deb28){throw new SDKError(ErrorCode[_0x240fbb(0x150)],_0x240fbb(0x148)+_0x4635cc+'\x27:\x20'+(_0x5deb28 instanceof Error?_0x5deb28[_0x240fbb(0x143)]:String(_0x5deb28)));}}else try{return JSON['parse'](_0x4635cc);}catch(_0x4f0671){throw new SDKError(ErrorCode[_0x240fbb(0x150)],_0x240fbb(0x14d)+(_0x4f0671 instanceof Error?_0x4f0671[_0x240fbb(0x143)]:String(_0x4f0671)));}}catch(_0x4601ac){if(_0x4601ac instanceof SDKError)throw _0x4601ac;if(_0x4601ac instanceof Error&&'code'in _0x4601ac){const _0x587a84=_0x4601ac;if(_0x587a84[_0x240fbb(0x144)]===_0x240fbb(0x156))throw new SDKError(ErrorCode[_0x240fbb(0x14e)],_0x240fbb(0x14b)+_0x4635cc);else{if(_0x587a84[_0x240fbb(0x144)]===_0x240fbb(0x14f))throw new SDKError(ErrorCode[_0x240fbb(0x145)],_0x240fbb(0x157)+_0x4635cc);}}throw new SDKError(ErrorCode['INTERNAL'],_0x240fbb(0x14a)+(_0x4601ac instanceof Error?_0x4601ac[_0x240fbb(0x143)]:String(_0x4601ac)));}}export async function loadJSONFromOptions(_0x2c9d88,_0x378797){const _0x28b772=a220_0x17a8;if(_0x2c9d88&&_0x378797)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x28b772(0x151));if(_0x2c9d88)return await loadJSON(_0x2c9d88,![]);if(_0x378797)return await loadJSON(_0x378797,!![]);return undefined;}
@@ -1 +1 @@
1
- const a221_0x12ff55=a221_0xced8;(function(_0x18757c,_0x4fa8cd){const _0x4a0b68=a221_0xced8,_0x5a7c23=_0x18757c();while(!![]){try{const _0x2e74c6=-parseInt(_0x4a0b68(0x119))/0x1*(parseInt(_0x4a0b68(0x122))/0x2)+parseInt(_0x4a0b68(0x11e))/0x3+-parseInt(_0x4a0b68(0x112))/0x4+parseInt(_0x4a0b68(0x11a))/0x5*(parseInt(_0x4a0b68(0x123))/0x6)+parseInt(_0x4a0b68(0x114))/0x7*(-parseInt(_0x4a0b68(0x111))/0x8)+-parseInt(_0x4a0b68(0x113))/0x9+parseInt(_0x4a0b68(0x115))/0xa*(parseInt(_0x4a0b68(0x11f))/0xb);if(_0x2e74c6===_0x4fa8cd)break;else _0x5a7c23['push'](_0x5a7c23['shift']());}catch(_0x18c90a){_0x5a7c23['push'](_0x5a7c23['shift']());}}}(a221_0x3132,0x7c6ae));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a221_0x12ff55(0x121),registry=new Map();export function registerCacheKey(_0x157f86,_0xceab38){const _0x20b0e9=a221_0x12ff55,_0x212c59=registry[_0x20b0e9(0x11c)](_0x157f86);if(_0x212c59&&_0x212c59!==_0xceab38)throw new Error(_0x20b0e9(0x124)+_0x157f86+_0x20b0e9(0x125)+_0x212c59+_0x20b0e9(0x11b)+_0xceab38+'\x22');registry[_0x20b0e9(0x118)](_0x157f86,_0xceab38);}export function getCacheDir(){const _0x3cb537=a221_0x12ff55,_0x5205e3=process['cwd'](),_0x5db694=_0x5205e3===parse(_0x5205e3)[_0x3cb537(0x116)]?homedir():_0x5205e3;return join(_0x5db694,LOCAL_CACHE_DIR);}export function getCachePath(_0x1f59c8){return join(getCacheDir(),_0x1f59c8);}function ensureCacheDir(){const _0x877c09=getCacheDir();!existsSync(_0x877c09)&&mkdirSync(_0x877c09,{'recursive':!![]});}function readCacheJson(_0x3eb102){const _0x18d716=a221_0x12ff55,_0x51ee8e=getCachePath(_0x3eb102);if(!existsSync(_0x51ee8e))return undefined;try{const _0x15d3ca=readFileSync(_0x51ee8e,_0x18d716(0x117));return JSON[_0x18d716(0x11d)](_0x15d3ca);}catch{return undefined;}}function writeCacheJson(_0x26833a,_0x5cfeaa){const _0xa19af=a221_0x12ff55;ensureCacheDir(),writeFileSync(getCachePath(_0x26833a),JSON[_0xa19af(0x120)](_0x5cfeaa,null,0x2),_0xa19af(0x117));}function readCacheText(_0x46dbef){const _0x49e187=a221_0x12ff55,_0x255bbc=getCachePath(_0x46dbef);if(!existsSync(_0x255bbc))return undefined;try{return readFileSync(_0x255bbc,_0x49e187(0x117));}catch{return undefined;}}function writeCacheText(_0x2bda83,_0x1d5b62){const _0xd5bb6f=a221_0x12ff55;ensureCacheDir(),writeFileSync(getCachePath(_0x2bda83),_0x1d5b62,_0xd5bb6f(0x117));}function clearCache(_0x1a251c){const _0x1c8db4=getCachePath(_0x1a251c);if(existsSync(_0x1c8db4))try{unlinkSync(_0x1c8db4);}catch{}}function cacheExists(_0x1f9a76){return existsSync(getCachePath(_0x1f9a76));}export function createCache(_0x15e728,_0x2bcdcf){return registerCacheKey(_0x15e728,_0x2bcdcf),{'read':()=>readCacheJson(_0x15e728),'write':_0x34db00=>writeCacheJson(_0x15e728,_0x34db00),'clear':()=>clearCache(_0x15e728),'exists':()=>cacheExists(_0x15e728),'path':()=>getCachePath(_0x15e728)};}export function createTextCache(_0x54901c,_0x106934){const _0x47900e=a221_0x12ff55;return registerCacheKey(_0x54901c,_0x106934),{'read':()=>readCacheText(_0x54901c)?.[_0x47900e(0x10f)]()||undefined,'write':_0x261ae1=>writeCacheText(_0x54901c,_0x261ae1),'clear':()=>clearCache(_0x54901c),'exists':()=>cacheExists(_0x54901c),'path':()=>getCachePath(_0x54901c)};}function a221_0xced8(_0xa3d5a6,_0x296e85){_0xa3d5a6=_0xa3d5a6-0x10f;const _0x31325f=a221_0x3132();let _0xced882=_0x31325f[_0xa3d5a6];return _0xced882;}export function clearRegistry(){const _0xc69253=a221_0x12ff55;registry[_0xc69253(0x110)]();}function a221_0x3132(){const _0x4a960b=['\x22\x20already\x20registered\x20by\x20\x22','trim','clear','8TFgcax','3161888OsNuTb','9048861cpaeQC','6199921dQjMqI','10KUFeDw','root','utf-8','set','13319fLMJbJ','9025zKroyD','\x22,\x20cannot\x20register\x20for\x20\x22','get','parse','2292936gcPJCg','35074358tXitUZ','stringify','.cache/tdx','116AyXCQk','36QzryWM','Cache\x20key\x20\x22'];a221_0x3132=function(){return _0x4a960b;};return a221_0x3132();}
1
+ const a221_0x3bc1a1=a221_0x2f7f;(function(_0x31efbd,_0xa1c126){const _0x344291=a221_0x2f7f,_0x73c868=_0x31efbd();while(!![]){try{const _0x422028=parseInt(_0x344291(0xab))/0x1*(parseInt(_0x344291(0xa2))/0x2)+-parseInt(_0x344291(0xa5))/0x3+parseInt(_0x344291(0xa3))/0x4+-parseInt(_0x344291(0xa1))/0x5+parseInt(_0x344291(0xa0))/0x6+parseInt(_0x344291(0x9d))/0x7+parseInt(_0x344291(0xac))/0x8*(-parseInt(_0x344291(0x9b))/0x9);if(_0x422028===_0xa1c126)break;else _0x73c868['push'](_0x73c868['shift']());}catch(_0x2ceff4){_0x73c868['push'](_0x73c868['shift']());}}}(a221_0x4249,0x58d94));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a221_0x3bc1a1(0xa8),registry=new Map();function a221_0x2f7f(_0x24bda5,_0x325fd9){_0x24bda5=_0x24bda5-0x9a;const _0x4249ff=a221_0x4249();let _0x2f7f9d=_0x4249ff[_0x24bda5];return _0x2f7f9d;}export function registerCacheKey(_0x2fc8c2,_0x1ba434){const _0x58e83d=a221_0x3bc1a1,_0x1c62bc=registry[_0x58e83d(0x9e)](_0x2fc8c2);if(_0x1c62bc&&_0x1c62bc!==_0x1ba434)throw new Error(_0x58e83d(0xad)+_0x2fc8c2+_0x58e83d(0xa7)+_0x1c62bc+_0x58e83d(0x9a)+_0x1ba434+'\x22');registry[_0x58e83d(0xa6)](_0x2fc8c2,_0x1ba434);}export function getCacheDir(){const _0x4dc527=a221_0x3bc1a1,_0x214e4e=process[_0x4dc527(0xaa)](),_0x235022=_0x214e4e===parse(_0x214e4e)['root']?homedir():_0x214e4e;return join(_0x235022,LOCAL_CACHE_DIR);}export function getCachePath(_0x217b28){return join(getCacheDir(),_0x217b28);}function ensureCacheDir(){const _0x5a2a5a=getCacheDir();!existsSync(_0x5a2a5a)&&mkdirSync(_0x5a2a5a,{'recursive':!![]});}function readCacheJson(_0x2b9354){const _0x5d0b7b=getCachePath(_0x2b9354);if(!existsSync(_0x5d0b7b))return undefined;try{const _0x417522=readFileSync(_0x5d0b7b,'utf-8');return JSON['parse'](_0x417522);}catch{return undefined;}}function a221_0x4249(){const _0x4cb1bf=['3413256tjiAbc','get','clear','3051840YShBNw','1386185azevnN','584ZnmcCJ','1606708CUumLd','trim','1741539cBzumK','set','\x22\x20already\x20registered\x20by\x20\x22','.cache/tdx','stringify','cwd','2489IUHbmy','8HXPCyF','Cache\x20key\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','8127351gXbVUK','utf-8'];a221_0x4249=function(){return _0x4cb1bf;};return a221_0x4249();}function writeCacheJson(_0xa74ee2,_0x24a2e4){const _0x377f25=a221_0x3bc1a1;ensureCacheDir(),writeFileSync(getCachePath(_0xa74ee2),JSON[_0x377f25(0xa9)](_0x24a2e4,null,0x2),_0x377f25(0x9c));}function readCacheText(_0x412d58){const _0x158a6c=a221_0x3bc1a1,_0x23af00=getCachePath(_0x412d58);if(!existsSync(_0x23af00))return undefined;try{return readFileSync(_0x23af00,_0x158a6c(0x9c));}catch{return undefined;}}function writeCacheText(_0x4a76ce,_0x5c6ce7){const _0x5c7dc1=a221_0x3bc1a1;ensureCacheDir(),writeFileSync(getCachePath(_0x4a76ce),_0x5c6ce7,_0x5c7dc1(0x9c));}function clearCache(_0x46ab9a){const _0x54c2a8=getCachePath(_0x46ab9a);if(existsSync(_0x54c2a8))try{unlinkSync(_0x54c2a8);}catch{}}function cacheExists(_0x2a525d){return existsSync(getCachePath(_0x2a525d));}export function createCache(_0xac34f8,_0x21b0fb){return registerCacheKey(_0xac34f8,_0x21b0fb),{'read':()=>readCacheJson(_0xac34f8),'write':_0x5990d8=>writeCacheJson(_0xac34f8,_0x5990d8),'clear':()=>clearCache(_0xac34f8),'exists':()=>cacheExists(_0xac34f8),'path':()=>getCachePath(_0xac34f8)};}export function createTextCache(_0x32a67d,_0x1f50f5){const _0x97dbfb=a221_0x3bc1a1;return registerCacheKey(_0x32a67d,_0x1f50f5),{'read':()=>readCacheText(_0x32a67d)?.[_0x97dbfb(0xa4)]()||undefined,'write':_0x5d088a=>writeCacheText(_0x32a67d,_0x5d088a),'clear':()=>clearCache(_0x32a67d),'exists':()=>cacheExists(_0x32a67d),'path':()=>getCachePath(_0x32a67d)};}export function clearRegistry(){const _0x178f26=a221_0x3bc1a1;registry[_0x178f26(0x9f)]();}
@@ -1 +1 @@
1
- function a222_0x4b24(){const _0x5b72f1=['INFO',']\x20[','3wPXbgJ','4455252dwXvtV','yellow','timestamp','776810LyJsBe','message','component','chalk','31190iNcktq','TRACE','colors','1252160bScNpn','743172JoTcto','dim','level','gray','DEBUG','44pdJkxv','WARN','colorLevel','8619611JJnLNy','cyan','774585nYBaak','default'];a222_0x4b24=function(){return _0x5b72f1;};return a222_0x4b24();}const a222_0x21b641=a222_0x4a0a;(function(_0x2183b5,_0x2809a9){const _0x406616=a222_0x4a0a,_0x26ec91=_0x2183b5();while(!![]){try{const _0x586410=parseInt(_0x406616(0x135))/0x1+parseInt(_0x406616(0x13d))/0x2*(parseInt(_0x406616(0x131))/0x3)+-parseInt(_0x406616(0x128))/0x4*(-parseInt(_0x406616(0x139))/0x5)+parseInt(_0x406616(0x132))/0x6+-parseInt(_0x406616(0x12b))/0x7+parseInt(_0x406616(0x13c))/0x8+-parseInt(_0x406616(0x12d))/0x9;if(_0x586410===_0x2809a9)break;else _0x26ec91['push'](_0x26ec91['shift']());}catch(_0x59a950){_0x26ec91['push'](_0x26ec91['shift']());}}}(a222_0x4b24,0xc2fae));function a222_0x4a0a(_0x1da31b,_0x2950c9){_0x1da31b=_0x1da31b-0x128;const _0x4b2408=a222_0x4b24();let _0x4a0a05=_0x4b2408[_0x1da31b];return _0x4a0a05;}import a222_0x4e421e from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a222_0x4e421e,ChalkClass=chalkModule['Chalk']||chalkModule[a222_0x21b641(0x12e)]?.['Chalk'];export class DefaultLogFormatter{[a222_0x21b641(0x13b)];[a222_0x21b641(0x138)];constructor(_0x58ae73={}){const _0x45d547=a222_0x21b641;this[_0x45d547(0x13b)]=_0x58ae73[_0x45d547(0x13b)]??![],this[_0x45d547(0x138)]=_0x58ae73[_0x45d547(0x13b)]&&ChalkClass?new ChalkClass({'level':0x3}):a222_0x4e421e;}['format'](_0x207c20){const _0x201bce=a222_0x21b641,_0x4ec843=formatTimestamp(_0x207c20[_0x201bce(0x134)]),_0x1e882e=logLevelToString(_0x207c20[_0x201bce(0x13f)]);if(!this[_0x201bce(0x13b)])return _0x4ec843+'\x20['+_0x1e882e+_0x201bce(0x130)+_0x207c20[_0x201bce(0x137)]+']\x20'+_0x207c20[_0x201bce(0x136)];const _0x318614=this[_0x201bce(0x138)][_0x201bce(0x13e)](_0x4ec843),_0xdecef6=this[_0x201bce(0x12a)](_0x1e882e,_0x207c20[_0x201bce(0x13f)]),_0x564c2b=this['chalk']['blue']('['+_0x207c20[_0x201bce(0x137)]+']');return _0x318614+'\x20'+_0xdecef6+'\x20'+_0x564c2b+'\x20'+_0x207c20[_0x201bce(0x136)];}['colorLevel'](_0x57c44f,_0x3b5a50){const _0x1cefa5=a222_0x21b641;switch(_0x3b5a50){case LogLevel[_0x1cefa5(0x13a)]:return this[_0x1cefa5(0x138)][_0x1cefa5(0x140)]('['+_0x57c44f+']');case LogLevel[_0x1cefa5(0x141)]:return this[_0x1cefa5(0x138)]['green']('['+_0x57c44f+']');case LogLevel[_0x1cefa5(0x12f)]:return this[_0x1cefa5(0x138)][_0x1cefa5(0x12c)]('['+_0x57c44f+']');case LogLevel[_0x1cefa5(0x129)]:return this[_0x1cefa5(0x138)][_0x1cefa5(0x133)]('['+_0x57c44f+']');case LogLevel['ERROR']:return this[_0x1cefa5(0x138)]['red']('['+_0x57c44f+']');default:return'['+_0x57c44f+']';}}}
1
+ const a222_0x17765c=a222_0x5a54;function a222_0x5a54(_0x503ecc,_0x12e0c6){_0x503ecc=_0x503ecc-0x1cc;const _0x344a8a=a222_0x344a();let _0x5a5485=_0x344a8a[_0x503ecc];return _0x5a5485;}(function(_0x26f6d1,_0x37cc04){const _0x5206ca=a222_0x5a54,_0x49559a=_0x26f6d1();while(!![]){try{const _0x6357d8=parseInt(_0x5206ca(0x1cd))/0x1*(parseInt(_0x5206ca(0x1d8))/0x2)+-parseInt(_0x5206ca(0x1d1))/0x3*(-parseInt(_0x5206ca(0x1e1))/0x4)+-parseInt(_0x5206ca(0x1cc))/0x5+-parseInt(_0x5206ca(0x1d7))/0x6+parseInt(_0x5206ca(0x1e0))/0x7*(-parseInt(_0x5206ca(0x1ea))/0x8)+parseInt(_0x5206ca(0x1d4))/0x9*(parseInt(_0x5206ca(0x1e9))/0xa)+parseInt(_0x5206ca(0x1d0))/0xb;if(_0x6357d8===_0x37cc04)break;else _0x49559a['push'](_0x49559a['shift']());}catch(_0x43c54e){_0x49559a['push'](_0x49559a['shift']());}}}(a222_0x344a,0x56487));import a222_0x248684 from'chalk';function a222_0x344a(){const _0xfed2b9=['1222540eIeyQm','952yXerXk','1343560nTriEl','15503rQyPKu','DEBUG','dim','4087281gzjQZd','3yTlRwn','message','gray','27AlwpLK','colorLevel','chalk','4105140GjEmNO','22xCIjTx','ERROR','TRACE','level','format','Chalk','green','default','14938LrkFuv','2605588RRyopX',']\x20[','blue','timestamp','colors','red','yellow','WARN'];a222_0x344a=function(){return _0xfed2b9;};return a222_0x344a();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a222_0x248684,ChalkClass=chalkModule[a222_0x17765c(0x1dd)]||chalkModule[a222_0x17765c(0x1df)]?.[a222_0x17765c(0x1dd)];export class DefaultLogFormatter{[a222_0x17765c(0x1e5)];[a222_0x17765c(0x1d6)];constructor(_0x3900b8={}){const _0x260c53=a222_0x17765c;this['colors']=_0x3900b8['colors']??![],this[_0x260c53(0x1d6)]=_0x3900b8[_0x260c53(0x1e5)]&&ChalkClass?new ChalkClass({'level':0x3}):a222_0x248684;}[a222_0x17765c(0x1dc)](_0x4e31b1){const _0x5313cb=a222_0x17765c,_0x28be19=formatTimestamp(_0x4e31b1[_0x5313cb(0x1e4)]),_0x236370=logLevelToString(_0x4e31b1[_0x5313cb(0x1db)]);if(!this[_0x5313cb(0x1e5)])return _0x28be19+'\x20['+_0x236370+_0x5313cb(0x1e2)+_0x4e31b1['component']+']\x20'+_0x4e31b1['message'];const _0x61d604=this['chalk'][_0x5313cb(0x1cf)](_0x28be19),_0x41dd38=this[_0x5313cb(0x1d5)](_0x236370,_0x4e31b1['level']),_0x4141c0=this[_0x5313cb(0x1d6)][_0x5313cb(0x1e3)]('['+_0x4e31b1['component']+']');return _0x61d604+'\x20'+_0x41dd38+'\x20'+_0x4141c0+'\x20'+_0x4e31b1[_0x5313cb(0x1d2)];}[a222_0x17765c(0x1d5)](_0x403569,_0x318cb3){const _0x52cfd8=a222_0x17765c;switch(_0x318cb3){case LogLevel[_0x52cfd8(0x1da)]:return this[_0x52cfd8(0x1d6)][_0x52cfd8(0x1d3)]('['+_0x403569+']');case LogLevel[_0x52cfd8(0x1ce)]:return this[_0x52cfd8(0x1d6)][_0x52cfd8(0x1de)]('['+_0x403569+']');case LogLevel['INFO']:return this[_0x52cfd8(0x1d6)]['cyan']('['+_0x403569+']');case LogLevel[_0x52cfd8(0x1e8)]:return this[_0x52cfd8(0x1d6)][_0x52cfd8(0x1e7)]('['+_0x403569+']');case LogLevel[_0x52cfd8(0x1d9)]:return this['chalk'][_0x52cfd8(0x1e6)]('['+_0x403569+']');default:return'['+_0x403569+']';}}}
@@ -1 +1 @@
1
- (function(_0x314ba4,_0xdff2c9){var _0x41c378=a223_0x53df,_0x40cb53=_0x314ba4();while(!![]){try{var _0xdecefe=parseInt(_0x41c378(0x117))/0x1*(parseInt(_0x41c378(0x118))/0x2)+-parseInt(_0x41c378(0x116))/0x3*(-parseInt(_0x41c378(0x113))/0x4)+-parseInt(_0x41c378(0x111))/0x5*(parseInt(_0x41c378(0x110))/0x6)+-parseInt(_0x41c378(0x10f))/0x7+parseInt(_0x41c378(0x114))/0x8+parseInt(_0x41c378(0x119))/0x9+parseInt(_0x41c378(0x115))/0xa*(parseInt(_0x41c378(0x112))/0xb);if(_0xdecefe===_0xdff2c9)break;else _0x40cb53['push'](_0x40cb53['shift']());}catch(_0x2b270a){_0x40cb53['push'](_0x40cb53['shift']());}}}(a223_0x5047,0x83858));export{DefaultLogFormatter}from'./default-formatter.js';function a223_0x53df(_0x5b17a8,_0x2c24a7){_0x5b17a8=_0x5b17a8-0x10f;var _0x50473c=a223_0x5047();var _0x53df3a=_0x50473c[_0x5b17a8];return _0x53df3a;}function a223_0x5047(){var _0x109076=['310wewXhP','11wRnWTC','16QOYOIz','1400016aXavty','435430FEckaS','275073AChdXM','1PoisoG','2054524NCnHnI','282645yAVZzf','3211530sjpvIk','62562LMeemz'];a223_0x5047=function(){return _0x109076;};return a223_0x5047();}
1
+ function a223_0x2bdc(_0x409ac1,_0x56cb7f){_0x409ac1=_0x409ac1-0x87;var _0x267028=a223_0x2670();var _0x2bdc3a=_0x267028[_0x409ac1];return _0x2bdc3a;}(function(_0x424106,_0x29cffe){var _0x2b8c9d=a223_0x2bdc,_0x10b825=_0x424106();while(!![]){try{var _0x2c4609=-parseInt(_0x2b8c9d(0x8c))/0x1*(parseInt(_0x2b8c9d(0x90))/0x2)+parseInt(_0x2b8c9d(0x87))/0x3*(parseInt(_0x2b8c9d(0x8e))/0x4)+parseInt(_0x2b8c9d(0x8a))/0x5+parseInt(_0x2b8c9d(0x88))/0x6*(parseInt(_0x2b8c9d(0x8b))/0x7)+-parseInt(_0x2b8c9d(0x91))/0x8*(-parseInt(_0x2b8c9d(0x8d))/0x9)+-parseInt(_0x2b8c9d(0x89))/0xa+-parseInt(_0x2b8c9d(0x8f))/0xb;if(_0x2c4609===_0x29cffe)break;else _0x10b825['push'](_0x10b825['shift']());}catch(_0x4b2ea5){_0x10b825['push'](_0x10b825['shift']());}}}(a223_0x2670,0x65d92));export{DefaultLogFormatter}from'./default-formatter.js';function a223_0x2670(){var _0x19b1d3=['148749RhkUiY','111708gtqwdD','3529880BAyccT','2655585mGrJHI','161FIDOKG','1vLNaGY','108NsqnGy','4YHUVIJ','6581124fwzqVR','563384TEXwMV','427480wEABcW'];a223_0x2670=function(){return _0x19b1d3;};return a223_0x2670();}
@@ -1 +1 @@
1
- const a224_0x2c357a=a224_0x26bf;(function(_0x39fb36,_0x4ef87c){const _0x22448f=a224_0x26bf,_0x1c500b=_0x39fb36();while(!![]){try{const _0x41a839=-parseInt(_0x22448f(0x6e))/0x1*(-parseInt(_0x22448f(0x66))/0x2)+-parseInt(_0x22448f(0x71))/0x3+-parseInt(_0x22448f(0x69))/0x4+-parseInt(_0x22448f(0x70))/0x5*(parseInt(_0x22448f(0x73))/0x6)+parseInt(_0x22448f(0x6f))/0x7+parseInt(_0x22448f(0x6c))/0x8*(parseInt(_0x22448f(0x6a))/0x9)+parseInt(_0x22448f(0x74))/0xa;if(_0x41a839===_0x4ef87c)break;else _0x1c500b['push'](_0x1c500b['shift']());}catch(_0x20c19d){_0x1c500b['push'](_0x1c500b['shift']());}}}(a224_0x53a7,0xc825e));function a224_0x53a7(){const _0xd630fc=['useStderr','colors','143368MnWDvB','3011895CjJPqj','format','8LgtaTO','formatter','2kSYMzc','4401026rTKGcO','779615ZBheHi','248991ANcDyj','minLevel','54sRRdkw','5793530nernGt','log','handle','WARN','799226lnHBiH'];a224_0x53a7=function(){return _0xd630fc;};return a224_0x53a7();}import{LogLevel as a224_0x22756b}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a224_0x26bf(_0x31b00e,_0x5328de){_0x31b00e=_0x31b00e-0x65;const _0x53a7b7=a224_0x53a7();let _0x26bf95=_0x53a7b7[_0x31b00e];return _0x26bf95;}export class ConsoleHandler{['minLevel'];[a224_0x2c357a(0x67)];[a224_0x2c357a(0x6d)];constructor(_0x27978f={}){const _0x37dffa=a224_0x2c357a;this['minLevel']=_0x27978f[_0x37dffa(0x72)]??a224_0x22756b[_0x37dffa(0x65)],this['useStderr']=_0x27978f[_0x37dffa(0x67)]??!![],this[_0x37dffa(0x6d)]=new DefaultLogFormatter({'colors':_0x27978f[_0x37dffa(0x68)]??!![]});}[a224_0x2c357a(0x76)](_0x1fd3a1){const _0x2845ba=a224_0x2c357a;if(_0x1fd3a1['level']<this[_0x2845ba(0x72)])return;const _0x5b9cb1=this['formatter'][_0x2845ba(0x6b)](_0x1fd3a1);this['useStderr']&&_0x1fd3a1['level']>=a224_0x22756b['WARN']?console['error'](_0x5b9cb1):console[_0x2845ba(0x75)](_0x5b9cb1);}}
1
+ const a224_0xe82106=a224_0x194b;(function(_0x15ae65,_0x34c340){const _0x9523b0=a224_0x194b,_0x518b8e=_0x15ae65();while(!![]){try{const _0x4dfd27=parseInt(_0x9523b0(0x104))/0x1*(parseInt(_0x9523b0(0x106))/0x2)+parseInt(_0x9523b0(0xfd))/0x3+parseInt(_0x9523b0(0xfa))/0x4+-parseInt(_0x9523b0(0xf8))/0x5*(parseInt(_0x9523b0(0xff))/0x6)+-parseInt(_0x9523b0(0xfe))/0x7*(-parseInt(_0x9523b0(0x101))/0x8)+-parseInt(_0x9523b0(0x103))/0x9+-parseInt(_0x9523b0(0xf7))/0xa;if(_0x4dfd27===_0x34c340)break;else _0x518b8e['push'](_0x518b8e['shift']());}catch(_0x4c8617){_0x518b8e['push'](_0x518b8e['shift']());}}}(a224_0x2f18,0xf13e2));import{LogLevel as a224_0x5d5c99}from'../types.js';function a224_0x194b(_0x584ac9,_0x21b112){_0x584ac9=_0x584ac9-0xf7;const _0x2f184b=a224_0x2f18();let _0x194b92=_0x2f184b[_0x584ac9];return _0x194b92;}import{DefaultLogFormatter}from'../formatters/index.js';function a224_0x2f18(){const _0x47491e=['error','2850590NKQHoH','1475QVtXMf','level','5881768VEITub','formatter','log','3780387VERvVe','14yaGkPM','35106AEpmcr','minLevel','2783184nYBEKj','colors','12927537TmwuiF','180iftfaV','WARN','11214ZhTtkj','useStderr'];a224_0x2f18=function(){return _0x47491e;};return a224_0x2f18();}export class ConsoleHandler{[a224_0xe82106(0x100)];[a224_0xe82106(0x107)];[a224_0xe82106(0xfb)];constructor(_0x4d658f={}){const _0x45e794=a224_0xe82106;this[_0x45e794(0x100)]=_0x4d658f[_0x45e794(0x100)]??a224_0x5d5c99[_0x45e794(0x105)],this[_0x45e794(0x107)]=_0x4d658f['useStderr']??!![],this[_0x45e794(0xfb)]=new DefaultLogFormatter({'colors':_0x4d658f[_0x45e794(0x102)]??!![]});}['handle'](_0x1c46db){const _0x543503=a224_0xe82106;if(_0x1c46db[_0x543503(0xf9)]<this['minLevel'])return;const _0x50e18b=this[_0x543503(0xfb)]['format'](_0x1c46db);this['useStderr']&&_0x1c46db['level']>=a224_0x5d5c99[_0x543503(0x105)]?console[_0x543503(0x108)](_0x50e18b):console[_0x543503(0xfc)](_0x50e18b);}}
@@ -1 +1 @@
1
- const a225_0x22e7b7=a225_0x22fc;(function(_0x543dae,_0x5c1d55){const _0x2aca8d=a225_0x22fc,_0x27e1eb=_0x543dae();while(!![]){try{const _0x3531aa=parseInt(_0x2aca8d(0xe6))/0x1*(-parseInt(_0x2aca8d(0xf2))/0x2)+-parseInt(_0x2aca8d(0xfe))/0x3*(parseInt(_0x2aca8d(0x104))/0x4)+parseInt(_0x2aca8d(0xe4))/0x5*(-parseInt(_0x2aca8d(0xe3))/0x6)+parseInt(_0x2aca8d(0xf3))/0x7*(-parseInt(_0x2aca8d(0x100))/0x8)+parseInt(_0x2aca8d(0xf4))/0x9+-parseInt(_0x2aca8d(0xea))/0xa+parseInt(_0x2aca8d(0x103))/0xb;if(_0x3531aa===_0x5c1d55)break;else _0x27e1eb['push'](_0x27e1eb['shift']());}catch(_0xb19928){_0x27e1eb['push'](_0x27e1eb['shift']());}}}(a225_0x24c8,0xea99a));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a225_0x24c8(){const _0x168627=['init','split','447940tCCHZn','77JlwrdS','6273918iyPwTG','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','replace','logFileName','filter','Warning:\x20Error\x20writing\x20to\x20','.log','logDir','includes','format','126924eYarxp','getLogPath','1267368RXVqeG','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','message','41841580zvAgWh','28lxbVov','logStream','error','logBaseName','Warning:\x20Failed\x20to\x20compress\x20','write','1008426imaQSP','5gCDMGR','handle','2sIRLBR','mtime','logPath','close','8851620pTMmbH','toISOString','rotate','filePath','\x5c$&','logs'];a225_0x24c8=function(){return _0x168627;};return a225_0x24c8();}function a225_0x22fc(_0x33e10a,_0x4861ce){_0x33e10a=_0x33e10a-0xdf;const _0x24c88d=a225_0x24c8();let _0x22fc5c=_0x24c88d[_0x33e10a];return _0x22fc5c;}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'];[a225_0x22e7b7(0xfb)];[a225_0x22e7b7(0xf7)];['logBaseName'];[a225_0x22e7b7(0x105)]=null;[a225_0x22e7b7(0xec)];constructor(_0x453244={}){const _0x1aeab3=a225_0x22e7b7;this[_0x1aeab3(0xe8)]=_0x453244[_0x1aeab3(0xed)]??join(getGlobalCacheDir(),_0x1aeab3(0xef),'tdx.log'),this[_0x1aeab3(0xfb)]=dirname(this[_0x1aeab3(0xe8)]),this[_0x1aeab3(0xf7)]=basename(this[_0x1aeab3(0xe8)]),this[_0x1aeab3(0xe0)]=this['logFileName']['replace'](/\.log$/,''),this[_0x1aeab3(0xec)]=_0x453244[_0x1aeab3(0xec)]??!![];}async[a225_0x22e7b7(0xf0)](){const _0xe3e102=a225_0x22e7b7;try{await mkdir(this[_0xe3e102(0xfb)],{'recursive':!![]}),this['rotate']&&await this['rotateOldLogs'](),this[_0xe3e102(0x105)]=createWriteStream(this[_0xe3e102(0xe8)],{'flags':'a'}),this[_0xe3e102(0x105)]['on']('error',_0x585d20=>{const _0xde2b27=_0xe3e102;console[_0xde2b27(0xdf)](_0xde2b27(0xf9)+this[_0xde2b27(0xf7)]+':',_0x585d20[_0xde2b27(0x102)]);});}catch(_0x4b1e7f){console[_0xe3e102(0xdf)](_0xe3e102(0x101),_0x4b1e7f);}}[a225_0x22e7b7(0xe5)](_0x37671d){const _0x1e556d=a225_0x22e7b7;if(!this[_0x1e556d(0x105)])return;const _0x5b4ce0=Logger[_0x1e556d(0xfd)](_0x37671d);this[_0x1e556d(0x105)][_0x1e556d(0xe2)](_0x5b4ce0+'\x0a');}async[a225_0x22e7b7(0xe9)](){return new Promise(_0x235e35=>{const _0x155fed=a225_0x22fc;this[_0x155fed(0x105)]?this['logStream']['end'](()=>{const _0x1c6352=_0x155fed;this[_0x1c6352(0x105)]=null,_0x235e35();}):_0x235e35();});}[a225_0x22e7b7(0xff)](){const _0x30ddff=a225_0x22e7b7;return this[_0x30ddff(0xe8)];}async['rotateOldLogs'](){const _0x5ee63a=a225_0x22e7b7;try{const _0x1e4796=await readdir(this['logDir']),_0x5263e7=new Date()[_0x5ee63a(0xeb)]()[_0x5ee63a(0xf1)]('T')[0x0];if(_0x1e4796[_0x5ee63a(0xfc)](this[_0x5ee63a(0xf7)])){const _0xee5bb=join(this[_0x5ee63a(0xfb)],this[_0x5ee63a(0xf7)]),_0x3daa16=await stat(_0xee5bb),_0x4c2e63=new Date(_0x3daa16[_0x5ee63a(0xe7)])[_0x5ee63a(0xeb)]()['split']('T')[0x0];if(_0x4c2e63<_0x5263e7){const _0x306f4e=join(this[_0x5ee63a(0xfb)],this[_0x5ee63a(0xe0)]+'-'+_0x4c2e63+_0x5ee63a(0xfa));await rename(_0xee5bb,_0x306f4e);}}const _0x12fa96=await readdir(this[_0x5ee63a(0xfb)]),_0x2801ea=this[_0x5ee63a(0xe0)][_0x5ee63a(0xf6)](/[.*+?^${}()|[\]\\]/g,_0x5ee63a(0xee)),_0x337ecf=new RegExp('^'+_0x2801ea+_0x5ee63a(0xf5)),_0x1d1268=_0x12fa96[_0x5ee63a(0xf8)](_0x222e43=>_0x337ecf['test'](_0x222e43));for(const _0x4d5299 of _0x1d1268){const _0x3eaf47=join(this['logDir'],_0x4d5299),_0x404833=join(this[_0x5ee63a(0xfb)],_0x4d5299+'.gz');try{await pipeline(createReadStream(_0x3eaf47),createGzip(),createWriteStream(_0x404833)),await unlink(_0x3eaf47);}catch(_0x1cdf91){console[_0x5ee63a(0xdf)](_0x5ee63a(0xe1)+_0x4d5299+':',_0x1cdf91);}}}catch{}}}
1
+ const a225_0x222ca3=a225_0x5dc7;function a225_0x1cea(){const _0x37ab56=['-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','format','logDir','rotateOldLogs','1861776wVyfTU','logStream','logs','.log','includes','920532YJPQUc','end','tdx.log','logFileName','.gz','message','split','filter','16paahSW','725580zryToB','mtime','logPath','Warning:\x20Failed\x20to\x20compress\x20','1982ETFGLW','\x5c$&','1793112IViHDo','write','getLogPath','logBaseName','3uUfDNe','init','test','62585PyYVOR','replace','error','rotate','toISOString','2488293VJkKaL'];a225_0x1cea=function(){return _0x37ab56;};return a225_0x1cea();}(function(_0x37c260,_0x584b77){const _0x5e1f60=a225_0x5dc7,_0x3f6d9d=_0x37c260();while(!![]){try{const _0x558f90=-parseInt(_0x5e1f60(0x18f))/0x1*(parseInt(_0x5e1f60(0x189))/0x2)+parseInt(_0x5e1f60(0x17c))/0x3+parseInt(_0x5e1f60(0x184))/0x4*(parseInt(_0x5e1f60(0x16d))/0x5)+parseInt(_0x5e1f60(0x185))/0x6+-parseInt(_0x5e1f60(0x177))/0x7+parseInt(_0x5e1f60(0x18b))/0x8+-parseInt(_0x5e1f60(0x172))/0x9;if(_0x558f90===_0x584b77)break;else _0x3f6d9d['push'](_0x3f6d9d['shift']());}catch(_0x2fc17a){_0x3f6d9d['push'](_0x3f6d9d['shift']());}}}(a225_0x1cea,0x26393));import{createWriteStream,createReadStream}from'fs';function a225_0x5dc7(_0xd8b0d0,_0x180c33){_0xd8b0d0=_0xd8b0d0-0x16b;const _0x1cea58=a225_0x1cea();let _0x5dc747=_0x1cea58[_0xd8b0d0];return _0x5dc747;}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'];[a225_0x222ca3(0x175)];[a225_0x222ca3(0x17f)];[a225_0x222ca3(0x18e)];['logStream']=null;['rotate'];constructor(_0xe8e5d5={}){const _0x1039a1=a225_0x222ca3;this[_0x1039a1(0x187)]=_0xe8e5d5['filePath']??join(getGlobalCacheDir(),_0x1039a1(0x179),_0x1039a1(0x17e)),this[_0x1039a1(0x175)]=dirname(this[_0x1039a1(0x187)]),this[_0x1039a1(0x17f)]=basename(this[_0x1039a1(0x187)]),this[_0x1039a1(0x18e)]=this[_0x1039a1(0x17f)][_0x1039a1(0x16e)](/\.log$/,''),this[_0x1039a1(0x170)]=_0xe8e5d5['rotate']??!![];}async[a225_0x222ca3(0x16b)](){const _0x5c1b42=a225_0x222ca3;try{await mkdir(this[_0x5c1b42(0x175)],{'recursive':!![]}),this[_0x5c1b42(0x170)]&&await this[_0x5c1b42(0x176)](),this[_0x5c1b42(0x178)]=createWriteStream(this[_0x5c1b42(0x187)],{'flags':'a'}),this[_0x5c1b42(0x178)]['on'](_0x5c1b42(0x16f),_0x109079=>{const _0x5960c3=_0x5c1b42;console[_0x5960c3(0x16f)]('Warning:\x20Error\x20writing\x20to\x20'+this[_0x5960c3(0x17f)]+':',_0x109079[_0x5960c3(0x181)]);});}catch(_0x1fb3ff){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x1fb3ff);}}['handle'](_0x5956ad){const _0x2740f5=a225_0x222ca3;if(!this[_0x2740f5(0x178)])return;const _0x554597=Logger[_0x2740f5(0x174)](_0x5956ad);this[_0x2740f5(0x178)][_0x2740f5(0x18c)](_0x554597+'\x0a');}async['close'](){return new Promise(_0x40d0c5=>{const _0x4aecec=a225_0x5dc7;this[_0x4aecec(0x178)]?this[_0x4aecec(0x178)][_0x4aecec(0x17d)](()=>{const _0x55eeae=_0x4aecec;this[_0x55eeae(0x178)]=null,_0x40d0c5();}):_0x40d0c5();});}[a225_0x222ca3(0x18d)](){const _0x2464d5=a225_0x222ca3;return this[_0x2464d5(0x187)];}async[a225_0x222ca3(0x176)](){const _0x50c242=a225_0x222ca3;try{const _0x4a422b=await readdir(this[_0x50c242(0x175)]),_0x5e2ff6=new Date()[_0x50c242(0x171)]()[_0x50c242(0x182)]('T')[0x0];if(_0x4a422b[_0x50c242(0x17b)](this[_0x50c242(0x17f)])){const _0x4b4b59=join(this[_0x50c242(0x175)],this['logFileName']),_0x16af3e=await stat(_0x4b4b59),_0x47e07e=new Date(_0x16af3e[_0x50c242(0x186)])[_0x50c242(0x171)]()[_0x50c242(0x182)]('T')[0x0];if(_0x47e07e<_0x5e2ff6){const _0x426ac7=join(this[_0x50c242(0x175)],this[_0x50c242(0x18e)]+'-'+_0x47e07e+_0x50c242(0x17a));await rename(_0x4b4b59,_0x426ac7);}}const _0x5319b3=await readdir(this[_0x50c242(0x175)]),_0x377834=this[_0x50c242(0x18e)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x50c242(0x18a)),_0x1a8eb7=new RegExp('^'+_0x377834+_0x50c242(0x173)),_0x82df80=_0x5319b3[_0x50c242(0x183)](_0x21cdf3=>_0x1a8eb7[_0x50c242(0x16c)](_0x21cdf3));for(const _0x4621bc of _0x82df80){const _0x14c2f8=join(this['logDir'],_0x4621bc),_0x33c544=join(this['logDir'],_0x4621bc+_0x50c242(0x180));try{await pipeline(createReadStream(_0x14c2f8),createGzip(),createWriteStream(_0x33c544)),await unlink(_0x14c2f8);}catch(_0x3ec29f){console[_0x50c242(0x16f)](_0x50c242(0x188)+_0x4621bc+':',_0x3ec29f);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x2dc251,_0x24bd44){var _0xaf02d9=a226_0x4938,_0x10d0e3=_0x2dc251();while(!![]){try{var _0x2a6a52=parseInt(_0xaf02d9(0x18c))/0x1+parseInt(_0xaf02d9(0x186))/0x2+-parseInt(_0xaf02d9(0x18a))/0x3*(-parseInt(_0xaf02d9(0x187))/0x4)+-parseInt(_0xaf02d9(0x185))/0x5+-parseInt(_0xaf02d9(0x189))/0x6+-parseInt(_0xaf02d9(0x188))/0x7+-parseInt(_0xaf02d9(0x18b))/0x8*(-parseInt(_0xaf02d9(0x184))/0x9);if(_0x2a6a52===_0x24bd44)break;else _0x10d0e3['push'](_0x10d0e3['shift']());}catch(_0x37dcde){_0x10d0e3['push'](_0x10d0e3['shift']());}}}(a226_0x37e5,0x7bc1f));export{FileHandler}from'./file-handler.js';function a226_0x37e5(){var _0x437da=['145008aujqmI','627292fGCFpv','711aPsGur','2413100hrvunI','247296ssUMkK','3596NIzxdn','3444287yQWUwJ','5184246iCaZAJ','543SFRokL'];a226_0x37e5=function(){return _0x437da;};return a226_0x37e5();}export{ConsoleHandler}from'./console-handler.js';function a226_0x4938(_0x2dcffe,_0x405e60){_0x2dcffe=_0x2dcffe-0x184;var _0x37e5be=a226_0x37e5();var _0x4938bb=_0x37e5be[_0x2dcffe];return _0x4938bb;}export{NullHandler}from'./null-handler.js';
1
+ (function(_0x5ce277,_0xc2e5c2){var _0x436335=a226_0xebaf,_0x1d5616=_0x5ce277();while(!![]){try{var _0x9d17b6=parseInt(_0x436335(0xe3))/0x1*(-parseInt(_0x436335(0xe1))/0x2)+-parseInt(_0x436335(0xde))/0x3+parseInt(_0x436335(0xdc))/0x4+-parseInt(_0x436335(0xdd))/0x5+parseInt(_0x436335(0xe2))/0x6+-parseInt(_0x436335(0xe0))/0x7+parseInt(_0x436335(0xdf))/0x8;if(_0x9d17b6===_0xc2e5c2)break;else _0x1d5616['push'](_0x1d5616['shift']());}catch(_0x1ec6df){_0x1d5616['push'](_0x1d5616['shift']());}}}(a226_0x331b,0x71a92));export{FileHandler}from'./file-handler.js';function a226_0x331b(){var _0x5ceecc=['2169684ULWptF','2930205fnzYbd','2297700yPuUYX','7736352LfoWrs','1874054ZwGBhS','37038aPrdqm','5343450iEIvuw','17iXzePp'];a226_0x331b=function(){return _0x5ceecc;};return a226_0x331b();}function a226_0xebaf(_0x261516,_0x40d2b2){_0x261516=_0x261516-0xdc;var _0x331b38=a226_0x331b();var _0xebaf9f=_0x331b38[_0x261516];return _0xebaf9f;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a227_0x3641(){var _0x39f688=['8lCNOqP','11sOkHCL','36109596oFbRcB','2419149qXUPtS','handle','3207290LUgVLr','789088hdOTVp','1371512staOJk','10AGcSOY','36CNyfSl','1588155yGGDYQ','14FRtMrA','16651638pqqsvD'];a227_0x3641=function(){return _0x39f688;};return a227_0x3641();}function a227_0x1720(_0x157d96,_0x384874){_0x157d96=_0x157d96-0xdd;var _0x3641a7=a227_0x3641();var _0x172029=_0x3641a7[_0x157d96];return _0x172029;}var a227_0x494056=a227_0x1720;(function(_0x377ff4,_0x276e8e){var _0x53e9b5=a227_0x1720,_0x115b0e=_0x377ff4();while(!![]){try{var _0x5b26ea=parseInt(_0x53e9b5(0xdf))/0x1+-parseInt(_0x53e9b5(0xde))/0x2+parseInt(_0x53e9b5(0xe9))/0x3*(-parseInt(_0x53e9b5(0xe6))/0x4)+-parseInt(_0x53e9b5(0xe3))/0x5*(-parseInt(_0x53e9b5(0xe2))/0x6)+-parseInt(_0x53e9b5(0xe4))/0x7*(-parseInt(_0x53e9b5(0xe0))/0x8)+parseInt(_0x53e9b5(0xe5))/0x9*(-parseInt(_0x53e9b5(0xe1))/0xa)+-parseInt(_0x53e9b5(0xe7))/0xb*(-parseInt(_0x53e9b5(0xe8))/0xc);if(_0x5b26ea===_0x276e8e)break;else _0x115b0e['push'](_0x115b0e['shift']());}catch(_0x481aba){_0x115b0e['push'](_0x115b0e['shift']());}}}(a227_0x3641,0xef544));export class NullHandler{[a227_0x494056(0xdd)](_0x568fa6){}}
1
+ var a227_0x29ca79=a227_0x233a;(function(_0xb6085c,_0x2439a9){var _0x3e9bf9=a227_0x233a,_0x600933=_0xb6085c();while(!![]){try{var _0xd1cee2=parseInt(_0x3e9bf9(0xbd))/0x1*(-parseInt(_0x3e9bf9(0xbb))/0x2)+-parseInt(_0x3e9bf9(0xb9))/0x3+parseInt(_0x3e9bf9(0xb4))/0x4*(-parseInt(_0x3e9bf9(0xb3))/0x5)+-parseInt(_0x3e9bf9(0xbc))/0x6+-parseInt(_0x3e9bf9(0xb7))/0x7*(parseInt(_0x3e9bf9(0xb5))/0x8)+-parseInt(_0x3e9bf9(0xba))/0x9+parseInt(_0x3e9bf9(0xb8))/0xa;if(_0xd1cee2===_0x2439a9)break;else _0x600933['push'](_0x600933['shift']());}catch(_0x492649){_0x600933['push'](_0x600933['shift']());}}}(a227_0x54d7,0x38e3b));function a227_0x233a(_0x5cac8f,_0x53eb80){_0x5cac8f=_0x5cac8f-0xb3;var _0x54d734=a227_0x54d7();var _0x233ae4=_0x54d734[_0x5cac8f];return _0x233ae4;}export class NullHandler{[a227_0x29ca79(0xb6)](_0x397195){}}function a227_0x54d7(){var _0x5521e6=['13ZXfwfk','845AHFMAw','1432txfMBT','1321208WMgkdt','handle','7ElwqCd','13596510KFlQpe','539721CaeXUu','1575828STsHdG','16964IhxzhE','2614284CfbeQd'];a227_0x54d7=function(){return _0x5521e6;};return a227_0x54d7();}
@@ -1 +1 @@
1
- (function(_0x255697,_0x393517){var _0xa0e9cc=a228_0x40c1,_0x4efd1e=_0x255697();while(!![]){try{var _0x3a80ee=-parseInt(_0xa0e9cc(0x151))/0x1*(parseInt(_0xa0e9cc(0x14d))/0x2)+parseInt(_0xa0e9cc(0x149))/0x3*(parseInt(_0xa0e9cc(0x148))/0x4)+-parseInt(_0xa0e9cc(0x14f))/0x5+-parseInt(_0xa0e9cc(0x14e))/0x6*(-parseInt(_0xa0e9cc(0x14c))/0x7)+parseInt(_0xa0e9cc(0x14a))/0x8+parseInt(_0xa0e9cc(0x152))/0x9*(-parseInt(_0xa0e9cc(0x150))/0xa)+parseInt(_0xa0e9cc(0x14b))/0xb;if(_0x3a80ee===_0x393517)break;else _0x4efd1e['push'](_0x4efd1e['shift']());}catch(_0xcd916f){_0x4efd1e['push'](_0x4efd1e['shift']());}}}(a228_0x14d3,0x5a4f2));export{Logger}from'./logger.js';function a228_0x40c1(_0x110a87,_0x5412bf){_0x110a87=_0x110a87-0x148;var _0x14d35b=a228_0x14d3();var _0x40c1b1=_0x14d35b[_0x110a87];return _0x40c1b1;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a228_0x14d3(){var _0x11f78e=['287gYAXRd','612248WSkNxS','99774vQUKjc','3320640sYXEyf','211210RvfUvi','1cYGBMH','171YYyQSR','613660wGFKaD','9GZwBis','4674384PopxSu','166375QBYxsq'];a228_0x14d3=function(){return _0x11f78e;};return a228_0x14d3();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x2a4b20,_0x313004){var _0x13889e=a228_0x4496,_0x3e2601=_0x2a4b20();while(!![]){try{var _0x9f27c8=-parseInt(_0x13889e(0x98))/0x1*(parseInt(_0x13889e(0x96))/0x2)+-parseInt(_0x13889e(0x9b))/0x3+-parseInt(_0x13889e(0x99))/0x4+parseInt(_0x13889e(0x9c))/0x5+-parseInt(_0x13889e(0x97))/0x6+-parseInt(_0x13889e(0x9a))/0x7+parseInt(_0x13889e(0x9d))/0x8;if(_0x9f27c8===_0x313004)break;else _0x3e2601['push'](_0x3e2601['shift']());}catch(_0x54224d){_0x3e2601['push'](_0x3e2601['shift']());}}}(a228_0x5557,0x821c6));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a228_0x4496(_0x230bcf,_0x3dcc34){_0x230bcf=_0x230bcf-0x96;var _0x555753=a228_0x5557();var _0x449690=_0x555753[_0x230bcf];return _0x449690;}function a228_0x5557(){var _0x56e509=['2367900MnCdkB','23121728tPPgBy','25108AWoSsT','3155412BiCaIU','27TPqNoP','2794684aIUHdj','7394352wlqKgT','632985LrsQbb'];a228_0x5557=function(){return _0x56e509;};return a228_0x5557();}