@treasuredata/tdx 0.26.7 → 0.27.0

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 (224) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.d.ts.map +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-command.js.map +1 -1
  16. package/dist/commands/claude-statusline-command.d.ts +4 -2
  17. package/dist/commands/claude-statusline-command.d.ts.map +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-statusline-command.js.map +1 -1
  20. package/dist/commands/claude-usage-command.js +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/connection-command.js +1 -1
  23. package/dist/commands/databases.js +1 -1
  24. package/dist/commands/describe.js +1 -1
  25. package/dist/commands/engage-command.js +1 -1
  26. package/dist/commands/job-command.js +1 -1
  27. package/dist/commands/journey-command.d.ts.map +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/journey-command.js.map +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.d.ts.map +1 -1
  32. package/dist/commands/llm-command.js +1 -1
  33. package/dist/commands/llm-command.js.map +1 -1
  34. package/dist/commands/mcp-command.js +1 -1
  35. package/dist/commands/parent-segment-command.js +1 -1
  36. package/dist/commands/profile-command.js +1 -1
  37. package/dist/commands/profiles-command.js +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/schedule-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.d.ts.map +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-push-command.js.map +1 -1
  47. package/dist/commands/segment-update-command.js +1 -1
  48. package/dist/commands/segment-use-command.js +1 -1
  49. package/dist/commands/segment-validate-command.js +1 -1
  50. package/dist/commands/segments.js +1 -1
  51. package/dist/commands/show.js +1 -1
  52. package/dist/commands/status-command.js +1 -1
  53. package/dist/commands/tables.js +1 -1
  54. package/dist/commands/unset-command.js +1 -1
  55. package/dist/commands/use-command.d.ts.map +1 -1
  56. package/dist/commands/use-command.js +1 -1
  57. package/dist/commands/use-command.js.map +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/workflow-command.js +1 -1
  60. package/dist/core/auth.js +1 -1
  61. package/dist/core/command-output.js +1 -1
  62. package/dist/core/config.js +1 -1
  63. package/dist/core/connection-cache.js +1 -1
  64. package/dist/core/constants.js +1 -1
  65. package/dist/core/credential-cache.js +1 -1
  66. package/dist/core/global-context.js +1 -1
  67. package/dist/core/keychain.js +1 -1
  68. package/dist/core/profile.js +1 -1
  69. package/dist/core/project-config.js +1 -1
  70. package/dist/core/session.js +1 -1
  71. package/dist/core/user-cache.js +1 -1
  72. package/dist/core/version.js +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/mcp/server.js +1 -1
  75. package/dist/mcp/tools/index.js +1 -1
  76. package/dist/mcp/tools/tdx-run.js +1 -1
  77. package/dist/mcp/tools/tdx-search.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.d.ts +2 -2
  80. package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
  81. package/dist/proxy/claude-usage-tracker.js +1 -1
  82. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  83. package/dist/proxy/passthrough-server.d.ts +18 -3
  84. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  85. package/dist/proxy/passthrough-server.js +1 -1
  86. package/dist/proxy/passthrough-server.js.map +1 -1
  87. package/dist/proxy/sse-usage-parser.d.ts +20 -2
  88. package/dist/proxy/sse-usage-parser.d.ts.map +1 -1
  89. package/dist/proxy/sse-usage-parser.js +1 -1
  90. package/dist/proxy/sse-usage-parser.js.map +1 -1
  91. package/dist/sdk/agent/agent-config.js +1 -1
  92. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  93. package/dist/sdk/agent/agent-yaml.js +1 -1
  94. package/dist/sdk/agent/test/evaluator.js +1 -1
  95. package/dist/sdk/agent/test/executor.js +1 -1
  96. package/dist/sdk/agent/test/index.js +1 -1
  97. package/dist/sdk/agent/test/output.js +1 -1
  98. package/dist/sdk/agent/test/parser.js +1 -1
  99. package/dist/sdk/agent/tool-target-registry.js +1 -1
  100. package/dist/sdk/api.js +1 -1
  101. package/dist/sdk/client/cdp-api-client.d.ts +9 -0
  102. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  103. package/dist/sdk/client/cdp-api-client.js +1 -1
  104. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  105. package/dist/sdk/client/endpoints.js +1 -1
  106. package/dist/sdk/client/engage-api-client.js +1 -1
  107. package/dist/sdk/client/http-client.js +1 -1
  108. package/dist/sdk/client/llm-api-client.js +1 -1
  109. package/dist/sdk/client/rate-limiter.js +1 -1
  110. package/dist/sdk/client/td-api-client.js +1 -1
  111. package/dist/sdk/client/trino-api-client.js +1 -1
  112. package/dist/sdk/client/workflow-client.js +1 -1
  113. package/dist/sdk/connection-validator.js +1 -1
  114. package/dist/sdk/connection.js +1 -1
  115. package/dist/sdk/engage.js +1 -1
  116. package/dist/sdk/errors.js +1 -1
  117. package/dist/sdk/index.js +1 -1
  118. package/dist/sdk/io/index.js +1 -1
  119. package/dist/sdk/io/node-filesystem.js +1 -1
  120. package/dist/sdk/job.js +1 -1
  121. package/dist/sdk/journey.d.ts.map +1 -1
  122. package/dist/sdk/journey.js +1 -1
  123. package/dist/sdk/journey.js.map +1 -1
  124. package/dist/sdk/llm/chat-cache.js +1 -1
  125. package/dist/sdk/llm/index.js +1 -1
  126. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  127. package/dist/sdk/llm/model-factors.d.ts +0 -4
  128. package/dist/sdk/llm/model-factors.d.ts.map +1 -1
  129. package/dist/sdk/llm/model-factors.js +1 -1
  130. package/dist/sdk/llm/model-factors.js.map +1 -1
  131. package/dist/sdk/personalization.js +1 -1
  132. package/dist/sdk/query/index.js +1 -1
  133. package/dist/sdk/query/sql-parser.js +1 -1
  134. package/dist/sdk/realtime.js +1 -1
  135. package/dist/sdk/schedule.js +1 -1
  136. package/dist/sdk/segment/child-segment-yaml.d.ts +2 -2
  137. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  138. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  139. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  140. package/dist/sdk/segment/fields-display.js +1 -1
  141. package/dist/sdk/segment/file-discovery.js +1 -1
  142. package/dist/sdk/segment/journey-utils.d.ts.map +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-utils.js.map +1 -1
  145. package/dist/sdk/segment/journey-validator.d.ts +3 -0
  146. package/dist/sdk/segment/journey-validator.d.ts.map +1 -1
  147. package/dist/sdk/segment/journey-validator.js +1 -1
  148. package/dist/sdk/segment/journey-validator.js.map +1 -1
  149. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  150. package/dist/sdk/segment/journey-yaml.js +1 -1
  151. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  152. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  153. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  154. package/dist/sdk/segment/pull-workflow.js +1 -1
  155. package/dist/sdk/segment/pull-workflow.js.map +1 -1
  156. package/dist/sdk/segment/push-recovery.js +1 -1
  157. package/dist/sdk/segment/push-workflow.d.ts +8 -0
  158. package/dist/sdk/segment/push-workflow.d.ts.map +1 -1
  159. package/dist/sdk/segment/push-workflow.js +1 -1
  160. package/dist/sdk/segment/push-workflow.js.map +1 -1
  161. package/dist/sdk/segment/resolution-context.js +1 -1
  162. package/dist/sdk/segment/segment-path-parser.js +1 -1
  163. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  164. package/dist/sdk/segment/target-resolution.js +1 -1
  165. package/dist/sdk/segment/tdx-config.js +1 -1
  166. package/dist/sdk/segment/types/segment-def.d.ts +10 -1
  167. package/dist/sdk/segment/types/segment-def.d.ts.map +1 -1
  168. package/dist/sdk/segment/validate-files.js +1 -1
  169. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  170. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  171. package/dist/sdk/segment/yaml-validator.js +1 -1
  172. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  173. package/dist/sdk/segment.js +1 -1
  174. package/dist/sdk/types/cdp.d.ts +23 -15
  175. package/dist/sdk/types/cdp.d.ts.map +1 -1
  176. package/dist/sdk/types/index.js +1 -1
  177. package/dist/sdk/types/progress.js +1 -1
  178. package/dist/sdk/user.js +1 -1
  179. package/dist/sdk/util/format-detector.js +1 -1
  180. package/dist/sdk/util/formatters.js +1 -1
  181. package/dist/sdk/util/index.js +1 -1
  182. package/dist/sdk/util/tree-formatter.js +1 -1
  183. package/dist/sdk/workflow/archive-validation.js +1 -1
  184. package/dist/sdk/workflow/clone-workflow.js +1 -1
  185. package/dist/sdk/workflow/index.js +1 -1
  186. package/dist/sdk/workflow/pull-workflow.js +1 -1
  187. package/dist/sdk/workflow/push-workflow.js +1 -1
  188. package/dist/sdk/workflow/tdx-config.js +1 -1
  189. package/dist/sdk/workflow/workflow-utils.js +1 -1
  190. package/dist/test-utils/command-runner.js +1 -1
  191. package/dist/test-utils/factories.js +1 -1
  192. package/dist/test-utils/fixtures.js +1 -1
  193. package/dist/test-utils/http-mock.js +1 -1
  194. package/dist/test-utils/index.js +1 -1
  195. package/dist/utils/async.js +1 -1
  196. package/dist/utils/colors.js +1 -1
  197. package/dist/utils/diff.js +1 -1
  198. package/dist/utils/file-permissions.js +1 -1
  199. package/dist/utils/global-cache.js +1 -1
  200. package/dist/utils/json-loader.js +1 -1
  201. package/dist/utils/local-cache.js +1 -1
  202. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  203. package/dist/utils/logger/formatters/index.js +1 -1
  204. package/dist/utils/logger/handlers/console-handler.js +1 -1
  205. package/dist/utils/logger/handlers/file-handler.js +1 -1
  206. package/dist/utils/logger/handlers/index.js +1 -1
  207. package/dist/utils/logger/handlers/null-handler.js +1 -1
  208. package/dist/utils/logger/index.js +1 -1
  209. package/dist/utils/logger/logger.js +1 -1
  210. package/dist/utils/logger/types.js +1 -1
  211. package/dist/utils/option-validation.js +1 -1
  212. package/dist/utils/process.js +1 -1
  213. package/dist/utils/prompt.js +1 -1
  214. package/dist/utils/spinner.js +1 -1
  215. package/dist/utils/sse-parser.js +1 -1
  216. package/dist/utils/string-utils.js +1 -1
  217. package/dist/utils/table-ref-parser.js +1 -1
  218. package/dist/utils/tdx-logger.js +1 -1
  219. package/dist/utils/version-check.js +1 -1
  220. package/package.json +3 -3
  221. package/dist/utils/port.d.ts +0 -18
  222. package/dist/utils/port.d.ts.map +0 -1
  223. package/dist/utils/port.js +0 -1
  224. package/dist/utils/port.js.map +0 -1
