@treasuredata/tdx 0.27.0 → 0.27.1

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 (192) 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.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-command.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/journey-command.d.ts +52 -0
  23. package/dist/commands/journey-command.d.ts.map +1 -1
  24. package/dist/commands/journey-command.js +1 -1
  25. package/dist/commands/journey-command.js.map +1 -1
  26. package/dist/commands/journey-validate-command.js +1 -1
  27. package/dist/commands/llm-command.js +1 -1
  28. package/dist/commands/mcp-command.js +1 -1
  29. package/dist/commands/parent-segment-command.js +1 -1
  30. package/dist/commands/profile-command.js +1 -1
  31. package/dist/commands/profiles-command.js +1 -1
  32. package/dist/commands/query-command.js +1 -1
  33. package/dist/commands/schedule-command.js +1 -1
  34. package/dist/commands/segment-command.js +1 -1
  35. package/dist/commands/segment-create-command.js +1 -1
  36. package/dist/commands/segment-fields-command.js +1 -1
  37. package/dist/commands/segment-pull-command.js +1 -1
  38. package/dist/commands/segment-push-command.js +1 -1
  39. package/dist/commands/segment-update-command.js +1 -1
  40. package/dist/commands/segment-use-command.js +1 -1
  41. package/dist/commands/segment-validate-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/status-command.js +1 -1
  45. package/dist/commands/tables.js +1 -1
  46. package/dist/commands/unset-command.js +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/user-command.js +1 -1
  49. package/dist/commands/workflow-command.js +1 -1
  50. package/dist/core/auth.js +1 -1
  51. package/dist/core/command-output.js +1 -1
  52. package/dist/core/config.js +1 -1
  53. package/dist/core/connection-cache.js +1 -1
  54. package/dist/core/constants.js +1 -1
  55. package/dist/core/credential-cache.js +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/keychain.js +1 -1
  58. package/dist/core/profile.js +1 -1
  59. package/dist/core/project-config.js +1 -1
  60. package/dist/core/session.js +1 -1
  61. package/dist/core/user-cache.js +1 -1
  62. package/dist/core/version.js +1 -1
  63. package/dist/index.js +1 -1
  64. package/dist/mcp/server.js +1 -1
  65. package/dist/mcp/tools/index.js +1 -1
  66. package/dist/mcp/tools/tdx-run.js +1 -1
  67. package/dist/mcp/tools/tdx-search.js +1 -1
  68. package/dist/mcp/utils.js +1 -1
  69. package/dist/proxy/claude-usage-tracker.js +1 -1
  70. package/dist/proxy/passthrough-server.js +1 -1
  71. package/dist/proxy/sse-usage-parser.js +1 -1
  72. package/dist/sdk/agent/agent-config.js +1 -1
  73. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  74. package/dist/sdk/agent/agent-yaml.js +1 -1
  75. package/dist/sdk/agent/test/evaluator.js +1 -1
  76. package/dist/sdk/agent/test/executor.js +1 -1
  77. package/dist/sdk/agent/test/index.js +1 -1
  78. package/dist/sdk/agent/test/output.js +1 -1
  79. package/dist/sdk/agent/test/parser.js +1 -1
  80. package/dist/sdk/agent/tool-target-registry.js +1 -1
  81. package/dist/sdk/api.js +1 -1
  82. package/dist/sdk/client/cdp-api-client.d.ts +85 -2
  83. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  84. package/dist/sdk/client/cdp-api-client.js +1 -1
  85. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  86. package/dist/sdk/client/endpoints.js +1 -1
  87. package/dist/sdk/client/engage-api-client.js +1 -1
  88. package/dist/sdk/client/http-client.js +1 -1
  89. package/dist/sdk/client/llm-api-client.js +1 -1
  90. package/dist/sdk/client/rate-limiter.js +1 -1
  91. package/dist/sdk/client/td-api-client.js +1 -1
  92. package/dist/sdk/client/trino-api-client.js +1 -1
  93. package/dist/sdk/client/workflow-client.js +1 -1
  94. package/dist/sdk/connection-validator.js +1 -1
  95. package/dist/sdk/connection.js +1 -1
  96. package/dist/sdk/engage.js +1 -1
  97. package/dist/sdk/errors.js +1 -1
  98. package/dist/sdk/index.js +1 -1
  99. package/dist/sdk/io/index.js +1 -1
  100. package/dist/sdk/io/node-filesystem.js +1 -1
  101. package/dist/sdk/job.js +1 -1
  102. package/dist/sdk/journey.d.ts +149 -2
  103. package/dist/sdk/journey.d.ts.map +1 -1
  104. package/dist/sdk/journey.js +1 -1
  105. package/dist/sdk/journey.js.map +1 -1
  106. package/dist/sdk/llm/chat-cache.js +1 -1
  107. package/dist/sdk/llm/index.js +1 -1
  108. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  109. package/dist/sdk/llm/model-factors.js +1 -1
  110. package/dist/sdk/personalization.js +1 -1
  111. package/dist/sdk/query/index.js +1 -1
  112. package/dist/sdk/query/sql-parser.js +1 -1
  113. package/dist/sdk/realtime.js +1 -1
  114. package/dist/sdk/schedule.js +1 -1
  115. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  116. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  117. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  118. package/dist/sdk/segment/fields-display.js +1 -1
  119. package/dist/sdk/segment/file-discovery.js +1 -1
  120. package/dist/sdk/segment/journey-utils.js +1 -1
  121. package/dist/sdk/segment/journey-validator.d.ts.map +1 -1
  122. package/dist/sdk/segment/journey-validator.js +1 -1
  123. package/dist/sdk/segment/journey-validator.js.map +1 -1
  124. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  125. package/dist/sdk/segment/journey-yaml.js +1 -1
  126. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  127. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  128. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  129. package/dist/sdk/segment/pull-workflow.js +1 -1
  130. package/dist/sdk/segment/push-recovery.js +1 -1
  131. package/dist/sdk/segment/push-workflow.d.ts +13 -3
  132. package/dist/sdk/segment/push-workflow.d.ts.map +1 -1
  133. package/dist/sdk/segment/push-workflow.js +1 -1
  134. package/dist/sdk/segment/push-workflow.js.map +1 -1
  135. package/dist/sdk/segment/resolution-context.js +1 -1
  136. package/dist/sdk/segment/segment-path-parser.js +1 -1
  137. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  138. package/dist/sdk/segment/target-resolution.js +1 -1
  139. package/dist/sdk/segment/tdx-config.js +1 -1
  140. package/dist/sdk/segment/validate-files.js +1 -1
  141. package/dist/sdk/segment/yaml-validator.js +1 -1
  142. package/dist/sdk/segment.js +1 -1
  143. package/dist/sdk/types/cdp.d.ts +165 -1
  144. package/dist/sdk/types/cdp.d.ts.map +1 -1
  145. package/dist/sdk/types/index.d.ts +1 -1
  146. package/dist/sdk/types/index.d.ts.map +1 -1
  147. package/dist/sdk/types/index.js +1 -1
  148. package/dist/sdk/types/index.js.map +1 -1
  149. package/dist/sdk/types/progress.js +1 -1
  150. package/dist/sdk/user.js +1 -1
  151. package/dist/sdk/util/format-detector.js +1 -1
  152. package/dist/sdk/util/formatters.js +1 -1
  153. package/dist/sdk/util/index.js +1 -1
  154. package/dist/sdk/util/tree-formatter.js +1 -1
  155. package/dist/sdk/workflow/archive-validation.js +1 -1
  156. package/dist/sdk/workflow/clone-workflow.js +1 -1
  157. package/dist/sdk/workflow/index.js +1 -1
  158. package/dist/sdk/workflow/pull-workflow.js +1 -1
  159. package/dist/sdk/workflow/push-workflow.js +1 -1
  160. package/dist/sdk/workflow/tdx-config.js +1 -1
  161. package/dist/sdk/workflow/workflow-utils.js +1 -1
  162. package/dist/test-utils/command-runner.js +1 -1
  163. package/dist/test-utils/factories.js +1 -1
  164. package/dist/test-utils/fixtures.js +1 -1
  165. package/dist/test-utils/http-mock.js +1 -1
  166. package/dist/test-utils/index.js +1 -1
  167. package/dist/utils/async.js +1 -1
  168. package/dist/utils/colors.js +1 -1
  169. package/dist/utils/diff.js +1 -1
  170. package/dist/utils/file-permissions.js +1 -1
  171. package/dist/utils/global-cache.js +1 -1
  172. package/dist/utils/json-loader.js +1 -1
  173. package/dist/utils/local-cache.js +1 -1
  174. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  175. package/dist/utils/logger/formatters/index.js +1 -1
  176. package/dist/utils/logger/handlers/console-handler.js +1 -1
  177. package/dist/utils/logger/handlers/file-handler.js +1 -1
  178. package/dist/utils/logger/handlers/index.js +1 -1
  179. package/dist/utils/logger/handlers/null-handler.js +1 -1
  180. package/dist/utils/logger/index.js +1 -1
  181. package/dist/utils/logger/logger.js +1 -1
  182. package/dist/utils/logger/types.js +1 -1
  183. package/dist/utils/option-validation.js +1 -1
  184. package/dist/utils/process.js +1 -1
  185. package/dist/utils/prompt.js +1 -1
  186. package/dist/utils/spinner.js +1 -1
  187. package/dist/utils/sse-parser.js +1 -1
  188. package/dist/utils/string-utils.js +1 -1
  189. package/dist/utils/table-ref-parser.js +1 -1
  190. package/dist/utils/tdx-logger.js +1 -1
  191. package/dist/utils/version-check.js +1 -1
  192. package/package.json +1 -1
