@treasuredata/tdx 0.29.1 → 0.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/delivery-command.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-campaign-pull-command.js +1 -1
  20. package/dist/commands/engage-campaign-push-command.js +1 -1
  21. package/dist/commands/engage-campaign-validate-command.js +1 -1
  22. package/dist/commands/engage-command.js +1 -1
  23. package/dist/commands/job-command.js +1 -1
  24. package/dist/commands/journey-command.js +1 -1
  25. package/dist/commands/journey-validate-command.js +1 -1
  26. package/dist/commands/llm-command.js +1 -1
  27. package/dist/commands/mcp-command.js +1 -1
  28. package/dist/commands/parent-segment-command.js +1 -1
  29. package/dist/commands/profile-command.js +1 -1
  30. package/dist/commands/profiles-command.js +1 -1
  31. package/dist/commands/query-command.js +1 -1
  32. package/dist/commands/schedule-command.js +1 -1
  33. package/dist/commands/segment-command.js +1 -1
  34. package/dist/commands/segment-create-command.js +1 -1
  35. package/dist/commands/segment-fields-command.js +1 -1
  36. package/dist/commands/segment-pull-command.js +1 -1
  37. package/dist/commands/segment-push-command.js +1 -1
  38. package/dist/commands/segment-update-command.js +1 -1
  39. package/dist/commands/segment-use-command.js +1 -1
  40. package/dist/commands/segment-validate-command.js +1 -1
  41. package/dist/commands/segments.js +1 -1
  42. package/dist/commands/show.js +1 -1
  43. package/dist/commands/status-command.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/unset-command.js +1 -1
  46. package/dist/commands/upgrade-command.js +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/user-command.js +1 -1
  49. package/dist/commands/workflow-command.js +1 -1
  50. package/dist/core/auth.js +1 -1
  51. package/dist/core/command-output.js +1 -1
  52. package/dist/core/config.js +1 -1
  53. package/dist/core/connection-cache.js +1 -1
  54. package/dist/core/constants.js +1 -1
  55. package/dist/core/credential-cache.js +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/keychain.js +1 -1
  58. package/dist/core/profile.js +1 -1
  59. package/dist/core/project-config.js +1 -1
  60. package/dist/core/session.js +1 -1
  61. package/dist/core/user-cache.js +1 -1
  62. package/dist/core/version.js +1 -1
  63. package/dist/index.js +1 -1
  64. package/dist/mcp/server.js +1 -1
  65. package/dist/mcp/tools/index.js +1 -1
  66. package/dist/mcp/tools/tdx-run.js +1 -1
  67. package/dist/mcp/tools/tdx-search.js +1 -1
  68. package/dist/mcp/utils.js +1 -1
  69. package/dist/proxy/claude-usage-tracker.js +1 -1
  70. package/dist/proxy/passthrough-server.js +1 -1
  71. package/dist/proxy/sse-usage-parser.js +1 -1
  72. package/dist/sdk/agent/agent-config.js +1 -1
  73. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  74. package/dist/sdk/agent/agent-yaml.js +1 -1
  75. package/dist/sdk/agent/test/evaluator.js +1 -1
  76. package/dist/sdk/agent/test/executor.js +1 -1
  77. package/dist/sdk/agent/test/index.js +1 -1
  78. package/dist/sdk/agent/test/output.js +1 -1
  79. package/dist/sdk/agent/test/parser.js +1 -1
  80. package/dist/sdk/agent/tool-target-registry.js +1 -1
  81. package/dist/sdk/api.js +1 -1
  82. package/dist/sdk/client/cdp-api-client.js +1 -1
  83. package/dist/sdk/client/delivery-api-client.js +1 -1
  84. package/dist/sdk/client/endpoints.js +1 -1
  85. package/dist/sdk/client/engage-api-client.js +1 -1
  86. package/dist/sdk/client/http-client.js +1 -1
  87. package/dist/sdk/client/llm-api-client.js +1 -1
  88. package/dist/sdk/client/rate-limiter.js +1 -1
  89. package/dist/sdk/client/td-api-client.js +1 -1
  90. package/dist/sdk/client/trino-api-client.js +1 -1
  91. package/dist/sdk/client/workflow-client.js +1 -1
  92. package/dist/sdk/connection-validator.js +1 -1
  93. package/dist/sdk/connection.js +1 -1
  94. package/dist/sdk/delivery.js +1 -1
  95. package/dist/sdk/engage/campaign-pull.js +1 -1
  96. package/dist/sdk/engage/campaign-push.js +1 -1
  97. package/dist/sdk/engage/campaign-validator.js +1 -1
  98. package/dist/sdk/engage/campaign-yaml.js +1 -1
  99. package/dist/sdk/engage/types/campaign-def.js +1 -1
  100. package/dist/sdk/engage/types/campaign-schema.d.ts +1 -2
  101. package/dist/sdk/engage/types/campaign-schema.d.ts.map +1 -1
  102. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  103. package/dist/sdk/engage/types/campaign-schema.js.map +1 -1
  104. package/dist/sdk/engage.js +1 -1
  105. package/dist/sdk/errors.js +1 -1
  106. package/dist/sdk/index.js +1 -1
  107. package/dist/sdk/io/index.js +1 -1
  108. package/dist/sdk/io/node-filesystem.js +1 -1
  109. package/dist/sdk/job.js +1 -1
  110. package/dist/sdk/journey.js +1 -1
  111. package/dist/sdk/llm/chat-cache.js +1 -1
  112. package/dist/sdk/llm/index.js +1 -1
  113. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  114. package/dist/sdk/llm/model-factors.js +1 -1
  115. package/dist/sdk/personalization.js +1 -1
  116. package/dist/sdk/query/index.js +1 -1
  117. package/dist/sdk/query/sql-parser.js +1 -1
  118. package/dist/sdk/realtime.js +1 -1
  119. package/dist/sdk/schedule.js +1 -1
  120. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  121. package/dist/sdk/segment/fields-display.js +1 -1
  122. package/dist/sdk/segment/file-discovery.js +1 -1
  123. package/dist/sdk/segment/journey-utils.js +1 -1
  124. package/dist/sdk/segment/journey-validator.d.ts +13 -6
  125. package/dist/sdk/segment/journey-validator.d.ts.map +1 -1
  126. package/dist/sdk/segment/journey-validator.js +1 -1
  127. package/dist/sdk/segment/journey-validator.js.map +1 -1
  128. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  129. package/dist/sdk/segment/journey-yaml.js +1 -1
  130. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  131. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  132. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  133. package/dist/sdk/segment/pull-workflow.js +1 -1
  134. package/dist/sdk/segment/push-recovery.js +1 -1
  135. package/dist/sdk/segment/push-workflow.js +1 -1
  136. package/dist/sdk/segment/push-workflow.js.map +1 -1
  137. package/dist/sdk/segment/resolution-context.js +1 -1
  138. package/dist/sdk/segment/segment-path-parser.js +1 -1
  139. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  140. package/dist/sdk/segment/segment-validator.d.ts.map +1 -1
  141. package/dist/sdk/segment/segment-validator.js +1 -1
  142. package/dist/sdk/segment/segment-validator.js.map +1 -1
  143. package/dist/sdk/segment/target-resolution.js +1 -1
  144. package/dist/sdk/segment/tdx-config.js +1 -1
  145. package/dist/sdk/segment/types/activation-schema.d.ts +184 -0
  146. package/dist/sdk/segment/types/activation-schema.d.ts.map +1 -0
  147. package/dist/sdk/segment/types/activation-schema.js +1 -0
  148. package/dist/sdk/segment/types/activation-schema.js.map +1 -0
  149. package/dist/sdk/segment/types/journey-def.d.ts +5 -0
  150. package/dist/sdk/segment/types/journey-def.d.ts.map +1 -1
  151. package/dist/sdk/segment/types/journey-def.js +1 -1
  152. package/dist/sdk/segment/types/journey-def.js.map +1 -1
  153. package/dist/sdk/segment/types/journey-schema.d.ts +419 -0
  154. package/dist/sdk/segment/types/journey-schema.d.ts.map +1 -0
  155. package/dist/sdk/segment/types/journey-schema.js +1 -0
  156. package/dist/sdk/segment/types/journey-schema.js.map +1 -0
  157. package/dist/sdk/segment/types/segment-def.d.ts +4 -87
  158. package/dist/sdk/segment/types/segment-def.d.ts.map +1 -1
  159. package/dist/sdk/segment/types/segment-def.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js.map +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/validate-files.js.map +1 -1
  164. package/dist/sdk/segment/yaml-validator.d.ts +14 -1
  165. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  166. package/dist/sdk/segment/yaml-validator.js +1 -1
  167. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  168. package/dist/sdk/segment.js +1 -1
  169. package/dist/sdk/types/cdp.d.ts +3 -3
  170. package/dist/sdk/types/cdp.d.ts.map +1 -1
  171. package/dist/sdk/types/index.js +1 -1
  172. package/dist/sdk/types/progress.js +1 -1
  173. package/dist/sdk/user.js +1 -1
  174. package/dist/sdk/util/format-detector.js +1 -1
  175. package/dist/sdk/util/formatters.js +1 -1
  176. package/dist/sdk/util/index.js +1 -1
  177. package/dist/sdk/util/tree-formatter.js +1 -1
  178. package/dist/sdk/workflow/archive-validation.js +1 -1
  179. package/dist/sdk/workflow/clone-workflow.js +1 -1
  180. package/dist/sdk/workflow/index.js +1 -1
  181. package/dist/sdk/workflow/pull-workflow.js +1 -1
  182. package/dist/sdk/workflow/push-workflow.js +1 -1
  183. package/dist/sdk/workflow/tdx-config.js +1 -1
  184. package/dist/sdk/workflow/workflow-utils.js +1 -1
  185. package/dist/test-utils/command-runner.js +1 -1
  186. package/dist/test-utils/factories.js +1 -1
  187. package/dist/test-utils/fixtures.js +1 -1
  188. package/dist/test-utils/http-mock.js +1 -1
  189. package/dist/test-utils/index.js +1 -1
  190. package/dist/utils/async.js +1 -1
  191. package/dist/utils/colors.js +1 -1
  192. package/dist/utils/diff.js +1 -1
  193. package/dist/utils/file-permissions.js +1 -1
  194. package/dist/utils/file-reader.js +1 -1
  195. package/dist/utils/global-cache.js +1 -1
  196. package/dist/utils/json-loader.js +1 -1
  197. package/dist/utils/local-cache.js +1 -1
  198. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  199. package/dist/utils/logger/formatters/index.js +1 -1
  200. package/dist/utils/logger/handlers/console-handler.js +1 -1
  201. package/dist/utils/logger/handlers/file-handler.js +1 -1
  202. package/dist/utils/logger/handlers/index.js +1 -1
  203. package/dist/utils/logger/handlers/null-handler.js +1 -1
  204. package/dist/utils/logger/index.js +1 -1
  205. package/dist/utils/logger/logger.js +1 -1
  206. package/dist/utils/logger/types.js +1 -1
  207. package/dist/utils/option-validation.js +1 -1
  208. package/dist/utils/process.js +1 -1
  209. package/dist/utils/prompt.js +1 -1
  210. package/dist/utils/spinner.js +1 -1
  211. package/dist/utils/sse-parser.js +1 -1
  212. package/dist/utils/string-utils.js +1 -1
  213. package/dist/utils/table-ref-parser.js +1 -1
  214. package/dist/utils/tdx-logger.js +1 -1
  215. package/dist/utils/version-check.js +1 -1
  216. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x429d4d,_0x17378e){const _0x498a71=a174_0x28f6,_0x4f927a=_0x429d4d();while(!![]){try{const _0x546ed2=-parseInt(_0x498a71(0xfc))/0x1*(parseInt(_0x498a71(0xe8))/0x2)+parseInt(_0x498a71(0xf2))/0x3+-parseInt(_0x498a71(0xdf))/0x4*(-parseInt(_0x498a71(0x100))/0x5)+-parseInt(_0x498a71(0x104))/0x6*(-parseInt(_0x498a71(0x101))/0x7)+-parseInt(_0x498a71(0xf6))/0x8+-parseInt(_0x498a71(0xf9))/0x9+-parseInt(_0x498a71(0xeb))/0xa*(parseInt(_0x498a71(0xe2))/0xb);if(_0x546ed2===_0x17378e)break;else _0x4f927a['push'](_0x4f927a['shift']());}catch(_0x43a48f){_0x4f927a['push'](_0x4f927a['shift']());}}}(a174_0x47ff,0x9c2c2));import a174_0x4b4d06 from'chalk';export function generateDiff(_0x8cc700,_0xf41b05){const _0x35bb53=a174_0x28f6,_0x28891a=_0x8cc700[_0x35bb53(0xf3)]('\x0a'),_0x45581=_0xf41b05[_0x35bb53(0xf3)]('\x0a'),_0x5c4e18=[],_0x244f63=computeLCS(_0x28891a,_0x45581);let _0x31fc60=0x0,_0x35893c=0x0,_0x3aad8c=0x0;while(_0x31fc60<_0x28891a[_0x35bb53(0xea)]||_0x35893c<_0x45581[_0x35bb53(0xea)]){if(_0x3aad8c<_0x244f63[_0x35bb53(0xea)]&&_0x31fc60<_0x28891a['length']&&_0x28891a[_0x31fc60]===_0x244f63[_0x3aad8c])_0x35893c<_0x45581[_0x35bb53(0xea)]&&_0x45581[_0x35893c]===_0x244f63[_0x3aad8c]?(_0x5c4e18[_0x35bb53(0xe3)]({'type':_0x35bb53(0xf8),'content':_0x28891a[_0x31fc60]}),_0x31fc60++,_0x35893c++,_0x3aad8c++):(_0x5c4e18[_0x35bb53(0xe3)]({'type':_0x35bb53(0xfa),'content':_0x45581[_0x35893c]}),_0x35893c++);else{if(_0x3aad8c<_0x244f63['length']&&_0x35893c<_0x45581['length']&&_0x45581[_0x35893c]===_0x244f63[_0x3aad8c])_0x5c4e18[_0x35bb53(0xe3)]({'type':_0x35bb53(0xe9),'content':_0x28891a[_0x31fc60]}),_0x31fc60++;else{if(_0x31fc60<_0x28891a[_0x35bb53(0xea)]&&(_0x3aad8c>=_0x244f63['length']||_0x28891a[_0x31fc60]!==_0x244f63[_0x3aad8c]))_0x5c4e18[_0x35bb53(0xe3)]({'type':'removed','content':_0x28891a[_0x31fc60]}),_0x31fc60++;else _0x35893c<_0x45581[_0x35bb53(0xea)]&&(_0x5c4e18[_0x35bb53(0xe3)]({'type':_0x35bb53(0xfa),'content':_0x45581[_0x35893c]}),_0x35893c++);}}}return _0x5c4e18;}function a174_0x47ff(){const _0x48364f=['removed','length','14914070hUoanM','join','green','\x20\x20\x20','some','dim','size','777210rESmSd','split','padStart','new','597200RLbyeO','\x20-\x20','unchanged','4409496EjgJpe','added','red','43987KGfpoP','cyan','forEach','content','576105qTNiKd','7atxXpq','unshift','\x20+\x20','7279014wAjCjG','max','old','min','44WKzeOI','fill','type','11PypBzD','push','has','map','add','repeat','2IQaQDH'];a174_0x47ff=function(){return _0x48364f;};return a174_0x47ff();}function computeLCS(_0x190494,_0x2f1c0e){const _0x4152aa=a174_0x28f6,_0x206867=_0x190494['length'],_0x498e98=_0x2f1c0e[_0x4152aa(0xea)],_0x446103=Array(_0x206867+0x1)[_0x4152aa(0xe0)](null)[_0x4152aa(0xe5)](()=>Array(_0x498e98+0x1)['fill'](0x0));for(let _0x28b294=0x1;_0x28b294<=_0x206867;_0x28b294++){for(let _0x5e373b=0x1;_0x5e373b<=_0x498e98;_0x5e373b++){_0x190494[_0x28b294-0x1]===_0x2f1c0e[_0x5e373b-0x1]?_0x446103[_0x28b294][_0x5e373b]=_0x446103[_0x28b294-0x1][_0x5e373b-0x1]+0x1:_0x446103[_0x28b294][_0x5e373b]=Math[_0x4152aa(0x105)](_0x446103[_0x28b294-0x1][_0x5e373b],_0x446103[_0x28b294][_0x5e373b-0x1]);}}const _0x527e44=[];let _0x3841e6=_0x206867,_0x44a884=_0x498e98;while(_0x3841e6>0x0&&_0x44a884>0x0){if(_0x190494[_0x3841e6-0x1]===_0x2f1c0e[_0x44a884-0x1])_0x527e44[_0x4152aa(0x102)](_0x190494[_0x3841e6-0x1]),_0x3841e6--,_0x44a884--;else _0x446103[_0x3841e6-0x1][_0x44a884]>_0x446103[_0x3841e6][_0x44a884-0x1]?_0x3841e6--:_0x44a884--;}return _0x527e44;}export function formatDiffWithColors(_0x478208,_0x29c9c4=0x3){const _0x194e94=a174_0x28f6,_0x541f95=new Set();_0x478208[_0x194e94(0xfe)]((_0x4b9475,_0x1df464)=>{_0x4b9475['type']!=='unchanged'&&_0x541f95['add'](_0x1df464);});if(_0x541f95[_0x194e94(0xf1)]===0x0)return'';const _0x237e31=new Set();for(const _0x1b689e of _0x541f95){for(let _0x22e478=Math[_0x194e94(0x105)](0x0,_0x1b689e-_0x29c9c4);_0x22e478<=Math[_0x194e94(0xde)](_0x478208[_0x194e94(0xea)]-0x1,_0x1b689e+_0x29c9c4);_0x22e478++){_0x237e31[_0x194e94(0xe6)](_0x22e478);}}const _0x5dabc1=[];let _0x56c8bd=-0x1;const _0x552088=_0x478208[_0x194e94(0xea)],_0x2d0e63=Math[_0x194e94(0x105)](0x3,String(_0x552088)[_0x194e94(0xea)]),_0x66d187=[];let _0xf87e55=0x0,_0x5f1f98=0x0;for(const _0x452136 of _0x478208){if(_0x452136[_0x194e94(0xe1)]===_0x194e94(0xe9))_0xf87e55++,_0x66d187[_0x194e94(0xe3)]({'old':_0xf87e55,'new':0x0});else _0x452136[_0x194e94(0xe1)]===_0x194e94(0xfa)?(_0x5f1f98++,_0x66d187[_0x194e94(0xe3)]({'old':0x0,'new':_0x5f1f98})):(_0xf87e55++,_0x5f1f98++,_0x66d187[_0x194e94(0xe3)]({'old':_0xf87e55,'new':_0x5f1f98}));}for(let _0x495857=0x0;_0x495857<_0x478208[_0x194e94(0xea)];_0x495857++){if(!_0x237e31[_0x194e94(0xe4)](_0x495857))continue;_0x56c8bd!==-0x1&&_0x495857>_0x56c8bd+0x1&&_0x5dabc1[_0x194e94(0xe3)](a174_0x4b4d06[_0x194e94(0xfd)]('\x20\x20...'));_0x56c8bd=_0x495857;const _0x549ceb=_0x478208[_0x495857],_0x1b4abc=_0x66d187[_0x495857],_0x348bd8=_0x1b4abc['old']>0x0?String(_0x1b4abc[_0x194e94(0x106)])[_0x194e94(0xf4)](_0x2d0e63):'\x20'['repeat'](_0x2d0e63),_0x4af4d2=_0x1b4abc[_0x194e94(0xf5)]>0x0?String(_0x1b4abc[_0x194e94(0xf5)])[_0x194e94(0xf4)](_0x2d0e63):'\x20'[_0x194e94(0xe7)](_0x2d0e63);switch(_0x549ceb['type']){case _0x194e94(0xe9):_0x5dabc1[_0x194e94(0xe3)](a174_0x4b4d06[_0x194e94(0xfb)](_0x348bd8+'\x20'+_0x4af4d2+_0x194e94(0xf7)+_0x549ceb['content']));break;case _0x194e94(0xfa):_0x5dabc1[_0x194e94(0xe3)](a174_0x4b4d06[_0x194e94(0xed)](_0x348bd8+'\x20'+_0x4af4d2+_0x194e94(0x103)+_0x549ceb[_0x194e94(0xff)]));break;default:_0x5dabc1[_0x194e94(0xe3)](a174_0x4b4d06[_0x194e94(0xf0)](_0x348bd8+'\x20'+_0x4af4d2+_0x194e94(0xee)+_0x549ceb[_0x194e94(0xff)]));break;}}return _0x5dabc1[_0x194e94(0xec)]('\x0a');}function a174_0x28f6(_0x359a88,_0x1c3e75){_0x359a88=_0x359a88-0xde;const _0x47ffc4=a174_0x47ff();let _0x28f699=_0x47ffc4[_0x359a88];return _0x28f699;}export function hasChanges(_0x2eb2f1){const _0x360451=a174_0x28f6;return _0x2eb2f1[_0x360451(0xef)](_0x374b41=>_0x374b41[_0x360451(0xe1)]!==_0x360451(0xf8));}