@@ -1 +1 @@
1
- function a160_0x2e89(){const _0x23a4a2=['3329478fBKJbZ','\x20has\x20insecure\x20permissions\x20(','existsSync','19537750UwBvwT','writeFileSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','warn','mode','3698205CjTQvS','2HIcclt','291LGQagz','14108CWdNVd','toString','2142660LeFQcz','chmodSync','232CGMiJl','Should\x20be\x200600\x20or\x20more\x20restrictive.','670043rEKVLa',').\x20','mkdirSync','209889cmcyqN','dirname'];a160_0x2e89=function(){return _0x23a4a2;};return a160_0x2e89();}(function(_0x47e135,_0x4c60ca){const _0x3d3247=a160_0x2390,_0x430e36=_0x47e135();while(!![]){try{const _0x2d6dd4=parseInt(_0x3d3247(0xdf))/0x1*(parseInt(_0x3d3247(0xd7))/0x2)+parseInt(_0x3d3247(0xd8))/0x3*(parseInt(_0x3d3247(0xd9))/0x4)+-parseInt(_0x3d3247(0xdb))/0x5+parseInt(_0x3d3247(0xe4))/0x6+parseInt(_0x3d3247(0xd6))/0x7+parseInt(_0x3d3247(0xdd))/0x8*(parseInt(_0x3d3247(0xe2))/0x9)+-parseInt(_0x3d3247(0xd1))/0xa;if(_0x2d6dd4===_0x4c60ca)break;else _0x430e36['push'](_0x430e36['shift']());}catch(_0x2cab3c){_0x430e36['push'](_0x430e36['shift']());}}}(a160_0x2e89,0x5f110));import*as a160_0x14c6cf from'node:fs';import*as a160_0x706a47 from'node:path';export function setSecureFilePermissions(_0x35c948){const _0x2892f6=a160_0x2390;try{a160_0x14c6cf[_0x2892f6(0xdc)](_0x35c948,0x180);}catch{console['warn'](_0x2892f6(0xd3)+_0x35c948);}}export function setSecureDirectoryPermissions(_0x21636d){const _0x1b4dde=a160_0x2390;try{a160_0x14c6cf[_0x1b4dde(0xdc)](_0x21636d,0x1c0);}catch{console[_0x1b4dde(0xd4)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x21636d);}}export function createSecureDirectory(_0x17090b){const _0x5ecdbf=a160_0x2390;!a160_0x14c6cf[_0x5ecdbf(0xe6)](_0x17090b)&&(a160_0x14c6cf[_0x5ecdbf(0xe1)](_0x17090b,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x17090b));}function a160_0x2390(_0x3112c0,_0x43220a){_0x3112c0=_0x3112c0-0xd1;const _0x2e89ed=a160_0x2e89();let _0x239079=_0x2e89ed[_0x3112c0];return _0x239079;}export function validateSecureFilePermissions(_0x15e083){const _0x329d1e=a160_0x2390;try{const _0x3d96e6=a160_0x14c6cf['statSync'](_0x15e083),_0xd8790b=_0x3d96e6[_0x329d1e(0xd5)]&0x1ff,_0x2fe482=(_0xd8790b&0x3f)!==0x0;if(_0x2fe482)return console[_0x329d1e(0xd4)]('Warning:\x20'+_0x15e083+_0x329d1e(0xe5)+_0xd8790b[_0x329d1e(0xda)](0x8)+_0x329d1e(0xe0)+_0x329d1e(0xde)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x1b7edb,_0x18c91e){const _0x356c58=a160_0x2390,_0x2715ff=a160_0x706a47[_0x356c58(0xe3)](_0x1b7edb);createSecureDirectory(_0x2715ff),a160_0x14c6cf[_0x356c58(0xd2)](_0x1b7edb,_0x18c91e,{'mode':0x180}),setSecureFilePermissions(_0x1b7edb);}
1
+ (function(_0x1f2943,_0x5ba577){const _0x216b0e=a160_0x2dbd,_0x8a9588=_0x1f2943();while(!![]){try{const _0x2bf359=-parseInt(_0x216b0e(0xed))/0x1+-parseInt(_0x216b0e(0xf2))/0x2*(-parseInt(_0x216b0e(0xf1))/0x3)+-parseInt(_0x216b0e(0xea))/0x4*(parseInt(_0x216b0e(0xf6))/0x5)+-parseInt(_0x216b0e(0xec))/0x6+parseInt(_0x216b0e(0xf9))/0x7*(parseInt(_0x216b0e(0xf5))/0x8)+-parseInt(_0x216b0e(0xe7))/0x9*(parseInt(_0x216b0e(0xf3))/0xa)+parseInt(_0x216b0e(0xf4))/0xb;if(_0x2bf359===_0x5ba577)break;else _0x8a9588['push'](_0x8a9588['shift']());}catch(_0x52d559){_0x8a9588['push'](_0x8a9588['shift']());}}}(a160_0x4152,0x7ced7));function a160_0x4152(){const _0x436635=['mkdirSync','chmodSync','7nyKjLV','writeFileSync',').\x20','225yLWOnK','statSync','dirname','1998916QoSQhG','mode','2910204JLwVRB','555210hmZDBI','Warning:\x20','warn','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','15ervtnd','267838BLweCf','365230RlqlCP','18974714KpUfuJ','4561456oEjwNQ','5eFPdRw'];a160_0x4152=function(){return _0x436635;};return a160_0x4152();}import*as a160_0x621b2f from'node:fs';import*as a160_0x468bf8 from'node:path';export function setSecureFilePermissions(_0x57537c){const _0x1d0815=a160_0x2dbd;try{a160_0x621b2f[_0x1d0815(0xf8)](_0x57537c,0x180);}catch{console[_0x1d0815(0xef)](_0x1d0815(0xf0)+_0x57537c);}}export function setSecureDirectoryPermissions(_0x432982){const _0x39d6fe=a160_0x2dbd;try{a160_0x621b2f['chmodSync'](_0x432982,0x1c0);}catch{console[_0x39d6fe(0xef)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x432982);}}function a160_0x2dbd(_0x440856,_0x3ea0f5){_0x440856=_0x440856-0xe5;const _0x41527c=a160_0x4152();let _0x2dbd7f=_0x41527c[_0x440856];return _0x2dbd7f;}export function createSecureDirectory(_0x2966bb){const _0x1ffb38=a160_0x2dbd;!a160_0x621b2f['existsSync'](_0x2966bb)&&(a160_0x621b2f[_0x1ffb38(0xf7)](_0x2966bb,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2966bb));}export function validateSecureFilePermissions(_0x49b90f){const _0x30c6f3=a160_0x2dbd;try{const _0xa7ad39=a160_0x621b2f[_0x30c6f3(0xe8)](_0x49b90f),_0x4ae5bf=_0xa7ad39[_0x30c6f3(0xeb)]&0x1ff,_0x2e49df=(_0x4ae5bf&0x3f)!==0x0;if(_0x2e49df)return console[_0x30c6f3(0xef)](_0x30c6f3(0xee)+_0x49b90f+'\x20has\x20insecure\x20permissions\x20('+_0x4ae5bf['toString'](0x8)+_0x30c6f3(0xe6)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2cd71c,_0x91f5f0){const _0x158e5b=a160_0x2dbd,_0x4e2e72=a160_0x468bf8[_0x158e5b(0xe9)](_0x2cd71c);createSecureDirectory(_0x4e2e72),a160_0x621b2f[_0x158e5b(0xe5)](_0x2cd71c,_0x91f5f0,{'mode':0x180}),setSecureFilePermissions(_0x2cd71c);}
@@ -1 +1 @@
1
- (function(_0xe72258,_0xd33a42){const _0xfb361f=a161_0x43c3,_0x1939a4=_0xe72258();while(!![]){try{const _0x47468d=-parseInt(_0xfb361f(0x7b))/0x1+-parseInt(_0xfb361f(0x8a))/0x2*(parseInt(_0xfb361f(0x81))/0x3)+parseInt(_0xfb361f(0x8c))/0x4*(-parseInt(_0xfb361f(0x83))/0x5)+parseInt(_0xfb361f(0x80))/0x6*(parseInt(_0xfb361f(0x77))/0x7)+-parseInt(_0xfb361f(0x86))/0x8+-parseInt(_0xfb361f(0x89))/0x9*(-parseInt(_0xfb361f(0x8b))/0xa)+parseInt(_0xfb361f(0x88))/0xb;if(_0x47468d===_0xd33a42)break;else _0x1939a4['push'](_0x1939a4['shift']());}catch(_0x2d5345){_0x1939a4['push'](_0x1939a4['shift']());}}}(a161_0x113c,0xcf0da));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x38f288=a161_0x43c3;return process.env.TDX_CACHE_DIR||join(homedir(),_0x38f288(0x84),_0x38f288(0x7a));}const registry=new Map();export function registerGlobalCacheKey(_0x3d4820,_0xc7e39c){const _0x4c3d47=a161_0x43c3,_0x2495ff=registry[_0x4c3d47(0x7d)](_0x3d4820);if(_0x2495ff&&_0x2495ff!==_0xc7e39c)throw new Error('Global\x20cache\x20key\x20\x22'+_0x3d4820+_0x4c3d47(0x87)+_0x2495ff+_0x4c3d47(0x79)+_0xc7e39c+'\x22');registry[_0x4c3d47(0x82)](_0x3d4820,_0xc7e39c);}export function getGlobalCachePath(_0xdda847){return join(getGlobalCacheDir(),_0xdda847);}function a161_0x43c3(_0x3ee868,_0x465e8a){_0x3ee868=_0x3ee868-0x77;const _0x113c1d=a161_0x113c();let _0x43c35b=_0x113c1d[_0x3ee868];return _0x43c35b;}function a161_0x113c(){const _0x2df83f=['9675064IyFmad','\x22\x20already\x20registered\x20by\x20\x22','8610558eerOvf','72tnHLUa','50662goUdld','1548590aavGuI','5960cFrSdQ','9450FhDFrp','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','tdx','254934wWwODl','parse','get','{profile}','default','4524tZzmDs','69LrkCIg','set','485JakQCn','.cache','clear'];a161_0x113c=function(){return _0x2df83f;};return a161_0x113c();}function ensureGlobalCacheDir(){const _0x1a6094=getGlobalCacheDir();!existsSync(_0x1a6094)&&mkdirSync(_0x1a6094,{'recursive':!![]});}function readCacheJson(_0x178403){const _0x31ac1f=a161_0x43c3,_0x52a166=getGlobalCachePath(_0x178403);if(!existsSync(_0x52a166))return undefined;try{const _0x256139=readFileSync(_0x52a166,_0x31ac1f(0x78));return JSON[_0x31ac1f(0x7c)](_0x256139);}catch{return undefined;}}function writeCacheJson(_0x4e28ee,_0x59eb69){const _0x3d16ec=a161_0x43c3;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4e28ee),JSON['stringify'](_0x59eb69,null,0x2),_0x3d16ec(0x78));}function readCacheText(_0x140390){const _0x1b98aa=a161_0x43c3,_0x3af817=getGlobalCachePath(_0x140390);if(!existsSync(_0x3af817))return undefined;try{return readFileSync(_0x3af817,_0x1b98aa(0x78));}catch{return undefined;}}function writeCacheText(_0x50c3d2,_0x49761d){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x50c3d2),_0x49761d,'utf-8');}function clearCache(_0x52e9a1){const _0x35aff0=getGlobalCachePath(_0x52e9a1);if(existsSync(_0x35aff0))try{unlinkSync(_0x35aff0);}catch{}}function cacheExists(_0x3a0d01){return existsSync(getGlobalCachePath(_0x3a0d01));}export function createGlobalCache(_0x135cd4,_0x3b7c12){return registerGlobalCacheKey(_0x135cd4,_0x3b7c12),{'read':()=>readCacheJson(_0x135cd4),'write':_0x4024fc=>writeCacheJson(_0x135cd4,_0x4024fc),'clear':()=>clearCache(_0x135cd4),'exists':()=>cacheExists(_0x135cd4),'path':()=>getGlobalCachePath(_0x135cd4)};}export function createGlobalTextCache(_0x252cfb,_0x438aee){return registerGlobalCacheKey(_0x252cfb,_0x438aee),{'read':()=>readCacheText(_0x252cfb)?.['trim']()||undefined,'write':_0x4b51d7=>writeCacheText(_0x252cfb,_0x4b51d7),'clear':()=>clearCache(_0x252cfb),'exists':()=>cacheExists(_0x252cfb),'path':()=>getGlobalCachePath(_0x252cfb)};}export function createProfileCache(_0x10f484,_0xf32715){const _0x2c63ea=_0x40d403=>{const _0x4b6c95=a161_0x43c3,_0x35fc33=_0x40d403||_0x4b6c95(0x7f);return _0x10f484['replace'](_0x4b6c95(0x7e),_0x35fc33);};return{'read':_0x468fa4=>{const _0x598f17=_0x2c63ea(_0x468fa4);return registerGlobalCacheKey(_0x598f17,_0xf32715),readCacheJson(_0x598f17);},'write':(_0x53a156,_0x5dab67)=>{const _0x486408=_0x2c63ea(_0x53a156);registerGlobalCacheKey(_0x486408,_0xf32715),writeCacheJson(_0x486408,_0x5dab67);},'clear':_0x50fcbb=>{const _0x487518=_0x2c63ea(_0x50fcbb);clearCache(_0x487518);},'exists':_0x4c5c33=>{const _0x485a61=_0x2c63ea(_0x4c5c33);return cacheExists(_0x485a61);},'path':_0x24867b=>{const _0x4d990f=_0x2c63ea(_0x24867b);return getGlobalCachePath(_0x4d990f);}};}export function createOptionalProfileCache(_0x38afa4,_0x4b4b4d,_0x443512={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x443512,_0x4a6578=_0x294742=>{return _0x294742?''+_0x38afa4+profileSeparator+_0x294742+suffix:''+_0x38afa4+suffix;};return{'read':_0x95b2d2=>{const _0x44281f=_0x4a6578(_0x95b2d2);return registerGlobalCacheKey(_0x44281f,_0x4b4b4d),readCacheJson(_0x44281f);},'write':(_0x25e83a,_0x45bb8c)=>{const _0x152699=_0x4a6578(_0x45bb8c);registerGlobalCacheKey(_0x152699,_0x4b4b4d),writeCacheJson(_0x152699,_0x25e83a);},'clear':_0x3ffa91=>{const _0x4f5974=_0x4a6578(_0x3ffa91);clearCache(_0x4f5974);},'exists':_0xc56ce3=>{const _0x2b232f=_0x4a6578(_0xc56ce3);return cacheExists(_0x2b232f);},'path':_0x4c99f0=>{const _0x3e376f=_0x4a6578(_0x4c99f0);return getGlobalCachePath(_0x3e376f);}};}export function clearGlobalRegistry(){const _0x1c0cf1=a161_0x43c3;registry[_0x1c0cf1(0x85)]();}
1
+ (function(_0x3923f1,_0x3090f8){const _0xc0f792=a161_0x4dc3,_0x403cb7=_0x3923f1();while(!![]){try{const _0x1cad01=-parseInt(_0xc0f792(0x1e8))/0x1*(-parseInt(_0xc0f792(0x1e3))/0x2)+parseInt(_0xc0f792(0x1f7))/0x3*(-parseInt(_0xc0f792(0x1eb))/0x4)+-parseInt(_0xc0f792(0x1f9))/0x5+parseInt(_0xc0f792(0x1f4))/0x6+parseInt(_0xc0f792(0x1e4))/0x7*(-parseInt(_0xc0f792(0x1f5))/0x8)+-parseInt(_0xc0f792(0x1f2))/0x9*(-parseInt(_0xc0f792(0x1e9))/0xa)+parseInt(_0xc0f792(0x1ed))/0xb;if(_0x1cad01===_0x3090f8)break;else _0x403cb7['push'](_0x403cb7['shift']());}catch(_0x4cb263){_0x403cb7['push'](_0x403cb7['shift']());}}}(a161_0x3f72,0xce8be));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x285769=a161_0x4dc3;return process.env.TDX_CACHE_DIR||join(homedir(),_0x285769(0x1f0),_0x285769(0x1e5));}const registry=new Map();export function registerGlobalCacheKey(_0x14e65a,_0x168a83){const _0x237bae=a161_0x4dc3,_0x1a14c1=registry[_0x237bae(0x1f8)](_0x14e65a);if(_0x1a14c1&&_0x1a14c1!==_0x168a83)throw new Error('Global\x20cache\x20key\x20\x22'+_0x14e65a+_0x237bae(0x1e7)+_0x1a14c1+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x168a83+'\x22');registry[_0x237bae(0x1f6)](_0x14e65a,_0x168a83);}export function getGlobalCachePath(_0x35f35f){return join(getGlobalCacheDir(),_0x35f35f);}function a161_0x4dc3(_0x22cca6,_0x295354){_0x22cca6=_0x22cca6-0x1e3;const _0x3f722c=a161_0x3f72();let _0x4dc345=_0x3f722c[_0x22cca6];return _0x4dc345;}function ensureGlobalCacheDir(){const _0x1a14d9=getGlobalCacheDir();!existsSync(_0x1a14d9)&&mkdirSync(_0x1a14d9,{'recursive':!![]});}function readCacheJson(_0x33fbc0){const _0x3836b5=a161_0x4dc3,_0x2b9076=getGlobalCachePath(_0x33fbc0);if(!existsSync(_0x2b9076))return undefined;try{const _0x28b36f=readFileSync(_0x2b9076,_0x3836b5(0x1ec));return JSON[_0x3836b5(0x1ef)](_0x28b36f);}catch{return undefined;}}function writeCacheJson(_0x46430b,_0x5029b4){const _0x122de1=a161_0x4dc3;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x46430b),JSON[_0x122de1(0x1f3)](_0x5029b4,null,0x2),'utf-8');}function readCacheText(_0x573e79){const _0x2b3c70=a161_0x4dc3,_0x5ffdc3=getGlobalCachePath(_0x573e79);if(!existsSync(_0x5ffdc3))return undefined;try{return readFileSync(_0x5ffdc3,_0x2b3c70(0x1ec));}catch{return undefined;}}function writeCacheText(_0x4e421f,_0x25d949){const _0x4f01f1=a161_0x4dc3;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4e421f),_0x25d949,_0x4f01f1(0x1ec));}function clearCache(_0x499271){const _0x50388d=getGlobalCachePath(_0x499271);if(existsSync(_0x50388d))try{unlinkSync(_0x50388d);}catch{}}function cacheExists(_0x98abff){return existsSync(getGlobalCachePath(_0x98abff));}function a161_0x3f72(){const _0x8fd379=['default','parse','.cache','trim','8901WaqHpT','stringify','1345020YIgCXV','388016RpHbBI','set','201NSyhut','get','6995085XXDFwF','183688xrSycd','238nUDhXE','tdx','{profile}','\x22\x20already\x20registered\x20by\x20\x22','8svDGJY','890ZlGWzy','replace','17324JLRiGl','utf-8','34510663LPZfWQ'];a161_0x3f72=function(){return _0x8fd379;};return a161_0x3f72();}export function createGlobalCache(_0x5d8563,_0x546554){return registerGlobalCacheKey(_0x5d8563,_0x546554),{'read':()=>readCacheJson(_0x5d8563),'write':_0x2af800=>writeCacheJson(_0x5d8563,_0x2af800),'clear':()=>clearCache(_0x5d8563),'exists':()=>cacheExists(_0x5d8563),'path':()=>getGlobalCachePath(_0x5d8563)};}export function createGlobalTextCache(_0x44f4cb,_0x58d37e){const _0x51fc11=a161_0x4dc3;return registerGlobalCacheKey(_0x44f4cb,_0x58d37e),{'read':()=>readCacheText(_0x44f4cb)?.[_0x51fc11(0x1f1)]()||undefined,'write':_0x537303=>writeCacheText(_0x44f4cb,_0x537303),'clear':()=>clearCache(_0x44f4cb),'exists':()=>cacheExists(_0x44f4cb),'path':()=>getGlobalCachePath(_0x44f4cb)};}export function createProfileCache(_0x59210a,_0x59b9c9){const _0x56efc4=_0x689dd5=>{const _0x23eee6=a161_0x4dc3,_0x346733=_0x689dd5||_0x23eee6(0x1ee);return _0x59210a[_0x23eee6(0x1ea)](_0x23eee6(0x1e6),_0x346733);};return{'read':_0x1267fd=>{const _0x5a3d88=_0x56efc4(_0x1267fd);return registerGlobalCacheKey(_0x5a3d88,_0x59b9c9),readCacheJson(_0x5a3d88);},'write':(_0xf30e15,_0x23c06a)=>{const _0x339c6c=_0x56efc4(_0xf30e15);registerGlobalCacheKey(_0x339c6c,_0x59b9c9),writeCacheJson(_0x339c6c,_0x23c06a);},'clear':_0x670354=>{const _0x4d3bda=_0x56efc4(_0x670354);clearCache(_0x4d3bda);},'exists':_0x9270e2=>{const _0x7badd3=_0x56efc4(_0x9270e2);return cacheExists(_0x7badd3);},'path':_0x39276e=>{const _0x378306=_0x56efc4(_0x39276e);return getGlobalCachePath(_0x378306);}};}export function createOptionalProfileCache(_0x1b7124,_0x2d0e17,_0x12e264={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x12e264,_0x285031=_0xb1909a=>{return _0xb1909a?''+_0x1b7124+profileSeparator+_0xb1909a+suffix:''+_0x1b7124+suffix;};return{'read':_0x283757=>{const _0x5db55d=_0x285031(_0x283757);return registerGlobalCacheKey(_0x5db55d,_0x2d0e17),readCacheJson(_0x5db55d);},'write':(_0x2488a2,_0x170c59)=>{const _0x1173a0=_0x285031(_0x170c59);registerGlobalCacheKey(_0x1173a0,_0x2d0e17),writeCacheJson(_0x1173a0,_0x2488a2);},'clear':_0x11896e=>{const _0x50b17f=_0x285031(_0x11896e);clearCache(_0x50b17f);},'exists':_0x33054b=>{const _0xd874c0=_0x285031(_0x33054b);return cacheExists(_0xd874c0);},'path':_0x1c3f21=>{const _0x5c4f26=_0x285031(_0x1c3f21);return getGlobalCachePath(_0x5c4f26);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- function a162_0x5b6a(){const _0x32996c=['NOT_FOUND','parse','44yusnce','3433448YOnesK','message','1199177wmFITd','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Permission\x20denied\x20reading\x20file:\x20','1056786pGgbFq','EACCES','804736jsWDzU','6345530bRtBTn','Invalid\x20JSON\x20in\x20file\x20\x27','12BWLxuu','33uVcZYV','INVALID_ARGUMENT','216565lbAsbr','691420uYMNNg','18aUCzEF','\x27:\x20','File\x20not\x20found:\x20','INTERNAL','code'];a162_0x5b6a=function(){return _0x32996c;};return a162_0x5b6a();}function a162_0x4e5a(_0x49bfd6,_0x4ccbf6){_0x49bfd6=_0x49bfd6-0xad;const _0x5b6a29=a162_0x5b6a();let _0x4e5a9a=_0x5b6a29[_0x49bfd6];return _0x4e5a9a;}(function(_0x1ae605,_0x4b326e){const _0x4913f2=a162_0x4e5a,_0x20192a=_0x1ae605();while(!![]){try{const _0x5ce473=parseInt(_0x4913f2(0xb7))/0x1+parseInt(_0x4913f2(0xbe))/0x2+parseInt(_0x4913f2(0xb5))/0x3+-parseInt(_0x4913f2(0xaf))/0x4*(-parseInt(_0x4913f2(0xbd))/0x5)+parseInt(_0x4913f2(0xba))/0x6*(-parseInt(_0x4913f2(0xb2))/0x7)+parseInt(_0x4913f2(0xb0))/0x8*(parseInt(_0x4913f2(0xbf))/0x9)+-parseInt(_0x4913f2(0xb8))/0xa*(parseInt(_0x4913f2(0xbb))/0xb);if(_0x5ce473===_0x4b326e)break;else _0x20192a['push'](_0x20192a['shift']());}catch(_0x3c8131){_0x20192a['push'](_0x20192a['shift']());}}}(a162_0x5b6a,0x90580));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x364b27,_0x328f14){const _0x402d0f=a162_0x4e5a;try{if(_0x328f14){const _0x4b7a49=await readFile(_0x364b27,'utf-8');try{return JSON[_0x402d0f(0xae)](_0x4b7a49);}catch(_0x27ebbf){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x402d0f(0xb9)+_0x364b27+_0x402d0f(0xc0)+(_0x27ebbf instanceof Error?_0x27ebbf['message']:String(_0x27ebbf)));}}else try{return JSON[_0x402d0f(0xae)](_0x364b27);}catch(_0x9b713d){throw new SDKError(ErrorCode[_0x402d0f(0xbc)],'Invalid\x20JSON\x20string:\x20'+(_0x9b713d instanceof Error?_0x9b713d[_0x402d0f(0xb1)]:String(_0x9b713d)));}}catch(_0x34a946){if(_0x34a946 instanceof SDKError)throw _0x34a946;if(_0x34a946 instanceof Error&&_0x402d0f(0xc3)in _0x34a946){const _0xd178a2=_0x34a946;if(_0xd178a2['code']==='ENOENT')throw new SDKError(ErrorCode[_0x402d0f(0xad)],_0x402d0f(0xc1)+_0x364b27);else{if(_0xd178a2[_0x402d0f(0xc3)]===_0x402d0f(0xb6))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x402d0f(0xb4)+_0x364b27);}}throw new SDKError(ErrorCode[_0x402d0f(0xc2)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x34a946 instanceof Error?_0x34a946[_0x402d0f(0xb1)]:String(_0x34a946)));}}export async function loadJSONFromOptions(_0x31decd,_0x448652){const _0x1e8c9f=a162_0x4e5a;if(_0x31decd&&_0x448652)throw new SDKError(ErrorCode[_0x1e8c9f(0xbc)],_0x1e8c9f(0xb3));if(_0x31decd)return await loadJSON(_0x31decd,![]);if(_0x448652)return await loadJSON(_0x448652,!![]);return undefined;}
1
+ (function(_0x2c9979,_0x51c7a6){const _0x2bc344=a162_0x4127,_0x373d97=_0x2c9979();while(!![]){try{const _0x3da02c=parseInt(_0x2bc344(0x15a))/0x1+-parseInt(_0x2bc344(0x153))/0x2*(parseInt(_0x2bc344(0x164))/0x3)+parseInt(_0x2bc344(0x151))/0x4*(-parseInt(_0x2bc344(0x154))/0x5)+parseInt(_0x2bc344(0x152))/0x6*(parseInt(_0x2bc344(0x14e))/0x7)+parseInt(_0x2bc344(0x155))/0x8+-parseInt(_0x2bc344(0x160))/0x9+-parseInt(_0x2bc344(0x14d))/0xa*(parseInt(_0x2bc344(0x158))/0xb);if(_0x3da02c===_0x51c7a6)break;else _0x373d97['push'](_0x373d97['shift']());}catch(_0x21e80f){_0x373d97['push'](_0x373d97['shift']());}}}(a162_0xa458,0xdd598));function a162_0xa458(){const _0x16dc1c=['138bmsByW','\x27:\x20','20800PYsGIg','1240372IYZjSb','INTERNAL','code','4jJYYcY','42waVYlm','38276rtDBQa','3326905CheBmV','14204840FtvJia','ENOENT','EACCES','1056SCqtHC','parse','158932qnDMrM','NOT_FOUND','File\x20not\x20found:\x20','Invalid\x20JSON\x20string:\x20','message','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','4705668iKJgTG','INVALID_ARGUMENT','utf-8','Invalid\x20JSON\x20in\x20file\x20\x27'];a162_0xa458=function(){return _0x16dc1c;};return a162_0xa458();}import{readFile}from'fs/promises';function a162_0x4127(_0x4e00c2,_0x25841d){_0x4e00c2=_0x4e00c2-0x14c;const _0xa45822=a162_0xa458();let _0x412705=_0xa45822[_0x4e00c2];return _0x412705;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x5cf51f,_0x4b9442){const _0x4321cd=a162_0x4127;try{if(_0x4b9442){const _0x164030=await readFile(_0x5cf51f,_0x4321cd(0x162));try{return JSON[_0x4321cd(0x159)](_0x164030);}catch(_0x3532d8){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4321cd(0x163)+_0x5cf51f+_0x4321cd(0x14c)+(_0x3532d8 instanceof Error?_0x3532d8['message']:String(_0x3532d8)));}}else try{return JSON[_0x4321cd(0x159)](_0x5cf51f);}catch(_0x334da8){throw new SDKError(ErrorCode[_0x4321cd(0x161)],_0x4321cd(0x15d)+(_0x334da8 instanceof Error?_0x334da8[_0x4321cd(0x15e)]:String(_0x334da8)));}}catch(_0x3eb9c1){if(_0x3eb9c1 instanceof SDKError)throw _0x3eb9c1;if(_0x3eb9c1 instanceof Error&&_0x4321cd(0x150)in _0x3eb9c1){const _0x5285e8=_0x3eb9c1;if(_0x5285e8[_0x4321cd(0x150)]===_0x4321cd(0x156))throw new SDKError(ErrorCode[_0x4321cd(0x15b)],_0x4321cd(0x15c)+_0x5cf51f);else{if(_0x5285e8[_0x4321cd(0x150)]===_0x4321cd(0x157))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0x5cf51f);}}throw new SDKError(ErrorCode[_0x4321cd(0x14f)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3eb9c1 instanceof Error?_0x3eb9c1[_0x4321cd(0x15e)]:String(_0x3eb9c1)));}}export async function loadJSONFromOptions(_0x5b30c9,_0x3fc66e){const _0x58abd6=a162_0x4127;if(_0x5b30c9&&_0x3fc66e)throw new SDKError(ErrorCode[_0x58abd6(0x161)],_0x58abd6(0x15f));if(_0x5b30c9)return await loadJSON(_0x5b30c9,![]);if(_0x3fc66e)return await loadJSON(_0x3fc66e,!![]);return undefined;}
@@ -1 +1 @@
1
- function a163_0xdab4(_0x3cb914,_0x522e5d){_0x3cb914=_0x3cb914-0x13e;const _0x4457c0=a163_0x4457();let _0xdab4f9=_0x4457c0[_0x3cb914];return _0xdab4f9;}function a163_0x4457(){const _0x4201c3=['589386DEboQI','146447eWkyaW','clear','\x22,\x20cannot\x20register\x20for\x20\x22','trim','3753662txPFuJ','root','698924JxTxWN','18ZlEnku','stringify','3185910nBLHhe','104tnXGgk','1142660eXdhzl','get','.cache/tdx','3vgNOLE','Cache\x20key\x20\x22','set','cwd','1bXoGWY','utf-8','\x22\x20already\x20registered\x20by\x20\x22','parse','2071580ibmbXc'];a163_0x4457=function(){return _0x4201c3;};return a163_0x4457();}const a163_0x1f3555=a163_0xdab4;(function(_0x193bf8,_0x5d8117){const _0x7c6f9c=a163_0xdab4,_0x29d3b7=_0x193bf8();while(!![]){try{const _0x142c53=-parseInt(_0x7c6f9c(0x150))/0x1*(parseInt(_0x7c6f9c(0x155))/0x2)+parseInt(_0x7c6f9c(0x14c))/0x3*(parseInt(_0x7c6f9c(0x144))/0x4)+-parseInt(_0x7c6f9c(0x154))/0x5+parseInt(_0x7c6f9c(0x147))/0x6+parseInt(_0x7c6f9c(0x13e))/0x7*(-parseInt(_0x7c6f9c(0x148))/0x8)+parseInt(_0x7c6f9c(0x145))/0x9*(parseInt(_0x7c6f9c(0x149))/0xa)+parseInt(_0x7c6f9c(0x142))/0xb;if(_0x142c53===_0x5d8117)break;else _0x29d3b7['push'](_0x29d3b7['shift']());}catch(_0x254ed3){_0x29d3b7['push'](_0x29d3b7['shift']());}}}(a163_0x4457,0x47e6c));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a163_0x1f3555(0x14b),registry=new Map();export function registerCacheKey(_0x1ff9b5,_0x40cb46){const _0x2b4ebb=a163_0x1f3555,_0x13dd33=registry[_0x2b4ebb(0x14a)](_0x1ff9b5);if(_0x13dd33&&_0x13dd33!==_0x40cb46)throw new Error(_0x2b4ebb(0x14d)+_0x1ff9b5+_0x2b4ebb(0x152)+_0x13dd33+_0x2b4ebb(0x140)+_0x40cb46+'\x22');registry[_0x2b4ebb(0x14e)](_0x1ff9b5,_0x40cb46);}export function getCacheDir(){const _0x4870a1=a163_0x1f3555,_0x2a77ef=process[_0x4870a1(0x14f)](),_0x13ae40=_0x2a77ef===parse(_0x2a77ef)[_0x4870a1(0x143)]?homedir():_0x2a77ef;return join(_0x13ae40,LOCAL_CACHE_DIR);}export function getCachePath(_0x4e7a91){return join(getCacheDir(),_0x4e7a91);}function ensureCacheDir(){const _0x49c8e7=getCacheDir();!existsSync(_0x49c8e7)&&mkdirSync(_0x49c8e7,{'recursive':!![]});}function readCacheJson(_0x832067){const _0x4a0219=a163_0x1f3555,_0x9b111e=getCachePath(_0x832067);if(!existsSync(_0x9b111e))return undefined;try{const _0x5088e5=readFileSync(_0x9b111e,_0x4a0219(0x151));return JSON[_0x4a0219(0x153)](_0x5088e5);}catch{return undefined;}}function writeCacheJson(_0xe335b0,_0x5dc7dd){const _0x402045=a163_0x1f3555;ensureCacheDir(),writeFileSync(getCachePath(_0xe335b0),JSON[_0x402045(0x146)](_0x5dc7dd,null,0x2),_0x402045(0x151));}function readCacheText(_0x32646e){const _0x170514=a163_0x1f3555,_0x158341=getCachePath(_0x32646e);if(!existsSync(_0x158341))return undefined;try{return readFileSync(_0x158341,_0x170514(0x151));}catch{return undefined;}}function writeCacheText(_0x1455bd,_0x31fe6a){const _0x83cdea=a163_0x1f3555;ensureCacheDir(),writeFileSync(getCachePath(_0x1455bd),_0x31fe6a,_0x83cdea(0x151));}function clearCache(_0x252d62){const _0x224a8a=getCachePath(_0x252d62);if(existsSync(_0x224a8a))try{unlinkSync(_0x224a8a);}catch{}}function cacheExists(_0x539723){return existsSync(getCachePath(_0x539723));}export function createCache(_0x24788f,_0x2a6ecb){return registerCacheKey(_0x24788f,_0x2a6ecb),{'read':()=>readCacheJson(_0x24788f),'write':_0x4ab8f3=>writeCacheJson(_0x24788f,_0x4ab8f3),'clear':()=>clearCache(_0x24788f),'exists':()=>cacheExists(_0x24788f),'path':()=>getCachePath(_0x24788f)};}export function createTextCache(_0x31cdc2,_0x2ee541){const _0xd3d2ec=a163_0x1f3555;return registerCacheKey(_0x31cdc2,_0x2ee541),{'read':()=>readCacheText(_0x31cdc2)?.[_0xd3d2ec(0x141)]()||undefined,'write':_0xb2337a=>writeCacheText(_0x31cdc2,_0xb2337a),'clear':()=>clearCache(_0x31cdc2),'exists':()=>cacheExists(_0x31cdc2),'path':()=>getCachePath(_0x31cdc2)};}export function clearRegistry(){const _0x1dc100=a163_0x1f3555;registry[_0x1dc100(0x13f)]();}
1
+ (function(_0x5ef532,_0x3a6d6a){const _0x596c5c=a163_0x5bf7,_0x1cb561=_0x5ef532();while(!![]){try{const _0x8015b=parseInt(_0x596c5c(0x1b2))/0x1+parseInt(_0x596c5c(0x1b7))/0x2+-parseInt(_0x596c5c(0x1b3))/0x3+parseInt(_0x596c5c(0x1b9))/0x4+-parseInt(_0x596c5c(0x1ae))/0x5*(-parseInt(_0x596c5c(0x1ac))/0x6)+-parseInt(_0x596c5c(0x1b5))/0x7*(parseInt(_0x596c5c(0x1b8))/0x8)+-parseInt(_0x596c5c(0x1b1))/0x9;if(_0x8015b===_0x3a6d6a)break;else _0x1cb561['push'](_0x1cb561['shift']());}catch(_0x20cf6e){_0x1cb561['push'](_0x1cb561['shift']());}}}(a163_0x4b67,0x28e5b));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(_0x2a832d,_0x4c7ae8){const _0xab11a6=a163_0x5bf7,_0x2937bb=registry[_0xab11a6(0x1ad)](_0x2a832d);if(_0x2937bb&&_0x2937bb!==_0x4c7ae8)throw new Error(_0xab11a6(0x1b4)+_0x2a832d+'\x22\x20already\x20registered\x20by\x20\x22'+_0x2937bb+_0xab11a6(0x1b6)+_0x4c7ae8+'\x22');registry[_0xab11a6(0x1af)](_0x2a832d,_0x4c7ae8);}export function getCacheDir(){const _0x29f135=process['cwd'](),_0x2a9a26=_0x29f135===parse(_0x29f135)['root']?homedir():_0x29f135;return join(_0x2a9a26,LOCAL_CACHE_DIR);}export function getCachePath(_0x15538b){return join(getCacheDir(),_0x15538b);}function a163_0x5bf7(_0x14ba7b,_0x409cc4){_0x14ba7b=_0x14ba7b-0x1aa;const _0x4b672b=a163_0x4b67();let _0x5bf7d7=_0x4b672b[_0x14ba7b];return _0x5bf7d7;}function ensureCacheDir(){const _0x3da1c3=getCacheDir();!existsSync(_0x3da1c3)&&mkdirSync(_0x3da1c3,{'recursive':!![]});}function readCacheJson(_0x5a2198){const _0x2b9b44=a163_0x5bf7,_0x5620e3=getCachePath(_0x5a2198);if(!existsSync(_0x5620e3))return undefined;try{const _0x3f8a46=readFileSync(_0x5620e3,_0x2b9b44(0x1aa));return JSON[_0x2b9b44(0x1b0)](_0x3f8a46);}catch{return undefined;}}function writeCacheJson(_0x1d8266,_0x4dbc74){const _0x1308fc=a163_0x5bf7;ensureCacheDir(),writeFileSync(getCachePath(_0x1d8266),JSON[_0x1308fc(0x1ba)](_0x4dbc74,null,0x2),_0x1308fc(0x1aa));}function readCacheText(_0x2861ff){const _0x3def57=getCachePath(_0x2861ff);if(!existsSync(_0x3def57))return undefined;try{return readFileSync(_0x3def57,'utf-8');}catch{return undefined;}}function writeCacheText(_0xf7c3cb,_0x4035e0){const _0x20ac91=a163_0x5bf7;ensureCacheDir(),writeFileSync(getCachePath(_0xf7c3cb),_0x4035e0,_0x20ac91(0x1aa));}function clearCache(_0x4ac5fd){const _0x318004=getCachePath(_0x4ac5fd);if(existsSync(_0x318004))try{unlinkSync(_0x318004);}catch{}}function cacheExists(_0x546d24){return existsSync(getCachePath(_0x546d24));}export function createCache(_0x193cef,_0x519f54){return registerCacheKey(_0x193cef,_0x519f54),{'read':()=>readCacheJson(_0x193cef),'write':_0x1dbe7c=>writeCacheJson(_0x193cef,_0x1dbe7c),'clear':()=>clearCache(_0x193cef),'exists':()=>cacheExists(_0x193cef),'path':()=>getCachePath(_0x193cef)};}export function createTextCache(_0x4166b1,_0x37ee70){const _0x1b5171=a163_0x5bf7;return registerCacheKey(_0x4166b1,_0x37ee70),{'read':()=>readCacheText(_0x4166b1)?.[_0x1b5171(0x1ab)]()||undefined,'write':_0x1319c4=>writeCacheText(_0x4166b1,_0x1319c4),'clear':()=>clearCache(_0x4166b1),'exists':()=>cacheExists(_0x4166b1),'path':()=>getCachePath(_0x4166b1)};}export function clearRegistry(){const _0x308cc9=a163_0x5bf7;registry[_0x308cc9(0x1bb)]();}function a163_0x4b67(){const _0x4db21d=['381390ZkaJPP','get','20LytzhX','set','parse','4464315fhJFGT','56988QxnvlM','493530ZvBmNC','Cache\x20key\x20\x22','90349bYyXeW','\x22,\x20cannot\x20register\x20for\x20\x22','611714XgdZxN','72IwVyJM','1308472yrOOpf','stringify','clear','utf-8','trim'];a163_0x4b67=function(){return _0x4db21d;};return a163_0x4b67();}
@@ -1 +1 @@
1
- const a164_0x232372=a164_0x3d0e;(function(_0x141681,_0x2e1397){const _0x17024e=a164_0x3d0e,_0x4192af=_0x141681();while(!![]){try{const _0x932baa=-parseInt(_0x17024e(0x1e0))/0x1+parseInt(_0x17024e(0x1dd))/0x2*(-parseInt(_0x17024e(0x1db))/0x3)+parseInt(_0x17024e(0x1e4))/0x4+parseInt(_0x17024e(0x1dc))/0x5+parseInt(_0x17024e(0x1ec))/0x6*(-parseInt(_0x17024e(0x1da))/0x7)+-parseInt(_0x17024e(0x1d7))/0x8*(parseInt(_0x17024e(0x1d8))/0x9)+-parseInt(_0x17024e(0x1e8))/0xa*(-parseInt(_0x17024e(0x1ee))/0xb);if(_0x932baa===_0x2e1397)break;else _0x4192af['push'](_0x4192af['shift']());}catch(_0x492858){_0x4192af['push'](_0x4192af['shift']());}}}(a164_0x10de,0x23bf5));import a164_0x39b689 from'chalk';function a164_0x10de(){const _0x529787=['colors','default','504308drgueV','format','WARN','red','964120moLKpO','level',']\x20[','timestamp','108AVjnuA','colorLevel','33VrnxzC','cyan','ERROR','dim','blue','Chalk','267616zGesps','9qnfbaN','message','86555fPxYNi','158694fXXZwd','1452305dXiASl','8OYAuuA','DEBUG','chalk','91739DgTqFg','component'];a164_0x10de=function(){return _0x529787;};return a164_0x10de();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a164_0x3d0e(_0x26ab04,_0x3df773){_0x26ab04=_0x26ab04-0x1d4;const _0x10de33=a164_0x10de();let _0x3d0e34=_0x10de33[_0x26ab04];return _0x3d0e34;}const chalkModule=a164_0x39b689,ChalkClass=chalkModule[a164_0x232372(0x1d6)]||chalkModule[a164_0x232372(0x1e3)]?.[a164_0x232372(0x1d6)];export class DefaultLogFormatter{['colors'];[a164_0x232372(0x1df)];constructor(_0x4c7351={}){const _0x55048c=a164_0x232372;this[_0x55048c(0x1e2)]=_0x4c7351[_0x55048c(0x1e2)]??![],this['chalk']=_0x4c7351[_0x55048c(0x1e2)]&&ChalkClass?new ChalkClass({'level':0x3}):a164_0x39b689;}[a164_0x232372(0x1e5)](_0x6b5222){const _0x2d1985=a164_0x232372,_0x5bd6e2=formatTimestamp(_0x6b5222[_0x2d1985(0x1eb)]),_0x8ff84=logLevelToString(_0x6b5222['level']);if(!this['colors'])return _0x5bd6e2+'\x20['+_0x8ff84+_0x2d1985(0x1ea)+_0x6b5222['component']+']\x20'+_0x6b5222[_0x2d1985(0x1d9)];const _0x143aed=this[_0x2d1985(0x1df)][_0x2d1985(0x1d4)](_0x5bd6e2),_0x4788cc=this[_0x2d1985(0x1ed)](_0x8ff84,_0x6b5222[_0x2d1985(0x1e9)]),_0x2964ac=this[_0x2d1985(0x1df)][_0x2d1985(0x1d5)]('['+_0x6b5222[_0x2d1985(0x1e1)]+']');return _0x143aed+'\x20'+_0x4788cc+'\x20'+_0x2964ac+'\x20'+_0x6b5222['message'];}[a164_0x232372(0x1ed)](_0x204f78,_0x3e4344){const _0x3dc584=a164_0x232372;switch(_0x3e4344){case LogLevel['TRACE']:return this[_0x3dc584(0x1df)]['gray']('['+_0x204f78+']');case LogLevel[_0x3dc584(0x1de)]:return this['chalk']['green']('['+_0x204f78+']');case LogLevel['INFO']:return this[_0x3dc584(0x1df)][_0x3dc584(0x1ef)]('['+_0x204f78+']');case LogLevel[_0x3dc584(0x1e6)]:return this[_0x3dc584(0x1df)]['yellow']('['+_0x204f78+']');case LogLevel[_0x3dc584(0x1f0)]:return this[_0x3dc584(0x1df)][_0x3dc584(0x1e7)]('['+_0x204f78+']');default:return'['+_0x204f78+']';}}}
1
+ const a164_0x422995=a164_0x83e7;(function(_0x44dee6,_0x1ed848){const _0x412c9c=a164_0x83e7,_0x347888=_0x44dee6();while(!![]){try{const _0x76cd72=-parseInt(_0x412c9c(0x90))/0x1*(parseInt(_0x412c9c(0x91))/0x2)+-parseInt(_0x412c9c(0x93))/0x3*(-parseInt(_0x412c9c(0x87))/0x4)+-parseInt(_0x412c9c(0x8e))/0x5+parseInt(_0x412c9c(0x88))/0x6*(-parseInt(_0x412c9c(0x8c))/0x7)+-parseInt(_0x412c9c(0x80))/0x8+parseInt(_0x412c9c(0x95))/0x9+parseInt(_0x412c9c(0x97))/0xa;if(_0x76cd72===_0x1ed848)break;else _0x347888['push'](_0x347888['shift']());}catch(_0x308fe6){_0x347888['push'](_0x347888['shift']());}}}(a164_0x307e,0x3428e));import a164_0x205acf from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a164_0x83e7(_0x523e50,_0x55d7e0){_0x523e50=_0x523e50-0x80;const _0x307e41=a164_0x307e();let _0x83e721=_0x307e41[_0x523e50];return _0x83e721;}const chalkModule=a164_0x205acf,ChalkClass=chalkModule[a164_0x422995(0x8d)]||chalkModule[a164_0x422995(0x82)]?.['Chalk'];function a164_0x307e(){const _0x3723b3=['1073950oeMUEb','DEBUG','601gtjauB','10YVfipW','yellow','4146SGGcox','TRACE','896841dOZdNV','colorLevel','6622720DXDLtg','message','gray','format',']\x20[','3266152vDEACG','chalk','default','colors','green','dim','level','380lVlIxm','321006DOqhqK','timestamp','component','INFO','7GVZgUK','Chalk'];a164_0x307e=function(){return _0x3723b3;};return a164_0x307e();}export class DefaultLogFormatter{['colors'];[a164_0x422995(0x81)];constructor(_0x315443={}){const _0x91a395=a164_0x422995;this[_0x91a395(0x83)]=_0x315443[_0x91a395(0x83)]??![],this[_0x91a395(0x81)]=_0x315443['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a164_0x205acf;}[a164_0x422995(0x9a)](_0x5280c9){const _0x80419e=a164_0x422995,_0x2f32a3=formatTimestamp(_0x5280c9[_0x80419e(0x89)]),_0x5bc6a9=logLevelToString(_0x5280c9[_0x80419e(0x86)]);if(!this[_0x80419e(0x83)])return _0x2f32a3+'\x20['+_0x5bc6a9+_0x80419e(0x9b)+_0x5280c9[_0x80419e(0x8a)]+']\x20'+_0x5280c9[_0x80419e(0x98)];const _0x5eb651=this[_0x80419e(0x81)][_0x80419e(0x85)](_0x2f32a3),_0x39aa51=this[_0x80419e(0x96)](_0x5bc6a9,_0x5280c9[_0x80419e(0x86)]),_0x8654a8=this['chalk']['blue']('['+_0x5280c9[_0x80419e(0x8a)]+']');return _0x5eb651+'\x20'+_0x39aa51+'\x20'+_0x8654a8+'\x20'+_0x5280c9[_0x80419e(0x98)];}[a164_0x422995(0x96)](_0x7b1317,_0x2477cb){const _0x2c24cd=a164_0x422995;switch(_0x2477cb){case LogLevel[_0x2c24cd(0x94)]:return this[_0x2c24cd(0x81)][_0x2c24cd(0x99)]('['+_0x7b1317+']');case LogLevel[_0x2c24cd(0x8f)]:return this[_0x2c24cd(0x81)][_0x2c24cd(0x84)]('['+_0x7b1317+']');case LogLevel[_0x2c24cd(0x8b)]:return this[_0x2c24cd(0x81)]['cyan']('['+_0x7b1317+']');case LogLevel['WARN']:return this[_0x2c24cd(0x81)][_0x2c24cd(0x92)]('['+_0x7b1317+']');case LogLevel['ERROR']:return this[_0x2c24cd(0x81)]['red']('['+_0x7b1317+']');default:return'['+_0x7b1317+']';}}}
@@ -1 +1 @@
1
- (function(_0x13985e,_0x376d28){var _0x2d9654=a165_0x30cd,_0x3d9208=_0x13985e();while(!![]){try{var _0x521e2b=parseInt(_0x2d9654(0xd9))/0x1*(-parseInt(_0x2d9654(0xdc))/0x2)+parseInt(_0x2d9654(0xd3))/0x3+-parseInt(_0x2d9654(0xd8))/0x4+-parseInt(_0x2d9654(0xd7))/0x5+-parseInt(_0x2d9654(0xd4))/0x6+parseInt(_0x2d9654(0xd6))/0x7*(parseInt(_0x2d9654(0xd5))/0x8)+-parseInt(_0x2d9654(0xdb))/0x9*(-parseInt(_0x2d9654(0xda))/0xa);if(_0x521e2b===_0x376d28)break;else _0x3d9208['push'](_0x3d9208['shift']());}catch(_0x124b3a){_0x3d9208['push'](_0x3d9208['shift']());}}}(a165_0x3ee8,0x597a4));export{DefaultLogFormatter}from'./default-formatter.js';function a165_0x30cd(_0x2d3545,_0x2b9437){_0x2d3545=_0x2d3545-0xd3;var _0x3ee86c=a165_0x3ee8();var _0x30cdec=_0x3ee86c[_0x2d3545];return _0x30cdec;}function a165_0x3ee8(){var _0xab044d=['2lmTwhP','1984050PTodiM','1037652LNtHLe','21256XxBrAh','826nqHghW','1096960ufnPOt','1251048vGNfsY','221239WUXXZN','3179590meDigd','9SaJjEt'];a165_0x3ee8=function(){return _0xab044d;};return a165_0x3ee8();}
1
+ (function(_0x471876,_0x5c2fb3){var _0x5ed95e=a165_0x1b06,_0x3427f8=_0x471876();while(!![]){try{var _0x2f6922=-parseInt(_0x5ed95e(0x1ad))/0x1+-parseInt(_0x5ed95e(0x1a4))/0x2*(-parseInt(_0x5ed95e(0x1af))/0x3)+parseInt(_0x5ed95e(0x1ae))/0x4*(parseInt(_0x5ed95e(0x1a7))/0x5)+parseInt(_0x5ed95e(0x1a8))/0x6*(-parseInt(_0x5ed95e(0x1a9))/0x7)+-parseInt(_0x5ed95e(0x1aa))/0x8*(-parseInt(_0x5ed95e(0x1a6))/0x9)+-parseInt(_0x5ed95e(0x1ab))/0xa+-parseInt(_0x5ed95e(0x1ac))/0xb*(parseInt(_0x5ed95e(0x1a5))/0xc);if(_0x2f6922===_0x5c2fb3)break;else _0x3427f8['push'](_0x3427f8['shift']());}catch(_0x2269dd){_0x3427f8['push'](_0x3427f8['shift']());}}}(a165_0x3fa3,0x23e84));function a165_0x1b06(_0x58e917,_0x4fe26d){_0x58e917=_0x58e917-0x1a4;var _0x3fa3df=a165_0x3fa3();var _0x1b06d3=_0x3fa3df[_0x58e917];return _0x1b06d3;}export{DefaultLogFormatter}from'./default-formatter.js';function a165_0x3fa3(){var _0x4245bb=['49155NjismW','324XfWymH','2757gxPmHl','536okxeyD','12JyjvWq','9kcqjeU','16085UQTVmj','1528242bELOao','7zthOyJ','1415944odAuNW','1500410ldlDCO','911713wLZLsC'];a165_0x3fa3=function(){return _0x4245bb;};return a165_0x3fa3();}
@@ -1 +1 @@
1
- const a166_0x1e703e=a166_0x10b4;(function(_0x2882ae,_0x402d22){const _0x5b263d=a166_0x10b4,_0x1096e9=_0x2882ae();while(!![]){try{const _0x3d21f7=parseInt(_0x5b263d(0x17e))/0x1+-parseInt(_0x5b263d(0x16e))/0x2*(parseInt(_0x5b263d(0x172))/0x3)+-parseInt(_0x5b263d(0x173))/0x4*(parseInt(_0x5b263d(0x182))/0x5)+parseInt(_0x5b263d(0x170))/0x6+-parseInt(_0x5b263d(0x180))/0x7*(parseInt(_0x5b263d(0x171))/0x8)+-parseInt(_0x5b263d(0x17f))/0x9*(-parseInt(_0x5b263d(0x176))/0xa)+parseInt(_0x5b263d(0x17a))/0xb*(parseInt(_0x5b263d(0x177))/0xc);if(_0x3d21f7===_0x402d22)break;else _0x1096e9['push'](_0x1096e9['shift']());}catch(_0x48f98e){_0x1096e9['push'](_0x1096e9['shift']());}}}(a166_0x81a1,0x57a57));import{LogLevel as a166_0x157490}from'../types.js';function a166_0x81a1(){const _0x207aec=['208ivjIPk','246GoeHGD','6740szJsxI','error','useStderr','1830jPZxax','60vNHDbb','WARN','formatter','768922omZxlf','format','handle','log','11165Wlclbe','9207ibkeEc','101948vxjMWe','colors','355oKJnId','minLevel','7222RvvVMh','level','3633096DmARqJ'];a166_0x81a1=function(){return _0x207aec;};return a166_0x81a1();}import{DefaultLogFormatter}from'../formatters/index.js';function a166_0x10b4(_0x32094d,_0x436b89){_0x32094d=_0x32094d-0x16e;const _0x81a106=a166_0x81a1();let _0x10b438=_0x81a106[_0x32094d];return _0x10b438;}export class ConsoleHandler{[a166_0x1e703e(0x183)];[a166_0x1e703e(0x175)];['formatter'];constructor(_0x29f744={}){const _0x252d74=a166_0x1e703e;this[_0x252d74(0x183)]=_0x29f744[_0x252d74(0x183)]??a166_0x157490[_0x252d74(0x178)],this[_0x252d74(0x175)]=_0x29f744[_0x252d74(0x175)]??!![],this[_0x252d74(0x179)]=new DefaultLogFormatter({'colors':_0x29f744[_0x252d74(0x181)]??!![]});}[a166_0x1e703e(0x17c)](_0x33efdf){const _0x1b3ca3=a166_0x1e703e;if(_0x33efdf[_0x1b3ca3(0x16f)]<this[_0x1b3ca3(0x183)])return;const _0x117a1e=this[_0x1b3ca3(0x179)][_0x1b3ca3(0x17b)](_0x33efdf);this[_0x1b3ca3(0x175)]&&_0x33efdf[_0x1b3ca3(0x16f)]>=a166_0x157490[_0x1b3ca3(0x178)]?console[_0x1b3ca3(0x174)](_0x117a1e):console[_0x1b3ca3(0x17d)](_0x117a1e);}}
1
+ function a166_0x333e(_0x36fe0a,_0x18d7b8){_0x36fe0a=_0x36fe0a-0x13d;const _0xedbaa3=a166_0xedba();let _0x333e66=_0xedbaa3[_0x36fe0a];return _0x333e66;}const a166_0x4023d7=a166_0x333e;function a166_0xedba(){const _0x2fdb56=['level','log','59283RNCCmc','useStderr','787934cTRfWK','colors','5bVGcMS','110lZlgmc','1669740NDAWIT','format','error','72kioUrd','385389bXuXbu','2485772XMHvSY','WARN','formatter','minLevel','3621036oVnxMw','1033219AITIWM','7vcShkH'];a166_0xedba=function(){return _0x2fdb56;};return a166_0xedba();}(function(_0x2e6654,_0x4d3145){const _0xa9b6a5=a166_0x333e,_0x27e668=_0x2e6654();while(!![]){try{const _0x696782=parseInt(_0xa9b6a5(0x14d))/0x1+parseInt(_0xa9b6a5(0x145))/0x2+parseInt(_0xa9b6a5(0x149))/0x3+parseInt(_0xa9b6a5(0x14e))/0x4*(-parseInt(_0xa9b6a5(0x147))/0x5)+-parseInt(_0xa9b6a5(0x13e))/0x6*(-parseInt(_0xa9b6a5(0x140))/0x7)+parseInt(_0xa9b6a5(0x14c))/0x8*(parseInt(_0xa9b6a5(0x143))/0x9)+-parseInt(_0xa9b6a5(0x148))/0xa*(parseInt(_0xa9b6a5(0x13f))/0xb);if(_0x696782===_0x4d3145)break;else _0x27e668['push'](_0x27e668['shift']());}catch(_0x17a96d){_0x27e668['push'](_0x27e668['shift']());}}}(a166_0xedba,0x53fff));import{LogLevel as a166_0x800bac}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a166_0x4023d7(0x13d)];[a166_0x4023d7(0x144)];[a166_0x4023d7(0x150)];constructor(_0x34a85b={}){const _0x34398d=a166_0x4023d7;this[_0x34398d(0x13d)]=_0x34a85b[_0x34398d(0x13d)]??a166_0x800bac[_0x34398d(0x14f)],this[_0x34398d(0x144)]=_0x34a85b[_0x34398d(0x144)]??!![],this[_0x34398d(0x150)]=new DefaultLogFormatter({'colors':_0x34a85b[_0x34398d(0x146)]??!![]});}['handle'](_0x4bb723){const _0x8b3189=a166_0x4023d7;if(_0x4bb723['level']<this[_0x8b3189(0x13d)])return;const _0x156bbb=this[_0x8b3189(0x150)][_0x8b3189(0x14a)](_0x4bb723);this[_0x8b3189(0x144)]&&_0x4bb723[_0x8b3189(0x141)]>=a166_0x800bac['WARN']?console[_0x8b3189(0x14b)](_0x156bbb):console[_0x8b3189(0x142)](_0x156bbb);}}
@@ -1 +1 @@
1
- const a167_0x546250=a167_0x2797;(function(_0x5ee029,_0x2267ac){const _0x5a0d7c=a167_0x2797,_0x690faf=_0x5ee029();while(!![]){try{const _0x5825ba=-parseInt(_0x5a0d7c(0x207))/0x1*(parseInt(_0x5a0d7c(0x20f))/0x2)+-parseInt(_0x5a0d7c(0x1fd))/0x3+parseInt(_0x5a0d7c(0x20d))/0x4+parseInt(_0x5a0d7c(0x1f6))/0x5*(parseInt(_0x5a0d7c(0x201))/0x6)+-parseInt(_0x5a0d7c(0x212))/0x7*(parseInt(_0x5a0d7c(0x205))/0x8)+-parseInt(_0x5a0d7c(0x1ec))/0x9+parseInt(_0x5a0d7c(0x1ee))/0xa;if(_0x5825ba===_0x2267ac)break;else _0x690faf['push'](_0x690faf['shift']());}catch(_0x56a821){_0x690faf['push'](_0x690faf['shift']());}}}(a167_0x35a4,0x78753));function a167_0x35a4(){const _0x4644ce=['rotateOldLogs','Warning:\x20Failed\x20to\x20compress\x20','logBaseName','mtime','21370XlafeP','filePath','logFileName','replace','rotate','handle','toISOString','2945835VvkgKh','.log','end','error','1098bVDZGX','logs','logDir','.gz','1885472QobSoV','write','4oikgXk','getLogPath','logStream','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','close','includes','2839196aAiYOr','Warning:\x20Error\x20writing\x20to\x20','163960JLLzzD','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','format','28cXTPQE','\x5c$&','210807JtqXVh','logPath','12774780oXBLGJ','split','filter','tdx.log'];a167_0x35a4=function(){return _0x4644ce;};return a167_0x35a4();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';function a167_0x2797(_0x3c50d6,_0x26e76e){_0x3c50d6=_0x3c50d6-0x1ec;const _0x35a46c=a167_0x35a4();let _0x279716=_0x35a46c[_0x3c50d6];return _0x279716;}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a167_0x546250(0x1ed)];['logDir'];[a167_0x546250(0x1f8)];['logBaseName'];[a167_0x546250(0x209)]=null;[a167_0x546250(0x1fa)];constructor(_0x42a261={}){const _0x201538=a167_0x546250;this['logPath']=_0x42a261[_0x201538(0x1f7)]??join(getGlobalCacheDir(),_0x201538(0x202),_0x201538(0x1f1)),this[_0x201538(0x203)]=dirname(this[_0x201538(0x1ed)]),this[_0x201538(0x1f8)]=basename(this['logPath']),this['logBaseName']=this[_0x201538(0x1f8)]['replace'](/\.log$/,''),this[_0x201538(0x1fa)]=_0x42a261[_0x201538(0x1fa)]??!![];}async['init'](){const _0x3685e4=a167_0x546250;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x3685e4(0x1fa)]&&await this[_0x3685e4(0x1f2)](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x3685e4(0x209)]['on']('error',_0xc5b8a7=>{const _0x39c740=_0x3685e4;console[_0x39c740(0x200)](_0x39c740(0x20e)+this[_0x39c740(0x1f8)]+':',_0xc5b8a7['message']);});}catch(_0x5d2f25){console['error'](_0x3685e4(0x20a),_0x5d2f25);}}[a167_0x546250(0x1fb)](_0x25ff92){const _0x5c1bfa=a167_0x546250;if(!this[_0x5c1bfa(0x209)])return;const _0x5b5574=Logger[_0x5c1bfa(0x211)](_0x25ff92);this[_0x5c1bfa(0x209)][_0x5c1bfa(0x206)](_0x5b5574+'\x0a');}async[a167_0x546250(0x20b)](){return new Promise(_0x1b9c01=>{const _0x4661ee=a167_0x2797;this[_0x4661ee(0x209)]?this[_0x4661ee(0x209)][_0x4661ee(0x1ff)](()=>{const _0x5a1562=_0x4661ee;this[_0x5a1562(0x209)]=null,_0x1b9c01();}):_0x1b9c01();});}[a167_0x546250(0x208)](){const _0xe118f3=a167_0x546250;return this[_0xe118f3(0x1ed)];}async['rotateOldLogs'](){const _0x288378=a167_0x546250;try{const _0x502e19=await readdir(this['logDir']),_0x322ada=new Date()[_0x288378(0x1fc)]()[_0x288378(0x1ef)]('T')[0x0];if(_0x502e19[_0x288378(0x20c)](this[_0x288378(0x1f8)])){const _0x1b6c3e=join(this[_0x288378(0x203)],this[_0x288378(0x1f8)]),_0x3fbf8d=await stat(_0x1b6c3e),_0x137e70=new Date(_0x3fbf8d[_0x288378(0x1f5)])['toISOString']()[_0x288378(0x1ef)]('T')[0x0];if(_0x137e70<_0x322ada){const _0x4ef5dd=join(this[_0x288378(0x203)],this[_0x288378(0x1f4)]+'-'+_0x137e70+_0x288378(0x1fe));await rename(_0x1b6c3e,_0x4ef5dd);}}const _0x49e3d1=await readdir(this['logDir']),_0x561aa6=this[_0x288378(0x1f4)][_0x288378(0x1f9)](/[.*+?^${}()|[\]\\]/g,_0x288378(0x213)),_0x377589=new RegExp('^'+_0x561aa6+_0x288378(0x210)),_0x345306=_0x49e3d1[_0x288378(0x1f0)](_0x15c81a=>_0x377589['test'](_0x15c81a));for(const _0x42cc9c of _0x345306){const _0x1a4ab5=join(this['logDir'],_0x42cc9c),_0x3ac00e=join(this[_0x288378(0x203)],_0x42cc9c+_0x288378(0x204));try{await pipeline(createReadStream(_0x1a4ab5),createGzip(),createWriteStream(_0x3ac00e)),await unlink(_0x1a4ab5);}catch(_0x54c467){console[_0x288378(0x200)](_0x288378(0x1f3)+_0x42cc9c+':',_0x54c467);}}}catch{}}}
1
+ const a167_0x24d696=a167_0x3ff0;(function(_0xab9de8,_0x56a504){const _0x5e267d=a167_0x3ff0,_0x152c48=_0xab9de8();while(!![]){try{const _0x389f7e=parseInt(_0x5e267d(0xf0))/0x1+parseInt(_0x5e267d(0xf6))/0x2*(parseInt(_0x5e267d(0x10a))/0x3)+-parseInt(_0x5e267d(0xe7))/0x4+-parseInt(_0x5e267d(0x10c))/0x5*(parseInt(_0x5e267d(0xee))/0x6)+parseInt(_0x5e267d(0xfa))/0x7*(-parseInt(_0x5e267d(0x109))/0x8)+parseInt(_0x5e267d(0x103))/0x9+-parseInt(_0x5e267d(0x101))/0xa*(-parseInt(_0x5e267d(0xea))/0xb);if(_0x389f7e===_0x56a504)break;else _0x152c48['push'](_0x152c48['shift']());}catch(_0x3efc99){_0x152c48['push'](_0x152c48['shift']());}}}(a167_0x451e,0x2d205));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a167_0x451e(){const _0x381c58=['88bOTDMg','logStream','.gz','write','532704VmDjLG','test','261421oFOGVo','.log','logDir','mtime','replace','rotateOldLogs','106174ImvVjl','Warning:\x20Error\x20writing\x20to\x20','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logPath','13391roFiEF','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logFileName','error','logBaseName','Warning:\x20Failed\x20to\x20compress\x20','end','321480iKPQsk','logs','2459385kqbksf','format','getLogPath','filter','rotate','includes','1144WduWxl','3YSXoze','init','15bsJVUb','480836klJSxh','split','toISOString'];a167_0x451e=function(){return _0x381c58;};return a167_0x451e();}import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a167_0x3ff0(_0x4faf66,_0x5d4f80){_0x4faf66=_0x4faf66-0xe7;const _0x451eae=a167_0x451e();let _0x3ff093=_0x451eae[_0x4faf66];return _0x3ff093;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a167_0x24d696(0xf2)];[a167_0x24d696(0xfc)];['logBaseName'];[a167_0x24d696(0xeb)]=null;['rotate'];constructor(_0x444b59={}){const _0x44cc75=a167_0x24d696;this[_0x44cc75(0xf9)]=_0x444b59['filePath']??join(getGlobalCacheDir(),_0x44cc75(0x102),'tdx.log'),this[_0x44cc75(0xf2)]=dirname(this['logPath']),this['logFileName']=basename(this[_0x44cc75(0xf9)]),this['logBaseName']=this['logFileName'][_0x44cc75(0xf4)](/\.log$/,''),this[_0x44cc75(0x107)]=_0x444b59[_0x44cc75(0x107)]??!![];}async[a167_0x24d696(0x10b)](){const _0x8a11b4=a167_0x24d696;try{await mkdir(this[_0x8a11b4(0xf2)],{'recursive':!![]}),this[_0x8a11b4(0x107)]&&await this[_0x8a11b4(0xf5)](),this[_0x8a11b4(0xeb)]=createWriteStream(this[_0x8a11b4(0xf9)],{'flags':'a'}),this[_0x8a11b4(0xeb)]['on'](_0x8a11b4(0xfd),_0x230830=>{const _0x4cf9b7=_0x8a11b4;console[_0x4cf9b7(0xfd)](_0x4cf9b7(0xf7)+this['logFileName']+':',_0x230830['message']);});}catch(_0x1ee090){console[_0x8a11b4(0xfd)](_0x8a11b4(0xf8),_0x1ee090);}}['handle'](_0x591f5d){const _0x2553e3=a167_0x24d696;if(!this[_0x2553e3(0xeb)])return;const _0x47af9a=Logger[_0x2553e3(0x104)](_0x591f5d);this[_0x2553e3(0xeb)][_0x2553e3(0xed)](_0x47af9a+'\x0a');}async['close'](){return new Promise(_0x11bd9b=>{const _0x2574c2=a167_0x3ff0;this[_0x2574c2(0xeb)]?this['logStream'][_0x2574c2(0x100)](()=>{const _0x47add7=_0x2574c2;this[_0x47add7(0xeb)]=null,_0x11bd9b();}):_0x11bd9b();});}[a167_0x24d696(0x105)](){const _0x235acd=a167_0x24d696;return this[_0x235acd(0xf9)];}async['rotateOldLogs'](){const _0x25832e=a167_0x24d696;try{const _0x2e57fc=await readdir(this['logDir']),_0x2fa5b4=new Date()[_0x25832e(0xe9)]()['split']('T')[0x0];if(_0x2e57fc[_0x25832e(0x108)](this['logFileName'])){const _0x959ff8=join(this[_0x25832e(0xf2)],this[_0x25832e(0xfc)]),_0x527b02=await stat(_0x959ff8),_0x602c1e=new Date(_0x527b02[_0x25832e(0xf3)])[_0x25832e(0xe9)]()[_0x25832e(0xe8)]('T')[0x0];if(_0x602c1e<_0x2fa5b4){const _0x453b4c=join(this[_0x25832e(0xf2)],this[_0x25832e(0xfe)]+'-'+_0x602c1e+_0x25832e(0xf1));await rename(_0x959ff8,_0x453b4c);}}const _0x3f22d8=await readdir(this[_0x25832e(0xf2)]),_0x2869f7=this[_0x25832e(0xfe)][_0x25832e(0xf4)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x565f7d=new RegExp('^'+_0x2869f7+_0x25832e(0xfb)),_0x95b528=_0x3f22d8[_0x25832e(0x106)](_0x341762=>_0x565f7d[_0x25832e(0xef)](_0x341762));for(const _0x6d011e of _0x95b528){const _0x2e20a4=join(this[_0x25832e(0xf2)],_0x6d011e),_0x6de102=join(this[_0x25832e(0xf2)],_0x6d011e+_0x25832e(0xec));try{await pipeline(createReadStream(_0x2e20a4),createGzip(),createWriteStream(_0x6de102)),await unlink(_0x2e20a4);}catch(_0x5c1e54){console['error'](_0x25832e(0xff)+_0x6d011e+':',_0x5c1e54);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x15ca1f,_0x1fc1e9){var _0x168820=a168_0x531f,_0x495eb7=_0x15ca1f();while(!![]){try{var _0x3fb848=-parseInt(_0x168820(0x1ba))/0x1+parseInt(_0x168820(0x1bf))/0x2+parseInt(_0x168820(0x1bd))/0x3*(-parseInt(_0x168820(0x1c0))/0x4)+parseInt(_0x168820(0x1bc))/0x5*(-parseInt(_0x168820(0x1b9))/0x6)+parseInt(_0x168820(0x1be))/0x7+-parseInt(_0x168820(0x1b8))/0x8*(-parseInt(_0x168820(0x1b6))/0x9)+parseInt(_0x168820(0x1bb))/0xa*(parseInt(_0x168820(0x1b7))/0xb);if(_0x3fb848===_0x1fc1e9)break;else _0x495eb7['push'](_0x495eb7['shift']());}catch(_0x1a04d2){_0x495eb7['push'](_0x495eb7['shift']());}}}(a168_0x21a0,0xce017));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a168_0x21a0(){var _0x2fbabf=['3070VyFrMT','531rTVXYg','1941065WYSguR','507174rQXrDI','11636SOfXsp','65223rmByIj','11MWzhNw','488bRPSPW','13632cPOWhx','330330ehkEMx','21110810XQlbzE'];a168_0x21a0=function(){return _0x2fbabf;};return a168_0x21a0();}function a168_0x531f(_0x8a977b,_0x535751){_0x8a977b=_0x8a977b-0x1b6;var _0x21a045=a168_0x21a0();var _0x531f5d=_0x21a045[_0x8a977b];return _0x531f5d;}export{NullHandler}from'./null-handler.js';
1
+ function a168_0x3603(){var _0xa52784=['8808010RdIZVK','3403872EEAhlY','3931522OjBRJL','152yRYfCD','816120GXJVkk','27250024fcfBAS','478002andQbA','14439PPcGHQ'];a168_0x3603=function(){return _0xa52784;};return a168_0x3603();}function a168_0x104c(_0x494a7a,_0x135305){_0x494a7a=_0x494a7a-0x1d8;var _0x360393=a168_0x3603();var _0x104c9c=_0x360393[_0x494a7a];return _0x104c9c;}(function(_0x1c3dd6,_0x4ba691){var _0x284dcc=a168_0x104c,_0x182a25=_0x1c3dd6();while(!![]){try{var _0x4b41ff=parseInt(_0x284dcc(0x1db))/0x1+-parseInt(_0x284dcc(0x1de))/0x2+parseInt(_0x284dcc(0x1dc))/0x3*(-parseInt(_0x284dcc(0x1d8))/0x4)+-parseInt(_0x284dcc(0x1dd))/0x5+parseInt(_0x284dcc(0x1d9))/0x6+parseInt(_0x284dcc(0x1df))/0x7+parseInt(_0x284dcc(0x1da))/0x8;if(_0x4b41ff===_0x4ba691)break;else _0x182a25['push'](_0x182a25['shift']());}catch(_0x3122e6){_0x182a25['push'](_0x182a25['shift']());}}}(a168_0x3603,0xe4641));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a169_0x47b961=a169_0x2a15;(function(_0x3f4b0c,_0x3d738f){var _0x4da675=a169_0x2a15,_0x544284=_0x3f4b0c();while(!![]){try{var _0x490d09=parseInt(_0x4da675(0x9d))/0x1+-parseInt(_0x4da675(0x9c))/0x2*(-parseInt(_0x4da675(0x97))/0x3)+-parseInt(_0x4da675(0x9f))/0x4*(-parseInt(_0x4da675(0xa0))/0x5)+parseInt(_0x4da675(0x98))/0x6*(parseInt(_0x4da675(0x99))/0x7)+-parseInt(_0x4da675(0xa2))/0x8*(-parseInt(_0x4da675(0x9a))/0x9)+-parseInt(_0x4da675(0x9e))/0xa+-parseInt(_0x4da675(0xa1))/0xb*(parseInt(_0x4da675(0x9b))/0xc);if(_0x490d09===_0x3d738f)break;else _0x544284['push'](_0x544284['shift']());}catch(_0xfe649d){_0x544284['push'](_0x544284['shift']());}}}(a169_0x38ad,0x783b3));function a169_0x38ad(){var _0x2334f9=['5718780sxElcT','340vXLgcw','54155AuzJQY','25398923SseQLG','24QnBHIT','handle','351WXmnLl','6fpnAhM','5038159qEhfbY','1211382VGTFCr','12aDjVVF','14348PgktAu','489814ivYNXv'];a169_0x38ad=function(){return _0x2334f9;};return a169_0x38ad();}function a169_0x2a15(_0x3e4948,_0x58ceb2){_0x3e4948=_0x3e4948-0x96;var _0x38ad1a=a169_0x38ad();var _0x2a15fe=_0x38ad1a[_0x3e4948];return _0x2a15fe;}export class NullHandler{[a169_0x47b961(0x96)](_0x347606){}}
1
+ function a169_0x54e7(){var _0x5f318a=['handle','1108386QwGBzJ','6827420njLqHQ','1781708uWnLmo','2074928tFMcnn','6XfsDUj','2RirwCu','133531ghBNiS','3508975OJmrni','6ILZljd','575547XbokNk'];a169_0x54e7=function(){return _0x5f318a;};return a169_0x54e7();}var a169_0x2a9d10=a169_0x4298;function a169_0x4298(_0x5a76fd,_0x452431){_0x5a76fd=_0x5a76fd-0x1b1;var _0x54e77b=a169_0x54e7();var _0x429897=_0x54e77b[_0x5a76fd];return _0x429897;}(function(_0x31113e,_0x3eea4f){var _0x4dc535=a169_0x4298,_0x5130e3=_0x31113e();while(!![]){try{var _0x4c237e=parseInt(_0x4dc535(0x1b1))/0x1*(-parseInt(_0x4dc535(0x1bb))/0x2)+-parseInt(_0x4dc535(0x1ba))/0x3*(-parseInt(_0x4dc535(0x1b8))/0x4)+parseInt(_0x4dc535(0x1b2))/0x5+parseInt(_0x4dc535(0x1b3))/0x6*(parseInt(_0x4dc535(0x1b4))/0x7)+-parseInt(_0x4dc535(0x1b9))/0x8+parseInt(_0x4dc535(0x1b6))/0x9+-parseInt(_0x4dc535(0x1b7))/0xa;if(_0x4c237e===_0x3eea4f)break;else _0x5130e3['push'](_0x5130e3['shift']());}catch(_0x2bb1cf){_0x5130e3['push'](_0x5130e3['shift']());}}}(a169_0x54e7,0xb05d1));export class NullHandler{[a169_0x2a9d10(0x1b5)](_0x74944d){}}
@@ -1 +1 @@
1
- (function(_0x4a2dea,_0x3bfccf){var _0x221501=a170_0x2b23,_0x21f726=_0x4a2dea();while(!![]){try{var _0x1725db=-parseInt(_0x221501(0x157))/0x1+parseInt(_0x221501(0x15c))/0x2+-parseInt(_0x221501(0x158))/0x3*(parseInt(_0x221501(0x15b))/0x4)+-parseInt(_0x221501(0x15d))/0x5*(parseInt(_0x221501(0x15e))/0x6)+-parseInt(_0x221501(0x15f))/0x7*(-parseInt(_0x221501(0x160))/0x8)+parseInt(_0x221501(0x15a))/0x9+parseInt(_0x221501(0x159))/0xa;if(_0x1725db===_0x3bfccf)break;else _0x21f726['push'](_0x21f726['shift']());}catch(_0x573778){_0x21f726['push'](_0x21f726['shift']());}}}(a170_0x23a3,0x91ede));export{Logger}from'./logger.js';function a170_0x2b23(_0x2aa5e1,_0x373c23){_0x2aa5e1=_0x2aa5e1-0x157;var _0x23a338=a170_0x23a3();var _0x2b23b9=_0x23a338[_0x2aa5e1];return _0x2b23b9;}function a170_0x23a3(){var _0x5c3775=['406650BJqPxd','5xinvpN','6810432UGKWLh','7mEPlMf','3327704KqGgub','1147008PGEXqY','9rDnyih','14840950uhfzPR','7473861utUEZg','72008ZZBITI'];a170_0x23a3=function(){return _0x5c3775;};return a170_0x23a3();}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ function a170_0x2637(){var _0x4051d4=['110qJJPkN','5166981JPlWVq','2019040xYFwxD','14nPHEFD','858ECPsYG','998080RpVosz','144876zhDBOu','8uHUPsc','307934EhvZrR','594618rZqmrA','2PxkISx','3kzuUdu','685002TNqknu'];a170_0x2637=function(){return _0x4051d4;};return a170_0x2637();}function a170_0x2eed(_0x854c6b,_0x1fe1ea){_0x854c6b=_0x854c6b-0xe5;var _0x263708=a170_0x2637();var _0x2eede5=_0x263708[_0x854c6b];return _0x2eede5;}(function(_0x5c813c,_0x3677bd){var _0x6ca1b=a170_0x2eed,_0x548e8b=_0x5c813c();while(!![]){try{var _0x368ef7=-parseInt(_0x6ca1b(0xeb))/0x1*(parseInt(_0x6ca1b(0xea))/0x2)+-parseInt(_0x6ca1b(0xec))/0x3*(parseInt(_0x6ca1b(0xf0))/0x4)+parseInt(_0x6ca1b(0xe6))/0x5+parseInt(_0x6ca1b(0xed))/0x6*(-parseInt(_0x6ca1b(0xf1))/0x7)+-parseInt(_0x6ca1b(0xe8))/0x8*(-parseInt(_0x6ca1b(0xef))/0x9)+-parseInt(_0x6ca1b(0xee))/0xa*(-parseInt(_0x6ca1b(0xe9))/0xb)+parseInt(_0x6ca1b(0xe7))/0xc*(parseInt(_0x6ca1b(0xe5))/0xd);if(_0x368ef7===_0x3677bd)break;else _0x548e8b['push'](_0x548e8b['shift']());}catch(_0x4149bd){_0x548e8b['push'](_0x548e8b['shift']());}}}(a170_0x2637,0x8676d));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- const a171_0x583328=a171_0xe79b;(function(_0x470749,_0x22f1e5){const _0x4d1f61=a171_0xe79b,_0x2879e6=_0x470749();while(!![]){try{const _0x59fea6=parseInt(_0x4d1f61(0x1a0))/0x1*(-parseInt(_0x4d1f61(0x17c))/0x2)+parseInt(_0x4d1f61(0x193))/0x3*(parseInt(_0x4d1f61(0x17d))/0x4)+-parseInt(_0x4d1f61(0x1ab))/0x5*(-parseInt(_0x4d1f61(0x1ac))/0x6)+-parseInt(_0x4d1f61(0x19b))/0x7+-parseInt(_0x4d1f61(0x1ae))/0x8+parseInt(_0x4d1f61(0x1af))/0x9*(-parseInt(_0x4d1f61(0x19a))/0xa)+parseInt(_0x4d1f61(0x195))/0xb*(parseInt(_0x4d1f61(0x1b8))/0xc);if(_0x59fea6===_0x22f1e5)break;else _0x2879e6['push'](_0x2879e6['shift']());}catch(_0x3c1899){_0x2879e6['push'](_0x2879e6['shift']());}}}(a171_0x5dbb,0x5e5d5));import{LogLevel as a171_0x59a595,logLevelToString}from'./types.js';function a171_0xe79b(_0xb8bb4c,_0x56b146){_0xb8bb4c=_0xb8bb4c-0x17a;const _0x5dbbea=a171_0x5dbb();let _0xe79b12=_0x5dbbea[_0xb8bb4c];return _0xe79b12;}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a171_0x59a595['INFO'],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x21f3d2){const _0x169f12=a171_0xe79b;if(typeof _0x21f3d2===_0x169f12(0x18e))return _0x21f3d2;if(_0x21f3d2 instanceof Error)return _0x21f3d2[_0x169f12(0x19d)]||_0x21f3d2[_0x169f12(0x198)]+':\x20'+_0x21f3d2[_0x169f12(0x184)];try{return JSON[_0x169f12(0x1a8)](_0x21f3d2,(_0x2242d9,_0x18d8da)=>{const _0x559eb9=_0x169f12;if(_0x18d8da instanceof Error)return{'name':_0x18d8da['name'],'message':_0x18d8da['message'],'stack':_0x18d8da[_0x559eb9(0x19d)],'cause':_0x18d8da[_0x559eb9(0x1a6)]};return _0x18d8da;});}catch{return String(_0x21f3d2);}}export class Logger{[a171_0x583328(0x1b1)];constructor(_0xd0942a){const _0x3274af=a171_0x583328;this[_0x3274af(0x1b1)]=_0xd0942a;}static['of'](_0x41a5ff){const _0x45f036=a171_0x583328,_0x40b35b=typeof _0x41a5ff===_0x45f036(0x18e)?_0x41a5ff:_0x41a5ff[_0x45f036(0x198)];let _0x18db8c=state['loggers']['get'](_0x40b35b);return!_0x18db8c&&(_0x18db8c=new Logger(_0x40b35b),state[_0x45f036(0x180)][_0x45f036(0x1a2)](_0x40b35b,_0x18db8c)),_0x18db8c;}static async[a171_0x583328(0x18d)](_0x512457={}){const _0x266716=a171_0x583328;state[_0x266716(0x19f)]=_0x512457['defaultLevel']??a171_0x59a595[_0x266716(0x182)],state[_0x266716(0x186)]=_0x512457[_0x266716(0x186)]??[],state[_0x266716(0x17f)]=_0x512457[_0x266716(0x17f)]??null,state[_0x266716(0x19c)][_0x266716(0x1b3)]();if(_0x512457[_0x266716(0x19c)])for(const [_0x1a3030,_0x228c28]of Object[_0x266716(0x1a4)](_0x512457[_0x266716(0x19c)])){state[_0x266716(0x19c)]['set'](_0x1a3030,_0x228c28);}for(const _0x803aea of state[_0x266716(0x186)]){_0x803aea[_0x266716(0x18d)]&&await _0x803aea[_0x266716(0x18d)]();}state[_0x266716(0x183)]=!![];for(const _0x4b22da of state[_0x266716(0x199)]){Logger[_0x266716(0x1aa)](_0x4b22da);}state[_0x266716(0x199)]=[];}static[a171_0x583328(0x1a7)](_0x51e74e,_0x3b445a){const _0x23fc21=a171_0x583328;state[_0x23fc21(0x19c)][_0x23fc21(0x1a2)](_0x51e74e,_0x3b445a);}static[a171_0x583328(0x194)](_0x43fc7b){state['defaultLevel']=_0x43fc7b;}static[a171_0x583328(0x18c)](_0x114129){const _0x52c653=a171_0x583328;state[_0x52c653(0x186)][_0x52c653(0x188)](_0x114129),state[_0x52c653(0x183)]&&_0x114129[_0x52c653(0x18d)]&&_0x114129['init']();}static[a171_0x583328(0x190)](){const _0x28fa3c=a171_0x583328;state[_0x28fa3c(0x186)]=[];}static async[a171_0x583328(0x189)](){const _0x4f513e=a171_0x583328;for(const _0x2b2b84 of state[_0x4f513e(0x186)]){_0x2b2b84[_0x4f513e(0x1b7)]&&await _0x2b2b84['close']();}state[_0x4f513e(0x186)]=[],state[_0x4f513e(0x183)]=![],state[_0x4f513e(0x180)]['clear'](),state['pendingRecords']=[];}static['reset'](){const _0x33da59=a171_0x583328;state[_0x33da59(0x183)]=![],state[_0x33da59(0x19f)]=a171_0x59a595[_0x33da59(0x182)],state[_0x33da59(0x19c)][_0x33da59(0x1b3)](),state[_0x33da59(0x186)]=[],state[_0x33da59(0x17f)]=null,state['loggers'][_0x33da59(0x1b3)](),state[_0x33da59(0x199)]=[];}static['isInitialized'](){const _0x51e4c9=a171_0x583328;return state[_0x51e4c9(0x183)];}static[a171_0x583328(0x1b5)](_0x372796){const _0x261510=a171_0x583328;if(state[_0x261510(0x19c)]['has'](_0x372796))return state[_0x261510(0x19c)]['get'](_0x372796);const _0x1f2793=_0x372796[_0x261510(0x18a)]('.');for(let _0x571631=_0x1f2793[_0x261510(0x1b0)]-0x1;_0x571631>0x0;_0x571631--){const _0x286aed=_0x1f2793[_0x261510(0x187)](0x0,_0x571631)['join']('.');if(state[_0x261510(0x19c)][_0x261510(0x181)](_0x286aed))return state[_0x261510(0x19c)][_0x261510(0x17b)](_0x286aed);}return state[_0x261510(0x19f)];}[a171_0x583328(0x1a5)](_0x312fe4){const _0x50670b=a171_0x583328,_0x16eb59=Logger[_0x50670b(0x1b5)](this[_0x50670b(0x1b1)]);return _0x312fe4>=_0x16eb59;}static['dispatch'](_0x56c703){const _0x1f4d30=a171_0x583328;for(const _0x417e02 of state[_0x1f4d30(0x186)]){_0x417e02[_0x1f4d30(0x1b2)](_0x56c703);}}['log'](_0x304f77,_0x4f46db){const _0x3a644d=a171_0x583328;if(!this[_0x3a644d(0x1a5)](_0x304f77))return;const _0xf25b26=_0x4f46db['map'](_0x3a10d3=>typeof _0x3a10d3===_0x3a644d(0x1a3)?_0x3a10d3():_0x3a10d3),_0x1a8104=_0xf25b26['map'](safeStringify)[_0x3a644d(0x1ad)]('\x20'),_0x3eaccb={'timestamp':new Date(),'level':_0x304f77,'component':this[_0x3a644d(0x1b1)],'message':_0x1a8104};if(!state[_0x3a644d(0x183)]){state['pendingRecords'][_0x3a644d(0x1b0)]<MAX_PENDING_RECORDS&&state[_0x3a644d(0x199)]['push'](_0x3eaccb);return;}Logger[_0x3a644d(0x1aa)](_0x3eaccb);}[a171_0x583328(0x1a9)](..._0x46f52c){const _0x3f1b15=a171_0x583328;this[_0x3f1b15(0x19e)](a171_0x59a595[_0x3f1b15(0x17a)],_0x46f52c);}[a171_0x583328(0x1b4)](..._0x5374ee){const _0x51e098=a171_0x583328;this[_0x51e098(0x19e)](a171_0x59a595['DEBUG'],_0x5374ee);}[a171_0x583328(0x197)](..._0xc556c4){const _0x18dc4c=a171_0x583328;this['log'](a171_0x59a595[_0x18dc4c(0x182)],_0xc556c4);}['warn'](..._0xf985f2){const _0x340b0e=a171_0x583328;this[_0x340b0e(0x19e)](a171_0x59a595[_0x340b0e(0x196)],_0xf985f2);}[a171_0x583328(0x192)](..._0x92aac4){const _0x4719a6=a171_0x583328;this[_0x4719a6(0x19e)](a171_0x59a595[_0x4719a6(0x17e)],_0x92aac4);}static[a171_0x583328(0x18b)](){const _0x1b3bcf=a171_0x583328;return state[_0x1b3bcf(0x17f)];}static[a171_0x583328(0x185)](_0x302051){const _0x42a859=a171_0x583328;if(state[_0x42a859(0x17f)])return state[_0x42a859(0x17f)][_0x42a859(0x185)](_0x302051);return _0x302051[_0x42a859(0x1b6)][_0x42a859(0x18f)]()+'\x20['+logLevelToString(_0x302051[_0x42a859(0x191)])+_0x42a859(0x1a1)+_0x302051['component']+']\x20'+_0x302051['message'];}}function a171_0x5dbb(){const _0x58641e=['level','error','3oDpjee','setDefaultLevel','693QWeBNA','WARN','info','name','pendingRecords','40HNMfdD','2789885ueliJE','levelOverrides','stack','log','defaultLevel','1AQIhvp',']\x20[','set','function','entries','shouldLog','cause','setLogLevel','stringify','trace','dispatch','163645mqAvtK','138aqyJIK','join','4604584NBvbKi','1260369RAPGKM','length','component','handle','clear','debug','getEffectiveLevel','timestamp','close','273264GBNitG','TRACE','get','1227088JeXAdB','1387800hXkQvw','ERROR','formatter','loggers','has','INFO','initialized','message','format','handlers','slice','push','shutdown','split','getFormatter','addHandler','init','string','toISOString','clearHandlers'];a171_0x5dbb=function(){return _0x58641e;};return a171_0x5dbb();}
1
+ const a171_0x26c702=a171_0x2efb;(function(_0x12ca9e,_0x240879){const _0x3dd5e8=a171_0x2efb,_0x5225ac=_0x12ca9e();while(!![]){try{const _0x263834=parseInt(_0x3dd5e8(0xac))/0x1+-parseInt(_0x3dd5e8(0x9c))/0x2*(-parseInt(_0x3dd5e8(0xab))/0x3)+-parseInt(_0x3dd5e8(0xb7))/0x4+parseInt(_0x3dd5e8(0x86))/0x5+-parseInt(_0x3dd5e8(0x88))/0x6*(-parseInt(_0x3dd5e8(0xa9))/0x7)+-parseInt(_0x3dd5e8(0x90))/0x8+-parseInt(_0x3dd5e8(0xaf))/0x9*(-parseInt(_0x3dd5e8(0x8e))/0xa);if(_0x263834===_0x240879)break;else _0x5225ac['push'](_0x5225ac['shift']());}catch(_0xcdb8ea){_0x5225ac['push'](_0x5225ac['shift']());}}}(a171_0x10b4,0x96ebc));import{LogLevel as a171_0x46fadd,logLevelToString}from'./types.js';function a171_0x2efb(_0x2bcb1d,_0x277320){_0x2bcb1d=_0x2bcb1d-0x84;const _0x10b427=a171_0x10b4();let _0x2efb45=_0x10b427[_0x2bcb1d];return _0x2efb45;}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a171_0x46fadd[a171_0x26c702(0xb5)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x1f6a31){const _0x4d529e=a171_0x26c702;if(typeof _0x1f6a31===_0x4d529e(0xba))return _0x1f6a31;if(_0x1f6a31 instanceof Error)return _0x1f6a31[_0x4d529e(0xa3)]||_0x1f6a31['name']+':\x20'+_0x1f6a31[_0x4d529e(0x92)];try{return JSON[_0x4d529e(0xaa)](_0x1f6a31,(_0x27768a,_0x29d23e)=>{const _0x1df341=_0x4d529e;if(_0x29d23e instanceof Error)return{'name':_0x29d23e[_0x1df341(0x94)],'message':_0x29d23e[_0x1df341(0x92)],'stack':_0x29d23e[_0x1df341(0xa3)],'cause':_0x29d23e[_0x1df341(0x9a)]};return _0x29d23e;});}catch{return String(_0x1f6a31);}}function a171_0x10b4(){const _0x4e904e=['message','getFormatter','name','toISOString','debug','split','clearHandlers','addHandler','cause','setLogLevel','69642vDWfpM','set','has','length','init','component','join','stack','format','slice','reset','dispatch','get','7iKrGrK','stringify','39zJUGmP','627545JsNFcF','timestamp','error','2202696yrFinI','shouldLog','getEffectiveLevel','clear','levelOverrides','TRACE','INFO','level','4651304sIsfbf','info','loggers','string','defaultLevel','warn','setDefaultLevel','handlers','2310815lqzFNS','pendingRecords','4410138RrdnUs','formatter','log','ERROR','close','initialized','10ffJdaw','map','5929200ItdnXf','handle'];a171_0x10b4=function(){return _0x4e904e;};return a171_0x10b4();}export class Logger{[a171_0x26c702(0xa1)];constructor(_0x20f6b2){const _0x1daf0d=a171_0x26c702;this[_0x1daf0d(0xa1)]=_0x20f6b2;}static['of'](_0x2c897e){const _0x145edf=a171_0x26c702,_0x9fce90=typeof _0x2c897e===_0x145edf(0xba)?_0x2c897e:_0x2c897e[_0x145edf(0x94)];let _0x2c18b6=state[_0x145edf(0xb9)]['get'](_0x9fce90);return!_0x2c18b6&&(_0x2c18b6=new Logger(_0x9fce90),state[_0x145edf(0xb9)]['set'](_0x9fce90,_0x2c18b6)),_0x2c18b6;}static async[a171_0x26c702(0xa0)](_0x35a85d={}){const _0x43e586=a171_0x26c702;state['defaultLevel']=_0x35a85d[_0x43e586(0xbb)]??a171_0x46fadd[_0x43e586(0xb5)],state[_0x43e586(0x85)]=_0x35a85d[_0x43e586(0x85)]??[],state[_0x43e586(0x89)]=_0x35a85d[_0x43e586(0x89)]??null,state[_0x43e586(0xb3)]['clear']();if(_0x35a85d[_0x43e586(0xb3)])for(const [_0x5d87c2,_0x3e5d3f]of Object['entries'](_0x35a85d[_0x43e586(0xb3)])){state[_0x43e586(0xb3)]['set'](_0x5d87c2,_0x3e5d3f);}for(const _0x19ce63 of state['handlers']){_0x19ce63[_0x43e586(0xa0)]&&await _0x19ce63['init']();}state[_0x43e586(0x8d)]=!![];for(const _0x4e5259 of state['pendingRecords']){Logger[_0x43e586(0xa7)](_0x4e5259);}state[_0x43e586(0x87)]=[];}static[a171_0x26c702(0x9b)](_0x4a8255,_0x15e913){const _0x3e1544=a171_0x26c702;state[_0x3e1544(0xb3)][_0x3e1544(0x9d)](_0x4a8255,_0x15e913);}static[a171_0x26c702(0x84)](_0xf9e50d){const _0x28b3ad=a171_0x26c702;state[_0x28b3ad(0xbb)]=_0xf9e50d;}static[a171_0x26c702(0x99)](_0x4adbae){const _0x50324e=a171_0x26c702;state[_0x50324e(0x85)]['push'](_0x4adbae),state[_0x50324e(0x8d)]&&_0x4adbae[_0x50324e(0xa0)]&&_0x4adbae[_0x50324e(0xa0)]();}static[a171_0x26c702(0x98)](){const _0x339ebe=a171_0x26c702;state[_0x339ebe(0x85)]=[];}static async['shutdown'](){const _0x4158bb=a171_0x26c702;for(const _0x779ef4 of state[_0x4158bb(0x85)]){_0x779ef4[_0x4158bb(0x8c)]&&await _0x779ef4['close']();}state[_0x4158bb(0x85)]=[],state[_0x4158bb(0x8d)]=![],state[_0x4158bb(0xb9)][_0x4158bb(0xb2)](),state['pendingRecords']=[];}static[a171_0x26c702(0xa6)](){const _0xef1c3b=a171_0x26c702;state[_0xef1c3b(0x8d)]=![],state[_0xef1c3b(0xbb)]=a171_0x46fadd['INFO'],state[_0xef1c3b(0xb3)]['clear'](),state[_0xef1c3b(0x85)]=[],state[_0xef1c3b(0x89)]=null,state[_0xef1c3b(0xb9)][_0xef1c3b(0xb2)](),state[_0xef1c3b(0x87)]=[];}static['isInitialized'](){return state['initialized'];}static['getEffectiveLevel'](_0x506321){const _0x173c0c=a171_0x26c702;if(state['levelOverrides'][_0x173c0c(0x9e)](_0x506321))return state[_0x173c0c(0xb3)]['get'](_0x506321);const _0x47e81c=_0x506321[_0x173c0c(0x97)]('.');for(let _0x420f16=_0x47e81c[_0x173c0c(0x9f)]-0x1;_0x420f16>0x0;_0x420f16--){const _0x41aa01=_0x47e81c[_0x173c0c(0xa5)](0x0,_0x420f16)[_0x173c0c(0xa2)]('.');if(state[_0x173c0c(0xb3)][_0x173c0c(0x9e)](_0x41aa01))return state[_0x173c0c(0xb3)][_0x173c0c(0xa8)](_0x41aa01);}return state[_0x173c0c(0xbb)];}[a171_0x26c702(0xb0)](_0x34d266){const _0x14efde=a171_0x26c702,_0x339983=Logger[_0x14efde(0xb1)](this[_0x14efde(0xa1)]);return _0x34d266>=_0x339983;}static['dispatch'](_0x3576aa){const _0x360929=a171_0x26c702;for(const _0x39d0cd of state[_0x360929(0x85)]){_0x39d0cd[_0x360929(0x91)](_0x3576aa);}}[a171_0x26c702(0x8a)](_0xc59fc,_0x521ff8){const _0x63568e=a171_0x26c702;if(!this['shouldLog'](_0xc59fc))return;const _0x5128e8=_0x521ff8[_0x63568e(0x8f)](_0x119fa2=>typeof _0x119fa2==='function'?_0x119fa2():_0x119fa2),_0x504b3c=_0x5128e8[_0x63568e(0x8f)](safeStringify)['join']('\x20'),_0x1a2aae={'timestamp':new Date(),'level':_0xc59fc,'component':this[_0x63568e(0xa1)],'message':_0x504b3c};if(!state['initialized']){state[_0x63568e(0x87)]['length']<MAX_PENDING_RECORDS&&state['pendingRecords']['push'](_0x1a2aae);return;}Logger[_0x63568e(0xa7)](_0x1a2aae);}['trace'](..._0x4a662e){const _0x303f42=a171_0x26c702;this['log'](a171_0x46fadd[_0x303f42(0xb4)],_0x4a662e);}[a171_0x26c702(0x96)](..._0x2bc4a9){this['log'](a171_0x46fadd['DEBUG'],_0x2bc4a9);}[a171_0x26c702(0xb8)](..._0x4f77b7){const _0x72375f=a171_0x26c702;this[_0x72375f(0x8a)](a171_0x46fadd[_0x72375f(0xb5)],_0x4f77b7);}[a171_0x26c702(0xbc)](..._0x5a9a68){this['log'](a171_0x46fadd['WARN'],_0x5a9a68);}[a171_0x26c702(0xae)](..._0x157f25){const _0x53d0ee=a171_0x26c702;this['log'](a171_0x46fadd[_0x53d0ee(0x8b)],_0x157f25);}static[a171_0x26c702(0x93)](){const _0x3f0582=a171_0x26c702;return state[_0x3f0582(0x89)];}static[a171_0x26c702(0xa4)](_0x2f108f){const _0x1435ad=a171_0x26c702;if(state['formatter'])return state['formatter'][_0x1435ad(0xa4)](_0x2f108f);return _0x2f108f[_0x1435ad(0xad)][_0x1435ad(0x95)]()+'\x20['+logLevelToString(_0x2f108f[_0x1435ad(0xb6)])+']\x20['+_0x2f108f[_0x1435ad(0xa1)]+']\x20'+_0x2f108f[_0x1435ad(0x92)];}}
@@ -1 +1 @@
1
- (function(_0x3f189e,_0x358244){const _0x11c0a0=a172_0x26f8,_0x4ce7df=_0x3f189e();while(!![]){try{const _0x3a15ee=-parseInt(_0x11c0a0(0x7c))/0x1+-parseInt(_0x11c0a0(0x7f))/0x2*(parseInt(_0x11c0a0(0x88))/0x3)+-parseInt(_0x11c0a0(0x8a))/0x4*(-parseInt(_0x11c0a0(0x7a))/0x5)+-parseInt(_0x11c0a0(0x71))/0x6*(-parseInt(_0x11c0a0(0x85))/0x7)+-parseInt(_0x11c0a0(0x8c))/0x8+parseInt(_0x11c0a0(0x78))/0x9+parseInt(_0x11c0a0(0x79))/0xa;if(_0x3a15ee===_0x358244)break;else _0x4ce7df['push'](_0x4ce7df['shift']());}catch(_0x20db0d){_0x4ce7df['push'](_0x4ce7df['shift']());}}}(a172_0x503b,0xb8c97));export var LogLevel;(function(_0x3c6e9f){const _0x1314b0=a172_0x26f8;_0x3c6e9f[_0x3c6e9f[_0x1314b0(0x81)]=-0x2]=_0x1314b0(0x81),_0x3c6e9f[_0x3c6e9f[_0x1314b0(0x74)]=-0x1]=_0x1314b0(0x74),_0x3c6e9f[_0x3c6e9f[_0x1314b0(0x86)]=0x0]=_0x1314b0(0x86),_0x3c6e9f[_0x3c6e9f['WARN']=0x1]=_0x1314b0(0x72),_0x3c6e9f[_0x3c6e9f['ERROR']=0x2]=_0x1314b0(0x7b);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x9b1385){const _0x1ef8c5=a172_0x26f8;switch(_0x9b1385['toUpperCase']()){case _0x1ef8c5(0x81):return LogLevel[_0x1ef8c5(0x81)];case'DEBUG':return LogLevel[_0x1ef8c5(0x74)];case _0x1ef8c5(0x86):return LogLevel[_0x1ef8c5(0x86)];case'WARN':case _0x1ef8c5(0x82):return LogLevel[_0x1ef8c5(0x72)];case _0x1ef8c5(0x7b):return LogLevel[_0x1ef8c5(0x7b)];default:return LogLevel[_0x1ef8c5(0x86)];}}export function logLevelToString(_0x3cef06){const _0x10fd20=a172_0x26f8;switch(_0x3cef06){case LogLevel['TRACE']:return _0x10fd20(0x89);case LogLevel[_0x10fd20(0x74)]:return _0x10fd20(0x75);case LogLevel[_0x10fd20(0x86)]:return _0x10fd20(0x76);case LogLevel[_0x10fd20(0x72)]:return _0x10fd20(0x83);case LogLevel[_0x10fd20(0x7b)]:return _0x10fd20(0x87);default:return'info';}}function a172_0x26f8(_0x1040c3,_0x46a20d){_0x1040c3=_0x1040c3-0x71;const _0x503b68=a172_0x503b();let _0x26f80f=_0x503b68[_0x1040c3];return _0x26f80f;}function a172_0x503b(){const _0x5192d8=['error','1920486qnRrxh','trace','4bRadXt','abs','4861656Hadtmj','getHours','toString','padStart','5861706HBblAE','WARN','floor','DEBUG','debug','info','getMilliseconds','7386948NzLYfp','5941860MLoQXS','4078700qpJBRH','ERROR','562731zgKpKH','getSeconds','getDate','4hqLPBJ','getFullYear','TRACE','WARNING','warn','getTimezoneOffset','7WIvOLD','INFO'];a172_0x503b=function(){return _0x5192d8;};return a172_0x503b();}export function formatTimestamp(_0x188e72){const _0x4731bf=a172_0x26f8,_0x5fa15d=_0x188e72[_0x4731bf(0x80)](),_0x14452c=(_0x188e72['getMonth']()+0x1)[_0x4731bf(0x8e)]()[_0x4731bf(0x8f)](0x2,'0'),_0x26d1c7=_0x188e72[_0x4731bf(0x7e)]()[_0x4731bf(0x8e)]()[_0x4731bf(0x8f)](0x2,'0'),_0x200bb6=_0x188e72[_0x4731bf(0x8d)]()[_0x4731bf(0x8e)]()[_0x4731bf(0x8f)](0x2,'0'),_0x486e30=_0x188e72['getMinutes']()[_0x4731bf(0x8e)]()[_0x4731bf(0x8f)](0x2,'0'),_0x24ae9f=_0x188e72[_0x4731bf(0x7d)]()['toString']()[_0x4731bf(0x8f)](0x2,'0'),_0xaa98a8=_0x188e72[_0x4731bf(0x77)]()['toString']()[_0x4731bf(0x8f)](0x3,'0'),_0x5b3186=-_0x188e72[_0x4731bf(0x84)](),_0x2d40b0=Math[_0x4731bf(0x73)](Math[_0x4731bf(0x8b)](_0x5b3186)/0x3c),_0x2a79a2=Math[_0x4731bf(0x8b)](_0x5b3186)%0x3c,_0x1c1d27=_0x5b3186>=0x0?'+':'-',_0x301669=''+_0x1c1d27+_0x2d40b0['toString']()['padStart'](0x2,'0')+_0x2a79a2[_0x4731bf(0x8e)]()['padStart'](0x2,'0');return _0x5fa15d+'-'+_0x14452c+'-'+_0x26d1c7+'\x20'+_0x200bb6+':'+_0x486e30+':'+_0x24ae9f+'.'+_0xaa98a8+_0x301669;}
1
+ (function(_0x5d52e2,_0x2e46a8){const _0x53c99e=a172_0x3332,_0x19f0ea=_0x5d52e2();while(!![]){try{const _0x4de6a9=-parseInt(_0x53c99e(0x133))/0x1+parseInt(_0x53c99e(0x13b))/0x2*(parseInt(_0x53c99e(0x12e))/0x3)+parseInt(_0x53c99e(0x137))/0x4+parseInt(_0x53c99e(0x140))/0x5*(parseInt(_0x53c99e(0x129))/0x6)+parseInt(_0x53c99e(0x13d))/0x7*(parseInt(_0x53c99e(0x12d))/0x8)+parseInt(_0x53c99e(0x147))/0x9*(parseInt(_0x53c99e(0x12a))/0xa)+-parseInt(_0x53c99e(0x143))/0xb;if(_0x4de6a9===_0x2e46a8)break;else _0x19f0ea['push'](_0x19f0ea['shift']());}catch(_0x2635e1){_0x19f0ea['push'](_0x19f0ea['shift']());}}}(a172_0xeaf7,0x962fe));function a172_0xeaf7(){const _0x1c0cad=['138505XlSAal','trace','toString','14278616gJQFIn','getMilliseconds','abs','getSeconds','9162SdfBkt','108sQKqCc','650NRUrIg','getDate','getMinutes','8EegWRk','931554SQxXVU','debug','INFO','ERROR','TRACE','454983DwNAMB','getMonth','info','DEBUG','3046376VgiEOM','warn','WARN','floor','6BemCQT','padStart','771883GuyofU','toUpperCase','getHours'];a172_0xeaf7=function(){return _0x1c0cad;};return a172_0xeaf7();}export var LogLevel;function a172_0x3332(_0x1d4790,_0x536430){_0x1d4790=_0x1d4790-0x129;const _0xeaf78f=a172_0xeaf7();let _0x33325d=_0xeaf78f[_0x1d4790];return _0x33325d;}(function(_0x1feb27){const _0x5f058c=a172_0x3332;_0x1feb27[_0x1feb27['TRACE']=-0x2]=_0x5f058c(0x132),_0x1feb27[_0x1feb27['DEBUG']=-0x1]=_0x5f058c(0x136),_0x1feb27[_0x1feb27[_0x5f058c(0x130)]=0x0]=_0x5f058c(0x130),_0x1feb27[_0x1feb27[_0x5f058c(0x139)]=0x1]='WARN',_0x1feb27[_0x1feb27[_0x5f058c(0x131)]=0x2]=_0x5f058c(0x131);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x1eec39){const _0x125ef6=a172_0x3332;switch(_0x1eec39[_0x125ef6(0x13e)]()){case _0x125ef6(0x132):return LogLevel[_0x125ef6(0x132)];case _0x125ef6(0x136):return LogLevel[_0x125ef6(0x136)];case'INFO':return LogLevel[_0x125ef6(0x130)];case _0x125ef6(0x139):case'WARNING':return LogLevel[_0x125ef6(0x139)];case _0x125ef6(0x131):return LogLevel[_0x125ef6(0x131)];default:return LogLevel[_0x125ef6(0x130)];}}export function logLevelToString(_0xcb7052){const _0x30d8d4=a172_0x3332;switch(_0xcb7052){case LogLevel[_0x30d8d4(0x132)]:return _0x30d8d4(0x141);case LogLevel['DEBUG']:return _0x30d8d4(0x12f);case LogLevel[_0x30d8d4(0x130)]:return _0x30d8d4(0x135);case LogLevel[_0x30d8d4(0x139)]:return _0x30d8d4(0x138);case LogLevel[_0x30d8d4(0x131)]:return'error';default:return _0x30d8d4(0x135);}}export function formatTimestamp(_0x66f0e1){const _0x590d50=a172_0x3332,_0x127f27=_0x66f0e1['getFullYear'](),_0x3196dc=(_0x66f0e1[_0x590d50(0x134)]()+0x1)[_0x590d50(0x142)]()[_0x590d50(0x13c)](0x2,'0'),_0x478130=_0x66f0e1[_0x590d50(0x12b)]()['toString']()[_0x590d50(0x13c)](0x2,'0'),_0x65c8a6=_0x66f0e1[_0x590d50(0x13f)]()[_0x590d50(0x142)]()[_0x590d50(0x13c)](0x2,'0'),_0x30c934=_0x66f0e1[_0x590d50(0x12c)]()[_0x590d50(0x142)]()[_0x590d50(0x13c)](0x2,'0'),_0xbc6ce3=_0x66f0e1[_0x590d50(0x146)]()[_0x590d50(0x142)]()['padStart'](0x2,'0'),_0x37ac38=_0x66f0e1[_0x590d50(0x144)]()[_0x590d50(0x142)]()[_0x590d50(0x13c)](0x3,'0'),_0x39f5d4=-_0x66f0e1['getTimezoneOffset'](),_0x1b89e5=Math[_0x590d50(0x13a)](Math['abs'](_0x39f5d4)/0x3c),_0x2a5c26=Math[_0x590d50(0x145)](_0x39f5d4)%0x3c,_0x437a1b=_0x39f5d4>=0x0?'+':'-',_0x415d65=''+_0x437a1b+_0x1b89e5[_0x590d50(0x142)]()[_0x590d50(0x13c)](0x2,'0')+_0x2a5c26[_0x590d50(0x142)]()[_0x590d50(0x13c)](0x2,'0');return _0x127f27+'-'+_0x3196dc+'-'+_0x478130+'\x20'+_0x65c8a6+':'+_0x30c934+':'+_0xbc6ce3+'.'+_0x37ac38+_0x415d65;}
@@ -1 +1 @@
1
- function a173_0x2ff7(_0x215bab,_0xd7a810){_0x215bab=_0x215bab-0x1b2;const _0x497f07=a173_0x497f();let _0x2ff7fc=_0x497f07[_0x215bab];return _0x2ff7fc;}function a173_0x497f(){const _0x389d0d=['Invalid\x20limit\x20value:\x20','2470362beNXdh','.\x20Must\x20be\x20a\x20number.','3831926zRwJiH','21764nRtzRR','isInteger','.\x20Must\x20be\x20a\x20positive\x20number.','58604BPQmtI','.\x20Must\x20be\x20a\x20positive\x20integer.','Invalid\x20timeout\x20value:\x20','156kxELte','.\x20Must\x20be\x20an\x20integer.','5OiSrzo','1179JsJmXN','1134284xUmxfm','16040gwMCEF','1893152VyMTxo'];a173_0x497f=function(){return _0x389d0d;};return a173_0x497f();}(function(_0xd1177f,_0x1abfd1){const _0x16758c=a173_0x2ff7,_0x2e89f7=_0xd1177f();while(!![]){try{const _0x160b20=-parseInt(_0x16758c(0x1be))/0x1+parseInt(_0x16758c(0x1bb))/0x2*(parseInt(_0x16758c(0x1c1))/0x3)+parseInt(_0x16758c(0x1b4))/0x4*(-parseInt(_0x16758c(0x1b2))/0x5)+-parseInt(_0x16758c(0x1b8))/0x6+parseInt(_0x16758c(0x1ba))/0x7+-parseInt(_0x16758c(0x1b6))/0x8+-parseInt(_0x16758c(0x1b3))/0x9*(-parseInt(_0x16758c(0x1b5))/0xa);if(_0x160b20===_0x1abfd1)break;else _0x2e89f7['push'](_0x2e89f7['shift']());}catch(_0x3f3995){_0x2e89f7['push'](_0x2e89f7['shift']());}}}(a173_0x497f,0x5143c));export function validateLimitOption(_0x3a20b9){const _0x2296c9=a173_0x2ff7;if(!Number[_0x2296c9(0x1bc)](_0x3a20b9))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3a20b9+_0x2296c9(0x1c2)};if(_0x3a20b9<=0x0)return{'isValid':![],'error':_0x2296c9(0x1b7)+_0x3a20b9+_0x2296c9(0x1bf)};return{'isValid':!![],'value':_0x3a20b9};}export function validateTimeoutOption(_0x5cbb20,_0xeba6e5=0x1e){const _0x3c0908=a173_0x2ff7;if(_0x5cbb20===undefined)return{'isValid':!![],'value':_0xeba6e5};const _0x5d525d=typeof _0x5cbb20==='number'?_0x5cbb20:parseFloat(_0x5cbb20);if(isNaN(_0x5d525d))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x5cbb20+_0x3c0908(0x1b9)};if(_0x5d525d<=0x0)return{'isValid':![],'error':_0x3c0908(0x1c0)+_0x5d525d+_0x3c0908(0x1bd)};return{'isValid':!![],'value':_0x5d525d};}
1
+ function a173_0x5a07(_0x26cadf,_0x59fcb3){_0x26cadf=_0x26cadf-0x195;const _0x594730=a173_0x5947();let _0x5a0789=_0x594730[_0x26cadf];return _0x5a0789;}(function(_0x11a651,_0x5b1d6c){const _0x4dac5b=a173_0x5a07,_0x5006a6=_0x11a651();while(!![]){try{const _0x9c047e=parseInt(_0x4dac5b(0x199))/0x1+-parseInt(_0x4dac5b(0x19e))/0x2+-parseInt(_0x4dac5b(0x19f))/0x3*(-parseInt(_0x4dac5b(0x196))/0x4)+-parseInt(_0x4dac5b(0x1a0))/0x5+-parseInt(_0x4dac5b(0x197))/0x6*(parseInt(_0x4dac5b(0x1a4))/0x7)+parseInt(_0x4dac5b(0x19b))/0x8*(parseInt(_0x4dac5b(0x19a))/0x9)+-parseInt(_0x4dac5b(0x195))/0xa;if(_0x9c047e===_0x5b1d6c)break;else _0x5006a6['push'](_0x5006a6['shift']());}catch(_0xdea80c){_0x5006a6['push'](_0x5006a6['shift']());}}}(a173_0x5947,0x56bdb));function a173_0x5947(){const _0x59607f=['656737hUIWup','5355FMonMW','1912TBGnHS','.\x20Must\x20be\x20a\x20number.','Invalid\x20timeout\x20value:\x20','169722MGMJQa','1456746oSbeDq','177575gwRnXP','.\x20Must\x20be\x20a\x20positive\x20integer.','Invalid\x20limit\x20value:\x20','isInteger','14tMFIqU','6082490YGqEoE','4HHcKKj','601824uMGBRS','.\x20Must\x20be\x20an\x20integer.'];a173_0x5947=function(){return _0x59607f;};return a173_0x5947();}export function validateLimitOption(_0x1e2873){const _0x1c6b69=a173_0x5a07;if(!Number[_0x1c6b69(0x1a3)](_0x1e2873))return{'isValid':![],'error':_0x1c6b69(0x1a2)+_0x1e2873+_0x1c6b69(0x198)};if(_0x1e2873<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x1e2873+_0x1c6b69(0x1a1)};return{'isValid':!![],'value':_0x1e2873};}export function validateTimeoutOption(_0x5d2e1c,_0x1fd23e=0x1e){const _0xc7825d=a173_0x5a07;if(_0x5d2e1c===undefined)return{'isValid':!![],'value':_0x1fd23e};const _0x49aac7=typeof _0x5d2e1c==='number'?_0x5d2e1c:parseFloat(_0x5d2e1c);if(isNaN(_0x49aac7))return{'isValid':![],'error':_0xc7825d(0x19d)+_0x5d2e1c+_0xc7825d(0x19c)};if(_0x49aac7<=0x0)return{'isValid':![],'error':_0xc7825d(0x19d)+_0x49aac7+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x49aac7};}
@@ -1 +1 @@
1
- const a175_0x37fecd=a175_0x1594;(function(_0x9766b0,_0x123c39){const _0x1e678f=a175_0x1594,_0x53145b=_0x9766b0();while(!![]){try{const _0x39189e=-parseInt(_0x1e678f(0x162))/0x1+-parseInt(_0x1e678f(0x135))/0x2*(parseInt(_0x1e678f(0x138))/0x3)+-parseInt(_0x1e678f(0x141))/0x4+-parseInt(_0x1e678f(0x12b))/0x5+parseInt(_0x1e678f(0x15e))/0x6+parseInt(_0x1e678f(0x157))/0x7+-parseInt(_0x1e678f(0x14a))/0x8*(-parseInt(_0x1e678f(0x160))/0x9);if(_0x39189e===_0x123c39)break;else _0x53145b['push'](_0x53145b['shift']());}catch(_0x83f908){_0x53145b['push'](_0x53145b['shift']());}}}(a175_0x3f37,0xbda7b));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a175_0x37fecd(0x145),'sh',a175_0x37fecd(0x147),'ksh',a175_0x37fecd(0x136),a175_0x37fecd(0x149),'dash',a175_0x37fecd(0x12f),a175_0x37fecd(0x13a),'nu','ion',a175_0x37fecd(0x150),a175_0x37fecd(0x155)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a175_0x37fecd(0x14c),a175_0x37fecd(0x153),'cursor','electron',a175_0x37fecd(0x161)]);function getProcessInfoWindows(_0x38afc2){const _0x35c29a=a175_0x37fecd;try{if(!Number[_0x35c29a(0x148)](_0x38afc2)||_0x38afc2<=0x0)return null;const _0x3835d9=_0x35c29a(0x142)+_0x38afc2+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x47c98c=execSync(_0x35c29a(0x144)+_0x3835d9+'\x22',{'encoding':_0x35c29a(0x15b),'windowsHide':!![],'stdio':[_0x35c29a(0x12c),_0x35c29a(0x12c),_0x35c29a(0x12c)]})[_0x35c29a(0x158)]();if(!_0x47c98c)return null;const [_0x5afd8e,..._0x1441e5]=_0x47c98c[_0x35c29a(0x130)](','),_0x3fcfbc=parseInt(_0x5afd8e,0xa),_0x15c536=_0x1441e5[_0x35c29a(0x131)](',')[_0x35c29a(0x158)]();if(isNaN(_0x3fcfbc)||!_0x15c536)return null;return{'pid':_0x38afc2,'ppid':_0x3fcfbc,'comm':_0x15c536[_0x35c29a(0x14b)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x314a5c){const _0x18d60c=a175_0x37fecd;try{const _0x1def35=0x400000;if(!Number['isInteger'](_0x314a5c)||_0x314a5c<=0x0||_0x314a5c>_0x1def35)return null;const _0x508722=execSync(_0x18d60c(0x133)+_0x314a5c+_0x18d60c(0x132),{'encoding':_0x18d60c(0x15b),'stdio':_0x18d60c(0x12c)})[_0x18d60c(0x158)](),[_0x4da763,..._0x29d5c7]=_0x508722[_0x18d60c(0x130)](/\s+/),_0x22d5a1=parseInt(_0x4da763,0xa),_0x185657=_0x29d5c7[_0x18d60c(0x131)]('\x20');if(isNaN(_0x22d5a1))return null;return{'pid':_0x314a5c,'ppid':_0x22d5a1,'comm':_0x185657};}catch{return null;}}function getProcessInfo(_0x4a6f42){const _0x4661fe=a175_0x37fecd;if(process[_0x4661fe(0x156)]===_0x4661fe(0x12a))return getProcessInfoWindows(_0x4a6f42);return getProcessInfoPosix(_0x4a6f42);}function getBasename(_0x32ccfb){const _0x3e6a5d=a175_0x37fecd;return _0x32ccfb[_0x3e6a5d(0x14b)](/^-/,'')[_0x3e6a5d(0x130)]('/')[_0x3e6a5d(0x14f)]()?.[_0x3e6a5d(0x140)]()||'';}function isShell(_0x46cbf5){return SHELL_NAMES['has'](getBasename(_0x46cbf5));}function a175_0x1594(_0x3b158f,_0x505258){_0x3b158f=_0x3b158f-0x129;const _0x3f3767=a175_0x3f37();let _0x1594b0=_0x3f3767[_0x3b158f];return _0x1594b0;}function isEphemeralShellSpawner(_0x585e10){const _0x2b2ee3=a175_0x37fecd;return EPHEMERAL_SHELL_SPAWNERS[_0x2b2ee3(0x13e)](getBasename(_0x585e10));}let cachedShellPID;function findShellPID(){const _0x5933f1=a175_0x37fecd;if(process[_0x5933f1(0x15d)]===undefined)return process[_0x5933f1(0x143)];let _0x4cb6cf=process[_0x5933f1(0x15d)];const _0x412fc3=0xa;let _0x395083=0x0;while(_0x395083<_0x412fc3){const _0x13adb0=getProcessInfo(_0x4cb6cf);if(!_0x13adb0)break;if(isShell(_0x13adb0[_0x5933f1(0x146)])){const _0x1c9595=getProcessInfo(_0x13adb0[_0x5933f1(0x15d)]);if(_0x1c9595&&isEphemeralShellSpawner(_0x1c9595[_0x5933f1(0x146)])){_0x4cb6cf=_0x13adb0[_0x5933f1(0x15d)],_0x395083++;continue;}return _0x13adb0[_0x5933f1(0x143)];}if(_0x13adb0[_0x5933f1(0x15d)]===0x0||_0x13adb0['ppid']===0x1){if(isShell(_0x13adb0['comm']))return _0x13adb0['pid'];break;}_0x4cb6cf=_0x13adb0[_0x5933f1(0x15d)],_0x395083++;}return process[_0x5933f1(0x15d)]!==undefined?process[_0x5933f1(0x15d)]:process[_0x5933f1(0x143)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x5898d6){const _0x2e960c=a175_0x37fecd;if(!Number[_0x2e960c(0x148)](_0x5898d6)||_0x5898d6<=0x0)return![];try{return process[_0x2e960c(0x137)](_0x5898d6,0x0),!![];}catch{return![];}}export function openBrowser(_0x51704f){const _0x1cad1c=a175_0x37fecd;let _0x56e8f1;try{_0x56e8f1=new URL(_0x51704f);}catch{throw new Error(_0x1cad1c(0x13c)+_0x51704f);}if(_0x56e8f1[_0x1cad1c(0x152)]!==_0x1cad1c(0x15a)&&_0x56e8f1[_0x1cad1c(0x152)]!==_0x1cad1c(0x134))throw new Error(_0x1cad1c(0x13f)+_0x56e8f1[_0x1cad1c(0x152)]);const _0x23cc3b=_0x56e8f1[_0x1cad1c(0x12e)],_0x19548b=process['platform'];if(_0x19548b===_0x1cad1c(0x12a))spawn(_0x1cad1c(0x13d),['/c',_0x1cad1c(0x159),'',_0x23cc3b],{'detached':!![],'stdio':_0x1cad1c(0x154)})[_0x1cad1c(0x163)]();else{const _0x161dfc=_0x19548b===_0x1cad1c(0x151)?_0x1cad1c(0x14d):'xdg-open';spawn(_0x161dfc,[_0x23cc3b],{'detached':!![],'stdio':'ignore'})[_0x1cad1c(0x163)]();}}export function isWindows(){const _0x563a75=a175_0x37fecd;return process[_0x563a75(0x156)]===_0x563a75(0x12a);}export function getCrossSpawnOptions(_0x63a14){return{..._0x63a14??{},'shell':isWindows()};}export function escapeWindowsArg(_0xd3e4e2){const _0x202a20=a175_0x37fecd;if(!/[ \t"&|<>^%!`\r\n]/[_0x202a20(0x15c)](_0xd3e4e2))return _0xd3e4e2;const _0x55eabb=_0xd3e4e2['replace'](/"/g,'\x22\x22');return'\x22'+_0x55eabb+'\x22';}function a175_0x3f37(){const _0x2203f6=['90ukvXtP','treasure\x20studio','1077223trhjLi','unref','error','win32','6628005JxEQuy','pipe','stderr','href','pwsh','split','join','\x20-o\x20ppid=,comm=','ps\x20-p\x20','https:','31274rdoTSh','tcsh','kill','39rtmfoE','data','powershell','stdout','Invalid\x20URL:\x20','cmd.exe','has','Unsupported\x20protocol:\x20','toLowerCase','403152eWcidV','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','pid','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','zsh','comm','fish','isInteger','csh','1743304QLxNzW','replace','claude','open','toString','pop','elvish','darwin','protocol','code','ignore','xonsh','platform','4168885QJOFdj','trim','start','http:','utf-8','test','ppid','4254210FZTHDd','exit'];a175_0x3f37=function(){return _0x2203f6;};return a175_0x3f37();}export function crossSpawn(_0x3c5576,_0x59dee1,_0xc4d3aa){const _0x2d2451=a175_0x37fecd;if(isWindows()){const _0x4c991f=escapeWindowsArg(_0x3c5576),_0x4fbfb8=_0x59dee1['map'](escapeWindowsArg),_0x30a984=[_0x4c991f,..._0x4fbfb8][_0x2d2451(0x131)]('\x20');return spawn(_0x30a984,[],{..._0xc4d3aa,'shell':!![]});}return spawn(_0x3c5576,_0x59dee1,{..._0xc4d3aa,'shell':![]});}export function gracefulExit(_0x3e8da2=0x0){const _0x3ac9ee=a175_0x37fecd;isWindows()?setImmediate(()=>process[_0x3ac9ee(0x15f)](_0x3e8da2)):process['exit'](_0x3e8da2);}export function findExecutable(_0x59c816,_0x46939c=0x1388){return new Promise(_0x4dc68b=>{const _0x5f2e30=a175_0x1594,_0x1ce338=isWindows()?'where.exe':'which';let _0x276a89=![];const _0xb0c900=crossSpawn(_0x1ce338,[_0x59c816],{'stdio':'pipe','shell':isWindows()}),_0x5bf7b8=setTimeout(()=>{!_0x276a89&&(_0x276a89=!![],_0xb0c900['kill'](),_0x4dc68b(null));},_0x46939c);let _0x1aa312='';_0xb0c900[_0x5f2e30(0x13b)]?.['on'](_0x5f2e30(0x139),_0xa50169=>{const _0x2ca5b4=_0x5f2e30;_0x1aa312+=_0xa50169[_0x2ca5b4(0x14e)]();}),_0xb0c900[_0x5f2e30(0x12d)]?.['on'](_0x5f2e30(0x139),()=>{}),_0xb0c900['on'](_0x5f2e30(0x15f),_0x74ca4=>{const _0x25ee8e=_0x5f2e30;if(_0x276a89)return;_0x276a89=!![],clearTimeout(_0x5bf7b8);if(_0x74ca4===0x0&&_0x1aa312[_0x25ee8e(0x158)]()){const _0x4c3faf=_0x1aa312['trim']()[_0x25ee8e(0x130)](/\r?\n/)[0x0];_0x4dc68b(_0x4c3faf);}else _0x4dc68b(null);}),_0xb0c900['on'](_0x5f2e30(0x129),()=>{if(_0x276a89)return;_0x276a89=!![],clearTimeout(_0x5bf7b8),_0x4dc68b(null);});});}
1
+ function a174_0x50c2(){const _0x159c9c=['ppid','electron','start','zsh','toLowerCase','kill','pipe','5564094cWdWsH','darwin','459744axjoOF','where.exe','has','map','data','open','pid','6058876GHbsGG','144njLmPt','win32','Unsupported\x20protocol:\x20','pwsh','claude','\x20-o\x20ppid=,comm=','346pYjohR','ion','pop','test','treasure\x20studio','isInteger','240520InKYqf','8867935JGPjga','stdout','exit','1797RFluRP','split','cmd.exe','protocol','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','8512427ITshDf','xonsh','code','stderr','ignore','trim','join','xdg-open','ps\x20-p\x20','replace','bash','cursor','unref','ksh','Invalid\x20URL:\x20','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','utf-8','comm','fish','platform'];a174_0x50c2=function(){return _0x159c9c;};return a174_0x50c2();}const a174_0x415b8b=a174_0x5541;(function(_0x3515a3,_0x3da604){const _0x368048=a174_0x5541,_0xfe9702=_0x3515a3();while(!![]){try{const _0x4e2caa=-parseInt(_0x368048(0x1c9))/0x1*(-parseInt(_0x368048(0x1bf))/0x2)+-parseInt(_0x368048(0x1af))/0x3+parseInt(_0x368048(0x1b8))/0x4+parseInt(_0x368048(0x1c6))/0x5+-parseInt(_0x368048(0x1b1))/0x6+-parseInt(_0x368048(0x1ce))/0x7+-parseInt(_0x368048(0x1c5))/0x8*(-parseInt(_0x368048(0x1b9))/0x9);if(_0x4e2caa===_0x3da604)break;else _0xfe9702['push'](_0xfe9702['shift']());}catch(_0x58ef47){_0xfe9702['push'](_0xfe9702['shift']());}}}(a174_0x50c2,0xe3bec));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a174_0x415b8b(0x1d8),a174_0x415b8b(0x1ab),'sh',a174_0x415b8b(0x1a6),a174_0x415b8b(0x1a1),'tcsh','csh','dash',a174_0x415b8b(0x1bc),'powershell','nu',a174_0x415b8b(0x1c0),'elvish',a174_0x415b8b(0x1cf)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a174_0x415b8b(0x1bd),a174_0x415b8b(0x1d0),a174_0x415b8b(0x1d9),a174_0x415b8b(0x1a9),a174_0x415b8b(0x1c3)]);function getProcessInfoWindows(_0x5c356a){const _0x12648b=a174_0x415b8b;try{if(!Number['isInteger'](_0x5c356a)||_0x5c356a<=0x0)return null;const _0x27f9ff=_0x12648b(0x1a3)+_0x5c356a+_0x12648b(0x1cd),_0x4c175c=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x27f9ff+'\x22',{'encoding':_0x12648b(0x1a4),'windowsHide':!![],'stdio':[_0x12648b(0x1ae),_0x12648b(0x1ae),_0x12648b(0x1ae)]})['trim']();if(!_0x4c175c)return null;const [_0x25b4df,..._0x120206]=_0x4c175c[_0x12648b(0x1ca)](','),_0x4e56a8=parseInt(_0x25b4df,0xa),_0x3efa9f=_0x120206[_0x12648b(0x1d4)](',')[_0x12648b(0x1d3)]();if(isNaN(_0x4e56a8)||!_0x3efa9f)return null;return{'pid':_0x5c356a,'ppid':_0x4e56a8,'comm':_0x3efa9f[_0x12648b(0x1d7)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x47a49f){const _0x3f033d=a174_0x415b8b;try{const _0x502b82=0x400000;if(!Number[_0x3f033d(0x1c4)](_0x47a49f)||_0x47a49f<=0x0||_0x47a49f>_0x502b82)return null;const _0x66638e=execSync(_0x3f033d(0x1d6)+_0x47a49f+_0x3f033d(0x1be),{'encoding':_0x3f033d(0x1a4),'stdio':_0x3f033d(0x1ae)})[_0x3f033d(0x1d3)](),[_0xfa8f3b,..._0x112b05]=_0x66638e[_0x3f033d(0x1ca)](/\s+/),_0x5dda5f=parseInt(_0xfa8f3b,0xa),_0x247729=_0x112b05['join']('\x20');if(isNaN(_0x5dda5f))return null;return{'pid':_0x47a49f,'ppid':_0x5dda5f,'comm':_0x247729};}catch{return null;}}function getProcessInfo(_0x50b35c){const _0x3f30da=a174_0x415b8b;if(process[_0x3f30da(0x1a7)]===_0x3f30da(0x1ba))return getProcessInfoWindows(_0x50b35c);return getProcessInfoPosix(_0x50b35c);}function getBasename(_0xb656b1){const _0x286128=a174_0x415b8b;return _0xb656b1[_0x286128(0x1d7)](/^-/,'')[_0x286128(0x1ca)]('/')[_0x286128(0x1c1)]()?.[_0x286128(0x1ac)]()||'';}function isShell(_0x4a97a8){const _0x141689=a174_0x415b8b;return SHELL_NAMES[_0x141689(0x1b3)](getBasename(_0x4a97a8));}function isEphemeralShellSpawner(_0x30c924){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x30c924));}let cachedShellPID;function findShellPID(){const _0x2d8a68=a174_0x415b8b;if(process[_0x2d8a68(0x1a8)]===undefined)return process[_0x2d8a68(0x1b7)];let _0xc340f6=process[_0x2d8a68(0x1a8)];const _0x3be649=0xa;let _0x5f487a=0x0;while(_0x5f487a<_0x3be649){const _0x473431=getProcessInfo(_0xc340f6);if(!_0x473431)break;if(isShell(_0x473431[_0x2d8a68(0x1a5)])){const _0x5d4544=getProcessInfo(_0x473431['ppid']);if(_0x5d4544&&isEphemeralShellSpawner(_0x5d4544[_0x2d8a68(0x1a5)])){_0xc340f6=_0x473431[_0x2d8a68(0x1a8)],_0x5f487a++;continue;}return _0x473431['pid'];}if(_0x473431[_0x2d8a68(0x1a8)]===0x0||_0x473431['ppid']===0x1){if(isShell(_0x473431['comm']))return _0x473431[_0x2d8a68(0x1b7)];break;}_0xc340f6=_0x473431[_0x2d8a68(0x1a8)],_0x5f487a++;}return process[_0x2d8a68(0x1a8)]!==undefined?process[_0x2d8a68(0x1a8)]:process[_0x2d8a68(0x1b7)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x9956c3){const _0x5f24de=a174_0x415b8b;if(!Number[_0x5f24de(0x1c4)](_0x9956c3)||_0x9956c3<=0x0)return![];try{return process[_0x5f24de(0x1ad)](_0x9956c3,0x0),!![];}catch{return![];}}export function openBrowser(_0x175548){const _0x56a45c=a174_0x415b8b;let _0x4517fc;try{_0x4517fc=new URL(_0x175548);}catch{throw new Error(_0x56a45c(0x1a2)+_0x175548);}if(_0x4517fc[_0x56a45c(0x1cc)]!=='http:'&&_0x4517fc[_0x56a45c(0x1cc)]!=='https:')throw new Error(_0x56a45c(0x1bb)+_0x4517fc[_0x56a45c(0x1cc)]);const _0x257a1a=_0x4517fc['href'],_0x58c838=process[_0x56a45c(0x1a7)];if(_0x58c838==='win32')spawn(_0x56a45c(0x1cb),['/c',_0x56a45c(0x1aa),'',_0x257a1a],{'detached':!![],'stdio':_0x56a45c(0x1d2)})[_0x56a45c(0x1da)]();else{const _0x210e85=_0x58c838===_0x56a45c(0x1b0)?_0x56a45c(0x1b6):_0x56a45c(0x1d5);spawn(_0x210e85,[_0x257a1a],{'detached':!![],'stdio':'ignore'})['unref']();}}function a174_0x5541(_0x2fa61f,_0x586806){_0x2fa61f=_0x2fa61f-0x1a1;const _0x50c2fe=a174_0x50c2();let _0x55411a=_0x50c2fe[_0x2fa61f];return _0x55411a;}export function isWindows(){const _0x5ef4a0=a174_0x415b8b;return process[_0x5ef4a0(0x1a7)]===_0x5ef4a0(0x1ba);}export function getCrossSpawnOptions(_0x13ec27){return{..._0x13ec27??{},'shell':isWindows()};}export function escapeWindowsArg(_0x113ba4){const _0x5db06b=a174_0x415b8b;if(!/[ \t"&|<>^%!`\r\n]/[_0x5db06b(0x1c2)](_0x113ba4))return _0x113ba4;const _0x292ea5=_0x113ba4['replace'](/"/g,'\x22\x22');return'\x22'+_0x292ea5+'\x22';}export function crossSpawn(_0x4304f4,_0xf73f15,_0x2b2bc4){const _0x302ba5=a174_0x415b8b;if(isWindows()){const _0x1acc1e=escapeWindowsArg(_0x4304f4),_0x527286=_0xf73f15[_0x302ba5(0x1b4)](escapeWindowsArg),_0x311bce=[_0x1acc1e,..._0x527286][_0x302ba5(0x1d4)]('\x20');return spawn(_0x311bce,[],{..._0x2b2bc4,'shell':!![]});}return spawn(_0x4304f4,_0xf73f15,{..._0x2b2bc4,'shell':![]});}export function gracefulExit(_0x1c8536=0x0){const _0x43a73f=a174_0x415b8b;isWindows()?setImmediate(()=>process[_0x43a73f(0x1c8)](_0x1c8536)):process[_0x43a73f(0x1c8)](_0x1c8536);}export function findExecutable(_0x1ed985,_0x36655d=0x1388){return new Promise(_0x20093a=>{const _0x5a5e83=a174_0x5541,_0x3ec6c4=isWindows()?_0x5a5e83(0x1b2):'which';let _0x50d237=![];const _0x3e93b6=crossSpawn(_0x3ec6c4,[_0x1ed985],{'stdio':'pipe','shell':isWindows()}),_0x2de3a9=setTimeout(()=>{const _0x5aab39=_0x5a5e83;!_0x50d237&&(_0x50d237=!![],_0x3e93b6[_0x5aab39(0x1ad)](),_0x20093a(null));},_0x36655d);let _0x349987='';_0x3e93b6[_0x5a5e83(0x1c7)]?.['on'](_0x5a5e83(0x1b5),_0x3f08b7=>{_0x349987+=_0x3f08b7['toString']();}),_0x3e93b6[_0x5a5e83(0x1d1)]?.['on'](_0x5a5e83(0x1b5),()=>{}),_0x3e93b6['on'](_0x5a5e83(0x1c8),_0x58fc95=>{const _0x14300b=_0x5a5e83;if(_0x50d237)return;_0x50d237=!![],clearTimeout(_0x2de3a9);if(_0x58fc95===0x0&&_0x349987[_0x14300b(0x1d3)]()){const _0x170f8b=_0x349987[_0x14300b(0x1d3)]()['split'](/\r?\n/)[0x0];_0x20093a(_0x170f8b);}else _0x20093a(null);}),_0x3e93b6['on']('error',()=>{if(_0x50d237)return;_0x50d237=!![],clearTimeout(_0x2de3a9),_0x20093a(null);});});}
@@ -1 +1 @@
1
- (function(_0x269b8c,_0x540e1d){const _0x35b3d8=a176_0x1730,_0x50319a=_0x269b8c();while(!![]){try{const _0x17fab1=parseInt(_0x35b3d8(0x99))/0x1*(parseInt(_0x35b3d8(0x98))/0x2)+-parseInt(_0x35b3d8(0x9d))/0x3+parseInt(_0x35b3d8(0xa5))/0x4*(parseInt(_0x35b3d8(0x9a))/0x5)+-parseInt(_0x35b3d8(0xb0))/0x6+-parseInt(_0x35b3d8(0xaf))/0x7*(parseInt(_0x35b3d8(0xb1))/0x8)+-parseInt(_0x35b3d8(0x9b))/0x9+-parseInt(_0x35b3d8(0xa6))/0xa*(-parseInt(_0x35b3d8(0xa2))/0xb);if(_0x17fab1===_0x540e1d)break;else _0x50319a['push'](_0x50319a['shift']());}catch(_0x2b28ab){_0x50319a['push'](_0x50319a['shift']());}}}(a176_0x48e4,0x67a6d));function a176_0x48e4(){const _0x800981=['setRawMode','941228xdlBzp','45170pgArWT','\x20[y/N]\x20','question','stderr','\x20(y/N):\x20','setEncoding','stdin','toLowerCase','isTTY','7Baewuv','4982016MQoJkc','1730632IGmvMU','createInterface','removeListener','5134IneHHn','247pgrwRe','5IuXGOJ','4458951jVZoOc','pause','1613547ulvmQI','write','data','exit','utf8','3982IqrEdr','close'];a176_0x48e4=function(){return _0x800981;};return a176_0x48e4();}function a176_0x1730(_0x2dd961,_0x1d4d89){_0x2dd961=_0x2dd961-0x98;const _0x48e4c7=a176_0x48e4();let _0x1730c5=_0x48e4c7[_0x2dd961];return _0x1730c5;}import*as a176_0x2d8ba2 from'readline';export function isInteractive(){const _0x29965=a176_0x1730;return process[_0x29965(0xac)][_0x29965(0xae)]===!![];}export async function confirm(_0x4e1fe9){const _0x11ffa2=a176_0x1730,_0x3ae374=a176_0x2d8ba2[_0x11ffa2(0xb2)]({'input':process[_0x11ffa2(0xac)],'output':process['stdout']});return new Promise(_0x38aff0=>{const _0x206f33=_0x11ffa2;_0x3ae374[_0x206f33(0xa8)](_0x4e1fe9+_0x206f33(0xaa),_0x28b5dc=>{const _0x223a67=_0x206f33;_0x3ae374[_0x223a67(0xa3)](),_0x38aff0(_0x28b5dc['toLowerCase']()==='y'||_0x28b5dc[_0x223a67(0xad)]()==='yes');});});}export async function confirmKey(_0x178fb2){const _0x32fd41=a176_0x1730;if(!process[_0x32fd41(0xac)][_0x32fd41(0xae)])return![];return process['stderr'][_0x32fd41(0x9e)](_0x178fb2+_0x32fd41(0xa7)),new Promise(_0x120bdf=>{const _0xc00bd3=_0x32fd41,_0x1f5139=process[_0xc00bd3(0xac)];_0x1f5139[_0xc00bd3(0xa4)](!![]),_0x1f5139['resume'](),_0x1f5139[_0xc00bd3(0xab)](_0xc00bd3(0xa1));const _0x2c0822=_0x5b27fd=>{const _0x5e95a8=_0xc00bd3;_0x1f5139[_0x5e95a8(0xa4)](![]),_0x1f5139[_0x5e95a8(0x9c)](),_0x1f5139[_0x5e95a8(0xb3)](_0x5e95a8(0x9f),_0x2c0822);if(_0x5b27fd==='\x1b'){process[_0x5e95a8(0xa9)][_0x5e95a8(0x9e)]('\x0a'),_0x120bdf(![]);return;}_0x5b27fd==='\x03'&&(process['stderr'][_0x5e95a8(0x9e)]('\x0a'),process[_0x5e95a8(0xa0)](0x82));if(_0x5b27fd[_0x5e95a8(0xad)]()==='y'){process[_0x5e95a8(0xa9)]['write']('y\x0a'),_0x120bdf(!![]);return;}process['stderr']['write']('\x0a'),_0x120bdf(![]);};_0x1f5139['on'](_0xc00bd3(0x9f),_0x2c0822);});}
1
+ (function(_0x510cf3,_0x5f5bc8){const _0xc762c5=a175_0x9e5b,_0x587305=_0x510cf3();while(!![]){try{const _0x18e501=-parseInt(_0xc762c5(0x193))/0x1*(-parseInt(_0xc762c5(0x17a))/0x2)+-parseInt(_0xc762c5(0x180))/0x3*(-parseInt(_0xc762c5(0x183))/0x4)+parseInt(_0xc762c5(0x17b))/0x5+-parseInt(_0xc762c5(0x17d))/0x6*(parseInt(_0xc762c5(0x186))/0x7)+parseInt(_0xc762c5(0x187))/0x8*(parseInt(_0xc762c5(0x18a))/0x9)+parseInt(_0xc762c5(0x18e))/0xa*(parseInt(_0xc762c5(0x17e))/0xb)+-parseInt(_0xc762c5(0x18d))/0xc;if(_0x18e501===_0x5f5bc8)break;else _0x587305['push'](_0x587305['shift']());}catch(_0x35e044){_0x587305['push'](_0x587305['shift']());}}}(a175_0x2348,0x4108a));function a175_0x9e5b(_0x57d22c,_0x167983){_0x57d22c=_0x57d22c-0x179;const _0x234834=a175_0x2348();let _0x9e5be4=_0x234834[_0x57d22c];return _0x9e5be4;}import*as a175_0x21cc14 from'readline';export function isInteractive(){const _0x1036fc=a175_0x9e5b;return process[_0x1036fc(0x17c)][_0x1036fc(0x195)]===!![];}function a175_0x2348(){const _0xf4eeb0=['\x20[y/N]\x20','close','utf8','\x20(y/N):\x20','1rSaShq','removeListener','isTTY','setEncoding','761414PZlOyC','2285825FjCxce','stdin','12NuVKtC','440mbVNwJ','stderr','45lljfYw','pause','stdout','58528jnTqnD','resume','write','278467vQnNdw','701416zZyIjy','toLowerCase','yes','27bzxdFr','setRawMode','question','17223876ljwYSC','115220HKmubz'];a175_0x2348=function(){return _0xf4eeb0;};return a175_0x2348();}export async function confirm(_0x21fee4){const _0x481f79=a175_0x9e5b,_0x296de0=a175_0x21cc14['createInterface']({'input':process[_0x481f79(0x17c)],'output':process[_0x481f79(0x182)]});return new Promise(_0x8c3a24=>{const _0xb7471d=_0x481f79;_0x296de0[_0xb7471d(0x18c)](_0x21fee4+_0xb7471d(0x192),_0x3ea740=>{const _0x4f6358=_0xb7471d;_0x296de0[_0x4f6358(0x190)](),_0x8c3a24(_0x3ea740[_0x4f6358(0x188)]()==='y'||_0x3ea740[_0x4f6358(0x188)]()===_0x4f6358(0x189));});});}export async function confirmKey(_0x611bbb){const _0x28d1e1=a175_0x9e5b;if(!process['stdin'][_0x28d1e1(0x195)])return![];return process[_0x28d1e1(0x17f)][_0x28d1e1(0x185)](_0x611bbb+_0x28d1e1(0x18f)),new Promise(_0x4617f3=>{const _0x50dbb9=_0x28d1e1,_0x253ff6=process['stdin'];_0x253ff6[_0x50dbb9(0x18b)](!![]),_0x253ff6[_0x50dbb9(0x184)](),_0x253ff6[_0x50dbb9(0x179)](_0x50dbb9(0x191));const _0x448a22=_0x3d4b75=>{const _0x2d3cb6=_0x50dbb9;_0x253ff6[_0x2d3cb6(0x18b)](![]),_0x253ff6[_0x2d3cb6(0x181)](),_0x253ff6[_0x2d3cb6(0x194)]('data',_0x448a22);if(_0x3d4b75==='\x1b'){process[_0x2d3cb6(0x17f)][_0x2d3cb6(0x185)]('\x0a'),_0x4617f3(![]);return;}_0x3d4b75==='\x03'&&(process['stderr'][_0x2d3cb6(0x185)]('\x0a'),process['exit'](0x82));if(_0x3d4b75['toLowerCase']()==='y'){process[_0x2d3cb6(0x17f)][_0x2d3cb6(0x185)]('y\x0a'),_0x4617f3(!![]);return;}process[_0x2d3cb6(0x17f)][_0x2d3cb6(0x185)]('\x0a'),_0x4617f3(![]);};_0x253ff6['on']('data',_0x448a22);});}
@@ -1 +1 @@
1
- (function(_0xe06c42,_0x36b61d){const _0x23b382=a177_0x26a3,_0x4f8a03=_0xe06c42();while(!![]){try{const _0x47135b=-parseInt(_0x23b382(0x1dd))/0x1*(-parseInt(_0x23b382(0x1d9))/0x2)+-parseInt(_0x23b382(0x1ce))/0x3+parseInt(_0x23b382(0x1d7))/0x4*(parseInt(_0x23b382(0x1de))/0x5)+parseInt(_0x23b382(0x1d5))/0x6*(parseInt(_0x23b382(0x1c9))/0x7)+parseInt(_0x23b382(0x1db))/0x8+parseInt(_0x23b382(0x1e2))/0x9+-parseInt(_0x23b382(0x1c7))/0xa*(parseInt(_0x23b382(0x1ca))/0xb);if(_0x47135b===_0x36b61d)break;else _0x4f8a03['push'](_0x4f8a03['shift']());}catch(_0x3e6e32){_0x4f8a03['push'](_0x4f8a03['shift']());}}}(a177_0x362f,0xa6dfe));import a177_0xc4ffba from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x411b5e,_0x3d7c42={}){const _0x7be7a5=a177_0x26a3,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3d7c42;return a177_0xc4ffba({'text':_0x411b5e,'color':_0x7be7a5(0x1d6),'stream':process[_0x7be7a5(0x1cf)],'isEnabled':forceEnabled||process[_0x7be7a5(0x1cf)][_0x7be7a5(0x1df)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x30c263,_0x42dfc7,_0x420ce3={}){const _0xca00a6=a177_0x26a3,_0x2302b4=_0x420ce3['clock']??(()=>Date['now']()),_0x541ec0=createCommandSpinner(_0x30c263,_0x420ce3);_0x541ec0['start']();const _0x5654e0=_0x2302b4();try{const _0x4aee9b=await _0x42dfc7(),_0x8b45a3=_0x2302b4()-_0x5654e0;return _0x541ec0[_0xca00a6(0x1d8)](),{'data':_0x4aee9b,'elapsedMs':_0x8b45a3};}catch(_0x25f348){_0x541ec0[_0xca00a6(0x1d8)]();throw _0x25f348;}}export async function withProgressSpinner(_0x2caee5,_0x4dc562,_0x34e6f7={}){const _0x4337f4=a177_0x26a3,_0x40c3c7=_0x34e6f7[_0x4337f4(0x1c6)]??(()=>Date[_0x4337f4(0x1cd)]()),_0x360bf7=_0x34e6f7['intervalFactory']??setInterval,_0x1d2214=createCommandSpinner(_0x2caee5,_0x34e6f7);_0x1d2214[_0x4337f4(0x1e0)]();const _0xfb5802=_0x40c3c7(),_0x4f3c39=_0x2caee5[_0x4337f4(0x1cc)](_0x4337f4(0x1c8),'')[_0x4337f4(0x1d2)]()||'Processing',_0x2311e5={};let _0x61fb=_0x2caee5;const _0x59735b=()=>{const _0x20a1da=_0x4337f4;if(!_0x1d2214['isSpinning'])return;const _0x37780e=_0x40c3c7()-_0xfb5802,_0x20d2aa=formatElapsed(_0x37780e),_0x251df3=_0x2311e5[_0x20a1da(0x1d3)]?.[_0x20a1da(0x1d2)]()||_0x4f3c39,_0x43dbe5=_0x2311e5[_0x20a1da(0x1da)]?'\x20[Job\x20ID:\x20'+_0x2311e5['jobId']+']':'',_0x57ca3c=_0x2311e5[_0x20a1da(0x1d4)]?'\x20'+_0x2311e5[_0x20a1da(0x1d4)]:'',_0x291c95=_0x251df3+'\x20'+_0x20d2aa+_0x57ca3c+_0x43dbe5;_0x291c95!==_0x61fb&&_0x291c95[_0x20a1da(0x1d2)]()&&(_0x1d2214[_0x20a1da(0x1dc)]=_0x291c95,_0x61fb=_0x291c95);},_0x18127f=_0x360bf7(()=>{_0x59735b();},0x3e8),_0x41286b={'setPhase':_0x1fca23=>{const _0x42bc2b=_0x4337f4;_0x2311e5[_0x42bc2b(0x1d3)]=_0x1fca23;const _0x25555d=_0x1fca23?.['trim']()||_0x4f3c39,_0x4f2332=_0x40c3c7()-_0xfb5802,_0x565c5d=formatElapsed(_0x4f2332),_0x58378c=_0x2311e5[_0x42bc2b(0x1da)]?_0x42bc2b(0x1e1)+_0x2311e5[_0x42bc2b(0x1da)]+']':'',_0x4df4e6=_0x2311e5[_0x42bc2b(0x1d4)]?'\x20'+_0x2311e5[_0x42bc2b(0x1d4)]:'',_0x15bc76=_0x25555d+'\x20'+_0x565c5d+_0x4df4e6+_0x58378c;_0x1d2214[_0x42bc2b(0x1d1)]&&_0x15bc76['trim']()&&(_0x1d2214['text']=_0x15bc76,_0x61fb=_0x15bc76);},'setJobId':_0x2fdc15=>{_0x2311e5['jobId']=_0x2fdc15,_0x59735b();},'setExtra':_0x586c44=>{_0x2311e5['extra']=_0x586c44,_0x59735b();}};_0x59735b();try{const _0x296c50=await _0x4dc562(_0x41286b),_0x549ec3=_0x40c3c7()-_0xfb5802;return{'data':_0x296c50,'elapsedMs':_0x549ec3};}finally{clearInterval(_0x18127f),_0x1d2214[_0x4337f4(0x1d8)]();}}function a177_0x26a3(_0x11ceae,_0x1be537){_0x11ceae=_0x11ceae-0x1c6;const _0x362fd8=a177_0x362f();let _0x26a3ec=_0x362fd8[_0x11ceae];return _0x26a3ec;}export function formatElapsed(_0x569186){const _0x5ee653=a177_0x26a3,_0x3a810b=Math['floor'](_0x569186/0x3e8);if(_0x3a810b<0x3c)return(_0x569186/0x3e8)[_0x5ee653(0x1cb)](0x1)+'s';const _0x435cd5=Math[_0x5ee653(0x1d0)](_0x3a810b/0x3c),_0xfba1f=_0x3a810b%0x3c;if(_0x435cd5<0x3c)return _0x435cd5+'m\x20'+_0xfba1f+'s';const _0x3384e3=Math[_0x5ee653(0x1d0)](_0x435cd5/0x3c),_0x2bc61f=_0x435cd5%0x3c;return _0x3384e3+'h\x20'+_0x2bc61f+'m';}function a177_0x362f(){const _0x18b75e=['11bRATuS','toFixed','replace','now','1212735UcrsXw','stderr','floor','isSpinning','trim','phase','extra','2562YbFDwT','cyan','8cByzGS','stop','2fjptsj','jobId','2589736OlZOZe','text','596026NqBoBg','2809390gtnOon','isTTY','start','\x20[Job\x20ID:\x20','9553140OSfhKm','clock','30027120ZRjkUv','...','16156sTqCXd'];a177_0x362f=function(){return _0x18b75e;};return a177_0x362f();}
1
+ (function(_0x5cb274,_0x132439){const _0x45b3a5=a176_0x22c4,_0x42a5f0=_0x5cb274();while(!![]){try{const _0x2ad612=parseInt(_0x45b3a5(0x15d))/0x1+parseInt(_0x45b3a5(0x16f))/0x2+parseInt(_0x45b3a5(0x173))/0x3+parseInt(_0x45b3a5(0x16c))/0x4+-parseInt(_0x45b3a5(0x16d))/0x5+-parseInt(_0x45b3a5(0x168))/0x6*(parseInt(_0x45b3a5(0x15b))/0x7)+parseInt(_0x45b3a5(0x171))/0x8;if(_0x2ad612===_0x132439)break;else _0x42a5f0['push'](_0x42a5f0['shift']());}catch(_0x5e9b7b){_0x42a5f0['push'](_0x42a5f0['shift']());}}}(a176_0x3c3c,0xd1fd7));import a176_0x57cd50 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a176_0x22c4(_0x4af127,_0x202fd3){_0x4af127=_0x4af127-0x15b;const _0x3c3c41=a176_0x3c3c();let _0x22c4ec=_0x3c3c41[_0x4af127];return _0x22c4ec;}export function createCommandSpinner(_0x4a1ac2,_0x4b5460={}){const _0x9c5f7=a176_0x22c4,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x4b5460;return a176_0x57cd50({'text':_0x4a1ac2,'color':'cyan','stream':process[_0x9c5f7(0x15e)],'isEnabled':forceEnabled||process[_0x9c5f7(0x15e)][_0x9c5f7(0x164)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}function a176_0x3c3c(){const _0x296683=['isSpinning','19717352aZxKXn','intervalFactory','298947vVBBZr','phase','text','35IMOTCT','Processing','131515EKfEZU','stderr','toFixed','jobId','clock','start','floor','isTTY','extra','...','replace','1554270eSxBCv','stop','\x20[Job\x20ID:\x20','trim','262284niwhOg','5434680eTNKlV','now','961752ePwtMu'];a176_0x3c3c=function(){return _0x296683;};return a176_0x3c3c();}export async function withSpinner(_0x30db93,_0x559bb0,_0x310e42={}){const _0x57f97a=a176_0x22c4,_0x5d2784=_0x310e42['clock']??(()=>Date[_0x57f97a(0x16e)]()),_0x254d74=createCommandSpinner(_0x30db93,_0x310e42);_0x254d74[_0x57f97a(0x162)]();const _0x45441e=_0x5d2784();try{const _0x12d443=await _0x559bb0(),_0x4b0887=_0x5d2784()-_0x45441e;return _0x254d74[_0x57f97a(0x169)](),{'data':_0x12d443,'elapsedMs':_0x4b0887};}catch(_0xb860f6){_0x254d74[_0x57f97a(0x169)]();throw _0xb860f6;}}export async function withProgressSpinner(_0x52bc91,_0x8640d5,_0x3ebcf6={}){const _0x16684a=a176_0x22c4,_0x141bc7=_0x3ebcf6[_0x16684a(0x161)]??(()=>Date[_0x16684a(0x16e)]()),_0x5a2007=_0x3ebcf6[_0x16684a(0x172)]??setInterval,_0xf38987=createCommandSpinner(_0x52bc91,_0x3ebcf6);_0xf38987[_0x16684a(0x162)]();const _0x34cbe8=_0x141bc7(),_0xb5dadf=_0x52bc91[_0x16684a(0x167)](_0x16684a(0x166),'')[_0x16684a(0x16b)]()||_0x16684a(0x15c),_0x507fdd={};let _0x14d7cc=_0x52bc91;const _0x5553d7=()=>{const _0x2eac4c=_0x16684a;if(!_0xf38987[_0x2eac4c(0x170)])return;const _0xd60034=_0x141bc7()-_0x34cbe8,_0x24cd23=formatElapsed(_0xd60034),_0xb87aa2=_0x507fdd[_0x2eac4c(0x174)]?.['trim']()||_0xb5dadf,_0x1d5af2=_0x507fdd['jobId']?'\x20[Job\x20ID:\x20'+_0x507fdd[_0x2eac4c(0x160)]+']':'',_0x5d7bdb=_0x507fdd[_0x2eac4c(0x165)]?'\x20'+_0x507fdd[_0x2eac4c(0x165)]:'',_0x55dff6=_0xb87aa2+'\x20'+_0x24cd23+_0x5d7bdb+_0x1d5af2;_0x55dff6!==_0x14d7cc&&_0x55dff6[_0x2eac4c(0x16b)]()&&(_0xf38987[_0x2eac4c(0x175)]=_0x55dff6,_0x14d7cc=_0x55dff6);},_0x4e6a32=_0x5a2007(()=>{_0x5553d7();},0x3e8),_0x4beea6={'setPhase':_0x25753d=>{const _0x1549bc=_0x16684a;_0x507fdd['phase']=_0x25753d;const _0x5a7f19=_0x25753d?.[_0x1549bc(0x16b)]()||_0xb5dadf,_0x4cb575=_0x141bc7()-_0x34cbe8,_0x5e0799=formatElapsed(_0x4cb575),_0x5a1a9a=_0x507fdd[_0x1549bc(0x160)]?_0x1549bc(0x16a)+_0x507fdd[_0x1549bc(0x160)]+']':'',_0x47fe26=_0x507fdd[_0x1549bc(0x165)]?'\x20'+_0x507fdd['extra']:'',_0x5801d7=_0x5a7f19+'\x20'+_0x5e0799+_0x47fe26+_0x5a1a9a;_0xf38987[_0x1549bc(0x170)]&&_0x5801d7[_0x1549bc(0x16b)]()&&(_0xf38987[_0x1549bc(0x175)]=_0x5801d7,_0x14d7cc=_0x5801d7);},'setJobId':_0xca634f=>{_0x507fdd['jobId']=_0xca634f,_0x5553d7();},'setExtra':_0x3d8722=>{_0x507fdd['extra']=_0x3d8722,_0x5553d7();}};_0x5553d7();try{const _0x2292b1=await _0x8640d5(_0x4beea6),_0xcee00d=_0x141bc7()-_0x34cbe8;return{'data':_0x2292b1,'elapsedMs':_0xcee00d};}finally{clearInterval(_0x4e6a32),_0xf38987[_0x16684a(0x169)]();}}export function formatElapsed(_0x4409d9){const _0xcfb78d=a176_0x22c4,_0x549e74=Math[_0xcfb78d(0x163)](_0x4409d9/0x3e8);if(_0x549e74<0x3c)return(_0x4409d9/0x3e8)[_0xcfb78d(0x15f)](0x1)+'s';const _0x448ef9=Math['floor'](_0x549e74/0x3c),_0x838234=_0x549e74%0x3c;if(_0x448ef9<0x3c)return _0x448ef9+'m\x20'+_0x838234+'s';const _0xdeae15=Math[_0xcfb78d(0x163)](_0x448ef9/0x3c),_0x907f53=_0x448ef9%0x3c;return _0xdeae15+'h\x20'+_0x907f53+'m';}
@@ -1 +1 @@
1
- function a178_0x26ed(_0x48c0e8,_0x2e8bc1){_0x48c0e8=_0x48c0e8-0x8a;const _0x3875a1=a178_0x3875();let _0x26ed39=_0x3875a1[_0x48c0e8];return _0x26ed39;}function a178_0x3875(){const _0x5a6c8d=['8ZDdkNQ','244760LeWVaW','trim','getReader','event','releaseLock','760388aJAOcB','18btxfng','split','startsWith','debug','data','pop','read','649170EFUzZE','decode','indexOf','139808NRALhS','slice','12pBDzKj','Response\x20body\x20is\x20null','380455nEpxew','1008406KfkTvA','body','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','448788SEiJTr','[LLM\x20API\x20SSE]\x20'];a178_0x3875=function(){return _0x5a6c8d;};return a178_0x3875();}(function(_0x4a5526,_0x5efbb9){const _0x5a42cc=a178_0x26ed,_0x2be5d7=_0x4a5526();while(!![]){try{const _0x5cef16=-parseInt(_0x5a42cc(0x94))/0x1+-parseInt(_0x5a42cc(0x9f))/0x2+parseInt(_0x5a42cc(0x9c))/0x3+-parseInt(_0x5a42cc(0xa4))/0x4+parseInt(_0x5a42cc(0x98))/0x5*(parseInt(_0x5a42cc(0x96))/0x6)+-parseInt(_0x5a42cc(0x99))/0x7*(-parseInt(_0x5a42cc(0x9e))/0x8)+-parseInt(_0x5a42cc(0x8a))/0x9*(-parseInt(_0x5a42cc(0x91))/0xa);if(_0x5cef16===_0x5efbb9)break;else _0x2be5d7['push'](_0x2be5d7['shift']());}catch(_0x450984){_0x2be5d7['push'](_0x2be5d7['shift']());}}}(a178_0x3875,0x1e1f9));export async function*parseSSEStream(_0x34129c,_0x132a1f){const _0x570e02=a178_0x26ed;if(!_0x34129c[_0x570e02(0x9a)])throw new Error(_0x570e02(0x97));const _0x3a9a2a=_0x34129c['body'][_0x570e02(0xa1)](),_0x1a6e53=new TextDecoder();let _0xfd82d6='',_0x16ce9c={};try{while(!![]){const {done:_0x3df333,value:_0x567223}=await _0x3a9a2a[_0x570e02(0x90)]();if(_0x3df333){if(_0x16ce9c['data']){_0x132a1f?.[_0x570e02(0x8d)](_0x570e02(0x9d)+_0x16ce9c[_0x570e02(0x8e)]);const _0x107128=parseSSEData(_0x16ce9c[_0x570e02(0x8e)]);yield _0x107128;}break;}_0xfd82d6+=_0x1a6e53[_0x570e02(0x92)](_0x567223,{'stream':!![]});const _0x3e4745=_0xfd82d6[_0x570e02(0x8b)]('\x0a');_0xfd82d6=_0x3e4745[_0x570e02(0x8f)]()||'';for(const _0x6cf66f of _0x3e4745){if(_0x6cf66f[_0x570e02(0xa0)]()===''){if(_0x16ce9c[_0x570e02(0x8e)]){_0x132a1f?.[_0x570e02(0x8d)](_0x570e02(0x9d)+_0x16ce9c[_0x570e02(0x8e)]);const _0x2aaad0=parseSSEData(_0x16ce9c[_0x570e02(0x8e)]);yield _0x2aaad0,_0x16ce9c={};}continue;}if(_0x6cf66f[_0x570e02(0x8c)](':'))continue;const _0xf17ff8=_0x6cf66f[_0x570e02(0x93)](':');if(_0xf17ff8===-0x1)continue;const _0x3af5ec=_0x6cf66f[_0x570e02(0x95)](0x0,_0xf17ff8);let _0x5dd37f=_0x6cf66f[_0x570e02(0x95)](_0xf17ff8+0x1);_0x5dd37f[_0x570e02(0x8c)]('\x20')&&(_0x5dd37f=_0x5dd37f[_0x570e02(0x95)](0x1));switch(_0x3af5ec){case'event':_0x16ce9c[_0x570e02(0xa2)]=_0x5dd37f;break;case _0x570e02(0x8e):_0x16ce9c[_0x570e02(0x8e)]=_0x16ce9c[_0x570e02(0x8e)]?_0x16ce9c[_0x570e02(0x8e)]+'\x0a'+_0x5dd37f:_0x5dd37f;break;case'id':_0x16ce9c['id']=_0x5dd37f;break;}}}}finally{_0x3a9a2a[_0x570e02(0xa3)]();}}function parseSSEData(_0x2dc496){const _0x1a8c1c=a178_0x26ed;try{return JSON['parse'](_0x2dc496);}catch(_0x1d27f8){throw new Error(_0x1a8c1c(0x9b)+_0x2dc496,{'cause':_0x1d27f8});}}
1
+ (function(_0x35a81f,_0x49842b){const _0x20f807=a177_0x28f8,_0x2affbe=_0x35a81f();while(!![]){try{const _0x2ae896=-parseInt(_0x20f807(0xb5))/0x1+-parseInt(_0x20f807(0xb7))/0x2+-parseInt(_0x20f807(0xc0))/0x3+parseInt(_0x20f807(0xc4))/0x4+parseInt(_0x20f807(0xbb))/0x5+parseInt(_0x20f807(0xc3))/0x6+parseInt(_0x20f807(0xc1))/0x7*(-parseInt(_0x20f807(0xbe))/0x8);if(_0x2ae896===_0x49842b)break;else _0x2affbe['push'](_0x2affbe['shift']());}catch(_0x83f523){_0x2affbe['push'](_0x2affbe['shift']());}}}(a177_0x26db,0xbb806));export async function*parseSSEStream(_0x8a7159,_0x46cde8){const _0x2ef6c3=a177_0x28f8;if(!_0x8a7159['body'])throw new Error('Response\x20body\x20is\x20null');const _0x58e4d2=_0x8a7159['body']['getReader'](),_0x2e2e76=new TextDecoder();let _0x4c6458='',_0x18944a={};try{while(!![]){const {done:_0x5bb882,value:_0x32de42}=await _0x58e4d2[_0x2ef6c3(0xbf)]();if(_0x5bb882){if(_0x18944a[_0x2ef6c3(0xc6)]){_0x46cde8?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x18944a[_0x2ef6c3(0xc6)]);const _0x15d319=parseSSEData(_0x18944a['data']);yield _0x15d319;}break;}_0x4c6458+=_0x2e2e76[_0x2ef6c3(0xbc)](_0x32de42,{'stream':!![]});const _0x8669fc=_0x4c6458[_0x2ef6c3(0xbd)]('\x0a');_0x4c6458=_0x8669fc['pop']()||'';for(const _0x57f641 of _0x8669fc){if(_0x57f641[_0x2ef6c3(0xc8)]()===''){if(_0x18944a['data']){_0x46cde8?.[_0x2ef6c3(0xb8)](_0x2ef6c3(0xba)+_0x18944a[_0x2ef6c3(0xc6)]);const _0x1861b0=parseSSEData(_0x18944a[_0x2ef6c3(0xc6)]);yield _0x1861b0,_0x18944a={};}continue;}if(_0x57f641[_0x2ef6c3(0xb6)](':'))continue;const _0x5464aa=_0x57f641[_0x2ef6c3(0xc7)](':');if(_0x5464aa===-0x1)continue;const _0x5a98cf=_0x57f641[_0x2ef6c3(0xb9)](0x0,_0x5464aa);let _0x508316=_0x57f641['slice'](_0x5464aa+0x1);_0x508316[_0x2ef6c3(0xb6)]('\x20')&&(_0x508316=_0x508316['slice'](0x1));switch(_0x5a98cf){case'event':_0x18944a[_0x2ef6c3(0xc2)]=_0x508316;break;case'data':_0x18944a[_0x2ef6c3(0xc6)]=_0x18944a[_0x2ef6c3(0xc6)]?_0x18944a[_0x2ef6c3(0xc6)]+'\x0a'+_0x508316:_0x508316;break;case'id':_0x18944a['id']=_0x508316;break;}}}}finally{_0x58e4d2[_0x2ef6c3(0xb4)]();}}function a177_0x28f8(_0x2c156e,_0x200010){_0x2c156e=_0x2c156e-0xb4;const _0x26db0d=a177_0x26db();let _0x28f825=_0x26db0d[_0x2c156e];return _0x28f825;}function a177_0x26db(){const _0x4ea94c=['3655265lcQVkn','decode','split','440JnrwQH','read','763581CwGbmL','86919CnAeac','event','5215908ufwcZm','2942348YUcWCe','parse','data','indexOf','trim','releaseLock','9696UtHVUm','startsWith','1241588xlbKpP','debug','slice','[LLM\x20API\x20SSE]\x20'];a177_0x26db=function(){return _0x4ea94c;};return a177_0x26db();}function parseSSEData(_0x2b967c){const _0x217fc1=a177_0x28f8;try{return JSON[_0x217fc1(0xc5)](_0x2b967c);}catch(_0x4807ad){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x2b967c,{'cause':_0x4807ad});}}
@@ -1 +1 @@
1
- (function(_0x3a0a8d,_0x5c5526){const _0x16a1a7=a179_0x37b0,_0x1cd3c2=_0x3a0a8d();while(!![]){try{const _0xa21f8e=parseInt(_0x16a1a7(0x1e0))/0x1+-parseInt(_0x16a1a7(0x1eb))/0x2*(parseInt(_0x16a1a7(0x1ee))/0x3)+parseInt(_0x16a1a7(0x1f0))/0x4*(parseInt(_0x16a1a7(0x1f4))/0x5)+parseInt(_0x16a1a7(0x1e3))/0x6+parseInt(_0x16a1a7(0x1e5))/0x7*(-parseInt(_0x16a1a7(0x1f2))/0x8)+-parseInt(_0x16a1a7(0x1f1))/0x9+-parseInt(_0x16a1a7(0x1e1))/0xa*(-parseInt(_0x16a1a7(0x1e4))/0xb);if(_0xa21f8e===_0x5c5526)break;else _0x1cd3c2['push'](_0x1cd3c2['shift']());}catch(_0x48422b){_0x1cd3c2['push'](_0x1cd3c2['shift']());}}}(a179_0x4afe,0xb2660));import a179_0x2b04cd from'string-width';export function stringWidth(_0x33ecac){return a179_0x2b04cd(_0x33ecac);}export function padEnd(_0x16ec57,_0x3913ed){const _0x2b3f31=a179_0x37b0,_0x1a68f5=stringWidth(_0x16ec57);if(_0x1a68f5>=_0x3913ed)return _0x16ec57;return _0x16ec57+'\x20'[_0x2b3f31(0x1ed)](_0x3913ed-_0x1a68f5);}export function padStart(_0x4d6cc2,_0x539033){const _0x37fcc9=stringWidth(_0x4d6cc2);if(_0x37fcc9>=_0x539033)return _0x4d6cc2;return'\x20'['repeat'](_0x539033-_0x37fcc9)+_0x4d6cc2;}export function centerAlign(_0x4b5997,_0x2bd7ef){const _0x22f818=a179_0x37b0,_0x58eb23=stringWidth(_0x4b5997);if(_0x58eb23>_0x2bd7ef){if(_0x2bd7ef<=0x1)return'…'[_0x22f818(0x1e6)](0x0,_0x2bd7ef);let _0xdf6c3a=_0x4b5997;while(stringWidth(_0xdf6c3a+'…')>_0x2bd7ef){_0xdf6c3a=_0xdf6c3a[_0x22f818(0x1e7)](0x0,-0x1);}return _0xdf6c3a+'…';}if(_0x58eb23===_0x2bd7ef)return _0x4b5997;const _0x349f65=_0x2bd7ef-_0x58eb23,_0x1354b2=Math[_0x22f818(0x1e8)](_0x349f65/0x2),_0x20f86c=_0x349f65-_0x1354b2;return'\x20'[_0x22f818(0x1ed)](_0x1354b2)+_0x4b5997+'\x20'[_0x22f818(0x1ed)](_0x20f86c);}export function escapeStringLiteral(_0x51f046){const _0x241307=a179_0x37b0;if(!_0x51f046||_0x51f046[_0x241307(0x1f6)]()['length']===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2bf9e2=_0x51f046['replace'](/'/g,'\x27\x27');return'\x27'+_0x2bf9e2+'\x27';}function a179_0x37b0(_0x5c7145,_0x4f11ee){_0x5c7145=_0x5c7145-0x1e0;const _0x4afe64=a179_0x4afe();let _0x37b0cf=_0x4afe64[_0x5c7145];return _0x37b0cf;}export function globToLike(_0x28d039){const _0x99836d=a179_0x37b0;let _0x4eee55=_0x28d039[_0x99836d(0x1e2)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x99836d(0x1e2)](/_/g,'\x5c_');return _0x4eee55=_0x4eee55[_0x99836d(0x1e2)](/\*/g,'%')['replace'](/\?/g,'_'),_0x4eee55;}export function buildLikePattern(_0x5baa9b){const _0x324e9a=a179_0x37b0;if(!_0x5baa9b||_0x5baa9b[_0x324e9a(0x1f6)]()[_0x324e9a(0x1ec)]===0x0)throw new Error(_0x324e9a(0x1f5));const _0xaa6bda=globToLike(_0x5baa9b),_0x39462c=_0xaa6bda[_0x324e9a(0x1e2)](/'/g,'\x27\x27');return'\x27'+_0x39462c+'\x27';}export function matchGlobPattern(_0x47ef6e,_0x518f4f){const _0x25ce05=a179_0x37b0,_0xe6a5f=_0x518f4f[_0x25ce05(0x1e2)](/[.+^${}()|[\]\\]/g,_0x25ce05(0x1f3))[_0x25ce05(0x1e2)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x3c5b80=new RegExp('^'+_0xe6a5f+'$');return _0x3c5b80[_0x25ce05(0x1ef)](_0x47ef6e);}export function getSanitizedUsername(){const _0x1c6b6f=a179_0x37b0,_0x3b82fa=process.env.USER||process.env.USERNAME||'unknown';return _0x3b82fa[_0x1c6b6f(0x1e2)](/[^a-zA-Z0-9]/g,'')[_0x1c6b6f(0x1ea)]();}function a179_0x4afe(){const _0xbf122b=['\x5c$&','276205fUHXFz','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','trim','45425mymrNu','2830XdEcQO','replace','3155304vtDXWQ','74470wKEsjl','5759684pAoKZr','substring','slice','floor','toString','toLowerCase','12dsZcHN','length','repeat','119982buGQit','test','4cTXiRj','6740676HUFwhH','8hNUCSz'];a179_0x4afe=function(){return _0xbf122b;};return a179_0x4afe();}export function generateRandomHex(){const _0x1349bd=a179_0x37b0,_0x4afc54=Math[_0x1349bd(0x1e8)](Math['random']()*0xfffff);return _0x4afc54[_0x1349bd(0x1e9)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x47a5da){const _0x59f2c2=a179_0x37b0;return _0x47a5da[_0x59f2c2(0x1ea)]()[_0x59f2c2(0x1e2)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x59f2c2(0x1e2)](/-+/g,'-')[_0x59f2c2(0x1e2)](/^-|-$/g,'');}
1
+ (function(_0x1b99c0,_0x1a0464){const _0x28fb46=a178_0x537a,_0x26c251=_0x1b99c0();while(!![]){try{const _0x38c243=-parseInt(_0x28fb46(0xc6))/0x1+-parseInt(_0x28fb46(0xb6))/0x2*(parseInt(_0x28fb46(0xbc))/0x3)+-parseInt(_0x28fb46(0xb3))/0x4*(-parseInt(_0x28fb46(0xc7))/0x5)+parseInt(_0x28fb46(0xbf))/0x6+-parseInt(_0x28fb46(0xc0))/0x7*(parseInt(_0x28fb46(0xbe))/0x8)+parseInt(_0x28fb46(0xc2))/0x9+-parseInt(_0x28fb46(0xb1))/0xa*(-parseInt(_0x28fb46(0xb8))/0xb);if(_0x38c243===_0x1a0464)break;else _0x26c251['push'](_0x26c251['shift']());}catch(_0x1ad87f){_0x26c251['push'](_0x26c251['shift']());}}}(a178_0x3d18,0x7b206));import a178_0x508511 from'string-width';export function stringWidth(_0x3bc50d){return a178_0x508511(_0x3bc50d);}export function padEnd(_0x33bee7,_0x5c9de9){const _0xd95b43=a178_0x537a,_0x430118=stringWidth(_0x33bee7);if(_0x430118>=_0x5c9de9)return _0x33bee7;return _0x33bee7+'\x20'[_0xd95b43(0xb4)](_0x5c9de9-_0x430118);}export function padStart(_0x52c500,_0x7130e0){const _0x3c5827=stringWidth(_0x52c500);if(_0x3c5827>=_0x7130e0)return _0x52c500;return'\x20'['repeat'](_0x7130e0-_0x3c5827)+_0x52c500;}export function centerAlign(_0x4fb041,_0x323dbe){const _0x3f5374=a178_0x537a,_0x32eab3=stringWidth(_0x4fb041);if(_0x32eab3>_0x323dbe){if(_0x323dbe<=0x1)return'…'[_0x3f5374(0xc8)](0x0,_0x323dbe);let _0x3172e7=_0x4fb041;while(stringWidth(_0x3172e7+'…')>_0x323dbe){_0x3172e7=_0x3172e7[_0x3f5374(0xba)](0x0,-0x1);}return _0x3172e7+'…';}if(_0x32eab3===_0x323dbe)return _0x4fb041;const _0x2833f6=_0x323dbe-_0x32eab3,_0x455fbf=Math[_0x3f5374(0xc9)](_0x2833f6/0x2),_0x2007bd=_0x2833f6-_0x455fbf;return'\x20'[_0x3f5374(0xb4)](_0x455fbf)+_0x4fb041+'\x20'['repeat'](_0x2007bd);}export function escapeStringLiteral(_0x1eb80b){const _0x294e34=a178_0x537a;if(!_0x1eb80b||_0x1eb80b[_0x294e34(0xbd)]()[_0x294e34(0xc3)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2ab6d7=_0x1eb80b['replace'](/'/g,'\x27\x27');return'\x27'+_0x2ab6d7+'\x27';}export function globToLike(_0x4c7ad2){const _0x2c12e3=a178_0x537a;let _0x26fe1b=_0x4c7ad2[_0x2c12e3(0xbb)](/\\/g,'\x5c\x5c')[_0x2c12e3(0xbb)](/%/g,'\x5c%')[_0x2c12e3(0xbb)](/_/g,'\x5c_');return _0x26fe1b=_0x26fe1b[_0x2c12e3(0xbb)](/\*/g,'%')['replace'](/\?/g,'_'),_0x26fe1b;}export function buildLikePattern(_0x442cfa){const _0x5911a1=a178_0x537a;if(!_0x442cfa||_0x442cfa['trim']()[_0x5911a1(0xc3)]===0x0)throw new Error(_0x5911a1(0xc4));const _0x186eb4=globToLike(_0x442cfa),_0x52f6d2=_0x186eb4[_0x5911a1(0xbb)](/'/g,'\x27\x27');return'\x27'+_0x52f6d2+'\x27';}export function matchGlobPattern(_0x33ae77,_0x809c4c){const _0x3f3623=a178_0x537a,_0x3a3b33=_0x809c4c[_0x3f3623(0xbb)](/[.+^${}()|[\]\\]/g,_0x3f3623(0xb2))[_0x3f3623(0xbb)](/\*/g,'.*')[_0x3f3623(0xbb)](/\?/g,'.'),_0x365ec1=new RegExp('^'+_0x3a3b33+'$');return _0x365ec1[_0x3f3623(0xc5)](_0x33ae77);}export function getSanitizedUsername(){const _0x1afa36=a178_0x537a,_0x54307f=process.env.USER||process.env.USERNAME||_0x1afa36(0xb5);return _0x54307f[_0x1afa36(0xbb)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x4cc722=a178_0x537a,_0x1ce18b=Math[_0x4cc722(0xc9)](Math[_0x4cc722(0xb7)]()*0xfffff);return _0x1ce18b[_0x4cc722(0xc1)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x49169c){const _0x5de6d2=a178_0x537a;return _0x49169c[_0x5de6d2(0xb9)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x5de6d2(0xbb)](/\s+/g,'-')[_0x5de6d2(0xbb)](/-+/g,'-')[_0x5de6d2(0xbb)](/^-|-$/g,'');}function a178_0x537a(_0x59ea62,_0x5dae21){_0x59ea62=_0x59ea62-0xb1;const _0x3d18dd=a178_0x3d18();let _0x537ad9=_0x3d18dd[_0x59ea62];return _0x537ad9;}function a178_0x3d18(){const _0x5c510c=['48710VDkHxL','random','253xvfLVO','toLowerCase','slice','replace','69YqUKxl','trim','2919384ezTywx','5660172oQuzVq','7pgzKjj','toString','1514304XJXFfY','length','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','test','387502qAPdXi','5OGrShR','substring','floor','17970JgvhBO','\x5c$&','2655868LQQaDn','repeat','unknown'];a178_0x3d18=function(){return _0x5c510c;};return a178_0x3d18();}