@treasuredata/tdx 2026.3.50 → 2026.3.52

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 (228) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.d.ts.map +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-command.js.map +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/engage-template-pull-command.js +1 -1
  28. package/dist/commands/engage-template-push-command.js +1 -1
  29. package/dist/commands/engage-template-validate-command.js +1 -1
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/journey-command.js +1 -1
  32. package/dist/commands/journey-validate-command.js +1 -1
  33. package/dist/commands/llm-command.js +1 -1
  34. package/dist/commands/mcp-command.js +1 -1
  35. package/dist/commands/parent-segment-command.js +1 -1
  36. package/dist/commands/policy-command.js +1 -1
  37. package/dist/commands/profile-command.js +1 -1
  38. package/dist/commands/profiles-command.js +1 -1
  39. package/dist/commands/query-command.js +1 -1
  40. package/dist/commands/schedule-command.js +1 -1
  41. package/dist/commands/segment-command.js +1 -1
  42. package/dist/commands/segment-create-command.js +1 -1
  43. package/dist/commands/segment-fields-command.js +1 -1
  44. package/dist/commands/segment-pull-command.js +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-update-command.js +1 -1
  47. package/dist/commands/segment-use-command.js +1 -1
  48. package/dist/commands/segment-validate-command.js +1 -1
  49. package/dist/commands/segments.js +1 -1
  50. package/dist/commands/show.js +1 -1
  51. package/dist/commands/status-command.js +1 -1
  52. package/dist/commands/tables.js +1 -1
  53. package/dist/commands/unset-command.js +1 -1
  54. package/dist/commands/upgrade-command.js +1 -1
  55. package/dist/commands/use-command.js +1 -1
  56. package/dist/commands/user-command.js +1 -1
  57. package/dist/commands/work-command.js +1 -1
  58. package/dist/commands/workflow-command.js +1 -1
  59. package/dist/core/auth.js +1 -1
  60. package/dist/core/command-output.js +1 -1
  61. package/dist/core/config.js +1 -1
  62. package/dist/core/connection-cache.js +1 -1
  63. package/dist/core/constants.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.d.ts.map +1 -1
  66. package/dist/core/global-context.js +1 -1
  67. package/dist/core/global-context.js.map +1 -1
  68. package/dist/core/keychain.js +1 -1
  69. package/dist/core/oauth-keychain.js +1 -1
  70. package/dist/core/oauth.d.ts +1 -0
  71. package/dist/core/oauth.d.ts.map +1 -1
  72. package/dist/core/oauth.js +1 -1
  73. package/dist/core/oauth.js.map +1 -1
  74. package/dist/core/profile.js +1 -1
  75. package/dist/core/project-config.js +1 -1
  76. package/dist/core/session.js +1 -1
  77. package/dist/core/user-cache.js +1 -1
  78. package/dist/core/version.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/mcp/server.js +1 -1
  81. package/dist/mcp/tools/index.js +1 -1
  82. package/dist/mcp/tools/tdx-run.js +1 -1
  83. package/dist/mcp/tools/tdx-search.js +1 -1
  84. package/dist/mcp/utils.js +1 -1
  85. package/dist/proxy/claude-usage-tracker.js +1 -1
  86. package/dist/proxy/passthrough-server.d.ts +21 -4
  87. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  88. package/dist/proxy/passthrough-server.js +1 -1
  89. package/dist/proxy/passthrough-server.js.map +1 -1
  90. package/dist/proxy/sse-usage-parser.js +1 -1
  91. package/dist/sdk/agent/agent-config.js +1 -1
  92. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  93. package/dist/sdk/agent/agent-yaml.js +1 -1
  94. package/dist/sdk/agent/test/evaluator.js +1 -1
  95. package/dist/sdk/agent/test/executor.js +1 -1
  96. package/dist/sdk/agent/test/index.js +1 -1
  97. package/dist/sdk/agent/test/output.js +1 -1
  98. package/dist/sdk/agent/test/parser.js +1 -1
  99. package/dist/sdk/agent/tool-target-registry.js +1 -1
  100. package/dist/sdk/api.js +1 -1
  101. package/dist/sdk/cas/cas-api-client.js +1 -1
  102. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  103. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  104. package/dist/sdk/cas/index.js +1 -1
  105. package/dist/sdk/cas/pull-workflow.js +1 -1
  106. package/dist/sdk/cas/push-workflow.js +1 -1
  107. package/dist/sdk/client/cdp-api-client.js +1 -1
  108. package/dist/sdk/client/delivery-api-client.js +1 -1
  109. package/dist/sdk/client/endpoints.js +1 -1
  110. package/dist/sdk/client/engage-api-client.js +1 -1
  111. package/dist/sdk/client/http-client.js +1 -1
  112. package/dist/sdk/client/llm-api-client.js +1 -1
  113. package/dist/sdk/client/oauth-refresh.js +1 -1
  114. package/dist/sdk/client/rate-limiter.js +1 -1
  115. package/dist/sdk/client/td-api-client.js +1 -1
  116. package/dist/sdk/client/trino-api-client.js +1 -1
  117. package/dist/sdk/client/workflow-client.js +1 -1
  118. package/dist/sdk/connection-validator.js +1 -1
  119. package/dist/sdk/connection.js +1 -1
  120. package/dist/sdk/delivery.js +1 -1
  121. package/dist/sdk/engage/campaign-pull.js +1 -1
  122. package/dist/sdk/engage/campaign-push.js +1 -1
  123. package/dist/sdk/engage/campaign-validator.js +1 -1
  124. package/dist/sdk/engage/campaign-yaml.js +1 -1
  125. package/dist/sdk/engage/template-pull.js +1 -1
  126. package/dist/sdk/engage/template-push.js +1 -1
  127. package/dist/sdk/engage/template-validator.js +1 -1
  128. package/dist/sdk/engage/template-yaml.js +1 -1
  129. package/dist/sdk/engage/types/campaign-def.js +1 -1
  130. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  131. package/dist/sdk/engage/types/template-schema.js +1 -1
  132. package/dist/sdk/engage.js +1 -1
  133. package/dist/sdk/errors.js +1 -1
  134. package/dist/sdk/index.js +1 -1
  135. package/dist/sdk/io/index.js +1 -1
  136. package/dist/sdk/io/node-filesystem.js +1 -1
  137. package/dist/sdk/job.js +1 -1
  138. package/dist/sdk/journey.js +1 -1
  139. package/dist/sdk/llm/chat-cache.js +1 -1
  140. package/dist/sdk/llm/index.js +1 -1
  141. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  142. package/dist/sdk/llm/model-factors.js +1 -1
  143. package/dist/sdk/personalization.js +1 -1
  144. package/dist/sdk/policy.js +1 -1
  145. package/dist/sdk/query/index.js +1 -1
  146. package/dist/sdk/query/sql-parser.js +1 -1
  147. package/dist/sdk/realtime.js +1 -1
  148. package/dist/sdk/schedule.js +1 -1
  149. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  150. package/dist/sdk/segment/fields-display.js +1 -1
  151. package/dist/sdk/segment/file-discovery.js +1 -1
  152. package/dist/sdk/segment/journey-utils.js +1 -1
  153. package/dist/sdk/segment/journey-validator.js +1 -1
  154. package/dist/sdk/segment/journey-yaml.js +1 -1
  155. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  156. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  157. package/dist/sdk/segment/pull-workflow.js +1 -1
  158. package/dist/sdk/segment/push-recovery.js +1 -1
  159. package/dist/sdk/segment/push-workflow.js +1 -1
  160. package/dist/sdk/segment/resolution-context.js +1 -1
  161. package/dist/sdk/segment/segment-path-parser.js +1 -1
  162. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  163. package/dist/sdk/segment/segment-validator.js +1 -1
  164. package/dist/sdk/segment/target-resolution.js +1 -1
  165. package/dist/sdk/segment/tdx-config.js +1 -1
  166. package/dist/sdk/segment/types/activation-schema.js +1 -1
  167. package/dist/sdk/segment/types/journey-def.js +1 -1
  168. package/dist/sdk/segment/types/journey-schema.js +1 -1
  169. package/dist/sdk/segment/types/segment-def.js +1 -1
  170. package/dist/sdk/segment/types/segment-schema.js +1 -1
  171. package/dist/sdk/segment/validate-files.js +1 -1
  172. package/dist/sdk/segment/yaml-validator.js +1 -1
  173. package/dist/sdk/segment.js +1 -1
  174. package/dist/sdk/types/index.js +1 -1
  175. package/dist/sdk/types/progress.js +1 -1
  176. package/dist/sdk/types/workspace.js +1 -1
  177. package/dist/sdk/user.js +1 -1
  178. package/dist/sdk/util/format-detector.js +1 -1
  179. package/dist/sdk/util/formatters.js +1 -1
  180. package/dist/sdk/util/index.js +1 -1
  181. package/dist/sdk/util/paginate.js +1 -1
  182. package/dist/sdk/util/tree-formatter.js +1 -1
  183. package/dist/sdk/workflow/archive-validation.js +1 -1
  184. package/dist/sdk/workflow/clone-workflow.js +1 -1
  185. package/dist/sdk/workflow/index.js +1 -1
  186. package/dist/sdk/workflow/pull-workflow.js +1 -1
  187. package/dist/sdk/workflow/push-workflow.js +1 -1
  188. package/dist/sdk/workflow/tdx-config.js +1 -1
  189. package/dist/sdk/workflow/workflow-utils.js +1 -1
  190. package/dist/sdk/workspace/frontmatter.js +1 -1
  191. package/dist/sdk/workspace/git.js +1 -1
  192. package/dist/sdk/workspace/index.js +1 -1
  193. package/dist/sdk/workspace/templates.js +1 -1
  194. package/dist/sdk/workspace/weekly.js +1 -1
  195. package/dist/sdk/workspace/wikilinks.js +1 -1
  196. package/dist/test-utils/command-runner.js +1 -1
  197. package/dist/test-utils/factories.js +1 -1
  198. package/dist/test-utils/fixtures.js +1 -1
  199. package/dist/test-utils/http-mock.js +1 -1
  200. package/dist/test-utils/index.js +1 -1
  201. package/dist/utils/async.js +1 -1
  202. package/dist/utils/colors.js +1 -1
  203. package/dist/utils/diff.js +1 -1
  204. package/dist/utils/file-permissions.js +1 -1
  205. package/dist/utils/file-reader.js +1 -1
  206. package/dist/utils/github-releases.js +1 -1
  207. package/dist/utils/global-cache.js +1 -1
  208. package/dist/utils/json-loader.js +1 -1
  209. package/dist/utils/local-cache.js +1 -1
  210. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  211. package/dist/utils/logger/formatters/index.js +1 -1
  212. package/dist/utils/logger/handlers/console-handler.js +1 -1
  213. package/dist/utils/logger/handlers/file-handler.js +1 -1
  214. package/dist/utils/logger/handlers/index.js +1 -1
  215. package/dist/utils/logger/handlers/null-handler.js +1 -1
  216. package/dist/utils/logger/index.js +1 -1
  217. package/dist/utils/logger/logger.js +1 -1
  218. package/dist/utils/logger/types.js +1 -1
  219. package/dist/utils/option-validation.js +1 -1
  220. package/dist/utils/process.js +1 -1
  221. package/dist/utils/prompt.js +1 -1
  222. package/dist/utils/spinner.js +1 -1
  223. package/dist/utils/sse-parser.js +1 -1
  224. package/dist/utils/string-utils.js +1 -1
  225. package/dist/utils/table-ref-parser.js +1 -1
  226. package/dist/utils/tdx-logger.js +1 -1
  227. package/dist/utils/version-check.js +1 -1
  228. package/package.json +1 -1