@@ -1 +1 @@
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
+ (function(_0xc0c71d,_0x83255e){const _0x4fd520=a160_0xe9ef,_0x343dd8=_0xc0c71d();while(!![]){try{const _0x10241f=-parseInt(_0x4fd520(0xb2))/0x1*(parseInt(_0x4fd520(0xab))/0x2)+parseInt(_0x4fd520(0xaa))/0x3*(-parseInt(_0x4fd520(0xac))/0x4)+parseInt(_0x4fd520(0xbc))/0x5*(-parseInt(_0x4fd520(0xbb))/0x6)+-parseInt(_0x4fd520(0xba))/0x7*(parseInt(_0x4fd520(0xaf))/0x8)+parseInt(_0x4fd520(0xc3))/0x9+parseInt(_0x4fd520(0xbd))/0xa+parseInt(_0x4fd520(0xbf))/0xb*(parseInt(_0x4fd520(0xad))/0xc);if(_0x10241f===_0x83255e)break;else _0x343dd8['push'](_0x343dd8['shift']());}catch(_0xfc78e3){_0x343dd8['push'](_0x343dd8['shift']());}}}(a160_0xe96d,0xa9ff5));import*as a160_0x92b5d from'node:fs';function a160_0xe9ef(_0x4da55b,_0x3f475b){_0x4da55b=_0x4da55b-0xaa;const _0xe96df9=a160_0xe96d();let _0xe9ef47=_0xe96df9[_0x4da55b];return _0xe9ef47;}function a160_0xe96d(){const _0x638223=['existsSync','8TGjLPt','\x20has\x20insecure\x20permissions\x20(','warn','105158gqoLap','toString','chmodSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','mode','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','dirname','8317743QCalfU','12XhrNln','2303310OPpMGG','9658940IYLDfT',').\x20','913FVxVUm','writeFileSync','Warning:\x20','statSync','12189222XLeezz','564kDLYAw','16QMqGWQ','20936TYwIVC','334104ZfJoQy'];a160_0xe96d=function(){return _0x638223;};return a160_0xe96d();}import*as a160_0x566cd4 from'node:path';export function setSecureFilePermissions(_0x424e0c){const _0xaa2668=a160_0xe9ef;try{a160_0x92b5d[_0xaa2668(0xb4)](_0x424e0c,0x180);}catch{console[_0xaa2668(0xb1)](_0xaa2668(0xb5)+_0x424e0c);}}export function setSecureDirectoryPermissions(_0x24a5c7){const _0x4a74b7=a160_0xe9ef;try{a160_0x92b5d[_0x4a74b7(0xb4)](_0x24a5c7,0x1c0);}catch{console[_0x4a74b7(0xb1)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x24a5c7);}}export function createSecureDirectory(_0x17d393){const _0x396c38=a160_0xe9ef;!a160_0x92b5d[_0x396c38(0xae)](_0x17d393)&&(a160_0x92b5d[_0x396c38(0xb7)](_0x17d393,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x17d393));}export function validateSecureFilePermissions(_0x3165b8){const _0xa55093=a160_0xe9ef;try{const _0x5457d3=a160_0x92b5d[_0xa55093(0xc2)](_0x3165b8),_0x541a5f=_0x5457d3[_0xa55093(0xb6)]&0x1ff,_0x1ecd0f=(_0x541a5f&0x3f)!==0x0;if(_0x1ecd0f)return console[_0xa55093(0xb1)](_0xa55093(0xc1)+_0x3165b8+_0xa55093(0xb0)+_0x541a5f[_0xa55093(0xb3)](0x8)+_0xa55093(0xbe)+_0xa55093(0xb8)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3f19a1,_0x4ce645){const _0x5da316=a160_0xe9ef,_0x473b22=a160_0x566cd4[_0x5da316(0xb9)](_0x3f19a1);createSecureDirectory(_0x473b22),a160_0x92b5d[_0x5da316(0xc0)](_0x3f19a1,_0x4ce645,{'mode':0x180}),setSecureFilePermissions(_0x3f19a1);}
@@ -1 +1 @@
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
+ (function(_0x1f7e03,_0xb02a95){const _0x275411=a161_0x253d,_0x3df001=_0x1f7e03();while(!![]){try{const _0x295021=-parseInt(_0x275411(0x106))/0x1+-parseInt(_0x275411(0xfa))/0x2*(-parseInt(_0x275411(0x105))/0x3)+-parseInt(_0x275411(0xfc))/0x4*(-parseInt(_0x275411(0xff))/0x5)+-parseInt(_0x275411(0xf7))/0x6+parseInt(_0x275411(0xfd))/0x7+-parseInt(_0x275411(0x10a))/0x8+-parseInt(_0x275411(0x101))/0x9*(-parseInt(_0x275411(0x104))/0xa);if(_0x295021===_0xb02a95)break;else _0x3df001['push'](_0x3df001['shift']());}catch(_0x22987b){_0x3df001['push'](_0x3df001['shift']());}}}(a161_0x4112,0xe7240));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x354f83=a161_0x253d;return process.env.TDX_CACHE_DIR||join(homedir(),_0x354f83(0xfb),_0x354f83(0x10b));}const registry=new Map();function a161_0x253d(_0x5bbdc5,_0xd058d6){_0x5bbdc5=_0x5bbdc5-0xf7;const _0x4112da=a161_0x4112();let _0x253dbe=_0x4112da[_0x5bbdc5];return _0x253dbe;}export function registerGlobalCacheKey(_0x401e99,_0xddb43c){const _0xaa04b0=a161_0x253d,_0x671c5b=registry['get'](_0x401e99);if(_0x671c5b&&_0x671c5b!==_0xddb43c)throw new Error(_0xaa04b0(0x107)+_0x401e99+_0xaa04b0(0x108)+_0x671c5b+_0xaa04b0(0xf9)+_0xddb43c+'\x22');registry['set'](_0x401e99,_0xddb43c);}function a161_0x4112(){const _0x12ef8d=['\x22\x20already\x20registered\x20by\x20\x22','utf-8','9749344jOBrNj','tdx','10943310JtjCPJ','trim','\x22,\x20cannot\x20register\x20for\x20\x22','11722zpDesq','.cache','5818108hTplJC','11068393eArdkP','default','5znvQaw','replace','9yEmGiD','stringify','{profile}','18020290fJxbXb','273bgJJEr','1381801soANYe','Global\x20cache\x20key\x20\x22'];a161_0x4112=function(){return _0x12ef8d;};return a161_0x4112();}export function getGlobalCachePath(_0x4850b3){return join(getGlobalCacheDir(),_0x4850b3);}function ensureGlobalCacheDir(){const _0x453a57=getGlobalCacheDir();!existsSync(_0x453a57)&&mkdirSync(_0x453a57,{'recursive':!![]});}function readCacheJson(_0x463399){const _0x5c2317=a161_0x253d,_0x430076=getGlobalCachePath(_0x463399);if(!existsSync(_0x430076))return undefined;try{const _0x46536c=readFileSync(_0x430076,_0x5c2317(0x109));return JSON['parse'](_0x46536c);}catch{return undefined;}}function writeCacheJson(_0x21f3f6,_0x4508f9){const _0x3aa280=a161_0x253d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x21f3f6),JSON[_0x3aa280(0x102)](_0x4508f9,null,0x2),_0x3aa280(0x109));}function readCacheText(_0x4dc255){const _0x4ae4dd=getGlobalCachePath(_0x4dc255);if(!existsSync(_0x4ae4dd))return undefined;try{return readFileSync(_0x4ae4dd,'utf-8');}catch{return undefined;}}function writeCacheText(_0x3b846b,_0x3fd1ae){const _0x8e212f=a161_0x253d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3b846b),_0x3fd1ae,_0x8e212f(0x109));}function clearCache(_0x33c9dd){const _0x3db52a=getGlobalCachePath(_0x33c9dd);if(existsSync(_0x3db52a))try{unlinkSync(_0x3db52a);}catch{}}function cacheExists(_0x295c69){return existsSync(getGlobalCachePath(_0x295c69));}export function createGlobalCache(_0x21d625,_0x2741a9){return registerGlobalCacheKey(_0x21d625,_0x2741a9),{'read':()=>readCacheJson(_0x21d625),'write':_0x142a8b=>writeCacheJson(_0x21d625,_0x142a8b),'clear':()=>clearCache(_0x21d625),'exists':()=>cacheExists(_0x21d625),'path':()=>getGlobalCachePath(_0x21d625)};}export function createGlobalTextCache(_0x115be6,_0x3f54ad){const _0x20bb16=a161_0x253d;return registerGlobalCacheKey(_0x115be6,_0x3f54ad),{'read':()=>readCacheText(_0x115be6)?.[_0x20bb16(0xf8)]()||undefined,'write':_0xd80e32=>writeCacheText(_0x115be6,_0xd80e32),'clear':()=>clearCache(_0x115be6),'exists':()=>cacheExists(_0x115be6),'path':()=>getGlobalCachePath(_0x115be6)};}export function createProfileCache(_0x1e8540,_0x138360){const _0x15d92d=_0x317fb2=>{const _0x160b0a=a161_0x253d,_0x36ca0e=_0x317fb2||_0x160b0a(0xfe);return _0x1e8540[_0x160b0a(0x100)](_0x160b0a(0x103),_0x36ca0e);};return{'read':_0x10dfdb=>{const _0x383716=_0x15d92d(_0x10dfdb);return registerGlobalCacheKey(_0x383716,_0x138360),readCacheJson(_0x383716);},'write':(_0x3f6b03,_0x15ca1f)=>{const _0x48c64b=_0x15d92d(_0x3f6b03);registerGlobalCacheKey(_0x48c64b,_0x138360),writeCacheJson(_0x48c64b,_0x15ca1f);},'clear':_0x4acd49=>{const _0x3c576d=_0x15d92d(_0x4acd49);clearCache(_0x3c576d);},'exists':_0x32972f=>{const _0x253096=_0x15d92d(_0x32972f);return cacheExists(_0x253096);},'path':_0x49c6f2=>{const _0x3c7375=_0x15d92d(_0x49c6f2);return getGlobalCachePath(_0x3c7375);}};}export function createOptionalProfileCache(_0x426fbb,_0x2acffe,_0x595187={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x595187,_0x5a11ec=_0x58adf8=>{return _0x58adf8?''+_0x426fbb+profileSeparator+_0x58adf8+suffix:''+_0x426fbb+suffix;};return{'read':_0x4f851e=>{const _0x33bfb2=_0x5a11ec(_0x4f851e);return registerGlobalCacheKey(_0x33bfb2,_0x2acffe),readCacheJson(_0x33bfb2);},'write':(_0x6d6dca,_0x178af9)=>{const _0x11343c=_0x5a11ec(_0x178af9);registerGlobalCacheKey(_0x11343c,_0x2acffe),writeCacheJson(_0x11343c,_0x6d6dca);},'clear':_0x57793f=>{const _0x4650ce=_0x5a11ec(_0x57793f);clearCache(_0x4650ce);},'exists':_0x42f47e=>{const _0x43e7f7=_0x5a11ec(_0x42f47e);return cacheExists(_0x43e7f7);},'path':_0x1ed972=>{const _0x9e174a=_0x5a11ec(_0x1ed972);return getGlobalCachePath(_0x9e174a);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
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
+ function a162_0x1a02(){const _0x3a3253=['7zuEzuE','utf-8','Invalid\x20JSON\x20string:\x20','106819hpgTMN','INTERNAL','3977130NaimGS','51678gSSbWC','File\x20not\x20found:\x20','NOT_FOUND','1407216tSDIgh','Failed\x20to\x20load\x20JSON:\x20','10TcFZCn','EACCES','1781739PQrrzd','PERMISSION_DENIED','message','ENOENT','code','\x27:\x20','INVALID_ARGUMENT','3190840jybbPZ','2750118QmrCIS'];a162_0x1a02=function(){return _0x3a3253;};return a162_0x1a02();}function a162_0x19e3(_0x334468,_0x53097a){_0x334468=_0x334468-0xcd;const _0x1a0242=a162_0x1a02();let _0x19e385=_0x1a0242[_0x334468];return _0x19e385;}(function(_0x3257c1,_0x3e6144){const _0x57d6bc=a162_0x19e3,_0x1f9bdb=_0x3257c1();while(!![]){try{const _0x279a48=-parseInt(_0x57d6bc(0xd1))/0x1*(parseInt(_0x57d6bc(0xd9))/0x2)+-parseInt(_0x57d6bc(0xd4))/0x3+parseInt(_0x57d6bc(0xd7))/0x4+parseInt(_0x57d6bc(0xd3))/0x5+-parseInt(_0x57d6bc(0xcd))/0x6*(-parseInt(_0x57d6bc(0xce))/0x7)+-parseInt(_0x57d6bc(0xe2))/0x8+-parseInt(_0x57d6bc(0xdb))/0x9;if(_0x279a48===_0x3e6144)break;else _0x1f9bdb['push'](_0x1f9bdb['shift']());}catch(_0x25a5bf){_0x1f9bdb['push'](_0x1f9bdb['shift']());}}}(a162_0x1a02,0x6fadc));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x69f6af,_0x51f1eb){const _0x5a906f=a162_0x19e3;try{if(_0x51f1eb){const _0x5b0034=await readFile(_0x69f6af,_0x5a906f(0xcf));try{return JSON['parse'](_0x5b0034);}catch(_0x59bd53){throw new SDKError(ErrorCode[_0x5a906f(0xe1)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x69f6af+_0x5a906f(0xe0)+(_0x59bd53 instanceof Error?_0x59bd53['message']:String(_0x59bd53)));}}else try{return JSON['parse'](_0x69f6af);}catch(_0x47f0f5){throw new SDKError(ErrorCode[_0x5a906f(0xe1)],_0x5a906f(0xd0)+(_0x47f0f5 instanceof Error?_0x47f0f5[_0x5a906f(0xdd)]:String(_0x47f0f5)));}}catch(_0x480519){if(_0x480519 instanceof SDKError)throw _0x480519;if(_0x480519 instanceof Error&&'code'in _0x480519){const _0x5a958b=_0x480519;if(_0x5a958b[_0x5a906f(0xdf)]===_0x5a906f(0xde))throw new SDKError(ErrorCode[_0x5a906f(0xd6)],_0x5a906f(0xd5)+_0x69f6af);else{if(_0x5a958b[_0x5a906f(0xdf)]===_0x5a906f(0xda))throw new SDKError(ErrorCode[_0x5a906f(0xdc)],'Permission\x20denied\x20reading\x20file:\x20'+_0x69f6af);}}throw new SDKError(ErrorCode[_0x5a906f(0xd2)],_0x5a906f(0xd8)+(_0x480519 instanceof Error?_0x480519[_0x5a906f(0xdd)]:String(_0x480519)));}}export async function loadJSONFromOptions(_0x17c7f4,_0x18b119){if(_0x17c7f4&&_0x18b119)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x17c7f4)return await loadJSON(_0x17c7f4,![]);if(_0x18b119)return await loadJSON(_0x18b119,!![]);return undefined;}
@@ -1 +1 @@
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
+ const a163_0x3a1067=a163_0x5869;(function(_0x1f554b,_0x1a2ad8){const _0x215b33=a163_0x5869,_0x2a3df6=_0x1f554b();while(!![]){try{const _0xb1f86a=-parseInt(_0x215b33(0x123))/0x1+parseInt(_0x215b33(0x116))/0x2*(-parseInt(_0x215b33(0x11e))/0x3)+-parseInt(_0x215b33(0x11b))/0x4+-parseInt(_0x215b33(0x112))/0x5*(parseInt(_0x215b33(0x124))/0x6)+parseInt(_0x215b33(0x122))/0x7*(-parseInt(_0x215b33(0x11a))/0x8)+-parseInt(_0x215b33(0x114))/0x9*(-parseInt(_0x215b33(0x117))/0xa)+parseInt(_0x215b33(0x110))/0xb;if(_0xb1f86a===_0x1a2ad8)break;else _0x2a3df6['push'](_0x2a3df6['shift']());}catch(_0x1d9cad){_0x2a3df6['push'](_0x2a3df6['shift']());}}}(a163_0x56a3,0x96055));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a163_0x3a1067(0x120),registry=new Map();export function registerCacheKey(_0x13e500,_0x50e6d6){const _0x152f6d=a163_0x3a1067,_0x312833=registry['get'](_0x13e500);if(_0x312833&&_0x312833!==_0x50e6d6)throw new Error(_0x152f6d(0x11d)+_0x13e500+_0x152f6d(0x125)+_0x312833+_0x152f6d(0x121)+_0x50e6d6+'\x22');registry['set'](_0x13e500,_0x50e6d6);}export function getCacheDir(){const _0x5d8f6d=a163_0x3a1067,_0x2423a8=process[_0x5d8f6d(0x111)](),_0x197c43=_0x2423a8===parse(_0x2423a8)[_0x5d8f6d(0x113)]?homedir():_0x2423a8;return join(_0x197c43,LOCAL_CACHE_DIR);}export function getCachePath(_0x205802){return join(getCacheDir(),_0x205802);}function ensureCacheDir(){const _0x20e612=getCacheDir();!existsSync(_0x20e612)&&mkdirSync(_0x20e612,{'recursive':!![]});}function readCacheJson(_0x235cdf){const _0x53c69b=a163_0x3a1067,_0x4044b2=getCachePath(_0x235cdf);if(!existsSync(_0x4044b2))return undefined;try{const _0x258e3a=readFileSync(_0x4044b2,_0x53c69b(0x115));return JSON[_0x53c69b(0x11f)](_0x258e3a);}catch{return undefined;}}function writeCacheJson(_0x54caf9,_0x518c40){const _0x1a1c1e=a163_0x3a1067;ensureCacheDir(),writeFileSync(getCachePath(_0x54caf9),JSON[_0x1a1c1e(0x119)](_0x518c40,null,0x2),_0x1a1c1e(0x115));}function a163_0x5869(_0x5afd5c,_0x4091c0){_0x5afd5c=_0x5afd5c-0x110;const _0x56a3a0=a163_0x56a3();let _0x586988=_0x56a3a0[_0x5afd5c];return _0x586988;}function readCacheText(_0x4861aa){const _0x1235a5=a163_0x3a1067,_0x25c507=getCachePath(_0x4861aa);if(!existsSync(_0x25c507))return undefined;try{return readFileSync(_0x25c507,_0x1235a5(0x115));}catch{return undefined;}}function writeCacheText(_0x2e20f5,_0x29def2){const _0xed3349=a163_0x3a1067;ensureCacheDir(),writeFileSync(getCachePath(_0x2e20f5),_0x29def2,_0xed3349(0x115));}function a163_0x56a3(){const _0x2fb934=['1870QQkHWG','1570mpLxii','trim','stringify','93344KAtbgU','1001960wOXgSL','clear','Cache\x20key\x20\x22','3153vHtCWK','parse','.cache/tdx','\x22,\x20cannot\x20register\x20for\x20\x22','7uDPJVU','635458MzlDtp','6qrCLwa','\x22\x20already\x20registered\x20by\x20\x22','28122237rmTHIC','cwd','2485710kbxkXn','root','24957RSQRyh','utf-8'];a163_0x56a3=function(){return _0x2fb934;};return a163_0x56a3();}function clearCache(_0x146d1f){const _0x54e4b9=getCachePath(_0x146d1f);if(existsSync(_0x54e4b9))try{unlinkSync(_0x54e4b9);}catch{}}function cacheExists(_0x3dd846){return existsSync(getCachePath(_0x3dd846));}export function createCache(_0x176b4b,_0x5302e4){return registerCacheKey(_0x176b4b,_0x5302e4),{'read':()=>readCacheJson(_0x176b4b),'write':_0x473355=>writeCacheJson(_0x176b4b,_0x473355),'clear':()=>clearCache(_0x176b4b),'exists':()=>cacheExists(_0x176b4b),'path':()=>getCachePath(_0x176b4b)};}export function createTextCache(_0x7d8f2e,_0x5680f2){const _0x3d34fc=a163_0x3a1067;return registerCacheKey(_0x7d8f2e,_0x5680f2),{'read':()=>readCacheText(_0x7d8f2e)?.[_0x3d34fc(0x118)]()||undefined,'write':_0x36cdef=>writeCacheText(_0x7d8f2e,_0x36cdef),'clear':()=>clearCache(_0x7d8f2e),'exists':()=>cacheExists(_0x7d8f2e),'path':()=>getCachePath(_0x7d8f2e)};}export function clearRegistry(){const _0x594541=a163_0x3a1067;registry[_0x594541(0x11c)]();}
@@ -1 +1 @@
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
+ const a164_0x1ff606=a164_0x4eb9;function a164_0x42b8(){const _0x54bc8c=['19806vptvTp','INFO','colors','format','Chalk','red','default','54ShAHez','998081UYFCUv','green','47260YurbdX','colorLevel','yellow','component','224036IbyRvq','1683330goQqjq','gray','365SZwDxn','message','40cDYKDV','level','DEBUG','15mhAxje','blue','449821bOxnJc','1100540whCWSX','chalk',']\x20[','WARN'];a164_0x42b8=function(){return _0x54bc8c;};return a164_0x42b8();}(function(_0x3aca5f,_0x5ec70b){const _0x30b9b5=a164_0x4eb9,_0x335504=_0x3aca5f();while(!![]){try{const _0x306ef4=parseInt(_0x30b9b5(0x1e4))/0x1+-parseInt(_0x30b9b5(0x1e5))/0x2+parseInt(_0x30b9b5(0x1ff))/0x3*(parseInt(_0x30b9b5(0x1f7))/0x4)+-parseInt(_0x30b9b5(0x1fa))/0x5*(parseInt(_0x30b9b5(0x1e9))/0x6)+parseInt(_0x30b9b5(0x1f1))/0x7*(parseInt(_0x30b9b5(0x1fc))/0x8)+-parseInt(_0x30b9b5(0x1f0))/0x9*(-parseInt(_0x30b9b5(0x1f3))/0xa)+-parseInt(_0x30b9b5(0x1f8))/0xb;if(_0x306ef4===_0x5ec70b)break;else _0x335504['push'](_0x335504['shift']());}catch(_0x102897){_0x335504['push'](_0x335504['shift']());}}}(a164_0x42b8,0x80a10));function a164_0x4eb9(_0xe5e425,_0x2723e2){_0xe5e425=_0xe5e425-0x1e3;const _0x42b825=a164_0x42b8();let _0x4eb998=_0x42b825[_0xe5e425];return _0x4eb998;}import a164_0x3d5381 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a164_0x3d5381,ChalkClass=chalkModule[a164_0x1ff606(0x1ed)]||chalkModule[a164_0x1ff606(0x1ef)]?.[a164_0x1ff606(0x1ed)];export class DefaultLogFormatter{[a164_0x1ff606(0x1eb)];[a164_0x1ff606(0x1e6)];constructor(_0x5d513d={}){const _0x5b98ce=a164_0x1ff606;this['colors']=_0x5d513d['colors']??![],this[_0x5b98ce(0x1e6)]=_0x5d513d[_0x5b98ce(0x1eb)]&&ChalkClass?new ChalkClass({'level':0x3}):a164_0x3d5381;}[a164_0x1ff606(0x1ec)](_0x50df6b){const _0x4a51e6=a164_0x1ff606,_0x557bcc=formatTimestamp(_0x50df6b['timestamp']),_0x4f7484=logLevelToString(_0x50df6b[_0x4a51e6(0x1fd)]);if(!this[_0x4a51e6(0x1eb)])return _0x557bcc+'\x20['+_0x4f7484+_0x4a51e6(0x1e7)+_0x50df6b['component']+']\x20'+_0x50df6b['message'];const _0x9378bd=this[_0x4a51e6(0x1e6)]['dim'](_0x557bcc),_0x4315ec=this['colorLevel'](_0x4f7484,_0x50df6b[_0x4a51e6(0x1fd)]),_0x12bc21=this['chalk'][_0x4a51e6(0x1e3)]('['+_0x50df6b[_0x4a51e6(0x1f6)]+']');return _0x9378bd+'\x20'+_0x4315ec+'\x20'+_0x12bc21+'\x20'+_0x50df6b[_0x4a51e6(0x1fb)];}[a164_0x1ff606(0x1f4)](_0x51e8ab,_0x310d0f){const _0x5eb4fb=a164_0x1ff606;switch(_0x310d0f){case LogLevel['TRACE']:return this[_0x5eb4fb(0x1e6)][_0x5eb4fb(0x1f9)]('['+_0x51e8ab+']');case LogLevel[_0x5eb4fb(0x1fe)]:return this[_0x5eb4fb(0x1e6)][_0x5eb4fb(0x1f2)]('['+_0x51e8ab+']');case LogLevel[_0x5eb4fb(0x1ea)]:return this['chalk']['cyan']('['+_0x51e8ab+']');case LogLevel[_0x5eb4fb(0x1e8)]:return this[_0x5eb4fb(0x1e6)][_0x5eb4fb(0x1f5)]('['+_0x51e8ab+']');case LogLevel['ERROR']:return this[_0x5eb4fb(0x1e6)][_0x5eb4fb(0x1ee)]('['+_0x51e8ab+']');default:return'['+_0x51e8ab+']';}}}
@@ -1 +1 @@
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
+ function a165_0x3424(_0x122717,_0x2e65eb){_0x122717=_0x122717-0x8f;var _0x45903d=a165_0x4590();var _0x342479=_0x45903d[_0x122717];return _0x342479;}(function(_0x38fedc,_0x2c142c){var _0x20b5f7=a165_0x3424,_0x4ad1fc=_0x38fedc();while(!![]){try{var _0x7da924=-parseInt(_0x20b5f7(0x91))/0x1+parseInt(_0x20b5f7(0x98))/0x2+-parseInt(_0x20b5f7(0x95))/0x3*(parseInt(_0x20b5f7(0x97))/0x4)+-parseInt(_0x20b5f7(0x94))/0x5*(-parseInt(_0x20b5f7(0x93))/0x6)+-parseInt(_0x20b5f7(0x8f))/0x7*(-parseInt(_0x20b5f7(0x96))/0x8)+-parseInt(_0x20b5f7(0x90))/0x9+parseInt(_0x20b5f7(0x92))/0xa;if(_0x7da924===_0x2c142c)break;else _0x4ad1fc['push'](_0x4ad1fc['shift']());}catch(_0x34e7b7){_0x4ad1fc['push'](_0x4ad1fc['shift']());}}}(a165_0x4590,0x2d04f));export{DefaultLogFormatter}from'./default-formatter.js';function a165_0x4590(){var _0x99ead=['8PqHAWy','64262ircRfB','619703kgJHUz','1516500nxtqYR','108503QRPPHb','4932730ahLCzG','6szrfnU','617135eQOZUL','413937DWoJnL','8munlIf'];a165_0x4590=function(){return _0x99ead;};return a165_0x4590();}
@@ -1 +1 @@
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
+ const a166_0x1725b0=a166_0x55c9;(function(_0x2af9bc,_0x30fcbe){const _0xf37f8e=a166_0x55c9,_0x27efaa=_0x2af9bc();while(!![]){try{const _0x4d4ae6=-parseInt(_0xf37f8e(0xf9))/0x1*(parseInt(_0xf37f8e(0xfa))/0x2)+parseInt(_0xf37f8e(0xf0))/0x3+parseInt(_0xf37f8e(0xf2))/0x4+-parseInt(_0xf37f8e(0xef))/0x5+-parseInt(_0xf37f8e(0xf8))/0x6+parseInt(_0xf37f8e(0xee))/0x7+parseInt(_0xf37f8e(0xfb))/0x8;if(_0x4d4ae6===_0x30fcbe)break;else _0x27efaa['push'](_0x27efaa['shift']());}catch(_0x4723e3){_0x27efaa['push'](_0x27efaa['shift']());}}}(a166_0x32dd,0x68ad5));import{LogLevel as a166_0xb7d292}from'../types.js';function a166_0x55c9(_0xc8cfbf,_0x493d67){_0xc8cfbf=_0xc8cfbf-0xec;const _0x32dd95=a166_0x32dd();let _0x55c9d9=_0x32dd95[_0xc8cfbf];return _0x55c9d9;}import{DefaultLogFormatter}from'../formatters/index.js';function a166_0x32dd(){const _0x27a765=['format','log','formatter','4964596SyQJOS','631655KYxWrT','93231bYANyF','WARN','3108964xPdmRZ','useStderr','error','level','minLevel','colors','4485810NZNLfL','1BkSxtp','1174206GBgEGm','2978240SQVRJO'];a166_0x32dd=function(){return _0x27a765;};return a166_0x32dd();}export class ConsoleHandler{[a166_0x1725b0(0xf6)];['useStderr'];[a166_0x1725b0(0xed)];constructor(_0x5d004c={}){const _0x35f034=a166_0x1725b0;this[_0x35f034(0xf6)]=_0x5d004c[_0x35f034(0xf6)]??a166_0xb7d292[_0x35f034(0xf1)],this['useStderr']=_0x5d004c['useStderr']??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x5d004c[_0x35f034(0xf7)]??!![]});}['handle'](_0x194cad){const _0x58efea=a166_0x1725b0;if(_0x194cad[_0x58efea(0xf5)]<this[_0x58efea(0xf6)])return;const _0x2fd9aa=this['formatter'][_0x58efea(0xfc)](_0x194cad);this[_0x58efea(0xf3)]&&_0x194cad[_0x58efea(0xf5)]>=a166_0xb7d292[_0x58efea(0xf1)]?console[_0x58efea(0xf4)](_0x2fd9aa):console[_0x58efea(0xec)](_0x2fd9aa);}}
@@ -1 +1 @@
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
+ const a167_0x512cab=a167_0x182b;(function(_0x134c25,_0x3f691c){const _0x15b21f=a167_0x182b,_0x735e73=_0x134c25();while(!![]){try{const _0x1f286=-parseInt(_0x15b21f(0x117))/0x1*(parseInt(_0x15b21f(0x110))/0x2)+parseInt(_0x15b21f(0x10d))/0x3*(-parseInt(_0x15b21f(0x11f))/0x4)+-parseInt(_0x15b21f(0x109))/0x5+parseInt(_0x15b21f(0x107))/0x6*(-parseInt(_0x15b21f(0x111))/0x7)+-parseInt(_0x15b21f(0x11a))/0x8+parseInt(_0x15b21f(0x11d))/0x9+parseInt(_0x15b21f(0x11e))/0xa;if(_0x1f286===_0x3f691c)break;else _0x735e73['push'](_0x735e73['shift']());}catch(_0x35e3eb){_0x735e73['push'](_0x735e73['shift']());}}}(a167_0x22be,0xa76af));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a167_0x182b(_0x549998,_0x2e4900){_0x549998=_0x549998-0x100;const _0x22beba=a167_0x22be();let _0x182b64=_0x22beba[_0x549998];return _0x182b64;}export class FileHandler{[a167_0x512cab(0x10f)];[a167_0x512cab(0x11c)];['logFileName'];[a167_0x512cab(0x114)];[a167_0x512cab(0x106)]=null;[a167_0x512cab(0x10c)];constructor(_0x1ef28a={}){const _0x2dad03=a167_0x512cab;this[_0x2dad03(0x10f)]=_0x1ef28a[_0x2dad03(0x112)]??join(getGlobalCacheDir(),_0x2dad03(0x119),'tdx.log'),this[_0x2dad03(0x11c)]=dirname(this[_0x2dad03(0x10f)]),this[_0x2dad03(0x116)]=basename(this['logPath']),this[_0x2dad03(0x114)]=this['logFileName'][_0x2dad03(0x113)](/\.log$/,''),this[_0x2dad03(0x10c)]=_0x1ef28a['rotate']??!![];}async[a167_0x512cab(0x101)](){const _0x5051f3=a167_0x512cab;try{await mkdir(this[_0x5051f3(0x11c)],{'recursive':!![]}),this[_0x5051f3(0x10c)]&&await this['rotateOldLogs'](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x5051f3(0x106)]['on']('error',_0x5f0d24=>{const _0x3e77ed=_0x5051f3;console[_0x3e77ed(0x10e)](_0x3e77ed(0x103)+this[_0x3e77ed(0x116)]+':',_0x5f0d24['message']);});}catch(_0x2727c6){console[_0x5051f3(0x10e)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x2727c6);}}[a167_0x512cab(0x102)](_0x390158){const _0x2601cc=a167_0x512cab;if(!this['logStream'])return;const _0x454429=Logger[_0x2601cc(0x10a)](_0x390158);this[_0x2601cc(0x106)]['write'](_0x454429+'\x0a');}async[a167_0x512cab(0x10b)](){return new Promise(_0x3a4ee2=>{const _0x18572f=a167_0x182b;this[_0x18572f(0x106)]?this[_0x18572f(0x106)][_0x18572f(0x100)](()=>{this['logStream']=null,_0x3a4ee2();}):_0x3a4ee2();});}['getLogPath'](){const _0x3021ae=a167_0x512cab;return this[_0x3021ae(0x10f)];}async[a167_0x512cab(0x105)](){const _0x488d30=a167_0x512cab;try{const _0x4dff7b=await readdir(this[_0x488d30(0x11c)]),_0x502bde=new Date()[_0x488d30(0x120)]()['split']('T')[0x0];if(_0x4dff7b['includes'](this['logFileName'])){const _0x1c9fd8=join(this[_0x488d30(0x11c)],this[_0x488d30(0x116)]),_0x3ce2af=await stat(_0x1c9fd8),_0x40f71e=new Date(_0x3ce2af[_0x488d30(0x108)])[_0x488d30(0x120)]()['split']('T')[0x0];if(_0x40f71e<_0x502bde){const _0x36b032=join(this[_0x488d30(0x11c)],this['logBaseName']+'-'+_0x40f71e+'.log');await rename(_0x1c9fd8,_0x36b032);}}const _0x114215=await readdir(this[_0x488d30(0x11c)]),_0x4c64ee=this[_0x488d30(0x114)][_0x488d30(0x113)](/[.*+?^${}()|[\]\\]/g,_0x488d30(0x115)),_0x1518bc=new RegExp('^'+_0x4c64ee+_0x488d30(0x118)),_0x3bd08c=_0x114215[_0x488d30(0x104)](_0x3903c2=>_0x1518bc['test'](_0x3903c2));for(const _0x3f845a of _0x3bd08c){const _0x26b4b7=join(this[_0x488d30(0x11c)],_0x3f845a),_0x31c050=join(this[_0x488d30(0x11c)],_0x3f845a+_0x488d30(0x11b));try{await pipeline(createReadStream(_0x26b4b7),createGzip(),createWriteStream(_0x31c050)),await unlink(_0x26b4b7);}catch(_0x1a710d){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0x3f845a+':',_0x1a710d);}}}catch{}}}function a167_0x22be(){const _0xd5cf00=['close','rotate','3AuWpyT','error','logPath','345034HlhhLY','518oWNgcR','filePath','replace','logBaseName','\x5c$&','logFileName','2XmmXUs','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logs','161944yWyJJI','.gz','logDir','2144421rtFZWZ','34114300UvyKus','3831292PtiHDW','toISOString','end','init','handle','Warning:\x20Error\x20writing\x20to\x20','filter','rotateOldLogs','logStream','108744euqbUK','mtime','1498400MBJKzm','format'];a167_0x22be=function(){return _0xd5cf00;};return a167_0x22be();}
@@ -1 +1 @@
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
+ function a168_0x4c66(_0x195ac9,_0x55564f){_0x195ac9=_0x195ac9-0x1f4;var _0x266307=a168_0x2663();var _0x4c66c6=_0x266307[_0x195ac9];return _0x4c66c6;}function a168_0x2663(){var _0x43610a=['2664QQJmea','5124343FUttbO','12394664dkivsF','1345570ZiTDWQ','11735flVhDk','135oNDRHA','157786alLqls','50940pyiLVl','87NOkoFW','6415956SYIhqm'];a168_0x2663=function(){return _0x43610a;};return a168_0x2663();}(function(_0xfe95ac,_0xa1f149){var _0x3f0d55=a168_0x4c66,_0x1bec0e=_0xfe95ac();while(!![]){try{var _0x2a3102=parseInt(_0x3f0d55(0x1f6))/0x1+-parseInt(_0x3f0d55(0x1f7))/0x2*(parseInt(_0x3f0d55(0x1f8))/0x3)+parseInt(_0x3f0d55(0x1fa))/0x4*(parseInt(_0x3f0d55(0x1f4))/0x5)+parseInt(_0x3f0d55(0x1f9))/0x6+-parseInt(_0x3f0d55(0x1fb))/0x7+parseInt(_0x3f0d55(0x1fc))/0x8+-parseInt(_0x3f0d55(0x1f5))/0x9*(parseInt(_0x3f0d55(0x1fd))/0xa);if(_0x2a3102===_0xa1f149)break;else _0x1bec0e['push'](_0x1bec0e['shift']());}catch(_0x15c0ae){_0x1bec0e['push'](_0x1bec0e['shift']());}}}(a168_0x2663,0xcfa51));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
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
+ function a169_0x238d(_0x4bd4bc,_0x2684c4){_0x4bd4bc=_0x4bd4bc-0x146;var _0xbb4775=a169_0xbb47();var _0x238daa=_0xbb4775[_0x4bd4bc];return _0x238daa;}var a169_0x37890c=a169_0x238d;(function(_0x12bee6,_0x35c03d){var _0x470d56=a169_0x238d,_0x4c3975=_0x12bee6();while(!![]){try{var _0x36b955=-parseInt(_0x470d56(0x146))/0x1+parseInt(_0x470d56(0x14a))/0x2*(parseInt(_0x470d56(0x147))/0x3)+parseInt(_0x470d56(0x14f))/0x4+parseInt(_0x470d56(0x148))/0x5*(-parseInt(_0x470d56(0x14c))/0x6)+-parseInt(_0x470d56(0x14e))/0x7*(-parseInt(_0x470d56(0x14b))/0x8)+-parseInt(_0x470d56(0x14d))/0x9+parseInt(_0x470d56(0x149))/0xa;if(_0x36b955===_0x35c03d)break;else _0x4c3975['push'](_0x4c3975['shift']());}catch(_0x1a033f){_0x4c3975['push'](_0x4c3975['shift']());}}}(a169_0xbb47,0xa44b8));export class NullHandler{[a169_0x37890c(0x150)](_0x38396e){}}function a169_0xbb47(){var _0x3a1b38=['handle','944098UuWnvu','3vZhgnL','18495MshIQA','5339450iKqBiY','1632916WCGzgn','264oVEvYi','1368wuGuzH','336798AhLfSn','222145DonKOr','400744SToSVQ'];a169_0xbb47=function(){return _0x3a1b38;};return a169_0xbb47();}
@@ -1 +1 @@
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
+ (function(_0x1f5dbb,_0x327295){var _0x214e88=a170_0x1d7e,_0x358d34=_0x1f5dbb();while(!![]){try{var _0x141f3a=-parseInt(_0x214e88(0xda))/0x1+-parseInt(_0x214e88(0xd6))/0x2+parseInt(_0x214e88(0xd3))/0x3*(parseInt(_0x214e88(0xd9))/0x4)+parseInt(_0x214e88(0xd5))/0x5+parseInt(_0x214e88(0xdb))/0x6+parseInt(_0x214e88(0xd7))/0x7*(-parseInt(_0x214e88(0xd4))/0x8)+-parseInt(_0x214e88(0xd8))/0x9*(-parseInt(_0x214e88(0xdc))/0xa);if(_0x141f3a===_0x327295)break;else _0x358d34['push'](_0x358d34['shift']());}catch(_0x4aef25){_0x358d34['push'](_0x358d34['shift']());}}}(a170_0x591a,0xcb8ac));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a170_0x1d7e(_0x2d31b9,_0x4f0452){_0x2d31b9=_0x2d31b9-0xd3;var _0x591a29=a170_0x591a();var _0x1d7e2a=_0x591a29[_0x2d31b9];return _0x1d7e2a;}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a170_0x591a(){var _0x21ad45=['720XtzPCo','3025065zdFHms','2063366XZAZpq','81823VeCWOW','5168511icqsKe','1976748aMRMjR','1017572qjoRTY','6677616AeQRjL','30YTQJxf','3dkzrQy'];a170_0x591a=function(){return _0x21ad45;};return a170_0x591a();}
@@ -1 +1 @@
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
+ const a171_0x2b4ea2=a171_0xe554;(function(_0x200e28,_0x26e60b){const _0x3bd4ef=a171_0xe554,_0x22f09b=_0x200e28();while(!![]){try{const _0xf7febf=-parseInt(_0x3bd4ef(0x1bf))/0x1*(parseInt(_0x3bd4ef(0x1bb))/0x2)+parseInt(_0x3bd4ef(0x1b2))/0x3+parseInt(_0x3bd4ef(0x1c8))/0x4+-parseInt(_0x3bd4ef(0x1b9))/0x5+parseInt(_0x3bd4ef(0x1c6))/0x6+-parseInt(_0x3bd4ef(0x1ae))/0x7*(parseInt(_0x3bd4ef(0x1c2))/0x8)+parseInt(_0x3bd4ef(0x1a8))/0x9;if(_0xf7febf===_0x26e60b)break;else _0x22f09b['push'](_0x22f09b['shift']());}catch(_0x283a0d){_0x22f09b['push'](_0x22f09b['shift']());}}}(a171_0x5eb4,0x6c768));import{LogLevel as a171_0x6b1400,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a171_0x6b1400['INFO'],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0xe12673){const _0x2e5386=a171_0xe554;if(typeof _0xe12673===_0x2e5386(0x1b5))return _0xe12673;if(_0xe12673 instanceof Error)return _0xe12673[_0x2e5386(0x19d)]||_0xe12673['name']+':\x20'+_0xe12673['message'];try{return JSON[_0x2e5386(0x1c4)](_0xe12673,(_0xceaf62,_0x2a1de0)=>{const _0x227cbd=_0x2e5386;if(_0x2a1de0 instanceof Error)return{'name':_0x2a1de0[_0x227cbd(0x1a6)],'message':_0x2a1de0['message'],'stack':_0x2a1de0[_0x227cbd(0x19d)],'cause':_0x2a1de0[_0x227cbd(0x199)]};return _0x2a1de0;});}catch{return String(_0xe12673);}}function a171_0xe554(_0x36e862,_0x412a81){_0x36e862=_0x36e862-0x195;const _0x5eb46a=a171_0x5eb4();let _0xe554e9=_0x5eb46a[_0x36e862];return _0xe554e9;}function a171_0x5eb4(){const _0x4dc7c9=['entries','handle','loggers','error','shutdown','defaultLevel','close','has','name','split','5917842pDLSix','set','dispatch','map','log','isInitialized','7zxzJML','length','setDefaultLevel','addHandler','35568GmtFhQ','handlers','slice','string','init','setLogLevel','INFO','101570QmMacR','message','40aytBxI','component','reset','pendingRecords','12788SujyvY','getEffectiveLevel','formatter','2595672CqkbbW','getFormatter','stringify','get','1359672JCIzfU','DEBUG','595164maDGgF','levelOverrides','join','format','trace','toISOString','debug','TRACE','shouldLog','push','clear','cause','function','info','initialized','stack'];a171_0x5eb4=function(){return _0x4dc7c9;};return a171_0x5eb4();}export class Logger{[a171_0x2b4ea2(0x1bc)];constructor(_0x18e066){const _0x5221c5=a171_0x2b4ea2;this[_0x5221c5(0x1bc)]=_0x18e066;}static['of'](_0x3d2983){const _0x3f6dd6=a171_0x2b4ea2,_0x3d3454=typeof _0x3d2983===_0x3f6dd6(0x1b5)?_0x3d2983:_0x3d2983['name'];let _0x6c0201=state['loggers']['get'](_0x3d3454);return!_0x6c0201&&(_0x6c0201=new Logger(_0x3d3454),state[_0x3f6dd6(0x1a0)][_0x3f6dd6(0x1a9)](_0x3d3454,_0x6c0201)),_0x6c0201;}static async[a171_0x2b4ea2(0x1b6)](_0x230f3a={}){const _0x2285db=a171_0x2b4ea2;state['defaultLevel']=_0x230f3a[_0x2285db(0x1a3)]??a171_0x6b1400[_0x2285db(0x1b8)],state[_0x2285db(0x1b3)]=_0x230f3a[_0x2285db(0x1b3)]??[],state[_0x2285db(0x1c1)]=_0x230f3a[_0x2285db(0x1c1)]??null,state[_0x2285db(0x1c9)]['clear']();if(_0x230f3a['levelOverrides'])for(const [_0x359f67,_0x57927f]of Object[_0x2285db(0x19e)](_0x230f3a['levelOverrides'])){state[_0x2285db(0x1c9)][_0x2285db(0x1a9)](_0x359f67,_0x57927f);}for(const _0x4d2b23 of state[_0x2285db(0x1b3)]){_0x4d2b23[_0x2285db(0x1b6)]&&await _0x4d2b23[_0x2285db(0x1b6)]();}state[_0x2285db(0x19c)]=!![];for(const _0x4c26e8 of state['pendingRecords']){Logger[_0x2285db(0x1aa)](_0x4c26e8);}state[_0x2285db(0x1be)]=[];}static[a171_0x2b4ea2(0x1b7)](_0x4f2ecb,_0x3f4373){const _0x52c2ba=a171_0x2b4ea2;state[_0x52c2ba(0x1c9)][_0x52c2ba(0x1a9)](_0x4f2ecb,_0x3f4373);}static[a171_0x2b4ea2(0x1b0)](_0x4b83d8){const _0x21e3e0=a171_0x2b4ea2;state[_0x21e3e0(0x1a3)]=_0x4b83d8;}static[a171_0x2b4ea2(0x1b1)](_0x36e3f7){const _0x24d048=a171_0x2b4ea2;state[_0x24d048(0x1b3)][_0x24d048(0x197)](_0x36e3f7),state[_0x24d048(0x19c)]&&_0x36e3f7['init']&&_0x36e3f7[_0x24d048(0x1b6)]();}static['clearHandlers'](){const _0x6ed37e=a171_0x2b4ea2;state[_0x6ed37e(0x1b3)]=[];}static async[a171_0x2b4ea2(0x1a2)](){const _0x86b655=a171_0x2b4ea2;for(const _0x134408 of state[_0x86b655(0x1b3)]){_0x134408['close']&&await _0x134408[_0x86b655(0x1a4)]();}state[_0x86b655(0x1b3)]=[],state['initialized']=![],state['loggers'][_0x86b655(0x198)](),state[_0x86b655(0x1be)]=[];}static[a171_0x2b4ea2(0x1bd)](){const _0x44bdcb=a171_0x2b4ea2;state[_0x44bdcb(0x19c)]=![],state[_0x44bdcb(0x1a3)]=a171_0x6b1400[_0x44bdcb(0x1b8)],state['levelOverrides'][_0x44bdcb(0x198)](),state[_0x44bdcb(0x1b3)]=[],state[_0x44bdcb(0x1c1)]=null,state[_0x44bdcb(0x1a0)][_0x44bdcb(0x198)](),state['pendingRecords']=[];}static[a171_0x2b4ea2(0x1ad)](){const _0x108360=a171_0x2b4ea2;return state[_0x108360(0x19c)];}static[a171_0x2b4ea2(0x1c0)](_0x178ebc){const _0x39e405=a171_0x2b4ea2;if(state[_0x39e405(0x1c9)][_0x39e405(0x1a5)](_0x178ebc))return state[_0x39e405(0x1c9)][_0x39e405(0x1c5)](_0x178ebc);const _0x5d0967=_0x178ebc[_0x39e405(0x1a7)]('.');for(let _0x55130b=_0x5d0967['length']-0x1;_0x55130b>0x0;_0x55130b--){const _0x5e2d57=_0x5d0967[_0x39e405(0x1b4)](0x0,_0x55130b)[_0x39e405(0x1ca)]('.');if(state['levelOverrides']['has'](_0x5e2d57))return state[_0x39e405(0x1c9)][_0x39e405(0x1c5)](_0x5e2d57);}return state[_0x39e405(0x1a3)];}[a171_0x2b4ea2(0x196)](_0x9d8a59){const _0xfed86b=a171_0x2b4ea2,_0x55c8ca=Logger[_0xfed86b(0x1c0)](this[_0xfed86b(0x1bc)]);return _0x9d8a59>=_0x55c8ca;}static[a171_0x2b4ea2(0x1aa)](_0x3ff476){const _0x269bf6=a171_0x2b4ea2;for(const _0x311dcd of state['handlers']){_0x311dcd[_0x269bf6(0x19f)](_0x3ff476);}}[a171_0x2b4ea2(0x1ac)](_0x5ab9cb,_0x9938bf){const _0x423eec=a171_0x2b4ea2;if(!this['shouldLog'](_0x5ab9cb))return;const _0x3e01f6=_0x9938bf['map'](_0x396e3c=>typeof _0x396e3c===_0x423eec(0x19a)?_0x396e3c():_0x396e3c),_0x2c00fc=_0x3e01f6[_0x423eec(0x1ab)](safeStringify)[_0x423eec(0x1ca)]('\x20'),_0x4e95fb={'timestamp':new Date(),'level':_0x5ab9cb,'component':this[_0x423eec(0x1bc)],'message':_0x2c00fc};if(!state[_0x423eec(0x19c)]){state[_0x423eec(0x1be)][_0x423eec(0x1af)]<MAX_PENDING_RECORDS&&state['pendingRecords'][_0x423eec(0x197)](_0x4e95fb);return;}Logger[_0x423eec(0x1aa)](_0x4e95fb);}[a171_0x2b4ea2(0x1cc)](..._0x5a91fb){const _0x14368=a171_0x2b4ea2;this[_0x14368(0x1ac)](a171_0x6b1400[_0x14368(0x195)],_0x5a91fb);}[a171_0x2b4ea2(0x1ce)](..._0x5411e8){const _0xa35862=a171_0x2b4ea2;this['log'](a171_0x6b1400[_0xa35862(0x1c7)],_0x5411e8);}[a171_0x2b4ea2(0x19b)](..._0xbcb973){const _0x85640=a171_0x2b4ea2;this['log'](a171_0x6b1400[_0x85640(0x1b8)],_0xbcb973);}['warn'](..._0x208798){const _0x2651bd=a171_0x2b4ea2;this[_0x2651bd(0x1ac)](a171_0x6b1400['WARN'],_0x208798);}[a171_0x2b4ea2(0x1a1)](..._0x39fc59){this['log'](a171_0x6b1400['ERROR'],_0x39fc59);}static[a171_0x2b4ea2(0x1c3)](){const _0x4e22e5=a171_0x2b4ea2;return state[_0x4e22e5(0x1c1)];}static[a171_0x2b4ea2(0x1cb)](_0x2d38de){const _0x33d919=a171_0x2b4ea2;if(state[_0x33d919(0x1c1)])return state[_0x33d919(0x1c1)]['format'](_0x2d38de);return _0x2d38de['timestamp'][_0x33d919(0x1cd)]()+'\x20['+logLevelToString(_0x2d38de['level'])+']\x20['+_0x2d38de['component']+']\x20'+_0x2d38de[_0x33d919(0x1ba)];}}
@@ -1 +1 @@
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
+ (function(_0x2aa545,_0x4eb431){const _0x3c0507=a172_0x1908,_0x8d8d4b=_0x2aa545();while(!![]){try{const _0x233540=parseInt(_0x3c0507(0xfe))/0x1*(parseInt(_0x3c0507(0x10c))/0x2)+parseInt(_0x3c0507(0xfd))/0x3*(parseInt(_0x3c0507(0x114))/0x4)+-parseInt(_0x3c0507(0xfc))/0x5+parseInt(_0x3c0507(0xff))/0x6*(parseInt(_0x3c0507(0x109))/0x7)+parseInt(_0x3c0507(0xfa))/0x8+-parseInt(_0x3c0507(0x112))/0x9+parseInt(_0x3c0507(0x119))/0xa;if(_0x233540===_0x4eb431)break;else _0x8d8d4b['push'](_0x8d8d4b['shift']());}catch(_0x54ea09){_0x8d8d4b['push'](_0x8d8d4b['shift']());}}}(a172_0x1d14,0x9d2c8));export var LogLevel;function a172_0x1d14(){const _0x5a83fb=['toString','4XFRUAk','getMinutes','toUpperCase','warn','getSeconds','floor','10432395jVfzAK','ERROR','164hhRJco','padStart','WARN','getMonth','getTimezoneOffset','3857730VmmDjR','389248xRilwW','TRACE','1814055LCTlsq','24159kuGUPS','486992dqQpJY','6xhBiOL','getFullYear','getHours','getMilliseconds','INFO','debug','error','info','WARNING','DEBUG','2990148MvksTl','abs'];a172_0x1d14=function(){return _0x5a83fb;};return a172_0x1d14();}(function(_0x4c1a73){const _0x504df3=a172_0x1908;_0x4c1a73[_0x4c1a73[_0x504df3(0xfb)]=-0x2]=_0x504df3(0xfb),_0x4c1a73[_0x4c1a73['DEBUG']=-0x1]=_0x504df3(0x108),_0x4c1a73[_0x4c1a73[_0x504df3(0x103)]=0x0]=_0x504df3(0x103),_0x4c1a73[_0x4c1a73[_0x504df3(0x116)]=0x1]=_0x504df3(0x116),_0x4c1a73[_0x4c1a73[_0x504df3(0x113)]=0x2]=_0x504df3(0x113);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x2aa65b){const _0xef92b8=a172_0x1908;switch(_0x2aa65b[_0xef92b8(0x10e)]()){case _0xef92b8(0xfb):return LogLevel[_0xef92b8(0xfb)];case _0xef92b8(0x108):return LogLevel[_0xef92b8(0x108)];case _0xef92b8(0x103):return LogLevel[_0xef92b8(0x103)];case _0xef92b8(0x116):case _0xef92b8(0x107):return LogLevel['WARN'];case'ERROR':return LogLevel['ERROR'];default:return LogLevel[_0xef92b8(0x103)];}}function a172_0x1908(_0x1de32d,_0x3a2d98){_0x1de32d=_0x1de32d-0xfa;const _0x1d14d2=a172_0x1d14();let _0x1908ad=_0x1d14d2[_0x1de32d];return _0x1908ad;}export function logLevelToString(_0xd72688){const _0x35082d=a172_0x1908;switch(_0xd72688){case LogLevel[_0x35082d(0xfb)]:return'trace';case LogLevel['DEBUG']:return _0x35082d(0x104);case LogLevel[_0x35082d(0x103)]:return _0x35082d(0x106);case LogLevel[_0x35082d(0x116)]:return _0x35082d(0x10f);case LogLevel[_0x35082d(0x113)]:return _0x35082d(0x105);default:return _0x35082d(0x106);}}export function formatTimestamp(_0x5becbf){const _0x5b96ef=a172_0x1908,_0x21472a=_0x5becbf[_0x5b96ef(0x100)](),_0x449cdf=(_0x5becbf[_0x5b96ef(0x117)]()+0x1)[_0x5b96ef(0x10b)]()[_0x5b96ef(0x115)](0x2,'0'),_0x4e4d27=_0x5becbf['getDate']()[_0x5b96ef(0x10b)]()['padStart'](0x2,'0'),_0x5e7c58=_0x5becbf[_0x5b96ef(0x101)]()[_0x5b96ef(0x10b)]()[_0x5b96ef(0x115)](0x2,'0'),_0x5b1f3b=_0x5becbf[_0x5b96ef(0x10d)]()['toString']()[_0x5b96ef(0x115)](0x2,'0'),_0x59bae5=_0x5becbf[_0x5b96ef(0x110)]()[_0x5b96ef(0x10b)]()['padStart'](0x2,'0'),_0x372669=_0x5becbf[_0x5b96ef(0x102)]()[_0x5b96ef(0x10b)]()[_0x5b96ef(0x115)](0x3,'0'),_0x57f4a1=-_0x5becbf[_0x5b96ef(0x118)](),_0x50bdba=Math[_0x5b96ef(0x111)](Math['abs'](_0x57f4a1)/0x3c),_0x4b79cd=Math[_0x5b96ef(0x10a)](_0x57f4a1)%0x3c,_0x13a9b0=_0x57f4a1>=0x0?'+':'-',_0x29a3d3=''+_0x13a9b0+_0x50bdba[_0x5b96ef(0x10b)]()['padStart'](0x2,'0')+_0x4b79cd[_0x5b96ef(0x10b)]()[_0x5b96ef(0x115)](0x2,'0');return _0x21472a+'-'+_0x449cdf+'-'+_0x4e4d27+'\x20'+_0x5e7c58+':'+_0x5b1f3b+':'+_0x59bae5+'.'+_0x372669+_0x29a3d3;}
@@ -1 +1 @@
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
+ function a173_0x683c(_0x1867f0,_0x3cfdef){_0x1867f0=_0x1867f0-0x162;const _0x433241=a173_0x4332();let _0x683c4f=_0x433241[_0x1867f0];return _0x683c4f;}function a173_0x4332(){const _0x10eb29=['232LRIvlC','.\x20Must\x20be\x20a\x20positive\x20integer.','isInteger','4670412oGGBAy','100odQRFC','8952750gvsEQh','3559203qcGtyf','422534puqfgq','.\x20Must\x20be\x20an\x20integer.','Invalid\x20limit\x20value:\x20','26254tthpqe','3030910xKOzXP','Invalid\x20timeout\x20value:\x20','6428876AmNUoV'];a173_0x4332=function(){return _0x10eb29;};return a173_0x4332();}(function(_0xce0ef9,_0x52a689){const _0x4fb43d=a173_0x683c,_0x3be099=_0xce0ef9();while(!![]){try{const _0x12ccb5=-parseInt(_0x4fb43d(0x164))/0x1*(parseInt(_0x4fb43d(0x16a))/0x2)+-parseInt(_0x4fb43d(0x163))/0x3+parseInt(_0x4fb43d(0x16d))/0x4+-parseInt(_0x4fb43d(0x16b))/0x5+parseInt(_0x4fb43d(0x165))/0x6+parseInt(_0x4fb43d(0x167))/0x7*(parseInt(_0x4fb43d(0x16e))/0x8)+-parseInt(_0x4fb43d(0x166))/0x9;if(_0x12ccb5===_0x52a689)break;else _0x3be099['push'](_0x3be099['shift']());}catch(_0x361a40){_0x3be099['push'](_0x3be099['shift']());}}}(a173_0x4332,0xeef01));export function validateLimitOption(_0x55cd9e){const _0x21f6de=a173_0x683c;if(!Number[_0x21f6de(0x162)](_0x55cd9e))return{'isValid':![],'error':_0x21f6de(0x169)+_0x55cd9e+_0x21f6de(0x168)};if(_0x55cd9e<=0x0)return{'isValid':![],'error':_0x21f6de(0x169)+_0x55cd9e+_0x21f6de(0x16f)};return{'isValid':!![],'value':_0x55cd9e};}export function validateTimeoutOption(_0x364485,_0x4fdcf7=0x1e){const _0x42b3b9=a173_0x683c;if(_0x364485===undefined)return{'isValid':!![],'value':_0x4fdcf7};const _0x4a2a8a=typeof _0x364485==='number'?_0x364485:parseFloat(_0x364485);if(isNaN(_0x4a2a8a))return{'isValid':![],'error':_0x42b3b9(0x16c)+_0x364485+'.\x20Must\x20be\x20a\x20number.'};if(_0x4a2a8a<=0x0)return{'isValid':![],'error':_0x42b3b9(0x16c)+_0x4a2a8a+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x4a2a8a};}
@@ -1 +1 @@
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
+ const a174_0x59aabf=a174_0x146c;(function(_0x2b8b11,_0xbb1ad4){const _0x4672f2=a174_0x146c,_0x3f67e5=_0x2b8b11();while(!![]){try{const _0x44695f=-parseInt(_0x4672f2(0x209))/0x1+parseInt(_0x4672f2(0x1ed))/0x2+-parseInt(_0x4672f2(0x21e))/0x3+-parseInt(_0x4672f2(0x206))/0x4+parseInt(_0x4672f2(0x20d))/0x5*(parseInt(_0x4672f2(0x1fe))/0x6)+-parseInt(_0x4672f2(0x210))/0x7*(-parseInt(_0x4672f2(0x205))/0x8)+-parseInt(_0x4672f2(0x1ee))/0x9;if(_0x44695f===_0xbb1ad4)break;else _0x3f67e5['push'](_0x3f67e5['shift']());}catch(_0x117191){_0x3f67e5['push'](_0x3f67e5['shift']());}}}(a174_0x480a,0x56bc6));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash','zsh','sh','fish','ksh',a174_0x59aabf(0x207),a174_0x59aabf(0x1ea),a174_0x59aabf(0x1eb),'pwsh',a174_0x59aabf(0x200),'nu',a174_0x59aabf(0x215),a174_0x59aabf(0x1f9),a174_0x59aabf(0x20f)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a174_0x59aabf(0x1f2),a174_0x59aabf(0x20a),'cursor',a174_0x59aabf(0x220),a174_0x59aabf(0x203)]);function getProcessInfoWindows(_0x2f1c76){const _0x4d8a69=a174_0x59aabf;try{if(!Number['isInteger'](_0x2f1c76)||_0x2f1c76<=0x0)return null;const _0x23d95b=_0x4d8a69(0x1f7)+_0x2f1c76+_0x4d8a69(0x218),_0x277953=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x23d95b+'\x22',{'encoding':_0x4d8a69(0x213),'windowsHide':!![],'stdio':[_0x4d8a69(0x21b),'pipe',_0x4d8a69(0x21b)]})[_0x4d8a69(0x216)]();if(!_0x277953)return null;const [_0x310bfc,..._0x2206ed]=_0x277953[_0x4d8a69(0x1fd)](','),_0xd82d17=parseInt(_0x310bfc,0xa),_0x2e7e99=_0x2206ed[_0x4d8a69(0x1e8)](',')[_0x4d8a69(0x216)]();if(isNaN(_0xd82d17)||!_0x2e7e99)return null;return{'pid':_0x2f1c76,'ppid':_0xd82d17,'comm':_0x2e7e99[_0x4d8a69(0x1ef)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x3ed6e6){const _0x1804e9=a174_0x59aabf;try{const _0x375eb1=0x400000;if(!Number['isInteger'](_0x3ed6e6)||_0x3ed6e6<=0x0||_0x3ed6e6>_0x375eb1)return null;const _0x798863=execSync('ps\x20-p\x20'+_0x3ed6e6+'\x20-o\x20ppid=,comm=',{'encoding':_0x1804e9(0x213),'stdio':_0x1804e9(0x21b)})[_0x1804e9(0x216)](),[_0x2e0e5f,..._0x27505e]=_0x798863[_0x1804e9(0x1fd)](/\s+/),_0x16cea3=parseInt(_0x2e0e5f,0xa),_0x47ae9f=_0x27505e[_0x1804e9(0x1e8)]('\x20');if(isNaN(_0x16cea3))return null;return{'pid':_0x3ed6e6,'ppid':_0x16cea3,'comm':_0x47ae9f};}catch{return null;}}function getProcessInfo(_0x5e7259){const _0x342a50=a174_0x59aabf;if(process[_0x342a50(0x202)]===_0x342a50(0x20c))return getProcessInfoWindows(_0x5e7259);return getProcessInfoPosix(_0x5e7259);}function getBasename(_0x2acced){const _0x148091=a174_0x59aabf;return _0x2acced[_0x148091(0x1ef)](/^-/,'')[_0x148091(0x1fd)]('/')[_0x148091(0x214)]()?.[_0x148091(0x1f3)]()||'';}function isShell(_0x5b2bcc){const _0x22fb90=a174_0x59aabf;return SHELL_NAMES[_0x22fb90(0x21d)](getBasename(_0x5b2bcc));}function isEphemeralShellSpawner(_0x252d67){const _0x38208e=a174_0x59aabf;return EPHEMERAL_SHELL_SPAWNERS[_0x38208e(0x21d)](getBasename(_0x252d67));}function a174_0x480a(){const _0x4e57c0=['6GGHyZP','pid','powershell','stderr','platform','treasure\x20studio','href','4708776NzNvMi','413048tDEvKB','tcsh','kill','360146hOBcFi','code','where.exe','win32','3309665jNbeUt','xdg-open','xonsh','7QbUkqF','ppid','https:','utf-8','pop','ion','trim','start','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','darwin','test','pipe','data','has','1503618iyUtNw','which','electron','join','stdout','csh','dash','Invalid\x20URL:\x20','404928HVgXRT','1197990Ivbmbd','replace','cmd.exe','open','claude','toLowerCase','Unsupported\x20protocol:\x20','exit','unref','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','comm','elvish','isInteger','error','protocol','split'];a174_0x480a=function(){return _0x4e57c0;};return a174_0x480a();}let cachedShellPID;function findShellPID(){const _0x156c9d=a174_0x59aabf;if(process[_0x156c9d(0x211)]===undefined)return process[_0x156c9d(0x1ff)];let _0x58117f=process[_0x156c9d(0x211)];const _0x247ce5=0xa;let _0x38f7f2=0x0;while(_0x38f7f2<_0x247ce5){const _0x38363a=getProcessInfo(_0x58117f);if(!_0x38363a)break;if(isShell(_0x38363a[_0x156c9d(0x1f8)])){const _0x56a7b6=getProcessInfo(_0x38363a['ppid']);if(_0x56a7b6&&isEphemeralShellSpawner(_0x56a7b6[_0x156c9d(0x1f8)])){_0x58117f=_0x38363a[_0x156c9d(0x211)],_0x38f7f2++;continue;}return _0x38363a[_0x156c9d(0x1ff)];}if(_0x38363a[_0x156c9d(0x211)]===0x0||_0x38363a[_0x156c9d(0x211)]===0x1){if(isShell(_0x38363a[_0x156c9d(0x1f8)]))return _0x38363a[_0x156c9d(0x1ff)];break;}_0x58117f=_0x38363a['ppid'],_0x38f7f2++;}return process[_0x156c9d(0x211)]!==undefined?process[_0x156c9d(0x211)]:process[_0x156c9d(0x1ff)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0xfe9d88){const _0x309de9=a174_0x59aabf;if(!Number[_0x309de9(0x1fa)](_0xfe9d88)||_0xfe9d88<=0x0)return![];try{return process[_0x309de9(0x208)](_0xfe9d88,0x0),!![];}catch{return![];}}export function openBrowser(_0x4b02f9){const _0x4a9b7d=a174_0x59aabf;let _0x1a88ff;try{_0x1a88ff=new URL(_0x4b02f9);}catch{throw new Error(_0x4a9b7d(0x1ec)+_0x4b02f9);}if(_0x1a88ff[_0x4a9b7d(0x1fc)]!=='http:'&&_0x1a88ff['protocol']!==_0x4a9b7d(0x212))throw new Error(_0x4a9b7d(0x1f4)+_0x1a88ff[_0x4a9b7d(0x1fc)]);const _0x53abf6=_0x1a88ff[_0x4a9b7d(0x204)],_0x5381d0=process['platform'];if(_0x5381d0===_0x4a9b7d(0x20c))spawn(_0x4a9b7d(0x1f0),['/c',_0x4a9b7d(0x217),'',_0x53abf6],{'detached':!![],'stdio':'ignore'})[_0x4a9b7d(0x1f6)]();else{const _0x544b94=_0x5381d0===_0x4a9b7d(0x219)?_0x4a9b7d(0x1f1):_0x4a9b7d(0x20e);spawn(_0x544b94,[_0x53abf6],{'detached':!![],'stdio':'ignore'})[_0x4a9b7d(0x1f6)]();}}export function isWindows(){const _0x21023d=a174_0x59aabf;return process[_0x21023d(0x202)]==='win32';}function a174_0x146c(_0x46d33b,_0xe37035){_0x46d33b=_0x46d33b-0x1e8;const _0x480a12=a174_0x480a();let _0x146ce5=_0x480a12[_0x46d33b];return _0x146ce5;}export function getCrossSpawnOptions(_0x52760d){return{..._0x52760d??{},'shell':isWindows()};}export function escapeWindowsArg(_0x3db1e5){const _0x3989c8=a174_0x59aabf;if(!/[ \t"&|<>^%!`\r\n]/[_0x3989c8(0x21a)](_0x3db1e5))return _0x3db1e5;const _0x33be9d=_0x3db1e5[_0x3989c8(0x1ef)](/"/g,'\x22\x22');return'\x22'+_0x33be9d+'\x22';}export function crossSpawn(_0x3c9f40,_0x54c2b3,_0x5548c0){const _0x3fdba2=a174_0x59aabf;if(isWindows()){const _0x122f7e=escapeWindowsArg(_0x3c9f40),_0x27d3ee=_0x54c2b3['map'](escapeWindowsArg),_0x1cb0c1=[_0x122f7e,..._0x27d3ee][_0x3fdba2(0x1e8)]('\x20');return spawn(_0x1cb0c1,[],{..._0x5548c0,'shell':!![]});}return spawn(_0x3c9f40,_0x54c2b3,{..._0x5548c0,'shell':![]});}export function gracefulExit(_0x2c1259=0x0){const _0x3ace5e=a174_0x59aabf;isWindows()?setImmediate(()=>process[_0x3ace5e(0x1f5)](_0x2c1259)):process[_0x3ace5e(0x1f5)](_0x2c1259);}export function findExecutable(_0x1ab9ab,_0x51b694=0x1388){return new Promise(_0x40ab6e=>{const _0x26cc78=a174_0x146c,_0x5cf735=isWindows()?_0x26cc78(0x20b):_0x26cc78(0x21f);let _0x3ae094=![];const _0x28350d=crossSpawn(_0x5cf735,[_0x1ab9ab],{'stdio':_0x26cc78(0x21b),'shell':isWindows()}),_0x55312d=setTimeout(()=>{!_0x3ae094&&(_0x3ae094=!![],_0x28350d['kill'](),_0x40ab6e(null));},_0x51b694);let _0x497895='';_0x28350d[_0x26cc78(0x1e9)]?.['on'](_0x26cc78(0x21c),_0x233160=>{_0x497895+=_0x233160['toString']();}),_0x28350d[_0x26cc78(0x201)]?.['on']('data',()=>{}),_0x28350d['on'](_0x26cc78(0x1f5),_0x4c0569=>{const _0x422901=_0x26cc78;if(_0x3ae094)return;_0x3ae094=!![],clearTimeout(_0x55312d);if(_0x4c0569===0x0&&_0x497895[_0x422901(0x216)]()){const _0x2f30bc=_0x497895['trim']()[_0x422901(0x1fd)](/\r?\n/)[0x0];_0x40ab6e(_0x2f30bc);}else _0x40ab6e(null);}),_0x28350d['on'](_0x26cc78(0x1fb),()=>{if(_0x3ae094)return;_0x3ae094=!![],clearTimeout(_0x55312d),_0x40ab6e(null);});});}
@@ -1 +1 @@
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
+ (function(_0xa6db12,_0x3dfc97){const _0x10f166=a175_0x8441,_0x51bad7=_0xa6db12();while(!![]){try{const _0x1b2aea=-parseInt(_0x10f166(0x1d5))/0x1*(-parseInt(_0x10f166(0x1c2))/0x2)+parseInt(_0x10f166(0x1d2))/0x3+-parseInt(_0x10f166(0x1cb))/0x4*(parseInt(_0x10f166(0x1c6))/0x5)+-parseInt(_0x10f166(0x1c3))/0x6+parseInt(_0x10f166(0x1c5))/0x7+parseInt(_0x10f166(0x1cd))/0x8+-parseInt(_0x10f166(0x1be))/0x9;if(_0x1b2aea===_0x3dfc97)break;else _0x51bad7['push'](_0x51bad7['shift']());}catch(_0x30656b){_0x51bad7['push'](_0x51bad7['shift']());}}}(a175_0x3255,0x1beb7));import*as a175_0x2d74b8 from'readline';export function isInteractive(){const _0x52b2f7=a175_0x8441;return process[_0x52b2f7(0x1c4)][_0x52b2f7(0x1c8)]===!![];}function a175_0x8441(_0x5b9f8c,_0x42566a){_0x5b9f8c=_0x5b9f8c-0x1be;const _0x325550=a175_0x3255();let _0x844106=_0x325550[_0x5b9f8c];return _0x844106;}export async function confirm(_0x2d2166){const _0x2edd7b=a175_0x8441,_0x4f6a5c=a175_0x2d74b8[_0x2edd7b(0x1cc)]({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x380866=>{const _0x7d8a9e=_0x2edd7b;_0x4f6a5c[_0x7d8a9e(0x1cf)](_0x2d2166+_0x7d8a9e(0x1c1),_0xb66c52=>{const _0x144be1=_0x7d8a9e;_0x4f6a5c[_0x144be1(0x1d3)](),_0x380866(_0xb66c52[_0x144be1(0x1d7)]()==='y'||_0xb66c52[_0x144be1(0x1d7)]()===_0x144be1(0x1d4));});});}export async function confirmKey(_0x20a47d){const _0x5ec0ea=a175_0x8441;if(!process[_0x5ec0ea(0x1c4)][_0x5ec0ea(0x1c8)])return![];return process[_0x5ec0ea(0x1bf)][_0x5ec0ea(0x1d8)](_0x20a47d+_0x5ec0ea(0x1d6)),new Promise(_0x5f2d75=>{const _0x1b1250=_0x5ec0ea,_0x324d7e=process[_0x1b1250(0x1c4)];_0x324d7e[_0x1b1250(0x1c9)](!![]),_0x324d7e[_0x1b1250(0x1d0)](),_0x324d7e[_0x1b1250(0x1c0)](_0x1b1250(0x1ce));const _0xb2c5b4=_0x4dad3e=>{const _0x39e545=_0x1b1250;_0x324d7e[_0x39e545(0x1c9)](![]),_0x324d7e[_0x39e545(0x1ca)](),_0x324d7e[_0x39e545(0x1c7)](_0x39e545(0x1d1),_0xb2c5b4);if(_0x4dad3e==='\x1b'){process[_0x39e545(0x1bf)]['write']('\x0a'),_0x5f2d75(![]);return;}_0x4dad3e==='\x03'&&(process[_0x39e545(0x1bf)]['write']('\x0a'),process['exit'](0x82));if(_0x4dad3e['toLowerCase']()==='y'){process['stderr'][_0x39e545(0x1d8)]('y\x0a'),_0x5f2d75(!![]);return;}process[_0x39e545(0x1bf)][_0x39e545(0x1d8)]('\x0a'),_0x5f2d75(![]);};_0x324d7e['on']('data',_0xb2c5b4);});}function a175_0x3255(){const _0x14ae36=['stderr','setEncoding','\x20(y/N):\x20','44SRoCny','234912jVWqZu','stdin','926604HIgovV','10ykDCqm','removeListener','isTTY','setRawMode','pause','391808XNXNzf','createInterface','1757992EABmFd','utf8','question','resume','data','277173uZDAhD','close','yes','611bbQpuG','\x20[y/N]\x20','toLowerCase','write','976851TdagZJ'];a175_0x3255=function(){return _0x14ae36;};return a175_0x3255();}
@@ -1 +1 @@
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
+ (function(_0x3bd989,_0x364132){const _0x3442e4=a176_0x142a,_0x3735f3=_0x3bd989();while(!![]){try{const _0x476bdd=parseInt(_0x3442e4(0x165))/0x1+parseInt(_0x3442e4(0x15c))/0x2+parseInt(_0x3442e4(0x154))/0x3+parseInt(_0x3442e4(0x156))/0x4*(-parseInt(_0x3442e4(0x15f))/0x5)+-parseInt(_0x3442e4(0x169))/0x6+parseInt(_0x3442e4(0x161))/0x7*(-parseInt(_0x3442e4(0x163))/0x8)+-parseInt(_0x3442e4(0x16d))/0x9*(-parseInt(_0x3442e4(0x160))/0xa);if(_0x476bdd===_0x364132)break;else _0x3735f3['push'](_0x3735f3['shift']());}catch(_0x3f3a68){_0x3735f3['push'](_0x3735f3['shift']());}}}(a176_0x397e,0xc4e1e));function a176_0x397e(){const _0xa3f1cc=['intervalFactory','floor','toFixed','697142GYHfBY','isSpinning','trim','46635hDTSza','10sGgFdx','8078119qbCmrx','text','8dVCUgB','Processing','528531tiqriI','stop','...','replace','8695062ICMihd','extra','stderr','now','35275167jvYmpj','start','clock','260175pzvtEt','isTTY','632gpqIIs','jobId','phase'];a176_0x397e=function(){return _0xa3f1cc;};return a176_0x397e();}import a176_0x2acc32 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x2f8cfc,_0x4bc50d={}){const _0x26f67a=a176_0x142a,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x4bc50d;return a176_0x2acc32({'text':_0x2f8cfc,'color':'cyan','stream':process[_0x26f67a(0x16b)],'isEnabled':forceEnabled||process[_0x26f67a(0x16b)][_0x26f67a(0x155)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}function a176_0x142a(_0x476dd9,_0x3e0d0e){_0x476dd9=_0x476dd9-0x152;const _0x397e4f=a176_0x397e();let _0x142a3c=_0x397e4f[_0x476dd9];return _0x142a3c;}export async function withSpinner(_0x1aab80,_0x5f3c39,_0x5a597b={}){const _0x7088a2=a176_0x142a,_0x39698b=_0x5a597b[_0x7088a2(0x153)]??(()=>Date[_0x7088a2(0x16c)]()),_0x41182d=createCommandSpinner(_0x1aab80,_0x5a597b);_0x41182d[_0x7088a2(0x152)]();const _0x5594ab=_0x39698b();try{const _0x3a231f=await _0x5f3c39(),_0x119ed0=_0x39698b()-_0x5594ab;return _0x41182d[_0x7088a2(0x166)](),{'data':_0x3a231f,'elapsedMs':_0x119ed0};}catch(_0x5603f8){_0x41182d[_0x7088a2(0x166)]();throw _0x5603f8;}}export async function withProgressSpinner(_0x165490,_0xe5374c,_0x3b05a7={}){const _0x5f5940=a176_0x142a,_0xa68697=_0x3b05a7[_0x5f5940(0x153)]??(()=>Date[_0x5f5940(0x16c)]()),_0x3c8b6a=_0x3b05a7[_0x5f5940(0x159)]??setInterval,_0x4ab5e9=createCommandSpinner(_0x165490,_0x3b05a7);_0x4ab5e9[_0x5f5940(0x152)]();const _0x5c29f4=_0xa68697(),_0x4fe037=_0x165490[_0x5f5940(0x168)](_0x5f5940(0x167),'')[_0x5f5940(0x15e)]()||_0x5f5940(0x164),_0x56a05a={};let _0xcb64fd=_0x165490;const _0x191bdc=()=>{const _0x33cd64=_0x5f5940;if(!_0x4ab5e9[_0x33cd64(0x15d)])return;const _0xbcbb13=_0xa68697()-_0x5c29f4,_0x3a083d=formatElapsed(_0xbcbb13),_0x4ff940=_0x56a05a[_0x33cd64(0x158)]?.['trim']()||_0x4fe037,_0x81a2e4=_0x56a05a[_0x33cd64(0x157)]?'\x20[Job\x20ID:\x20'+_0x56a05a[_0x33cd64(0x157)]+']':'',_0x44876e=_0x56a05a[_0x33cd64(0x16a)]?'\x20'+_0x56a05a[_0x33cd64(0x16a)]:'',_0x157f63=_0x4ff940+'\x20'+_0x3a083d+_0x44876e+_0x81a2e4;_0x157f63!==_0xcb64fd&&_0x157f63['trim']()&&(_0x4ab5e9['text']=_0x157f63,_0xcb64fd=_0x157f63);},_0x166759=_0x3c8b6a(()=>{_0x191bdc();},0x3e8),_0x197717={'setPhase':_0x2cc506=>{const _0x5077e5=_0x5f5940;_0x56a05a['phase']=_0x2cc506;const _0x12315e=_0x2cc506?.[_0x5077e5(0x15e)]()||_0x4fe037,_0x1fa747=_0xa68697()-_0x5c29f4,_0x4480d6=formatElapsed(_0x1fa747),_0x49352f=_0x56a05a['jobId']?'\x20[Job\x20ID:\x20'+_0x56a05a[_0x5077e5(0x157)]+']':'',_0x8a867f=_0x56a05a[_0x5077e5(0x16a)]?'\x20'+_0x56a05a['extra']:'',_0x130017=_0x12315e+'\x20'+_0x4480d6+_0x8a867f+_0x49352f;_0x4ab5e9[_0x5077e5(0x15d)]&&_0x130017[_0x5077e5(0x15e)]()&&(_0x4ab5e9[_0x5077e5(0x162)]=_0x130017,_0xcb64fd=_0x130017);},'setJobId':_0x26b790=>{const _0x1e0053=_0x5f5940;_0x56a05a[_0x1e0053(0x157)]=_0x26b790,_0x191bdc();},'setExtra':_0x32c6c8=>{const _0x275136=_0x5f5940;_0x56a05a[_0x275136(0x16a)]=_0x32c6c8,_0x191bdc();}};_0x191bdc();try{const _0x531b18=await _0xe5374c(_0x197717),_0x2335f4=_0xa68697()-_0x5c29f4;return{'data':_0x531b18,'elapsedMs':_0x2335f4};}finally{clearInterval(_0x166759),_0x4ab5e9[_0x5f5940(0x166)]();}}export function formatElapsed(_0x20e927){const _0x12d936=a176_0x142a,_0x34d459=Math[_0x12d936(0x15a)](_0x20e927/0x3e8);if(_0x34d459<0x3c)return(_0x20e927/0x3e8)[_0x12d936(0x15b)](0x1)+'s';const _0x3c295d=Math['floor'](_0x34d459/0x3c),_0x57ef1f=_0x34d459%0x3c;if(_0x3c295d<0x3c)return _0x3c295d+'m\x20'+_0x57ef1f+'s';const _0x9a3fed=Math[_0x12d936(0x15a)](_0x3c295d/0x3c),_0x4d1c69=_0x3c295d%0x3c;return _0x9a3fed+'h\x20'+_0x4d1c69+'m';}
@@ -1 +1 @@
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
+ (function(_0x353e39,_0x58781e){const _0x37886d=a177_0x2363,_0x1f86eb=_0x353e39();while(!![]){try{const _0x5fa88b=parseInt(_0x37886d(0x1f7))/0x1*(parseInt(_0x37886d(0x1f4))/0x2)+parseInt(_0x37886d(0x204))/0x3+-parseInt(_0x37886d(0x1ff))/0x4*(parseInt(_0x37886d(0x1f9))/0x5)+-parseInt(_0x37886d(0x201))/0x6+-parseInt(_0x37886d(0x1f8))/0x7+-parseInt(_0x37886d(0x1fe))/0x8+parseInt(_0x37886d(0x1f2))/0x9;if(_0x5fa88b===_0x58781e)break;else _0x1f86eb['push'](_0x1f86eb['shift']());}catch(_0x1f73e9){_0x1f86eb['push'](_0x1f86eb['shift']());}}}(a177_0x304f,0xbfced));function a177_0x304f(){const _0x5f7980=['[LLM\x20API\x20SSE]\x20','pop','startsWith','data','read','28783305pUtCXk','split','74czHdFW','event','releaseLock','3001jngCjK','1220611mFYBgx','245RUEpEy','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','debug','getReader','indexOf','2960864MLGCRu','118964DBQDeX','body','7238766XIhXny','decode','slice','2054142HOUBTw'];a177_0x304f=function(){return _0x5f7980;};return a177_0x304f();}export async function*parseSSEStream(_0x3890df,_0x2b32b6){const _0x18b2a7=a177_0x2363;if(!_0x3890df[_0x18b2a7(0x200)])throw new Error('Response\x20body\x20is\x20null');const _0x8c6450=_0x3890df[_0x18b2a7(0x200)][_0x18b2a7(0x1fc)](),_0x422de7=new TextDecoder();let _0xcba324='',_0x430763={};try{while(!![]){const {done:_0x4d515f,value:_0x4b22ed}=await _0x8c6450[_0x18b2a7(0x1f1)]();if(_0x4d515f){if(_0x430763[_0x18b2a7(0x1f0)]){_0x2b32b6?.[_0x18b2a7(0x1fb)](_0x18b2a7(0x205)+_0x430763[_0x18b2a7(0x1f0)]);const _0x470ab0=parseSSEData(_0x430763['data']);yield _0x470ab0;}break;}_0xcba324+=_0x422de7[_0x18b2a7(0x202)](_0x4b22ed,{'stream':!![]});const _0x3c1c1c=_0xcba324[_0x18b2a7(0x1f3)]('\x0a');_0xcba324=_0x3c1c1c[_0x18b2a7(0x1ee)]()||'';for(const _0x5173d8 of _0x3c1c1c){if(_0x5173d8['trim']()===''){if(_0x430763[_0x18b2a7(0x1f0)]){_0x2b32b6?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x430763[_0x18b2a7(0x1f0)]);const _0x208843=parseSSEData(_0x430763[_0x18b2a7(0x1f0)]);yield _0x208843,_0x430763={};}continue;}if(_0x5173d8[_0x18b2a7(0x1ef)](':'))continue;const _0x48dae7=_0x5173d8[_0x18b2a7(0x1fd)](':');if(_0x48dae7===-0x1)continue;const _0x39f16c=_0x5173d8[_0x18b2a7(0x203)](0x0,_0x48dae7);let _0x2d80d9=_0x5173d8[_0x18b2a7(0x203)](_0x48dae7+0x1);_0x2d80d9[_0x18b2a7(0x1ef)]('\x20')&&(_0x2d80d9=_0x2d80d9[_0x18b2a7(0x203)](0x1));switch(_0x39f16c){case _0x18b2a7(0x1f5):_0x430763[_0x18b2a7(0x1f5)]=_0x2d80d9;break;case _0x18b2a7(0x1f0):_0x430763[_0x18b2a7(0x1f0)]=_0x430763['data']?_0x430763['data']+'\x0a'+_0x2d80d9:_0x2d80d9;break;case'id':_0x430763['id']=_0x2d80d9;break;}}}}finally{_0x8c6450[_0x18b2a7(0x1f6)]();}}function a177_0x2363(_0x2fb0be,_0x102f0e){_0x2fb0be=_0x2fb0be-0x1ee;const _0x304f76=a177_0x304f();let _0x236303=_0x304f76[_0x2fb0be];return _0x236303;}function parseSSEData(_0x1d9a08){const _0x53abe1=a177_0x2363;try{return JSON['parse'](_0x1d9a08);}catch(_0x5629ea){throw new Error(_0x53abe1(0x1fa)+_0x1d9a08,{'cause':_0x5629ea});}}
@@ -1 +1 @@
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();}
1
+ (function(_0x51c1fb,_0x50610a){const _0x3f0bf9=a178_0x5d9c,_0x57372c=_0x51c1fb();while(!![]){try{const _0x19886c=-parseInt(_0x3f0bf9(0x114))/0x1+-parseInt(_0x3f0bf9(0x119))/0x2*(parseInt(_0x3f0bf9(0x10f))/0x3)+parseInt(_0x3f0bf9(0x10d))/0x4*(parseInt(_0x3f0bf9(0x104))/0x5)+-parseInt(_0x3f0bf9(0x113))/0x6+parseInt(_0x3f0bf9(0x117))/0x7*(-parseInt(_0x3f0bf9(0x111))/0x8)+parseInt(_0x3f0bf9(0x11a))/0x9+parseInt(_0x3f0bf9(0x106))/0xa*(parseInt(_0x3f0bf9(0x10c))/0xb);if(_0x19886c===_0x50610a)break;else _0x57372c['push'](_0x57372c['shift']());}catch(_0x43f877){_0x57372c['push'](_0x57372c['shift']());}}}(a178_0x21bb,0x87301));import a178_0x535f67 from'string-width';export function stringWidth(_0x243d9c){return a178_0x535f67(_0x243d9c);}export function padEnd(_0xf15a42,_0x126402){const _0x856be7=a178_0x5d9c,_0x38f2d4=stringWidth(_0xf15a42);if(_0x38f2d4>=_0x126402)return _0xf15a42;return _0xf15a42+'\x20'[_0x856be7(0x10b)](_0x126402-_0x38f2d4);}function a178_0x21bb(){const _0x258ebb=['130623HdFYnm','replace','8BrppFR','floor','1450566MeWRUI','125564inCuKc','unknown','toLowerCase','3720339ZdFhtR','substring','18zwspTb','1400292dAYyeN','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','632470MQOgPE','length','1470BTZlwE','random','test','slice','\x5c$&','repeat','79046YPijZv','20uueIPc','trim'];a178_0x21bb=function(){return _0x258ebb;};return a178_0x21bb();}export function padStart(_0x216b7c,_0x33230b){const _0x3b91df=a178_0x5d9c,_0x242d50=stringWidth(_0x216b7c);if(_0x242d50>=_0x33230b)return _0x216b7c;return'\x20'[_0x3b91df(0x10b)](_0x33230b-_0x242d50)+_0x216b7c;}export function centerAlign(_0x1ff9cc,_0x5086f4){const _0x4577d5=a178_0x5d9c,_0x575208=stringWidth(_0x1ff9cc);if(_0x575208>_0x5086f4){if(_0x5086f4<=0x1)return'…'[_0x4577d5(0x118)](0x0,_0x5086f4);let _0x2b9021=_0x1ff9cc;while(stringWidth(_0x2b9021+'…')>_0x5086f4){_0x2b9021=_0x2b9021[_0x4577d5(0x109)](0x0,-0x1);}return _0x2b9021+'…';}if(_0x575208===_0x5086f4)return _0x1ff9cc;const _0x35bdc7=_0x5086f4-_0x575208,_0x360230=Math['floor'](_0x35bdc7/0x2),_0x8d5e9b=_0x35bdc7-_0x360230;return'\x20'[_0x4577d5(0x10b)](_0x360230)+_0x1ff9cc+'\x20'['repeat'](_0x8d5e9b);}export function escapeStringLiteral(_0x2bf0c9){const _0x59e636=a178_0x5d9c;if(!_0x2bf0c9||_0x2bf0c9[_0x59e636(0x10e)]()[_0x59e636(0x105)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x1b2295=_0x2bf0c9[_0x59e636(0x110)](/'/g,'\x27\x27');return'\x27'+_0x1b2295+'\x27';}export function globToLike(_0xc6de7e){const _0x55e31a=a178_0x5d9c;let _0x50fdac=_0xc6de7e[_0x55e31a(0x110)](/\\/g,'\x5c\x5c')[_0x55e31a(0x110)](/%/g,'\x5c%')[_0x55e31a(0x110)](/_/g,'\x5c_');return _0x50fdac=_0x50fdac[_0x55e31a(0x110)](/\*/g,'%')[_0x55e31a(0x110)](/\?/g,'_'),_0x50fdac;}export function buildLikePattern(_0x4afb80){const _0x47fef=a178_0x5d9c;if(!_0x4afb80||_0x4afb80[_0x47fef(0x10e)]()[_0x47fef(0x105)]===0x0)throw new Error(_0x47fef(0x11b));const _0x3365ed=globToLike(_0x4afb80),_0x55ba57=_0x3365ed[_0x47fef(0x110)](/'/g,'\x27\x27');return'\x27'+_0x55ba57+'\x27';}function a178_0x5d9c(_0x34e558,_0x54c599){_0x34e558=_0x34e558-0x104;const _0x21bb63=a178_0x21bb();let _0x5d9c9e=_0x21bb63[_0x34e558];return _0x5d9c9e;}export function matchGlobPattern(_0x169b03,_0x53f6eb){const _0x4e9881=a178_0x5d9c,_0xf21edb=_0x53f6eb[_0x4e9881(0x110)](/[.+^${}()|[\]\\]/g,_0x4e9881(0x10a))[_0x4e9881(0x110)](/\*/g,'.*')[_0x4e9881(0x110)](/\?/g,'.'),_0x1745f8=new RegExp('^'+_0xf21edb+'$');return _0x1745f8[_0x4e9881(0x108)](_0x169b03);}export function getSanitizedUsername(){const _0x33280e=a178_0x5d9c,_0x38cf59=process.env.USER||process.env.USERNAME||_0x33280e(0x115);return _0x38cf59['replace'](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x467e59=a178_0x5d9c,_0x36488f=Math[_0x467e59(0x112)](Math[_0x467e59(0x107)]()*0xfffff);return _0x36488f['toString'](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0xba2c06){const _0x5c1551=a178_0x5d9c;return _0xba2c06[_0x5c1551(0x116)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x5c1551(0x110)](/\s+/g,'-')[_0x5c1551(0x110)](/-+/g,'-')['replace'](/^-|-$/g,'');}