1
+ (function(_0x4f6bac,_0xe4dab1){const _0x593da7=a176_0x2fc1,_0x474412=_0x4f6bac();while(!![]){try{const _0xd8fc4c=-parseInt(_0x593da7(0x1e4))/0x1*(parseInt(_0x593da7(0x1e5))/0x2)+-parseInt(_0x593da7(0x1e0))/0x3+parseInt(_0x593da7(0x1f4))/0x4+parseInt(_0x593da7(0x1f6))/0x5*(-parseInt(_0x593da7(0x1d9))/0x6)+-parseInt(_0x593da7(0x1da))/0x7*(-parseInt(_0x593da7(0x1f1))/0x8)+parseInt(_0x593da7(0x1ef))/0x9*(-parseInt(_0x593da7(0x1e3))/0xa)+-parseInt(_0x593da7(0x1ea))/0xb*(-parseInt(_0x593da7(0x1de))/0xc);if(_0xd8fc4c===_0xe4dab1)break;else _0x474412['push'](_0x474412['shift']());}catch(_0x40fc9a){_0x474412['push'](_0x474412['shift']());}}}(a176_0x4f31,0xe3d90));function a176_0x2fc1(_0xcec76,_0x13b30c){_0xcec76=_0xcec76-0x1d9;const _0x4f31f4=a176_0x4f31();let _0x2fc140=_0x4f31f4[_0xcec76];return _0x2fc140;}import a176_0x4d1333 from'chalk';export function generateDiff(_0x18af98,_0x442ec4){const _0x1445e7=a176_0x2fc1,_0x24ab62=_0x18af98[_0x1445e7(0x1e1)]('\x0a'),_0x2c62d0=_0x442ec4[_0x1445e7(0x1e1)]('\x0a'),_0x1be0ae=[],_0x278cff=computeLCS(_0x24ab62,_0x2c62d0);let _0x345dfc=0x0,_0x348be0=0x0,_0x2117d4=0x0;while(_0x345dfc<_0x24ab62['length']||_0x348be0<_0x2c62d0[_0x1445e7(0x1f3)]){if(_0x2117d4<_0x278cff['length']&&_0x345dfc<_0x24ab62[_0x1445e7(0x1f3)]&&_0x24ab62[_0x345dfc]===_0x278cff[_0x2117d4])_0x348be0<_0x2c62d0[_0x1445e7(0x1f3)]&&_0x2c62d0[_0x348be0]===_0x278cff[_0x2117d4]?(_0x1be0ae[_0x1445e7(0x1f7)]({'type':'unchanged','content':_0x24ab62[_0x345dfc]}),_0x345dfc++,_0x348be0++,_0x2117d4++):(_0x1be0ae['push']({'type':_0x1445e7(0x1f0),'content':_0x2c62d0[_0x348be0]}),_0x348be0++);else{if(_0x2117d4<_0x278cff[_0x1445e7(0x1f3)]&&_0x348be0<_0x2c62d0['length']&&_0x2c62d0[_0x348be0]===_0x278cff[_0x2117d4])_0x1be0ae[_0x1445e7(0x1f7)]({'type':_0x1445e7(0x1e7),'content':_0x24ab62[_0x345dfc]}),_0x345dfc++;else{if(_0x345dfc<_0x24ab62['length']&&(_0x2117d4>=_0x278cff[_0x1445e7(0x1f3)]||_0x24ab62[_0x345dfc]!==_0x278cff[_0x2117d4]))_0x1be0ae['push']({'type':'removed','content':_0x24ab62[_0x345dfc]}),_0x345dfc++;else _0x348be0<_0x2c62d0[_0x1445e7(0x1f3)]&&(_0x1be0ae[_0x1445e7(0x1f7)]({'type':_0x1445e7(0x1f0),'content':_0x2c62d0[_0x348be0]}),_0x348be0++);}}}return _0x1be0ae;}function computeLCS(_0x551eb3,_0x22e604){const _0x2321f6=a176_0x2fc1,_0x52dd7d=_0x551eb3[_0x2321f6(0x1f3)],_0xc5eb8c=_0x22e604[_0x2321f6(0x1f3)],_0x37c0f2=Array(_0x52dd7d+0x1)[_0x2321f6(0x1e6)](null)['map'](()=>Array(_0xc5eb8c+0x1)['fill'](0x0));for(let _0x3aece3=0x1;_0x3aece3<=_0x52dd7d;_0x3aece3++){for(let _0x7a519c=0x1;_0x7a519c<=_0xc5eb8c;_0x7a519c++){_0x551eb3[_0x3aece3-0x1]===_0x22e604[_0x7a519c-0x1]?_0x37c0f2[_0x3aece3][_0x7a519c]=_0x37c0f2[_0x3aece3-0x1][_0x7a519c-0x1]+0x1:_0x37c0f2[_0x3aece3][_0x7a519c]=Math['max'](_0x37c0f2[_0x3aece3-0x1][_0x7a519c],_0x37c0f2[_0x3aece3][_0x7a519c-0x1]);}}const _0x226844=[];let _0x3a06e4=_0x52dd7d,_0x145eb4=_0xc5eb8c;while(_0x3a06e4>0x0&&_0x145eb4>0x0){if(_0x551eb3[_0x3a06e4-0x1]===_0x22e604[_0x145eb4-0x1])_0x226844[_0x2321f6(0x1dd)](_0x551eb3[_0x3a06e4-0x1]),_0x3a06e4--,_0x145eb4--;else _0x37c0f2[_0x3a06e4-0x1][_0x145eb4]>_0x37c0f2[_0x3a06e4][_0x145eb4-0x1]?_0x3a06e4--:_0x145eb4--;}return _0x226844;}function a176_0x4f31(){const _0x20e6fe=['padStart','9kJLTec','added','8wUOlwG','has','length','7417012tyBAnL','content','346275lIKJji','push','join','size','old','red','type','96MZFoDU','2247469CwHwVS','repeat','add','unshift','733644TNtGPJ','forEach','3140517igpYGi','split','dim','12191770lqjvNh','1FCnxZH','993702CnZiEe','fill','removed','\x20+\x20','max','473WfpDmM','new','unchanged','green'];a176_0x4f31=function(){return _0x20e6fe;};return a176_0x4f31();}export function formatDiffWithColors(_0x1002cb,_0x13b79c=0x3){const _0xf14030=a176_0x2fc1,_0x55790f=new Set();_0x1002cb[_0xf14030(0x1df)]((_0x2e0760,_0x526c67)=>{const _0x473ec0=_0xf14030;_0x2e0760[_0x473ec0(0x1fc)]!==_0x473ec0(0x1ec)&&_0x55790f[_0x473ec0(0x1dc)](_0x526c67);});if(_0x55790f[_0xf14030(0x1f9)]===0x0)return'';const _0x337675=new Set();for(const _0x3ae4c2 of _0x55790f){for(let _0xf34cfc=Math[_0xf14030(0x1e9)](0x0,_0x3ae4c2-_0x13b79c);_0xf34cfc<=Math['min'](_0x1002cb[_0xf14030(0x1f3)]-0x1,_0x3ae4c2+_0x13b79c);_0xf34cfc++){_0x337675['add'](_0xf34cfc);}}const _0x50f445=[];let _0x5cd1cd=-0x1;const _0x2d8009=_0x1002cb[_0xf14030(0x1f3)],_0x2a6874=Math[_0xf14030(0x1e9)](0x3,String(_0x2d8009)[_0xf14030(0x1f3)]),_0x214eea=[];let _0xf27b15=0x0,_0x508602=0x0;for(const _0x20d223 of _0x1002cb){if(_0x20d223[_0xf14030(0x1fc)]===_0xf14030(0x1e7))_0xf27b15++,_0x214eea['push']({'old':_0xf27b15,'new':0x0});else _0x20d223[_0xf14030(0x1fc)]==='added'?(_0x508602++,_0x214eea[_0xf14030(0x1f7)]({'old':0x0,'new':_0x508602})):(_0xf27b15++,_0x508602++,_0x214eea[_0xf14030(0x1f7)]({'old':_0xf27b15,'new':_0x508602}));}for(let _0x3ecbcf=0x0;_0x3ecbcf<_0x1002cb[_0xf14030(0x1f3)];_0x3ecbcf++){if(!_0x337675[_0xf14030(0x1f2)](_0x3ecbcf))continue;_0x5cd1cd!==-0x1&&_0x3ecbcf>_0x5cd1cd+0x1&&_0x50f445[_0xf14030(0x1f7)](a176_0x4d1333['cyan']('\x20\x20...'));_0x5cd1cd=_0x3ecbcf;const _0x225db3=_0x1002cb[_0x3ecbcf],_0x25b7bd=_0x214eea[_0x3ecbcf],_0x462753=_0x25b7bd['old']>0x0?String(_0x25b7bd[_0xf14030(0x1fa)])['padStart'](_0x2a6874):'\x20'[_0xf14030(0x1db)](_0x2a6874),_0x191588=_0x25b7bd[_0xf14030(0x1eb)]>0x0?String(_0x25b7bd['new'])[_0xf14030(0x1ee)](_0x2a6874):'\x20'['repeat'](_0x2a6874);switch(_0x225db3[_0xf14030(0x1fc)]){case _0xf14030(0x1e7):_0x50f445['push'](a176_0x4d1333[_0xf14030(0x1fb)](_0x462753+'\x20'+_0x191588+'\x20-\x20'+_0x225db3[_0xf14030(0x1f5)]));break;case _0xf14030(0x1f0):_0x50f445['push'](a176_0x4d1333[_0xf14030(0x1ed)](_0x462753+'\x20'+_0x191588+_0xf14030(0x1e8)+_0x225db3['content']));break;default:_0x50f445['push'](a176_0x4d1333[_0xf14030(0x1e2)](_0x462753+'\x20'+_0x191588+'\x20\x20\x20'+_0x225db3['content']));break;}}return _0x50f445[_0xf14030(0x1f8)]('\x0a');}export function hasChanges(_0x2205c6){const _0x19cdcb=a176_0x2fc1;return _0x2205c6['some'](_0x35519e=>_0x35519e[_0x19cdcb(0x1fc)]!==_0x19cdcb(0x1ec));}
@@ -1 +1 @@
1
- (function(_0x2466aa,_0x3a1c8b){const _0x444979=a175_0x1e05,_0x3403be=_0x2466aa();while(!![]){try{const _0x15e6c1=parseInt(_0x444979(0x185))/0x1+-parseInt(_0x444979(0x18f))/0x2+-parseInt(_0x444979(0x191))/0x3*(parseInt(_0x444979(0x187))/0x4)+parseInt(_0x444979(0x18c))/0x5*(-parseInt(_0x444979(0x186))/0x6)+parseInt(_0x444979(0x190))/0x7*(-parseInt(_0x444979(0x188))/0x8)+-parseInt(_0x444979(0x183))/0x9+parseInt(_0x444979(0x192))/0xa*(parseInt(_0x444979(0x193))/0xb);if(_0x15e6c1===_0x3a1c8b)break;else _0x3403be['push'](_0x3403be['shift']());}catch(_0x59bdb4){_0x3403be['push'](_0x3403be['shift']());}}}(a175_0x3b1c,0xa38e0));function a175_0x3b1c(){const _0xbc46ee=['\x20has\x20insecure\x20permissions\x20(','toString','chmodSync',').\x20','3063654tHbLEE','mode','417022OwUiwe','3445572qAytgY','12228NLCeHc','16UCBRxd','statSync','dirname','Warning:\x20','10tYsTSe','mkdirSync','warn','2196234WwmzbX','151683nKsvXa','69YDgSXe','37340RVRGnb','8701ptPNYs','Should\x20be\x200600\x20or\x20more\x20restrictive.','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'];a175_0x3b1c=function(){return _0xbc46ee;};return a175_0x3b1c();}import*as a175_0x139661 from'node:fs';import*as a175_0x15766f from'node:path';export function setSecureFilePermissions(_0x23266a){const _0x52cc76=a175_0x1e05;try{a175_0x139661[_0x52cc76(0x198)](_0x23266a,0x180);}catch{console['warn'](_0x52cc76(0x195)+_0x23266a);}}export function setSecureDirectoryPermissions(_0xe13cd){const _0x2fe98b=a175_0x1e05;try{a175_0x139661[_0x2fe98b(0x198)](_0xe13cd,0x1c0);}catch{console[_0x2fe98b(0x18e)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0xe13cd);}}function a175_0x1e05(_0x4627a4,_0x3ddfea){_0x4627a4=_0x4627a4-0x183;const _0x3b1c93=a175_0x3b1c();let _0x1e0570=_0x3b1c93[_0x4627a4];return _0x1e0570;}export function createSecureDirectory(_0x5dbe3b){const _0x4ed6a5=a175_0x1e05;!a175_0x139661['existsSync'](_0x5dbe3b)&&(a175_0x139661[_0x4ed6a5(0x18d)](_0x5dbe3b,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5dbe3b));}export function validateSecureFilePermissions(_0x1c354e){const _0x2721b1=a175_0x1e05;try{const _0x350f23=a175_0x139661[_0x2721b1(0x189)](_0x1c354e),_0x136d91=_0x350f23[_0x2721b1(0x184)]&0x1ff,_0x43c333=(_0x136d91&0x3f)!==0x0;if(_0x43c333)return console[_0x2721b1(0x18e)](_0x2721b1(0x18b)+_0x1c354e+_0x2721b1(0x196)+_0x136d91[_0x2721b1(0x197)](0x8)+_0x2721b1(0x199)+_0x2721b1(0x194)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2f9157,_0x94a735){const _0x3c1327=a175_0x1e05,_0x394b1f=a175_0x15766f[_0x3c1327(0x18a)](_0x2f9157);createSecureDirectory(_0x394b1f),a175_0x139661['writeFileSync'](_0x2f9157,_0x94a735,{'mode':0x180}),setSecureFilePermissions(_0x2f9157);}
1
+ (function(_0x3c5de5,_0x9db8d3){const _0x32cbe2=a177_0x480e,_0x19ed6c=_0x3c5de5();while(!![]){try{const _0x86bee1=parseInt(_0x32cbe2(0x16d))/0x1+-parseInt(_0x32cbe2(0x167))/0x2*(parseInt(_0x32cbe2(0x16c))/0x3)+-parseInt(_0x32cbe2(0x16f))/0x4*(parseInt(_0x32cbe2(0x170))/0x5)+-parseInt(_0x32cbe2(0x179))/0x6+-parseInt(_0x32cbe2(0x172))/0x7+-parseInt(_0x32cbe2(0x16a))/0x8+parseInt(_0x32cbe2(0x176))/0x9;if(_0x86bee1===_0x9db8d3)break;else _0x19ed6c['push'](_0x19ed6c['shift']());}catch(_0x3fef29){_0x19ed6c['push'](_0x19ed6c['shift']());}}}(a177_0x3178,0x8893d));import*as a177_0x578c9f from'node:fs';import*as a177_0x46c814 from'node:path';function a177_0x480e(_0x9973c6,_0x267465){_0x9973c6=_0x9973c6-0x165;const _0x3178fe=a177_0x3178();let _0x480eff=_0x3178fe[_0x9973c6];return _0x480eff;}function a177_0x3178(){const _0x58c603=['mode','961134nukdkE','chmodSync','dirname','4dboLMX',').\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','4739592jprVyJ','warn','347037FeIqEa','952061GApjdn','writeFileSync','12pIWzrw','1563945jegqhz','toString','2925216aqXOnh','mkdirSync','statSync','Warning:\x20','17528499GzMMoB','\x20has\x20insecure\x20permissions\x20('];a177_0x3178=function(){return _0x58c603;};return a177_0x3178();}export function setSecureFilePermissions(_0x108419){const _0x2df5f6=a177_0x480e;try{a177_0x578c9f['chmodSync'](_0x108419,0x180);}catch{console[_0x2df5f6(0x16b)](_0x2df5f6(0x169)+_0x108419);}}export function setSecureDirectoryPermissions(_0x76d8ab){const _0x48246c=a177_0x480e;try{a177_0x578c9f[_0x48246c(0x165)](_0x76d8ab,0x1c0);}catch{console[_0x48246c(0x16b)](_0x48246c(0x169)+_0x76d8ab);}}export function createSecureDirectory(_0x10c83e){const _0x13de39=a177_0x480e;!a177_0x578c9f['existsSync'](_0x10c83e)&&(a177_0x578c9f[_0x13de39(0x173)](_0x10c83e,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x10c83e));}export function validateSecureFilePermissions(_0x54d5ad){const _0xbafd34=a177_0x480e;try{const _0x1bf8d2=a177_0x578c9f[_0xbafd34(0x174)](_0x54d5ad),_0x45d85a=_0x1bf8d2[_0xbafd34(0x178)]&0x1ff,_0x16776e=(_0x45d85a&0x3f)!==0x0;if(_0x16776e)return console['warn'](_0xbafd34(0x175)+_0x54d5ad+_0xbafd34(0x177)+_0x45d85a[_0xbafd34(0x171)](0x8)+_0xbafd34(0x168)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x7bc79b,_0x27a80d){const _0x5e25fc=a177_0x480e,_0x1505e6=a177_0x46c814[_0x5e25fc(0x166)](_0x7bc79b);createSecureDirectory(_0x1505e6),a177_0x578c9f[_0x5e25fc(0x16e)](_0x7bc79b,_0x27a80d,{'mode':0x180}),setSecureFilePermissions(_0x7bc79b);}
@@ -1 +1 @@
1
- (function(_0x43a47b,_0x38ec30){const _0x166446=a176_0x229b,_0x1f5696=_0x43a47b();while(!![]){try{const _0x3143bd=parseInt(_0x166446(0x115))/0x1*(parseInt(_0x166446(0x129))/0x2)+-parseInt(_0x166446(0x11e))/0x3*(parseInt(_0x166446(0x123))/0x4)+parseInt(_0x166446(0x121))/0x5+-parseInt(_0x166446(0x120))/0x6+parseInt(_0x166446(0x11c))/0x7+-parseInt(_0x166446(0x12a))/0x8*(parseInt(_0x166446(0x11f))/0x9)+parseInt(_0x166446(0x128))/0xa;if(_0x3143bd===_0x38ec30)break;else _0x1f5696['push'](_0x1f5696['shift']());}catch(_0x100a6b){_0x1f5696['push'](_0x1f5696['shift']());}}}(a176_0x1a48,0x29da2));import{readFileSync}from'fs';function a176_0x1a48(){const _0x5dbfbd=['utf-8','INTERNAL','989632FdXxXG','code','23931VlcAgX','1683QzgxoX','2029842RkYKwE','319765xAjfsJ','message','92mRVnTG','PERMISSION_DENIED','NOT_FOUND','EACCES','Error\x20reading\x20file\x20\x27','5933280HgwHJy','6xrBOgJ','10992zJBMQv','50495EOoZVp','ENOENT','\x27\x20not\x20found','\x27:\x20','Permission\x20denied\x20reading\x20file\x20\x27'];a176_0x1a48=function(){return _0x5dbfbd;};return a176_0x1a48();}function a176_0x229b(_0x522f70,_0xfbbfbb){_0x522f70=_0x522f70-0x115;const _0x1a4859=a176_0x1a48();let _0x229bd0=_0x1a4859[_0x522f70];return _0x229bd0;}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x5eafa0){const _0x327fcb=a176_0x229b;try{return readFileSync(_0x5eafa0,_0x327fcb(0x11a));}catch(_0x3a33cb){const _0x144179=_0x3a33cb[_0x327fcb(0x11d)];if(_0x144179===_0x327fcb(0x116))throw new SDKError(ErrorCode[_0x327fcb(0x125)],'File\x20\x27'+_0x5eafa0+_0x327fcb(0x117),_0x3a33cb);else{if(_0x144179===_0x327fcb(0x126))throw new SDKError(ErrorCode[_0x327fcb(0x124)],_0x327fcb(0x119)+_0x5eafa0+'\x27',_0x3a33cb);else throw new SDKError(ErrorCode[_0x327fcb(0x11b)],_0x327fcb(0x127)+_0x5eafa0+_0x327fcb(0x118)+_0x3a33cb[_0x327fcb(0x122)],_0x3a33cb);}}}
1
+ (function(_0x3becbb,_0x52fc98){const _0x31f671=a178_0x5784,_0xbdaca1=_0x3becbb();while(!![]){try{const _0xf9eeb9=parseInt(_0x31f671(0x14e))/0x1*(parseInt(_0x31f671(0x14c))/0x2)+parseInt(_0x31f671(0x148))/0x3*(parseInt(_0x31f671(0x153))/0x4)+parseInt(_0x31f671(0x156))/0x5*(-parseInt(_0x31f671(0x14d))/0x6)+-parseInt(_0x31f671(0x15b))/0x7+parseInt(_0x31f671(0x14a))/0x8+parseInt(_0x31f671(0x158))/0x9*(-parseInt(_0x31f671(0x14b))/0xa)+parseInt(_0x31f671(0x149))/0xb;if(_0xf9eeb9===_0x52fc98)break;else _0xbdaca1['push'](_0xbdaca1['shift']());}catch(_0x3f22f7){_0xbdaca1['push'](_0xbdaca1['shift']());}}}(a178_0x3f74,0x37e03));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a178_0x3f74(){const _0x5f5a31=['9eFYJwu','message','utf-8','1551060FErxrg','code','\x27\x20not\x20found','28761sOvHjN','2661373gtUlus','688392QXNweE','1477570PDfpWN','8QwpOMS','6oHteUF','97333GcrXeS','EACCES','Error\x20reading\x20file\x20\x27','INTERNAL','File\x20\x27','28YTfzQi','PERMISSION_DENIED','\x27:\x20','931145FfemBV','Permission\x20denied\x20reading\x20file\x20\x27'];a178_0x3f74=function(){return _0x5f5a31;};return a178_0x3f74();}function a178_0x5784(_0x4ba80c,_0x3c8bc5){_0x4ba80c=_0x4ba80c-0x146;const _0x3f74be=a178_0x3f74();let _0x5784d2=_0x3f74be[_0x4ba80c];return _0x5784d2;}export function readFileContent(_0xb718a0){const _0x3d3675=a178_0x5784;try{return readFileSync(_0xb718a0,_0x3d3675(0x15a));}catch(_0x5a24a6){const _0x4346ad=_0x5a24a6[_0x3d3675(0x146)];if(_0x4346ad==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x3d3675(0x152)+_0xb718a0+_0x3d3675(0x147),_0x5a24a6);else{if(_0x4346ad===_0x3d3675(0x14f))throw new SDKError(ErrorCode[_0x3d3675(0x154)],_0x3d3675(0x157)+_0xb718a0+'\x27',_0x5a24a6);else throw new SDKError(ErrorCode[_0x3d3675(0x151)],_0x3d3675(0x150)+_0xb718a0+_0x3d3675(0x155)+_0x5a24a6[_0x3d3675(0x159)],_0x5a24a6);}}}
@@ -1 +1 @@
1
- (function(_0x476cca,_0x5cf58d){const _0x394584=a177_0x111d,_0x11492a=_0x476cca();while(!![]){try{const _0x2af4ee=parseInt(_0x394584(0x1f2))/0x1*(-parseInt(_0x394584(0x1f1))/0x2)+parseInt(_0x394584(0x1ed))/0x3+-parseInt(_0x394584(0x203))/0x4*(-parseInt(_0x394584(0x1f8))/0x5)+-parseInt(_0x394584(0x1f4))/0x6*(-parseInt(_0x394584(0x200))/0x7)+-parseInt(_0x394584(0x1ff))/0x8*(parseInt(_0x394584(0x1f6))/0x9)+parseInt(_0x394584(0x1f5))/0xa*(-parseInt(_0x394584(0x1f0))/0xb)+-parseInt(_0x394584(0x1f9))/0xc*(-parseInt(_0x394584(0x1fb))/0xd);if(_0x2af4ee===_0x5cf58d)break;else _0x11492a['push'](_0x11492a['shift']());}catch(_0x5ac27b){_0x11492a['push'](_0x11492a['shift']());}}}(a177_0x2fbf,0x2168e));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x5b6311=a177_0x111d;return process.env.TDX_CACHE_DIR||join(homedir(),_0x5b6311(0x1fe),_0x5b6311(0x201));}function a177_0x111d(_0x4b8adc,_0x3f4996){_0x4b8adc=_0x4b8adc-0x1ed;const _0x2fbfaf=a177_0x2fbf();let _0x111d81=_0x2fbfaf[_0x4b8adc];return _0x111d81;}const registry=new Map();export function registerGlobalCacheKey(_0x5a4c85,_0x36a626){const _0xefc2d9=a177_0x111d,_0x54defe=registry[_0xefc2d9(0x1fc)](_0x5a4c85);if(_0x54defe&&_0x54defe!==_0x36a626)throw new Error(_0xefc2d9(0x1fa)+_0x5a4c85+_0xefc2d9(0x1ee)+_0x54defe+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x36a626+'\x22');registry[_0xefc2d9(0x1f3)](_0x5a4c85,_0x36a626);}function a177_0x2fbf(){const _0x459a83=['tdx','clear','10580hbQVTc','replace','utf-8','682284DzpqVD','\x22\x20already\x20registered\x20by\x20\x22','{profile}','85503SfUKJj','4kTHiEx','127058uArzIc','set','113034ZnpjNQ','30SeWjsG','2583rWGNUY','parse','85QZikws','143700stwBoz','Global\x20cache\x20key\x20\x22','143ZToiON','get','default','.cache','4968uraitL','70qZGwXa'];a177_0x2fbf=function(){return _0x459a83;};return a177_0x2fbf();}export function getGlobalCachePath(_0x3e801b){return join(getGlobalCacheDir(),_0x3e801b);}function ensureGlobalCacheDir(){const _0x51bcf3=getGlobalCacheDir();!existsSync(_0x51bcf3)&&mkdirSync(_0x51bcf3,{'recursive':!![]});}function readCacheJson(_0x15e5e5){const _0x2816dc=a177_0x111d,_0x3d979b=getGlobalCachePath(_0x15e5e5);if(!existsSync(_0x3d979b))return undefined;try{const _0x388230=readFileSync(_0x3d979b,_0x2816dc(0x205));return JSON[_0x2816dc(0x1f7)](_0x388230);}catch{return undefined;}}function writeCacheJson(_0x5bee67,_0x398d68){const _0x2df4d4=a177_0x111d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5bee67),JSON['stringify'](_0x398d68,null,0x2),_0x2df4d4(0x205));}function readCacheText(_0x3becf5){const _0x56037f=a177_0x111d,_0x860c70=getGlobalCachePath(_0x3becf5);if(!existsSync(_0x860c70))return undefined;try{return readFileSync(_0x860c70,_0x56037f(0x205));}catch{return undefined;}}function writeCacheText(_0xf7fa0a,_0xd0f626){const _0x223005=a177_0x111d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xf7fa0a),_0xd0f626,_0x223005(0x205));}function clearCache(_0x460d43){const _0x2c1184=getGlobalCachePath(_0x460d43);if(existsSync(_0x2c1184))try{unlinkSync(_0x2c1184);}catch{}}function cacheExists(_0x3e459b){return existsSync(getGlobalCachePath(_0x3e459b));}export function createGlobalCache(_0x57842b,_0x98fc4c){return registerGlobalCacheKey(_0x57842b,_0x98fc4c),{'read':()=>readCacheJson(_0x57842b),'write':_0x1c617f=>writeCacheJson(_0x57842b,_0x1c617f),'clear':()=>clearCache(_0x57842b),'exists':()=>cacheExists(_0x57842b),'path':()=>getGlobalCachePath(_0x57842b)};}export function createGlobalTextCache(_0x6bfd60,_0x2a6dac){return registerGlobalCacheKey(_0x6bfd60,_0x2a6dac),{'read':()=>readCacheText(_0x6bfd60)?.['trim']()||undefined,'write':_0x20a668=>writeCacheText(_0x6bfd60,_0x20a668),'clear':()=>clearCache(_0x6bfd60),'exists':()=>cacheExists(_0x6bfd60),'path':()=>getGlobalCachePath(_0x6bfd60)};}export function createProfileCache(_0x3b0edf,_0x2ef4ea){const _0x17e705=_0x33ffb0=>{const _0x428c81=a177_0x111d,_0x1354ff=_0x33ffb0||_0x428c81(0x1fd);return _0x3b0edf[_0x428c81(0x204)](_0x428c81(0x1ef),_0x1354ff);};return{'read':_0xe2b953=>{const _0x189457=_0x17e705(_0xe2b953);return registerGlobalCacheKey(_0x189457,_0x2ef4ea),readCacheJson(_0x189457);},'write':(_0x4431da,_0x2c667d)=>{const _0x18fe28=_0x17e705(_0x4431da);registerGlobalCacheKey(_0x18fe28,_0x2ef4ea),writeCacheJson(_0x18fe28,_0x2c667d);},'clear':_0x12d53e=>{const _0xb037cd=_0x17e705(_0x12d53e);clearCache(_0xb037cd);},'exists':_0x5aeec9=>{const _0x4e566e=_0x17e705(_0x5aeec9);return cacheExists(_0x4e566e);},'path':_0x3b6430=>{const _0x18f078=_0x17e705(_0x3b6430);return getGlobalCachePath(_0x18f078);}};}export function createOptionalProfileCache(_0x506c27,_0x555f50,_0x3a776b={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x3a776b,_0x4aaccf=_0x468d0f=>{return _0x468d0f?''+_0x506c27+profileSeparator+_0x468d0f+suffix:''+_0x506c27+suffix;};return{'read':_0x356db9=>{const _0x7d22d4=_0x4aaccf(_0x356db9);return registerGlobalCacheKey(_0x7d22d4,_0x555f50),readCacheJson(_0x7d22d4);},'write':(_0x166433,_0x30b71e)=>{const _0x10e06e=_0x4aaccf(_0x30b71e);registerGlobalCacheKey(_0x10e06e,_0x555f50),writeCacheJson(_0x10e06e,_0x166433);},'clear':_0xb61d06=>{const _0x4d3d63=_0x4aaccf(_0xb61d06);clearCache(_0x4d3d63);},'exists':_0x135c03=>{const _0x41e629=_0x4aaccf(_0x135c03);return cacheExists(_0x41e629);},'path':_0x38b030=>{const _0x58e21e=_0x4aaccf(_0x38b030);return getGlobalCachePath(_0x58e21e);}};}export function clearGlobalRegistry(){const _0x3fbbf5=a177_0x111d;registry[_0x3fbbf5(0x202)]();}
1
+ (function(_0x1bb229,_0xa65a41){const _0x5975d1=a179_0x16df,_0xa04b62=_0x1bb229();while(!![]){try{const _0x119d98=-parseInt(_0x5975d1(0xad))/0x1+parseInt(_0x5975d1(0xaa))/0x2*(-parseInt(_0x5975d1(0xac))/0x3)+parseInt(_0x5975d1(0xa9))/0x4*(-parseInt(_0x5975d1(0xaf))/0x5)+-parseInt(_0x5975d1(0xa1))/0x6*(-parseInt(_0x5975d1(0xa5))/0x7)+-parseInt(_0x5975d1(0xa6))/0x8*(parseInt(_0x5975d1(0xb3))/0x9)+parseInt(_0x5975d1(0xa0))/0xa*(-parseInt(_0x5975d1(0xae))/0xb)+parseInt(_0x5975d1(0xa3))/0xc*(parseInt(_0x5975d1(0xb1))/0xd);if(_0x119d98===_0xa65a41)break;else _0xa04b62['push'](_0xa04b62['shift']());}catch(_0x23d403){_0xa04b62['push'](_0xa04b62['shift']());}}}(a179_0x4cc3,0xee5b1));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a179_0x16df(_0x320029,_0x42f888){_0x320029=_0x320029-0xa0;const _0x4cc354=a179_0x4cc3();let _0x16dfca=_0x4cc354[_0x320029];return _0x16dfca;}import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x4a922a,_0x522229){const _0x58d41e=a179_0x16df,_0x16d542=registry['get'](_0x4a922a);if(_0x16d542&&_0x16d542!==_0x522229)throw new Error('Global\x20cache\x20key\x20\x22'+_0x4a922a+_0x58d41e(0xab)+_0x16d542+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x522229+'\x22');registry[_0x58d41e(0xa2)](_0x4a922a,_0x522229);}export function getGlobalCachePath(_0x31e061){return join(getGlobalCacheDir(),_0x31e061);}function ensureGlobalCacheDir(){const _0x3a2716=getGlobalCacheDir();!existsSync(_0x3a2716)&&mkdirSync(_0x3a2716,{'recursive':!![]});}function readCacheJson(_0x34c718){const _0x25322c=a179_0x16df,_0x33857f=getGlobalCachePath(_0x34c718);if(!existsSync(_0x33857f))return undefined;try{const _0x240e0d=readFileSync(_0x33857f,_0x25322c(0xa8));return JSON['parse'](_0x240e0d);}catch{return undefined;}}function writeCacheJson(_0x4b2e50,_0x2b4aad){const _0xc70e35=a179_0x16df;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4b2e50),JSON[_0xc70e35(0xa7)](_0x2b4aad,null,0x2),_0xc70e35(0xa8));}function readCacheText(_0x438ca8){const _0x2d6326=a179_0x16df,_0x2c13e1=getGlobalCachePath(_0x438ca8);if(!existsSync(_0x2c13e1))return undefined;try{return readFileSync(_0x2c13e1,_0x2d6326(0xa8));}catch{return undefined;}}function writeCacheText(_0xd491c1,_0x47c72f){const _0x1459f7=a179_0x16df;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xd491c1),_0x47c72f,_0x1459f7(0xa8));}function a179_0x4cc3(){const _0x47228a=['{profile}','70vbxhWv','36Sqxpwy','set','39036MXDdKW','clear','2042754GWVmQB','776uvjmFG','stringify','utf-8','4FdJcjv','546148qeokEj','\x22\x20already\x20registered\x20by\x20\x22','6mBkTHj','771722aRECKd','1270874Zfabic','2434165lEUsDJ','trim','8411UUBljD','replace','24669QZZtVD'];a179_0x4cc3=function(){return _0x47228a;};return a179_0x4cc3();}function clearCache(_0x7226fc){const _0x28a508=getGlobalCachePath(_0x7226fc);if(existsSync(_0x28a508))try{unlinkSync(_0x28a508);}catch{}}function cacheExists(_0x2feb7c){return existsSync(getGlobalCachePath(_0x2feb7c));}export function createGlobalCache(_0x5cc625,_0x18812b){return registerGlobalCacheKey(_0x5cc625,_0x18812b),{'read':()=>readCacheJson(_0x5cc625),'write':_0x23b2f4=>writeCacheJson(_0x5cc625,_0x23b2f4),'clear':()=>clearCache(_0x5cc625),'exists':()=>cacheExists(_0x5cc625),'path':()=>getGlobalCachePath(_0x5cc625)};}export function createGlobalTextCache(_0x2fd096,_0x476a3c){const _0x43b8ed=a179_0x16df;return registerGlobalCacheKey(_0x2fd096,_0x476a3c),{'read':()=>readCacheText(_0x2fd096)?.[_0x43b8ed(0xb0)]()||undefined,'write':_0x3be429=>writeCacheText(_0x2fd096,_0x3be429),'clear':()=>clearCache(_0x2fd096),'exists':()=>cacheExists(_0x2fd096),'path':()=>getGlobalCachePath(_0x2fd096)};}export function createProfileCache(_0x58cb18,_0x322dd0){const _0x4bde34=_0xe23ed8=>{const _0x1facad=a179_0x16df,_0x53aaf5=_0xe23ed8||'default';return _0x58cb18[_0x1facad(0xb2)](_0x1facad(0xb4),_0x53aaf5);};return{'read':_0x104cf4=>{const _0xbf3181=_0x4bde34(_0x104cf4);return registerGlobalCacheKey(_0xbf3181,_0x322dd0),readCacheJson(_0xbf3181);},'write':(_0x4fa25d,_0x34771d)=>{const _0x593200=_0x4bde34(_0x4fa25d);registerGlobalCacheKey(_0x593200,_0x322dd0),writeCacheJson(_0x593200,_0x34771d);},'clear':_0x21b98a=>{const _0x551c81=_0x4bde34(_0x21b98a);clearCache(_0x551c81);},'exists':_0x5b6b05=>{const _0x2e779a=_0x4bde34(_0x5b6b05);return cacheExists(_0x2e779a);},'path':_0x9c199f=>{const _0x5c6998=_0x4bde34(_0x9c199f);return getGlobalCachePath(_0x5c6998);}};}export function createOptionalProfileCache(_0x595722,_0xf37aae,_0xf90af0={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0xf90af0,_0x18d665=_0x43b7ec=>{return _0x43b7ec?''+_0x595722+profileSeparator+_0x43b7ec+suffix:''+_0x595722+suffix;};return{'read':_0x1a3901=>{const _0x2405a9=_0x18d665(_0x1a3901);return registerGlobalCacheKey(_0x2405a9,_0xf37aae),readCacheJson(_0x2405a9);},'write':(_0x372b72,_0x588c07)=>{const _0x54f245=_0x18d665(_0x588c07);registerGlobalCacheKey(_0x54f245,_0xf37aae),writeCacheJson(_0x54f245,_0x372b72);},'clear':_0x2063c8=>{const _0x3a5b5b=_0x18d665(_0x2063c8);clearCache(_0x3a5b5b);},'exists':_0x5eaacc=>{const _0x28232d=_0x18d665(_0x5eaacc);return cacheExists(_0x28232d);},'path':_0x50b825=>{const _0x3be3d8=_0x18d665(_0x50b825);return getGlobalCachePath(_0x3be3d8);}};}export function clearGlobalRegistry(){const _0x50cceb=a179_0x16df;registry[_0x50cceb(0xa4)]();}
@@ -1 +1 @@
1
- (function(_0x41d742,_0x5e4a21){const _0x56a321=a178_0xb1b4,_0x2448c0=_0x41d742();while(!![]){try{const _0x2c2aab=parseInt(_0x56a321(0x84))/0x1*(parseInt(_0x56a321(0x7d))/0x2)+-parseInt(_0x56a321(0x8e))/0x3+parseInt(_0x56a321(0x89))/0x4+-parseInt(_0x56a321(0x7e))/0x5+-parseInt(_0x56a321(0x87))/0x6+-parseInt(_0x56a321(0x8d))/0x7+-parseInt(_0x56a321(0x80))/0x8*(-parseInt(_0x56a321(0x86))/0x9);if(_0x2c2aab===_0x5e4a21)break;else _0x2448c0['push'](_0x2448c0['shift']());}catch(_0x37e5a3){_0x2448c0['push'](_0x2448c0['shift']());}}}(a178_0x4fc0,0x81f97));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a178_0xb1b4(_0x4e3c4b,_0x3d2036){_0x4e3c4b=_0x4e3c4b-0x7a;const _0x4fc02c=a178_0x4fc0();let _0xb1b428=_0x4fc02c[_0x4e3c4b];return _0xb1b428;}export async function loadJSON(_0x573634,_0x3edea1){const _0x1bfe65=a178_0xb1b4;try{if(_0x3edea1){const _0x2c437c=await readFile(_0x573634,_0x1bfe65(0x7c));try{return JSON[_0x1bfe65(0x8c)](_0x2c437c);}catch(_0x571240){throw new SDKError(ErrorCode[_0x1bfe65(0x7b)],_0x1bfe65(0x7a)+_0x573634+_0x1bfe65(0x88)+(_0x571240 instanceof Error?_0x571240[_0x1bfe65(0x82)]:String(_0x571240)));}}else try{return JSON[_0x1bfe65(0x8c)](_0x573634);}catch(_0xf8e6ba){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x1bfe65(0x90)+(_0xf8e6ba instanceof Error?_0xf8e6ba[_0x1bfe65(0x82)]:String(_0xf8e6ba)));}}catch(_0x309e73){if(_0x309e73 instanceof SDKError)throw _0x309e73;if(_0x309e73 instanceof Error&&_0x1bfe65(0x83)in _0x309e73){const _0x441f90=_0x309e73;if(_0x441f90[_0x1bfe65(0x83)]===_0x1bfe65(0x81))throw new SDKError(ErrorCode[_0x1bfe65(0x8a)],_0x1bfe65(0x8f)+_0x573634);else{if(_0x441f90[_0x1bfe65(0x83)]===_0x1bfe65(0x85))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0x573634);}}throw new SDKError(ErrorCode[_0x1bfe65(0x8b)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x309e73 instanceof Error?_0x309e73['message']:String(_0x309e73)));}}export async function loadJSONFromOptions(_0x950f69,_0x115633){const _0x429967=a178_0xb1b4;if(_0x950f69&&_0x115633)throw new SDKError(ErrorCode[_0x429967(0x7b)],_0x429967(0x7f));if(_0x950f69)return await loadJSON(_0x950f69,![]);if(_0x115633)return await loadJSON(_0x115633,!![]);return undefined;}function a178_0x4fc0(){const _0x53c518=['utf-8','380HALiXu','1805895XnCbgW','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','299840gDiJlQ','ENOENT','message','code','2562ybNSdx','EACCES','180OFnqLP','4193046PprFIX','\x27:\x20','1520960aWoEVY','NOT_FOUND','INTERNAL','parse','167657SviafV','822kSWIvO','File\x20not\x20found:\x20','Invalid\x20JSON\x20string:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','INVALID_ARGUMENT'];a178_0x4fc0=function(){return _0x53c518;};return a178_0x4fc0();}
1
+ (function(_0x1160ca,_0x5af8be){const _0x1bc0d7=a180_0x3f7c,_0x55ac3c=_0x1160ca();while(!![]){try{const _0xcd5ff9=parseInt(_0x1bc0d7(0x103))/0x1+parseInt(_0x1bc0d7(0x100))/0x2*(parseInt(_0x1bc0d7(0x104))/0x3)+parseInt(_0x1bc0d7(0x115))/0x4*(-parseInt(_0x1bc0d7(0xfe))/0x5)+-parseInt(_0x1bc0d7(0x108))/0x6*(-parseInt(_0x1bc0d7(0x102))/0x7)+parseInt(_0x1bc0d7(0x111))/0x8+parseInt(_0x1bc0d7(0x10d))/0x9*(-parseInt(_0x1bc0d7(0x112))/0xa)+parseInt(_0x1bc0d7(0x113))/0xb*(-parseInt(_0x1bc0d7(0x110))/0xc);if(_0xcd5ff9===_0x5af8be)break;else _0x55ac3c['push'](_0x55ac3c['shift']());}catch(_0x263c7c){_0x55ac3c['push'](_0x55ac3c['shift']());}}}(a180_0x3353,0x8c877));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a180_0x3f7c(_0x18ee44,_0x246b2d){_0x18ee44=_0x18ee44-0xfe;const _0x335395=a180_0x3353();let _0x3f7c61=_0x335395[_0x18ee44];return _0x3f7c61;}export async function loadJSON(_0x562802,_0x1b1e5c){const _0x36c7fc=a180_0x3f7c;try{if(_0x1b1e5c){const _0x18a387=await readFile(_0x562802,_0x36c7fc(0x105));try{return JSON[_0x36c7fc(0x10f)](_0x18a387);}catch(_0x44e16b){throw new SDKError(ErrorCode[_0x36c7fc(0xff)],_0x36c7fc(0x106)+_0x562802+_0x36c7fc(0x101)+(_0x44e16b instanceof Error?_0x44e16b[_0x36c7fc(0x107)]:String(_0x44e16b)));}}else try{return JSON[_0x36c7fc(0x10f)](_0x562802);}catch(_0x230bb9){throw new SDKError(ErrorCode[_0x36c7fc(0xff)],_0x36c7fc(0x10a)+(_0x230bb9 instanceof Error?_0x230bb9[_0x36c7fc(0x107)]:String(_0x230bb9)));}}catch(_0x62f09e){if(_0x62f09e instanceof SDKError)throw _0x62f09e;if(_0x62f09e instanceof Error&&_0x36c7fc(0x10b)in _0x62f09e){const _0x40bb4d=_0x62f09e;if(_0x40bb4d[_0x36c7fc(0x10b)]==='ENOENT')throw new SDKError(ErrorCode[_0x36c7fc(0x116)],_0x36c7fc(0x114)+_0x562802);else{if(_0x40bb4d[_0x36c7fc(0x10b)]==='EACCES')throw new SDKError(ErrorCode[_0x36c7fc(0x10c)],_0x36c7fc(0x109)+_0x562802);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x62f09e instanceof Error?_0x62f09e[_0x36c7fc(0x107)]:String(_0x62f09e)));}}export async function loadJSONFromOptions(_0x34ffdb,_0x52ccdd){const _0x5bf17c=a180_0x3f7c;if(_0x34ffdb&&_0x52ccdd)throw new SDKError(ErrorCode[_0x5bf17c(0xff)],_0x5bf17c(0x10e));if(_0x34ffdb)return await loadJSON(_0x34ffdb,![]);if(_0x52ccdd)return await loadJSON(_0x52ccdd,!![]);return undefined;}function a180_0x3353(){const _0x599575=['9vWDHAj','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','20772eeZjMk','8567528rpOBMu','3784740eicONs','2739ggOkgS','File\x20not\x20found:\x20','195532tDYtQO','NOT_FOUND','115hKdzdM','INVALID_ARGUMENT','1130Odwvcy','\x27:\x20','35IhtRHd','649783XywCnR','1788kAXDsu','utf-8','Invalid\x20JSON\x20in\x20file\x20\x27','message','542334ARgESC','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20string:\x20','code','PERMISSION_DENIED'];a180_0x3353=function(){return _0x599575;};return a180_0x3353();}
@@ -1 +1 @@
1
- const a179_0x1674e8=a179_0x380b;(function(_0x519926,_0x152f5d){const _0x238642=a179_0x380b,_0x3c5630=_0x519926();while(!![]){try{const _0x59a33a=-parseInt(_0x238642(0x12c))/0x1+parseInt(_0x238642(0x13a))/0x2+-parseInt(_0x238642(0x12f))/0x3*(parseInt(_0x238642(0x136))/0x4)+parseInt(_0x238642(0x12b))/0x5+-parseInt(_0x238642(0x131))/0x6+parseInt(_0x238642(0x130))/0x7+-parseInt(_0x238642(0x12a))/0x8;if(_0x59a33a===_0x152f5d)break;else _0x3c5630['push'](_0x3c5630['shift']());}catch(_0x47caf5){_0x3c5630['push'](_0x3c5630['shift']());}}}(a179_0xeae7,0xbe8b2));function a179_0x380b(_0x8819cc,_0x335b5f){_0x8819cc=_0x8819cc-0x129;const _0xeae7b2=a179_0xeae7();let _0x380bce=_0xeae7b2[_0x8819cc];return _0x380bce;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a179_0x1674e8(0x129),registry=new Map();function a179_0xeae7(){const _0x5a06be=['trim','set','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','7148MNskHv','\x22\x20already\x20registered\x20by\x20\x22','cwd','clear','434538wbfdSi','.cache/tdx','4237136kOKxtj','6757560erHZSa','994737SDIIgx','get','parse','237eTaLuS','9828595cNofJU','3161088JdUMMO'];a179_0xeae7=function(){return _0x5a06be;};return a179_0xeae7();}export function registerCacheKey(_0x4d99c5,_0x20993b){const _0x8e48db=a179_0x1674e8,_0x46dcb2=registry[_0x8e48db(0x12d)](_0x4d99c5);if(_0x46dcb2&&_0x46dcb2!==_0x20993b)throw new Error('Cache\x20key\x20\x22'+_0x4d99c5+_0x8e48db(0x137)+_0x46dcb2+_0x8e48db(0x135)+_0x20993b+'\x22');registry[_0x8e48db(0x133)](_0x4d99c5,_0x20993b);}export function getCacheDir(){const _0x5295d6=a179_0x1674e8,_0x5c9241=process[_0x5295d6(0x138)](),_0x3cb4b4=_0x5c9241===parse(_0x5c9241)['root']?homedir():_0x5c9241;return join(_0x3cb4b4,LOCAL_CACHE_DIR);}export function getCachePath(_0x3900bc){return join(getCacheDir(),_0x3900bc);}function ensureCacheDir(){const _0x17838d=getCacheDir();!existsSync(_0x17838d)&&mkdirSync(_0x17838d,{'recursive':!![]});}function readCacheJson(_0x376010){const _0x4d292c=a179_0x1674e8,_0x42a0b7=getCachePath(_0x376010);if(!existsSync(_0x42a0b7))return undefined;try{const _0x2f3a23=readFileSync(_0x42a0b7,_0x4d292c(0x134));return JSON[_0x4d292c(0x12e)](_0x2f3a23);}catch{return undefined;}}function writeCacheJson(_0x39a098,_0x33aab0){const _0x9e490e=a179_0x1674e8;ensureCacheDir(),writeFileSync(getCachePath(_0x39a098),JSON['stringify'](_0x33aab0,null,0x2),_0x9e490e(0x134));}function readCacheText(_0x27147c){const _0x58dbdf=a179_0x1674e8,_0x2e10b6=getCachePath(_0x27147c);if(!existsSync(_0x2e10b6))return undefined;try{return readFileSync(_0x2e10b6,_0x58dbdf(0x134));}catch{return undefined;}}function writeCacheText(_0x19f7ed,_0x27c2ec){const _0x111ef7=a179_0x1674e8;ensureCacheDir(),writeFileSync(getCachePath(_0x19f7ed),_0x27c2ec,_0x111ef7(0x134));}function clearCache(_0x425d12){const _0x460616=getCachePath(_0x425d12);if(existsSync(_0x460616))try{unlinkSync(_0x460616);}catch{}}function cacheExists(_0x4e6b3e){return existsSync(getCachePath(_0x4e6b3e));}export function createCache(_0x9291,_0xaa697e){return registerCacheKey(_0x9291,_0xaa697e),{'read':()=>readCacheJson(_0x9291),'write':_0xb0e9ed=>writeCacheJson(_0x9291,_0xb0e9ed),'clear':()=>clearCache(_0x9291),'exists':()=>cacheExists(_0x9291),'path':()=>getCachePath(_0x9291)};}export function createTextCache(_0x4ffd21,_0x21c781){const _0x1085c9=a179_0x1674e8;return registerCacheKey(_0x4ffd21,_0x21c781),{'read':()=>readCacheText(_0x4ffd21)?.[_0x1085c9(0x132)]()||undefined,'write':_0x29cdbf=>writeCacheText(_0x4ffd21,_0x29cdbf),'clear':()=>clearCache(_0x4ffd21),'exists':()=>cacheExists(_0x4ffd21),'path':()=>getCachePath(_0x4ffd21)};}export function clearRegistry(){const _0x2e2ead=a179_0x1674e8;registry[_0x2e2ead(0x139)]();}
1
+ (function(_0x5d385b,_0x23f90b){const _0x5192e2=a181_0x1759,_0x18a95c=_0x5d385b();while(!![]){try{const _0x411f19=-parseInt(_0x5192e2(0xd3))/0x1+-parseInt(_0x5192e2(0xca))/0x2*(parseInt(_0x5192e2(0xd5))/0x3)+-parseInt(_0x5192e2(0xc9))/0x4+parseInt(_0x5192e2(0xc7))/0x5*(-parseInt(_0x5192e2(0xcf))/0x6)+-parseInt(_0x5192e2(0xc8))/0x7+parseInt(_0x5192e2(0xcc))/0x8+parseInt(_0x5192e2(0xd1))/0x9*(parseInt(_0x5192e2(0xd0))/0xa);if(_0x411f19===_0x23f90b)break;else _0x18a95c['push'](_0x18a95c['shift']());}catch(_0x4d9d5b){_0x18a95c['push'](_0x18a95c['shift']());}}}(a181_0x48cd,0x894cf));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x3e85c3,_0x268e8f){const _0x134a3c=a181_0x1759,_0x523420=registry[_0x134a3c(0xd6)](_0x3e85c3);if(_0x523420&&_0x523420!==_0x268e8f)throw new Error('Cache\x20key\x20\x22'+_0x3e85c3+_0x134a3c(0xd4)+_0x523420+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x268e8f+'\x22');registry[_0x134a3c(0xce)](_0x3e85c3,_0x268e8f);}export function getCacheDir(){const _0x43727d=a181_0x1759,_0x4966fb=process[_0x43727d(0xc6)](),_0x596763=_0x4966fb===parse(_0x4966fb)['root']?homedir():_0x4966fb;return join(_0x596763,LOCAL_CACHE_DIR);}export function getCachePath(_0x4d3ff0){return join(getCacheDir(),_0x4d3ff0);}function ensureCacheDir(){const _0x3147a8=getCacheDir();!existsSync(_0x3147a8)&&mkdirSync(_0x3147a8,{'recursive':!![]});}function a181_0x1759(_0x4bb6be,_0xa8cec6){_0x4bb6be=_0x4bb6be-0xc6;const _0x48cd1e=a181_0x48cd();let _0x175941=_0x48cd1e[_0x4bb6be];return _0x175941;}function readCacheJson(_0x2e31df){const _0x42a960=getCachePath(_0x2e31df);if(!existsSync(_0x42a960))return undefined;try{const _0xb67f22=readFileSync(_0x42a960,'utf-8');return JSON['parse'](_0xb67f22);}catch{return undefined;}}function writeCacheJson(_0x233d47,_0x59f4cc){const _0xa5346c=a181_0x1759;ensureCacheDir(),writeFileSync(getCachePath(_0x233d47),JSON[_0xa5346c(0xd7)](_0x59f4cc,null,0x2),_0xa5346c(0xd2));}function readCacheText(_0x1916a5){const _0x419a4f=a181_0x1759,_0x4f8c35=getCachePath(_0x1916a5);if(!existsSync(_0x4f8c35))return undefined;try{return readFileSync(_0x4f8c35,_0x419a4f(0xd2));}catch{return undefined;}}function writeCacheText(_0x5c66a0,_0x2fbd43){const _0x24dea6=a181_0x1759;ensureCacheDir(),writeFileSync(getCachePath(_0x5c66a0),_0x2fbd43,_0x24dea6(0xd2));}function clearCache(_0x5dceab){const _0x139b7a=getCachePath(_0x5dceab);if(existsSync(_0x139b7a))try{unlinkSync(_0x139b7a);}catch{}}function a181_0x48cd(){const _0x3ebdb4=['3101604apqJMM','1195778iGtTyJ','clear','5746312jGWDwH','trim','set','1104mzLkXs','360660UjpMbO','657vXJsQj','utf-8','995664eUeMSb','\x22\x20already\x20registered\x20by\x20\x22','3xbMqho','get','stringify','cwd','160CwTqZc','2897174pHhZFg'];a181_0x48cd=function(){return _0x3ebdb4;};return a181_0x48cd();}function cacheExists(_0x5c1eb9){return existsSync(getCachePath(_0x5c1eb9));}export function createCache(_0x4aced6,_0x1df00e){return registerCacheKey(_0x4aced6,_0x1df00e),{'read':()=>readCacheJson(_0x4aced6),'write':_0xf21a1c=>writeCacheJson(_0x4aced6,_0xf21a1c),'clear':()=>clearCache(_0x4aced6),'exists':()=>cacheExists(_0x4aced6),'path':()=>getCachePath(_0x4aced6)};}export function createTextCache(_0x440218,_0x4d1336){const _0x51d44c=a181_0x1759;return registerCacheKey(_0x440218,_0x4d1336),{'read':()=>readCacheText(_0x440218)?.[_0x51d44c(0xcd)]()||undefined,'write':_0x441672=>writeCacheText(_0x440218,_0x441672),'clear':()=>clearCache(_0x440218),'exists':()=>cacheExists(_0x440218),'path':()=>getCachePath(_0x440218)};}export function clearRegistry(){const _0x1474ab=a181_0x1759;registry[_0x1474ab(0xcb)]();}
@@ -1 +1 @@
1
- const a180_0x2b148b=a180_0x1ac6;(function(_0x1ecb42,_0x1f6bfb){const _0xb01a5d=a180_0x1ac6,_0x519b25=_0x1ecb42();while(!![]){try{const _0x5e0270=-parseInt(_0xb01a5d(0xb7))/0x1+-parseInt(_0xb01a5d(0xb3))/0x2+-parseInt(_0xb01a5d(0xbc))/0x3*(-parseInt(_0xb01a5d(0xa6))/0x4)+-parseInt(_0xb01a5d(0xa9))/0x5*(parseInt(_0xb01a5d(0xb8))/0x6)+parseInt(_0xb01a5d(0xab))/0x7*(-parseInt(_0xb01a5d(0xa5))/0x8)+parseInt(_0xb01a5d(0xa7))/0x9*(parseInt(_0xb01a5d(0xc0))/0xa)+parseInt(_0xb01a5d(0xc1))/0xb;if(_0x5e0270===_0x1f6bfb)break;else _0x519b25['push'](_0x519b25['shift']());}catch(_0x146f29){_0x519b25['push'](_0x519b25['shift']());}}}(a180_0x4917,0xaec44));import a180_0x45c660 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a180_0x45c660,ChalkClass=chalkModule[a180_0x2b148b(0xb9)]||chalkModule['default']?.[a180_0x2b148b(0xb9)];function a180_0x4917(){const _0x158c07=['gray','3IHpshu','cyan','WARN','level','41390vjsokS','36194906TVHulf','timestamp','517496varwem','1573064bgyIfw','1521AHoNbA','message','20rqmmrf','yellow','147AajqXy','format','chalk','INFO',']\x20[','component','colorLevel','ERROR','1343454oPKOMR','red','colors','TRACE','586597jtPoWA','1575912zLHiIe','Chalk','green'];a180_0x4917=function(){return _0x158c07;};return a180_0x4917();}function a180_0x1ac6(_0x429b64,_0xcc42f){_0x429b64=_0x429b64-0xa5;const _0x49175=a180_0x4917();let _0x1ac6ff=_0x49175[_0x429b64];return _0x1ac6ff;}export class DefaultLogFormatter{[a180_0x2b148b(0xb5)];[a180_0x2b148b(0xad)];constructor(_0x2e8b98={}){const _0x5031c6=a180_0x2b148b;this[_0x5031c6(0xb5)]=_0x2e8b98['colors']??![],this[_0x5031c6(0xad)]=_0x2e8b98[_0x5031c6(0xb5)]&&ChalkClass?new ChalkClass({'level':0x3}):a180_0x45c660;}[a180_0x2b148b(0xac)](_0x1d9034){const _0x37c003=a180_0x2b148b,_0x5d61f9=formatTimestamp(_0x1d9034[_0x37c003(0xc2)]),_0x50be15=logLevelToString(_0x1d9034['level']);if(!this['colors'])return _0x5d61f9+'\x20['+_0x50be15+_0x37c003(0xaf)+_0x1d9034[_0x37c003(0xb0)]+']\x20'+_0x1d9034[_0x37c003(0xa8)];const _0x1657f6=this[_0x37c003(0xad)]['dim'](_0x5d61f9),_0x446283=this[_0x37c003(0xb1)](_0x50be15,_0x1d9034[_0x37c003(0xbf)]),_0x3f397a=this[_0x37c003(0xad)]['blue']('['+_0x1d9034['component']+']');return _0x1657f6+'\x20'+_0x446283+'\x20'+_0x3f397a+'\x20'+_0x1d9034[_0x37c003(0xa8)];}['colorLevel'](_0xf82883,_0x3284e0){const _0x560a6f=a180_0x2b148b;switch(_0x3284e0){case LogLevel[_0x560a6f(0xb6)]:return this['chalk'][_0x560a6f(0xbb)]('['+_0xf82883+']');case LogLevel['DEBUG']:return this['chalk'][_0x560a6f(0xba)]('['+_0xf82883+']');case LogLevel[_0x560a6f(0xae)]:return this[_0x560a6f(0xad)][_0x560a6f(0xbd)]('['+_0xf82883+']');case LogLevel[_0x560a6f(0xbe)]:return this['chalk'][_0x560a6f(0xaa)]('['+_0xf82883+']');case LogLevel[_0x560a6f(0xb2)]:return this['chalk'][_0x560a6f(0xb4)]('['+_0xf82883+']');default:return'['+_0xf82883+']';}}}
1
+ function a182_0x2c80(_0x196d2e,_0x5adde0){_0x196d2e=_0x196d2e-0x15b;const _0x20112f=a182_0x2011();let _0x2c80ce=_0x20112f[_0x196d2e];return _0x2c80ce;}const a182_0x52cb4e=a182_0x2c80;function a182_0x2011(){const _0x3db5b0=['yellow','7usfaVi','colorLevel','752718nnZCOe','cyan','component','format','colors','Chalk','WARN','4563252byeuCj','red','504584pPkJSp','12lemFga','INFO','534070dZOdlq','gray','11MaItol','message','3eyGEDN','4242410PxbLsO','chalk','timestamp','DEBUG','11226429bXJNiz','4182725KXdNGV'];a182_0x2011=function(){return _0x3db5b0;};return a182_0x2011();}(function(_0x5780e6,_0x4d1fe1){const _0x445b56=a182_0x2c80,_0x4066e0=_0x5780e6();while(!![]){try{const _0x4b42f7=-parseInt(_0x445b56(0x15e))/0x1*(-parseInt(_0x445b56(0x174))/0x2)+parseInt(_0x445b56(0x168))/0x3*(parseInt(_0x445b56(0x172))/0x4)+-parseInt(_0x445b56(0x164))/0x5+-parseInt(_0x445b56(0x16f))/0x6+parseInt(_0x445b56(0x166))/0x7*(parseInt(_0x445b56(0x171))/0x8)+parseInt(_0x445b56(0x163))/0x9+-parseInt(_0x445b56(0x15f))/0xa*(parseInt(_0x445b56(0x15c))/0xb);if(_0x4b42f7===_0x4d1fe1)break;else _0x4066e0['push'](_0x4066e0['shift']());}catch(_0x357aa2){_0x4066e0['push'](_0x4066e0['shift']());}}}(a182_0x2011,0xcdcc5));import a182_0x5a6d72 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a182_0x5a6d72,ChalkClass=chalkModule[a182_0x52cb4e(0x16d)]||chalkModule['default']?.['Chalk'];export class DefaultLogFormatter{[a182_0x52cb4e(0x16c)];[a182_0x52cb4e(0x160)];constructor(_0x44abd7={}){const _0xaba406=a182_0x52cb4e;this[_0xaba406(0x16c)]=_0x44abd7[_0xaba406(0x16c)]??![],this['chalk']=_0x44abd7[_0xaba406(0x16c)]&&ChalkClass?new ChalkClass({'level':0x3}):a182_0x5a6d72;}[a182_0x52cb4e(0x16b)](_0x55fbad){const _0x28622e=a182_0x52cb4e,_0x53941d=formatTimestamp(_0x55fbad[_0x28622e(0x161)]),_0x1cdc89=logLevelToString(_0x55fbad['level']);if(!this[_0x28622e(0x16c)])return _0x53941d+'\x20['+_0x1cdc89+']\x20['+_0x55fbad[_0x28622e(0x16a)]+']\x20'+_0x55fbad[_0x28622e(0x15d)];const _0x3dcc5e=this['chalk']['dim'](_0x53941d),_0x4f7a27=this[_0x28622e(0x167)](_0x1cdc89,_0x55fbad['level']),_0x463bbf=this['chalk']['blue']('['+_0x55fbad[_0x28622e(0x16a)]+']');return _0x3dcc5e+'\x20'+_0x4f7a27+'\x20'+_0x463bbf+'\x20'+_0x55fbad[_0x28622e(0x15d)];}[a182_0x52cb4e(0x167)](_0x4e24ff,_0x5139e9){const _0x4eb8b8=a182_0x52cb4e;switch(_0x5139e9){case LogLevel['TRACE']:return this[_0x4eb8b8(0x160)][_0x4eb8b8(0x15b)]('['+_0x4e24ff+']');case LogLevel[_0x4eb8b8(0x162)]:return this[_0x4eb8b8(0x160)]['green']('['+_0x4e24ff+']');case LogLevel[_0x4eb8b8(0x173)]:return this[_0x4eb8b8(0x160)][_0x4eb8b8(0x169)]('['+_0x4e24ff+']');case LogLevel[_0x4eb8b8(0x16e)]:return this[_0x4eb8b8(0x160)][_0x4eb8b8(0x165)]('['+_0x4e24ff+']');case LogLevel['ERROR']:return this[_0x4eb8b8(0x160)][_0x4eb8b8(0x170)]('['+_0x4e24ff+']');default:return'['+_0x4e24ff+']';}}}
@@ -1 +1 @@
1
- (function(_0x5e348b,_0x1ba377){var _0x16eabb=a181_0x1bf9,_0x238dbb=_0x5e348b();while(!![]){try{var _0x18e7ca=parseInt(_0x16eabb(0xd6))/0x1*(parseInt(_0x16eabb(0xda))/0x2)+parseInt(_0x16eabb(0xd3))/0x3*(-parseInt(_0x16eabb(0xd9))/0x4)+-parseInt(_0x16eabb(0xdc))/0x5+parseInt(_0x16eabb(0xd8))/0x6+parseInt(_0x16eabb(0xd4))/0x7*(-parseInt(_0x16eabb(0xd7))/0x8)+-parseInt(_0x16eabb(0xdd))/0x9*(-parseInt(_0x16eabb(0xdb))/0xa)+parseInt(_0x16eabb(0xd5))/0xb;if(_0x18e7ca===_0x1ba377)break;else _0x238dbb['push'](_0x238dbb['shift']());}catch(_0x5aa508){_0x238dbb['push'](_0x238dbb['shift']());}}}(a181_0xd1b8,0x6106c));function a181_0x1bf9(_0x3e198f,_0x3ce18a){_0x3e198f=_0x3e198f-0xd3;var _0xd1b862=a181_0xd1b8();var _0x1bf9e6=_0xd1b862[_0x3e198f];return _0x1bf9e6;}function a181_0xd1b8(){var _0xaed39a=['456176euRWzB','4744366OSvyyE','3221AlzZAH','56fKldUU','2818428gNdeUi','7888pQGGit','2FIgubw','437610PZlJxm','2030610vyZYqC','153VcyiyL','591VawOFc'];a181_0xd1b8=function(){return _0xaed39a;};return a181_0xd1b8();}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a183_0x4476(){var _0x2b3961=['2747205eYGknJ','12xieXju','7334450UFCcbb','30mCIiUc','373545eqYFfE','165BPBnuc','556755nJogyN','1512672HlnZLo','517657ybXpXD','3194LSgKve'];a183_0x4476=function(){return _0x2b3961;};return a183_0x4476();}function a183_0x2509(_0x180073,_0x143bd2){_0x180073=_0x180073-0x1cf;var _0x4476e8=a183_0x4476();var _0x2509d0=_0x4476e8[_0x180073];return _0x2509d0;}(function(_0x114c8d,_0x37b674){var _0x42ef54=a183_0x2509,_0x3743a8=_0x114c8d();while(!![]){try{var _0x587031=parseInt(_0x42ef54(0x1d6))/0x1+-parseInt(_0x42ef54(0x1d1))/0x2*(parseInt(_0x42ef54(0x1d7))/0x3)+-parseInt(_0x42ef54(0x1d3))/0x4*(parseInt(_0x42ef54(0x1d8))/0x5)+-parseInt(_0x42ef54(0x1d5))/0x6*(parseInt(_0x42ef54(0x1d0))/0x7)+parseInt(_0x42ef54(0x1cf))/0x8+-parseInt(_0x42ef54(0x1d2))/0x9+parseInt(_0x42ef54(0x1d4))/0xa;if(_0x587031===_0x37b674)break;else _0x3743a8['push'](_0x3743a8['shift']());}catch(_0x29c0c5){_0x3743a8['push'](_0x3743a8['shift']());}}}(a183_0x4476,0x30a12));export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a182_0x10d3e5=a182_0xa266;(function(_0x44cf70,_0x3e0b4a){const _0x565f08=a182_0xa266,_0x4f5fae=_0x44cf70();while(!![]){try{const _0x5a711f=-parseInt(_0x565f08(0x1c3))/0x1+parseInt(_0x565f08(0x1c7))/0x2+parseInt(_0x565f08(0x1bb))/0x3+parseInt(_0x565f08(0x1c6))/0x4+-parseInt(_0x565f08(0x1c9))/0x5+parseInt(_0x565f08(0x1bc))/0x6*(parseInt(_0x565f08(0x1c2))/0x7)+-parseInt(_0x565f08(0x1c8))/0x8*(parseInt(_0x565f08(0x1c0))/0x9);if(_0x5a711f===_0x3e0b4a)break;else _0x4f5fae['push'](_0x4f5fae['shift']());}catch(_0x1abd64){_0x4f5fae['push'](_0x4f5fae['shift']());}}}(a182_0x5754,0xaf0d4));import{LogLevel as a182_0x5a785c}from'../types.js';function a182_0xa266(_0x4e8ea3,_0x48badc){_0x4e8ea3=_0x4e8ea3-0x1b9;const _0x5754df=a182_0x5754();let _0xa26648=_0x5754df[_0x4e8ea3];return _0xa26648;}import{DefaultLogFormatter}from'../formatters/index.js';function a182_0x5754(){const _0x64e812=['1759996soOwjx','596592emABMF','72cOXsCV','1581090aoBENv','WARN','format','4138224WFUtdu','3558OeIZWR','formatter','error','useStderr','883971EWcFUM','minLevel','511TtHKvu','243791vZECYZ','level','colors'];a182_0x5754=function(){return _0x64e812;};return a182_0x5754();}export class ConsoleHandler{[a182_0x10d3e5(0x1c1)];[a182_0x10d3e5(0x1bf)];[a182_0x10d3e5(0x1bd)];constructor(_0x295b34={}){const _0x5713e0=a182_0x10d3e5;this[_0x5713e0(0x1c1)]=_0x295b34[_0x5713e0(0x1c1)]??a182_0x5a785c[_0x5713e0(0x1b9)],this[_0x5713e0(0x1bf)]=_0x295b34[_0x5713e0(0x1bf)]??!![],this[_0x5713e0(0x1bd)]=new DefaultLogFormatter({'colors':_0x295b34[_0x5713e0(0x1c5)]??!![]});}['handle'](_0x1e30e2){const _0x1c3883=a182_0x10d3e5;if(_0x1e30e2[_0x1c3883(0x1c4)]<this['minLevel'])return;const _0x530e24=this[_0x1c3883(0x1bd)][_0x1c3883(0x1ba)](_0x1e30e2);this[_0x1c3883(0x1bf)]&&_0x1e30e2[_0x1c3883(0x1c4)]>=a182_0x5a785c[_0x1c3883(0x1b9)]?console[_0x1c3883(0x1be)](_0x530e24):console['log'](_0x530e24);}}
1
+ function a184_0x10c4(){const _0x255177=['formatter','179641vqFmJX','10wPLrsG','353984zmATyQ','log','35560DeTpGx','WARN','703962xUYlMX','284Mscswf','useStderr','handle','error','6201909MrXdZe','248EqdukF','883047tYOSrU','level','2718564QMSUUo','format','minLevel'];a184_0x10c4=function(){return _0x255177;};return a184_0x10c4();}const a184_0x5cb176=a184_0x5f0e;(function(_0x187463,_0x4dc888){const _0x26a4b9=a184_0x5f0e,_0xb8e262=_0x187463();while(!![]){try{const _0x54e1a8=parseInt(_0x26a4b9(0x1a0))/0x1+parseInt(_0x26a4b9(0x1a4))/0x2+-parseInt(_0x26a4b9(0x1ab))/0x3+-parseInt(_0x26a4b9(0x1a5))/0x4*(parseInt(_0x26a4b9(0x1a2))/0x5)+parseInt(_0x26a4b9(0x1ad))/0x6+-parseInt(_0x26a4b9(0x19e))/0x7*(-parseInt(_0x26a4b9(0x1aa))/0x8)+-parseInt(_0x26a4b9(0x1a9))/0x9*(parseInt(_0x26a4b9(0x19f))/0xa);if(_0x54e1a8===_0x4dc888)break;else _0xb8e262['push'](_0xb8e262['shift']());}catch(_0x1b6169){_0xb8e262['push'](_0xb8e262['shift']());}}}(a184_0x10c4,0x71d22));import{LogLevel as a184_0x16d4f7}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a184_0x5f0e(_0x101d79,_0x5face1){_0x101d79=_0x101d79-0x19d;const _0x10c481=a184_0x10c4();let _0x5f0e76=_0x10c481[_0x101d79];return _0x5f0e76;}export class ConsoleHandler{[a184_0x5cb176(0x1af)];[a184_0x5cb176(0x1a6)];['formatter'];constructor(_0x29a91a={}){const _0x365c7e=a184_0x5cb176;this[_0x365c7e(0x1af)]=_0x29a91a['minLevel']??a184_0x16d4f7[_0x365c7e(0x1a3)],this[_0x365c7e(0x1a6)]=_0x29a91a[_0x365c7e(0x1a6)]??!![],this[_0x365c7e(0x19d)]=new DefaultLogFormatter({'colors':_0x29a91a['colors']??!![]});}[a184_0x5cb176(0x1a7)](_0x5ad84e){const _0x24400e=a184_0x5cb176;if(_0x5ad84e[_0x24400e(0x1ac)]<this[_0x24400e(0x1af)])return;const _0x40ea34=this[_0x24400e(0x19d)][_0x24400e(0x1ae)](_0x5ad84e);this[_0x24400e(0x1a6)]&&_0x5ad84e[_0x24400e(0x1ac)]>=a184_0x16d4f7[_0x24400e(0x1a3)]?console[_0x24400e(0x1a8)](_0x40ea34):console[_0x24400e(0x1a1)](_0x40ea34);}}
@@ -1 +1 @@
1
- const a183_0x46565d=a183_0x4dd2;function a183_0x4dd2(_0x30ae52,_0x411c44){_0x30ae52=_0x30ae52-0xcd;const _0x56d5de=a183_0x56d5();let _0x4dd22d=_0x56d5de[_0x30ae52];return _0x4dd22d;}(function(_0x2b8e27,_0x47fc62){const _0x1e18ec=a183_0x4dd2,_0x2698f3=_0x2b8e27();while(!![]){try{const _0x26e3a3=-parseInt(_0x1e18ec(0xd5))/0x1+parseInt(_0x1e18ec(0xe2))/0x2*(parseInt(_0x1e18ec(0xe3))/0x3)+-parseInt(_0x1e18ec(0xe5))/0x4*(parseInt(_0x1e18ec(0xd1))/0x5)+parseInt(_0x1e18ec(0xdf))/0x6+-parseInt(_0x1e18ec(0xd3))/0x7+-parseInt(_0x1e18ec(0xe0))/0x8+parseInt(_0x1e18ec(0xd7))/0x9*(parseInt(_0x1e18ec(0xe8))/0xa);if(_0x26e3a3===_0x47fc62)break;else _0x2698f3['push'](_0x2698f3['shift']());}catch(_0x5a38b9){_0x2698f3['push'](_0x2698f3['shift']());}}}(a183_0x56d5,0x1afec));import{createWriteStream,createReadStream}from'fs';function a183_0x56d5(){const _0x350531=['split','logPath','1000085kjJlkZ','logDir','862197cIEFMY','rotateOldLogs','92388PVcjWX','filter','4106331CAjELa','format','getLogPath','rotate','handle','toISOString','Warning:\x20Error\x20writing\x20to\x20','mtime','460170XWBglN','1703032gYhmIS','logs','126JziKmL','9813EhqkHO','write','4FwNdnH','Warning:\x20Failed\x20to\x20compress\x20','logFileName','10IEBIcA','replace','includes','error','logStream','filePath','logBaseName','.gz','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','.log','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'];a183_0x56d5=function(){return _0x350531;};return a183_0x56d5();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a183_0x46565d(0xd0)];[a183_0x46565d(0xd2)];['logFileName'];[a183_0x46565d(0xee)];['logStream']=null;[a183_0x46565d(0xda)];constructor(_0x7d8cca={}){const _0x2a9775=a183_0x46565d;this[_0x2a9775(0xd0)]=_0x7d8cca[_0x2a9775(0xed)]??join(getGlobalCacheDir(),_0x2a9775(0xe1),'tdx.log'),this['logDir']=dirname(this['logPath']),this[_0x2a9775(0xe7)]=basename(this[_0x2a9775(0xd0)]),this[_0x2a9775(0xee)]=this[_0x2a9775(0xe7)][_0x2a9775(0xe9)](/\.log$/,''),this['rotate']=_0x7d8cca[_0x2a9775(0xda)]??!![];}async['init'](){const _0x5882f2=a183_0x46565d;try{await mkdir(this[_0x5882f2(0xd2)],{'recursive':!![]}),this[_0x5882f2(0xda)]&&await this[_0x5882f2(0xd4)](),this[_0x5882f2(0xec)]=createWriteStream(this[_0x5882f2(0xd0)],{'flags':'a'}),this[_0x5882f2(0xec)]['on']('error',_0x385c3e=>{const _0x44d244=_0x5882f2;console[_0x44d244(0xeb)](_0x44d244(0xdd)+this[_0x44d244(0xe7)]+':',_0x385c3e['message']);});}catch(_0x10823a){console['error'](_0x5882f2(0xf0),_0x10823a);}}[a183_0x46565d(0xdb)](_0x1baaba){const _0x246dab=a183_0x46565d;if(!this[_0x246dab(0xec)])return;const _0x19c9b9=Logger[_0x246dab(0xd8)](_0x1baaba);this['logStream'][_0x246dab(0xe4)](_0x19c9b9+'\x0a');}async['close'](){return new Promise(_0x33a15e=>{const _0x4ca1b5=a183_0x4dd2;this[_0x4ca1b5(0xec)]?this['logStream']['end'](()=>{this['logStream']=null,_0x33a15e();}):_0x33a15e();});}[a183_0x46565d(0xd9)](){const _0x322b06=a183_0x46565d;return this[_0x322b06(0xd0)];}async[a183_0x46565d(0xd4)](){const _0x275b78=a183_0x46565d;try{const _0x37ce9e=await readdir(this[_0x275b78(0xd2)]),_0x1e3628=new Date()['toISOString']()[_0x275b78(0xcf)]('T')[0x0];if(_0x37ce9e[_0x275b78(0xea)](this[_0x275b78(0xe7)])){const _0x2aba04=join(this[_0x275b78(0xd2)],this[_0x275b78(0xe7)]),_0x1ddd85=await stat(_0x2aba04),_0x26cada=new Date(_0x1ddd85[_0x275b78(0xde)])[_0x275b78(0xdc)]()[_0x275b78(0xcf)]('T')[0x0];if(_0x26cada<_0x1e3628){const _0xb07aba=join(this[_0x275b78(0xd2)],this[_0x275b78(0xee)]+'-'+_0x26cada+_0x275b78(0xcd));await rename(_0x2aba04,_0xb07aba);}}const _0x535f8d=await readdir(this[_0x275b78(0xd2)]),_0x1fa9a8=this[_0x275b78(0xee)][_0x275b78(0xe9)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x5cab0c=new RegExp('^'+_0x1fa9a8+_0x275b78(0xce)),_0x37040e=_0x535f8d[_0x275b78(0xd6)](_0x336995=>_0x5cab0c['test'](_0x336995));for(const _0x241746 of _0x37040e){const _0x53e8ce=join(this[_0x275b78(0xd2)],_0x241746),_0x35c3fd=join(this[_0x275b78(0xd2)],_0x241746+_0x275b78(0xef));try{await pipeline(createReadStream(_0x53e8ce),createGzip(),createWriteStream(_0x35c3fd)),await unlink(_0x53e8ce);}catch(_0x81a4a3){console[_0x275b78(0xeb)](_0x275b78(0xe6)+_0x241746+':',_0x81a4a3);}}}catch{}}}
1
+ const a185_0x311047=a185_0x8772;(function(_0x340e58,_0x2728c9){const _0x2c78ac=a185_0x8772,_0x35bbe2=_0x340e58();while(!![]){try{const _0xf5e46b=-parseInt(_0x2c78ac(0x184))/0x1+-parseInt(_0x2c78ac(0x17e))/0x2+parseInt(_0x2c78ac(0x18e))/0x3+parseInt(_0x2c78ac(0x189))/0x4*(parseInt(_0x2c78ac(0x196))/0x5)+parseInt(_0x2c78ac(0x18c))/0x6*(-parseInt(_0x2c78ac(0x180))/0x7)+parseInt(_0x2c78ac(0x198))/0x8*(-parseInt(_0x2c78ac(0x182))/0x9)+parseInt(_0x2c78ac(0x18f))/0xa*(parseInt(_0x2c78ac(0x178))/0xb);if(_0xf5e46b===_0x2728c9)break;else _0x35bbe2['push'](_0x35bbe2['shift']());}catch(_0x4ecfb6){_0x35bbe2['push'](_0x35bbe2['shift']());}}}(a185_0x288c,0xdac90));import{createWriteStream,createReadStream}from'fs';function a185_0x288c(){const _0x2d8fec=['close','.log','25iAEzyr','Warning:\x20Failed\x20to\x20compress\x20','32HhKOEQ','rotate','logFileName','mtime','logDir','rotateOldLogs','split','handle','11IaKRPE','logBaseName','includes','toISOString','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','Warning:\x20Error\x20writing\x20to\x20','3309764lEsqco','logStream','292383HDeCHA','init','648468pJGyfP','error','143113HcFkDx','filter','end','\x5c$&','filePath','530492OAJsFI','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logPath','210GaivFZ','logs','4491678uRLEvK','22839210UkIsIJ','getLogPath','replace','format','tdx.log'];a185_0x288c=function(){return _0x2d8fec;};return a185_0x288c();}function a185_0x8772(_0x49f676,_0x457e22){_0x49f676=_0x49f676-0x178;const _0x288ca1=a185_0x288c();let _0x87721e=_0x288ca1[_0x49f676];return _0x87721e;}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a185_0x311047(0x18b)];[a185_0x311047(0x19c)];[a185_0x311047(0x19a)];['logBaseName'];[a185_0x311047(0x17f)]=null;[a185_0x311047(0x199)];constructor(_0x1488cb={}){const _0x5cbcb4=a185_0x311047;this[_0x5cbcb4(0x18b)]=_0x1488cb[_0x5cbcb4(0x188)]??join(getGlobalCacheDir(),_0x5cbcb4(0x18d),_0x5cbcb4(0x193)),this[_0x5cbcb4(0x19c)]=dirname(this[_0x5cbcb4(0x18b)]),this[_0x5cbcb4(0x19a)]=basename(this[_0x5cbcb4(0x18b)]),this['logBaseName']=this[_0x5cbcb4(0x19a)][_0x5cbcb4(0x191)](/\.log$/,''),this[_0x5cbcb4(0x199)]=_0x1488cb[_0x5cbcb4(0x199)]??!![];}async[a185_0x311047(0x181)](){const _0x17863d=a185_0x311047;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x17863d(0x199)]&&await this[_0x17863d(0x19d)](),this['logStream']=createWriteStream(this[_0x17863d(0x18b)],{'flags':'a'}),this[_0x17863d(0x17f)]['on'](_0x17863d(0x183),_0x478023=>{const _0x15864=_0x17863d;console[_0x15864(0x183)](_0x15864(0x17d)+this['logFileName']+':',_0x478023['message']);});}catch(_0x43fb2e){console['error'](_0x17863d(0x18a),_0x43fb2e);}}[a185_0x311047(0x19f)](_0x181fdb){const _0x51d7ca=a185_0x311047;if(!this['logStream'])return;const _0x1f35ba=Logger[_0x51d7ca(0x192)](_0x181fdb);this['logStream']['write'](_0x1f35ba+'\x0a');}async[a185_0x311047(0x194)](){return new Promise(_0x1db79c=>{const _0x352b8a=a185_0x8772;this[_0x352b8a(0x17f)]?this[_0x352b8a(0x17f)][_0x352b8a(0x186)](()=>{const _0x8d4312=_0x352b8a;this[_0x8d4312(0x17f)]=null,_0x1db79c();}):_0x1db79c();});}[a185_0x311047(0x190)](){return this['logPath'];}async[a185_0x311047(0x19d)](){const _0x461cb2=a185_0x311047;try{const _0x2870b0=await readdir(this[_0x461cb2(0x19c)]),_0x8c523b=new Date()[_0x461cb2(0x17b)]()[_0x461cb2(0x19e)]('T')[0x0];if(_0x2870b0[_0x461cb2(0x17a)](this[_0x461cb2(0x19a)])){const _0x197bc8=join(this['logDir'],this['logFileName']),_0x31a0c8=await stat(_0x197bc8),_0x4d76db=new Date(_0x31a0c8[_0x461cb2(0x19b)])[_0x461cb2(0x17b)]()[_0x461cb2(0x19e)]('T')[0x0];if(_0x4d76db<_0x8c523b){const _0x36027c=join(this[_0x461cb2(0x19c)],this['logBaseName']+'-'+_0x4d76db+_0x461cb2(0x195));await rename(_0x197bc8,_0x36027c);}}const _0x8afaad=await readdir(this[_0x461cb2(0x19c)]),_0x1853d1=this[_0x461cb2(0x179)][_0x461cb2(0x191)](/[.*+?^${}()|[\]\\]/g,_0x461cb2(0x187)),_0x451e72=new RegExp('^'+_0x1853d1+_0x461cb2(0x17c)),_0x12a01d=_0x8afaad[_0x461cb2(0x185)](_0x566efa=>_0x451e72['test'](_0x566efa));for(const _0x168ce2 of _0x12a01d){const _0x1be08c=join(this[_0x461cb2(0x19c)],_0x168ce2),_0x3bf5ec=join(this[_0x461cb2(0x19c)],_0x168ce2+'.gz');try{await pipeline(createReadStream(_0x1be08c),createGzip(),createWriteStream(_0x3bf5ec)),await unlink(_0x1be08c);}catch(_0x1318b0){console[_0x461cb2(0x183)](_0x461cb2(0x197)+_0x168ce2+':',_0x1318b0);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x481d4d,_0x282303){var _0x563db1=a184_0x5796,_0x32aa6c=_0x481d4d();while(!![]){try{var _0x3d858b=parseInt(_0x563db1(0xd8))/0x1+parseInt(_0x563db1(0xdd))/0x2+parseInt(_0x563db1(0xdc))/0x3*(-parseInt(_0x563db1(0xd7))/0x4)+parseInt(_0x563db1(0xd6))/0x5*(-parseInt(_0x563db1(0xda))/0x6)+-parseInt(_0x563db1(0xdb))/0x7*(-parseInt(_0x563db1(0xd4))/0x8)+-parseInt(_0x563db1(0xd5))/0x9+-parseInt(_0x563db1(0xd3))/0xa*(parseInt(_0x563db1(0xd9))/0xb);if(_0x3d858b===_0x282303)break;else _0x32aa6c['push'](_0x32aa6c['shift']());}catch(_0x1f17a9){_0x32aa6c['push'](_0x32aa6c['shift']());}}}(a184_0x5dd7,0x8dfa4));export{FileHandler}from'./file-handler.js';function a184_0x5796(_0x5e0d1b,_0x3e5691){_0x5e0d1b=_0x5e0d1b-0xd3;var _0x5dd7c1=a184_0x5dd7();var _0x579638=_0x5dd7c1[_0x5e0d1b];return _0x579638;}function a184_0x5dd7(){var _0x523e96=['758136KBDzmb','21kxMXVv','73590FmfjSR','1717002vRjPGx','10SSmsRT','1109688bBJGKm','4941090YaqUxQ','20NCkOHn','80ZRvEDo','1009753uHXCWc','1735943DWDlKz'];a184_0x5dd7=function(){return _0x523e96;};return a184_0x5dd7();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ function a186_0x31c0(_0x6958fc,_0x4260c6){_0x6958fc=_0x6958fc-0x156;var _0x2a955d=a186_0x2a95();var _0x31c012=_0x2a955d[_0x6958fc];return _0x31c012;}(function(_0x1150ce,_0xdc662f){var _0x48b628=a186_0x31c0,_0x4bb168=_0x1150ce();while(!![]){try{var _0x6fdd95=parseInt(_0x48b628(0x158))/0x1+parseInt(_0x48b628(0x15a))/0x2*(parseInt(_0x48b628(0x15d))/0x3)+-parseInt(_0x48b628(0x15b))/0x4+parseInt(_0x48b628(0x15c))/0x5+-parseInt(_0x48b628(0x159))/0x6*(-parseInt(_0x48b628(0x15f))/0x7)+parseInt(_0x48b628(0x15e))/0x8+parseInt(_0x48b628(0x156))/0x9*(-parseInt(_0x48b628(0x157))/0xa);if(_0x6fdd95===_0xdc662f)break;else _0x4bb168['push'](_0x4bb168['shift']());}catch(_0x4f7c21){_0x4bb168['push'](_0x4bb168['shift']());}}}(a186_0x2a95,0xa691d));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a186_0x2a95(){var _0x4af89b=['14JepYkE','54VcpxwW','2724170uvDlWI','1314932TIapLZ','2816970StwuLK','2wvTxHC','3107576vAHGJv','1789195qdlckY','8277Jbikxs','3833160UtmNzQ'];a186_0x2a95=function(){return _0x4af89b;};return a186_0x2a95();}
@@ -1 +1 @@
1
- var a185_0x4bebda=a185_0x304e;(function(_0x589711,_0x11f615){var _0x54034d=a185_0x304e,_0x304849=_0x589711();while(!![]){try{var _0x5015ba=-parseInt(_0x54034d(0x18f))/0x1*(-parseInt(_0x54034d(0x185))/0x2)+parseInt(_0x54034d(0x188))/0x3*(parseInt(_0x54034d(0x190))/0x4)+-parseInt(_0x54034d(0x18a))/0x5+-parseInt(_0x54034d(0x18e))/0x6*(-parseInt(_0x54034d(0x189))/0x7)+-parseInt(_0x54034d(0x186))/0x8+parseInt(_0x54034d(0x191))/0x9*(-parseInt(_0x54034d(0x18c))/0xa)+parseInt(_0x54034d(0x187))/0xb*(parseInt(_0x54034d(0x18b))/0xc);if(_0x5015ba===_0x11f615)break;else _0x304849['push'](_0x304849['shift']());}catch(_0x2f73a5){_0x304849['push'](_0x304849['shift']());}}}(a185_0x2267,0x1be6f));export class NullHandler{[a185_0x4bebda(0x18d)](_0x539834){}}function a185_0x304e(_0x44388f,_0x40b759){_0x44388f=_0x44388f-0x185;var _0x226716=a185_0x2267();var _0x304e9f=_0x226716[_0x44388f];return _0x304e9f;}function a185_0x2267(){var _0x59da0e=['580488EpbFdT','485661jjcwie','471SCDlCL','7bMfvRE','839700akZHWc','12sGqGZA','10HdtEWp','handle','1310874xwPGCi','2YmDYSL','1228ieNRlT','944199TbljrG','148870YQVoOZ'];a185_0x2267=function(){return _0x59da0e;};return a185_0x2267();}
1
+ function a187_0x3a04(){var _0x2bd5fd=['3753736lAHkfl','9949LLgwGj','13693230zVzEab','132MRzMWU','7934936RHZNOG','6834606PGoyOb','handle','2407355ouiiTo','4ftpbZK','901113doVMOS'];a187_0x3a04=function(){return _0x2bd5fd;};return a187_0x3a04();}var a187_0x998a95=a187_0x1cca;function a187_0x1cca(_0x770a18,_0x3cc2c9){_0x770a18=_0x770a18-0x1d4;var _0x3a040d=a187_0x3a04();var _0x1ccad7=_0x3a040d[_0x770a18];return _0x1ccad7;}(function(_0x31420e,_0x344c1f){var _0x3399d2=a187_0x1cca,_0x442330=_0x31420e();while(!![]){try{var _0x2e475e=-parseInt(_0x3399d2(0x1d8))/0x1*(parseInt(_0x3399d2(0x1da))/0x2)+-parseInt(_0x3399d2(0x1d6))/0x3+-parseInt(_0x3399d2(0x1d5))/0x4*(-parseInt(_0x3399d2(0x1d4))/0x5)+parseInt(_0x3399d2(0x1dc))/0x6+-parseInt(_0x3399d2(0x1d7))/0x7+-parseInt(_0x3399d2(0x1db))/0x8+parseInt(_0x3399d2(0x1d9))/0x9;if(_0x2e475e===_0x344c1f)break;else _0x442330['push'](_0x442330['shift']());}catch(_0x409b24){_0x442330['push'](_0x442330['shift']());}}}(a187_0x3a04,0xa061a));export class NullHandler{[a187_0x998a95(0x1dd)](_0x269bfc){}}
@@ -1 +1 @@
1
- (function(_0x5daafc,_0x3041cd){var _0x408e25=a186_0x255e,_0x4584a4=_0x5daafc();while(!![]){try{var _0x200e80=parseInt(_0x408e25(0x188))/0x1+-parseInt(_0x408e25(0x187))/0x2*(parseInt(_0x408e25(0x181))/0x3)+-parseInt(_0x408e25(0x183))/0x4*(-parseInt(_0x408e25(0x186))/0x5)+-parseInt(_0x408e25(0x17f))/0x6*(parseInt(_0x408e25(0x182))/0x7)+parseInt(_0x408e25(0x180))/0x8+parseInt(_0x408e25(0x189))/0x9*(-parseInt(_0x408e25(0x185))/0xa)+parseInt(_0x408e25(0x184))/0xb;if(_0x200e80===_0x3041cd)break;else _0x4584a4['push'](_0x4584a4['shift']());}catch(_0x27580d){_0x4584a4['push'](_0x4584a4['shift']());}}}(a186_0x2ad9,0x80bba));export{Logger}from'./logger.js';function a186_0x255e(_0x3f2fca,_0x4bc8f1){_0x3f2fca=_0x3f2fca-0x17f;var _0x2ad98e=a186_0x2ad9();var _0x255ee0=_0x2ad98e[_0x3f2fca];return _0x255ee0;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a186_0x2ad9(){var _0xf62116=['1453460RNXkjw','6zntati','249173GZPBKR','36XOBLaY','222JdXWrZ','6172328cYXNzZ','955443mKGDMr','11221fIMpOV','8zppvDA','7529962pKjLzl','1861490tNVCPl'];a186_0x2ad9=function(){return _0xf62116;};return a186_0x2ad9();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x34cf4c,_0x4c56c4){var _0x46f426=a188_0x4caa,_0x20d271=_0x34cf4c();while(!![]){try{var _0x1eb5d2=-parseInt(_0x46f426(0x80))/0x1+-parseInt(_0x46f426(0x7a))/0x2*(-parseInt(_0x46f426(0x7d))/0x3)+-parseInt(_0x46f426(0x7e))/0x4*(parseInt(_0x46f426(0x76))/0x5)+-parseInt(_0x46f426(0x7f))/0x6*(-parseInt(_0x46f426(0x7b))/0x7)+-parseInt(_0x46f426(0x78))/0x8+-parseInt(_0x46f426(0x79))/0x9*(parseInt(_0x46f426(0x77))/0xa)+parseInt(_0x46f426(0x7c))/0xb;if(_0x1eb5d2===_0x4c56c4)break;else _0x20d271['push'](_0x20d271['shift']());}catch(_0x20bcd7){_0x20d271['push'](_0x20d271['shift']());}}}(a188_0x2fd1,0x71d02));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a188_0x2fd1(){var _0x1f6e88=['10WviPbQ','7196992iGZxLJ','4604868lcHwKc','1054346XtwixR','1192555YlYwqR','22413391eWFTbm','3FLKXKW','190184HEzkzK','6hGdYKq','334659vWYbjr','55tHMuQS'];a188_0x2fd1=function(){return _0x1f6e88;};return a188_0x2fd1();}function a188_0x4caa(_0x43c910,_0x5ea6fa){_0x43c910=_0x43c910-0x76;var _0x2fd10f=a188_0x2fd1();var _0x4caa96=_0x2fd10f[_0x43c910];return _0x4caa96;}export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- function a187_0x2b4a(){const _0x22b039=['setDefaultLevel','slice','formatter','699955QyFtGp','pendingRecords','getEffectiveLevel','TRACE','string','clearHandlers','length','4754350RAhKXE','handlers','dispatch','map','27365rpkzfz','getFormatter','levelOverrides','set','shouldLog','2YemGHl','11136543RXzOgX','name','message','initialized','shutdown','join','debug','1368493EvKnQt','ERROR','get','stack','trace','9UuJyvI','stringify','error','DEBUG','split','component',']\x20[','INFO','addHandler','setLogLevel','260iaaQkE','252150wjBvOn','reset','6TQYiqr','level','clear','push','loggers','warn','timestamp','log','has','defaultLevel','close','init','WARN','1781720SFxkhV'];a187_0x2b4a=function(){return _0x22b039;};return a187_0x2b4a();}const a187_0x34da46=a187_0x307a;(function(_0x4337d5,_0x6644b3){const _0x469785=a187_0x307a,_0xaab3ad=_0x4337d5();while(!![]){try{const _0x499365=-parseInt(_0x469785(0x1a8))/0x1*(-parseInt(_0x469785(0x1b8))/0x2)+parseInt(_0x469785(0x1d0))/0x3+parseInt(_0x469785(0x1cf))/0x4*(-parseInt(_0x469785(0x1b3))/0x5)+-parseInt(_0x469785(0x1d2))/0x6*(parseInt(_0x469785(0x1c0))/0x7)+parseInt(_0x469785(0x1a4))/0x8*(-parseInt(_0x469785(0x1c5))/0x9)+-parseInt(_0x469785(0x1af))/0xa+parseInt(_0x469785(0x1b9))/0xb;if(_0x499365===_0x6644b3)break;else _0xaab3ad['push'](_0xaab3ad['shift']());}catch(_0x4277d9){_0xaab3ad['push'](_0xaab3ad['shift']());}}}(a187_0x2b4a,0x858d0));import{LogLevel as a187_0x28ed3a,logLevelToString}from'./types.js';function a187_0x307a(_0x394529,_0x33c6d8){_0x394529=_0x394529-0x1a3;const _0x2b4aec=a187_0x2b4a();let _0x307a36=_0x2b4aec[_0x394529];return _0x307a36;}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a187_0x28ed3a[a187_0x34da46(0x1cc)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x4ee479){const _0x214288=a187_0x34da46;if(typeof _0x4ee479===_0x214288(0x1ac))return _0x4ee479;if(_0x4ee479 instanceof Error)return _0x4ee479[_0x214288(0x1c3)]||_0x4ee479[_0x214288(0x1ba)]+':\x20'+_0x4ee479['message'];try{return JSON[_0x214288(0x1c6)](_0x4ee479,(_0xcb23d2,_0x4f6bf9)=>{const _0x4e4376=_0x214288;if(_0x4f6bf9 instanceof Error)return{'name':_0x4f6bf9['name'],'message':_0x4f6bf9[_0x4e4376(0x1bb)],'stack':_0x4f6bf9[_0x4e4376(0x1c3)],'cause':_0x4f6bf9['cause']};return _0x4f6bf9;});}catch{return String(_0x4ee479);}}export class Logger{[a187_0x34da46(0x1ca)];constructor(_0x537f51){const _0x1605a8=a187_0x34da46;this[_0x1605a8(0x1ca)]=_0x537f51;}static['of'](_0x413b85){const _0x314235=a187_0x34da46,_0x354e1a=typeof _0x413b85===_0x314235(0x1ac)?_0x413b85:_0x413b85[_0x314235(0x1ba)];let _0x316244=state[_0x314235(0x1d6)][_0x314235(0x1c2)](_0x354e1a);return!_0x316244&&(_0x316244=new Logger(_0x354e1a),state[_0x314235(0x1d6)][_0x314235(0x1b6)](_0x354e1a,_0x316244)),_0x316244;}static async['init'](_0x3b8d1e={}){const _0x148790=a187_0x34da46;state[_0x148790(0x1db)]=_0x3b8d1e[_0x148790(0x1db)]??a187_0x28ed3a['INFO'],state[_0x148790(0x1b0)]=_0x3b8d1e[_0x148790(0x1b0)]??[],state[_0x148790(0x1a7)]=_0x3b8d1e[_0x148790(0x1a7)]??null,state['levelOverrides']['clear']();if(_0x3b8d1e[_0x148790(0x1b5)])for(const [_0x41158a,_0xe8aa1]of Object['entries'](_0x3b8d1e[_0x148790(0x1b5)])){state[_0x148790(0x1b5)][_0x148790(0x1b6)](_0x41158a,_0xe8aa1);}for(const _0x5ed6df of state[_0x148790(0x1b0)]){_0x5ed6df[_0x148790(0x1dd)]&&await _0x5ed6df['init']();}state[_0x148790(0x1bc)]=!![];for(const _0xaff287 of state[_0x148790(0x1a9)]){Logger[_0x148790(0x1b1)](_0xaff287);}state[_0x148790(0x1a9)]=[];}static[a187_0x34da46(0x1ce)](_0x31b3e1,_0x3d68f3){state['levelOverrides']['set'](_0x31b3e1,_0x3d68f3);}static[a187_0x34da46(0x1a5)](_0x567aa6){const _0x1037eb=a187_0x34da46;state[_0x1037eb(0x1db)]=_0x567aa6;}static[a187_0x34da46(0x1cd)](_0x5a12d7){const _0x176250=a187_0x34da46;state[_0x176250(0x1b0)]['push'](_0x5a12d7),state[_0x176250(0x1bc)]&&_0x5a12d7['init']&&_0x5a12d7['init']();}static[a187_0x34da46(0x1ad)](){const _0x15d6a2=a187_0x34da46;state[_0x15d6a2(0x1b0)]=[];}static async[a187_0x34da46(0x1bd)](){const _0x5b3c3c=a187_0x34da46;for(const _0x8f5aa of state[_0x5b3c3c(0x1b0)]){_0x8f5aa[_0x5b3c3c(0x1dc)]&&await _0x8f5aa[_0x5b3c3c(0x1dc)]();}state[_0x5b3c3c(0x1b0)]=[],state[_0x5b3c3c(0x1bc)]=![],state[_0x5b3c3c(0x1d6)][_0x5b3c3c(0x1d4)](),state[_0x5b3c3c(0x1a9)]=[];}static[a187_0x34da46(0x1d1)](){const _0x59402b=a187_0x34da46;state[_0x59402b(0x1bc)]=![],state[_0x59402b(0x1db)]=a187_0x28ed3a[_0x59402b(0x1cc)],state[_0x59402b(0x1b5)][_0x59402b(0x1d4)](),state[_0x59402b(0x1b0)]=[],state[_0x59402b(0x1a7)]=null,state['loggers'][_0x59402b(0x1d4)](),state['pendingRecords']=[];}static['isInitialized'](){const _0x254b57=a187_0x34da46;return state[_0x254b57(0x1bc)];}static[a187_0x34da46(0x1aa)](_0x61589f){const _0xa9fd4b=a187_0x34da46;if(state[_0xa9fd4b(0x1b5)][_0xa9fd4b(0x1da)](_0x61589f))return state['levelOverrides'][_0xa9fd4b(0x1c2)](_0x61589f);const _0x2db426=_0x61589f[_0xa9fd4b(0x1c9)]('.');for(let _0x494357=_0x2db426[_0xa9fd4b(0x1ae)]-0x1;_0x494357>0x0;_0x494357--){const _0x51eccc=_0x2db426[_0xa9fd4b(0x1a6)](0x0,_0x494357)['join']('.');if(state[_0xa9fd4b(0x1b5)][_0xa9fd4b(0x1da)](_0x51eccc))return state['levelOverrides'][_0xa9fd4b(0x1c2)](_0x51eccc);}return state[_0xa9fd4b(0x1db)];}[a187_0x34da46(0x1b7)](_0x5163ce){const _0x507a3a=a187_0x34da46,_0x3f3a93=Logger[_0x507a3a(0x1aa)](this['component']);return _0x5163ce>=_0x3f3a93;}static['dispatch'](_0x4a73a7){const _0x58e944=a187_0x34da46;for(const _0x1ab7cc of state[_0x58e944(0x1b0)]){_0x1ab7cc['handle'](_0x4a73a7);}}['log'](_0x1bfcf8,_0x47b9b6){const _0x20bd3f=a187_0x34da46;if(!this['shouldLog'](_0x1bfcf8))return;const _0xa8e84d=_0x47b9b6[_0x20bd3f(0x1b2)](_0x2aebff=>typeof _0x2aebff==='function'?_0x2aebff():_0x2aebff),_0x46d615=_0xa8e84d[_0x20bd3f(0x1b2)](safeStringify)[_0x20bd3f(0x1be)]('\x20'),_0x5413a4={'timestamp':new Date(),'level':_0x1bfcf8,'component':this[_0x20bd3f(0x1ca)],'message':_0x46d615};if(!state['initialized']){state[_0x20bd3f(0x1a9)][_0x20bd3f(0x1ae)]<MAX_PENDING_RECORDS&&state[_0x20bd3f(0x1a9)][_0x20bd3f(0x1d5)](_0x5413a4);return;}Logger[_0x20bd3f(0x1b1)](_0x5413a4);}[a187_0x34da46(0x1c4)](..._0xe59ac2){const _0x449fc8=a187_0x34da46;this[_0x449fc8(0x1d9)](a187_0x28ed3a[_0x449fc8(0x1ab)],_0xe59ac2);}[a187_0x34da46(0x1bf)](..._0x563d35){const _0x9f04a0=a187_0x34da46;this['log'](a187_0x28ed3a[_0x9f04a0(0x1c8)],_0x563d35);}['info'](..._0x25abdf){const _0x5b3cfa=a187_0x34da46;this[_0x5b3cfa(0x1d9)](a187_0x28ed3a[_0x5b3cfa(0x1cc)],_0x25abdf);}[a187_0x34da46(0x1d7)](..._0x260ac9){const _0x19c93b=a187_0x34da46;this[_0x19c93b(0x1d9)](a187_0x28ed3a[_0x19c93b(0x1a3)],_0x260ac9);}[a187_0x34da46(0x1c7)](..._0x435bae){const _0x117676=a187_0x34da46;this[_0x117676(0x1d9)](a187_0x28ed3a[_0x117676(0x1c1)],_0x435bae);}static[a187_0x34da46(0x1b4)](){const _0x286d72=a187_0x34da46;return state[_0x286d72(0x1a7)];}static['format'](_0xc35ad2){const _0x2f6dfe=a187_0x34da46;if(state[_0x2f6dfe(0x1a7)])return state[_0x2f6dfe(0x1a7)]['format'](_0xc35ad2);return _0xc35ad2[_0x2f6dfe(0x1d8)]['toISOString']()+'\x20['+logLevelToString(_0xc35ad2[_0x2f6dfe(0x1d3)])+_0x2f6dfe(0x1cb)+_0xc35ad2[_0x2f6dfe(0x1ca)]+']\x20'+_0xc35ad2[_0x2f6dfe(0x1bb)];}}
1
+ function a189_0x35a5(){const _0x5c5e83=['join','close','error','init','split','setLogLevel','function','INFO','get','initialized','2680452EdgcJS','length','debug','string','clear','loggers','push','reset','ERROR','WARN','7vPPpgQ','pendingRecords','message','stringify','format','set','formatter','DEBUG','stack','timestamp','31fOBwof','shouldLog','slice','defaultLevel','27074WuTirs','dispatch','4750875uHzuPo','warn','9230488ZnGHgD','784644Eadpqr','handle',']\x20[','getFormatter','info','log','cause','component','handlers','8466012anqofD','levelOverrides','has','map','name','4197920fdbTOP'];a189_0x35a5=function(){return _0x5c5e83;};return a189_0x35a5();}const a189_0x11b205=a189_0x3984;(function(_0x9efbca,_0x7fcc44){const _0x3b8d9b=a189_0x3984,_0x6ebc57=_0x9efbca();while(!![]){try{const _0xf7d36c=parseInt(_0x3b8d9b(0x159))/0x1*(-parseInt(_0x3b8d9b(0x15d))/0x2)+parseInt(_0x3b8d9b(0x15f))/0x3+-parseInt(_0x3b8d9b(0x145))/0x4+parseInt(_0x3b8d9b(0x13a))/0x5+-parseInt(_0x3b8d9b(0x162))/0x6+parseInt(_0x3b8d9b(0x14f))/0x7*(-parseInt(_0x3b8d9b(0x161))/0x8)+parseInt(_0x3b8d9b(0x16b))/0x9;if(_0xf7d36c===_0x7fcc44)break;else _0x6ebc57['push'](_0x6ebc57['shift']());}catch(_0x2f04c0){_0x6ebc57['push'](_0x6ebc57['shift']());}}}(a189_0x35a5,0xf195c));import{LogLevel as a189_0x5606b1,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a189_0x5606b1['INFO'],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x4d4b17){const _0x1ce01e=a189_0x3984;if(typeof _0x4d4b17===_0x1ce01e(0x148))return _0x4d4b17;if(_0x4d4b17 instanceof Error)return _0x4d4b17[_0x1ce01e(0x157)]||_0x4d4b17['name']+':\x20'+_0x4d4b17[_0x1ce01e(0x151)];try{return JSON[_0x1ce01e(0x152)](_0x4d4b17,(_0x2b3f96,_0x3acd1a)=>{const _0xb7f7d3=_0x1ce01e;if(_0x3acd1a instanceof Error)return{'name':_0x3acd1a[_0xb7f7d3(0x139)],'message':_0x3acd1a[_0xb7f7d3(0x151)],'stack':_0x3acd1a[_0xb7f7d3(0x157)],'cause':_0x3acd1a[_0xb7f7d3(0x168)]};return _0x3acd1a;});}catch{return String(_0x4d4b17);}}function a189_0x3984(_0x43e7b9,_0x181f61){_0x43e7b9=_0x43e7b9-0x137;const _0x35a5d0=a189_0x35a5();let _0x39843c=_0x35a5d0[_0x43e7b9];return _0x39843c;}export class Logger{[a189_0x11b205(0x169)];constructor(_0x288872){const _0x222ad7=a189_0x11b205;this[_0x222ad7(0x169)]=_0x288872;}static['of'](_0x1bf589){const _0x3dcaa0=a189_0x11b205,_0x360b0d=typeof _0x1bf589==='string'?_0x1bf589:_0x1bf589['name'];let _0x3a65ec=state['loggers'][_0x3dcaa0(0x143)](_0x360b0d);return!_0x3a65ec&&(_0x3a65ec=new Logger(_0x360b0d),state[_0x3dcaa0(0x14a)]['set'](_0x360b0d,_0x3a65ec)),_0x3a65ec;}static async['init'](_0x1d0eb7={}){const _0x52870a=a189_0x11b205;state[_0x52870a(0x15c)]=_0x1d0eb7[_0x52870a(0x15c)]??a189_0x5606b1[_0x52870a(0x142)],state['handlers']=_0x1d0eb7['handlers']??[],state['formatter']=_0x1d0eb7[_0x52870a(0x155)]??null,state[_0x52870a(0x16c)][_0x52870a(0x149)]();if(_0x1d0eb7[_0x52870a(0x16c)])for(const [_0x1c088a,_0x138b95]of Object['entries'](_0x1d0eb7[_0x52870a(0x16c)])){state['levelOverrides']['set'](_0x1c088a,_0x138b95);}for(const _0x2f7981 of state[_0x52870a(0x16a)]){_0x2f7981['init']&&await _0x2f7981[_0x52870a(0x13e)]();}state[_0x52870a(0x144)]=!![];for(const _0x378de3 of state[_0x52870a(0x150)]){Logger[_0x52870a(0x15e)](_0x378de3);}state['pendingRecords']=[];}static[a189_0x11b205(0x140)](_0x19757d,_0x2bce35){const _0x1e5ec1=a189_0x11b205;state[_0x1e5ec1(0x16c)][_0x1e5ec1(0x154)](_0x19757d,_0x2bce35);}static['setDefaultLevel'](_0x5c0535){state['defaultLevel']=_0x5c0535;}static['addHandler'](_0x531e72){const _0x28d2ea=a189_0x11b205;state['handlers'][_0x28d2ea(0x14b)](_0x531e72),state[_0x28d2ea(0x144)]&&_0x531e72[_0x28d2ea(0x13e)]&&_0x531e72[_0x28d2ea(0x13e)]();}static['clearHandlers'](){const _0x310380=a189_0x11b205;state[_0x310380(0x16a)]=[];}static async['shutdown'](){const _0x1af3e3=a189_0x11b205;for(const _0x497dfa of state[_0x1af3e3(0x16a)]){_0x497dfa[_0x1af3e3(0x13c)]&&await _0x497dfa[_0x1af3e3(0x13c)]();}state[_0x1af3e3(0x16a)]=[],state[_0x1af3e3(0x144)]=![],state['loggers']['clear'](),state['pendingRecords']=[];}static[a189_0x11b205(0x14c)](){const _0x1cd0a9=a189_0x11b205;state['initialized']=![],state['defaultLevel']=a189_0x5606b1[_0x1cd0a9(0x142)],state['levelOverrides']['clear'](),state['handlers']=[],state['formatter']=null,state[_0x1cd0a9(0x14a)][_0x1cd0a9(0x149)](),state[_0x1cd0a9(0x150)]=[];}static['isInitialized'](){const _0x187091=a189_0x11b205;return state[_0x187091(0x144)];}static['getEffectiveLevel'](_0x1db7d2){const _0x3a0d37=a189_0x11b205;if(state['levelOverrides'][_0x3a0d37(0x137)](_0x1db7d2))return state['levelOverrides'][_0x3a0d37(0x143)](_0x1db7d2);const _0x5cd5fe=_0x1db7d2[_0x3a0d37(0x13f)]('.');for(let _0x15a0a7=_0x5cd5fe[_0x3a0d37(0x146)]-0x1;_0x15a0a7>0x0;_0x15a0a7--){const _0x53f345=_0x5cd5fe[_0x3a0d37(0x15b)](0x0,_0x15a0a7)[_0x3a0d37(0x13b)]('.');if(state[_0x3a0d37(0x16c)][_0x3a0d37(0x137)](_0x53f345))return state['levelOverrides'][_0x3a0d37(0x143)](_0x53f345);}return state[_0x3a0d37(0x15c)];}[a189_0x11b205(0x15a)](_0xc415e0){const _0x5919df=a189_0x11b205,_0xc201c4=Logger['getEffectiveLevel'](this[_0x5919df(0x169)]);return _0xc415e0>=_0xc201c4;}static[a189_0x11b205(0x15e)](_0x73ccae){const _0x48aba0=a189_0x11b205;for(const _0x4d7a5b of state[_0x48aba0(0x16a)]){_0x4d7a5b[_0x48aba0(0x163)](_0x73ccae);}}['log'](_0x2d4f7d,_0x59402c){const _0x4538ce=a189_0x11b205;if(!this[_0x4538ce(0x15a)](_0x2d4f7d))return;const _0x41b0de=_0x59402c[_0x4538ce(0x138)](_0x1d2fbf=>typeof _0x1d2fbf===_0x4538ce(0x141)?_0x1d2fbf():_0x1d2fbf),_0x5052be=_0x41b0de[_0x4538ce(0x138)](safeStringify)[_0x4538ce(0x13b)]('\x20'),_0x396674={'timestamp':new Date(),'level':_0x2d4f7d,'component':this[_0x4538ce(0x169)],'message':_0x5052be};if(!state[_0x4538ce(0x144)]){state[_0x4538ce(0x150)]['length']<MAX_PENDING_RECORDS&&state[_0x4538ce(0x150)]['push'](_0x396674);return;}Logger[_0x4538ce(0x15e)](_0x396674);}['trace'](..._0x5ab678){const _0x7cf17f=a189_0x11b205;this[_0x7cf17f(0x167)](a189_0x5606b1['TRACE'],_0x5ab678);}[a189_0x11b205(0x147)](..._0x51e264){const _0x551262=a189_0x11b205;this[_0x551262(0x167)](a189_0x5606b1[_0x551262(0x156)],_0x51e264);}[a189_0x11b205(0x166)](..._0x12ab6b){const _0x5aaeaf=a189_0x11b205;this[_0x5aaeaf(0x167)](a189_0x5606b1[_0x5aaeaf(0x142)],_0x12ab6b);}[a189_0x11b205(0x160)](..._0x8cb6e9){const _0x159a9f=a189_0x11b205;this[_0x159a9f(0x167)](a189_0x5606b1[_0x159a9f(0x14e)],_0x8cb6e9);}[a189_0x11b205(0x13d)](..._0xebdbd6){const _0x26af81=a189_0x11b205;this[_0x26af81(0x167)](a189_0x5606b1[_0x26af81(0x14d)],_0xebdbd6);}static[a189_0x11b205(0x165)](){const _0x29be36=a189_0x11b205;return state[_0x29be36(0x155)];}static[a189_0x11b205(0x153)](_0x41ece9){const _0x3d04a2=a189_0x11b205;if(state['formatter'])return state[_0x3d04a2(0x155)][_0x3d04a2(0x153)](_0x41ece9);return _0x41ece9[_0x3d04a2(0x158)]['toISOString']()+'\x20['+logLevelToString(_0x41ece9['level'])+_0x3d04a2(0x164)+_0x41ece9['component']+']\x20'+_0x41ece9[_0x3d04a2(0x151)];}}
@@ -1 +1 @@
1
- (function(_0x22bfaa,_0x241d39){const _0x3daceb=a188_0x3aef,_0x353000=_0x22bfaa();while(!![]){try{const _0x33de03=-parseInt(_0x3daceb(0x11d))/0x1+-parseInt(_0x3daceb(0x12b))/0x2+parseInt(_0x3daceb(0x12a))/0x3*(-parseInt(_0x3daceb(0x130))/0x4)+parseInt(_0x3daceb(0x11c))/0x5+parseInt(_0x3daceb(0x120))/0x6+-parseInt(_0x3daceb(0x138))/0x7*(parseInt(_0x3daceb(0x123))/0x8)+parseInt(_0x3daceb(0x131))/0x9;if(_0x33de03===_0x241d39)break;else _0x353000['push'](_0x353000['shift']());}catch(_0xf570f){_0x353000['push'](_0x353000['shift']());}}}(a188_0x5efd,0xc54b2));export var LogLevel;function a188_0x3aef(_0x298ef1,_0x40090b){_0x298ef1=_0x298ef1-0x11b;const _0x5efd33=a188_0x5efd();let _0x3aef12=_0x5efd33[_0x298ef1];return _0x3aef12;}(function(_0x2c94cf){const _0x202ee2=a188_0x3aef;_0x2c94cf[_0x2c94cf['TRACE']=-0x2]=_0x202ee2(0x12c),_0x2c94cf[_0x2c94cf[_0x202ee2(0x124)]=-0x1]=_0x202ee2(0x124),_0x2c94cf[_0x2c94cf['INFO']=0x0]=_0x202ee2(0x12d),_0x2c94cf[_0x2c94cf[_0x202ee2(0x129)]=0x1]=_0x202ee2(0x129),_0x2c94cf[_0x2c94cf[_0x202ee2(0x11b)]=0x2]=_0x202ee2(0x11b);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x46992c){const _0x515bcf=a188_0x3aef;switch(_0x46992c['toUpperCase']()){case _0x515bcf(0x12c):return LogLevel[_0x515bcf(0x12c)];case _0x515bcf(0x124):return LogLevel[_0x515bcf(0x124)];case'INFO':return LogLevel['INFO'];case _0x515bcf(0x129):case _0x515bcf(0x11e):return LogLevel['WARN'];case _0x515bcf(0x11b):return LogLevel[_0x515bcf(0x11b)];default:return LogLevel['INFO'];}}export function logLevelToString(_0x5d0e92){const _0x108b32=a188_0x3aef;switch(_0x5d0e92){case LogLevel[_0x108b32(0x12c)]:return _0x108b32(0x11f);case LogLevel['DEBUG']:return'debug';case LogLevel[_0x108b32(0x12d)]:return _0x108b32(0x134);case LogLevel['WARN']:return _0x108b32(0x121);case LogLevel[_0x108b32(0x11b)]:return _0x108b32(0x126);default:return _0x108b32(0x134);}}function a188_0x5efd(){const _0x4af90f=['warn','getTimezoneOffset','411032MEFtgl','DEBUG','getFullYear','error','getSeconds','floor','WARN','881403SMLrvv','1618556ffZvHp','TRACE','INFO','getHours','getMonth','20pjtzOA','17926101pYzPbY','getDate','padStart','info','toString','abs','getMilliseconds','21QpSKcN','ERROR','3311305pgGyuo','188324yBQrmv','WARNING','trace','4648848jXhaIB'];a188_0x5efd=function(){return _0x4af90f;};return a188_0x5efd();}export function formatTimestamp(_0x5caa32){const _0x50eb5c=a188_0x3aef,_0x41c6fc=_0x5caa32[_0x50eb5c(0x125)](),_0x2cf4ac=(_0x5caa32[_0x50eb5c(0x12f)]()+0x1)[_0x50eb5c(0x135)]()[_0x50eb5c(0x133)](0x2,'0'),_0x3d980f=_0x5caa32[_0x50eb5c(0x132)]()[_0x50eb5c(0x135)]()['padStart'](0x2,'0'),_0x43a2ed=_0x5caa32[_0x50eb5c(0x12e)]()[_0x50eb5c(0x135)]()[_0x50eb5c(0x133)](0x2,'0'),_0x481845=_0x5caa32['getMinutes']()[_0x50eb5c(0x135)]()['padStart'](0x2,'0'),_0x392371=_0x5caa32[_0x50eb5c(0x127)]()[_0x50eb5c(0x135)]()['padStart'](0x2,'0'),_0xde6df=_0x5caa32[_0x50eb5c(0x137)]()[_0x50eb5c(0x135)]()[_0x50eb5c(0x133)](0x3,'0'),_0x38a783=-_0x5caa32[_0x50eb5c(0x122)](),_0x218348=Math[_0x50eb5c(0x128)](Math[_0x50eb5c(0x136)](_0x38a783)/0x3c),_0x382401=Math[_0x50eb5c(0x136)](_0x38a783)%0x3c,_0x2ab10e=_0x38a783>=0x0?'+':'-',_0x12b8be=''+_0x2ab10e+_0x218348['toString']()[_0x50eb5c(0x133)](0x2,'0')+_0x382401['toString']()[_0x50eb5c(0x133)](0x2,'0');return _0x41c6fc+'-'+_0x2cf4ac+'-'+_0x3d980f+'\x20'+_0x43a2ed+':'+_0x481845+':'+_0x392371+'.'+_0xde6df+_0x12b8be;}
1
+ function a190_0x2f1e(_0x5ee32a,_0x5462e6){_0x5ee32a=_0x5ee32a-0x126;const _0xc37431=a190_0xc374();let _0x2f1eda=_0xc37431[_0x5ee32a];return _0x2f1eda;}function a190_0xc374(){const _0x3d1bb3=['319672jxFllG','getHours','abs','INFO','8kGdkvF','warn','trace','getMonth','7RSCRcd','4mkdJnu','padStart','DEBUG','getTimezoneOffset','toString','TRACE','WARN','2563kxdUyi','9923148rKRwnP','error','getFullYear','427023CxCafT','getMilliseconds','ERROR','8198340LgxepC','80hRvwoJ','15396ztHrrz','info','5010213LhhKkK','1341972UEfPrH'];a190_0xc374=function(){return _0x3d1bb3;};return a190_0xc374();}(function(_0x3452b2,_0x23ab01){const _0x52188d=a190_0x2f1e,_0x567115=_0x3452b2();while(!![]){try{const _0x3a3f17=-parseInt(_0x52188d(0x141))/0x1*(-parseInt(_0x52188d(0x131))/0x2)+parseInt(_0x52188d(0x12b))/0x3*(parseInt(_0x52188d(0x136))/0x4)+-parseInt(_0x52188d(0x127))/0x5+-parseInt(_0x52188d(0x13e))/0x6+-parseInt(_0x52188d(0x135))/0x7*(parseInt(_0x52188d(0x12d))/0x8)+-parseInt(_0x52188d(0x12c))/0x9*(-parseInt(_0x52188d(0x128))/0xa)+-parseInt(_0x52188d(0x13d))/0xb*(parseInt(_0x52188d(0x129))/0xc);if(_0x3a3f17===_0x23ab01)break;else _0x567115['push'](_0x567115['shift']());}catch(_0x43e527){_0x567115['push'](_0x567115['shift']());}}}(a190_0xc374,0xe526b));export var LogLevel;(function(_0x112d85){const _0x12e47c=a190_0x2f1e;_0x112d85[_0x112d85[_0x12e47c(0x13b)]=-0x2]=_0x12e47c(0x13b),_0x112d85[_0x112d85[_0x12e47c(0x138)]=-0x1]=_0x12e47c(0x138),_0x112d85[_0x112d85[_0x12e47c(0x130)]=0x0]=_0x12e47c(0x130),_0x112d85[_0x112d85[_0x12e47c(0x13c)]=0x1]='WARN',_0x112d85[_0x112d85[_0x12e47c(0x126)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x4d8f1f){const _0x34b1bf=a190_0x2f1e;switch(_0x4d8f1f['toUpperCase']()){case _0x34b1bf(0x13b):return LogLevel[_0x34b1bf(0x13b)];case'DEBUG':return LogLevel[_0x34b1bf(0x138)];case _0x34b1bf(0x130):return LogLevel[_0x34b1bf(0x130)];case _0x34b1bf(0x13c):case'WARNING':return LogLevel[_0x34b1bf(0x13c)];case _0x34b1bf(0x126):return LogLevel[_0x34b1bf(0x126)];default:return LogLevel[_0x34b1bf(0x130)];}}export function logLevelToString(_0x1c6a09){const _0x4d5ad7=a190_0x2f1e;switch(_0x1c6a09){case LogLevel[_0x4d5ad7(0x13b)]:return _0x4d5ad7(0x133);case LogLevel['DEBUG']:return'debug';case LogLevel['INFO']:return _0x4d5ad7(0x12a);case LogLevel['WARN']:return _0x4d5ad7(0x132);case LogLevel[_0x4d5ad7(0x126)]:return _0x4d5ad7(0x13f);default:return _0x4d5ad7(0x12a);}}export function formatTimestamp(_0x4f38cb){const _0x32c185=a190_0x2f1e,_0x1254e4=_0x4f38cb[_0x32c185(0x140)](),_0x251508=(_0x4f38cb[_0x32c185(0x134)]()+0x1)[_0x32c185(0x13a)]()['padStart'](0x2,'0'),_0x4cd883=_0x4f38cb['getDate']()['toString']()[_0x32c185(0x137)](0x2,'0'),_0x49c371=_0x4f38cb[_0x32c185(0x12e)]()[_0x32c185(0x13a)]()[_0x32c185(0x137)](0x2,'0'),_0x5ba47a=_0x4f38cb['getMinutes']()['toString']()[_0x32c185(0x137)](0x2,'0'),_0x5aef98=_0x4f38cb['getSeconds']()[_0x32c185(0x13a)]()['padStart'](0x2,'0'),_0x5b3e58=_0x4f38cb[_0x32c185(0x142)]()[_0x32c185(0x13a)]()['padStart'](0x3,'0'),_0x239445=-_0x4f38cb[_0x32c185(0x139)](),_0x5449ed=Math['floor'](Math['abs'](_0x239445)/0x3c),_0x497a54=Math[_0x32c185(0x12f)](_0x239445)%0x3c,_0x31f168=_0x239445>=0x0?'+':'-',_0x19f478=''+_0x31f168+_0x5449ed[_0x32c185(0x13a)]()[_0x32c185(0x137)](0x2,'0')+_0x497a54[_0x32c185(0x13a)]()['padStart'](0x2,'0');return _0x1254e4+'-'+_0x251508+'-'+_0x4cd883+'\x20'+_0x49c371+':'+_0x5ba47a+':'+_0x5aef98+'.'+_0x5b3e58+_0x19f478;}
@@ -1 +1 @@
1
- function a189_0x372a(_0x160950,_0x5ea536){_0x160950=_0x160950-0x1be;const _0x29b47b=a189_0x29b4();let _0x372add=_0x29b47b[_0x160950];return _0x372add;}(function(_0x5da50f,_0x22d81f){const _0x363103=a189_0x372a,_0x3e8181=_0x5da50f();while(!![]){try{const _0x55a8f6=-parseInt(_0x363103(0x1cc))/0x1+-parseInt(_0x363103(0x1c3))/0x2+parseInt(_0x363103(0x1bf))/0x3*(-parseInt(_0x363103(0x1c0))/0x4)+parseInt(_0x363103(0x1c4))/0x5*(-parseInt(_0x363103(0x1c1))/0x6)+parseInt(_0x363103(0x1cd))/0x7*(parseInt(_0x363103(0x1ca))/0x8)+-parseInt(_0x363103(0x1be))/0x9*(-parseInt(_0x363103(0x1c5))/0xa)+-parseInt(_0x363103(0x1c8))/0xb*(-parseInt(_0x363103(0x1c6))/0xc);if(_0x55a8f6===_0x22d81f)break;else _0x3e8181['push'](_0x3e8181['shift']());}catch(_0x45dc03){_0x3e8181['push'](_0x3e8181['shift']());}}}(a189_0x29b4,0x92ca8));export function validateLimitOption(_0x377a69){const _0xb81aa1=a189_0x372a;if(!Number['isInteger'](_0x377a69))return{'isValid':![],'error':_0xb81aa1(0x1cb)+_0x377a69+_0xb81aa1(0x1c7)};if(_0x377a69<=0x0)return{'isValid':![],'error':_0xb81aa1(0x1cb)+_0x377a69+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x377a69};}export function validateTimeoutOption(_0x55e0a1,_0x3e9a97=0x1e){const _0x252fe8=a189_0x372a;if(_0x55e0a1===undefined)return{'isValid':!![],'value':_0x3e9a97};const _0x3b7f5b=typeof _0x55e0a1==='number'?_0x55e0a1:parseFloat(_0x55e0a1);if(isNaN(_0x3b7f5b))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x55e0a1+_0x252fe8(0x1c9)};if(_0x3b7f5b<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x3b7f5b+_0x252fe8(0x1c2)};return{'isValid':!![],'value':_0x3b7f5b};}function a189_0x29b4(){const _0x25f79d=['10244592ZZGAkV','59964DUzLuq','184LgsXqn','66PKoQka','.\x20Must\x20be\x20a\x20positive\x20number.','722718rLwHJl','372095igmwSU','10HcCiCg','372HQGwse','.\x20Must\x20be\x20an\x20integer.','626219AYtEFC','.\x20Must\x20be\x20a\x20number.','6488kAwlHT','Invalid\x20limit\x20value:\x20','748218UnwWZj','4711HWRmqn'];a189_0x29b4=function(){return _0x25f79d;};return a189_0x29b4();}
1
+ (function(_0x1ab006,_0x9e2345){const _0x4ca816=a191_0x2e79,_0x138404=_0x1ab006();while(!![]){try{const _0x50f469=-parseInt(_0x4ca816(0x1a9))/0x1*(parseInt(_0x4ca816(0x1aa))/0x2)+-parseInt(_0x4ca816(0x1a8))/0x3*(parseInt(_0x4ca816(0x1a2))/0x4)+-parseInt(_0x4ca816(0x1a1))/0x5+-parseInt(_0x4ca816(0x19f))/0x6*(parseInt(_0x4ca816(0x1a5))/0x7)+-parseInt(_0x4ca816(0x1ab))/0x8+parseInt(_0x4ca816(0x1ad))/0x9+parseInt(_0x4ca816(0x1a7))/0xa;if(_0x50f469===_0x9e2345)break;else _0x138404['push'](_0x138404['shift']());}catch(_0x2ae1dc){_0x138404['push'](_0x138404['shift']());}}}(a191_0x1a75,0x23104));function a191_0x1a75(){const _0x3213c5=['Invalid\x20limit\x20value:\x20','710352PFPyTO','.\x20Must\x20be\x20a\x20positive\x20number.','6Chsqup','.\x20Must\x20be\x20an\x20integer.','949110BKwNXQ','1029580qGiwLi','isInteger','number','1372231uZDTMJ','Invalid\x20timeout\x20value:\x20','7675630dnbXup','3TOSVDw','33223fbJgSL','2OMBaTF','211184BzIOJa'];a191_0x1a75=function(){return _0x3213c5;};return a191_0x1a75();}function a191_0x2e79(_0x4ba0c4,_0x1ee17a){_0x4ba0c4=_0x4ba0c4-0x19e;const _0x1a75d6=a191_0x1a75();let _0x2e793f=_0x1a75d6[_0x4ba0c4];return _0x2e793f;}export function validateLimitOption(_0x2cbcc2){const _0x274a1b=a191_0x2e79;if(!Number[_0x274a1b(0x1a3)](_0x2cbcc2))return{'isValid':![],'error':_0x274a1b(0x1ac)+_0x2cbcc2+_0x274a1b(0x1a0)};if(_0x2cbcc2<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2cbcc2+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x2cbcc2};}export function validateTimeoutOption(_0x2ab658,_0x52a2b2=0x1e){const _0x32741d=a191_0x2e79;if(_0x2ab658===undefined)return{'isValid':!![],'value':_0x52a2b2};const _0x4fd9b9=typeof _0x2ab658===_0x32741d(0x1a4)?_0x2ab658:parseFloat(_0x2ab658);if(isNaN(_0x4fd9b9))return{'isValid':![],'error':_0x32741d(0x1a6)+_0x2ab658+'.\x20Must\x20be\x20a\x20number.'};if(_0x4fd9b9<=0x0)return{'isValid':![],'error':_0x32741d(0x1a6)+_0x4fd9b9+_0x32741d(0x19e)};return{'isValid':!![],'value':_0x4fd9b9};}
@@ -1 +1 @@
1
- const a190_0x522aea=a190_0x47fb;(function(_0x4b6a73,_0x3ff850){const _0x3893ad=a190_0x47fb,_0xb03a26=_0x4b6a73();while(!![]){try{const _0x1eed62=parseInt(_0x3893ad(0x181))/0x1*(parseInt(_0x3893ad(0x18e))/0x2)+parseInt(_0x3893ad(0x1b9))/0x3+parseInt(_0x3893ad(0x189))/0x4+-parseInt(_0x3893ad(0x1b5))/0x5+parseInt(_0x3893ad(0x183))/0x6*(parseInt(_0x3893ad(0x17b))/0x7)+parseInt(_0x3893ad(0x1b4))/0x8+parseInt(_0x3893ad(0x182))/0x9*(-parseInt(_0x3893ad(0x192))/0xa);if(_0x1eed62===_0x3ff850)break;else _0xb03a26['push'](_0xb03a26['shift']());}catch(_0x35872f){_0xb03a26['push'](_0xb03a26['shift']());}}}(a190_0x310b,0x9cd49));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a190_0x522aea(0x18d),a190_0x522aea(0x198),'sh',a190_0x522aea(0x1ab),a190_0x522aea(0x1ac),a190_0x522aea(0x1b3),a190_0x522aea(0x1a9),a190_0x522aea(0x199),a190_0x522aea(0x191),a190_0x522aea(0x180),'nu',a190_0x522aea(0x18b),a190_0x522aea(0x1a2),a190_0x522aea(0x196)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a190_0x522aea(0x17e),'code',a190_0x522aea(0x1ae),a190_0x522aea(0x1b6),a190_0x522aea(0x19d)]);function getProcessInfoWindows(_0x50664d){const _0x1277b1=a190_0x522aea;try{if(!Number[_0x1277b1(0x1af)](_0x50664d)||_0x50664d<=0x0)return null;const _0x2f2c66=_0x1277b1(0x1b7)+_0x50664d+_0x1277b1(0x18c),_0x3812c2=execSync(_0x1277b1(0x1a8)+_0x2f2c66+'\x22',{'encoding':_0x1277b1(0x194),'windowsHide':!![],'stdio':[_0x1277b1(0x17c),_0x1277b1(0x17c),_0x1277b1(0x17c)]})[_0x1277b1(0x17f)]();if(!_0x3812c2)return null;const [_0x13bf55,..._0x3342dd]=_0x3812c2[_0x1277b1(0x19a)](','),_0x403774=parseInt(_0x13bf55,0xa),_0x900cc2=_0x3342dd[_0x1277b1(0x1ba)](',')['trim']();if(isNaN(_0x403774)||!_0x900cc2)return null;return{'pid':_0x50664d,'ppid':_0x403774,'comm':_0x900cc2['replace'](/\.exe$/i,'')};}catch{return null;}}function a190_0x47fb(_0x192c1b,_0xdfa27a){_0x192c1b=_0x192c1b-0x17b;const _0x310bf=a190_0x310b();let _0x47fb11=_0x310bf[_0x192c1b];return _0x47fb11;}function getProcessInfoPosix(_0x1ebf79){const _0x15d203=a190_0x522aea;try{const _0x4cc890=0x400000;if(!Number[_0x15d203(0x1af)](_0x1ebf79)||_0x1ebf79<=0x0||_0x1ebf79>_0x4cc890)return null;const _0x56c877=execSync(_0x15d203(0x184)+_0x1ebf79+_0x15d203(0x19f),{'encoding':'utf-8','stdio':_0x15d203(0x17c)})[_0x15d203(0x17f)](),[_0x5a0261,..._0x253913]=_0x56c877['split'](/\s+/),_0x52d122=parseInt(_0x5a0261,0xa),_0x1c366a=_0x253913['join']('\x20');if(isNaN(_0x52d122))return null;return{'pid':_0x1ebf79,'ppid':_0x52d122,'comm':_0x1c366a};}catch{return null;}}function getProcessInfo(_0x360ba6){const _0x22cbb7=a190_0x522aea;if(process[_0x22cbb7(0x1a0)]===_0x22cbb7(0x19e))return getProcessInfoWindows(_0x360ba6);return getProcessInfoPosix(_0x360ba6);}function getBasename(_0x28069b){const _0x3f8635=a190_0x522aea;return _0x28069b[_0x3f8635(0x18a)](/^-/,'')[_0x3f8635(0x19a)]('/')[_0x3f8635(0x19b)]()?.[_0x3f8635(0x1a6)]()||'';}function isShell(_0x4eebea){const _0x5104c8=a190_0x522aea;return SHELL_NAMES[_0x5104c8(0x1a5)](getBasename(_0x4eebea));}function isEphemeralShellSpawner(_0x28832b){const _0x1899a5=a190_0x522aea;return EPHEMERAL_SHELL_SPAWNERS[_0x1899a5(0x1a5)](getBasename(_0x28832b));}let cachedShellPID;function findShellPID(){const _0x2b295c=a190_0x522aea;if(process['ppid']===undefined)return process['pid'];let _0x49cb08=process['ppid'];const _0x194833=0xa;let _0x4be847=0x0;while(_0x4be847<_0x194833){const _0x1ed27a=getProcessInfo(_0x49cb08);if(!_0x1ed27a)break;if(isShell(_0x1ed27a[_0x2b295c(0x19c)])){const _0x80f345=getProcessInfo(_0x1ed27a[_0x2b295c(0x1a7)]);if(_0x80f345&&isEphemeralShellSpawner(_0x80f345[_0x2b295c(0x19c)])){_0x49cb08=_0x1ed27a[_0x2b295c(0x1a7)],_0x4be847++;continue;}return _0x1ed27a[_0x2b295c(0x186)];}if(_0x1ed27a[_0x2b295c(0x1a7)]===0x0||_0x1ed27a[_0x2b295c(0x1a7)]===0x1){if(isShell(_0x1ed27a['comm']))return _0x1ed27a[_0x2b295c(0x186)];break;}_0x49cb08=_0x1ed27a[_0x2b295c(0x1a7)],_0x4be847++;}return process[_0x2b295c(0x1a7)]!==undefined?process['ppid']:process[_0x2b295c(0x186)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3b9509){const _0x307fe8=a190_0x522aea;if(!Number[_0x307fe8(0x1af)](_0x3b9509)||_0x3b9509<=0x0)return![];try{return process[_0x307fe8(0x185)](_0x3b9509,0x0),!![];}catch{return![];}}export function openBrowser(_0x5d5ac7){const _0x2a5f66=a190_0x522aea;let _0x304c76;try{_0x304c76=new URL(_0x5d5ac7);}catch{throw new Error('Invalid\x20URL:\x20'+_0x5d5ac7);}if(_0x304c76[_0x2a5f66(0x193)]!=='http:'&&_0x304c76['protocol']!==_0x2a5f66(0x195))throw new Error('Unsupported\x20protocol:\x20'+_0x304c76[_0x2a5f66(0x193)]);const _0x3c81f7=_0x304c76[_0x2a5f66(0x17d)],_0x4e6bd1=process['platform'];if(_0x4e6bd1===_0x2a5f66(0x19e))spawn(_0x2a5f66(0x1a3),['/c','start','',_0x3c81f7],{'detached':!![],'stdio':_0x2a5f66(0x190)})[_0x2a5f66(0x1b2)]();else{const _0x3be261=_0x4e6bd1===_0x2a5f66(0x18f)?_0x2a5f66(0x1b1):_0x2a5f66(0x1aa);spawn(_0x3be261,[_0x3c81f7],{'detached':!![],'stdio':'ignore'})[_0x2a5f66(0x1b2)]();}}export function isWindows(){const _0x3c6bbe=a190_0x522aea;return process[_0x3c6bbe(0x1a0)]===_0x3c6bbe(0x19e);}export function getCrossSpawnOptions(_0x4851e1){return{..._0x4851e1??{},'shell':isWindows()};}export function escapeWindowsArg(_0x522371){const _0x5029a0=a190_0x522aea;if(!/[ \t"&|<>^%!`\r\n]/[_0x5029a0(0x1b0)](_0x522371))return _0x522371;const _0x187ad3=_0x522371[_0x5029a0(0x18a)](/"/g,'\x22\x22');return'\x22'+_0x187ad3+'\x22';}export function crossSpawn(_0x2eb50c,_0x5c9a0e,_0x4e9dd4){const _0x1fde69=a190_0x522aea;if(isWindows()){const _0x2e0f3c=escapeWindowsArg(_0x2eb50c),_0x5c7987=_0x5c9a0e[_0x1fde69(0x1a1)](escapeWindowsArg),_0x1ad630=[_0x2e0f3c,..._0x5c7987][_0x1fde69(0x1ba)]('\x20');return spawn(_0x1ad630,[],{..._0x4e9dd4,'shell':!![]});}return spawn(_0x2eb50c,_0x5c9a0e,{..._0x4e9dd4,'shell':![]});}function a190_0x310b(){const _0x2121b1=['treasure\x20studio','win32','\x20-o\x20ppid=,comm=','platform','map','elvish','cmd.exe','which','has','toLowerCase','ppid','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','csh','xdg-open','fish','ksh','stderr','cursor','isInteger','test','open','unref','tcsh','10162696xnpCVh','6295825XqxFfq','electron','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','exit','1986276qJrGQO','join','7PsOgTr','pipe','href','claude','trim','powershell','12ZlXsxt','18qLUIwU','6588222hviejY','ps\x20-p\x20','kill','pid','data','stdout','148712rmiZpO','replace','ion','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','bash','80902lTRdsf','darwin','ignore','pwsh','8257570PYMFSp','protocol','utf-8','https:','xonsh','toString','zsh','dash','split','pop','comm'];a190_0x310b=function(){return _0x2121b1;};return a190_0x310b();}export function gracefulExit(_0x376922=0x0){const _0x3f89a3=a190_0x522aea;isWindows()?setImmediate(()=>process['exit'](_0x376922)):process[_0x3f89a3(0x1b8)](_0x376922);}export function findExecutable(_0x1840e6,_0x3a0ba0=0x1388){return new Promise(_0x2531f3=>{const _0x1d0f62=a190_0x47fb,_0x22ae00=isWindows()?'where.exe':_0x1d0f62(0x1a4);let _0xd5f7b2=![];const _0x113fef=crossSpawn(_0x22ae00,[_0x1840e6],{'stdio':'pipe','shell':isWindows()}),_0x3586d5=setTimeout(()=>{const _0x433fef=_0x1d0f62;!_0xd5f7b2&&(_0xd5f7b2=!![],_0x113fef[_0x433fef(0x185)](),_0x2531f3(null));},_0x3a0ba0);let _0x2c8d7b='';_0x113fef[_0x1d0f62(0x188)]?.['on'](_0x1d0f62(0x187),_0x55fc46=>{const _0x4cd698=_0x1d0f62;_0x2c8d7b+=_0x55fc46[_0x4cd698(0x197)]();}),_0x113fef[_0x1d0f62(0x1ad)]?.['on'](_0x1d0f62(0x187),()=>{}),_0x113fef['on'](_0x1d0f62(0x1b8),_0x55f556=>{const _0x55873d=_0x1d0f62;if(_0xd5f7b2)return;_0xd5f7b2=!![],clearTimeout(_0x3586d5);if(_0x55f556===0x0&&_0x2c8d7b[_0x55873d(0x17f)]()){const _0x21781b=_0x2c8d7b[_0x55873d(0x17f)]()[_0x55873d(0x19a)](/\r?\n/)[0x0];_0x2531f3(_0x21781b);}else _0x2531f3(null);}),_0x113fef['on']('error',()=>{if(_0xd5f7b2)return;_0xd5f7b2=!![],clearTimeout(_0x3586d5),_0x2531f3(null);});});}
1
+ const a192_0x58b66a=a192_0x1f98;(function(_0x3238b4,_0x3af04c){const _0xc4e927=a192_0x1f98,_0x4da54b=_0x3238b4();while(!![]){try{const _0x511a76=parseInt(_0xc4e927(0xc7))/0x1*(-parseInt(_0xc4e927(0xad))/0x2)+parseInt(_0xc4e927(0xcd))/0x3*(-parseInt(_0xc4e927(0xc3))/0x4)+-parseInt(_0xc4e927(0xb6))/0x5*(-parseInt(_0xc4e927(0xbc))/0x6)+-parseInt(_0xc4e927(0xbf))/0x7*(parseInt(_0xc4e927(0xc0))/0x8)+parseInt(_0xc4e927(0xb5))/0x9*(parseInt(_0xc4e927(0xc5))/0xa)+parseInt(_0xc4e927(0xb3))/0xb+parseInt(_0xc4e927(0xaf))/0xc;if(_0x511a76===_0x3af04c)break;else _0x4da54b['push'](_0x4da54b['shift']());}catch(_0x282689){_0x4da54b['push'](_0x4da54b['shift']());}}}(a192_0x4cb3,0x3c258));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a192_0x58b66a(0xaa),a192_0x58b66a(0xe3),'sh',a192_0x58b66a(0xa6),a192_0x58b66a(0xd7),a192_0x58b66a(0xcb),a192_0x58b66a(0xbd),'dash','pwsh',a192_0x58b66a(0xc4),'nu',a192_0x58b66a(0xd3),a192_0x58b66a(0xe2),a192_0x58b66a(0xd9)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude','code','cursor','electron','treasure\x20studio']);function getProcessInfoWindows(_0x4c723f){const _0x269505=a192_0x58b66a;try{if(!Number[_0x269505(0xda)](_0x4c723f)||_0x4c723f<=0x0)return null;const _0x5283c4=_0x269505(0xb0)+_0x4c723f+_0x269505(0xce),_0x558f97=execSync(_0x269505(0xb8)+_0x5283c4+'\x22',{'encoding':_0x269505(0xdd),'windowsHide':!![],'stdio':['pipe',_0x269505(0xc9),_0x269505(0xc9)]})['trim']();if(!_0x558f97)return null;const [_0x5caeb6,..._0xb61018]=_0x558f97[_0x269505(0xb7)](','),_0x5e84b4=parseInt(_0x5caeb6,0xa),_0x3cb335=_0xb61018['join'](',')[_0x269505(0xab)]();if(isNaN(_0x5e84b4)||!_0x3cb335)return null;return{'pid':_0x4c723f,'ppid':_0x5e84b4,'comm':_0x3cb335[_0x269505(0xbe)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x3c6971){const _0x41097a=a192_0x58b66a;try{const _0x880f01=0x400000;if(!Number[_0x41097a(0xda)](_0x3c6971)||_0x3c6971<=0x0||_0x3c6971>_0x880f01)return null;const _0x421776=execSync(_0x41097a(0xbb)+_0x3c6971+_0x41097a(0xc2),{'encoding':'utf-8','stdio':_0x41097a(0xc9)})[_0x41097a(0xab)](),[_0x153f60,..._0x281491]=_0x421776[_0x41097a(0xb7)](/\s+/),_0x37aade=parseInt(_0x153f60,0xa),_0x4e5d47=_0x281491[_0x41097a(0xde)]('\x20');if(isNaN(_0x37aade))return null;return{'pid':_0x3c6971,'ppid':_0x37aade,'comm':_0x4e5d47};}catch{return null;}}function getProcessInfo(_0x26b18c){const _0x481f2d=a192_0x58b66a;if(process[_0x481f2d(0xd4)]===_0x481f2d(0xe1))return getProcessInfoWindows(_0x26b18c);return getProcessInfoPosix(_0x26b18c);}function a192_0x1f98(_0x3a4018,_0x27704d){_0x3a4018=_0x3a4018-0xa6;const _0x4cb378=a192_0x4cb3();let _0x1f98a5=_0x4cb378[_0x3a4018];return _0x1f98a5;}function getBasename(_0x4bfc3a){const _0x763253=a192_0x58b66a;return _0x4bfc3a[_0x763253(0xbe)](/^-/,'')[_0x763253(0xb7)]('/')[_0x763253(0xdb)]()?.[_0x763253(0xb4)]()||'';}function isShell(_0x4f30f1){return SHELL_NAMES['has'](getBasename(_0x4f30f1));}function a192_0x4cb3(){const _0x1a653d=['elvish','zsh','fish','comm','darwin','test','bash','trim','start','4fjeJMv','ppid','2080332eBIYmG','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','ignore','https:','3044921KsVPKB','toLowerCase','657DtpNMw','662380ZknpOa','split','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','Unsupported\x20protocol:\x20','open','ps\x20-p\x20','12GgqunB','csh','replace','404810KpUmIo','8aXVBDb','exit','\x20-o\x20ppid=,comm=','298884TfZOXi','powershell','19970MByWof','protocol','240997KKtVTq','xdg-open','pipe','pid','tcsh','href','3VhbJLj','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','kill','data','where.exe','Invalid\x20URL:\x20','ion','platform','stdout','stderr','ksh','which','xonsh','isInteger','pop','has','utf-8','join','error','http:','win32'];a192_0x4cb3=function(){return _0x1a653d;};return a192_0x4cb3();}function isEphemeralShellSpawner(_0x5b89f4){const _0xc8dc06=a192_0x58b66a;return EPHEMERAL_SHELL_SPAWNERS[_0xc8dc06(0xdc)](getBasename(_0x5b89f4));}let cachedShellPID;function findShellPID(){const _0x133eda=a192_0x58b66a;if(process[_0x133eda(0xae)]===undefined)return process[_0x133eda(0xca)];let _0x36fea6=process['ppid'];const _0x51a764=0xa;let _0x3aed48=0x0;while(_0x3aed48<_0x51a764){const _0x403922=getProcessInfo(_0x36fea6);if(!_0x403922)break;if(isShell(_0x403922['comm'])){const _0x5be09e=getProcessInfo(_0x403922[_0x133eda(0xae)]);if(_0x5be09e&&isEphemeralShellSpawner(_0x5be09e[_0x133eda(0xa7)])){_0x36fea6=_0x403922[_0x133eda(0xae)],_0x3aed48++;continue;}return _0x403922[_0x133eda(0xca)];}if(_0x403922['ppid']===0x0||_0x403922[_0x133eda(0xae)]===0x1){if(isShell(_0x403922[_0x133eda(0xa7)]))return _0x403922[_0x133eda(0xca)];break;}_0x36fea6=_0x403922[_0x133eda(0xae)],_0x3aed48++;}return process['ppid']!==undefined?process[_0x133eda(0xae)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3a2595){const _0x1999bd=a192_0x58b66a;if(!Number['isInteger'](_0x3a2595)||_0x3a2595<=0x0)return![];try{return process[_0x1999bd(0xcf)](_0x3a2595,0x0),!![];}catch{return![];}}export function openBrowser(_0x3cd404){const _0xec9cbd=a192_0x58b66a;let _0x157861;try{_0x157861=new URL(_0x3cd404);}catch{throw new Error(_0xec9cbd(0xd2)+_0x3cd404);}if(_0x157861[_0xec9cbd(0xc6)]!==_0xec9cbd(0xe0)&&_0x157861[_0xec9cbd(0xc6)]!==_0xec9cbd(0xb2))throw new Error(_0xec9cbd(0xb9)+_0x157861['protocol']);const _0x1538d2=_0x157861[_0xec9cbd(0xcc)],_0x129710=process[_0xec9cbd(0xd4)];if(_0x129710===_0xec9cbd(0xe1))spawn('cmd.exe',['/c',_0xec9cbd(0xac),'',_0x1538d2],{'detached':!![],'stdio':_0xec9cbd(0xb1)})['unref']();else{const _0x3578dd=_0x129710===_0xec9cbd(0xa8)?_0xec9cbd(0xba):_0xec9cbd(0xc8);spawn(_0x3578dd,[_0x1538d2],{'detached':!![],'stdio':_0xec9cbd(0xb1)})['unref']();}}export function isWindows(){const _0x26eb40=a192_0x58b66a;return process[_0x26eb40(0xd4)]===_0x26eb40(0xe1);}export function getCrossSpawnOptions(_0x345b6d){return{..._0x345b6d??{},'shell':isWindows()};}export function escapeWindowsArg(_0x5f1a3f){const _0x42c0d7=a192_0x58b66a;if(!/[ \t"&|<>^%!`\r\n]/[_0x42c0d7(0xa9)](_0x5f1a3f))return _0x5f1a3f;const _0x12e46a=_0x5f1a3f[_0x42c0d7(0xbe)](/"/g,'\x22\x22');return'\x22'+_0x12e46a+'\x22';}export function crossSpawn(_0x151b74,_0x5f3312,_0x5a8079){const _0x4b8f4a=a192_0x58b66a;if(isWindows()){const _0x5c1e72=escapeWindowsArg(_0x151b74),_0x55ded1=_0x5f3312['map'](escapeWindowsArg),_0x3b381c=[_0x5c1e72,..._0x55ded1][_0x4b8f4a(0xde)]('\x20');return spawn(_0x3b381c,[],{..._0x5a8079,'shell':!![]});}return spawn(_0x151b74,_0x5f3312,{..._0x5a8079,'shell':![]});}export function gracefulExit(_0x1812cb=0x0){const _0x28db00=a192_0x58b66a;isWindows()?setImmediate(()=>process['exit'](_0x1812cb)):process[_0x28db00(0xc1)](_0x1812cb);}export function findExecutable(_0xf00497,_0x43d7ed=0x1388){return new Promise(_0xe94b68=>{const _0xfe67a3=a192_0x1f98,_0x3cd036=isWindows()?_0xfe67a3(0xd1):_0xfe67a3(0xd8);let _0x175f1c=![];const _0x46f7e6=crossSpawn(_0x3cd036,[_0xf00497],{'stdio':_0xfe67a3(0xc9),'shell':isWindows()}),_0x16b350=setTimeout(()=>{const _0x327131=_0xfe67a3;!_0x175f1c&&(_0x175f1c=!![],_0x46f7e6[_0x327131(0xcf)](),_0xe94b68(null));},_0x43d7ed);let _0x366519='';_0x46f7e6[_0xfe67a3(0xd5)]?.['on'](_0xfe67a3(0xd0),_0x1504da=>{_0x366519+=_0x1504da['toString']();}),_0x46f7e6[_0xfe67a3(0xd6)]?.['on'](_0xfe67a3(0xd0),()=>{}),_0x46f7e6['on'](_0xfe67a3(0xc1),_0x8d76de=>{const _0x4a1b79=_0xfe67a3;if(_0x175f1c)return;_0x175f1c=!![],clearTimeout(_0x16b350);if(_0x8d76de===0x0&&_0x366519[_0x4a1b79(0xab)]()){const _0x4d9fc5=_0x366519[_0x4a1b79(0xab)]()['split'](/\r?\n/)[0x0];_0xe94b68(_0x4d9fc5);}else _0xe94b68(null);}),_0x46f7e6['on'](_0xfe67a3(0xdf),()=>{if(_0x175f1c)return;_0x175f1c=!![],clearTimeout(_0x16b350),_0xe94b68(null);});});}
@@ -1 +1 @@
1
- function a191_0x3dbb(){const _0x58051a=['stdin','2190446PCCprF','write','3BWYuRE','close','pause','17035UWKqwl','41403494azwRzI','1621656dLvdmQ','createInterface','17588000CQenaJ','exit','removeListener','63qYZdxZ','yes','stderr','setRawMode','461755aMHxOw','\x20[y/N]\x20','1575646TLqsCv','toLowerCase','90xsIbMp','question','\x20(y/N):\x20','512yXkkBG','data'];a191_0x3dbb=function(){return _0x58051a;};return a191_0x3dbb();}(function(_0x3012d9,_0x2b6d20){const _0x8b6014=a191_0x1461,_0x3a6b97=_0x3012d9();while(!![]){try{const _0x4b729e=-parseInt(_0x8b6014(0x115))/0x1+-parseInt(_0x8b6014(0x11d))/0x2*(parseInt(_0x8b6014(0x11f))/0x3)+parseInt(_0x8b6014(0x11a))/0x4*(parseInt(_0x8b6014(0x122))/0x5)+-parseInt(_0x8b6014(0x117))/0x6*(parseInt(_0x8b6014(0x113))/0x7)+-parseInt(_0x8b6014(0x10a))/0x8*(parseInt(_0x8b6014(0x10f))/0x9)+parseInt(_0x8b6014(0x10c))/0xa+parseInt(_0x8b6014(0x109))/0xb;if(_0x4b729e===_0x2b6d20)break;else _0x3a6b97['push'](_0x3a6b97['shift']());}catch(_0x1eea7f){_0x3a6b97['push'](_0x3a6b97['shift']());}}}(a191_0x3dbb,0xd6bc5));import*as a191_0x9304c1 from'readline';export function isInteractive(){const _0x2ffadf=a191_0x1461;return process[_0x2ffadf(0x11c)]['isTTY']===!![];}function a191_0x1461(_0x165c56,_0x4bed18){_0x165c56=_0x165c56-0x109;const _0x3dbb59=a191_0x3dbb();let _0x146136=_0x3dbb59[_0x165c56];return _0x146136;}export async function confirm(_0x5cdf72){const _0x476d00=a191_0x1461,_0x40ce8c=a191_0x9304c1[_0x476d00(0x10b)]({'input':process[_0x476d00(0x11c)],'output':process['stdout']});return new Promise(_0x936aa1=>{const _0x233bf0=_0x476d00;_0x40ce8c[_0x233bf0(0x118)](_0x5cdf72+_0x233bf0(0x119),_0x3ecaf1=>{const _0xb0ef2f=_0x233bf0;_0x40ce8c[_0xb0ef2f(0x120)](),_0x936aa1(_0x3ecaf1['toLowerCase']()==='y'||_0x3ecaf1[_0xb0ef2f(0x116)]()===_0xb0ef2f(0x110));});});}export async function confirmKey(_0x408d16){const _0xb30e89=a191_0x1461;if(!process[_0xb30e89(0x11c)]['isTTY'])return![];return process['stderr'][_0xb30e89(0x11e)](_0x408d16+_0xb30e89(0x114)),new Promise(_0x2c104d=>{const _0x10b3da=_0xb30e89,_0x143ea6=process[_0x10b3da(0x11c)];_0x143ea6[_0x10b3da(0x112)](!![]),_0x143ea6['resume'](),_0x143ea6['setEncoding']('utf8');const _0x3c3fd0=_0xe55e57=>{const _0x1ac23d=_0x10b3da;_0x143ea6[_0x1ac23d(0x112)](![]),_0x143ea6[_0x1ac23d(0x121)](),_0x143ea6[_0x1ac23d(0x10e)](_0x1ac23d(0x11b),_0x3c3fd0);if(_0xe55e57==='\x1b'){process['stderr'][_0x1ac23d(0x11e)]('\x0a'),_0x2c104d(![]);return;}_0xe55e57==='\x03'&&(process['stderr'][_0x1ac23d(0x11e)]('\x0a'),process[_0x1ac23d(0x10d)](0x82));if(_0xe55e57[_0x1ac23d(0x116)]()==='y'){process[_0x1ac23d(0x111)][_0x1ac23d(0x11e)]('y\x0a'),_0x2c104d(!![]);return;}process[_0x1ac23d(0x111)]['write']('\x0a'),_0x2c104d(![]);};_0x143ea6['on'](_0x10b3da(0x11b),_0x3c3fd0);});}
1
+ function a193_0x1226(_0x30c0d3,_0x108e9c){_0x30c0d3=_0x30c0d3-0xee;const _0x233595=a193_0x2335();let _0x122684=_0x233595[_0x30c0d3];return _0x122684;}(function(_0x37231c,_0x42f1eb){const _0x42fb6d=a193_0x1226,_0x279afd=_0x37231c();while(!![]){try{const _0x337d5f=parseInt(_0x42fb6d(0x100))/0x1*(parseInt(_0x42fb6d(0xef))/0x2)+-parseInt(_0x42fb6d(0x101))/0x3+parseInt(_0x42fb6d(0xfd))/0x4+parseInt(_0x42fb6d(0xf7))/0x5+parseInt(_0x42fb6d(0xf2))/0x6*(parseInt(_0x42fb6d(0xf5))/0x7)+parseInt(_0x42fb6d(0xee))/0x8+-parseInt(_0x42fb6d(0xf0))/0x9;if(_0x337d5f===_0x42f1eb)break;else _0x279afd['push'](_0x279afd['shift']());}catch(_0x2c9456){_0x279afd['push'](_0x279afd['shift']());}}}(a193_0x2335,0x28ec0));import*as a193_0x44c188 from'readline';export function isInteractive(){const _0x514ee1=a193_0x1226;return process['stdin'][_0x514ee1(0xf8)]===!![];}export async function confirm(_0x8cdece){const _0xec4b15=a193_0x1226,_0x95aac9=a193_0x44c188[_0xec4b15(0x107)]({'input':process[_0xec4b15(0xfc)],'output':process[_0xec4b15(0x106)]});return new Promise(_0x5b2a4d=>{const _0x56c8c9=_0xec4b15;_0x95aac9[_0x56c8c9(0xf9)](_0x8cdece+'\x20(y/N):\x20',_0x13aaae=>{const _0xe2e190=_0x56c8c9;_0x95aac9['close'](),_0x5b2a4d(_0x13aaae[_0xe2e190(0x102)]()==='y'||_0x13aaae[_0xe2e190(0x102)]()===_0xe2e190(0xfe));});});}function a193_0x2335(){const _0x2ea985=['pause','1176296XVfqjn','2EVRZww','5632452NCLBje','write','567942niCcCS','setRawMode','utf8','14oIDBab','stderr','964370dTSPvV','isTTY','question','removeListener','\x20[y/N]\x20','stdin','1241332AzljBo','yes','exit','192303uFgnlS','715251FBhsvd','toLowerCase','resume','setEncoding','data','stdout','createInterface'];a193_0x2335=function(){return _0x2ea985;};return a193_0x2335();}export async function confirmKey(_0x228f84){const _0x200143=a193_0x1226;if(!process['stdin'][_0x200143(0xf8)])return![];return process[_0x200143(0xf6)][_0x200143(0xf1)](_0x228f84+_0x200143(0xfb)),new Promise(_0x5b6c62=>{const _0x21b8c5=_0x200143,_0x45d7a6=process[_0x21b8c5(0xfc)];_0x45d7a6[_0x21b8c5(0xf3)](!![]),_0x45d7a6[_0x21b8c5(0x103)](),_0x45d7a6[_0x21b8c5(0x104)](_0x21b8c5(0xf4));const _0x22ed2c=_0x445c44=>{const _0x200ee0=_0x21b8c5;_0x45d7a6[_0x200ee0(0xf3)](![]),_0x45d7a6[_0x200ee0(0x108)](),_0x45d7a6[_0x200ee0(0xfa)](_0x200ee0(0x105),_0x22ed2c);if(_0x445c44==='\x1b'){process[_0x200ee0(0xf6)][_0x200ee0(0xf1)]('\x0a'),_0x5b6c62(![]);return;}_0x445c44==='\x03'&&(process['stderr'][_0x200ee0(0xf1)]('\x0a'),process[_0x200ee0(0xff)](0x82));if(_0x445c44['toLowerCase']()==='y'){process[_0x200ee0(0xf6)][_0x200ee0(0xf1)]('y\x0a'),_0x5b6c62(!![]);return;}process[_0x200ee0(0xf6)][_0x200ee0(0xf1)]('\x0a'),_0x5b6c62(![]);};_0x45d7a6['on'](_0x21b8c5(0x105),_0x22ed2c);});}