@@ -1 +1 @@
1
- const a205_0x277be3=a205_0x4cf5;function a205_0x521c(){const _0x2006a1=['152UHCdgF','test','Not\x20Found','register','application/json','map','mockImplementation','Forbidden','parse','length','get','toLowerCase','requests','Bad\x20Gateway','getRequests','stubs','withQuery','https://api.treasuredata.com/errors/','885zCoWSR','string','Bad\x20Request','34752MwFmwm','textResponse','jsonResponseWithHeaders','matchCount','getStatusText','errorResponse','Request\x20body:\x20','Unmatched\x20stub','forEach','3731LqriUu','Too\x20Many\x20Requests','toUpperCase','pathname','28dsMzLD','fail','text/plain','No\x20stub\x20matched\x20request:\x20','function','every','method','REST','isArray','GET','1hlvuOZ','some','description','reset','parseRequest','td-api','stringify','6561269elRdMk','4048fRiAvR','339566ifKJEU','headers','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Internal\x20Server\x20Error','slice','join','\x20\x20(none)','body','stack','wasCalled','Service\x20Unavailable','fetchMock','url','Registered\x20stubs:\x0a','9XmNyiC','4765470BlbYYU','withHost','unnamed\x20stub','2959YBkRGz','Unauthorized','12318XAfzvL','matched','push','entries','includes','split','responder','Conflict','verify','createFetch','filter','4524wvONoc'];a205_0x521c=function(){return _0x2006a1;};return a205_0x521c();}(function(_0x4821f6,_0x1cbe01){const _0x122154=a205_0x4cf5,_0x9c10dc=_0x4821f6();while(!![]){try{const _0x25f2aa=-parseInt(_0x122154(0xb3))/0x1*(-parseInt(_0x122154(0xbc))/0x2)+parseInt(_0x122154(0x9c))/0x3*(-parseInt(_0x122154(0x87))/0x4)+parseInt(_0x122154(0x99))/0x5*(parseInt(_0x122154(0x7b))/0x6)+parseInt(_0x122154(0xa5))/0x7*(-parseInt(_0x122154(0xbb))/0x8)+parseInt(_0x122154(0x75))/0x9*(-parseInt(_0x122154(0x76))/0xa)+-parseInt(_0x122154(0x79))/0xb*(parseInt(_0x122154(0x86))/0xc)+parseInt(_0x122154(0xba))/0xd*(parseInt(_0x122154(0xa9))/0xe);if(_0x25f2aa===_0x1cbe01)break;else _0x9c10dc['push'](_0x9c10dc['shift']());}catch(_0x515417){_0x9c10dc['push'](_0x9c10dc['shift']());}}}(a205_0x521c,0x3e314));function a205_0x4cf5(_0x38c478,_0x5eb0d7){_0x38c478=_0x38c478-0x73;const _0x521cd9=a205_0x521c();let _0x4cf584=_0x521cd9[_0x38c478];return _0x4cf584;}import{vi}from'vitest';export class HTTPMockRegistry{[a205_0x277be3(0x96)]=[];['requests']=[];[a205_0x277be3(0xc7)]=null;[a205_0x277be3(0xb0)](_0xa9dfdc,_0x296808){return _0x4588d1=>{const _0x3ab66f=a205_0x4cf5;if(_0x4588d1[_0x3ab66f(0xaf)][_0x3ab66f(0xa7)]()!==_0xa9dfdc[_0x3ab66f(0xa7)]())return![];const _0x41c466=new URL(_0x4588d1['url']);if(typeof _0x296808===_0x3ab66f(0x9a))return _0x41c466[_0x3ab66f(0xa8)]===_0x296808||_0x41c466[_0x3ab66f(0xa8)][_0x3ab66f(0x7f)](_0x296808);return _0x296808[_0x3ab66f(0x88)](_0x41c466[_0x3ab66f(0xa8)]);};}[a205_0x277be3(0x97)](_0x18fa4a,_0x1e5cc6){return _0x595ef5=>{const _0x1e8513=a205_0x4cf5;if(!_0x18fa4a(_0x595ef5))return![];const _0x474d12=new URL(_0x595ef5['url']);return Object[_0x1e8513(0x7e)](_0x1e5cc6)[_0x1e8513(0xae)](([_0x562756,_0x332df7])=>_0x474d12['searchParams'][_0x1e8513(0x91)](_0x562756)===_0x332df7);};}['withBody'](_0x136255,_0x2b03ac){return _0x27b78d=>{const _0x4b6bf5=a205_0x4cf5;if(!_0x136255(_0x27b78d))return![];if(typeof _0x2b03ac===_0x4b6bf5(0xad))return _0x2b03ac(_0x27b78d['body']);return JSON[_0x4b6bf5(0xb9)](_0x27b78d[_0x4b6bf5(0xc3)])===JSON[_0x4b6bf5(0xb9)](_0x2b03ac);};}[a205_0x277be3(0x77)](_0x47cde2,_0x3fe7c0){return _0x5ad4f7=>{const _0x123223=a205_0x4cf5;if(!_0x47cde2(_0x5ad4f7))return![];const _0xba9a7a=new URL(_0x5ad4f7[_0x123223(0x73)]);return _0xba9a7a['host']===_0x3fe7c0;};}[a205_0x277be3(0x8a)](_0xf21bae,_0x5c1356,_0xc0889b){const _0x544708=a205_0x277be3;this[_0x544708(0x96)][_0x544708(0x7d)]({'matcher':_0xf21bae,'responder':_0x5c1356,'matched':![],'matchCount':0x0,'stack':new Error()[_0x544708(0xc4)]??'','description':_0xc0889b?.[_0x544708(0xb5)]});}['registerWithInspector'](_0x1e6279,_0x45978e,_0x27bc02){const _0x1fe221=a205_0x277be3,_0x4ddc0d=_0x21eabb=>{const _0x5a5eed=a205_0x4cf5;return _0x27bc02(_0x21eabb[_0x5a5eed(0xc3)],_0x21eabb),_0x45978e(_0x21eabb);};this[_0x1fe221(0x8a)](_0x1e6279,_0x4ddc0d);}static['jsonResponse'](_0x2360b7,_0x31d71d=0xc8){const _0x52d7ad=a205_0x277be3;return()=>new Response(JSON[_0x52d7ad(0xb9)](_0x2360b7),{'status':_0x31d71d,'headers':{'Content-Type':_0x52d7ad(0x8b)}});}static[a205_0x277be3(0xa1)](_0x52a01c,_0x40bd99,_0x1f173a='simple'){return()=>{const _0x446b2a=a205_0x4cf5;let _0x37e63b;switch(_0x1f173a){case _0x446b2a(0xb8):_0x37e63b={'errors':{'error':_0x40bd99,'message':_0x40bd99,'severity':'error','status_code':_0x52a01c}};break;case'rfc9457':_0x37e63b={'type':_0x446b2a(0x98)+_0x52a01c,'title':HTTPMockRegistry[_0x446b2a(0xa0)](_0x52a01c),'status':_0x52a01c,'detail':_0x40bd99};break;default:_0x37e63b={'error':_0x40bd99};}return new Response(JSON[_0x446b2a(0xb9)](_0x37e63b),{'status':_0x52a01c,'headers':{'Content-Type':_0x446b2a(0x8b)}});};}static[a205_0x277be3(0x9e)](_0x474dc4,_0x35f562,_0x3a5e9a=0xc8){const _0x37a5d6=a205_0x277be3;return()=>new Response(JSON[_0x37a5d6(0xb9)](_0x474dc4),{'status':_0x3a5e9a,'headers':{'Content-Type':_0x37a5d6(0x8b),..._0x35f562}});}static[a205_0x277be3(0x9d)](_0x9e32d4,_0x149ebd=0xc8){const _0x5bc542=a205_0x277be3;return()=>new Response(_0x9e32d4,{'status':_0x149ebd,'headers':{'Content-Type':_0x5bc542(0xab)}});}static['networkError'](_0x1bd490){return()=>{throw new Error(_0x1bd490);};}[a205_0x277be3(0x84)](){const _0x1d452e=a205_0x277be3;return this[_0x1d452e(0xc7)]=vi['fn']()[_0x1d452e(0x8d)](async(_0x79a2b5,_0x4da816)=>{const _0x449afa=_0x1d452e,_0x37a8d7=this[_0x449afa(0xb7)](_0x79a2b5,_0x4da816);this['requests']['push'](_0x37a8d7);for(const _0x23b1d1 of this['stubs']){if(_0x23b1d1['matcher'](_0x37a8d7))return _0x23b1d1[_0x449afa(0x7c)]=!![],_0x23b1d1[_0x449afa(0x9f)]++,_0x23b1d1[_0x449afa(0x81)](_0x37a8d7);}const _0x9367d0=this[_0x449afa(0x96)][_0x449afa(0x8c)]((_0x57f3f5,_0x26aadc)=>'\x20\x20'+(_0x26aadc+0x1)+'.\x20'+(_0x57f3f5['description']??_0x449afa(0x78)))[_0x449afa(0xc1)]('\x0a');throw new Error(_0x449afa(0xac)+_0x37a8d7[_0x449afa(0xaf)]+'\x20'+_0x37a8d7['url']+'\x0a'+(_0x449afa(0xa2)+JSON[_0x449afa(0xb9)](_0x37a8d7['body'])+'\x0a')+(_0x449afa(0x74)+(_0x9367d0||_0x449afa(0xc2))));}),this[_0x1d452e(0xc7)];}['parseRequest'](_0x4fbde5,_0x3fef3c){const _0x31ac74=a205_0x277be3,_0x5aa8b0={};if(_0x3fef3c?.[_0x31ac74(0xbd)]){if(_0x3fef3c['headers']instanceof Headers)_0x3fef3c[_0x31ac74(0xbd)][_0x31ac74(0xa4)]((_0x75fe1c,_0x7f0673)=>{const _0x5aeefe=_0x31ac74;_0x5aa8b0[_0x7f0673[_0x5aeefe(0x92)]()]=_0x75fe1c;});else{if(Array[_0x31ac74(0xb1)](_0x3fef3c[_0x31ac74(0xbd)]))for(const [_0x1e4512,_0x113d33]of _0x3fef3c[_0x31ac74(0xbd)]){_0x5aa8b0[_0x1e4512['toLowerCase']()]=_0x113d33;}else for(const [_0x538734,_0x407d9b]of Object[_0x31ac74(0x7e)](_0x3fef3c[_0x31ac74(0xbd)])){_0x407d9b!==undefined&&(_0x5aa8b0[_0x538734['toLowerCase']()]=_0x407d9b);}}}let _0x3a908d;if(_0x3fef3c?.[_0x31ac74(0xc3)])try{_0x3a908d=JSON[_0x31ac74(0x8f)](_0x3fef3c[_0x31ac74(0xc3)]);}catch{_0x3a908d=_0x3fef3c['body'];}return{'method':_0x3fef3c?.[_0x31ac74(0xaf)]??_0x31ac74(0xb2),'url':_0x4fbde5,'headers':_0x5aa8b0,'body':_0x3a908d};}[a205_0x277be3(0x83)](_0x58810b){const _0x590d30=a205_0x277be3,_0x31b8bf=this[_0x590d30(0x96)][_0x590d30(0x85)](_0x779b54=>!_0x779b54[_0x590d30(0x7c)]);if(_0x31b8bf[_0x590d30(0x90)]>0x0){const _0x56e30b=_0x31b8bf[_0x590d30(0x8c)](_0x18ae4c=>{const _0xad3e4b=_0x590d30,_0x3e3e17=_0x18ae4c[_0xad3e4b(0xb5)]?'\x20('+_0x18ae4c[_0xad3e4b(0xb5)]+')':'',_0x2cd4e=_0x18ae4c[_0xad3e4b(0xc4)][_0xad3e4b(0x80)]('\x0a')[_0xad3e4b(0xc0)](0x2,0x5)['join']('\x0a');return _0xad3e4b(0xa3)+_0x3e3e17+'\x20registered\x20at:\x0a'+_0x2cd4e;});_0x58810b[_0x590d30(0xaa)](_0x31b8bf[_0x590d30(0x90)]+_0x590d30(0xbe)+_0x56e30b['join']('\x0a\x0a'));}}[a205_0x277be3(0x95)](){const _0x37ac15=a205_0x277be3;return[...this[_0x37ac15(0x93)]];}['getLastRequest'](){const _0x17c0f7=a205_0x277be3;return this[_0x17c0f7(0x93)][this[_0x17c0f7(0x93)][_0x17c0f7(0x90)]-0x1];}[a205_0x277be3(0xc5)](_0x5021b4,_0x1c76dd){const _0x170c80=a205_0x277be3;return this['requests'][_0x170c80(0xb4)](_0x13177b=>{const _0x202d4f=_0x170c80;if(_0x13177b[_0x202d4f(0xaf)]['toUpperCase']()!==_0x5021b4['toUpperCase']())return![];if(typeof _0x1c76dd==='string')return _0x13177b[_0x202d4f(0x73)][_0x202d4f(0x7f)](_0x1c76dd);return _0x1c76dd['test'](_0x13177b['url']);});}['getMatchCount'](_0x54b0ad){const _0x3c5008=a205_0x277be3;return this[_0x3c5008(0x96)][_0x54b0ad]?.[_0x3c5008(0x9f)]??0x0;}[a205_0x277be3(0xb6)](){const _0x5ae072=a205_0x277be3;this[_0x5ae072(0x96)]=[],this[_0x5ae072(0x93)]=[],this['fetchMock']=null;}static[a205_0x277be3(0xa0)](_0x430088){const _0x7be7fb=a205_0x277be3,_0x50d859={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:_0x7be7fb(0x9b),0x191:_0x7be7fb(0x7a),0x193:_0x7be7fb(0x8e),0x194:_0x7be7fb(0x89),0x199:_0x7be7fb(0x82),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x7be7fb(0xa6),0x1f4:_0x7be7fb(0xbf),0x1f6:_0x7be7fb(0x94),0x1f7:_0x7be7fb(0xc6)};return _0x50d859[_0x430088]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a205_0x5c2454=a205_0x3ef1;(function(_0x4327d4,_0xb5afc9){const _0x30a6ad=a205_0x3ef1,_0x55d58a=_0x4327d4();while(!![]){try{const _0x99534e=parseInt(_0x30a6ad(0x17e))/0x1*(-parseInt(_0x30a6ad(0x196))/0x2)+parseInt(_0x30a6ad(0x19c))/0x3*(parseInt(_0x30a6ad(0x194))/0x4)+-parseInt(_0x30a6ad(0x1b2))/0x5*(-parseInt(_0x30a6ad(0x1a7))/0x6)+parseInt(_0x30a6ad(0x17a))/0x7*(parseInt(_0x30a6ad(0x1ad))/0x8)+parseInt(_0x30a6ad(0x176))/0x9+-parseInt(_0x30a6ad(0x172))/0xa*(-parseInt(_0x30a6ad(0x177))/0xb)+-parseInt(_0x30a6ad(0x16b))/0xc;if(_0x99534e===_0xb5afc9)break;else _0x55d58a['push'](_0x55d58a['shift']());}catch(_0x4bc682){_0x55d58a['push'](_0x55d58a['shift']());}}}(a205_0x2939,0x48783));import{vi}from'vitest';function a205_0x3ef1(_0x59ed98,_0x80e83d){_0x59ed98=_0x59ed98-0x163;const _0x2939d5=a205_0x2939();let _0x3ef1ef=_0x2939d5[_0x59ed98];return _0x3ef1ef;}export class HTTPMockRegistry{[a205_0x5c2454(0x1b3)]=[];[a205_0x5c2454(0x1ab)]=[];['fetchMock']=null;[a205_0x5c2454(0x189)](_0x1f3cff,_0x37aa78){return _0x25f6d5=>{const _0x181124=a205_0x3ef1;if(_0x25f6d5[_0x181124(0x17f)]['toUpperCase']()!==_0x1f3cff[_0x181124(0x18d)]())return![];const _0x55c615=new URL(_0x25f6d5[_0x181124(0x16c)]);if(typeof _0x37aa78==='string')return _0x55c615[_0x181124(0x1b1)]===_0x37aa78||_0x55c615[_0x181124(0x1b1)]['includes'](_0x37aa78);return _0x37aa78[_0x181124(0x1a2)](_0x55c615[_0x181124(0x1b1)]);};}[a205_0x5c2454(0x16e)](_0x2ede6a,_0x276736){return _0x16a991=>{const _0x240fb5=a205_0x3ef1;if(!_0x2ede6a(_0x16a991))return![];const _0x5868d3=new URL(_0x16a991[_0x240fb5(0x16c)]);return Object[_0x240fb5(0x195)](_0x276736)[_0x240fb5(0x165)](([_0x55db90,_0x296ef5])=>_0x5868d3[_0x240fb5(0x17c)][_0x240fb5(0x187)](_0x55db90)===_0x296ef5);};}[a205_0x5c2454(0x1a6)](_0x11cee6,_0x5f5d20){return _0x4f2c5f=>{const _0x1b890d=a205_0x3ef1;if(!_0x11cee6(_0x4f2c5f))return![];if(typeof _0x5f5d20===_0x1b890d(0x1ac))return _0x5f5d20(_0x4f2c5f['body']);return JSON[_0x1b890d(0x199)](_0x4f2c5f['body'])===JSON[_0x1b890d(0x199)](_0x5f5d20);};}['withHost'](_0x361a4c,_0x5d09c5){return _0x582d55=>{if(!_0x361a4c(_0x582d55))return![];const _0x2335fe=new URL(_0x582d55['url']);return _0x2335fe['host']===_0x5d09c5;};}[a205_0x5c2454(0x181)](_0x18fcb2,_0x4d97e7,_0xc023f0){const _0x575efc=a205_0x5c2454;this['stubs'][_0x575efc(0x1b0)]({'matcher':_0x18fcb2,'responder':_0x4d97e7,'matched':![],'matchCount':0x0,'stack':new Error()[_0x575efc(0x190)]??'','description':_0xc023f0?.[_0x575efc(0x169)]});}[a205_0x5c2454(0x179)](_0x148799,_0x3ffc8f,_0x1e1c91){const _0x3d1bd3=a205_0x5c2454,_0x1f6df1=_0x3c2eed=>{const _0x1b2cb2=a205_0x3ef1;return _0x1e1c91(_0x3c2eed[_0x1b2cb2(0x174)],_0x3c2eed),_0x3ffc8f(_0x3c2eed);};this[_0x3d1bd3(0x181)](_0x148799,_0x1f6df1);}static[a205_0x5c2454(0x164)](_0x31b525,_0x5d3a65=0xc8){const _0x520444=a205_0x5c2454;return()=>new Response(JSON[_0x520444(0x199)](_0x31b525),{'status':_0x5d3a65,'headers':{'Content-Type':_0x520444(0x1a8)}});}static[a205_0x5c2454(0x197)](_0xae05c2,_0x47961b,_0x443b85=a205_0x5c2454(0x183)){return()=>{const _0x571efe=a205_0x3ef1;let _0x52c7df;switch(_0x443b85){case'td-api':_0x52c7df={'errors':{'error':_0x47961b,'message':_0x47961b,'severity':_0x571efe(0x198),'status_code':_0xae05c2}};break;case _0x571efe(0x167):_0x52c7df={'type':_0x571efe(0x1ae)+_0xae05c2,'title':HTTPMockRegistry['getStatusText'](_0xae05c2),'status':_0xae05c2,'detail':_0x47961b};break;default:_0x52c7df={'error':_0x47961b};}return new Response(JSON[_0x571efe(0x199)](_0x52c7df),{'status':_0xae05c2,'headers':{'Content-Type':_0x571efe(0x1a8)}});};}static[a205_0x5c2454(0x19a)](_0x55b51e,_0x331f88,_0x15fc73=0xc8){const _0x3dfbb6=a205_0x5c2454;return()=>new Response(JSON[_0x3dfbb6(0x199)](_0x55b51e),{'status':_0x15fc73,'headers':{'Content-Type':'application/json',..._0x331f88}});}static[a205_0x5c2454(0x168)](_0x19d2b6,_0x25e180=0xc8){const _0x21f876=a205_0x5c2454;return()=>new Response(_0x19d2b6,{'status':_0x25e180,'headers':{'Content-Type':_0x21f876(0x19b)}});}static['networkError'](_0x3c54e1){return()=>{throw new Error(_0x3c54e1);};}[a205_0x5c2454(0x163)](){const _0x5e7452=a205_0x5c2454;return this[_0x5e7452(0x18b)]=vi['fn']()[_0x5e7452(0x178)](async(_0x303d7d,_0x2f8adf)=>{const _0xfd99a6=_0x5e7452,_0x18f76f=this[_0xfd99a6(0x18a)](_0x303d7d,_0x2f8adf);this['requests'][_0xfd99a6(0x1b0)](_0x18f76f);for(const _0x91690a of this[_0xfd99a6(0x1b3)]){if(_0x91690a['matcher'](_0x18f76f))return _0x91690a[_0xfd99a6(0x192)]=!![],_0x91690a[_0xfd99a6(0x173)]++,_0x91690a[_0xfd99a6(0x18e)](_0x18f76f);}const _0x1bb3fd=this[_0xfd99a6(0x1b3)]['map']((_0x1ba000,_0x1def81)=>'\x20\x20'+(_0x1def81+0x1)+'.\x20'+(_0x1ba000[_0xfd99a6(0x169)]??_0xfd99a6(0x17d)))['join']('\x0a');throw new Error(_0xfd99a6(0x171)+_0x18f76f[_0xfd99a6(0x17f)]+'\x20'+_0x18f76f[_0xfd99a6(0x16c)]+'\x0a'+(_0xfd99a6(0x1aa)+JSON[_0xfd99a6(0x199)](_0x18f76f[_0xfd99a6(0x174)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x1bb3fd||_0xfd99a6(0x184))));}),this['fetchMock'];}[a205_0x5c2454(0x18a)](_0x1b78d7,_0x2fafaa){const _0x2b6b10=a205_0x5c2454,_0x4deeee={};if(_0x2fafaa?.[_0x2b6b10(0x1af)]){if(_0x2fafaa[_0x2b6b10(0x1af)]instanceof Headers)_0x2fafaa[_0x2b6b10(0x1af)][_0x2b6b10(0x182)]((_0x415e46,_0x59dd23)=>{const _0x3883d3=_0x2b6b10;_0x4deeee[_0x59dd23[_0x3883d3(0x19d)]()]=_0x415e46;});else{if(Array[_0x2b6b10(0x16f)](_0x2fafaa[_0x2b6b10(0x1af)]))for(const [_0x101f66,_0x71e02]of _0x2fafaa[_0x2b6b10(0x1af)]){_0x4deeee[_0x101f66[_0x2b6b10(0x19d)]()]=_0x71e02;}else for(const [_0x4b60d1,_0x492b09]of Object['entries'](_0x2fafaa[_0x2b6b10(0x1af)])){_0x492b09!==undefined&&(_0x4deeee[_0x4b60d1['toLowerCase']()]=_0x492b09);}}}let _0xad2764;if(_0x2fafaa?.[_0x2b6b10(0x174)])try{_0xad2764=JSON[_0x2b6b10(0x19e)](_0x2fafaa[_0x2b6b10(0x174)]);}catch{_0xad2764=_0x2fafaa[_0x2b6b10(0x174)];}return{'method':_0x2fafaa?.[_0x2b6b10(0x17f)]??_0x2b6b10(0x18f),'url':_0x1b78d7,'headers':_0x4deeee,'body':_0xad2764};}[a205_0x5c2454(0x193)](_0x2f891d){const _0x4388b4=a205_0x5c2454,_0x43bf5f=this[_0x4388b4(0x1b3)][_0x4388b4(0x191)](_0xbc05a=>!_0xbc05a[_0x4388b4(0x192)]);if(_0x43bf5f[_0x4388b4(0x1a1)]>0x0){const _0x321422=_0x43bf5f[_0x4388b4(0x1b5)](_0x4766db=>{const _0x529753=_0x4388b4,_0x49d53e=_0x4766db['description']?'\x20('+_0x4766db[_0x529753(0x169)]+')':'',_0x30665b=_0x4766db[_0x529753(0x190)]['split']('\x0a')['slice'](0x2,0x5)['join']('\x0a');return _0x529753(0x166)+_0x49d53e+'\x20registered\x20at:\x0a'+_0x30665b;});_0x2f891d['fail'](_0x43bf5f[_0x4388b4(0x1a1)]+_0x4388b4(0x170)+_0x321422[_0x4388b4(0x16a)]('\x0a\x0a'));}}[a205_0x5c2454(0x185)](){return[...this['requests']];}['getLastRequest'](){const _0x59f75d=a205_0x5c2454;return this['requests'][this[_0x59f75d(0x1ab)][_0x59f75d(0x1a1)]-0x1];}[a205_0x5c2454(0x186)](_0x4c2eaa,_0x411360){const _0x1a34bc=a205_0x5c2454;return this[_0x1a34bc(0x1ab)][_0x1a34bc(0x16d)](_0x1abba3=>{const _0x22dc7c=_0x1a34bc;if(_0x1abba3[_0x22dc7c(0x17f)][_0x22dc7c(0x18d)]()!==_0x4c2eaa[_0x22dc7c(0x18d)]())return![];if(typeof _0x411360===_0x22dc7c(0x1b4))return _0x1abba3[_0x22dc7c(0x16c)]['includes'](_0x411360);return _0x411360[_0x22dc7c(0x1a2)](_0x1abba3[_0x22dc7c(0x16c)]);});}[a205_0x5c2454(0x18c)](_0x90ec5e){const _0x5cbfa6=a205_0x5c2454;return this[_0x5cbfa6(0x1b3)][_0x90ec5e]?.[_0x5cbfa6(0x173)]??0x0;}['reset'](){const _0x3e1cc3=a205_0x5c2454;this[_0x3e1cc3(0x1b3)]=[],this[_0x3e1cc3(0x1ab)]=[],this[_0x3e1cc3(0x18b)]=null;}static[a205_0x5c2454(0x17b)](_0x60a24d){const _0x2af976=a205_0x5c2454,_0x24d538={0xc8:'OK',0xc9:_0x2af976(0x19f),0xcc:'No\x20Content',0x190:_0x2af976(0x1a5),0x191:_0x2af976(0x180),0x193:'Forbidden',0x194:'Not\x20Found',0x199:'Conflict',0x1a6:_0x2af976(0x1a0),0x1ad:_0x2af976(0x1a4),0x1f4:_0x2af976(0x1a9),0x1f6:_0x2af976(0x188),0x1f7:_0x2af976(0x1a3)};return _0x24d538[_0x60a24d]??_0x2af976(0x175);}}export function createHTTPMock(){return new HTTPMockRegistry();}function a205_0x2939(){const _0xbd826f=['2954777tVpHxY','getStatusText','searchParams','unnamed\x20stub','2965SWWRnA','method','Unauthorized','register','forEach','simple','\x20\x20(none)','getRequests','wasCalled','get','Bad\x20Gateway','REST','parseRequest','fetchMock','getMatchCount','toUpperCase','responder','GET','stack','filter','matched','verify','12jNloBR','entries','174DBTWWF','errorResponse','error','stringify','jsonResponseWithHeaders','text/plain','77181UCdEQv','toLowerCase','parse','Created','Unprocessable\x20Entity','length','test','Service\x20Unavailable','Too\x20Many\x20Requests','Bad\x20Request','withBody','33156JznNkC','application/json','Internal\x20Server\x20Error','Request\x20body:\x20','requests','function','8oCrbbJ','https://api.treasuredata.com/errors/','headers','push','pathname','375hZjEtR','stubs','string','map','createFetch','jsonResponse','every','Unmatched\x20stub','rfc9457','textResponse','description','join','11477580dadPPH','url','some','withQuery','isArray','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','No\x20stub\x20matched\x20request:\x20','91240AmNBrq','matchCount','body','Unknown','3817413nBFflJ','209zvDGJE','mockImplementation','registerWithInspector'];a205_0x2939=function(){return _0xbd826f;};return a205_0x2939();}
@@ -1 +1 @@
1
- (function(_0x5dd6b6,_0x32ab77){var _0x38fc05=a206_0xeae4,_0x5d9171=_0x5dd6b6();while(!![]){try{var _0x3dbc08=-parseInt(_0x38fc05(0xd1))/0x1*(parseInt(_0x38fc05(0xd4))/0x2)+parseInt(_0x38fc05(0xd5))/0x3*(parseInt(_0x38fc05(0xd7))/0x4)+parseInt(_0x38fc05(0xd2))/0x5+parseInt(_0x38fc05(0xda))/0x6*(-parseInt(_0x38fc05(0xd6))/0x7)+-parseInt(_0x38fc05(0xd3))/0x8+parseInt(_0x38fc05(0xd9))/0x9+parseInt(_0x38fc05(0xd8))/0xa*(parseInt(_0x38fc05(0xdb))/0xb);if(_0x3dbc08===_0x32ab77)break;else _0x5d9171['push'](_0x5d9171['shift']());}catch(_0x132a63){_0x5d9171['push'](_0x5d9171['shift']());}}}(a206_0x4bb9,0x4b4f7));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a206_0xeae4(_0x4cecf8,_0x3e48ec){_0x4cecf8=_0x4cecf8-0xd1;var _0x4bb9ad=a206_0x4bb9();var _0xeae423=_0x4bb9ad[_0x4cecf8];return _0xeae423;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a206_0x4bb9(){var _0x4fd6e6=['6CYEFIW','21hAJCQy','168PZDIwD','274940LElwYx','90siaERH','2346750TmMScW','142038YeTpNM','955207LderSf','157086kXxXnC','1987400mYziNj','4584216dpdJkH'];a206_0x4bb9=function(){return _0x4fd6e6;};return a206_0x4bb9();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ function a206_0x82b4(_0x42fc62,_0x5680ce){_0x42fc62=_0x42fc62-0xc6;var _0x5c0f9f=a206_0x5c0f();var _0x82b44c=_0x5c0f9f[_0x42fc62];return _0x82b44c;}(function(_0x1e3e4b,_0x33feae){var _0x1fc841=a206_0x82b4,_0x5b7bda=_0x1e3e4b();while(!![]){try{var _0x430976=parseInt(_0x1fc841(0xc7))/0x1*(parseInt(_0x1fc841(0xd0))/0x2)+parseInt(_0x1fc841(0xc9))/0x3+-parseInt(_0x1fc841(0xca))/0x4*(-parseInt(_0x1fc841(0xc6))/0x5)+-parseInt(_0x1fc841(0xcd))/0x6+parseInt(_0x1fc841(0xcc))/0x7+parseInt(_0x1fc841(0xce))/0x8*(-parseInt(_0x1fc841(0xcb))/0x9)+-parseInt(_0x1fc841(0xcf))/0xa*(parseInt(_0x1fc841(0xc8))/0xb);if(_0x430976===_0x33feae)break;else _0x5b7bda['push'](_0x5b7bda['shift']());}catch(_0x16cb86){_0x5b7bda['push'](_0x5b7bda['shift']());}}}(a206_0x5c0f,0x934cf));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a206_0x5c0f(){var _0x1466c2=['50088YfMsKZ','10xvZQod','6390RTvsRS','5nkjcBz','165wGOdwZ','29011477ydIMXX','3297009ypcEno','4288628YLPBHI','405LIQmcn','6434750mSKLnR','570540IFvCYT'];a206_0x5c0f=function(){return _0x1466c2;};return a206_0x5c0f();}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(_0xefa1a0,_0x4514d7){const _0x4ee278=a207_0x338f,_0x4500d8=_0xefa1a0();while(!![]){try{const _0x32851e=parseInt(_0x4ee278(0x134))/0x1*(-parseInt(_0x4ee278(0x13d))/0x2)+-parseInt(_0x4ee278(0x13a))/0x3*(parseInt(_0x4ee278(0x133))/0x4)+parseInt(_0x4ee278(0x13c))/0x5+parseInt(_0x4ee278(0x132))/0x6+parseInt(_0x4ee278(0x135))/0x7+-parseInt(_0x4ee278(0x136))/0x8+parseInt(_0x4ee278(0x13b))/0x9;if(_0x32851e===_0x4514d7)break;else _0x4500d8['push'](_0x4500d8['shift']());}catch(_0x3e509f){_0x4500d8['push'](_0x4500d8['shift']());}}}(a207_0x1470,0xb2250));function a207_0x338f(_0x3f1b6b,_0x4faa0b){_0x3f1b6b=_0x3f1b6b-0x132;const _0x14704e=a207_0x1470();let _0x338f35=_0x14704e[_0x3f1b6b];return _0x338f35;}function a207_0x1470(){const _0x3616f8=['22654674tbYBrJ','2053510UnNdGr','8uTXvxG','336684lEzplF','11992UnTvYu','287939DoDSeJ','297346nLnMul','8248960YVmuPE','push','all','map','114RStczo'];a207_0x1470=function(){return _0x3616f8;};return a207_0x1470();}export async function batchAsync(_0x39a8fb,_0x561707,_0x53d1bd=0xa){const _0x144ee5=a207_0x338f,_0x29d498=[];for(let _0x493f3b=0x0;_0x493f3b<_0x39a8fb['length'];_0x493f3b+=_0x53d1bd){const _0x6f600d=_0x39a8fb['slice'](_0x493f3b,_0x493f3b+_0x53d1bd),_0x3be97c=await Promise[_0x144ee5(0x138)](_0x6f600d[_0x144ee5(0x139)](_0x561707));_0x29d498[_0x144ee5(0x137)](..._0x3be97c);}return _0x29d498;}
1
+ (function(_0x360eae,_0x473f51){const _0x2d28d4=a207_0x1c6d,_0x6111ef=_0x360eae();while(!![]){try{const _0xa2ec3d=parseInt(_0x2d28d4(0x143))/0x1+parseInt(_0x2d28d4(0x142))/0x2+-parseInt(_0x2d28d4(0x13c))/0x3+parseInt(_0x2d28d4(0x137))/0x4*(parseInt(_0x2d28d4(0x13e))/0x5)+-parseInt(_0x2d28d4(0x136))/0x6*(-parseInt(_0x2d28d4(0x139))/0x7)+-parseInt(_0x2d28d4(0x140))/0x8*(parseInt(_0x2d28d4(0x138))/0x9)+-parseInt(_0x2d28d4(0x13d))/0xa*(parseInt(_0x2d28d4(0x13a))/0xb);if(_0xa2ec3d===_0x473f51)break;else _0x6111ef['push'](_0x6111ef['shift']());}catch(_0x460182){_0x6111ef['push'](_0x6111ef['shift']());}}}(a207_0x5bf4,0x3cd80));function a207_0x5bf4(){const _0x32e4ae=['slice','1374tbuxYz','4nmGQCi','260910IeTnkA','6860nSsVIR','11bMQmwE','push','259050Ddrnqk','2680270IVxdiX','38365QpASyJ','map','88jtkDiG','length','533406bjcSJn','423687ZvCxIx'];a207_0x5bf4=function(){return _0x32e4ae;};return a207_0x5bf4();}function a207_0x1c6d(_0x49685a,_0x4227df){_0x49685a=_0x49685a-0x135;const _0x5bf40a=a207_0x5bf4();let _0x1c6d7d=_0x5bf40a[_0x49685a];return _0x1c6d7d;}export async function batchAsync(_0x5601f8,_0x3de6e7,_0x24eb3f=0xa){const _0x15ba61=a207_0x1c6d,_0x34a487=[];for(let _0x50e37d=0x0;_0x50e37d<_0x5601f8[_0x15ba61(0x141)];_0x50e37d+=_0x24eb3f){const _0x4b494b=_0x5601f8[_0x15ba61(0x135)](_0x50e37d,_0x50e37d+_0x24eb3f),_0x223215=await Promise['all'](_0x4b494b[_0x15ba61(0x13f)](_0x3de6e7));_0x34a487[_0x15ba61(0x13b)](..._0x223215);}return _0x34a487;}
@@ -1 +1 @@
1
- const a208_0x3a9c33=a208_0xf455;function a208_0xf455(_0x439475,_0x2371bc){_0x439475=_0x439475-0xab;const _0x3d1593=a208_0x3d15();let _0xf45572=_0x3d1593[_0x439475];return _0xf45572;}(function(_0x346595,_0xa8b3c1){const _0x5a4b47=a208_0xf455,_0x5bb791=_0x346595();while(!![]){try{const _0x283254=parseInt(_0x5a4b47(0xac))/0x1*(parseInt(_0x5a4b47(0xc6))/0x2)+-parseInt(_0x5a4b47(0xba))/0x3+parseInt(_0x5a4b47(0xae))/0x4*(-parseInt(_0x5a4b47(0xc7))/0x5)+-parseInt(_0x5a4b47(0xad))/0x6+-parseInt(_0x5a4b47(0xb5))/0x7+parseInt(_0x5a4b47(0xc2))/0x8+-parseInt(_0x5a4b47(0xab))/0x9*(-parseInt(_0x5a4b47(0xc8))/0xa);if(_0x283254===_0xa8b3c1)break;else _0x5bb791['push'](_0x5bb791['shift']());}catch(_0x500cd5){_0x5bb791['push'](_0x5bb791['shift']());}}}(a208_0x3d15,0x34aae));import*as a208_0x5e2643 from'chalk';const Chalk=a208_0x5e2643[a208_0x3a9c33(0xb7)];export function shouldUseColor(_0x2ebca7={}){const _0x433eda=a208_0x3a9c33;if(_0x2ebca7[_0x433eda(0xc4)]===!![])return![];if(_0x2ebca7[_0x433eda(0xbe)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x433eda(0xb8)][_0x433eda(0xbd)]??![];}export function getChalk(_0x8de7e4={}){if(shouldUseColor(_0x8de7e4))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4b3aab,_0x5ec889={}){const _0x1d5c2f=a208_0x3a9c33;return getChalk(_0x5ec889)[_0x1d5c2f(0xb1)](_0x4b3aab);}function a208_0x3d15(){const _0x4dc9ff=['1170wujwsE','2779690ziJKfk','map','entries','9tARjiA','77769XAZyMK','831564hRTgqj','3784znQYap','number','object','dim','cyan','length','join','876932ezJDGS','null','Chalk','stdout','green','482319xuxLRU','boolean','blue','isTTY','color','isArray','repeat','yellow','2803656tCsudg','string','noColor','stringify','6DFNtdc'];a208_0x3d15=function(){return _0x4dc9ff;};return a208_0x3d15();}export function colorHeader(_0x492724,_0x1ce4a0={}){const _0x587d64=a208_0x3a9c33;return getChalk(_0x1ce4a0)[_0x587d64(0xb2)](_0x492724);}export function colorType(_0x72cd3d,_0x3bf1a5={}){return getChalk(_0x3bf1a5)['dim'](_0x72cd3d);}export function colorJSONKey(_0x3a71ef,_0x1e1da0={}){const _0x324d94=a208_0x3a9c33;return getChalk(_0x1e1da0)[_0x324d94(0xbc)](_0x3a71ef);}export function colorJSONString(_0x36babc,_0x4e599b={}){const _0x55535f=a208_0x3a9c33;return getChalk(_0x4e599b)[_0x55535f(0xb9)](_0x36babc);}export function colorJSONNumber(_0x572592,_0x3fd382={}){return getChalk(_0x3fd382)['cyan'](_0x572592);}export function colorJSONBoolean(_0x4b1136,_0x1039ef={}){const _0xb9002c=a208_0x3a9c33;return getChalk(_0x1039ef)[_0xb9002c(0xc1)](_0x4b1136);}export function colorJSONNull(_0x1fbe71,_0x22a863={}){const _0x183dab=a208_0x3a9c33;return getChalk(_0x22a863)[_0x183dab(0xb1)](_0x1fbe71);}export function colorizeJSONCompact(_0x1c9332,_0x373ec0={}){const _0x29d62c=a208_0x3a9c33;if(!shouldUseColor(_0x373ec0))return JSON[_0x29d62c(0xc5)](_0x1c9332);if(_0x1c9332===null)return colorJSONNull(_0x29d62c(0xb6),_0x373ec0);if(typeof _0x1c9332===_0x29d62c(0xbb))return colorJSONBoolean(String(_0x1c9332),_0x373ec0);if(typeof _0x1c9332===_0x29d62c(0xaf))return colorJSONNumber(String(_0x1c9332),_0x373ec0);if(typeof _0x1c9332==='string')return colorJSONString(JSON[_0x29d62c(0xc5)](_0x1c9332),_0x373ec0);if(Array[_0x29d62c(0xbf)](_0x1c9332)){if(_0x1c9332[_0x29d62c(0xb3)]===0x0)return'[]';const _0x588fd0=_0x1c9332[_0x29d62c(0xc9)](_0x2f5238=>colorizeJSONCompact(_0x2f5238,_0x373ec0));return'['+_0x588fd0[_0x29d62c(0xb4)](',')+']';}if(typeof _0x1c9332==='object'){const _0x18eed9=Object[_0x29d62c(0xca)](_0x1c9332);if(_0x18eed9['length']===0x0)return'{}';const _0x39c272=_0x18eed9[_0x29d62c(0xc9)](([_0x525c7e,_0x19f3b1])=>{const _0x287da8=colorJSONKey(JSON['stringify'](_0x525c7e),_0x373ec0),_0x4870f2=colorizeJSONCompact(_0x19f3b1,_0x373ec0);return _0x287da8+':'+_0x4870f2;});return'{'+_0x39c272[_0x29d62c(0xb4)](',')+'}';}return String(_0x1c9332);}export function colorizeJSON(_0xdb0e24,_0xc98a14={},_0x5668a5=0x0){const _0x65ae1f=a208_0x3a9c33;if(!shouldUseColor(_0xc98a14))return JSON['stringify'](_0xdb0e24,null,0x2);const _0x20c1c6='\x20'[_0x65ae1f(0xc0)](_0x5668a5),_0x3e55bb=_0x5668a5+0x2;if(_0xdb0e24===null)return colorJSONNull(_0x65ae1f(0xb6),_0xc98a14);if(typeof _0xdb0e24===_0x65ae1f(0xbb))return colorJSONBoolean(String(_0xdb0e24),_0xc98a14);if(typeof _0xdb0e24===_0x65ae1f(0xaf))return colorJSONNumber(String(_0xdb0e24),_0xc98a14);if(typeof _0xdb0e24===_0x65ae1f(0xc3))return colorJSONString(JSON[_0x65ae1f(0xc5)](_0xdb0e24),_0xc98a14);if(Array[_0x65ae1f(0xbf)](_0xdb0e24)){if(_0xdb0e24[_0x65ae1f(0xb3)]===0x0)return'[]';const _0x7a59fc=_0xdb0e24[_0x65ae1f(0xc9)](_0x2044da=>{const _0x212dca=_0x65ae1f,_0x20461a=colorizeJSON(_0x2044da,_0xc98a14,_0x3e55bb);return''+'\x20'[_0x212dca(0xc0)](_0x3e55bb)+_0x20461a;});return'[\x0a'+_0x7a59fc['join'](',\x0a')+('\x0a'+_0x20c1c6+']');}if(typeof _0xdb0e24===_0x65ae1f(0xb0)){const _0x4c94f2=Object['entries'](_0xdb0e24);if(_0x4c94f2[_0x65ae1f(0xb3)]===0x0)return'{}';const _0x40a3c4=_0x4c94f2[_0x65ae1f(0xc9)](([_0x4cea6d,_0x4ed26b])=>{const _0xdeed2d=_0x65ae1f,_0xbe63e3=colorJSONKey(JSON[_0xdeed2d(0xc5)](_0x4cea6d),_0xc98a14),_0x2ba580=colorizeJSON(_0x4ed26b,_0xc98a14,_0x3e55bb);return''+'\x20'[_0xdeed2d(0xc0)](_0x3e55bb)+_0xbe63e3+':\x20'+_0x2ba580;});return'{\x0a'+_0x40a3c4[_0x65ae1f(0xb4)](',\x0a')+('\x0a'+_0x20c1c6+'}');}return String(_0xdb0e24);}
1
+ (function(_0x308650,_0x29c831){const _0x542d57=a208_0x4e20,_0x1874fb=_0x308650();while(!![]){try{const _0x2fc527=parseInt(_0x542d57(0x17f))/0x1+parseInt(_0x542d57(0x17b))/0x2*(-parseInt(_0x542d57(0x17c))/0x3)+-parseInt(_0x542d57(0x17e))/0x4*(parseInt(_0x542d57(0x17a))/0x5)+parseInt(_0x542d57(0x16b))/0x6*(-parseInt(_0x542d57(0x173))/0x7)+parseInt(_0x542d57(0x16c))/0x8*(-parseInt(_0x542d57(0x186))/0x9)+parseInt(_0x542d57(0x17d))/0xa*(parseInt(_0x542d57(0x181))/0xb)+parseInt(_0x542d57(0x16a))/0xc;if(_0x2fc527===_0x29c831)break;else _0x1874fb['push'](_0x1874fb['shift']());}catch(_0x3e637e){_0x1874fb['push'](_0x1874fb['shift']());}}}(a208_0x416b,0xea4b5));import*as a208_0x2eb5fb from'chalk';const Chalk=a208_0x2eb5fb['Chalk'];function a208_0x416b(){const _0x4e2769=['number','isArray','color','stringify','length','2302785psyaGO','44iooQgS','251973qAOCPF','1551970hOzqip','8rEWzOc','247975zcmuGk','repeat','22ngmKVI','dim','string','entries','boolean','3794994fKvjxr','null','72791844VoAwJG','7254642dAyajN','32vwzeUZ','blue','isTTY','object','join','green','cyan','7yZwaPF','map'];a208_0x416b=function(){return _0x4e2769;};return a208_0x416b();}function a208_0x4e20(_0x2146f8,_0x41dcfd){_0x2146f8=_0x2146f8-0x169;const _0x416b07=a208_0x416b();let _0x4e2019=_0x416b07[_0x2146f8];return _0x4e2019;}export function shouldUseColor(_0x34ae22={}){const _0x38914b=a208_0x4e20;if(_0x34ae22['noColor']===!![])return![];if(_0x34ae22[_0x38914b(0x177)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x38914b(0x16e)]??![];}export function getChalk(_0x103090={}){if(shouldUseColor(_0x103090))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xb0aa30,_0xa1fc6c={}){const _0x2d546d=a208_0x4e20;return getChalk(_0xa1fc6c)[_0x2d546d(0x182)](_0xb0aa30);}export function colorHeader(_0x20eb0f,_0x556c9b={}){const _0x13f925=a208_0x4e20;return getChalk(_0x556c9b)[_0x13f925(0x172)](_0x20eb0f);}export function colorType(_0x3303db,_0x5a20a6={}){const _0x2617a0=a208_0x4e20;return getChalk(_0x5a20a6)[_0x2617a0(0x182)](_0x3303db);}export function colorJSONKey(_0x1d53d8,_0x169bb0={}){const _0x298599=a208_0x4e20;return getChalk(_0x169bb0)[_0x298599(0x16d)](_0x1d53d8);}export function colorJSONString(_0x560d,_0x506306={}){const _0x1fa1cd=a208_0x4e20;return getChalk(_0x506306)[_0x1fa1cd(0x171)](_0x560d);}export function colorJSONNumber(_0x1bfeea,_0x51254a={}){return getChalk(_0x51254a)['cyan'](_0x1bfeea);}export function colorJSONBoolean(_0x28c739,_0x2fa987={}){return getChalk(_0x2fa987)['yellow'](_0x28c739);}export function colorJSONNull(_0x3f2ff6,_0x1adced={}){const _0x665cb=a208_0x4e20;return getChalk(_0x1adced)[_0x665cb(0x182)](_0x3f2ff6);}export function colorizeJSONCompact(_0x11739e,_0x496515={}){const _0x24a3ac=a208_0x4e20;if(!shouldUseColor(_0x496515))return JSON[_0x24a3ac(0x178)](_0x11739e);if(_0x11739e===null)return colorJSONNull(_0x24a3ac(0x169),_0x496515);if(typeof _0x11739e==='boolean')return colorJSONBoolean(String(_0x11739e),_0x496515);if(typeof _0x11739e===_0x24a3ac(0x175))return colorJSONNumber(String(_0x11739e),_0x496515);if(typeof _0x11739e===_0x24a3ac(0x183))return colorJSONString(JSON[_0x24a3ac(0x178)](_0x11739e),_0x496515);if(Array[_0x24a3ac(0x176)](_0x11739e)){if(_0x11739e['length']===0x0)return'[]';const _0x48b034=_0x11739e['map'](_0x192c3a=>colorizeJSONCompact(_0x192c3a,_0x496515));return'['+_0x48b034[_0x24a3ac(0x170)](',')+']';}if(typeof _0x11739e===_0x24a3ac(0x16f)){const _0x5a577a=Object[_0x24a3ac(0x184)](_0x11739e);if(_0x5a577a[_0x24a3ac(0x179)]===0x0)return'{}';const _0x26079c=_0x5a577a['map'](([_0x2fb373,_0x577137])=>{const _0x22c866=colorJSONKey(JSON['stringify'](_0x2fb373),_0x496515),_0x4d1677=colorizeJSONCompact(_0x577137,_0x496515);return _0x22c866+':'+_0x4d1677;});return'{'+_0x26079c['join'](',')+'}';}return String(_0x11739e);}export function colorizeJSON(_0x3faaed,_0x4d8287={},_0x288dd2=0x0){const _0x4bfe07=a208_0x4e20;if(!shouldUseColor(_0x4d8287))return JSON['stringify'](_0x3faaed,null,0x2);const _0x485b9d='\x20'[_0x4bfe07(0x180)](_0x288dd2),_0x1710f4=_0x288dd2+0x2;if(_0x3faaed===null)return colorJSONNull('null',_0x4d8287);if(typeof _0x3faaed===_0x4bfe07(0x185))return colorJSONBoolean(String(_0x3faaed),_0x4d8287);if(typeof _0x3faaed===_0x4bfe07(0x175))return colorJSONNumber(String(_0x3faaed),_0x4d8287);if(typeof _0x3faaed===_0x4bfe07(0x183))return colorJSONString(JSON[_0x4bfe07(0x178)](_0x3faaed),_0x4d8287);if(Array[_0x4bfe07(0x176)](_0x3faaed)){if(_0x3faaed[_0x4bfe07(0x179)]===0x0)return'[]';const _0x5e9331=_0x3faaed[_0x4bfe07(0x174)](_0x557700=>{const _0x57e4e0=_0x4bfe07,_0x422330=colorizeJSON(_0x557700,_0x4d8287,_0x1710f4);return''+'\x20'[_0x57e4e0(0x180)](_0x1710f4)+_0x422330;});return'[\x0a'+_0x5e9331['join'](',\x0a')+('\x0a'+_0x485b9d+']');}if(typeof _0x3faaed===_0x4bfe07(0x16f)){const _0x4e85d5=Object[_0x4bfe07(0x184)](_0x3faaed);if(_0x4e85d5[_0x4bfe07(0x179)]===0x0)return'{}';const _0x330e19=_0x4e85d5[_0x4bfe07(0x174)](([_0x2d11ba,_0x4b1c83])=>{const _0x5e31ee=_0x4bfe07,_0x549924=colorJSONKey(JSON[_0x5e31ee(0x178)](_0x2d11ba),_0x4d8287),_0x27160d=colorizeJSON(_0x4b1c83,_0x4d8287,_0x1710f4);return''+'\x20'['repeat'](_0x1710f4)+_0x549924+':\x20'+_0x27160d;});return'{\x0a'+_0x330e19[_0x4bfe07(0x170)](',\x0a')+('\x0a'+_0x485b9d+'}');}return String(_0x3faaed);}
@@ -1 +1 @@
1
- (function(_0x37ba1c,_0x5b4c1f){const _0x3a117a=a209_0x4b3f,_0x83949f=_0x37ba1c();while(!![]){try{const _0x30c9d1=parseInt(_0x3a117a(0x1a0))/0x1*(-parseInt(_0x3a117a(0x1a3))/0x2)+parseInt(_0x3a117a(0x1c2))/0x3*(-parseInt(_0x3a117a(0x1b4))/0x4)+parseInt(_0x3a117a(0x1ac))/0x5+-parseInt(_0x3a117a(0x1bc))/0x6+-parseInt(_0x3a117a(0x1c1))/0x7*(parseInt(_0x3a117a(0x1b2))/0x8)+-parseInt(_0x3a117a(0x1ab))/0x9+parseInt(_0x3a117a(0x1a7))/0xa;if(_0x30c9d1===_0x5b4c1f)break;else _0x83949f['push'](_0x83949f['shift']());}catch(_0xfd12b2){_0x83949f['push'](_0x83949f['shift']());}}}(a209_0x55c5,0xc2487));import a209_0x408a4f from'chalk';function a209_0x4b3f(_0x1361dd,_0x2ab576){_0x1361dd=_0x1361dd-0x1a0;const _0x55c560=a209_0x55c5();let _0x4b3fea=_0x55c560[_0x1361dd];return _0x4b3fea;}function a209_0x55c5(){const _0x1808b6=['push','min','8144DZgaPE','join','60LrSUQt','fill','removed','red','dim','green','\x20-\x20','padStart','6799110hHhbQW','new','length','has','repeat','3829OJmXTg','191379ehWSxH','3FbHooS','\x20\x20...','type','677338BhuVRq','unshift','added','old','29814030QTktLc','split','unchanged','content','898605SiZmkP','7885790EBSjHN','max','forEach','add'];a209_0x55c5=function(){return _0x1808b6;};return a209_0x55c5();}export function generateDiff(_0x4d5b37,_0x3aac37){const _0x5c5e4a=a209_0x4b3f,_0x320833=_0x4d5b37[_0x5c5e4a(0x1a8)]('\x0a'),_0x2e1a98=_0x3aac37['split']('\x0a'),_0x1c69db=[],_0x3f4ebb=computeLCS(_0x320833,_0x2e1a98);let _0x1ec368=0x0,_0x4db216=0x0,_0x14ad0e=0x0;while(_0x1ec368<_0x320833[_0x5c5e4a(0x1be)]||_0x4db216<_0x2e1a98[_0x5c5e4a(0x1be)]){if(_0x14ad0e<_0x3f4ebb[_0x5c5e4a(0x1be)]&&_0x1ec368<_0x320833[_0x5c5e4a(0x1be)]&&_0x320833[_0x1ec368]===_0x3f4ebb[_0x14ad0e])_0x4db216<_0x2e1a98['length']&&_0x2e1a98[_0x4db216]===_0x3f4ebb[_0x14ad0e]?(_0x1c69db[_0x5c5e4a(0x1b0)]({'type':_0x5c5e4a(0x1a9),'content':_0x320833[_0x1ec368]}),_0x1ec368++,_0x4db216++,_0x14ad0e++):(_0x1c69db[_0x5c5e4a(0x1b0)]({'type':_0x5c5e4a(0x1a5),'content':_0x2e1a98[_0x4db216]}),_0x4db216++);else{if(_0x14ad0e<_0x3f4ebb[_0x5c5e4a(0x1be)]&&_0x4db216<_0x2e1a98[_0x5c5e4a(0x1be)]&&_0x2e1a98[_0x4db216]===_0x3f4ebb[_0x14ad0e])_0x1c69db['push']({'type':'removed','content':_0x320833[_0x1ec368]}),_0x1ec368++;else{if(_0x1ec368<_0x320833[_0x5c5e4a(0x1be)]&&(_0x14ad0e>=_0x3f4ebb['length']||_0x320833[_0x1ec368]!==_0x3f4ebb[_0x14ad0e]))_0x1c69db[_0x5c5e4a(0x1b0)]({'type':_0x5c5e4a(0x1b6),'content':_0x320833[_0x1ec368]}),_0x1ec368++;else _0x4db216<_0x2e1a98[_0x5c5e4a(0x1be)]&&(_0x1c69db['push']({'type':'added','content':_0x2e1a98[_0x4db216]}),_0x4db216++);}}}return _0x1c69db;}function computeLCS(_0x46d3da,_0x2675be){const _0x20d0f8=a209_0x4b3f,_0x4b7ee6=_0x46d3da[_0x20d0f8(0x1be)],_0x13fbc1=_0x2675be[_0x20d0f8(0x1be)],_0x2e01d5=Array(_0x4b7ee6+0x1)[_0x20d0f8(0x1b5)](null)['map'](()=>Array(_0x13fbc1+0x1)['fill'](0x0));for(let _0x2660d4=0x1;_0x2660d4<=_0x4b7ee6;_0x2660d4++){for(let _0xeefddb=0x1;_0xeefddb<=_0x13fbc1;_0xeefddb++){_0x46d3da[_0x2660d4-0x1]===_0x2675be[_0xeefddb-0x1]?_0x2e01d5[_0x2660d4][_0xeefddb]=_0x2e01d5[_0x2660d4-0x1][_0xeefddb-0x1]+0x1:_0x2e01d5[_0x2660d4][_0xeefddb]=Math[_0x20d0f8(0x1ad)](_0x2e01d5[_0x2660d4-0x1][_0xeefddb],_0x2e01d5[_0x2660d4][_0xeefddb-0x1]);}}const _0x41b7de=[];let _0x42500a=_0x4b7ee6,_0x6dd269=_0x13fbc1;while(_0x42500a>0x0&&_0x6dd269>0x0){if(_0x46d3da[_0x42500a-0x1]===_0x2675be[_0x6dd269-0x1])_0x41b7de[_0x20d0f8(0x1a4)](_0x46d3da[_0x42500a-0x1]),_0x42500a--,_0x6dd269--;else _0x2e01d5[_0x42500a-0x1][_0x6dd269]>_0x2e01d5[_0x42500a][_0x6dd269-0x1]?_0x42500a--:_0x6dd269--;}return _0x41b7de;}export function formatDiffWithColors(_0x2e6619,_0x6107c=0x3){const _0x1ee07b=a209_0x4b3f,_0x336d6c=new Set();_0x2e6619[_0x1ee07b(0x1ae)]((_0x37c97b,_0x1a0733)=>{const _0x1c4363=_0x1ee07b;_0x37c97b['type']!==_0x1c4363(0x1a9)&&_0x336d6c[_0x1c4363(0x1af)](_0x1a0733);});if(_0x336d6c['size']===0x0)return'';const _0x18ba3b=new Set();for(const _0x1805d2 of _0x336d6c){for(let _0x4e413b=Math['max'](0x0,_0x1805d2-_0x6107c);_0x4e413b<=Math[_0x1ee07b(0x1b1)](_0x2e6619['length']-0x1,_0x1805d2+_0x6107c);_0x4e413b++){_0x18ba3b[_0x1ee07b(0x1af)](_0x4e413b);}}const _0x29684e=[];let _0x3c25e1=-0x1;const _0x34c22e=_0x2e6619[_0x1ee07b(0x1be)],_0x48bd55=Math['max'](0x3,String(_0x34c22e)[_0x1ee07b(0x1be)]),_0x1d810d=[];let _0x5a79b4=0x0,_0x117ad5=0x0;for(const _0x28a75d of _0x2e6619){if(_0x28a75d[_0x1ee07b(0x1a2)]==='removed')_0x5a79b4++,_0x1d810d[_0x1ee07b(0x1b0)]({'old':_0x5a79b4,'new':0x0});else _0x28a75d[_0x1ee07b(0x1a2)]===_0x1ee07b(0x1a5)?(_0x117ad5++,_0x1d810d[_0x1ee07b(0x1b0)]({'old':0x0,'new':_0x117ad5})):(_0x5a79b4++,_0x117ad5++,_0x1d810d['push']({'old':_0x5a79b4,'new':_0x117ad5}));}for(let _0xdf1a69=0x0;_0xdf1a69<_0x2e6619[_0x1ee07b(0x1be)];_0xdf1a69++){if(!_0x18ba3b[_0x1ee07b(0x1bf)](_0xdf1a69))continue;_0x3c25e1!==-0x1&&_0xdf1a69>_0x3c25e1+0x1&&_0x29684e[_0x1ee07b(0x1b0)](a209_0x408a4f['cyan'](_0x1ee07b(0x1a1)));_0x3c25e1=_0xdf1a69;const _0x525812=_0x2e6619[_0xdf1a69],_0x56349c=_0x1d810d[_0xdf1a69],_0x4c9b7a=_0x56349c[_0x1ee07b(0x1a6)]>0x0?String(_0x56349c[_0x1ee07b(0x1a6)])['padStart'](_0x48bd55):'\x20'[_0x1ee07b(0x1c0)](_0x48bd55),_0x1b1af7=_0x56349c[_0x1ee07b(0x1bd)]>0x0?String(_0x56349c['new'])[_0x1ee07b(0x1bb)](_0x48bd55):'\x20'['repeat'](_0x48bd55);switch(_0x525812[_0x1ee07b(0x1a2)]){case'removed':_0x29684e[_0x1ee07b(0x1b0)](a209_0x408a4f[_0x1ee07b(0x1b7)](_0x4c9b7a+'\x20'+_0x1b1af7+_0x1ee07b(0x1ba)+_0x525812['content']));break;case _0x1ee07b(0x1a5):_0x29684e[_0x1ee07b(0x1b0)](a209_0x408a4f[_0x1ee07b(0x1b9)](_0x4c9b7a+'\x20'+_0x1b1af7+'\x20+\x20'+_0x525812[_0x1ee07b(0x1aa)]));break;default:_0x29684e['push'](a209_0x408a4f[_0x1ee07b(0x1b8)](_0x4c9b7a+'\x20'+_0x1b1af7+'\x20\x20\x20'+_0x525812[_0x1ee07b(0x1aa)]));break;}}return _0x29684e[_0x1ee07b(0x1b3)]('\x0a');}export function hasChanges(_0x47692d){return _0x47692d['some'](_0x55f1f8=>_0x55f1f8['type']!=='unchanged');}
1
+ (function(_0x4283d,_0x2879ea){const _0x55be7c=a209_0x3f65,_0x165fc0=_0x4283d();while(!![]){try{const _0x25fee5=parseInt(_0x55be7c(0x103))/0x1*(-parseInt(_0x55be7c(0x104))/0x2)+-parseInt(_0x55be7c(0xff))/0x3*(parseInt(_0x55be7c(0x10b))/0x4)+-parseInt(_0x55be7c(0xfa))/0x5*(-parseInt(_0x55be7c(0x109))/0x6)+parseInt(_0x55be7c(0x10f))/0x7+parseInt(_0x55be7c(0xfc))/0x8*(parseInt(_0x55be7c(0x11b))/0x9)+-parseInt(_0x55be7c(0x117))/0xa+parseInt(_0x55be7c(0x106))/0xb;if(_0x25fee5===_0x2879ea)break;else _0x165fc0['push'](_0x165fc0['shift']());}catch(_0x31f483){_0x165fc0['push'](_0x165fc0['shift']());}}}(a209_0x4e32,0x18c75));import a209_0xcf770e from'chalk';export function generateDiff(_0x59da4f,_0x2454e1){const _0x30594b=a209_0x3f65,_0x1ef0dc=_0x59da4f[_0x30594b(0x107)]('\x0a'),_0x58580b=_0x2454e1['split']('\x0a'),_0x191dd2=[],_0x37d588=computeLCS(_0x1ef0dc,_0x58580b);let _0xf3bc19=0x0,_0x3b1c6a=0x0,_0x2dbc4b=0x0;while(_0xf3bc19<_0x1ef0dc['length']||_0x3b1c6a<_0x58580b[_0x30594b(0x10e)]){if(_0x2dbc4b<_0x37d588['length']&&_0xf3bc19<_0x1ef0dc[_0x30594b(0x10e)]&&_0x1ef0dc[_0xf3bc19]===_0x37d588[_0x2dbc4b])_0x3b1c6a<_0x58580b['length']&&_0x58580b[_0x3b1c6a]===_0x37d588[_0x2dbc4b]?(_0x191dd2[_0x30594b(0x105)]({'type':_0x30594b(0xfd),'content':_0x1ef0dc[_0xf3bc19]}),_0xf3bc19++,_0x3b1c6a++,_0x2dbc4b++):(_0x191dd2['push']({'type':_0x30594b(0xfb),'content':_0x58580b[_0x3b1c6a]}),_0x3b1c6a++);else{if(_0x2dbc4b<_0x37d588[_0x30594b(0x10e)]&&_0x3b1c6a<_0x58580b['length']&&_0x58580b[_0x3b1c6a]===_0x37d588[_0x2dbc4b])_0x191dd2[_0x30594b(0x105)]({'type':'removed','content':_0x1ef0dc[_0xf3bc19]}),_0xf3bc19++;else{if(_0xf3bc19<_0x1ef0dc['length']&&(_0x2dbc4b>=_0x37d588['length']||_0x1ef0dc[_0xf3bc19]!==_0x37d588[_0x2dbc4b]))_0x191dd2[_0x30594b(0x105)]({'type':_0x30594b(0x100),'content':_0x1ef0dc[_0xf3bc19]}),_0xf3bc19++;else _0x3b1c6a<_0x58580b[_0x30594b(0x10e)]&&(_0x191dd2[_0x30594b(0x105)]({'type':_0x30594b(0xfb),'content':_0x58580b[_0x3b1c6a]}),_0x3b1c6a++);}}}return _0x191dd2;}function a209_0x3f65(_0x5c6638,_0x2f1245){_0x5c6638=_0x5c6638-0xf9;const _0x4e322d=a209_0x4e32();let _0x3f65c0=_0x4e322d[_0x5c6638];return _0x3f65c0;}function computeLCS(_0x378ddd,_0x4c4006){const _0x17f783=a209_0x3f65,_0x506608=_0x378ddd[_0x17f783(0x10e)],_0x425a7b=_0x4c4006[_0x17f783(0x10e)],_0x10b3b0=Array(_0x506608+0x1)[_0x17f783(0x10d)](null)[_0x17f783(0x11d)](()=>Array(_0x425a7b+0x1)['fill'](0x0));for(let _0x4ca241=0x1;_0x4ca241<=_0x506608;_0x4ca241++){for(let _0x4f9d93=0x1;_0x4f9d93<=_0x425a7b;_0x4f9d93++){_0x378ddd[_0x4ca241-0x1]===_0x4c4006[_0x4f9d93-0x1]?_0x10b3b0[_0x4ca241][_0x4f9d93]=_0x10b3b0[_0x4ca241-0x1][_0x4f9d93-0x1]+0x1:_0x10b3b0[_0x4ca241][_0x4f9d93]=Math[_0x17f783(0xf9)](_0x10b3b0[_0x4ca241-0x1][_0x4f9d93],_0x10b3b0[_0x4ca241][_0x4f9d93-0x1]);}}const _0x27b0bc=[];let _0x1f4124=_0x506608,_0xfd3cb=_0x425a7b;while(_0x1f4124>0x0&&_0xfd3cb>0x0){if(_0x378ddd[_0x1f4124-0x1]===_0x4c4006[_0xfd3cb-0x1])_0x27b0bc[_0x17f783(0x10c)](_0x378ddd[_0x1f4124-0x1]),_0x1f4124--,_0xfd3cb--;else _0x10b3b0[_0x1f4124-0x1][_0xfd3cb]>_0x10b3b0[_0x1f4124][_0xfd3cb-0x1]?_0x1f4124--:_0xfd3cb--;}return _0x27b0bc;}function a209_0x4e32(){const _0x3542e3=['\x20\x20...','repeat','940540NXALwa','has','red','join','63EQeaVT','padStart','map','new','max','5eBMJLj','added','182720HMtqag','unchanged','\x20\x20\x20','420513ZAUfGc','removed','type','old','15948FNAite','10YJaOMd','push','2101121WEvzuB','split','min','13458iXyqeh','add','4jOnbeh','unshift','fill','length','436268Hiirkf','\x20-\x20','green','content','size','cyan'];a209_0x4e32=function(){return _0x3542e3;};return a209_0x4e32();}export function formatDiffWithColors(_0x24d7d6,_0x561ca4=0x3){const _0x18ae09=a209_0x3f65,_0x5e4b95=new Set();_0x24d7d6['forEach']((_0x5a03a0,_0x2f34ce)=>{const _0x2ecb5c=a209_0x3f65;_0x5a03a0[_0x2ecb5c(0x101)]!==_0x2ecb5c(0xfd)&&_0x5e4b95[_0x2ecb5c(0x10a)](_0x2f34ce);});if(_0x5e4b95[_0x18ae09(0x113)]===0x0)return'';const _0x116345=new Set();for(const _0xac361 of _0x5e4b95){for(let _0x210a69=Math[_0x18ae09(0xf9)](0x0,_0xac361-_0x561ca4);_0x210a69<=Math[_0x18ae09(0x108)](_0x24d7d6[_0x18ae09(0x10e)]-0x1,_0xac361+_0x561ca4);_0x210a69++){_0x116345[_0x18ae09(0x10a)](_0x210a69);}}const _0x450ff0=[];let _0x620a28=-0x1;const _0x4fa8a6=_0x24d7d6['length'],_0x3575d3=Math[_0x18ae09(0xf9)](0x3,String(_0x4fa8a6)[_0x18ae09(0x10e)]),_0x1815ec=[];let _0xd2b5f5=0x0,_0x36431a=0x0;for(const _0x3f0ae2 of _0x24d7d6){if(_0x3f0ae2[_0x18ae09(0x101)]==='removed')_0xd2b5f5++,_0x1815ec[_0x18ae09(0x105)]({'old':_0xd2b5f5,'new':0x0});else _0x3f0ae2[_0x18ae09(0x101)]===_0x18ae09(0xfb)?(_0x36431a++,_0x1815ec[_0x18ae09(0x105)]({'old':0x0,'new':_0x36431a})):(_0xd2b5f5++,_0x36431a++,_0x1815ec['push']({'old':_0xd2b5f5,'new':_0x36431a}));}for(let _0x1bf4dd=0x0;_0x1bf4dd<_0x24d7d6['length'];_0x1bf4dd++){if(!_0x116345[_0x18ae09(0x118)](_0x1bf4dd))continue;_0x620a28!==-0x1&&_0x1bf4dd>_0x620a28+0x1&&_0x450ff0[_0x18ae09(0x105)](a209_0xcf770e[_0x18ae09(0x114)](_0x18ae09(0x115)));_0x620a28=_0x1bf4dd;const _0x1666d4=_0x24d7d6[_0x1bf4dd],_0x59b0fe=_0x1815ec[_0x1bf4dd],_0x501818=_0x59b0fe[_0x18ae09(0x102)]>0x0?String(_0x59b0fe['old'])[_0x18ae09(0x11c)](_0x3575d3):'\x20'[_0x18ae09(0x116)](_0x3575d3),_0xe141c1=_0x59b0fe[_0x18ae09(0x11e)]>0x0?String(_0x59b0fe['new'])['padStart'](_0x3575d3):'\x20'[_0x18ae09(0x116)](_0x3575d3);switch(_0x1666d4['type']){case _0x18ae09(0x100):_0x450ff0[_0x18ae09(0x105)](a209_0xcf770e[_0x18ae09(0x119)](_0x501818+'\x20'+_0xe141c1+_0x18ae09(0x110)+_0x1666d4[_0x18ae09(0x112)]));break;case _0x18ae09(0xfb):_0x450ff0[_0x18ae09(0x105)](a209_0xcf770e[_0x18ae09(0x111)](_0x501818+'\x20'+_0xe141c1+'\x20+\x20'+_0x1666d4['content']));break;default:_0x450ff0[_0x18ae09(0x105)](a209_0xcf770e['dim'](_0x501818+'\x20'+_0xe141c1+_0x18ae09(0xfe)+_0x1666d4['content']));break;}}return _0x450ff0[_0x18ae09(0x11a)]('\x0a');}export function hasChanges(_0x823fb3){const _0x2a1a3d=a209_0x3f65;return _0x823fb3['some'](_0x546ae9=>_0x546ae9[_0x2a1a3d(0x101)]!==_0x2a1a3d(0xfd));}
@@ -1 +1 @@
1
- (function(_0x54ab10,_0x54d034){const _0x5a7834=a210_0x4af0,_0x56bbf8=_0x54ab10();while(!![]){try{const _0x2dcf75=-parseInt(_0x5a7834(0x12e))/0x1+parseInt(_0x5a7834(0x126))/0x2*(-parseInt(_0x5a7834(0x11f))/0x3)+-parseInt(_0x5a7834(0x12d))/0x4*(-parseInt(_0x5a7834(0x131))/0x5)+-parseInt(_0x5a7834(0x128))/0x6+parseInt(_0x5a7834(0x124))/0x7*(-parseInt(_0x5a7834(0x121))/0x8)+parseInt(_0x5a7834(0x11d))/0x9*(parseInt(_0x5a7834(0x12a))/0xa)+parseInt(_0x5a7834(0x120))/0xb;if(_0x2dcf75===_0x54d034)break;else _0x56bbf8['push'](_0x56bbf8['shift']());}catch(_0x3e5b4c){_0x56bbf8['push'](_0x56bbf8['shift']());}}}(a210_0x2a52,0xdc287));import*as a210_0x2bcfba from'node:fs';import*as a210_0x4ab728 from'node:path';function a210_0x4af0(_0x3b19ff,_0x1b904b){_0x3b19ff=_0x3b19ff-0x11d;const _0x2a5239=a210_0x2a52();let _0x4af0da=_0x2a5239[_0x3b19ff];return _0x4af0da;}export function setSecureFilePermissions(_0x1358ff){const _0x575b84=a210_0x4af0;try{a210_0x2bcfba[_0x575b84(0x125)](_0x1358ff,0x180);}catch{console[_0x575b84(0x130)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1358ff);}}export function setSecureDirectoryPermissions(_0x855d5c){const _0x50b8a2=a210_0x4af0;try{a210_0x2bcfba[_0x50b8a2(0x125)](_0x855d5c,0x1c0);}catch{console[_0x50b8a2(0x130)](_0x50b8a2(0x11e)+_0x855d5c);}}export function createSecureDirectory(_0x5f4ba9){const _0x7a8737=a210_0x4af0;!a210_0x2bcfba[_0x7a8737(0x12c)](_0x5f4ba9)&&(a210_0x2bcfba[_0x7a8737(0x127)](_0x5f4ba9,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5f4ba9));}export function validateSecureFilePermissions(_0x49b679){const _0x2159a8=a210_0x4af0;try{const _0x3d706a=a210_0x2bcfba['statSync'](_0x49b679),_0x428937=_0x3d706a[_0x2159a8(0x122)]&0x1ff,_0x5c837a=(_0x428937&0x3f)!==0x0;if(_0x5c837a)return console[_0x2159a8(0x130)]('Warning:\x20'+_0x49b679+_0x2159a8(0x12b)+_0x428937[_0x2159a8(0x12f)](0x8)+').\x20'+_0x2159a8(0x123)),![];return!![];}catch{return!![];}}function a210_0x2a52(){const _0x4babad=['mkdirSync','5395278ZVvCHx','dirname','50Vykkeo','\x20has\x20insecure\x20permissions\x20(','existsSync','108gvVbVo','556210kpQWCk','toString','warn','151490wJNQfX','1643931EyjJqV','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','3owBAUs','27289163zkJiTZ','10843864QRuLmV','mode','Should\x20be\x200600\x20or\x20more\x20restrictive.','7MAJyqd','chmodSync','999002mviwtV'];a210_0x2a52=function(){return _0x4babad;};return a210_0x2a52();}export function writeSecureFile(_0x533d23,_0x2b75a4){const _0x53d727=a210_0x4af0,_0x5c86a3=a210_0x4ab728[_0x53d727(0x129)](_0x533d23);createSecureDirectory(_0x5c86a3),a210_0x2bcfba['writeFileSync'](_0x533d23,_0x2b75a4,{'mode':0x180}),setSecureFilePermissions(_0x533d23);}
1
+ function a210_0x3035(){const _0x48a93f=['Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','43164XNMarV','1730JsGkXR','mkdirSync','543823yRdVIN','2824436kjMzpK','217495EsFLtw','toString','mode','dirname','writeFileSync','\x20has\x20insecure\x20permissions\x20(','1273674xBsMXo',').\x20','warn','132tjmGXY','88dMgcbf','2hgXnxa','930877CvqspN','statSync','chmodSync','23297648Defxud'];a210_0x3035=function(){return _0x48a93f;};return a210_0x3035();}(function(_0x59309d,_0x625a72){const _0x5eeb0a=a210_0x5c7b,_0x1925be=_0x59309d();while(!![]){try{const _0x1337c9=parseInt(_0x5eeb0a(0x146))/0x1+parseInt(_0x5eeb0a(0x145))/0x2*(-parseInt(_0x5eeb0a(0x156))/0x3)+-parseInt(_0x5eeb0a(0x14f))/0x4+-parseInt(_0x5eeb0a(0x150))/0x5*(parseInt(_0x5eeb0a(0x159))/0x6)+-parseInt(_0x5eeb0a(0x14e))/0x7*(parseInt(_0x5eeb0a(0x144))/0x8)+parseInt(_0x5eeb0a(0x14b))/0x9*(parseInt(_0x5eeb0a(0x14c))/0xa)+parseInt(_0x5eeb0a(0x149))/0xb;if(_0x1337c9===_0x625a72)break;else _0x1925be['push'](_0x1925be['shift']());}catch(_0x2d634e){_0x1925be['push'](_0x1925be['shift']());}}}(a210_0x3035,0xe4989));import*as a210_0x2fbd0f from'node:fs';import*as a210_0x4fc17b from'node:path';function a210_0x5c7b(_0x49bc7e,_0x57c3f9){_0x49bc7e=_0x49bc7e-0x144;const _0x303509=a210_0x3035();let _0x5c7b68=_0x303509[_0x49bc7e];return _0x5c7b68;}export function setSecureFilePermissions(_0x56631a){const _0x56d882=a210_0x5c7b;try{a210_0x2fbd0f[_0x56d882(0x148)](_0x56631a,0x180);}catch{console['warn'](_0x56d882(0x14a)+_0x56631a);}}export function setSecureDirectoryPermissions(_0x10cffe){const _0x37fee1=a210_0x5c7b;try{a210_0x2fbd0f[_0x37fee1(0x148)](_0x10cffe,0x1c0);}catch{console[_0x37fee1(0x158)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x10cffe);}}export function createSecureDirectory(_0x468891){const _0x50c112=a210_0x5c7b;!a210_0x2fbd0f['existsSync'](_0x468891)&&(a210_0x2fbd0f[_0x50c112(0x14d)](_0x468891,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x468891));}export function validateSecureFilePermissions(_0x1e1f89){const _0x3dc37c=a210_0x5c7b;try{const _0x137432=a210_0x2fbd0f[_0x3dc37c(0x147)](_0x1e1f89),_0x23aaf2=_0x137432[_0x3dc37c(0x152)]&0x1ff,_0x57fcf4=(_0x23aaf2&0x3f)!==0x0;if(_0x57fcf4)return console['warn']('Warning:\x20'+_0x1e1f89+_0x3dc37c(0x155)+_0x23aaf2[_0x3dc37c(0x151)](0x8)+_0x3dc37c(0x157)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3ba2c8,_0x3ffca4){const _0x588c61=a210_0x5c7b,_0x4177bc=a210_0x4fc17b[_0x588c61(0x153)](_0x3ba2c8);createSecureDirectory(_0x4177bc),a210_0x2fbd0f[_0x588c61(0x154)](_0x3ba2c8,_0x3ffca4,{'mode':0x180}),setSecureFilePermissions(_0x3ba2c8);}
@@ -1 +1 @@
1
- (function(_0x5f1009,_0x48bda2){const _0x5aaa00=a211_0x4a61,_0xd6d3b3=_0x5f1009();while(!![]){try{const _0x133c5b=parseInt(_0x5aaa00(0x12c))/0x1+-parseInt(_0x5aaa00(0x138))/0x2+-parseInt(_0x5aaa00(0x135))/0x3*(-parseInt(_0x5aaa00(0x12f))/0x4)+parseInt(_0x5aaa00(0x13f))/0x5*(-parseInt(_0x5aaa00(0x132))/0x6)+parseInt(_0x5aaa00(0x12e))/0x7*(-parseInt(_0x5aaa00(0x131))/0x8)+parseInt(_0x5aaa00(0x12d))/0x9+parseInt(_0x5aaa00(0x13b))/0xa*(-parseInt(_0x5aaa00(0x130))/0xb);if(_0x133c5b===_0x48bda2)break;else _0xd6d3b3['push'](_0xd6d3b3['shift']());}catch(_0xb1bbb3){_0xd6d3b3['push'](_0xd6d3b3['shift']());}}}(a211_0xaf8c,0xdf2d1));function a211_0x4a61(_0x17df29,_0x8fbdd3){_0x17df29=_0x17df29-0x12c;const _0xaf8cc2=a211_0xaf8c();let _0x4a61b8=_0xaf8cc2[_0x17df29];return _0x4a61b8;}function a211_0xaf8c(){const _0x70ebde=['NOT_FOUND','EACCES','123879mLHSxp','message','\x27:\x20','1421030qJpVYi','INTERNAL','ENOENT','70GQcoCl','Error\x20reading\x20file\x20\x27','\x27\x20not\x20found','File\x20\x27','109670uqInhh','794077IEiwiS','11278440HEyehQ','55139laWEse','36auSpBb','830841pQYqSj','136rGFZVj','36HiyqOB'];a211_0xaf8c=function(){return _0x70ebde;};return a211_0xaf8c();}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x1fc5a2){const _0x4ad7e7=a211_0x4a61;try{return readFileSync(_0x1fc5a2,'utf-8');}catch(_0x5a46c1){const _0x853fd8=_0x5a46c1['code'];if(_0x853fd8===_0x4ad7e7(0x13a))throw new SDKError(ErrorCode[_0x4ad7e7(0x133)],_0x4ad7e7(0x13e)+_0x1fc5a2+_0x4ad7e7(0x13d),_0x5a46c1);else{if(_0x853fd8===_0x4ad7e7(0x134))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x1fc5a2+'\x27',_0x5a46c1);else throw new SDKError(ErrorCode[_0x4ad7e7(0x139)],_0x4ad7e7(0x13c)+_0x1fc5a2+_0x4ad7e7(0x137)+_0x5a46c1[_0x4ad7e7(0x136)],_0x5a46c1);}}}
1
+ (function(_0x40a2c8,_0x2c7e02){const _0x144967=a211_0x1599,_0x2e21e4=_0x40a2c8();while(!![]){try{const _0x3a6943=-parseInt(_0x144967(0x1b1))/0x1+parseInt(_0x144967(0x1af))/0x2+-parseInt(_0x144967(0x1b7))/0x3+-parseInt(_0x144967(0x1ba))/0x4+parseInt(_0x144967(0x1ae))/0x5+parseInt(_0x144967(0x1b9))/0x6*(parseInt(_0x144967(0x1bd))/0x7)+parseInt(_0x144967(0x1b2))/0x8;if(_0x3a6943===_0x2c7e02)break;else _0x2e21e4['push'](_0x2e21e4['shift']());}catch(_0xff1e6a){_0x2e21e4['push'](_0x2e21e4['shift']());}}}(a211_0x2c59,0x6394d));import{readFileSync}from'fs';function a211_0x1599(_0x22ffa0,_0x27a4a6){_0x22ffa0=_0x22ffa0-0x1ae;const _0x2c592b=a211_0x2c59();let _0x1599b5=_0x2c592b[_0x22ffa0];return _0x1599b5;}import{SDKError,ErrorCode}from'../sdk/errors.js';function a211_0x2c59(){const _0x2ab9ca=['438QKXlwA','2429284DuPUcg','NOT_FOUND','utf-8','63581nZTlJv','EACCES','2453635SguVrt','538204cxvedJ','INTERNAL','750663pcuUCy','6808072WqunWy','\x27:\x20','Error\x20reading\x20file\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','ENOENT','1524084DXtonv','message'];a211_0x2c59=function(){return _0x2ab9ca;};return a211_0x2c59();}export function readFileContent(_0x5d5c59){const _0x5f043f=a211_0x1599;try{return readFileSync(_0x5d5c59,_0x5f043f(0x1bc));}catch(_0x311b10){const _0x43318b=_0x311b10['code'];if(_0x43318b===_0x5f043f(0x1b6))throw new SDKError(ErrorCode[_0x5f043f(0x1bb)],'File\x20\x27'+_0x5d5c59+'\x27\x20not\x20found',_0x311b10);else{if(_0x43318b===_0x5f043f(0x1be))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x5f043f(0x1b5)+_0x5d5c59+'\x27',_0x311b10);else throw new SDKError(ErrorCode[_0x5f043f(0x1b0)],_0x5f043f(0x1b4)+_0x5d5c59+_0x5f043f(0x1b3)+_0x311b10[_0x5f043f(0x1b8)],_0x311b10);}}}
@@ -1 +1 @@
1
- (function(_0x228301,_0x58942b){const _0x125995=a212_0x1354,_0x454e68=_0x228301();while(!![]){try{const _0x4af846=parseInt(_0x125995(0x176))/0x1+parseInt(_0x125995(0x175))/0x2+-parseInt(_0x125995(0x179))/0x3*(parseInt(_0x125995(0x17d))/0x4)+-parseInt(_0x125995(0x172))/0x5*(-parseInt(_0x125995(0x171))/0x6)+parseInt(_0x125995(0x183))/0x7*(parseInt(_0x125995(0x17f))/0x8)+parseInt(_0x125995(0x168))/0x9+-parseInt(_0x125995(0x174))/0xa;if(_0x4af846===_0x58942b)break;else _0x454e68['push'](_0x454e68['shift']());}catch(_0x93fa8e){_0x454e68['push'](_0x454e68['shift']());}}}(a212_0x57fe,0x64dfd));import*as a212_0x434499 from'node:https';function a212_0x1354(_0x353555,_0x150974){_0x353555=_0x353555-0x166;const _0x57fed1=a212_0x57fe();let _0x135488=_0x57fed1[_0x353555];return _0x135488;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a212_0x57fe(){const _0x260fb6=['slice','api.github.com','set','/repos/','data','timeout','475404GVuKcp','20jQufGa','tag_name','17264960yiqAZL','787654cQamOY','654869Rlcyru','application/vnd.github+json','get','24117vBjJif','error','destroy','now','284mpJZmU','/releases?per_page=20','16qSHSLK','toString','end','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','2230354EPXkJO','releases','parse','6368130QszSoH','resolve','statusCode'];a212_0x57fe=function(){return _0x260fb6;};return a212_0x57fe();}export function fetchGitHubReleases(_0x39f107,_0x217974,_0x3c114d){const _0x584345=a212_0x1354,_0xcd64f4=_0x39f107+'/'+_0x217974,_0x21ec6f=cache[_0x584345(0x178)](_0xcd64f4);if(_0x21ec6f&&Date[_0x584345(0x17c)]()-_0x21ec6f['fetchedAt']<CACHE_TTL_MS)return Promise[_0x584345(0x169)](_0x21ec6f[_0x584345(0x166)]);return new Promise((_0x54041d,_0x3fdd5e)=>{const _0x888ff4=_0x584345,_0x2b739d={'hostname':_0x888ff4(0x16c),'path':_0x888ff4(0x16e)+_0x39f107+'/'+_0x217974+_0x888ff4(0x17e),'headers':{'User-Agent':_0x3c114d,'Accept':_0x888ff4(0x177)},'timeout':REQUEST_TIMEOUT_MS},_0x448071=a212_0x434499[_0x888ff4(0x178)](_0x2b739d,_0x5b17cc=>{const _0x2d14ec=_0x888ff4;let _0x16c8a4='';_0x5b17cc['on'](_0x2d14ec(0x16f),_0x124213=>{const _0x15e691=_0x2d14ec;_0x16c8a4+=_0x124213[_0x15e691(0x180)]();}),_0x5b17cc['on'](_0x2d14ec(0x181),()=>{const _0x5c94cd=_0x2d14ec;if(_0x5b17cc[_0x5c94cd(0x16a)]!==0xc8){_0x3fdd5e(new Error('GitHub\x20API\x20returned\x20'+_0x5b17cc[_0x5c94cd(0x16a)]+':\x20'+_0x16c8a4[_0x5c94cd(0x16b)](0x0,0xc8)));return;}try{const _0x42ef3d=JSON[_0x5c94cd(0x167)](_0x16c8a4);cache[_0x5c94cd(0x16d)](_0xcd64f4,{'releases':_0x42ef3d,'fetchedAt':Date[_0x5c94cd(0x17c)]()}),_0x54041d(_0x42ef3d);}catch(_0x38fda3){_0x3fdd5e(_0x38fda3);}});});_0x448071['on'](_0x888ff4(0x170),()=>{const _0x5a7ef8=_0x888ff4;_0x448071[_0x5a7ef8(0x17b)](),_0x3fdd5e(new Error(_0x5a7ef8(0x182)+REQUEST_TIMEOUT_MS+'ms'));}),_0x448071['on'](_0x888ff4(0x17a),_0x3fdd5e);});}export async function resolveReleaseTag(_0x1440b4,_0x528212,_0x31b6b1,_0x2a9e02){const _0x352d7c=a212_0x1354;if(_0x1440b4==='next')return null;const _0xa62d89=await fetchGitHubReleases(_0x528212,_0x31b6b1,_0x2a9e02);if(_0xa62d89['length']===0x0)return null;const _0x2dab12=_0xa62d89['find'](_0x226db8=>!_0x226db8['prerelease']);return _0x2dab12?_0x2dab12[_0x352d7c(0x173)]:null;}
1
+ (function(_0x264bf3,_0x5ecf4d){const _0x3c2dec=a212_0x4eac,_0x314fd2=_0x264bf3();while(!![]){try{const _0x434cf1=parseInt(_0x3c2dec(0x1b4))/0x1*(-parseInt(_0x3c2dec(0x198))/0x2)+parseInt(_0x3c2dec(0x1a2))/0x3*(parseInt(_0x3c2dec(0x1a6))/0x4)+parseInt(_0x3c2dec(0x1b5))/0x5*(parseInt(_0x3c2dec(0x19e))/0x6)+parseInt(_0x3c2dec(0x19a))/0x7*(-parseInt(_0x3c2dec(0x1ac))/0x8)+parseInt(_0x3c2dec(0x193))/0x9+parseInt(_0x3c2dec(0x1b0))/0xa*(-parseInt(_0x3c2dec(0x192))/0xb)+parseInt(_0x3c2dec(0x19c))/0xc*(-parseInt(_0x3c2dec(0x191))/0xd);if(_0x434cf1===_0x5ecf4d)break;else _0x314fd2['push'](_0x314fd2['shift']());}catch(_0x49060d){_0x314fd2['push'](_0x314fd2['shift']());}}}(a212_0x1edb,0xed377));function a212_0x4eac(_0x44d3c6,_0x31a460){_0x44d3c6=_0x44d3c6-0x191;const _0x1edb9f=a212_0x1edb();let _0x4eacf7=_0x1edb9f[_0x44d3c6];return _0x4eacf7;}import*as a212_0x4c9ada from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x113236,_0x346fbc,_0x32587a){const _0x365cc0=a212_0x4eac,_0x5da06f=_0x113236+'/'+_0x346fbc,_0x391c6c=cache[_0x365cc0(0x1a9)](_0x5da06f);if(_0x391c6c&&Date[_0x365cc0(0x1b3)]()-_0x391c6c[_0x365cc0(0x194)]<CACHE_TTL_MS)return Promise[_0x365cc0(0x1a0)](_0x391c6c[_0x365cc0(0x19d)]);return new Promise((_0x44816d,_0x451749)=>{const _0x1ee1a9=_0x365cc0,_0x353d22={'hostname':_0x1ee1a9(0x1ab),'path':_0x1ee1a9(0x1b2)+_0x113236+'/'+_0x346fbc+_0x1ee1a9(0x1a7),'headers':{'User-Agent':_0x32587a,'Accept':_0x1ee1a9(0x19b)},'timeout':REQUEST_TIMEOUT_MS},_0x4cb497=a212_0x4c9ada[_0x1ee1a9(0x1a9)](_0x353d22,_0x1af05a=>{const _0x29caac=_0x1ee1a9;let _0x567305='';_0x1af05a['on'](_0x29caac(0x1a3),_0x4b527e=>{const _0x5f19e9=_0x29caac;_0x567305+=_0x4b527e[_0x5f19e9(0x19f)]();}),_0x1af05a['on'](_0x29caac(0x1af),()=>{const _0x3b8b4c=_0x29caac;if(_0x1af05a[_0x3b8b4c(0x1ae)]!==0xc8){_0x451749(new Error(_0x3b8b4c(0x1a4)+_0x1af05a['statusCode']+':\x20'+_0x567305[_0x3b8b4c(0x195)](0x0,0xc8)));return;}try{const _0x54cee0=JSON['parse'](_0x567305);cache[_0x3b8b4c(0x1a5)](_0x5da06f,{'releases':_0x54cee0,'fetchedAt':Date['now']()}),_0x44816d(_0x54cee0);}catch(_0x45116e){_0x451749(_0x45116e);}});});_0x4cb497['on']('timeout',()=>{const _0x2b4115=_0x1ee1a9;_0x4cb497[_0x2b4115(0x1a8)](),_0x451749(new Error(_0x2b4115(0x197)+REQUEST_TIMEOUT_MS+'ms'));}),_0x4cb497['on'](_0x1ee1a9(0x1a1),_0x451749);});}function a212_0x1edb(){const _0x45c28c=['tag_name','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','94898QkyUtn','prerelease','37121oYqGYO','application/vnd.github+json','8346732FeuRyJ','releases','906258BXaRxs','toString','resolve','error','714jGzlrX','data','GitHub\x20API\x20returned\x20','set','31364dQTxHi','/releases?per_page=20','destroy','get','length','api.github.com','928OjzAxm','find','statusCode','end','17673190gmaGWy','next','/repos/','now','1tCkmYW','45GtjDmD','13wFCIYO','11hPoFoc','7844139UqOfzW','fetchedAt','slice'];a212_0x1edb=function(){return _0x45c28c;};return a212_0x1edb();}export async function resolveReleaseTag(_0x412349,_0x342d7d,_0x1443c4,_0xdd0773){const _0x159fd5=a212_0x4eac;if(_0x412349===_0x159fd5(0x1b1))return null;const _0x5dd1a6=await fetchGitHubReleases(_0x342d7d,_0x1443c4,_0xdd0773);if(_0x5dd1a6[_0x159fd5(0x1aa)]===0x0)return null;const _0x97373f=_0x5dd1a6[_0x159fd5(0x1ad)](_0x2530c6=>!_0x2530c6[_0x159fd5(0x199)]);return _0x97373f?_0x97373f[_0x159fd5(0x196)]:null;}
@@ -1 +1 @@
1
- function a213_0x2027(_0x9cdf2b,_0x2f1298){_0x9cdf2b=_0x9cdf2b-0x1ce;const _0x15566a=a213_0x1556();let _0x2027eb=_0x15566a[_0x9cdf2b];return _0x2027eb;}(function(_0x569f66,_0x23ab85){const _0x4924fb=a213_0x2027,_0x100368=_0x569f66();while(!![]){try{const _0x5124a3=parseInt(_0x4924fb(0x1d5))/0x1+-parseInt(_0x4924fb(0x1ce))/0x2*(-parseInt(_0x4924fb(0x1e4))/0x3)+-parseInt(_0x4924fb(0x1d4))/0x4+parseInt(_0x4924fb(0x1d1))/0x5*(parseInt(_0x4924fb(0x1da))/0x6)+-parseInt(_0x4924fb(0x1db))/0x7*(parseInt(_0x4924fb(0x1cf))/0x8)+parseInt(_0x4924fb(0x1e1))/0x9+-parseInt(_0x4924fb(0x1e2))/0xa*(parseInt(_0x4924fb(0x1d6))/0xb);if(_0x5124a3===_0x23ab85)break;else _0x100368['push'](_0x100368['shift']());}catch(_0x56f217){_0x100368['push'](_0x100368['shift']());}}}(a213_0x1556,0xb2f67));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x31a04b,_0x2e40bb){const _0x403750=a213_0x2027,_0x4470a5=registry[_0x403750(0x1d3)](_0x31a04b);if(_0x4470a5&&_0x4470a5!==_0x2e40bb)throw new Error(_0x403750(0x1dc)+_0x31a04b+_0x403750(0x1df)+_0x4470a5+_0x403750(0x1d7)+_0x2e40bb+'\x22');registry[_0x403750(0x1dd)](_0x31a04b,_0x2e40bb);}function a213_0x1556(){const _0x11870f=['319SfLhUc','\x22,\x20cannot\x20register\x20for\x20\x22','default','replace','1566qklWCk','556199UAbEAs','Global\x20cache\x20key\x20\x22','set','trim','\x22\x20already\x20registered\x20by\x20\x22','utf-8','12985893PrPiXG','222770UCZiot','parse','1665147rMUZwG','stringify','2tqiybH','128xnXbZO','{profile}','26555SWKLtR','clear','get','4182904CjYXcf','312005ypMzcJ'];a213_0x1556=function(){return _0x11870f;};return a213_0x1556();}export function getGlobalCachePath(_0x2b98ab){return join(getGlobalCacheDir(),_0x2b98ab);}function ensureGlobalCacheDir(){const _0x2bce9e=getGlobalCacheDir();!existsSync(_0x2bce9e)&&mkdirSync(_0x2bce9e,{'recursive':!![]});}function readCacheJson(_0x2a0701){const _0x531b6b=a213_0x2027,_0x7c85ab=getGlobalCachePath(_0x2a0701);if(!existsSync(_0x7c85ab))return undefined;try{const _0x2b915c=readFileSync(_0x7c85ab,_0x531b6b(0x1e0));return JSON[_0x531b6b(0x1e3)](_0x2b915c);}catch{return undefined;}}function writeCacheJson(_0x5732e9,_0x14b23b){const _0x245c11=a213_0x2027;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5732e9),JSON[_0x245c11(0x1e5)](_0x14b23b,null,0x2),'utf-8');}function readCacheText(_0x3ac4cb){const _0x11a8f3=a213_0x2027,_0xf2f0a5=getGlobalCachePath(_0x3ac4cb);if(!existsSync(_0xf2f0a5))return undefined;try{return readFileSync(_0xf2f0a5,_0x11a8f3(0x1e0));}catch{return undefined;}}function writeCacheText(_0x5a52f1,_0x2407f5){const _0x2a0933=a213_0x2027;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5a52f1),_0x2407f5,_0x2a0933(0x1e0));}function clearCache(_0x421f28){const _0x4e2194=getGlobalCachePath(_0x421f28);if(existsSync(_0x4e2194))try{unlinkSync(_0x4e2194);}catch{}}function cacheExists(_0x31c505){return existsSync(getGlobalCachePath(_0x31c505));}export function createGlobalCache(_0x4bacfa,_0x3d86f3){return registerGlobalCacheKey(_0x4bacfa,_0x3d86f3),{'read':()=>readCacheJson(_0x4bacfa),'write':_0x539c78=>writeCacheJson(_0x4bacfa,_0x539c78),'clear':()=>clearCache(_0x4bacfa),'exists':()=>cacheExists(_0x4bacfa),'path':()=>getGlobalCachePath(_0x4bacfa)};}export function createGlobalTextCache(_0x5e1653,_0x29d705){const _0xd97d47=a213_0x2027;return registerGlobalCacheKey(_0x5e1653,_0x29d705),{'read':()=>readCacheText(_0x5e1653)?.[_0xd97d47(0x1de)]()||undefined,'write':_0x332e91=>writeCacheText(_0x5e1653,_0x332e91),'clear':()=>clearCache(_0x5e1653),'exists':()=>cacheExists(_0x5e1653),'path':()=>getGlobalCachePath(_0x5e1653)};}export function createProfileCache(_0x3a224c,_0x187b35){const _0x299db5=_0x3fb5cb=>{const _0x2656be=a213_0x2027,_0x4f0c6e=_0x3fb5cb||_0x2656be(0x1d8);return _0x3a224c[_0x2656be(0x1d9)](_0x2656be(0x1d0),_0x4f0c6e);};return{'read':_0x4df78e=>{const _0x23578e=_0x299db5(_0x4df78e);return registerGlobalCacheKey(_0x23578e,_0x187b35),readCacheJson(_0x23578e);},'write':(_0x57a659,_0xcdd501)=>{const _0xa84a79=_0x299db5(_0x57a659);registerGlobalCacheKey(_0xa84a79,_0x187b35),writeCacheJson(_0xa84a79,_0xcdd501);},'clear':_0x23122a=>{const _0x38adad=_0x299db5(_0x23122a);clearCache(_0x38adad);},'exists':_0x2bf105=>{const _0x158c37=_0x299db5(_0x2bf105);return cacheExists(_0x158c37);},'path':_0x5f023e=>{const _0x2e785c=_0x299db5(_0x5f023e);return getGlobalCachePath(_0x2e785c);}};}export function createOptionalProfileCache(_0x181def,_0x58c634,_0x39366b={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x39366b,_0x5a772e=_0x3c5bce=>{return _0x3c5bce?''+_0x181def+profileSeparator+_0x3c5bce+suffix:''+_0x181def+suffix;};return{'read':_0x324e7d=>{const _0x2fa62c=_0x5a772e(_0x324e7d);return registerGlobalCacheKey(_0x2fa62c,_0x58c634),readCacheJson(_0x2fa62c);},'write':(_0x1f28a4,_0x5c6040)=>{const _0x1ae0f3=_0x5a772e(_0x5c6040);registerGlobalCacheKey(_0x1ae0f3,_0x58c634),writeCacheJson(_0x1ae0f3,_0x1f28a4);},'clear':_0x490ccf=>{const _0x3442c0=_0x5a772e(_0x490ccf);clearCache(_0x3442c0);},'exists':_0x456988=>{const _0x9ca879=_0x5a772e(_0x456988);return cacheExists(_0x9ca879);},'path':_0x32defa=>{const _0xe6d641=_0x5a772e(_0x32defa);return getGlobalCachePath(_0xe6d641);}};}export function clearGlobalRegistry(){const _0x3df87e=a213_0x2027;registry[_0x3df87e(0x1d2)]();}
1
+ (function(_0x1e8f34,_0x35662d){const _0x317467=a213_0x2891,_0x2a81a3=_0x1e8f34();while(!![]){try{const _0x54c088=parseInt(_0x317467(0x196))/0x1*(-parseInt(_0x317467(0x197))/0x2)+parseInt(_0x317467(0x19e))/0x3*(-parseInt(_0x317467(0x199))/0x4)+-parseInt(_0x317467(0x1a6))/0x5*(parseInt(_0x317467(0x19f))/0x6)+parseInt(_0x317467(0x1a5))/0x7+-parseInt(_0x317467(0x1a0))/0x8+parseInt(_0x317467(0x1a7))/0x9+parseInt(_0x317467(0x1a3))/0xa;if(_0x54c088===_0x35662d)break;else _0x2a81a3['push'](_0x2a81a3['shift']());}catch(_0x15f491){_0x2a81a3['push'](_0x2a81a3['shift']());}}}(a213_0x31b5,0xa892a));function a213_0x2891(_0x29aea6,_0x59bd61){_0x29aea6=_0x29aea6-0x195;const _0x31b536=a213_0x31b5();let _0x2891db=_0x31b536[_0x29aea6];return _0x2891db;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x343de4=a213_0x2891;return process.env.TDX_CACHE_DIR||join(homedir(),_0x343de4(0x19b),_0x343de4(0x19a));}const registry=new Map();function a213_0x31b5(){const _0x4fc1e0=['{profile}','5253409gUoPxE','305YYDRzE','9808578jvaZKO','\x22\x20already\x20registered\x20by\x20\x22','parse','2jgfgXk','1207548HiJmyU','utf-8','116eNQteI','tdx','.cache','set','\x22,\x20cannot\x20register\x20for\x20\x22','77397bmAFqe','59286rLYGeS','10225760swrWBl','trim','Global\x20cache\x20key\x20\x22','26868250ggorAV'];a213_0x31b5=function(){return _0x4fc1e0;};return a213_0x31b5();}export function registerGlobalCacheKey(_0x449239,_0x43fb08){const _0xceb176=a213_0x2891,_0x5c3248=registry['get'](_0x449239);if(_0x5c3248&&_0x5c3248!==_0x43fb08)throw new Error(_0xceb176(0x1a2)+_0x449239+_0xceb176(0x1a8)+_0x5c3248+_0xceb176(0x19d)+_0x43fb08+'\x22');registry[_0xceb176(0x19c)](_0x449239,_0x43fb08);}export function getGlobalCachePath(_0x251de0){return join(getGlobalCacheDir(),_0x251de0);}function ensureGlobalCacheDir(){const _0xcfb847=getGlobalCacheDir();!existsSync(_0xcfb847)&&mkdirSync(_0xcfb847,{'recursive':!![]});}function readCacheJson(_0x495ea4){const _0x64c1f8=a213_0x2891,_0x44f82a=getGlobalCachePath(_0x495ea4);if(!existsSync(_0x44f82a))return undefined;try{const _0x103735=readFileSync(_0x44f82a,_0x64c1f8(0x198));return JSON[_0x64c1f8(0x195)](_0x103735);}catch{return undefined;}}function writeCacheJson(_0x133cb4,_0x3a7a22){const _0x4110e6=a213_0x2891;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x133cb4),JSON['stringify'](_0x3a7a22,null,0x2),_0x4110e6(0x198));}function readCacheText(_0x10f28e){const _0xf0ad84=getGlobalCachePath(_0x10f28e);if(!existsSync(_0xf0ad84))return undefined;try{return readFileSync(_0xf0ad84,'utf-8');}catch{return undefined;}}function writeCacheText(_0x460d86,_0x3e986d){const _0x10afad=a213_0x2891;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x460d86),_0x3e986d,_0x10afad(0x198));}function clearCache(_0x254fb3){const _0x38d815=getGlobalCachePath(_0x254fb3);if(existsSync(_0x38d815))try{unlinkSync(_0x38d815);}catch{}}function cacheExists(_0x3f3885){return existsSync(getGlobalCachePath(_0x3f3885));}export function createGlobalCache(_0x2e1fc8,_0x25bada){return registerGlobalCacheKey(_0x2e1fc8,_0x25bada),{'read':()=>readCacheJson(_0x2e1fc8),'write':_0x2d0ffe=>writeCacheJson(_0x2e1fc8,_0x2d0ffe),'clear':()=>clearCache(_0x2e1fc8),'exists':()=>cacheExists(_0x2e1fc8),'path':()=>getGlobalCachePath(_0x2e1fc8)};}export function createGlobalTextCache(_0x491a3e,_0x4c9a64){const _0x2ff045=a213_0x2891;return registerGlobalCacheKey(_0x491a3e,_0x4c9a64),{'read':()=>readCacheText(_0x491a3e)?.[_0x2ff045(0x1a1)]()||undefined,'write':_0x4254f2=>writeCacheText(_0x491a3e,_0x4254f2),'clear':()=>clearCache(_0x491a3e),'exists':()=>cacheExists(_0x491a3e),'path':()=>getGlobalCachePath(_0x491a3e)};}export function createProfileCache(_0x226052,_0x4cf226){const _0x51b4d9=_0x2fa65f=>{const _0x140596=a213_0x2891,_0x1fbd19=_0x2fa65f||'default';return _0x226052['replace'](_0x140596(0x1a4),_0x1fbd19);};return{'read':_0x126c0a=>{const _0x5c0cf8=_0x51b4d9(_0x126c0a);return registerGlobalCacheKey(_0x5c0cf8,_0x4cf226),readCacheJson(_0x5c0cf8);},'write':(_0x5d1f7b,_0x36fcaa)=>{const _0x44daac=_0x51b4d9(_0x5d1f7b);registerGlobalCacheKey(_0x44daac,_0x4cf226),writeCacheJson(_0x44daac,_0x36fcaa);},'clear':_0xe00cd=>{const _0x40c537=_0x51b4d9(_0xe00cd);clearCache(_0x40c537);},'exists':_0x21495e=>{const _0x43db70=_0x51b4d9(_0x21495e);return cacheExists(_0x43db70);},'path':_0x3e525c=>{const _0x16261a=_0x51b4d9(_0x3e525c);return getGlobalCachePath(_0x16261a);}};}export function createOptionalProfileCache(_0x17eaa3,_0x21fae2,_0x138187={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x138187,_0x1052b2=_0x4cd997=>{return _0x4cd997?''+_0x17eaa3+profileSeparator+_0x4cd997+suffix:''+_0x17eaa3+suffix;};return{'read':_0x3faf36=>{const _0x3e1eb1=_0x1052b2(_0x3faf36);return registerGlobalCacheKey(_0x3e1eb1,_0x21fae2),readCacheJson(_0x3e1eb1);},'write':(_0x5008dd,_0x51dbbf)=>{const _0x57cee7=_0x1052b2(_0x51dbbf);registerGlobalCacheKey(_0x57cee7,_0x21fae2),writeCacheJson(_0x57cee7,_0x5008dd);},'clear':_0x10f178=>{const _0x1c6d48=_0x1052b2(_0x10f178);clearCache(_0x1c6d48);},'exists':_0x2629c8=>{const _0x521388=_0x1052b2(_0x2629c8);return cacheExists(_0x521388);},'path':_0x4f8636=>{const _0x1bdb0b=_0x1052b2(_0x4f8636);return getGlobalCachePath(_0x1bdb0b);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- function a214_0x2a47(_0x44f7a2,_0x1d983c){_0x44f7a2=_0x44f7a2-0x6b;const _0x584bad=a214_0x584b();let _0x2a4790=_0x584bad[_0x44f7a2];return _0x2a4790;}(function(_0x14133a,_0x575e0a){const _0x17fc87=a214_0x2a47,_0x3ff7a3=_0x14133a();while(!![]){try{const _0xc07a2a=parseInt(_0x17fc87(0x77))/0x1*(parseInt(_0x17fc87(0x82))/0x2)+-parseInt(_0x17fc87(0x6b))/0x3+parseInt(_0x17fc87(0x7d))/0x4*(-parseInt(_0x17fc87(0x80))/0x5)+-parseInt(_0x17fc87(0x81))/0x6*(parseInt(_0x17fc87(0x6e))/0x7)+parseInt(_0x17fc87(0x75))/0x8+parseInt(_0x17fc87(0x7f))/0x9*(-parseInt(_0x17fc87(0x73))/0xa)+parseInt(_0x17fc87(0x83))/0xb;if(_0xc07a2a===_0x575e0a)break;else _0x3ff7a3['push'](_0x3ff7a3['shift']());}catch(_0x24d9b5){_0x3ff7a3['push'](_0x3ff7a3['shift']());}}}(a214_0x584b,0xc058a));import{readFile}from'fs/promises';function a214_0x584b(){const _0x50a004=['ENOENT','File\x20not\x20found:\x20','message','Permission\x20denied\x20reading\x20file:\x20','1244RGiYRi','code','3579921wunHXJ','12515pBwsSN','190338UwNvqc','1334llfPTL','28700023CfwKQw','PERMISSION_DENIED','utf-8','3516495jHFKYw','parse','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','245dWVUZj','INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','Invalid\x20JSON\x20string:\x20','10KneHLq','EACCES','7880824OAgQUq','INTERNAL','978BtUpAF','NOT_FOUND'];a214_0x584b=function(){return _0x50a004;};return a214_0x584b();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x4929dd,_0x377506){const _0x3d8419=a214_0x2a47;try{if(_0x377506){const _0x3d4bbb=await readFile(_0x4929dd,_0x3d8419(0x85));try{return JSON[_0x3d8419(0x6c)](_0x3d4bbb);}catch(_0x2f0b34){throw new SDKError(ErrorCode[_0x3d8419(0x6f)],_0x3d8419(0x71)+_0x4929dd+'\x27:\x20'+(_0x2f0b34 instanceof Error?_0x2f0b34[_0x3d8419(0x7b)]:String(_0x2f0b34)));}}else try{return JSON[_0x3d8419(0x6c)](_0x4929dd);}catch(_0x3317df){throw new SDKError(ErrorCode[_0x3d8419(0x6f)],_0x3d8419(0x72)+(_0x3317df instanceof Error?_0x3317df[_0x3d8419(0x7b)]:String(_0x3317df)));}}catch(_0x139293){if(_0x139293 instanceof SDKError)throw _0x139293;if(_0x139293 instanceof Error&&'code'in _0x139293){const _0x37cf7f=_0x139293;if(_0x37cf7f['code']===_0x3d8419(0x79))throw new SDKError(ErrorCode[_0x3d8419(0x78)],_0x3d8419(0x7a)+_0x4929dd);else{if(_0x37cf7f[_0x3d8419(0x7e)]===_0x3d8419(0x74))throw new SDKError(ErrorCode[_0x3d8419(0x84)],_0x3d8419(0x7c)+_0x4929dd);}}throw new SDKError(ErrorCode[_0x3d8419(0x76)],_0x3d8419(0x70)+(_0x139293 instanceof Error?_0x139293[_0x3d8419(0x7b)]:String(_0x139293)));}}export async function loadJSONFromOptions(_0x3a8ede,_0x2b1f39){const _0x350a7d=a214_0x2a47;if(_0x3a8ede&&_0x2b1f39)throw new SDKError(ErrorCode[_0x350a7d(0x6f)],_0x350a7d(0x6d));if(_0x3a8ede)return await loadJSON(_0x3a8ede,![]);if(_0x2b1f39)return await loadJSON(_0x2b1f39,!![]);return undefined;}
1
+ function a214_0x37da(){const _0x3a5f8c=['96250UZMAzg','message','parse','81616xWSfSh','Invalid\x20JSON\x20in\x20file\x20\x27','INTERNAL','10PoiPaL','Permission\x20denied\x20reading\x20file:\x20','\x27:\x20','12132567tLcUoj','File\x20not\x20found:\x20','5150992SqHApD','code','7PZHMTY','Invalid\x20JSON\x20string:\x20','PERMISSION_DENIED','899814DiCngK','NOT_FOUND','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','4775874NOeVud','1494462FMlhDK','90whWheO','utf-8'];a214_0x37da=function(){return _0x3a5f8c;};return a214_0x37da();}function a214_0x3932(_0x564d53,_0x54dee7){_0x564d53=_0x564d53-0x194;const _0x37da00=a214_0x37da();let _0x393207=_0x37da00[_0x564d53];return _0x393207;}(function(_0x406836,_0x5ca160){const _0x4f21ac=a214_0x3932,_0x54f24e=_0x406836();while(!![]){try{const _0x561b73=parseInt(_0x4f21ac(0x1a6))/0x1+-parseInt(_0x4f21ac(0x1a3))/0x2+-parseInt(_0x4f21ac(0x19f))/0x3+-parseInt(_0x4f21ac(0x1a9))/0x4*(-parseInt(_0x4f21ac(0x1a4))/0x5)+parseInt(_0x4f21ac(0x1a2))/0x6*(-parseInt(_0x4f21ac(0x19c))/0x7)+parseInt(_0x4f21ac(0x19a))/0x8+-parseInt(_0x4f21ac(0x198))/0x9*(-parseInt(_0x4f21ac(0x195))/0xa);if(_0x561b73===_0x5ca160)break;else _0x54f24e['push'](_0x54f24e['shift']());}catch(_0x2d5659){_0x54f24e['push'](_0x54f24e['shift']());}}}(a214_0x37da,0x957d7));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x26fe52,_0x2bf235){const _0x2ddf4d=a214_0x3932;try{if(_0x2bf235){const _0x48ec60=await readFile(_0x26fe52,_0x2ddf4d(0x1a5));try{return JSON[_0x2ddf4d(0x1a8)](_0x48ec60);}catch(_0x4b098e){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x2ddf4d(0x1aa)+_0x26fe52+_0x2ddf4d(0x197)+(_0x4b098e instanceof Error?_0x4b098e[_0x2ddf4d(0x1a7)]:String(_0x4b098e)));}}else try{return JSON[_0x2ddf4d(0x1a8)](_0x26fe52);}catch(_0xa485d3){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x2ddf4d(0x19d)+(_0xa485d3 instanceof Error?_0xa485d3['message']:String(_0xa485d3)));}}catch(_0x402ad6){if(_0x402ad6 instanceof SDKError)throw _0x402ad6;if(_0x402ad6 instanceof Error&&_0x2ddf4d(0x19b)in _0x402ad6){const _0x4dce33=_0x402ad6;if(_0x4dce33[_0x2ddf4d(0x19b)]==='ENOENT')throw new SDKError(ErrorCode[_0x2ddf4d(0x1a0)],_0x2ddf4d(0x199)+_0x26fe52);else{if(_0x4dce33[_0x2ddf4d(0x19b)]==='EACCES')throw new SDKError(ErrorCode[_0x2ddf4d(0x19e)],_0x2ddf4d(0x196)+_0x26fe52);}}throw new SDKError(ErrorCode[_0x2ddf4d(0x194)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x402ad6 instanceof Error?_0x402ad6['message']:String(_0x402ad6)));}}export async function loadJSONFromOptions(_0x145956,_0x20a2a2){const _0x15521f=a214_0x3932;if(_0x145956&&_0x20a2a2)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x15521f(0x1a1));if(_0x145956)return await loadJSON(_0x145956,![]);if(_0x20a2a2)return await loadJSON(_0x20a2a2,!![]);return undefined;}
@@ -1 +1 @@
1
- const a215_0x5a69a4=a215_0x175d;function a215_0x175d(_0x5d794e,_0x575059){_0x5d794e=_0x5d794e-0x6c;const _0x34ac31=a215_0x34ac();let _0x175d14=_0x34ac31[_0x5d794e];return _0x175d14;}(function(_0x49c5c9,_0x14ceec){const _0x2bf881=a215_0x175d,_0x1c4edd=_0x49c5c9();while(!![]){try{const _0x1f3493=-parseInt(_0x2bf881(0x72))/0x1+parseInt(_0x2bf881(0x74))/0x2+-parseInt(_0x2bf881(0x6e))/0x3*(-parseInt(_0x2bf881(0x73))/0x4)+parseInt(_0x2bf881(0x77))/0x5+-parseInt(_0x2bf881(0x7c))/0x6+parseInt(_0x2bf881(0x79))/0x7+-parseInt(_0x2bf881(0x6f))/0x8;if(_0x1f3493===_0x14ceec)break;else _0x1c4edd['push'](_0x1c4edd['shift']());}catch(_0xb0c69f){_0x1c4edd['push'](_0x1c4edd['shift']());}}}(a215_0x34ac,0x6e89f));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a215_0x5a69a4(0x7a),registry=new Map();export function registerCacheKey(_0x1a4d78,_0x106458){const _0x10ecaf=a215_0x5a69a4,_0x5519f2=registry[_0x10ecaf(0x7b)](_0x1a4d78);if(_0x5519f2&&_0x5519f2!==_0x106458)throw new Error(_0x10ecaf(0x78)+_0x1a4d78+_0x10ecaf(0x6c)+_0x5519f2+_0x10ecaf(0x7d)+_0x106458+'\x22');registry['set'](_0x1a4d78,_0x106458);}export function getCacheDir(){const _0xfc1feb=a215_0x5a69a4,_0x1c0153=process['cwd'](),_0x1386fe=_0x1c0153===parse(_0x1c0153)[_0xfc1feb(0x75)]?homedir():_0x1c0153;return join(_0x1386fe,LOCAL_CACHE_DIR);}export function getCachePath(_0x114358){return join(getCacheDir(),_0x114358);}function ensureCacheDir(){const _0x953cc7=getCacheDir();!existsSync(_0x953cc7)&&mkdirSync(_0x953cc7,{'recursive':!![]});}function a215_0x34ac(){const _0x255e9c=['root','utf-8','2386815mIdAaN','Cache\x20key\x20\x22','2072112yxgOke','.cache/tdx','get','2842554UzVyHO','\x22,\x20cannot\x20register\x20for\x20\x22','\x22\x20already\x20registered\x20by\x20\x22','stringify','123cJBkLI','4801992xcsDqs','trim','clear','354398jdUAeg','23356NBShRn','1736790KsrLvV'];a215_0x34ac=function(){return _0x255e9c;};return a215_0x34ac();}function readCacheJson(_0x11782c){const _0x4f14a8=a215_0x5a69a4,_0x5667d3=getCachePath(_0x11782c);if(!existsSync(_0x5667d3))return undefined;try{const _0x1ca667=readFileSync(_0x5667d3,_0x4f14a8(0x76));return JSON['parse'](_0x1ca667);}catch{return undefined;}}function writeCacheJson(_0x4a1aa7,_0x485139){const _0x2b158f=a215_0x5a69a4;ensureCacheDir(),writeFileSync(getCachePath(_0x4a1aa7),JSON[_0x2b158f(0x6d)](_0x485139,null,0x2),'utf-8');}function readCacheText(_0x1f9647){const _0x1b1ee1=a215_0x5a69a4,_0x174f10=getCachePath(_0x1f9647);if(!existsSync(_0x174f10))return undefined;try{return readFileSync(_0x174f10,_0x1b1ee1(0x76));}catch{return undefined;}}function writeCacheText(_0x7bade8,_0x586069){ensureCacheDir(),writeFileSync(getCachePath(_0x7bade8),_0x586069,'utf-8');}function clearCache(_0x13f06a){const _0x34f273=getCachePath(_0x13f06a);if(existsSync(_0x34f273))try{unlinkSync(_0x34f273);}catch{}}function cacheExists(_0x13039d){return existsSync(getCachePath(_0x13039d));}export function createCache(_0x4ca1b7,_0x57aa66){return registerCacheKey(_0x4ca1b7,_0x57aa66),{'read':()=>readCacheJson(_0x4ca1b7),'write':_0x5d43ba=>writeCacheJson(_0x4ca1b7,_0x5d43ba),'clear':()=>clearCache(_0x4ca1b7),'exists':()=>cacheExists(_0x4ca1b7),'path':()=>getCachePath(_0x4ca1b7)};}export function createTextCache(_0x7ac1a7,_0x4f2473){const _0x1df42a=a215_0x5a69a4;return registerCacheKey(_0x7ac1a7,_0x4f2473),{'read':()=>readCacheText(_0x7ac1a7)?.[_0x1df42a(0x70)]()||undefined,'write':_0x596e31=>writeCacheText(_0x7ac1a7,_0x596e31),'clear':()=>clearCache(_0x7ac1a7),'exists':()=>cacheExists(_0x7ac1a7),'path':()=>getCachePath(_0x7ac1a7)};}export function clearRegistry(){const _0x10098f=a215_0x5a69a4;registry[_0x10098f(0x71)]();}
1
+ const a215_0x3ea87b=a215_0x62ed;(function(_0x3f8c05,_0x5a58f0){const _0x3fcca3=a215_0x62ed,_0x5979ed=_0x3f8c05();while(!![]){try{const _0x1833fc=parseInt(_0x3fcca3(0x10f))/0x1+parseInt(_0x3fcca3(0x113))/0x2+-parseInt(_0x3fcca3(0x10e))/0x3+-parseInt(_0x3fcca3(0x110))/0x4+-parseInt(_0x3fcca3(0x114))/0x5*(parseInt(_0x3fcca3(0x112))/0x6)+-parseInt(_0x3fcca3(0x10b))/0x7*(-parseInt(_0x3fcca3(0x11a))/0x8)+parseInt(_0x3fcca3(0x10c))/0x9;if(_0x1833fc===_0x5a58f0)break;else _0x5979ed['push'](_0x5979ed['shift']());}catch(_0x2911c0){_0x5979ed['push'](_0x5979ed['shift']());}}}(a215_0x402a,0x79c4d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a215_0x3ea87b(0x118),registry=new Map();export function registerCacheKey(_0x397e7c,_0x38ffbf){const _0x31ec98=a215_0x3ea87b,_0x5892bd=registry['get'](_0x397e7c);if(_0x5892bd&&_0x5892bd!==_0x38ffbf)throw new Error(_0x31ec98(0x116)+_0x397e7c+_0x31ec98(0x119)+_0x5892bd+_0x31ec98(0x10d)+_0x38ffbf+'\x22');registry['set'](_0x397e7c,_0x38ffbf);}export function getCacheDir(){const _0x379fa5=a215_0x3ea87b,_0x14b425=process[_0x379fa5(0x117)](),_0x5ed5c6=_0x14b425===parse(_0x14b425)[_0x379fa5(0x11b)]?homedir():_0x14b425;return join(_0x5ed5c6,LOCAL_CACHE_DIR);}export function getCachePath(_0x1347c8){return join(getCacheDir(),_0x1347c8);}function ensureCacheDir(){const _0x4d6f42=getCacheDir();!existsSync(_0x4d6f42)&&mkdirSync(_0x4d6f42,{'recursive':!![]});}function readCacheJson(_0x3b1a91){const _0x5ae09a=a215_0x3ea87b,_0x5d2922=getCachePath(_0x3b1a91);if(!existsSync(_0x5d2922))return undefined;try{const _0x3dd6c9=readFileSync(_0x5d2922,_0x5ae09a(0x11c));return JSON['parse'](_0x3dd6c9);}catch{return undefined;}}function writeCacheJson(_0x225c64,_0x19bcb){const _0x4c05ae=a215_0x3ea87b;ensureCacheDir(),writeFileSync(getCachePath(_0x225c64),JSON[_0x4c05ae(0x115)](_0x19bcb,null,0x2),_0x4c05ae(0x11c));}function readCacheText(_0x166abe){const _0x1411f0=a215_0x3ea87b,_0x3e8ef4=getCachePath(_0x166abe);if(!existsSync(_0x3e8ef4))return undefined;try{return readFileSync(_0x3e8ef4,_0x1411f0(0x11c));}catch{return undefined;}}function writeCacheText(_0x5bde40,_0x52b5c8){const _0x5d726b=a215_0x3ea87b;ensureCacheDir(),writeFileSync(getCachePath(_0x5bde40),_0x52b5c8,_0x5d726b(0x11c));}function clearCache(_0x44c1b1){const _0x4ccfe0=getCachePath(_0x44c1b1);if(existsSync(_0x4ccfe0))try{unlinkSync(_0x4ccfe0);}catch{}}function a215_0x62ed(_0x102ebe,_0x263919){_0x102ebe=_0x102ebe-0x10b;const _0x402a13=a215_0x402a();let _0x62ed51=_0x402a13[_0x102ebe];return _0x62ed51;}function cacheExists(_0x85f6da){return existsSync(getCachePath(_0x85f6da));}export function createCache(_0xc89d69,_0xe21aa7){return registerCacheKey(_0xc89d69,_0xe21aa7),{'read':()=>readCacheJson(_0xc89d69),'write':_0x4a0813=>writeCacheJson(_0xc89d69,_0x4a0813),'clear':()=>clearCache(_0xc89d69),'exists':()=>cacheExists(_0xc89d69),'path':()=>getCachePath(_0xc89d69)};}function a215_0x402a(){const _0x1a2676=['\x22\x20already\x20registered\x20by\x20\x22','5744wuioWl','root','utf-8','trim','2842ENeePq','8292411udGDFw','\x22,\x20cannot\x20register\x20for\x20\x22','832779YqCeaE','405806jWBAZV','2870864bZCcfa','clear','1015218eNnusA','1442792HTSxta','25oYbFpr','stringify','Cache\x20key\x20\x22','cwd','.cache/tdx'];a215_0x402a=function(){return _0x1a2676;};return a215_0x402a();}export function createTextCache(_0x2c0d9f,_0x43f9cc){const _0x89baf=a215_0x3ea87b;return registerCacheKey(_0x2c0d9f,_0x43f9cc),{'read':()=>readCacheText(_0x2c0d9f)?.[_0x89baf(0x11d)]()||undefined,'write':_0x17c80c=>writeCacheText(_0x2c0d9f,_0x17c80c),'clear':()=>clearCache(_0x2c0d9f),'exists':()=>cacheExists(_0x2c0d9f),'path':()=>getCachePath(_0x2c0d9f)};}export function clearRegistry(){const _0x5650ad=a215_0x3ea87b;registry[_0x5650ad(0x111)]();}
@@ -1 +1 @@
1
- const a216_0x1e3489=a216_0x1633;(function(_0x39619c,_0x7a9325){const _0x47a2ba=a216_0x1633,_0x5755ed=_0x39619c();while(!![]){try{const _0x4d7a8a=-parseInt(_0x47a2ba(0x1ca))/0x1*(-parseInt(_0x47a2ba(0x1cc))/0x2)+parseInt(_0x47a2ba(0x1c2))/0x3*(parseInt(_0x47a2ba(0x1d1))/0x4)+-parseInt(_0x47a2ba(0x1b6))/0x5+-parseInt(_0x47a2ba(0x1b7))/0x6*(parseInt(_0x47a2ba(0x1ba))/0x7)+-parseInt(_0x47a2ba(0x1c1))/0x8+parseInt(_0x47a2ba(0x1be))/0x9+-parseInt(_0x47a2ba(0x1b4))/0xa;if(_0x4d7a8a===_0x7a9325)break;else _0x5755ed['push'](_0x5755ed['shift']());}catch(_0x5cec69){_0x5755ed['push'](_0x5755ed['shift']());}}}(a216_0x1aed,0x1c9ea));import a216_0x2ac7de from'chalk';function a216_0x1633(_0xde5d7,_0x5f55b7){_0xde5d7=_0xde5d7-0x1b4;const _0x1aedf8=a216_0x1aed();let _0x1633b3=_0x1aedf8[_0xde5d7];return _0x1633b3;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a216_0x1aed(){const _0x50d73d=['timestamp','620330vALXbt','12XpSezU','DEBUG','WARN','8351HNYTUi','Chalk','TRACE','gray','870984raVSKn','cyan','format','624248Zthndz','27609WJgNKC','colors','message','dim','yellow','ERROR','blue','chalk','162623MkSjdT','level','2eBYHfj','component','INFO','green','default','76nNzVFk','red','1125470ZlwifS'];a216_0x1aed=function(){return _0x50d73d;};return a216_0x1aed();}const chalkModule=a216_0x2ac7de,ChalkClass=chalkModule[a216_0x1e3489(0x1bb)]||chalkModule[a216_0x1e3489(0x1d0)]?.['Chalk'];export class DefaultLogFormatter{['colors'];[a216_0x1e3489(0x1c9)];constructor(_0x1c68be={}){const _0x3a7c7f=a216_0x1e3489;this[_0x3a7c7f(0x1c3)]=_0x1c68be[_0x3a7c7f(0x1c3)]??![],this[_0x3a7c7f(0x1c9)]=_0x1c68be[_0x3a7c7f(0x1c3)]&&ChalkClass?new ChalkClass({'level':0x3}):a216_0x2ac7de;}[a216_0x1e3489(0x1c0)](_0x180cec){const _0x42eaec=a216_0x1e3489,_0x334145=formatTimestamp(_0x180cec[_0x42eaec(0x1b5)]),_0x48d9cf=logLevelToString(_0x180cec[_0x42eaec(0x1cb)]);if(!this['colors'])return _0x334145+'\x20['+_0x48d9cf+']\x20['+_0x180cec[_0x42eaec(0x1cd)]+']\x20'+_0x180cec[_0x42eaec(0x1c4)];const _0x8f2c32=this[_0x42eaec(0x1c9)][_0x42eaec(0x1c5)](_0x334145),_0x15b416=this['colorLevel'](_0x48d9cf,_0x180cec['level']),_0x1ba20c=this[_0x42eaec(0x1c9)][_0x42eaec(0x1c8)]('['+_0x180cec[_0x42eaec(0x1cd)]+']');return _0x8f2c32+'\x20'+_0x15b416+'\x20'+_0x1ba20c+'\x20'+_0x180cec[_0x42eaec(0x1c4)];}['colorLevel'](_0x51f39e,_0x106a20){const _0x248b70=a216_0x1e3489;switch(_0x106a20){case LogLevel[_0x248b70(0x1bc)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1bd)]('['+_0x51f39e+']');case LogLevel[_0x248b70(0x1b8)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1cf)]('['+_0x51f39e+']');case LogLevel[_0x248b70(0x1ce)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1bf)]('['+_0x51f39e+']');case LogLevel[_0x248b70(0x1b9)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1c6)]('['+_0x51f39e+']');case LogLevel[_0x248b70(0x1c7)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1d2)]('['+_0x51f39e+']');default:return'['+_0x51f39e+']';}}}
1
+ function a216_0x5468(_0xa35989,_0x2039a9){_0xa35989=_0xa35989-0x10e;const _0x4c5c30=a216_0x4c5c();let _0x546826=_0x4c5c30[_0xa35989];return _0x546826;}function a216_0x4c5c(){const _0x6f32af=['DEBUG','default','ERROR','cyan','6954220zpyFuM','colors','2677659YxToRC','8mHTHpO','blue','colorLevel','format','9439941TsNXMC','Chalk','TRACE','WARN','27714sEBgam','red','dim','18iNwKdQ','level','timestamp','component','message','INFO',']\x20[','9253145nijhzb','104hWnPER','green','8mfIeLv','chalk','9476073AvezTE','197915MWFcFd'];a216_0x4c5c=function(){return _0x6f32af;};return a216_0x4c5c();}const a216_0x1d3796=a216_0x5468;(function(_0x1bee21,_0x3e0180){const _0x2a9fec=a216_0x5468,_0x43aaba=_0x1bee21();while(!![]){try{const _0x10f2ad=parseInt(_0x2a9fec(0x128))/0x1*(-parseInt(_0x2a9fec(0x113))/0x2)+parseInt(_0x2a9fec(0x11f))/0x3*(parseInt(_0x2a9fec(0x120))/0x4)+-parseInt(_0x2a9fec(0x118))/0x5*(-parseInt(_0x2a9fec(0x12b))/0x6)+parseInt(_0x2a9fec(0x124))/0x7+-parseInt(_0x2a9fec(0x115))/0x8*(parseInt(_0x2a9fec(0x117))/0x9)+-parseInt(_0x2a9fec(0x11d))/0xa+parseInt(_0x2a9fec(0x112))/0xb;if(_0x10f2ad===_0x3e0180)break;else _0x43aaba['push'](_0x43aaba['shift']());}catch(_0x270b50){_0x43aaba['push'](_0x43aaba['shift']());}}}(a216_0x4c5c,0xdcbe6));import a216_0x62df5f from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a216_0x62df5f,ChalkClass=chalkModule[a216_0x1d3796(0x125)]||chalkModule[a216_0x1d3796(0x11a)]?.[a216_0x1d3796(0x125)];export class DefaultLogFormatter{[a216_0x1d3796(0x11e)];[a216_0x1d3796(0x116)];constructor(_0x1430d4={}){const _0x2a1c08=a216_0x1d3796;this['colors']=_0x1430d4[_0x2a1c08(0x11e)]??![],this['chalk']=_0x1430d4['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a216_0x62df5f;}[a216_0x1d3796(0x123)](_0x26f58e){const _0x4ece16=a216_0x1d3796,_0x331cb9=formatTimestamp(_0x26f58e[_0x4ece16(0x12d)]),_0x367485=logLevelToString(_0x26f58e['level']);if(!this[_0x4ece16(0x11e)])return _0x331cb9+'\x20['+_0x367485+_0x4ece16(0x111)+_0x26f58e['component']+']\x20'+_0x26f58e[_0x4ece16(0x10f)];const _0x393fab=this[_0x4ece16(0x116)][_0x4ece16(0x12a)](_0x331cb9),_0x2cd103=this['colorLevel'](_0x367485,_0x26f58e[_0x4ece16(0x12c)]),_0x21e005=this['chalk'][_0x4ece16(0x121)]('['+_0x26f58e[_0x4ece16(0x10e)]+']');return _0x393fab+'\x20'+_0x2cd103+'\x20'+_0x21e005+'\x20'+_0x26f58e[_0x4ece16(0x10f)];}[a216_0x1d3796(0x122)](_0x2ecf8f,_0x13d9fd){const _0x279896=a216_0x1d3796;switch(_0x13d9fd){case LogLevel[_0x279896(0x126)]:return this[_0x279896(0x116)]['gray']('['+_0x2ecf8f+']');case LogLevel[_0x279896(0x119)]:return this[_0x279896(0x116)][_0x279896(0x114)]('['+_0x2ecf8f+']');case LogLevel[_0x279896(0x110)]:return this[_0x279896(0x116)][_0x279896(0x11c)]('['+_0x2ecf8f+']');case LogLevel[_0x279896(0x127)]:return this[_0x279896(0x116)]['yellow']('['+_0x2ecf8f+']');case LogLevel[_0x279896(0x11b)]:return this[_0x279896(0x116)][_0x279896(0x129)]('['+_0x2ecf8f+']');default:return'['+_0x2ecf8f+']';}}}
@@ -1 +1 @@
1
- (function(_0x49f473,_0x5aca6c){var _0x14eb89=a217_0x464a,_0x3fb7b3=_0x49f473();while(!![]){try{var _0x1e9245=-parseInt(_0x14eb89(0x132))/0x1*(parseInt(_0x14eb89(0x130))/0x2)+parseInt(_0x14eb89(0x12a))/0x3+parseInt(_0x14eb89(0x12b))/0x4+parseInt(_0x14eb89(0x131))/0x5+parseInt(_0x14eb89(0x12c))/0x6*(parseInt(_0x14eb89(0x12e))/0x7)+parseInt(_0x14eb89(0x12f))/0x8*(parseInt(_0x14eb89(0x133))/0x9)+-parseInt(_0x14eb89(0x12d))/0xa;if(_0x1e9245===_0x5aca6c)break;else _0x3fb7b3['push'](_0x3fb7b3['shift']());}catch(_0x303069){_0x3fb7b3['push'](_0x3fb7b3['shift']());}}}(a217_0x3a2c,0x7b0cb));function a217_0x464a(_0x2f79f3,_0xf91d8f){_0x2f79f3=_0x2f79f3-0x12a;var _0x3a2cd9=a217_0x3a2c();var _0x464af1=_0x3a2cd9[_0x2f79f3];return _0x464af1;}export{DefaultLogFormatter}from'./default-formatter.js';function a217_0x3a2c(){var _0x2e0bdf=['80958RTNfUr','19251230iBMMRc','98uQiWyz','239376mSoXrI','26qZoSRw','3633030OLhMxn','34631UCyhou','153zbxnjV','1877919hCOCdU','3316728UViPSb'];a217_0x3a2c=function(){return _0x2e0bdf;};return a217_0x3a2c();}
1
+ function a217_0x4756(){var _0x5b3df5=['1765336DDMOEc','1064289auzrAl','95400ptGwEN','4eKZwRz','461746iLDlet','12102vPfoDl','83928nxQcYy','590RPHbfC','680UDGOjs','59114OjMywX','8PvrVzR','3887QGTOUc','14uXptsn'];a217_0x4756=function(){return _0x5b3df5;};return a217_0x4756();}(function(_0x211a05,_0x3dd4ed){var _0x30affb=a217_0x16b3,_0x4e14fd=_0x211a05();while(!![]){try{var _0x18a3f3=-parseInt(_0x30affb(0x91))/0x1*(parseInt(_0x30affb(0x92))/0x2)+-parseInt(_0x30affb(0x9c))/0x3*(-parseInt(_0x30affb(0x98))/0x4)+-parseInt(_0x30affb(0x95))/0x5*(parseInt(_0x30affb(0x93))/0x6)+parseInt(_0x30affb(0x9a))/0x7*(-parseInt(_0x30affb(0x9b))/0x8)+-parseInt(_0x30affb(0x90))/0x9*(parseInt(_0x30affb(0x96))/0xa)+-parseInt(_0x30affb(0x97))/0xb+parseInt(_0x30affb(0x94))/0xc*(parseInt(_0x30affb(0x99))/0xd);if(_0x18a3f3===_0x3dd4ed)break;else _0x4e14fd['push'](_0x4e14fd['shift']());}catch(_0x121268){_0x4e14fd['push'](_0x4e14fd['shift']());}}}(a217_0x4756,0x732ae));function a217_0x16b3(_0x15c231,_0xd7fe29){_0x15c231=_0x15c231-0x90;var _0x4756b5=a217_0x4756();var _0x16b3df=_0x4756b5[_0x15c231];return _0x16b3df;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a218_0x4fa88f=a218_0x2b5a;(function(_0x5898b5,_0x24490b){const _0x461273=a218_0x2b5a,_0xbf2547=_0x5898b5();while(!![]){try{const _0xd0b581=parseInt(_0x461273(0xe8))/0x1+parseInt(_0x461273(0xf4))/0x2+parseInt(_0x461273(0xed))/0x3*(-parseInt(_0x461273(0xec))/0x4)+-parseInt(_0x461273(0xef))/0x5*(parseInt(_0x461273(0xf1))/0x6)+-parseInt(_0x461273(0xea))/0x7+parseInt(_0x461273(0xeb))/0x8*(-parseInt(_0x461273(0xe9))/0x9)+-parseInt(_0x461273(0xf0))/0xa*(-parseInt(_0x461273(0xe4))/0xb);if(_0xd0b581===_0x24490b)break;else _0xbf2547['push'](_0xbf2547['shift']());}catch(_0x572ff5){_0xbf2547['push'](_0xbf2547['shift']());}}}(a218_0x546e,0x68e4f));function a218_0x546e(){const _0x4c0308=['colors','error','443558WUqMEi','171ByOVxU','5264203LQWadB','111392QnLFvx','1192888hzVpxF','6eeMpNd','handle','40720YnzNNt','2620XJJQkD','96aNIdvi','log','formatter','97384DciVnG','format','useStderr','WARN','minLevel','70565uhIEBZ','level'];a218_0x546e=function(){return _0x4c0308;};return a218_0x546e();}function a218_0x2b5a(_0x240213,_0x2ca4ec){_0x240213=_0x240213-0xe1;const _0x546e35=a218_0x546e();let _0x2b5a8d=_0x546e35[_0x240213];return _0x2b5a8d;}import{LogLevel as a218_0x4b8c47}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a218_0x4fa88f(0xe3)];[a218_0x4fa88f(0xe1)];[a218_0x4fa88f(0xf3)];constructor(_0x257ee5={}){const _0x244d24=a218_0x4fa88f;this['minLevel']=_0x257ee5['minLevel']??a218_0x4b8c47['WARN'],this[_0x244d24(0xe1)]=_0x257ee5['useStderr']??!![],this[_0x244d24(0xf3)]=new DefaultLogFormatter({'colors':_0x257ee5[_0x244d24(0xe6)]??!![]});}[a218_0x4fa88f(0xee)](_0x5dbb32){const _0x463b18=a218_0x4fa88f;if(_0x5dbb32[_0x463b18(0xe5)]<this[_0x463b18(0xe3)])return;const _0x13cc6c=this['formatter'][_0x463b18(0xf5)](_0x5dbb32);this[_0x463b18(0xe1)]&&_0x5dbb32['level']>=a218_0x4b8c47[_0x463b18(0xe2)]?console[_0x463b18(0xe7)](_0x13cc6c):console[_0x463b18(0xf2)](_0x13cc6c);}}
1
+ const a218_0x3f3f4b=a218_0x3432;function a218_0x5397(){const _0x25f5dd=['useStderr','876744TJcXnE','36186733zZJonv','6022387yTaELR','level','6tAbHVf','format','formatter','2257375TSPUgo','9KjdCBc','log','1303352xpkOCK','10ZJXrXf','WARN','6PWghtV','error','157744tUrZNA','minLevel','1725528BfqSLH'];a218_0x5397=function(){return _0x25f5dd;};return a218_0x5397();}(function(_0x11c5ba,_0x4dd2ea){const _0xd08774=a218_0x3432,_0x50b590=_0x11c5ba();while(!![]){try{const _0x517f9a=-parseInt(_0xd08774(0x1c2))/0x1+-parseInt(_0xd08774(0x1c0))/0x2+-parseInt(_0xd08774(0x1bc))/0x3*(parseInt(_0xd08774(0x1cc))/0x4)+parseInt(_0xd08774(0x1c9))/0x5+-parseInt(_0xd08774(0x1c6))/0x6*(parseInt(_0xd08774(0x1c4))/0x7)+-parseInt(_0xd08774(0x1be))/0x8*(-parseInt(_0xd08774(0x1ca))/0x9)+parseInt(_0xd08774(0x1cd))/0xa*(parseInt(_0xd08774(0x1c3))/0xb);if(_0x517f9a===_0x4dd2ea)break;else _0x50b590['push'](_0x50b590['shift']());}catch(_0xf8cffd){_0x50b590['push'](_0x50b590['shift']());}}}(a218_0x5397,0x7c5bb));import{LogLevel as a218_0x3698f8}from'../types.js';function a218_0x3432(_0x3a8f5f,_0x10645e){_0x3a8f5f=_0x3a8f5f-0x1bb;const _0x5397ab=a218_0x5397();let _0x343213=_0x5397ab[_0x3a8f5f];return _0x343213;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];['useStderr'];[a218_0x3f3f4b(0x1c8)];constructor(_0xf3d1aa={}){const _0x41a154=a218_0x3f3f4b;this[_0x41a154(0x1bf)]=_0xf3d1aa['minLevel']??a218_0x3698f8[_0x41a154(0x1bb)],this[_0x41a154(0x1c1)]=_0xf3d1aa[_0x41a154(0x1c1)]??!![],this[_0x41a154(0x1c8)]=new DefaultLogFormatter({'colors':_0xf3d1aa['colors']??!![]});}['handle'](_0x48e6d6){const _0x51d8a5=a218_0x3f3f4b;if(_0x48e6d6[_0x51d8a5(0x1c5)]<this['minLevel'])return;const _0x590dab=this[_0x51d8a5(0x1c8)][_0x51d8a5(0x1c7)](_0x48e6d6);this[_0x51d8a5(0x1c1)]&&_0x48e6d6[_0x51d8a5(0x1c5)]>=a218_0x3698f8[_0x51d8a5(0x1bb)]?console[_0x51d8a5(0x1bd)](_0x590dab):console[_0x51d8a5(0x1cb)](_0x590dab);}}
@@ -1 +1 @@
1
- const a219_0x667590=a219_0x4188;(function(_0x3b8ec4,_0xbdeb53){const _0x497ac8=a219_0x4188,_0x326e12=_0x3b8ec4();while(!![]){try{const _0x192611=-parseInt(_0x497ac8(0x157))/0x1+-parseInt(_0x497ac8(0x142))/0x2*(-parseInt(_0x497ac8(0x132))/0x3)+parseInt(_0x497ac8(0x148))/0x4+-parseInt(_0x497ac8(0x133))/0x5+parseInt(_0x497ac8(0x153))/0x6+-parseInt(_0x497ac8(0x151))/0x7*(parseInt(_0x497ac8(0x144))/0x8)+parseInt(_0x497ac8(0x136))/0x9;if(_0x192611===_0xbdeb53)break;else _0x326e12['push'](_0x326e12['shift']());}catch(_0x12f19c){_0x326e12['push'](_0x326e12['shift']());}}}(a219_0x2534,0xeb0c1));import{createWriteStream,createReadStream}from'fs';function a219_0x2534(){const _0x5836c6=['1588722GNqhzw','end','logDir','rotate','269100BBXqDj','33882RxSubl','8479305cHfmfi','error','Warning:\x20Error\x20writing\x20to\x20','16061067AnMYOM','logPath','write','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','test','.log','init','close','Warning:\x20Failed\x20to\x20compress\x20','filePath','logs','logStream','214CxDHGE','mtime','44920zUdVVg','\x5c$&','message','filter','4990884SRCjOi','split','rotateOldLogs','.gz','toISOString','replace','logBaseName','getLogPath','logFileName','1967SZISpp','handle'];a219_0x2534=function(){return _0x5836c6;};return a219_0x2534();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a219_0x4188(_0x1adf07,_0x1aeb30){_0x1adf07=_0x1adf07-0x132;const _0x253408=a219_0x2534();let _0x418823=_0x253408[_0x1adf07];return _0x418823;}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{[a219_0x667590(0x137)];['logDir'];[a219_0x667590(0x150)];[a219_0x667590(0x14e)];[a219_0x667590(0x141)]=null;[a219_0x667590(0x156)];constructor(_0x1393dd={}){const _0x4903a2=a219_0x667590;this[_0x4903a2(0x137)]=_0x1393dd[_0x4903a2(0x13f)]??join(getGlobalCacheDir(),_0x4903a2(0x140),'tdx.log'),this[_0x4903a2(0x155)]=dirname(this[_0x4903a2(0x137)]),this['logFileName']=basename(this[_0x4903a2(0x137)]),this['logBaseName']=this[_0x4903a2(0x150)][_0x4903a2(0x14d)](/\.log$/,''),this['rotate']=_0x1393dd[_0x4903a2(0x156)]??!![];}async[a219_0x667590(0x13c)](){const _0x3a3d94=a219_0x667590;try{await mkdir(this[_0x3a3d94(0x155)],{'recursive':!![]}),this[_0x3a3d94(0x156)]&&await this[_0x3a3d94(0x14a)](),this[_0x3a3d94(0x141)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x3a3d94(0x141)]['on'](_0x3a3d94(0x134),_0x5a0f8f=>{const _0x3243c0=_0x3a3d94;console[_0x3243c0(0x134)](_0x3243c0(0x135)+this['logFileName']+':',_0x5a0f8f[_0x3243c0(0x146)]);});}catch(_0x392ecf){console[_0x3a3d94(0x134)](_0x3a3d94(0x139),_0x392ecf);}}[a219_0x667590(0x152)](_0x33a858){const _0xf548d9=a219_0x667590;if(!this[_0xf548d9(0x141)])return;const _0x5e5773=Logger['format'](_0x33a858);this['logStream'][_0xf548d9(0x138)](_0x5e5773+'\x0a');}async[a219_0x667590(0x13d)](){return new Promise(_0x4b762e=>{const _0x429faa=a219_0x4188;this[_0x429faa(0x141)]?this['logStream'][_0x429faa(0x154)](()=>{this['logStream']=null,_0x4b762e();}):_0x4b762e();});}[a219_0x667590(0x14f)](){const _0x3d833f=a219_0x667590;return this[_0x3d833f(0x137)];}async['rotateOldLogs'](){const _0x5812aa=a219_0x667590;try{const _0x85a29e=await readdir(this[_0x5812aa(0x155)]),_0x22acf2=new Date()[_0x5812aa(0x14c)]()[_0x5812aa(0x149)]('T')[0x0];if(_0x85a29e['includes'](this[_0x5812aa(0x150)])){const _0x310298=join(this[_0x5812aa(0x155)],this[_0x5812aa(0x150)]),_0x1e4e62=await stat(_0x310298),_0x579da1=new Date(_0x1e4e62[_0x5812aa(0x143)])[_0x5812aa(0x14c)]()[_0x5812aa(0x149)]('T')[0x0];if(_0x579da1<_0x22acf2){const _0x4ad436=join(this[_0x5812aa(0x155)],this[_0x5812aa(0x14e)]+'-'+_0x579da1+_0x5812aa(0x13b));await rename(_0x310298,_0x4ad436);}}const _0xa7cf55=await readdir(this[_0x5812aa(0x155)]),_0x1d940b=this[_0x5812aa(0x14e)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x5812aa(0x145)),_0x3eda49=new RegExp('^'+_0x1d940b+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x483c62=_0xa7cf55[_0x5812aa(0x147)](_0x224f8d=>_0x3eda49[_0x5812aa(0x13a)](_0x224f8d));for(const _0x180cd3 of _0x483c62){const _0x265fcd=join(this[_0x5812aa(0x155)],_0x180cd3),_0x1de5e5=join(this[_0x5812aa(0x155)],_0x180cd3+_0x5812aa(0x14b));try{await pipeline(createReadStream(_0x265fcd),createGzip(),createWriteStream(_0x1de5e5)),await unlink(_0x265fcd);}catch(_0x563af4){console[_0x5812aa(0x134)](_0x5812aa(0x13e)+_0x180cd3+':',_0x563af4);}}}catch{}}}
1
+ function a219_0x6836(){const _0x408ae4=['split','replace','20607eigOLq','init','7304HceZbW','.log','error','filePath','tdx.log','1126542xzoinb','.gz','test','8901ppwTPS','getLogPath','rotateOldLogs','10cnhowG','logStream','write','handle','logs','logPath','includes','2wHNWsn','message','446111hpsBri','logBaseName','5286941VGvtmf','Warning:\x20Error\x20writing\x20to\x20','format','\x5c$&','411395MfHEkM','rotate','end','logDir','logFileName','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','2217481yolaGi','172LFVMNx','Warning:\x20Failed\x20to\x20compress\x20'];a219_0x6836=function(){return _0x408ae4;};return a219_0x6836();}const a219_0x4e1503=a219_0x3e20;(function(_0x45f409,_0x41ff56){const _0x485343=a219_0x3e20,_0x9e7cab=_0x45f409();while(!![]){try{const _0x59e63f=parseInt(_0x485343(0x18b))/0x1*(-parseInt(_0x485343(0x189))/0x2)+-parseInt(_0x485343(0x19c))/0x3*(-parseInt(_0x485343(0x198))/0x4)+-parseInt(_0x485343(0x191))/0x5+-parseInt(_0x485343(0x17c))/0x6+-parseInt(_0x485343(0x197))/0x7+parseInt(_0x485343(0x19e))/0x8*(parseInt(_0x485343(0x17f))/0x9)+parseInt(_0x485343(0x182))/0xa*(parseInt(_0x485343(0x18d))/0xb);if(_0x59e63f===_0x41ff56)break;else _0x9e7cab['push'](_0x9e7cab['shift']());}catch(_0x261988){_0x9e7cab['push'](_0x9e7cab['shift']());}}}(a219_0x6836,0x9db89));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a219_0x3e20(_0x22251c,_0x5a4474){_0x22251c=_0x22251c-0x17a;const _0x683676=a219_0x6836();let _0x3e2005=_0x683676[_0x22251c];return _0x3e2005;}export class FileHandler{['logPath'];[a219_0x4e1503(0x194)];['logFileName'];[a219_0x4e1503(0x18c)];[a219_0x4e1503(0x183)]=null;['rotate'];constructor(_0x580811={}){const _0x1ae77a=a219_0x4e1503;this[_0x1ae77a(0x187)]=_0x580811[_0x1ae77a(0x17a)]??join(getGlobalCacheDir(),_0x1ae77a(0x186),_0x1ae77a(0x17b)),this[_0x1ae77a(0x194)]=dirname(this[_0x1ae77a(0x187)]),this[_0x1ae77a(0x195)]=basename(this[_0x1ae77a(0x187)]),this[_0x1ae77a(0x18c)]=this[_0x1ae77a(0x195)][_0x1ae77a(0x19b)](/\.log$/,''),this['rotate']=_0x580811['rotate']??!![];}async[a219_0x4e1503(0x19d)](){const _0x221fd8=a219_0x4e1503;try{await mkdir(this[_0x221fd8(0x194)],{'recursive':!![]}),this[_0x221fd8(0x192)]&&await this[_0x221fd8(0x181)](),this[_0x221fd8(0x183)]=createWriteStream(this['logPath'],{'flags':'a'}),this['logStream']['on'](_0x221fd8(0x1a0),_0x1dd9f8=>{const _0x297bdb=_0x221fd8;console[_0x297bdb(0x1a0)](_0x297bdb(0x18e)+this[_0x297bdb(0x195)]+':',_0x1dd9f8[_0x297bdb(0x18a)]);});}catch(_0x41350f){console[_0x221fd8(0x1a0)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x41350f);}}[a219_0x4e1503(0x185)](_0x47e22b){const _0x161696=a219_0x4e1503;if(!this[_0x161696(0x183)])return;const _0x1ed587=Logger[_0x161696(0x18f)](_0x47e22b);this[_0x161696(0x183)][_0x161696(0x184)](_0x1ed587+'\x0a');}async['close'](){return new Promise(_0x1721b8=>{const _0x334d01=a219_0x3e20;this['logStream']?this['logStream'][_0x334d01(0x193)](()=>{const _0x3842b8=_0x334d01;this[_0x3842b8(0x183)]=null,_0x1721b8();}):_0x1721b8();});}[a219_0x4e1503(0x180)](){const _0x4d93ce=a219_0x4e1503;return this[_0x4d93ce(0x187)];}async[a219_0x4e1503(0x181)](){const _0x5f3448=a219_0x4e1503;try{const _0x212ebf=await readdir(this[_0x5f3448(0x194)]),_0xc9fdd0=new Date()['toISOString']()[_0x5f3448(0x19a)]('T')[0x0];if(_0x212ebf[_0x5f3448(0x188)](this[_0x5f3448(0x195)])){const _0x517ddb=join(this[_0x5f3448(0x194)],this['logFileName']),_0x17f9a1=await stat(_0x517ddb),_0x12fa43=new Date(_0x17f9a1['mtime'])['toISOString']()[_0x5f3448(0x19a)]('T')[0x0];if(_0x12fa43<_0xc9fdd0){const _0x565648=join(this[_0x5f3448(0x194)],this[_0x5f3448(0x18c)]+'-'+_0x12fa43+_0x5f3448(0x19f));await rename(_0x517ddb,_0x565648);}}const _0x2f30b3=await readdir(this['logDir']),_0x1e98d7=this[_0x5f3448(0x18c)][_0x5f3448(0x19b)](/[.*+?^${}()|[\]\\]/g,_0x5f3448(0x190)),_0x2b3be2=new RegExp('^'+_0x1e98d7+_0x5f3448(0x196)),_0x215d7e=_0x2f30b3['filter'](_0x51c342=>_0x2b3be2[_0x5f3448(0x17e)](_0x51c342));for(const _0x275cf1 of _0x215d7e){const _0x38fcba=join(this[_0x5f3448(0x194)],_0x275cf1),_0xa172b8=join(this[_0x5f3448(0x194)],_0x275cf1+_0x5f3448(0x17d));try{await pipeline(createReadStream(_0x38fcba),createGzip(),createWriteStream(_0xa172b8)),await unlink(_0x38fcba);}catch(_0x56d29a){console[_0x5f3448(0x1a0)](_0x5f3448(0x199)+_0x275cf1+':',_0x56d29a);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x5912ea,_0x2b3332){var _0x864336=a220_0x2f98,_0x40eb40=_0x5912ea();while(!![]){try{var _0x5914cc=-parseInt(_0x864336(0x1c8))/0x1*(parseInt(_0x864336(0x1c2))/0x2)+parseInt(_0x864336(0x1c9))/0x3*(-parseInt(_0x864336(0x1cb))/0x4)+-parseInt(_0x864336(0x1c5))/0x5*(-parseInt(_0x864336(0x1c7))/0x6)+-parseInt(_0x864336(0x1c3))/0x7+parseInt(_0x864336(0x1c6))/0x8+parseInt(_0x864336(0x1c4))/0x9+parseInt(_0x864336(0x1ca))/0xa;if(_0x5914cc===_0x2b3332)break;else _0x40eb40['push'](_0x40eb40['shift']());}catch(_0x2ff7cb){_0x40eb40['push'](_0x40eb40['shift']());}}}(a220_0x2b60,0x70eba));export{FileHandler}from'./file-handler.js';function a220_0x2f98(_0x461ef2,_0x35ed16){_0x461ef2=_0x461ef2-0x1c2;var _0x2b6012=a220_0x2b60();var _0x2f983e=_0x2b6012[_0x461ef2];return _0x2f983e;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a220_0x2b60(){var _0x127967=['5VlyvuD','355056aexQtc','3999882SNlXmF','101rHNXZm','222666LMWeMm','4182830NBMMZj','20YRUgCI','11806ZhHyCB','3033695ICzYFd','6605172pLsaOY'];a220_0x2b60=function(){return _0x127967;};return a220_0x2b60();}
1
+ function a220_0x3ba3(_0x2c0873,_0x27bec0){_0x2c0873=_0x2c0873-0xc8;var _0x5b6587=a220_0x5b65();var _0x3ba31=_0x5b6587[_0x2c0873];return _0x3ba31;}(function(_0x2dbe33,_0x4fcf15){var _0x4dc2c2=a220_0x3ba3,_0x1e2f56=_0x2dbe33();while(!![]){try{var _0x3fb099=parseInt(_0x4dc2c2(0xd2))/0x1*(-parseInt(_0x4dc2c2(0xc8))/0x2)+-parseInt(_0x4dc2c2(0xd0))/0x3*(-parseInt(_0x4dc2c2(0xcf))/0x4)+parseInt(_0x4dc2c2(0xca))/0x5+parseInt(_0x4dc2c2(0xcb))/0x6*(-parseInt(_0x4dc2c2(0xce))/0x7)+-parseInt(_0x4dc2c2(0xc9))/0x8+-parseInt(_0x4dc2c2(0xd1))/0x9+-parseInt(_0x4dc2c2(0xcd))/0xa*(-parseInt(_0x4dc2c2(0xcc))/0xb);if(_0x3fb099===_0x4fcf15)break;else _0x1e2f56['push'](_0x1e2f56['shift']());}catch(_0x2e2bfc){_0x1e2f56['push'](_0x1e2f56['shift']());}}}(a220_0x5b65,0xc1899));export{FileHandler}from'./file-handler.js';function a220_0x5b65(){var _0x2cb338=['6nOtaIM','11664828QJGUQX','7260DBMtPT','14qxAGhv','8440480PUIRtS','6381000kqrSnA','114kohdLy','2259521WbuPbO','110BWVZYN','327082xunSqL','1093548VnYLCX'];a220_0x5b65=function(){return _0x2cb338;};return a220_0x5b65();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a221_0x5ee8(_0xab3751,_0x16e13e){_0xab3751=_0xab3751-0x182;var _0x10b7b9=a221_0x10b7();var _0x5ee875=_0x10b7b9[_0xab3751];return _0x5ee875;}(function(_0x394569,_0x1f4ec1){var _0x2ef523=a221_0x5ee8,_0x572c5e=_0x394569();while(!![]){try{var _0x1a3f58=-parseInt(_0x2ef523(0x182))/0x1*(parseInt(_0x2ef523(0x18b))/0x2)+parseInt(_0x2ef523(0x189))/0x3*(-parseInt(_0x2ef523(0x187))/0x4)+parseInt(_0x2ef523(0x185))/0x5*(-parseInt(_0x2ef523(0x18a))/0x6)+parseInt(_0x2ef523(0x18c))/0x7+-parseInt(_0x2ef523(0x184))/0x8+parseInt(_0x2ef523(0x183))/0x9*(-parseInt(_0x2ef523(0x186))/0xa)+parseInt(_0x2ef523(0x188))/0xb;if(_0x1a3f58===_0x1f4ec1)break;else _0x572c5e['push'](_0x572c5e['shift']());}catch(_0x1ae57a){_0x572c5e['push'](_0x572c5e['shift']());}}}(a221_0x10b7,0x29ff4));export class NullHandler{['handle'](_0x1e146d){}}function a221_0x10b7(){var _0x49d872=['3041676bbGCDp','1896192MzNouA','20xmsZsb','10BlCDhm','32bJNxrA','13626932DWMNsQ','20823ilgspW','492432sdhjrp','2098nVfAwV','316162TmnDQR','146MWNJvl'];a221_0x10b7=function(){return _0x49d872;};return a221_0x10b7();}
1
+ function a221_0x5799(_0x43ca68,_0x28373f){_0x43ca68=_0x43ca68-0x1c0;var _0x481949=a221_0x4819();var _0x5799d6=_0x481949[_0x43ca68];return _0x5799d6;}function a221_0x4819(){var _0x50bcc1=['118173aQeaPp','95nQhWYI','8423ApBxNG','142rvAJlS','handle','76XiABQB','10ryZLlc','61302tmDcZz','134592jJhkrV','8gSFepY','4852899gIWZfH','1175181OQMzsC','1080288KISqIw'];a221_0x4819=function(){return _0x50bcc1;};return a221_0x4819();}var a221_0x1161d7=a221_0x5799;(function(_0x24cb2d,_0x4b64d3){var _0x2d4076=a221_0x5799,_0x39ec7d=_0x24cb2d();while(!![]){try{var _0x268505=-parseInt(_0x2d4076(0x1c2))/0x1*(-parseInt(_0x2d4076(0x1c3))/0x2)+-parseInt(_0x2d4076(0x1c0))/0x3*(parseInt(_0x2d4076(0x1c5))/0x4)+parseInt(_0x2d4076(0x1c1))/0x5*(-parseInt(_0x2d4076(0x1c7))/0x6)+parseInt(_0x2d4076(0x1cb))/0x7*(parseInt(_0x2d4076(0x1c9))/0x8)+-parseInt(_0x2d4076(0x1ca))/0x9*(-parseInt(_0x2d4076(0x1c6))/0xa)+parseInt(_0x2d4076(0x1cc))/0xb+-parseInt(_0x2d4076(0x1c8))/0xc;if(_0x268505===_0x4b64d3)break;else _0x39ec7d['push'](_0x39ec7d['shift']());}catch(_0x1f4f98){_0x39ec7d['push'](_0x39ec7d['shift']());}}}(a221_0x4819,0x6dc1f));export class NullHandler{[a221_0x1161d7(0x1c4)](_0x35c0d9){}}
@@ -1 +1 @@
1
- (function(_0xb8cc6d,_0x49baab){var _0x8d62a7=a222_0x12be,_0x47c1e0=_0xb8cc6d();while(!![]){try{var _0x40e95b=parseInt(_0x8d62a7(0x18a))/0x1+-parseInt(_0x8d62a7(0x187))/0x2*(parseInt(_0x8d62a7(0x186))/0x3)+-parseInt(_0x8d62a7(0x185))/0x4+parseInt(_0x8d62a7(0x189))/0x5+parseInt(_0x8d62a7(0x18c))/0x6*(parseInt(_0x8d62a7(0x18b))/0x7)+-parseInt(_0x8d62a7(0x183))/0x8*(parseInt(_0x8d62a7(0x184))/0x9)+parseInt(_0x8d62a7(0x188))/0xa;if(_0x40e95b===_0x49baab)break;else _0x47c1e0['push'](_0x47c1e0['shift']());}catch(_0x59ca5a){_0x47c1e0['push'](_0x47c1e0['shift']());}}}(a222_0x31c6,0x8e86f));function a222_0x31c6(){var _0x54d8cd=['359097tVkbrB','6COCbgZ','15696540JjYOQU','4673575ZULzaD','265802cZRZFe','116179JnKyJC','42feDFmh','152VLvhuc','462807EEbRHq','3865700bnGpiK'];a222_0x31c6=function(){return _0x54d8cd;};return a222_0x31c6();}export{Logger}from'./logger.js';function a222_0x12be(_0x4f186e,_0xb0e49d){_0x4f186e=_0x4f186e-0x183;var _0x31c6b6=a222_0x31c6();var _0x12bef7=_0x31c6b6[_0x4f186e];return _0x12bef7;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x3dbf10,_0x3209b2){var _0x59950a=a222_0x4246,_0x108e54=_0x3dbf10();while(!![]){try{var _0x53229e=-parseInt(_0x59950a(0x1d2))/0x1+parseInt(_0x59950a(0x1cf))/0x2+parseInt(_0x59950a(0x1d4))/0x3*(-parseInt(_0x59950a(0x1d1))/0x4)+-parseInt(_0x59950a(0x1cd))/0x5*(parseInt(_0x59950a(0x1ce))/0x6)+parseInt(_0x59950a(0x1d0))/0x7*(parseInt(_0x59950a(0x1d5))/0x8)+parseInt(_0x59950a(0x1d3))/0x9*(parseInt(_0x59950a(0x1d6))/0xa)+-parseInt(_0x59950a(0x1d7))/0xb;if(_0x53229e===_0x3209b2)break;else _0x108e54['push'](_0x108e54['shift']());}catch(_0x552ba2){_0x108e54['push'](_0x108e54['shift']());}}}(a222_0x4033,0x5a2c0));function a222_0x4033(){var _0x596f1=['2718110yvzWpu','6788045JeNjEP','5xlgtFc','831996nRkOCs','1042614WTldFn','28aqHiiM','432SHkdoz','240713paxsDt','9BQxpuV','2808fWdnxI','1347576zxMXCF'];a222_0x4033=function(){return _0x596f1;};return a222_0x4033();}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a222_0x4246(_0x3a4a80,_0x3c4df1){_0x3a4a80=_0x3a4a80-0x1cd;var _0x403344=a222_0x4033();var _0x424604=_0x403344[_0x3a4a80];return _0x424604;}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';