@treasuredata/tdx 2026.3.32 → 2026.3.34

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 (275) 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/auth-login-command.js +1 -1
  13. package/dist/commands/cas-command.js +1 -1
  14. package/dist/commands/cas-segment-command.js +1 -1
  15. package/dist/commands/chat-command.js +1 -1
  16. package/dist/commands/claude-command.js +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/delivery-command.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-campaign-pull-command.js +1 -1
  25. package/dist/commands/engage-campaign-push-command.js +1 -1
  26. package/dist/commands/engage-campaign-validate-command.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/engage-template-pull-command.js +1 -1
  29. package/dist/commands/engage-template-push-command.js +1 -1
  30. package/dist/commands/engage-template-validate-command.js +1 -1
  31. package/dist/commands/job-command.js +1 -1
  32. package/dist/commands/journey-command.js +1 -1
  33. package/dist/commands/journey-validate-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/mcp-command.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/policy-command.js +1 -1
  38. package/dist/commands/profile-command.js +1 -1
  39. package/dist/commands/profiles-command.js +1 -1
  40. package/dist/commands/query-command.js +1 -1
  41. package/dist/commands/schedule-command.js +1 -1
  42. package/dist/commands/segment-command.js +1 -1
  43. package/dist/commands/segment-create-command.js +1 -1
  44. package/dist/commands/segment-fields-command.js +1 -1
  45. package/dist/commands/segment-pull-command.js +1 -1
  46. package/dist/commands/segment-push-command.js +1 -1
  47. package/dist/commands/segment-update-command.js +1 -1
  48. package/dist/commands/segment-use-command.js +1 -1
  49. package/dist/commands/segment-validate-command.js +1 -1
  50. package/dist/commands/segments.js +1 -1
  51. package/dist/commands/show.js +1 -1
  52. package/dist/commands/status-command.js +1 -1
  53. package/dist/commands/tables.js +1 -1
  54. package/dist/commands/unset-command.js +1 -1
  55. package/dist/commands/upgrade-command.js +1 -1
  56. package/dist/commands/use-command.js +1 -1
  57. package/dist/commands/user-command.js +1 -1
  58. package/dist/commands/work-command.d.ts +1 -3
  59. package/dist/commands/work-command.d.ts.map +1 -1
  60. package/dist/commands/work-command.js +1 -1
  61. package/dist/commands/work-command.js.map +1 -1
  62. package/dist/commands/workflow-command.js +1 -1
  63. package/dist/core/auth.js +1 -1
  64. package/dist/core/command-output.js +1 -1
  65. package/dist/core/config.js +1 -1
  66. package/dist/core/connection-cache.js +1 -1
  67. package/dist/core/constants.js +1 -1
  68. package/dist/core/credential-cache.js +1 -1
  69. package/dist/core/global-context.js +1 -1
  70. package/dist/core/keychain.js +1 -1
  71. package/dist/core/oauth-keychain.js +1 -1
  72. package/dist/core/oauth.js +1 -1
  73. package/dist/core/profile.js +1 -1
  74. package/dist/core/project-config.js +1 -1
  75. package/dist/core/session.js +1 -1
  76. package/dist/core/user-cache.js +1 -1
  77. package/dist/core/version.js +1 -1
  78. package/dist/index.js +1 -1
  79. package/dist/mcp/server.js +1 -1
  80. package/dist/mcp/tools/index.js +1 -1
  81. package/dist/mcp/tools/tdx-run.js +1 -1
  82. package/dist/mcp/tools/tdx-search.js +1 -1
  83. package/dist/mcp/utils.js +1 -1
  84. package/dist/proxy/claude-usage-tracker.js +1 -1
  85. package/dist/proxy/passthrough-server.js +1 -1
  86. package/dist/proxy/sse-usage-parser.js +1 -1
  87. package/dist/sdk/agent/agent-config.js +1 -1
  88. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  89. package/dist/sdk/agent/agent-yaml.js +1 -1
  90. package/dist/sdk/agent/test/evaluator.js +1 -1
  91. package/dist/sdk/agent/test/executor.js +1 -1
  92. package/dist/sdk/agent/test/index.js +1 -1
  93. package/dist/sdk/agent/test/output.js +1 -1
  94. package/dist/sdk/agent/test/parser.js +1 -1
  95. package/dist/sdk/agent/tool-target-registry.js +1 -1
  96. package/dist/sdk/api.d.ts.map +1 -1
  97. package/dist/sdk/api.js +1 -1
  98. package/dist/sdk/api.js.map +1 -1
  99. package/dist/sdk/cas/cas-api-client.d.ts.map +1 -1
  100. package/dist/sdk/cas/cas-api-client.js +1 -1
  101. package/dist/sdk/cas/cas-api-client.js.map +1 -1
  102. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  103. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  104. package/dist/sdk/cas/index.js +1 -1
  105. package/dist/sdk/cas/pull-workflow.js +1 -1
  106. package/dist/sdk/cas/push-workflow.js +1 -1
  107. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  108. package/dist/sdk/client/cdp-api-client.js +1 -1
  109. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  110. package/dist/sdk/client/delivery-api-client.d.ts.map +1 -1
  111. package/dist/sdk/client/delivery-api-client.js +1 -1
  112. package/dist/sdk/client/delivery-api-client.js.map +1 -1
  113. package/dist/sdk/client/endpoints.js +1 -1
  114. package/dist/sdk/client/engage-api-client.d.ts.map +1 -1
  115. package/dist/sdk/client/engage-api-client.js +1 -1
  116. package/dist/sdk/client/engage-api-client.js.map +1 -1
  117. package/dist/sdk/client/http-client.d.ts +7 -0
  118. package/dist/sdk/client/http-client.d.ts.map +1 -1
  119. package/dist/sdk/client/http-client.js +1 -1
  120. package/dist/sdk/client/http-client.js.map +1 -1
  121. package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
  122. package/dist/sdk/client/llm-api-client.js +1 -1
  123. package/dist/sdk/client/llm-api-client.js.map +1 -1
  124. package/dist/sdk/client/oauth-refresh.js +1 -1
  125. package/dist/sdk/client/rate-limiter.js +1 -1
  126. package/dist/sdk/client/td-api-client.d.ts.map +1 -1
  127. package/dist/sdk/client/td-api-client.js +1 -1
  128. package/dist/sdk/client/td-api-client.js.map +1 -1
  129. package/dist/sdk/client/trino-api-client.d.ts.map +1 -1
  130. package/dist/sdk/client/trino-api-client.js +1 -1
  131. package/dist/sdk/client/trino-api-client.js.map +1 -1
  132. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  133. package/dist/sdk/client/workflow-client.js +1 -1
  134. package/dist/sdk/client/workflow-client.js.map +1 -1
  135. package/dist/sdk/connection-validator.js +1 -1
  136. package/dist/sdk/connection.js +1 -1
  137. package/dist/sdk/delivery.js +1 -1
  138. package/dist/sdk/engage/campaign-pull.js +1 -1
  139. package/dist/sdk/engage/campaign-push.js +1 -1
  140. package/dist/sdk/engage/campaign-validator.js +1 -1
  141. package/dist/sdk/engage/campaign-yaml.js +1 -1
  142. package/dist/sdk/engage/template-pull.js +1 -1
  143. package/dist/sdk/engage/template-push.js +1 -1
  144. package/dist/sdk/engage/template-validator.js +1 -1
  145. package/dist/sdk/engage/template-yaml.js +1 -1
  146. package/dist/sdk/engage/types/campaign-def.js +1 -1
  147. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  148. package/dist/sdk/engage/types/template-schema.js +1 -1
  149. package/dist/sdk/engage.js +1 -1
  150. package/dist/sdk/errors.js +1 -1
  151. package/dist/sdk/index.d.ts +12 -0
  152. package/dist/sdk/index.d.ts.map +1 -1
  153. package/dist/sdk/index.js +1 -1
  154. package/dist/sdk/index.js.map +1 -1
  155. package/dist/sdk/io/index.js +1 -1
  156. package/dist/sdk/io/node-filesystem.js +1 -1
  157. package/dist/sdk/job.js +1 -1
  158. package/dist/sdk/journey.js +1 -1
  159. package/dist/sdk/llm/chat-cache.js +1 -1
  160. package/dist/sdk/llm/index.js +1 -1
  161. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  162. package/dist/sdk/llm/model-factors.js +1 -1
  163. package/dist/sdk/personalization.d.ts.map +1 -1
  164. package/dist/sdk/personalization.js +1 -1
  165. package/dist/sdk/personalization.js.map +1 -1
  166. package/dist/sdk/policy.d.ts.map +1 -1
  167. package/dist/sdk/policy.js +1 -1
  168. package/dist/sdk/policy.js.map +1 -1
  169. package/dist/sdk/query/index.js +1 -1
  170. package/dist/sdk/query/sql-parser.js +1 -1
  171. package/dist/sdk/realtime.d.ts.map +1 -1
  172. package/dist/sdk/realtime.js +1 -1
  173. package/dist/sdk/realtime.js.map +1 -1
  174. package/dist/sdk/schedule.js +1 -1
  175. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  176. package/dist/sdk/segment/fields-display.js +1 -1
  177. package/dist/sdk/segment/file-discovery.js +1 -1
  178. package/dist/sdk/segment/journey-utils.js +1 -1
  179. package/dist/sdk/segment/journey-validator.js +1 -1
  180. package/dist/sdk/segment/journey-yaml.js +1 -1
  181. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  182. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  183. package/dist/sdk/segment/pull-workflow.js +1 -1
  184. package/dist/sdk/segment/push-recovery.js +1 -1
  185. package/dist/sdk/segment/push-workflow.js +1 -1
  186. package/dist/sdk/segment/resolution-context.js +1 -1
  187. package/dist/sdk/segment/segment-path-parser.js +1 -1
  188. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  189. package/dist/sdk/segment/segment-validator.js +1 -1
  190. package/dist/sdk/segment/target-resolution.js +1 -1
  191. package/dist/sdk/segment/tdx-config.js +1 -1
  192. package/dist/sdk/segment/types/activation-schema.js +1 -1
  193. package/dist/sdk/segment/types/journey-def.js +1 -1
  194. package/dist/sdk/segment/types/journey-schema.js +1 -1
  195. package/dist/sdk/segment/types/segment-def.js +1 -1
  196. package/dist/sdk/segment/types/segment-schema.js +1 -1
  197. package/dist/sdk/segment/validate-files.js +1 -1
  198. package/dist/sdk/segment/yaml-validator.js +1 -1
  199. package/dist/sdk/segment.js +1 -1
  200. package/dist/sdk/types/index.d.ts +1 -1
  201. package/dist/sdk/types/index.d.ts.map +1 -1
  202. package/dist/sdk/types/index.js +1 -1
  203. package/dist/sdk/types/progress.js +1 -1
  204. package/dist/sdk/types/workspace.d.ts +43 -19
  205. package/dist/sdk/types/workspace.d.ts.map +1 -1
  206. package/dist/sdk/types/workspace.js +1 -1
  207. package/dist/sdk/types/workspace.js.map +1 -1
  208. package/dist/sdk/user.js +1 -1
  209. package/dist/sdk/util/format-detector.js +1 -1
  210. package/dist/sdk/util/formatters.js +1 -1
  211. package/dist/sdk/util/index.js +1 -1
  212. package/dist/sdk/util/paginate.js +1 -1
  213. package/dist/sdk/util/tree-formatter.js +1 -1
  214. package/dist/sdk/workflow/archive-validation.js +1 -1
  215. package/dist/sdk/workflow/clone-workflow.js +1 -1
  216. package/dist/sdk/workflow/index.js +1 -1
  217. package/dist/sdk/workflow/pull-workflow.js +1 -1
  218. package/dist/sdk/workflow/push-workflow.js +1 -1
  219. package/dist/sdk/workflow/tdx-config.js +1 -1
  220. package/dist/sdk/workflow/workflow-utils.js +1 -1
  221. package/dist/sdk/workspace/frontmatter.js +1 -1
  222. package/dist/sdk/workspace/git.d.ts +15 -0
  223. package/dist/sdk/workspace/git.d.ts.map +1 -1
  224. package/dist/sdk/workspace/git.js +1 -1
  225. package/dist/sdk/workspace/git.js.map +1 -1
  226. package/dist/sdk/workspace/index.d.ts +38 -21
  227. package/dist/sdk/workspace/index.d.ts.map +1 -1
  228. package/dist/sdk/workspace/index.js +1 -1
  229. package/dist/sdk/workspace/index.js.map +1 -1
  230. package/dist/sdk/workspace/templates.js +1 -1
  231. package/dist/sdk/workspace/weekly.d.ts +49 -0
  232. package/dist/sdk/workspace/weekly.d.ts.map +1 -0
  233. package/dist/sdk/workspace/weekly.js +1 -0
  234. package/dist/sdk/workspace/weekly.js.map +1 -0
  235. package/dist/sdk/workspace/wikilinks.d.ts +7 -2
  236. package/dist/sdk/workspace/wikilinks.d.ts.map +1 -1
  237. package/dist/sdk/workspace/wikilinks.js +1 -1
  238. package/dist/sdk/workspace/wikilinks.js.map +1 -1
  239. package/dist/test-utils/command-runner.js +1 -1
  240. package/dist/test-utils/factories.js +1 -1
  241. package/dist/test-utils/fixtures.js +1 -1
  242. package/dist/test-utils/http-mock.js +1 -1
  243. package/dist/test-utils/index.js +1 -1
  244. package/dist/utils/async.js +1 -1
  245. package/dist/utils/colors.js +1 -1
  246. package/dist/utils/diff.js +1 -1
  247. package/dist/utils/file-permissions.js +1 -1
  248. package/dist/utils/file-reader.js +1 -1
  249. package/dist/utils/github-releases.js +1 -1
  250. package/dist/utils/global-cache.js +1 -1
  251. package/dist/utils/json-loader.js +1 -1
  252. package/dist/utils/local-cache.js +1 -1
  253. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  254. package/dist/utils/logger/formatters/index.js +1 -1
  255. package/dist/utils/logger/handlers/console-handler.js +1 -1
  256. package/dist/utils/logger/handlers/file-handler.js +1 -1
  257. package/dist/utils/logger/handlers/index.js +1 -1
  258. package/dist/utils/logger/handlers/null-handler.js +1 -1
  259. package/dist/utils/logger/index.js +1 -1
  260. package/dist/utils/logger/logger.js +1 -1
  261. package/dist/utils/logger/types.js +1 -1
  262. package/dist/utils/option-validation.js +1 -1
  263. package/dist/utils/process.js +1 -1
  264. package/dist/utils/prompt.js +1 -1
  265. package/dist/utils/spinner.js +1 -1
  266. package/dist/utils/sse-parser.js +1 -1
  267. package/dist/utils/string-utils.js +1 -1
  268. package/dist/utils/table-ref-parser.js +1 -1
  269. package/dist/utils/tdx-logger.js +1 -1
  270. package/dist/utils/version-check.js +1 -1
  271. package/package.json +1 -1
  272. package/dist/sdk/workspace/skills.d.ts +0 -34
  273. package/dist/sdk/workspace/skills.d.ts.map +0 -1
  274. package/dist/sdk/workspace/skills.js +0 -1
  275. package/dist/sdk/workspace/skills.js.map +0 -1
@@ -1 +1 @@
1
- (function(_0x27504b,_0x162ed5){const _0x59225c=a214_0x3a63,_0x583e81=_0x27504b();while(!![]){try{const _0x454cd1=-parseInt(_0x59225c(0x7e))/0x1*(-parseInt(_0x59225c(0x7f))/0x2)+-parseInt(_0x59225c(0x93))/0x3*(-parseInt(_0x59225c(0x92))/0x4)+-parseInt(_0x59225c(0x85))/0x5+-parseInt(_0x59225c(0x87))/0x6*(-parseInt(_0x59225c(0x91))/0x7)+parseInt(_0x59225c(0x86))/0x8+parseInt(_0x59225c(0x8f))/0x9*(parseInt(_0x59225c(0x89))/0xa)+-parseInt(_0x59225c(0x82))/0xb;if(_0x454cd1===_0x162ed5)break;else _0x583e81['push'](_0x583e81['shift']());}catch(_0x56bdc1){_0x583e81['push'](_0x583e81['shift']());}}}(a214_0x3291,0xe2545));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x1522cb=a214_0x3a63;return process.env.TDX_CACHE_DIR||join(homedir(),_0x1522cb(0x90),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x1f9f8c,_0x89d811){const _0x5b8ada=a214_0x3a63,_0x4ea470=registry[_0x5b8ada(0x80)](_0x1f9f8c);if(_0x4ea470&&_0x4ea470!==_0x89d811)throw new Error('Global\x20cache\x20key\x20\x22'+_0x1f9f8c+'\x22\x20already\x20registered\x20by\x20\x22'+_0x4ea470+_0x5b8ada(0x83)+_0x89d811+'\x22');registry[_0x5b8ada(0x81)](_0x1f9f8c,_0x89d811);}export function getGlobalCachePath(_0x4df249){return join(getGlobalCacheDir(),_0x4df249);}function ensureGlobalCacheDir(){const _0x5a3c83=getGlobalCacheDir();!existsSync(_0x5a3c83)&&mkdirSync(_0x5a3c83,{'recursive':!![]});}function readCacheJson(_0x2072ce){const _0x1684b3=a214_0x3a63,_0x438ad1=getGlobalCachePath(_0x2072ce);if(!existsSync(_0x438ad1))return undefined;try{const _0xd45b1c=readFileSync(_0x438ad1,_0x1684b3(0x84));return JSON[_0x1684b3(0x8a)](_0xd45b1c);}catch{return undefined;}}function writeCacheJson(_0x17d164,_0x524428){const _0x4b3196=a214_0x3a63;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x17d164),JSON[_0x4b3196(0x8e)](_0x524428,null,0x2),_0x4b3196(0x84));}function a214_0x3a63(_0x2b61a2,_0x490e94){_0x2b61a2=_0x2b61a2-0x7e;const _0x329109=a214_0x3291();let _0x3a63d4=_0x329109[_0x2b61a2];return _0x3a63d4;}function readCacheText(_0xcb1f08){const _0x5be084=a214_0x3a63,_0xde85b7=getGlobalCachePath(_0xcb1f08);if(!existsSync(_0xde85b7))return undefined;try{return readFileSync(_0xde85b7,_0x5be084(0x84));}catch{return undefined;}}function writeCacheText(_0x5295ce,_0x3e9e9f){const _0x5da91d=a214_0x3a63;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5295ce),_0x3e9e9f,_0x5da91d(0x84));}function clearCache(_0x32a39a){const _0x57e661=getGlobalCachePath(_0x32a39a);if(existsSync(_0x57e661))try{unlinkSync(_0x57e661);}catch{}}function cacheExists(_0x262fca){return existsSync(getGlobalCachePath(_0x262fca));}export function createGlobalCache(_0x30b955,_0xa4bd9c){return registerGlobalCacheKey(_0x30b955,_0xa4bd9c),{'read':()=>readCacheJson(_0x30b955),'write':_0x19755c=>writeCacheJson(_0x30b955,_0x19755c),'clear':()=>clearCache(_0x30b955),'exists':()=>cacheExists(_0x30b955),'path':()=>getGlobalCachePath(_0x30b955)};}export function createGlobalTextCache(_0x3518c9,_0x4c9f5b){const _0x47bbbe=a214_0x3a63;return registerGlobalCacheKey(_0x3518c9,_0x4c9f5b),{'read':()=>readCacheText(_0x3518c9)?.[_0x47bbbe(0x8d)]()||undefined,'write':_0x41fb88=>writeCacheText(_0x3518c9,_0x41fb88),'clear':()=>clearCache(_0x3518c9),'exists':()=>cacheExists(_0x3518c9),'path':()=>getGlobalCachePath(_0x3518c9)};}export function createProfileCache(_0x9bd9f0,_0x1e817b){const _0x170677=_0x486125=>{const _0x4e2c00=a214_0x3a63,_0x2838fb=_0x486125||_0x4e2c00(0x88);return _0x9bd9f0[_0x4e2c00(0x8b)](_0x4e2c00(0x94),_0x2838fb);};return{'read':_0x4d3d6a=>{const _0x5699e5=_0x170677(_0x4d3d6a);return registerGlobalCacheKey(_0x5699e5,_0x1e817b),readCacheJson(_0x5699e5);},'write':(_0x50592c,_0xed981f)=>{const _0x269cfa=_0x170677(_0x50592c);registerGlobalCacheKey(_0x269cfa,_0x1e817b),writeCacheJson(_0x269cfa,_0xed981f);},'clear':_0x2d41b5=>{const _0x1b31fd=_0x170677(_0x2d41b5);clearCache(_0x1b31fd);},'exists':_0x4e4863=>{const _0x22b34c=_0x170677(_0x4e4863);return cacheExists(_0x22b34c);},'path':_0xd67118=>{const _0xc8bb36=_0x170677(_0xd67118);return getGlobalCachePath(_0xc8bb36);}};}function a214_0x3291(){const _0x2d8163=['{profile}','512758bSaKuz','4glQGOc','get','set','19578504bSvsER','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','6648385IhNfKR','8071624vuJxHA','6BdEWaH','default','624110lemIEQ','parse','replace','clear','trim','stringify','180dFSLjL','.cache','3910669yZPRMa','56iColhi','41835TXmZfw'];a214_0x3291=function(){return _0x2d8163;};return a214_0x3291();}export function createOptionalProfileCache(_0x12307c,_0x44311f,_0x296997={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x296997,_0x2cf3ab=_0x38da87=>{return _0x38da87?''+_0x12307c+profileSeparator+_0x38da87+suffix:''+_0x12307c+suffix;};return{'read':_0x5f2274=>{const _0x247024=_0x2cf3ab(_0x5f2274);return registerGlobalCacheKey(_0x247024,_0x44311f),readCacheJson(_0x247024);},'write':(_0xa44d7f,_0x1728a9)=>{const _0x67d61e=_0x2cf3ab(_0x1728a9);registerGlobalCacheKey(_0x67d61e,_0x44311f),writeCacheJson(_0x67d61e,_0xa44d7f);},'clear':_0x2571ad=>{const _0x32fec3=_0x2cf3ab(_0x2571ad);clearCache(_0x32fec3);},'exists':_0x30ce7f=>{const _0x1277f9=_0x2cf3ab(_0x30ce7f);return cacheExists(_0x1277f9);},'path':_0x1c08f3=>{const _0x4e971d=_0x2cf3ab(_0x1c08f3);return getGlobalCachePath(_0x4e971d);}};}export function clearGlobalRegistry(){const _0x5b36d6=a214_0x3a63;registry[_0x5b36d6(0x8c)]();}
1
+ (function(_0x502f06,_0x231d29){const _0x149a99=a214_0x2db7,_0x3b689e=_0x502f06();while(!![]){try{const _0x49f89b=-parseInt(_0x149a99(0x126))/0x1*(-parseInt(_0x149a99(0x137))/0x2)+-parseInt(_0x149a99(0x12e))/0x3+-parseInt(_0x149a99(0x12a))/0x4+-parseInt(_0x149a99(0x12b))/0x5*(parseInt(_0x149a99(0x131))/0x6)+parseInt(_0x149a99(0x134))/0x7+parseInt(_0x149a99(0x129))/0x8+parseInt(_0x149a99(0x139))/0x9;if(_0x49f89b===_0x231d29)break;else _0x3b689e['push'](_0x3b689e['shift']());}catch(_0x39c532){_0x3b689e['push'](_0x3b689e['shift']());}}}(a214_0x1f25,0x6ce55));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x241c0e=a214_0x2db7;return process.env.TDX_CACHE_DIR||join(homedir(),_0x241c0e(0x12d),_0x241c0e(0x133));}const registry=new Map();export function registerGlobalCacheKey(_0x50b80a,_0x539c17){const _0xc709bf=a214_0x2db7,_0x451ac0=registry[_0xc709bf(0x136)](_0x50b80a);if(_0x451ac0&&_0x451ac0!==_0x539c17)throw new Error('Global\x20cache\x20key\x20\x22'+_0x50b80a+'\x22\x20already\x20registered\x20by\x20\x22'+_0x451ac0+_0xc709bf(0x12c)+_0x539c17+'\x22');registry[_0xc709bf(0x132)](_0x50b80a,_0x539c17);}export function getGlobalCachePath(_0x52712c){return join(getGlobalCacheDir(),_0x52712c);}function ensureGlobalCacheDir(){const _0x33409b=getGlobalCacheDir();!existsSync(_0x33409b)&&mkdirSync(_0x33409b,{'recursive':!![]});}function readCacheJson(_0x1364a1){const _0x5aaba7=a214_0x2db7,_0x34c768=getGlobalCachePath(_0x1364a1);if(!existsSync(_0x34c768))return undefined;try{const _0x36a915=readFileSync(_0x34c768,_0x5aaba7(0x125));return JSON[_0x5aaba7(0x124)](_0x36a915);}catch{return undefined;}}function a214_0x1f25(){const _0x1446f9=['set','tdx','3348604wXBfBp','{profile}','get','7082NOcaOK','default','7800615LaJOpK','parse','utf-8','173nTTlkh','clear','stringify','1689696hVRLbk','2553828hGsVBr','6450ZiCmGL','\x22,\x20cannot\x20register\x20for\x20\x22','.cache','718404LUGFhc','trim','replace','3930VUzEZi'];a214_0x1f25=function(){return _0x1446f9;};return a214_0x1f25();}function writeCacheJson(_0x24dc55,_0x4b688d){const _0x420fee=a214_0x2db7;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x24dc55),JSON[_0x420fee(0x128)](_0x4b688d,null,0x2),'utf-8');}function readCacheText(_0x291e16){const _0x5be7bf=a214_0x2db7,_0x33a0bd=getGlobalCachePath(_0x291e16);if(!existsSync(_0x33a0bd))return undefined;try{return readFileSync(_0x33a0bd,_0x5be7bf(0x125));}catch{return undefined;}}function writeCacheText(_0x57e700,_0x5f3305){const _0x5a00ed=a214_0x2db7;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x57e700),_0x5f3305,_0x5a00ed(0x125));}function clearCache(_0x58d700){const _0x555112=getGlobalCachePath(_0x58d700);if(existsSync(_0x555112))try{unlinkSync(_0x555112);}catch{}}function cacheExists(_0x41ea98){return existsSync(getGlobalCachePath(_0x41ea98));}function a214_0x2db7(_0xb63f12,_0x450708){_0xb63f12=_0xb63f12-0x124;const _0x1f2585=a214_0x1f25();let _0x2db764=_0x1f2585[_0xb63f12];return _0x2db764;}export function createGlobalCache(_0x2770e5,_0x569c00){return registerGlobalCacheKey(_0x2770e5,_0x569c00),{'read':()=>readCacheJson(_0x2770e5),'write':_0x13587c=>writeCacheJson(_0x2770e5,_0x13587c),'clear':()=>clearCache(_0x2770e5),'exists':()=>cacheExists(_0x2770e5),'path':()=>getGlobalCachePath(_0x2770e5)};}export function createGlobalTextCache(_0x1e33a0,_0x57692f){const _0x4d9169=a214_0x2db7;return registerGlobalCacheKey(_0x1e33a0,_0x57692f),{'read':()=>readCacheText(_0x1e33a0)?.[_0x4d9169(0x12f)]()||undefined,'write':_0x514ffb=>writeCacheText(_0x1e33a0,_0x514ffb),'clear':()=>clearCache(_0x1e33a0),'exists':()=>cacheExists(_0x1e33a0),'path':()=>getGlobalCachePath(_0x1e33a0)};}export function createProfileCache(_0x1599b5,_0x470560){const _0x1e88a2=_0x1ed2a0=>{const _0x41077f=a214_0x2db7,_0x20b955=_0x1ed2a0||_0x41077f(0x138);return _0x1599b5[_0x41077f(0x130)](_0x41077f(0x135),_0x20b955);};return{'read':_0x37b2c7=>{const _0x514317=_0x1e88a2(_0x37b2c7);return registerGlobalCacheKey(_0x514317,_0x470560),readCacheJson(_0x514317);},'write':(_0x320fb8,_0x402118)=>{const _0x54303f=_0x1e88a2(_0x320fb8);registerGlobalCacheKey(_0x54303f,_0x470560),writeCacheJson(_0x54303f,_0x402118);},'clear':_0x578c07=>{const _0x5dc112=_0x1e88a2(_0x578c07);clearCache(_0x5dc112);},'exists':_0x554fe7=>{const _0x584f22=_0x1e88a2(_0x554fe7);return cacheExists(_0x584f22);},'path':_0x6d7f9f=>{const _0x5e7976=_0x1e88a2(_0x6d7f9f);return getGlobalCachePath(_0x5e7976);}};}export function createOptionalProfileCache(_0x57eae7,_0x3ef2a8,_0x4d28b6={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4d28b6,_0x3e47af=_0x4972a6=>{return _0x4972a6?''+_0x57eae7+profileSeparator+_0x4972a6+suffix:''+_0x57eae7+suffix;};return{'read':_0x2bfe9a=>{const _0x95d3ad=_0x3e47af(_0x2bfe9a);return registerGlobalCacheKey(_0x95d3ad,_0x3ef2a8),readCacheJson(_0x95d3ad);},'write':(_0x33bee9,_0xe1694)=>{const _0x5146f3=_0x3e47af(_0xe1694);registerGlobalCacheKey(_0x5146f3,_0x3ef2a8),writeCacheJson(_0x5146f3,_0x33bee9);},'clear':_0x8c377c=>{const _0x3984df=_0x3e47af(_0x8c377c);clearCache(_0x3984df);},'exists':_0x4b82c7=>{const _0x5e8625=_0x3e47af(_0x4b82c7);return cacheExists(_0x5e8625);},'path':_0x329548=>{const _0x4d9695=_0x3e47af(_0x329548);return getGlobalCachePath(_0x4d9695);}};}export function clearGlobalRegistry(){const _0x25f0b0=a214_0x2db7;registry[_0x25f0b0(0x127)]();}
@@ -1 +1 @@
1
- (function(_0x1732d5,_0xae7fea){const _0x9fe254=a215_0x4a6e,_0x56cc8d=_0x1732d5();while(!![]){try{const _0x5ae09b=parseInt(_0x9fe254(0xc5))/0x1*(parseInt(_0x9fe254(0xbf))/0x2)+parseInt(_0x9fe254(0xb7))/0x3*(-parseInt(_0x9fe254(0xb6))/0x4)+-parseInt(_0x9fe254(0xc6))/0x5+-parseInt(_0x9fe254(0xc7))/0x6+parseInt(_0x9fe254(0xbd))/0x7*(-parseInt(_0x9fe254(0xba))/0x8)+parseInt(_0x9fe254(0xc9))/0x9*(parseInt(_0x9fe254(0xc1))/0xa)+-parseInt(_0x9fe254(0xcc))/0xb*(-parseInt(_0x9fe254(0xc3))/0xc);if(_0x5ae09b===_0xae7fea)break;else _0x56cc8d['push'](_0x56cc8d['shift']());}catch(_0x220289){_0x56cc8d['push'](_0x56cc8d['shift']());}}}(a215_0x516f,0xa5676));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x516f(){const _0x321d3f=['INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','223304ypJNYG','NOT_FOUND','Permission\x20denied\x20reading\x20file:\x20','203RNcYtM','message','2vGaSYh','INTERNAL','20VgWWol','ENOENT','1956BoLyaM','\x27:\x20','69663StpjNm','5533900fQxpwj','683820UCpVws','Invalid\x20JSON\x20string:\x20','3043125YDsarD','parse','utf-8','136961mSJZCH','EACCES','PERMISSION_DENIED','4NBWBnX','203115TFcxiY'];a215_0x516f=function(){return _0x321d3f;};return a215_0x516f();}function a215_0x4a6e(_0x4ed80a,_0x2c390c){_0x4ed80a=_0x4ed80a-0xb6;const _0x516f3c=a215_0x516f();let _0x4a6e96=_0x516f3c[_0x4ed80a];return _0x4a6e96;}export async function loadJSON(_0x932904,_0xe538e6){const _0x2b39ec=a215_0x4a6e;try{if(_0xe538e6){const _0x4d263c=await readFile(_0x932904,_0x2b39ec(0xcb));try{return JSON[_0x2b39ec(0xca)](_0x4d263c);}catch(_0x4a75d6){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x932904+_0x2b39ec(0xc4)+(_0x4a75d6 instanceof Error?_0x4a75d6[_0x2b39ec(0xbe)]:String(_0x4a75d6)));}}else try{return JSON[_0x2b39ec(0xca)](_0x932904);}catch(_0x3475b0){throw new SDKError(ErrorCode[_0x2b39ec(0xb8)],_0x2b39ec(0xc8)+(_0x3475b0 instanceof Error?_0x3475b0['message']:String(_0x3475b0)));}}catch(_0x49a73e){if(_0x49a73e instanceof SDKError)throw _0x49a73e;if(_0x49a73e instanceof Error&&'code'in _0x49a73e){const _0x31e29d=_0x49a73e;if(_0x31e29d['code']===_0x2b39ec(0xc2))throw new SDKError(ErrorCode[_0x2b39ec(0xbb)],'File\x20not\x20found:\x20'+_0x932904);else{if(_0x31e29d['code']===_0x2b39ec(0xcd))throw new SDKError(ErrorCode[_0x2b39ec(0xce)],_0x2b39ec(0xbc)+_0x932904);}}throw new SDKError(ErrorCode[_0x2b39ec(0xc0)],_0x2b39ec(0xb9)+(_0x49a73e instanceof Error?_0x49a73e[_0x2b39ec(0xbe)]:String(_0x49a73e)));}}export async function loadJSONFromOptions(_0x2d4fb6,_0x22d481){const _0x40abab=a215_0x4a6e;if(_0x2d4fb6&&_0x22d481)throw new SDKError(ErrorCode[_0x40abab(0xb8)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x2d4fb6)return await loadJSON(_0x2d4fb6,![]);if(_0x22d481)return await loadJSON(_0x22d481,!![]);return undefined;}
1
+ (function(_0x527e5c,_0x479b2a){const _0xf84f47=a215_0x2dc1,_0xa3f2e9=_0x527e5c();while(!![]){try{const _0x2d2b2a=parseInt(_0xf84f47(0x1da))/0x1+-parseInt(_0xf84f47(0x1e4))/0x2*(-parseInt(_0xf84f47(0x1d9))/0x3)+parseInt(_0xf84f47(0x1d3))/0x4+-parseInt(_0xf84f47(0x1d8))/0x5*(parseInt(_0xf84f47(0x1dc))/0x6)+parseInt(_0xf84f47(0x1df))/0x7+-parseInt(_0xf84f47(0x1e3))/0x8+-parseInt(_0xf84f47(0x1d7))/0x9;if(_0x2d2b2a===_0x479b2a)break;else _0xa3f2e9['push'](_0xa3f2e9['shift']());}catch(_0x3af8c6){_0xa3f2e9['push'](_0xa3f2e9['shift']());}}}(a215_0x5d45,0x44252));function a215_0x2dc1(_0x257d16,_0x58b71a){_0x257d16=_0x257d16-0x1d3;const _0x5d4545=a215_0x5d45();let _0x2dc1f4=_0x5d4545[_0x257d16];return _0x2dc1f4;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x5d45(){const _0x2b704c=['Permission\x20denied\x20reading\x20file:\x20','1266020DfxIsu','PERMISSION_DENIED','ENOENT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','6065766uxypTl','240IXYxQM','174lzxuwR','262549cWNQli','\x27:\x20','14094glwioY','code','INVALID_ARGUMENT','1902355Zlvqrt','message','parse','Invalid\x20JSON\x20string:\x20','1682280ZEgJpF','14666BWSXTn','INTERNAL'];a215_0x5d45=function(){return _0x2b704c;};return a215_0x5d45();}export async function loadJSON(_0x1979c5,_0x407888){const _0x4c1523=a215_0x2dc1;try{if(_0x407888){const _0x4d9dfd=await readFile(_0x1979c5,'utf-8');try{return JSON[_0x4c1523(0x1e1)](_0x4d9dfd);}catch(_0x4e1029){throw new SDKError(ErrorCode[_0x4c1523(0x1de)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x1979c5+_0x4c1523(0x1db)+(_0x4e1029 instanceof Error?_0x4e1029[_0x4c1523(0x1e0)]:String(_0x4e1029)));}}else try{return JSON[_0x4c1523(0x1e1)](_0x1979c5);}catch(_0x45ca29){throw new SDKError(ErrorCode[_0x4c1523(0x1de)],_0x4c1523(0x1e2)+(_0x45ca29 instanceof Error?_0x45ca29['message']:String(_0x45ca29)));}}catch(_0x3b1b5b){if(_0x3b1b5b instanceof SDKError)throw _0x3b1b5b;if(_0x3b1b5b instanceof Error&&_0x4c1523(0x1dd)in _0x3b1b5b){const _0x4f52e5=_0x3b1b5b;if(_0x4f52e5[_0x4c1523(0x1dd)]===_0x4c1523(0x1d5))throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x1979c5);else{if(_0x4f52e5[_0x4c1523(0x1dd)]==='EACCES')throw new SDKError(ErrorCode[_0x4c1523(0x1d4)],_0x4c1523(0x1e6)+_0x1979c5);}}throw new SDKError(ErrorCode[_0x4c1523(0x1e5)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3b1b5b instanceof Error?_0x3b1b5b[_0x4c1523(0x1e0)]:String(_0x3b1b5b)));}}export async function loadJSONFromOptions(_0x1160da,_0x30e1ee){const _0x38c481=a215_0x2dc1;if(_0x1160da&&_0x30e1ee)throw new SDKError(ErrorCode[_0x38c481(0x1de)],_0x38c481(0x1d6));if(_0x1160da)return await loadJSON(_0x1160da,![]);if(_0x30e1ee)return await loadJSON(_0x30e1ee,!![]);return undefined;}
@@ -1 +1 @@
1
- function a216_0xe462(_0x32dbed,_0x58f14e){_0x32dbed=_0x32dbed-0x13f;const _0x228c6e=a216_0x228c();let _0xe4626e=_0x228c6e[_0x32dbed];return _0xe4626e;}const a216_0x2a95f2=a216_0xe462;(function(_0x431bc5,_0x56a6d6){const _0x4fbcc7=a216_0xe462,_0x13505b=_0x431bc5();while(!![]){try{const _0x6a2b1a=-parseInt(_0x4fbcc7(0x144))/0x1*(parseInt(_0x4fbcc7(0x142))/0x2)+parseInt(_0x4fbcc7(0x145))/0x3*(parseInt(_0x4fbcc7(0x14c))/0x4)+-parseInt(_0x4fbcc7(0x148))/0x5+parseInt(_0x4fbcc7(0x146))/0x6+parseInt(_0x4fbcc7(0x14b))/0x7+parseInt(_0x4fbcc7(0x152))/0x8+-parseInt(_0x4fbcc7(0x151))/0x9;if(_0x6a2b1a===_0x56a6d6)break;else _0x13505b['push'](_0x13505b['shift']());}catch(_0x385d97){_0x13505b['push'](_0x13505b['shift']());}}}(a216_0x228c,0x84d15));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0x2a95f2(0x147),registry=new Map();export function registerCacheKey(_0x26207d,_0x29cde5){const _0x50e325=a216_0x2a95f2,_0x17a4b7=registry[_0x50e325(0x140)](_0x26207d);if(_0x17a4b7&&_0x17a4b7!==_0x29cde5)throw new Error('Cache\x20key\x20\x22'+_0x26207d+_0x50e325(0x14f)+_0x17a4b7+_0x50e325(0x14e)+_0x29cde5+'\x22');registry[_0x50e325(0x141)](_0x26207d,_0x29cde5);}export function getCacheDir(){const _0x1d23a1=a216_0x2a95f2,_0x2f8e45=process['cwd'](),_0x3e9e3b=_0x2f8e45===parse(_0x2f8e45)[_0x1d23a1(0x14a)]?homedir():_0x2f8e45;return join(_0x3e9e3b,LOCAL_CACHE_DIR);}export function getCachePath(_0x2b6980){return join(getCacheDir(),_0x2b6980);}function ensureCacheDir(){const _0x1643c6=getCacheDir();!existsSync(_0x1643c6)&&mkdirSync(_0x1643c6,{'recursive':!![]});}function a216_0x228c(){const _0x59cb8b=['stringify','1819899OenNea','3816832ERCfbV','utf-8','get','set','2NBAhqp','clear','390511URKJpd','1257SEsLeF','3698838uZLdHU','.cache/tdx','2648280qZjyEl','trim','root','413896JnxMOJ','4904mdOoZr','parse','\x22,\x20cannot\x20register\x20for\x20\x22','\x22\x20already\x20registered\x20by\x20\x22'];a216_0x228c=function(){return _0x59cb8b;};return a216_0x228c();}function readCacheJson(_0x5cf62e){const _0x23415e=a216_0x2a95f2,_0x29eb36=getCachePath(_0x5cf62e);if(!existsSync(_0x29eb36))return undefined;try{const _0x4d240a=readFileSync(_0x29eb36,_0x23415e(0x13f));return JSON[_0x23415e(0x14d)](_0x4d240a);}catch{return undefined;}}function writeCacheJson(_0x333167,_0x52830d){const _0x206571=a216_0x2a95f2;ensureCacheDir(),writeFileSync(getCachePath(_0x333167),JSON[_0x206571(0x150)](_0x52830d,null,0x2),'utf-8');}function readCacheText(_0x2816f9){const _0x377a1d=a216_0x2a95f2,_0x22056e=getCachePath(_0x2816f9);if(!existsSync(_0x22056e))return undefined;try{return readFileSync(_0x22056e,_0x377a1d(0x13f));}catch{return undefined;}}function writeCacheText(_0x308fd5,_0x1a69bc){const _0x5ed9fa=a216_0x2a95f2;ensureCacheDir(),writeFileSync(getCachePath(_0x308fd5),_0x1a69bc,_0x5ed9fa(0x13f));}function clearCache(_0x9ee0b2){const _0x5f45f0=getCachePath(_0x9ee0b2);if(existsSync(_0x5f45f0))try{unlinkSync(_0x5f45f0);}catch{}}function cacheExists(_0xd9d517){return existsSync(getCachePath(_0xd9d517));}export function createCache(_0x5bdb5a,_0x17074f){return registerCacheKey(_0x5bdb5a,_0x17074f),{'read':()=>readCacheJson(_0x5bdb5a),'write':_0x1b3ba9=>writeCacheJson(_0x5bdb5a,_0x1b3ba9),'clear':()=>clearCache(_0x5bdb5a),'exists':()=>cacheExists(_0x5bdb5a),'path':()=>getCachePath(_0x5bdb5a)};}export function createTextCache(_0x5732e9,_0x163b1d){const _0x169ba7=a216_0x2a95f2;return registerCacheKey(_0x5732e9,_0x163b1d),{'read':()=>readCacheText(_0x5732e9)?.[_0x169ba7(0x149)]()||undefined,'write':_0x1e6612=>writeCacheText(_0x5732e9,_0x1e6612),'clear':()=>clearCache(_0x5732e9),'exists':()=>cacheExists(_0x5732e9),'path':()=>getCachePath(_0x5732e9)};}export function clearRegistry(){const _0x3b4c4d=a216_0x2a95f2;registry[_0x3b4c4d(0x143)]();}
1
+ const a216_0xd0bff3=a216_0x4d58;(function(_0x38545e,_0x4362a8){const _0x158bea=a216_0x4d58,_0x4862e0=_0x38545e();while(!![]){try{const _0x58fad6=-parseInt(_0x158bea(0x10d))/0x1+-parseInt(_0x158bea(0x10a))/0x2*(-parseInt(_0x158bea(0x108))/0x3)+-parseInt(_0x158bea(0x109))/0x4*(parseInt(_0x158bea(0x10b))/0x5)+-parseInt(_0x158bea(0x105))/0x6*(parseInt(_0x158bea(0x104))/0x7)+-parseInt(_0x158bea(0x107))/0x8*(-parseInt(_0x158bea(0x10c))/0x9)+-parseInt(_0x158bea(0x103))/0xa*(-parseInt(_0x158bea(0xfd))/0xb)+-parseInt(_0x158bea(0x10f))/0xc*(-parseInt(_0x158bea(0xfe))/0xd);if(_0x58fad6===_0x4362a8)break;else _0x4862e0['push'](_0x4862e0['shift']());}catch(_0x5e767a){_0x4862e0['push'](_0x4862e0['shift']());}}}(a216_0x6877,0xe3aa6));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0xd0bff3(0x101),registry=new Map();export function registerCacheKey(_0x387ce8,_0x35ca8e){const _0x25644c=a216_0xd0bff3,_0x1db5af=registry['get'](_0x387ce8);if(_0x1db5af&&_0x1db5af!==_0x35ca8e)throw new Error('Cache\x20key\x20\x22'+_0x387ce8+'\x22\x20already\x20registered\x20by\x20\x22'+_0x1db5af+_0x25644c(0x102)+_0x35ca8e+'\x22');registry[_0x25644c(0x106)](_0x387ce8,_0x35ca8e);}function a216_0x6877(){const _0x3ac754=['3656vlepEk','10FIWAVe','10579905NkbTXy','908262FrlzfJ','utf-8','12AWrpnz','stringify','cwd','48851kHmjje','8883667rQVybj','trim','root','.cache/tdx','\x22,\x20cannot\x20register\x20for\x20\x22','230ZxSrTT','518021qzeHWQ','18DLpQcf','set','8hqKfqn','2982BaiPii','3430580KRQZJA'];a216_0x6877=function(){return _0x3ac754;};return a216_0x6877();}export function getCacheDir(){const _0x49893a=a216_0xd0bff3,_0x2d9bc5=process[_0x49893a(0xfc)](),_0x2bec12=_0x2d9bc5===parse(_0x2d9bc5)[_0x49893a(0x100)]?homedir():_0x2d9bc5;return join(_0x2bec12,LOCAL_CACHE_DIR);}export function getCachePath(_0x1a4c18){return join(getCacheDir(),_0x1a4c18);}function ensureCacheDir(){const _0x33a779=getCacheDir();!existsSync(_0x33a779)&&mkdirSync(_0x33a779,{'recursive':!![]});}function readCacheJson(_0x54c8aa){const _0x4416ce=a216_0xd0bff3,_0x59b6bc=getCachePath(_0x54c8aa);if(!existsSync(_0x59b6bc))return undefined;try{const _0x59a805=readFileSync(_0x59b6bc,_0x4416ce(0x10e));return JSON['parse'](_0x59a805);}catch{return undefined;}}function writeCacheJson(_0x14f521,_0x1bfe3b){const _0x465112=a216_0xd0bff3;ensureCacheDir(),writeFileSync(getCachePath(_0x14f521),JSON[_0x465112(0x110)](_0x1bfe3b,null,0x2),_0x465112(0x10e));}function readCacheText(_0x59639c){const _0x3ed0f9=a216_0xd0bff3,_0x4529ec=getCachePath(_0x59639c);if(!existsSync(_0x4529ec))return undefined;try{return readFileSync(_0x4529ec,_0x3ed0f9(0x10e));}catch{return undefined;}}function writeCacheText(_0x83886,_0x2fb888){ensureCacheDir(),writeFileSync(getCachePath(_0x83886),_0x2fb888,'utf-8');}function clearCache(_0x16612e){const _0x2bf886=getCachePath(_0x16612e);if(existsSync(_0x2bf886))try{unlinkSync(_0x2bf886);}catch{}}function cacheExists(_0x71115c){return existsSync(getCachePath(_0x71115c));}export function createCache(_0x170b50,_0x47e600){return registerCacheKey(_0x170b50,_0x47e600),{'read':()=>readCacheJson(_0x170b50),'write':_0x2624b7=>writeCacheJson(_0x170b50,_0x2624b7),'clear':()=>clearCache(_0x170b50),'exists':()=>cacheExists(_0x170b50),'path':()=>getCachePath(_0x170b50)};}function a216_0x4d58(_0x56f1f9,_0x5925de){_0x56f1f9=_0x56f1f9-0xfc;const _0x687700=a216_0x6877();let _0x4d5816=_0x687700[_0x56f1f9];return _0x4d5816;}export function createTextCache(_0x51079a,_0x2a1c30){const _0x2877f7=a216_0xd0bff3;return registerCacheKey(_0x51079a,_0x2a1c30),{'read':()=>readCacheText(_0x51079a)?.[_0x2877f7(0xff)]()||undefined,'write':_0x345af7=>writeCacheText(_0x51079a,_0x345af7),'clear':()=>clearCache(_0x51079a),'exists':()=>cacheExists(_0x51079a),'path':()=>getCachePath(_0x51079a)};}export function clearRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- function a217_0x1c1a(_0x3aefc8,_0x3d35f4){_0x3aefc8=_0x3aefc8-0x1a8;const _0x1d9673=a217_0x1d96();let _0x1c1a66=_0x1d9673[_0x3aefc8];return _0x1c1a66;}const a217_0x332850=a217_0x1c1a;(function(_0x135b4a,_0x4f8242){const _0x24a8a8=a217_0x1c1a,_0x35cc6b=_0x135b4a();while(!![]){try{const _0x214b4f=parseInt(_0x24a8a8(0x1c3))/0x1+parseInt(_0x24a8a8(0x1b5))/0x2*(parseInt(_0x24a8a8(0x1b2))/0x3)+parseInt(_0x24a8a8(0x1b3))/0x4*(parseInt(_0x24a8a8(0x1aa))/0x5)+parseInt(_0x24a8a8(0x1b6))/0x6*(-parseInt(_0x24a8a8(0x1b0))/0x7)+parseInt(_0x24a8a8(0x1bf))/0x8+parseInt(_0x24a8a8(0x1b7))/0x9*(parseInt(_0x24a8a8(0x1c2))/0xa)+-parseInt(_0x24a8a8(0x1b9))/0xb*(parseInt(_0x24a8a8(0x1b1))/0xc);if(_0x214b4f===_0x4f8242)break;else _0x35cc6b['push'](_0x35cc6b['shift']());}catch(_0x5f0dd4){_0x35cc6b['push'](_0x35cc6b['shift']());}}}(a217_0x1d96,0x886dd));import a217_0x176ffc from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x176ffc,ChalkClass=chalkModule[a217_0x332850(0x1b4)]||chalkModule[a217_0x332850(0x1b8)]?.[a217_0x332850(0x1b4)];export class DefaultLogFormatter{[a217_0x332850(0x1bc)];[a217_0x332850(0x1be)];constructor(_0x31c344={}){const _0x501e51=a217_0x332850;this[_0x501e51(0x1bc)]=_0x31c344[_0x501e51(0x1bc)]??![],this[_0x501e51(0x1be)]=_0x31c344[_0x501e51(0x1bc)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x176ffc;}[a217_0x332850(0x1c4)](_0x1db1e1){const _0xd8c9e1=a217_0x332850,_0x472a73=formatTimestamp(_0x1db1e1['timestamp']),_0x5e7f0a=logLevelToString(_0x1db1e1[_0xd8c9e1(0x1a9)]);if(!this[_0xd8c9e1(0x1bc)])return _0x472a73+'\x20['+_0x5e7f0a+_0xd8c9e1(0x1ad)+_0x1db1e1[_0xd8c9e1(0x1bb)]+']\x20'+_0x1db1e1[_0xd8c9e1(0x1ac)];const _0x12c9a4=this[_0xd8c9e1(0x1be)][_0xd8c9e1(0x1ae)](_0x472a73),_0x221c08=this[_0xd8c9e1(0x1c5)](_0x5e7f0a,_0x1db1e1[_0xd8c9e1(0x1a9)]),_0x45c747=this[_0xd8c9e1(0x1be)][_0xd8c9e1(0x1c1)]('['+_0x1db1e1[_0xd8c9e1(0x1bb)]+']');return _0x12c9a4+'\x20'+_0x221c08+'\x20'+_0x45c747+'\x20'+_0x1db1e1[_0xd8c9e1(0x1ac)];}[a217_0x332850(0x1c5)](_0x230dda,_0x405895){const _0x18f4c4=a217_0x332850;switch(_0x405895){case LogLevel[_0x18f4c4(0x1af)]:return this[_0x18f4c4(0x1be)][_0x18f4c4(0x1c0)]('['+_0x230dda+']');case LogLevel[_0x18f4c4(0x1a8)]:return this['chalk']['green']('['+_0x230dda+']');case LogLevel['INFO']:return this[_0x18f4c4(0x1be)][_0x18f4c4(0x1ab)]('['+_0x230dda+']');case LogLevel[_0x18f4c4(0x1ba)]:return this['chalk']['yellow']('['+_0x230dda+']');case LogLevel[_0x18f4c4(0x1bd)]:return this[_0x18f4c4(0x1be)]['red']('['+_0x230dda+']');default:return'['+_0x230dda+']';}}}function a217_0x1d96(){const _0x10265c=['Chalk','1476938gKuYEv','900mxzxgr','290259NSCfpZ','default','11WfUUHm','WARN','component','colors','ERROR','chalk','7729952omOnLg','gray','blue','100VLCPWR','919457XQKUXe','format','colorLevel','DEBUG','level','83410FCAMcW','cyan','message',']\x20[','dim','TRACE','19859wsxGHG','23747988AKRPtx','3aoVCTv','4zPUTzV'];a217_0x1d96=function(){return _0x10265c;};return a217_0x1d96();}
1
+ const a217_0x1b2d36=a217_0x48a6;(function(_0x4b1223,_0x272b06){const _0xa59e7=a217_0x48a6,_0x1eaf59=_0x4b1223();while(!![]){try{const _0xa150a4=parseInt(_0xa59e7(0x1a3))/0x1+-parseInt(_0xa59e7(0x1ac))/0x2*(parseInt(_0xa59e7(0x1a6))/0x3)+parseInt(_0xa59e7(0x1b0))/0x4*(-parseInt(_0xa59e7(0x1a4))/0x5)+-parseInt(_0xa59e7(0x1a7))/0x6+parseInt(_0xa59e7(0x1ad))/0x7+parseInt(_0xa59e7(0x1a8))/0x8+parseInt(_0xa59e7(0x1a0))/0x9*(-parseInt(_0xa59e7(0x1ab))/0xa);if(_0xa150a4===_0x272b06)break;else _0x1eaf59['push'](_0x1eaf59['shift']());}catch(_0x3c5e01){_0x1eaf59['push'](_0x1eaf59['shift']());}}}(a217_0x5e94,0x8433d));function a217_0x5e94(){const _0x1a7eae=['red','timestamp','message','ERROR','level','gray','default','1116vAnale','chalk','component','856221olpuft','3911315MULugA','WARN','9uqtBeu','6350586AAXbJy','7683280HdtqQG','Chalk','colors','3310RrLDFI','311668QQpYjV','7518770SMtJAF','DEBUG','blue','4msiHPP','colorLevel','dim'];a217_0x5e94=function(){return _0x1a7eae;};return a217_0x5e94();}function a217_0x48a6(_0x7c8283,_0x5e639f){_0x7c8283=_0x7c8283-0x19e;const _0x5e9409=a217_0x5e94();let _0x48a625=_0x5e9409[_0x7c8283];return _0x48a625;}import a217_0x422379 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x422379,ChalkClass=chalkModule[a217_0x1b2d36(0x1a9)]||chalkModule[a217_0x1b2d36(0x19f)]?.['Chalk'];export class DefaultLogFormatter{[a217_0x1b2d36(0x1aa)];['chalk'];constructor(_0x6dd085={}){const _0x4b362d=a217_0x1b2d36;this[_0x4b362d(0x1aa)]=_0x6dd085[_0x4b362d(0x1aa)]??![],this[_0x4b362d(0x1a1)]=_0x6dd085[_0x4b362d(0x1aa)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x422379;}['format'](_0x24b789){const _0x304949=a217_0x1b2d36,_0x18c1cb=formatTimestamp(_0x24b789[_0x304949(0x1b4)]),_0x15bb85=logLevelToString(_0x24b789[_0x304949(0x1b7)]);if(!this['colors'])return _0x18c1cb+'\x20['+_0x15bb85+']\x20['+_0x24b789[_0x304949(0x1a2)]+']\x20'+_0x24b789['message'];const _0x15fd7=this[_0x304949(0x1a1)][_0x304949(0x1b2)](_0x18c1cb),_0x3d7a9a=this[_0x304949(0x1b1)](_0x15bb85,_0x24b789[_0x304949(0x1b7)]),_0x3bb1fb=this[_0x304949(0x1a1)][_0x304949(0x1af)]('['+_0x24b789[_0x304949(0x1a2)]+']');return _0x15fd7+'\x20'+_0x3d7a9a+'\x20'+_0x3bb1fb+'\x20'+_0x24b789[_0x304949(0x1b5)];}[a217_0x1b2d36(0x1b1)](_0x169cc9,_0x325563){const _0x551f18=a217_0x1b2d36;switch(_0x325563){case LogLevel['TRACE']:return this[_0x551f18(0x1a1)][_0x551f18(0x19e)]('['+_0x169cc9+']');case LogLevel[_0x551f18(0x1ae)]:return this['chalk']['green']('['+_0x169cc9+']');case LogLevel['INFO']:return this[_0x551f18(0x1a1)]['cyan']('['+_0x169cc9+']');case LogLevel[_0x551f18(0x1a5)]:return this[_0x551f18(0x1a1)]['yellow']('['+_0x169cc9+']');case LogLevel[_0x551f18(0x1b6)]:return this[_0x551f18(0x1a1)][_0x551f18(0x1b3)]('['+_0x169cc9+']');default:return'['+_0x169cc9+']';}}}
@@ -1 +1 @@
1
- function a218_0x25e5(_0x5a7702,_0x6c0b06){_0x5a7702=_0x5a7702-0x13a;var _0x406254=a218_0x4062();var _0x25e507=_0x406254[_0x5a7702];return _0x25e507;}function a218_0x4062(){var _0x489db3=['138120FGqdya','265951yxbAAM','2WPjvgk','778555MlJRlm','736868cughXK','101992KldlmR','5500980yYtmEQ','171AESvAS','42WCauob','306497fSMvvK'];a218_0x4062=function(){return _0x489db3;};return a218_0x4062();}(function(_0x2106c3,_0x1826f4){var _0x546f4a=a218_0x25e5,_0x5cd743=_0x2106c3();while(!![]){try{var _0x138e62=parseInt(_0x546f4a(0x13d))/0x1*(-parseInt(_0x546f4a(0x140))/0x2)+parseInt(_0x546f4a(0x13e))/0x3+-parseInt(_0x546f4a(0x142))/0x4+parseInt(_0x546f4a(0x141))/0x5+parseInt(_0x546f4a(0x13c))/0x6*(-parseInt(_0x546f4a(0x13f))/0x7)+parseInt(_0x546f4a(0x143))/0x8*(parseInt(_0x546f4a(0x13b))/0x9)+parseInt(_0x546f4a(0x13a))/0xa;if(_0x138e62===_0x1826f4)break;else _0x5cd743['push'](_0x5cd743['shift']());}catch(_0x35ada9){_0x5cd743['push'](_0x5cd743['shift']());}}}(a218_0x4062,0x39f67));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0x318d55,_0x38608d){var _0x362ffc=a218_0xa7d9,_0x3dd669=_0x318d55();while(!![]){try{var _0x22cd2d=parseInt(_0x362ffc(0x17b))/0x1*(-parseInt(_0x362ffc(0x177))/0x2)+-parseInt(_0x362ffc(0x17c))/0x3*(parseInt(_0x362ffc(0x17e))/0x4)+-parseInt(_0x362ffc(0x175))/0x5*(parseInt(_0x362ffc(0x17d))/0x6)+parseInt(_0x362ffc(0x179))/0x7+parseInt(_0x362ffc(0x17f))/0x8*(-parseInt(_0x362ffc(0x176))/0x9)+-parseInt(_0x362ffc(0x17a))/0xa*(parseInt(_0x362ffc(0x178))/0xb)+parseInt(_0x362ffc(0x174))/0xc;if(_0x22cd2d===_0x38608d)break;else _0x3dd669['push'](_0x3dd669['shift']());}catch(_0x5f07af){_0x3dd669['push'](_0x3dd669['shift']());}}}(a218_0x2af2,0xddd1c));function a218_0x2af2(){var _0x28575e=['11cjzWcJ','3996888otfwVl','11968730GrwGSO','1679097tlIEMF','108tMcqsE','204rdRZVt','35120uLtCvi','218720zybJZI','58021440KZWmue','139715YXprLw','117yYDkHJ','2hLMdHf'];a218_0x2af2=function(){return _0x28575e;};return a218_0x2af2();}function a218_0xa7d9(_0x4f18ce,_0x41effa){_0x4f18ce=_0x4f18ce-0x174;var _0x2af268=a218_0x2af2();var _0xa7d95=_0x2af268[_0x4f18ce];return _0xa7d95;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- function a219_0x235b(_0x589f89,_0x7fa13c){_0x589f89=_0x589f89-0x1d8;const _0x128341=a219_0x1283();let _0x235b78=_0x128341[_0x589f89];return _0x235b78;}function a219_0x1283(){const _0x2ff311=['1215734vNCkcs','useStderr','15032mQySPB','1562430edwdUT','4CKPGgc','minLevel','log','level','4599SujoLV','7060707qXWfhH','6622165rtmJHI','41894QxNajz','colors','format','12651610RAGzPj','WARN','195fRHapK','formatter'];a219_0x1283=function(){return _0x2ff311;};return a219_0x1283();}const a219_0x4c769d=a219_0x235b;(function(_0x3b7be2,_0x2aa63f){const _0x8f113a=a219_0x235b,_0x519803=_0x3b7be2();while(!![]){try{const _0xa9fec1=parseInt(_0x8f113a(0x1da))/0x1+parseInt(_0x8f113a(0x1e5))/0x2*(-parseInt(_0x8f113a(0x1d8))/0x3)+-parseInt(_0x8f113a(0x1de))/0x4*(-parseInt(_0x8f113a(0x1e4))/0x5)+parseInt(_0x8f113a(0x1dd))/0x6+-parseInt(_0x8f113a(0x1e2))/0x7*(parseInt(_0x8f113a(0x1dc))/0x8)+-parseInt(_0x8f113a(0x1e3))/0x9+parseInt(_0x8f113a(0x1e8))/0xa;if(_0xa9fec1===_0x2aa63f)break;else _0x519803['push'](_0x519803['shift']());}catch(_0x304a43){_0x519803['push'](_0x519803['shift']());}}}(a219_0x1283,0xa7460));import{LogLevel as a219_0x5b0110}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a219_0x4c769d(0x1df)];[a219_0x4c769d(0x1db)];[a219_0x4c769d(0x1d9)];constructor(_0x2fc7a2={}){const _0x45c3b2=a219_0x4c769d;this[_0x45c3b2(0x1df)]=_0x2fc7a2['minLevel']??a219_0x5b0110[_0x45c3b2(0x1e9)],this[_0x45c3b2(0x1db)]=_0x2fc7a2[_0x45c3b2(0x1db)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x2fc7a2[_0x45c3b2(0x1e6)]??!![]});}['handle'](_0x490611){const _0x290027=a219_0x4c769d;if(_0x490611[_0x290027(0x1e1)]<this[_0x290027(0x1df)])return;const _0x11fd6d=this[_0x290027(0x1d9)][_0x290027(0x1e7)](_0x490611);this[_0x290027(0x1db)]&&_0x490611[_0x290027(0x1e1)]>=a219_0x5b0110[_0x290027(0x1e9)]?console['error'](_0x11fd6d):console[_0x290027(0x1e0)](_0x11fd6d);}}
1
+ const a219_0x2d0b51=a219_0x3946;(function(_0x39b81c,_0x5ba779){const _0x5bac16=a219_0x3946,_0x2db4b6=_0x39b81c();while(!![]){try{const _0x4efff9=-parseInt(_0x5bac16(0xb6))/0x1+-parseInt(_0x5bac16(0xc2))/0x2*(-parseInt(_0x5bac16(0xb5))/0x3)+-parseInt(_0x5bac16(0xb2))/0x4*(parseInt(_0x5bac16(0xc0))/0x5)+-parseInt(_0x5bac16(0xbf))/0x6+parseInt(_0x5bac16(0xb7))/0x7+-parseInt(_0x5bac16(0xb3))/0x8+parseInt(_0x5bac16(0xbd))/0x9*(parseInt(_0x5bac16(0xb8))/0xa);if(_0x4efff9===_0x5ba779)break;else _0x2db4b6['push'](_0x2db4b6['shift']());}catch(_0x17dc13){_0x2db4b6['push'](_0x2db4b6['shift']());}}}(a219_0x3a28,0x7692b));function a219_0x3946(_0x32dcd4,_0x2cebca){_0x32dcd4=_0x32dcd4-0xb1;const _0x3a2844=a219_0x3a28();let _0x394614=_0x3a2844[_0x32dcd4];return _0x394614;}import{LogLevel as a219_0x3a642c}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a219_0x2d0b51(0xba)];['useStderr'];[a219_0x2d0b51(0xb1)];constructor(_0x55fed9={}){const _0x5ef3fc=a219_0x2d0b51;this['minLevel']=_0x55fed9[_0x5ef3fc(0xba)]??a219_0x3a642c[_0x5ef3fc(0xbc)],this[_0x5ef3fc(0xb4)]=_0x55fed9[_0x5ef3fc(0xb4)]??!![],this[_0x5ef3fc(0xb1)]=new DefaultLogFormatter({'colors':_0x55fed9[_0x5ef3fc(0xb9)]??!![]});}['handle'](_0x6e37c3){const _0x253f0e=a219_0x2d0b51;if(_0x6e37c3[_0x253f0e(0xbe)]<this['minLevel'])return;const _0x5ce1cf=this[_0x253f0e(0xb1)][_0x253f0e(0xbb)](_0x6e37c3);this[_0x253f0e(0xb4)]&&_0x6e37c3[_0x253f0e(0xbe)]>=a219_0x3a642c['WARN']?console[_0x253f0e(0xc1)](_0x5ce1cf):console['log'](_0x5ce1cf);}}function a219_0x3a28(){const _0xdf7515=['error','116KjtLsw','formatter','3147784sLLKQF','3285272uBcsTM','useStderr','23790HclWEH','463766eCEIdW','4175444irCfJi','24550qFIVuG','colors','minLevel','format','WARN','7146QUVmKl','level','5151936atFmpO','5SMHQzQ'];a219_0x3a28=function(){return _0xdf7515;};return a219_0x3a28();}
@@ -1 +1 @@
1
- const a220_0x4a1d9d=a220_0x3f73;function a220_0x3f73(_0xf95b71,_0x4428be){_0xf95b71=_0xf95b71-0xec;const _0x6af836=a220_0x6af8();let _0x3f7387=_0x6af836[_0xf95b71];return _0x3f7387;}(function(_0x25bd80,_0xd72fa0){const _0x23aa1f=a220_0x3f73,_0x276079=_0x25bd80();while(!![]){try{const _0x1f2b14=-parseInt(_0x23aa1f(0xf5))/0x1+-parseInt(_0x23aa1f(0x108))/0x2*(-parseInt(_0x23aa1f(0x103))/0x3)+parseInt(_0x23aa1f(0x10c))/0x4+-parseInt(_0x23aa1f(0xec))/0x5*(parseInt(_0x23aa1f(0x102))/0x6)+-parseInt(_0x23aa1f(0xfb))/0x7*(-parseInt(_0x23aa1f(0xf2))/0x8)+-parseInt(_0x23aa1f(0x109))/0x9*(parseInt(_0x23aa1f(0x107))/0xa)+parseInt(_0x23aa1f(0x111))/0xb;if(_0x1f2b14===_0xd72fa0)break;else _0x276079['push'](_0x276079['shift']());}catch(_0x310415){_0x276079['push'](_0x276079['shift']());}}}(a220_0x6af8,0xcd88d));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';export class FileHandler{['logPath'];[a220_0x4a1d9d(0x106)];[a220_0x4a1d9d(0x10d)];['logBaseName'];[a220_0x4a1d9d(0xf6)]=null;[a220_0x4a1d9d(0x105)];constructor(_0x4d707e={}){const _0x4c5593=a220_0x4a1d9d;this[_0x4c5593(0xf7)]=_0x4d707e['filePath']??join(getGlobalCacheDir(),_0x4c5593(0x10e),_0x4c5593(0x10a)),this[_0x4c5593(0x106)]=dirname(this[_0x4c5593(0xf7)]),this['logFileName']=basename(this[_0x4c5593(0xf7)]),this[_0x4c5593(0xfe)]=this['logFileName'][_0x4c5593(0x112)](/\.log$/,''),this[_0x4c5593(0x105)]=_0x4d707e[_0x4c5593(0x105)]??!![];}async[a220_0x4a1d9d(0xfa)](){const _0x349885=a220_0x4a1d9d;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x349885(0x105)]&&await this[_0x349885(0xf1)](),this[_0x349885(0xf6)]=createWriteStream(this[_0x349885(0xf7)],{'flags':'a'}),this[_0x349885(0xf6)]['on']('error',_0x3f4098=>{const _0x3c85d4=_0x349885;console[_0x3c85d4(0x100)](_0x3c85d4(0xee)+this[_0x3c85d4(0x10d)]+':',_0x3f4098[_0x3c85d4(0x110)]);});}catch(_0x3a4bbb){console[_0x349885(0x100)](_0x349885(0xf4),_0x3a4bbb);}}[a220_0x4a1d9d(0xfc)](_0x96c1ba){const _0x4b8469=a220_0x4a1d9d;if(!this[_0x4b8469(0xf6)])return;const _0x257f9a=Logger[_0x4b8469(0xff)](_0x96c1ba);this[_0x4b8469(0xf6)]['write'](_0x257f9a+'\x0a');}async[a220_0x4a1d9d(0x10f)](){return new Promise(_0x1fd0e5=>{const _0x3373b6=a220_0x3f73;this['logStream']?this[_0x3373b6(0xf6)][_0x3373b6(0xf8)](()=>{this['logStream']=null,_0x1fd0e5();}):_0x1fd0e5();});}['getLogPath'](){const _0x193937=a220_0x4a1d9d;return this[_0x193937(0xf7)];}async[a220_0x4a1d9d(0xf1)](){const _0x295e14=a220_0x4a1d9d;try{const _0x379125=await readdir(this['logDir']),_0x108ecb=new Date()[_0x295e14(0x104)]()['split']('T')[0x0];if(_0x379125[_0x295e14(0xfd)](this['logFileName'])){const _0x3802b6=join(this[_0x295e14(0x106)],this[_0x295e14(0x10d)]),_0x1967b9=await stat(_0x3802b6),_0xd25b4e=new Date(_0x1967b9[_0x295e14(0x101)])[_0x295e14(0x104)]()[_0x295e14(0xf9)]('T')[0x0];if(_0xd25b4e<_0x108ecb){const _0x37f737=join(this['logDir'],this[_0x295e14(0xfe)]+'-'+_0xd25b4e+_0x295e14(0xef));await rename(_0x3802b6,_0x37f737);}}const _0x333037=await readdir(this['logDir']),_0x578f3d=this['logBaseName'][_0x295e14(0x112)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x56f326=new RegExp('^'+_0x578f3d+_0x295e14(0xf0)),_0xb111fc=_0x333037['filter'](_0x2ee89e=>_0x56f326[_0x295e14(0xf3)](_0x2ee89e));for(const _0x5c45c4 of _0xb111fc){const _0x3e736a=join(this[_0x295e14(0x106)],_0x5c45c4),_0x7f9e6=join(this[_0x295e14(0x106)],_0x5c45c4+_0x295e14(0xed));try{await pipeline(createReadStream(_0x3e736a),createGzip(),createWriteStream(_0x7f9e6)),await unlink(_0x3e736a);}catch(_0x1dc441){console['error'](_0x295e14(0x10b)+_0x5c45c4+':',_0x1dc441);}}}catch{}}}function a220_0x6af8(){const _0x4891f5=['1631FojYJJ','handle','includes','logBaseName','format','error','mtime','415320FQCwqB','93fCHtNL','toISOString','rotate','logDir','4882830HcpRXN','31026pQFmvL','27tubxJP','tdx.log','Warning:\x20Failed\x20to\x20compress\x20','1450680WhnNBl','logFileName','logs','close','message','32305119YfbUeg','replace','95aFVBCP','.gz','Warning:\x20Error\x20writing\x20to\x20','.log','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','rotateOldLogs','52344VTrZjK','test','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','1683023nSaIdE','logStream','logPath','end','split','init'];a220_0x6af8=function(){return _0x4891f5;};return a220_0x6af8();}
1
+ const a220_0x53368e=a220_0x44de;(function(_0x1c9816,_0x304c0d){const _0x4ad273=a220_0x44de,_0x4f7b62=_0x1c9816();while(!![]){try{const _0x5697dd=parseInt(_0x4ad273(0x110))/0x1*(-parseInt(_0x4ad273(0x116))/0x2)+-parseInt(_0x4ad273(0x130))/0x3+-parseInt(_0x4ad273(0x12a))/0x4+-parseInt(_0x4ad273(0x113))/0x5*(-parseInt(_0x4ad273(0x119))/0x6)+-parseInt(_0x4ad273(0x11d))/0x7*(parseInt(_0x4ad273(0x124))/0x8)+parseInt(_0x4ad273(0x120))/0x9+parseInt(_0x4ad273(0x12b))/0xa*(parseInt(_0x4ad273(0x112))/0xb);if(_0x5697dd===_0x304c0d)break;else _0x4f7b62['push'](_0x4f7b62['shift']());}catch(_0x2bfaba){_0x4f7b62['push'](_0x4f7b62['shift']());}}}(a220_0x23ac,0xa9c67));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a220_0x23ac(){const _0x6963a2=['150VcaLhl','logs','error','tdx.log','7zZVaXB','logFileName','mtime','1851669iNtRMt','filePath','logPath','includes','3970616QvEVRj','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','handle','test','rotateOldLogs','Warning:\x20Error\x20writing\x20to\x20','2003996imtafc','20VshIfQ','close','getLogPath','split','toISOString','3909780NTKLyr','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logDir','filter','init','logBaseName','rotate','1aQLnUF','message','17319269aVLXXX','13925bRRgXg','replace','logStream','856678UgWQQg','.gz','end'];a220_0x23ac=function(){return _0x6963a2;};return a220_0x23ac();}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a220_0x44de(_0x2a0a65,_0x5af088){_0x2a0a65=_0x2a0a65-0x10e;const _0x23aca9=a220_0x23ac();let _0x44dec3=_0x23aca9[_0x2a0a65];return _0x44dec3;}export class FileHandler{[a220_0x53368e(0x122)];[a220_0x53368e(0x132)];[a220_0x53368e(0x11e)];['logBaseName'];[a220_0x53368e(0x115)]=null;[a220_0x53368e(0x10f)];constructor(_0x1d9004={}){const _0x1bbbe9=a220_0x53368e;this[_0x1bbbe9(0x122)]=_0x1d9004[_0x1bbbe9(0x121)]??join(getGlobalCacheDir(),_0x1bbbe9(0x11a),_0x1bbbe9(0x11c)),this[_0x1bbbe9(0x132)]=dirname(this[_0x1bbbe9(0x122)]),this[_0x1bbbe9(0x11e)]=basename(this[_0x1bbbe9(0x122)]),this[_0x1bbbe9(0x10e)]=this[_0x1bbbe9(0x11e)][_0x1bbbe9(0x114)](/\.log$/,''),this[_0x1bbbe9(0x10f)]=_0x1d9004['rotate']??!![];}async[a220_0x53368e(0x134)](){const _0x1ac3e3=a220_0x53368e;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x1ac3e3(0x10f)]&&await this[_0x1ac3e3(0x128)](),this['logStream']=createWriteStream(this[_0x1ac3e3(0x122)],{'flags':'a'}),this['logStream']['on']('error',_0x3e48b9=>{const _0x19ed5b=_0x1ac3e3;console[_0x19ed5b(0x11b)](_0x19ed5b(0x129)+this['logFileName']+':',_0x3e48b9[_0x19ed5b(0x111)]);});}catch(_0x1a17bd){console[_0x1ac3e3(0x11b)](_0x1ac3e3(0x125),_0x1a17bd);}}[a220_0x53368e(0x126)](_0x18de43){const _0x33c659=a220_0x53368e;if(!this[_0x33c659(0x115)])return;const _0x249508=Logger['format'](_0x18de43);this[_0x33c659(0x115)]['write'](_0x249508+'\x0a');}async[a220_0x53368e(0x12c)](){return new Promise(_0x53d330=>{const _0x2dd33c=a220_0x44de;this[_0x2dd33c(0x115)]?this[_0x2dd33c(0x115)][_0x2dd33c(0x118)](()=>{const _0x236122=_0x2dd33c;this[_0x236122(0x115)]=null,_0x53d330();}):_0x53d330();});}[a220_0x53368e(0x12d)](){const _0x50a36c=a220_0x53368e;return this[_0x50a36c(0x122)];}async[a220_0x53368e(0x128)](){const _0x78259d=a220_0x53368e;try{const _0x4c9c80=await readdir(this['logDir']),_0x27e81b=new Date()[_0x78259d(0x12f)]()[_0x78259d(0x12e)]('T')[0x0];if(_0x4c9c80[_0x78259d(0x123)](this[_0x78259d(0x11e)])){const _0x5d2b8a=join(this[_0x78259d(0x132)],this['logFileName']),_0x4dac20=await stat(_0x5d2b8a),_0x42c4f1=new Date(_0x4dac20[_0x78259d(0x11f)])[_0x78259d(0x12f)]()['split']('T')[0x0];if(_0x42c4f1<_0x27e81b){const _0x201d4f=join(this[_0x78259d(0x132)],this[_0x78259d(0x10e)]+'-'+_0x42c4f1+'.log');await rename(_0x5d2b8a,_0x201d4f);}}const _0x1a5d53=await readdir(this[_0x78259d(0x132)]),_0x24ffc8=this['logBaseName']['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x3f5a5c=new RegExp('^'+_0x24ffc8+_0x78259d(0x131)),_0x5ed2cf=_0x1a5d53[_0x78259d(0x133)](_0x51297d=>_0x3f5a5c[_0x78259d(0x127)](_0x51297d));for(const _0x243d04 of _0x5ed2cf){const _0x31e596=join(this[_0x78259d(0x132)],_0x243d04),_0x2a7331=join(this[_0x78259d(0x132)],_0x243d04+_0x78259d(0x117));try{await pipeline(createReadStream(_0x31e596),createGzip(),createWriteStream(_0x2a7331)),await unlink(_0x31e596);}catch(_0x5ac1cc){console[_0x78259d(0x11b)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x243d04+':',_0x5ac1cc);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x4e5e49,_0x35ac73){var _0x79c186=a221_0x429e,_0x5da329=_0x4e5e49();while(!![]){try{var _0x4b453b=-parseInt(_0x79c186(0x1a0))/0x1*(parseInt(_0x79c186(0x196))/0x2)+parseInt(_0x79c186(0x19e))/0x3*(parseInt(_0x79c186(0x197))/0x4)+parseInt(_0x79c186(0x19d))/0x5*(parseInt(_0x79c186(0x19c))/0x6)+parseInt(_0x79c186(0x1a1))/0x7+-parseInt(_0x79c186(0x19f))/0x8*(-parseInt(_0x79c186(0x199))/0x9)+-parseInt(_0x79c186(0x19a))/0xa+parseInt(_0x79c186(0x198))/0xb*(-parseInt(_0x79c186(0x19b))/0xc);if(_0x4b453b===_0x35ac73)break;else _0x5da329['push'](_0x5da329['shift']());}catch(_0x1f4e6d){_0x5da329['push'](_0x5da329['shift']());}}}(a221_0x167b,0x53867));function a221_0x167b(){var _0x4996db=['7328DCAYNW','536162OjBcvm','44559nMWwFg','1660190Omjgyr','60ngMeZM','426024alZcKr','15FusNYa','354qxyOBD','568ijwJSd','388988XUFZfv','2520889KmLugr','2RwMyQr'];a221_0x167b=function(){return _0x4996db;};return a221_0x167b();}function a221_0x429e(_0x4b522a,_0x3e8a47){_0x4b522a=_0x4b522a-0x196;var _0x167b52=a221_0x167b();var _0x429e84=_0x167b52[_0x4b522a];return _0x429e84;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ function a221_0x149e(){var _0x509391=['3161356DpOhuz','5293140THKXfQ','2718457AjgWbf','397344vrGMrB','467848bFCrow','45CddYUQ','331503ajOgIX','4lsBLLa','1294310VUqzwN','6IjTePt'];a221_0x149e=function(){return _0x509391;};return a221_0x149e();}(function(_0x18ef44,_0x4fe040){var _0x163cb7=a221_0x9d9e,_0x55919b=_0x18ef44();while(!![]){try{var _0x423051=-parseInt(_0x163cb7(0xfa))/0x1+-parseInt(_0x163cb7(0xfe))/0x2*(parseInt(_0x163cb7(0xfd))/0x3)+parseInt(_0x163cb7(0xf7))/0x4+-parseInt(_0x163cb7(0xf5))/0x5+parseInt(_0x163cb7(0xf6))/0x6*(parseInt(_0x163cb7(0xf9))/0x7)+-parseInt(_0x163cb7(0xfb))/0x8*(parseInt(_0x163cb7(0xfc))/0x9)+parseInt(_0x163cb7(0xf8))/0xa;if(_0x423051===_0x4fe040)break;else _0x55919b['push'](_0x55919b['shift']());}catch(_0x5ce50c){_0x55919b['push'](_0x55919b['shift']());}}}(a221_0x149e,0x83717));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a221_0x9d9e(_0x3d3f49,_0x4c8d70){_0x3d3f49=_0x3d3f49-0xf5;var _0x149e9f=a221_0x149e();var _0x9d9e21=_0x149e9f[_0x3d3f49];return _0x9d9e21;}export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- (function(_0x51db60,_0x1d8064){var _0x52063a=a222_0x1910,_0x376539=_0x51db60();while(!![]){try{var _0x6f87f=parseInt(_0x52063a(0x16d))/0x1+-parseInt(_0x52063a(0x16e))/0x2*(-parseInt(_0x52063a(0x170))/0x3)+-parseInt(_0x52063a(0x16f))/0x4*(parseInt(_0x52063a(0x16c))/0x5)+-parseInt(_0x52063a(0x16a))/0x6+parseInt(_0x52063a(0x16b))/0x7+parseInt(_0x52063a(0x168))/0x8+-parseInt(_0x52063a(0x171))/0x9*(-parseInt(_0x52063a(0x169))/0xa);if(_0x6f87f===_0x1d8064)break;else _0x376539['push'](_0x376539['shift']());}catch(_0x554ee0){_0x376539['push'](_0x376539['shift']());}}}(a222_0x39b8,0x76284));function a222_0x1910(_0x770a04,_0x459e7a){_0x770a04=_0x770a04-0x168;var _0x39b8e7=a222_0x39b8();var _0x1910f0=_0x39b8e7[_0x770a04];return _0x1910f0;}function a222_0x39b8(){var _0x2886ca=['252268QHsfoM','2884vtWCsF','2516516CFgFGd','1149VeRhTE','9tuqUHn','864088KzetIZ','2124370zPFXXK','2304546reSvOG','2605330EIyCcM','5XSDKSa'];a222_0x39b8=function(){return _0x2886ca;};return a222_0x39b8();}export class NullHandler{['handle'](_0x40f492){}}
1
+ function a222_0x294d(){var _0x6b8ce9=['2933592Hwtkly','17545527uhIjZA','1003605KOoLxU','4hvXzmL','208984kZOgjF','2sExZAi','2333090StfcnL','handle','2095640FYRlCL','3855257VFrsYS'];a222_0x294d=function(){return _0x6b8ce9;};return a222_0x294d();}function a222_0x576f(_0x3df866,_0x5a02ad){_0x3df866=_0x3df866-0x17d;var _0x294d2d=a222_0x294d();var _0x576feb=_0x294d2d[_0x3df866];return _0x576feb;}var a222_0x551742=a222_0x576f;(function(_0xaa5894,_0x3d827a){var _0x38647c=a222_0x576f,_0xb58204=_0xaa5894();while(!![]){try{var _0x332019=-parseInt(_0x38647c(0x186))/0x1*(parseInt(_0x38647c(0x185))/0x2)+parseInt(_0x38647c(0x183))/0x3+-parseInt(_0x38647c(0x184))/0x4*(parseInt(_0x38647c(0x17d))/0x5)+-parseInt(_0x38647c(0x181))/0x6+-parseInt(_0x38647c(0x180))/0x7+-parseInt(_0x38647c(0x17f))/0x8+parseInt(_0x38647c(0x182))/0x9;if(_0x332019===_0x3d827a)break;else _0xb58204['push'](_0xb58204['shift']());}catch(_0x1ace40){_0xb58204['push'](_0xb58204['shift']());}}}(a222_0x294d,0x4ae6e));export class NullHandler{[a222_0x551742(0x17e)](_0xb7058a){}}
@@ -1 +1 @@
1
- (function(_0x2f37a8,_0x35e0b0){var _0x2ece55=a223_0x206b,_0x3aea8f=_0x2f37a8();while(!![]){try{var _0xcbd0d=-parseInt(_0x2ece55(0xad))/0x1*(parseInt(_0x2ece55(0xac))/0x2)+-parseInt(_0x2ece55(0xae))/0x3*(parseInt(_0x2ece55(0xa9))/0x4)+parseInt(_0x2ece55(0xaa))/0x5+parseInt(_0x2ece55(0xb0))/0x6*(-parseInt(_0x2ece55(0xab))/0x7)+-parseInt(_0x2ece55(0xa8))/0x8+parseInt(_0x2ece55(0xaf))/0x9+parseInt(_0x2ece55(0xa7))/0xa*(parseInt(_0x2ece55(0xa6))/0xb);if(_0xcbd0d===_0x35e0b0)break;else _0x3aea8f['push'](_0x3aea8f['shift']());}catch(_0x2fe09f){_0x3aea8f['push'](_0x3aea8f['shift']());}}}(a223_0xb282,0xb9342));export{Logger}from'./logger.js';function a223_0x206b(_0xa7574e,_0x5f1ad4){_0xa7574e=_0xa7574e-0xa6;var _0xb282c3=a223_0xb282();var _0x206b27=_0xb282c3[_0xa7574e];return _0x206b27;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a223_0xb282(){var _0x5238dd=['23272030zMtkbl','6997536FnXrKU','195196bCuJve','5014280DkMirF','217iMiKjv','32074thQWgL','59NSVLyy','69LlgrdA','8844057iiQXNh','118236EZGHrh','11ovXyfx'];a223_0xb282=function(){return _0x5238dd;};return a223_0xb282();}
1
+ (function(_0x231889,_0x189f7b){var _0xd5e0e4=a223_0x18a0,_0x3ef4d4=_0x231889();while(!![]){try{var _0x336ba1=-parseInt(_0xd5e0e4(0x103))/0x1*(parseInt(_0xd5e0e4(0x101))/0x2)+parseInt(_0xd5e0e4(0x106))/0x3*(-parseInt(_0xd5e0e4(0x100))/0x4)+parseInt(_0xd5e0e4(0x109))/0x5*(-parseInt(_0xd5e0e4(0x107))/0x6)+-parseInt(_0xd5e0e4(0x105))/0x7+parseInt(_0xd5e0e4(0x108))/0x8+parseInt(_0xd5e0e4(0x102))/0x9+parseInt(_0xd5e0e4(0x104))/0xa;if(_0x336ba1===_0x189f7b)break;else _0x3ef4d4['push'](_0x3ef4d4['shift']());}catch(_0xb078a0){_0x3ef4d4['push'](_0x3ef4d4['shift']());}}}(a223_0x22d1,0x3eac8));export{Logger}from'./logger.js';function a223_0x22d1(){var _0x85b198=['16OJuSgX','27892YwkIff','1791576qaaJbh','33meeFiL','13444900qZAqia','1093085nVIthH','382518avcpwq','162KWhuAO','843392WMsVsj','49235DvtspI'];a223_0x22d1=function(){return _0x85b198;};return a223_0x22d1();}function a223_0x18a0(_0x2caad9,_0x11ecbf){_0x2caad9=_0x2caad9-0x100;var _0x22d130=a223_0x22d1();var _0x18a0f8=_0x22d130[_0x2caad9];return _0x18a0f8;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- const a224_0x7080da=a224_0x4694;(function(_0x615192,_0x476f8e){const _0x1dfb59=a224_0x4694,_0x1070fb=_0x615192();while(!![]){try{const _0x1200c9=parseInt(_0x1dfb59(0xb0))/0x1*(-parseInt(_0x1dfb59(0xb1))/0x2)+-parseInt(_0x1dfb59(0xc6))/0x3*(parseInt(_0x1dfb59(0x90))/0x4)+parseInt(_0x1dfb59(0xa1))/0x5*(parseInt(_0x1dfb59(0xc2))/0x6)+parseInt(_0x1dfb59(0x9a))/0x7+parseInt(_0x1dfb59(0xad))/0x8+-parseInt(_0x1dfb59(0x95))/0x9*(-parseInt(_0x1dfb59(0x96))/0xa)+-parseInt(_0x1dfb59(0xa9))/0xb;if(_0x1200c9===_0x476f8e)break;else _0x1070fb['push'](_0x1070fb['shift']());}catch(_0x248f80){_0x1070fb['push'](_0x1070fb['shift']());}}}(a224_0x304c,0x608b5));import{LogLevel as a224_0x5ecb4a,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a224_0x5ecb4a[a224_0x7080da(0xb8)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x17bc86){const _0x5d983e=a224_0x7080da;if(typeof _0x17bc86===_0x5d983e(0xca))return _0x17bc86;if(_0x17bc86 instanceof Error)return _0x17bc86[_0x5d983e(0x9c)]||_0x17bc86[_0x5d983e(0xac)]+':\x20'+_0x17bc86[_0x5d983e(0xa0)];try{return JSON[_0x5d983e(0xbc)](_0x17bc86,(_0x5c9fe3,_0x5f075c)=>{const _0x32af16=_0x5d983e;if(_0x5f075c instanceof Error)return{'name':_0x5f075c['name'],'message':_0x5f075c[_0x32af16(0xa0)],'stack':_0x5f075c[_0x32af16(0x9c)],'cause':_0x5f075c['cause']};return _0x5f075c;});}catch{return String(_0x17bc86);}}export class Logger{[a224_0x7080da(0x9b)];constructor(_0x539cef){const _0x1c43dc=a224_0x7080da;this[_0x1c43dc(0x9b)]=_0x539cef;}static['of'](_0x18b384){const _0x293410=a224_0x7080da,_0x5cd97f=typeof _0x18b384===_0x293410(0xca)?_0x18b384:_0x18b384['name'];let _0x157f4c=state[_0x293410(0xa8)]['get'](_0x5cd97f);return!_0x157f4c&&(_0x157f4c=new Logger(_0x5cd97f),state[_0x293410(0xa8)]['set'](_0x5cd97f,_0x157f4c)),_0x157f4c;}static async[a224_0x7080da(0xae)](_0x3f707c={}){const _0x31a050=a224_0x7080da;state[_0x31a050(0x93)]=_0x3f707c[_0x31a050(0x93)]??a224_0x5ecb4a[_0x31a050(0xb8)],state['handlers']=_0x3f707c[_0x31a050(0x9d)]??[],state[_0x31a050(0xa4)]=_0x3f707c[_0x31a050(0xa4)]??null,state[_0x31a050(0xc7)][_0x31a050(0xc3)]();if(_0x3f707c[_0x31a050(0xc7)])for(const [_0x23e8b7,_0x123cdb]of Object['entries'](_0x3f707c[_0x31a050(0xc7)])){state[_0x31a050(0xc7)][_0x31a050(0xc9)](_0x23e8b7,_0x123cdb);}for(const _0x4d5ed1 of state[_0x31a050(0x9d)]){_0x4d5ed1['init']&&await _0x4d5ed1[_0x31a050(0xae)]();}state[_0x31a050(0xb6)]=!![];for(const _0x5a72e8 of state[_0x31a050(0xaa)]){Logger[_0x31a050(0xc5)](_0x5a72e8);}state['pendingRecords']=[];}static[a224_0x7080da(0xc8)](_0x31af59,_0x44675f){const _0x27f167=a224_0x7080da;state['levelOverrides'][_0x27f167(0xc9)](_0x31af59,_0x44675f);}static[a224_0x7080da(0xba)](_0x4ac73d){const _0xb29586=a224_0x7080da;state[_0xb29586(0x93)]=_0x4ac73d;}static[a224_0x7080da(0xa6)](_0x5c9484){const _0x1a6afd=a224_0x7080da;state[_0x1a6afd(0x9d)][_0x1a6afd(0xb5)](_0x5c9484),state[_0x1a6afd(0xb6)]&&_0x5c9484[_0x1a6afd(0xae)]&&_0x5c9484[_0x1a6afd(0xae)]();}static[a224_0x7080da(0xbd)](){state['handlers']=[];}static async[a224_0x7080da(0xb4)](){const _0x5c430e=a224_0x7080da;for(const _0x4b9984 of state[_0x5c430e(0x9d)]){_0x4b9984[_0x5c430e(0x9e)]&&await _0x4b9984['close']();}state['handlers']=[],state[_0x5c430e(0xb6)]=![],state['loggers'][_0x5c430e(0xc3)](),state[_0x5c430e(0xaa)]=[];}static[a224_0x7080da(0xb7)](){const _0xebed47=a224_0x7080da;state[_0xebed47(0xb6)]=![],state[_0xebed47(0x93)]=a224_0x5ecb4a[_0xebed47(0xb8)],state['levelOverrides']['clear'](),state[_0xebed47(0x9d)]=[],state['formatter']=null,state[_0xebed47(0xa8)][_0xebed47(0xc3)](),state['pendingRecords']=[];}static['isInitialized'](){const _0x5c11ac=a224_0x7080da;return state[_0x5c11ac(0xb6)];}static[a224_0x7080da(0xb2)](_0x840c6c){const _0x17f2c8=a224_0x7080da;if(state[_0x17f2c8(0xc7)][_0x17f2c8(0xb3)](_0x840c6c))return state[_0x17f2c8(0xc7)][_0x17f2c8(0xab)](_0x840c6c);const _0x473562=_0x840c6c[_0x17f2c8(0xaf)]('.');for(let _0x643b20=_0x473562[_0x17f2c8(0xa2)]-0x1;_0x643b20>0x0;_0x643b20--){const _0x4e1df8=_0x473562[_0x17f2c8(0xa5)](0x0,_0x643b20)['join']('.');if(state[_0x17f2c8(0xc7)][_0x17f2c8(0xb3)](_0x4e1df8))return state['levelOverrides'][_0x17f2c8(0xab)](_0x4e1df8);}return state[_0x17f2c8(0x93)];}[a224_0x7080da(0x98)](_0x31a195){const _0x2b4a5e=Logger['getEffectiveLevel'](this['component']);return _0x31a195>=_0x2b4a5e;}static['dispatch'](_0xaeb1ea){const _0x1e8de7=a224_0x7080da;for(const _0x439a27 of state[_0x1e8de7(0x9d)]){_0x439a27['handle'](_0xaeb1ea);}}[a224_0x7080da(0xb9)](_0x327b08,_0x3736ef){const _0x4572c1=a224_0x7080da;if(!this[_0x4572c1(0x98)](_0x327b08))return;const _0x54f60f=_0x3736ef['map'](_0x135967=>typeof _0x135967===_0x4572c1(0x94)?_0x135967():_0x135967),_0x56025d=_0x54f60f['map'](safeStringify)[_0x4572c1(0xc0)]('\x20'),_0x120b72={'timestamp':new Date(),'level':_0x327b08,'component':this[_0x4572c1(0x9b)],'message':_0x56025d};if(!state[_0x4572c1(0xb6)]){state[_0x4572c1(0xaa)][_0x4572c1(0xa2)]<MAX_PENDING_RECORDS&&state[_0x4572c1(0xaa)][_0x4572c1(0xb5)](_0x120b72);return;}Logger[_0x4572c1(0xc5)](_0x120b72);}[a224_0x7080da(0xc4)](..._0x4d24aa){const _0x4e3a5a=a224_0x7080da;this[_0x4e3a5a(0xb9)](a224_0x5ecb4a[_0x4e3a5a(0x9f)],_0x4d24aa);}[a224_0x7080da(0xa7)](..._0xc205a2){const _0x24e787=a224_0x7080da;this['log'](a224_0x5ecb4a[_0x24e787(0xc1)],_0xc205a2);}[a224_0x7080da(0xa3)](..._0x1f0cd1){const _0x56d85d=a224_0x7080da;this[_0x56d85d(0xb9)](a224_0x5ecb4a[_0x56d85d(0xb8)],_0x1f0cd1);}['warn'](..._0x322973){const _0x3a0c02=a224_0x7080da;this[_0x3a0c02(0xb9)](a224_0x5ecb4a[_0x3a0c02(0xbe)],_0x322973);}[a224_0x7080da(0xbf)](..._0x3d83f2){const _0x2f9976=a224_0x7080da;this[_0x2f9976(0xb9)](a224_0x5ecb4a[_0x2f9976(0x91)],_0x3d83f2);}static['getFormatter'](){const _0x2c6a33=a224_0x7080da;return state[_0x2c6a33(0xa4)];}static[a224_0x7080da(0x92)](_0x4ad525){const _0x2eaceb=a224_0x7080da;if(state['formatter'])return state[_0x2eaceb(0xa4)][_0x2eaceb(0x92)](_0x4ad525);return _0x4ad525[_0x2eaceb(0x97)][_0x2eaceb(0x99)]()+'\x20['+logLevelToString(_0x4ad525[_0x2eaceb(0xbb)])+']\x20['+_0x4ad525[_0x2eaceb(0x9b)]+']\x20'+_0x4ad525[_0x2eaceb(0xa0)];}}function a224_0x4694(_0x7d0c,_0x3d558){_0x7d0c=_0x7d0c-0x90;const _0x304c9d=a224_0x304c();let _0x469434=_0x304c9d[_0x7d0c];return _0x469434;}function a224_0x304c(){const _0x4d99e3=['100848CnOLtV','levelOverrides','setLogLevel','set','string','32UnprWI','ERROR','format','defaultLevel','function','6855957bbvjiU','10anfBHY','timestamp','shouldLog','toISOString','1099700vSsixV','component','stack','handlers','close','TRACE','message','5HJEowa','length','info','formatter','slice','addHandler','debug','loggers','3008753wFqRiR','pendingRecords','get','name','1275568gdUmsz','init','split','8szPcLY','110378jKrhnJ','getEffectiveLevel','has','shutdown','push','initialized','reset','INFO','log','setDefaultLevel','level','stringify','clearHandlers','WARN','error','join','DEBUG','1806534DLLWDG','clear','trace','dispatch'];a224_0x304c=function(){return _0x4d99e3;};return a224_0x304c();}
1
+ const a224_0x285ab8=a224_0x52fe;(function(_0x1cdd65,_0x2f910a){const _0xede67=a224_0x52fe,_0xe3e00=_0x1cdd65();while(!![]){try{const _0x61b134=parseInt(_0xede67(0x1cf))/0x1+-parseInt(_0xede67(0x1d2))/0x2+parseInt(_0xede67(0x1ed))/0x3+parseInt(_0xede67(0x1c6))/0x4*(parseInt(_0xede67(0x1d7))/0x5)+parseInt(_0xede67(0x1bc))/0x6+-parseInt(_0xede67(0x1d1))/0x7*(parseInt(_0xede67(0x1ca))/0x8)+-parseInt(_0xede67(0x1c8))/0x9*(-parseInt(_0xede67(0x1d9))/0xa);if(_0x61b134===_0x2f910a)break;else _0xe3e00['push'](_0xe3e00['shift']());}catch(_0x336ef6){_0xe3e00['push'](_0xe3e00['shift']());}}}(a224_0x5ecf,0x6a2cb));function a224_0x5ecf(){const _0x4cd99c=['toISOString','push','close','formatter','shouldLog','stringify','103494CawrMP','clear','log','shutdown','map','trace','format','addHandler','function','5059662xMEvtm','initialized','levelOverrides','init','defaultLevel','reset','getEffectiveLevel','clearHandlers','component','cause','2872YKASEL','loggers','1208286hicMnX','error','3775112mmTPQU','getFormatter','isInitialized','handlers','setLogLevel','484290edncjd','INFO','7TFwmJZ','1507922xsofJL','dispatch','TRACE','message','WARN','1145oYcsCX','has','10qrjiZo','stack','setDefaultLevel','string','set','handle','warn','get','length','pendingRecords','entries','info','name','DEBUG'];a224_0x5ecf=function(){return _0x4cd99c;};return a224_0x5ecf();}import{LogLevel as a224_0x23f248,logLevelToString}from'./types.js';function a224_0x52fe(_0x14d717,_0x1533b2){_0x14d717=_0x14d717-0x1b6;const _0x5ecf15=a224_0x5ecf();let _0x52fed9=_0x5ecf15[_0x14d717];return _0x52fed9;}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a224_0x23f248[a224_0x285ab8(0x1d0)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x543f2d){const _0x38fec8=a224_0x285ab8;if(typeof _0x543f2d===_0x38fec8(0x1dc))return _0x543f2d;if(_0x543f2d instanceof Error)return _0x543f2d['stack']||_0x543f2d[_0x38fec8(0x1e5)]+':\x20'+_0x543f2d[_0x38fec8(0x1d5)];try{return JSON[_0x38fec8(0x1ec)](_0x543f2d,(_0xd30faa,_0x493990)=>{const _0x17dcb2=_0x38fec8;if(_0x493990 instanceof Error)return{'name':_0x493990[_0x17dcb2(0x1e5)],'message':_0x493990[_0x17dcb2(0x1d5)],'stack':_0x493990[_0x17dcb2(0x1da)],'cause':_0x493990[_0x17dcb2(0x1c5)]};return _0x493990;});}catch{return String(_0x543f2d);}}export class Logger{['component'];constructor(_0x58349b){const _0x2a4bdb=a224_0x285ab8;this[_0x2a4bdb(0x1c4)]=_0x58349b;}static['of'](_0x43b88a){const _0xb0ef7a=a224_0x285ab8,_0x4bdad2=typeof _0x43b88a===_0xb0ef7a(0x1dc)?_0x43b88a:_0x43b88a[_0xb0ef7a(0x1e5)];let _0xbf1f7a=state['loggers'][_0xb0ef7a(0x1e0)](_0x4bdad2);return!_0xbf1f7a&&(_0xbf1f7a=new Logger(_0x4bdad2),state['loggers'][_0xb0ef7a(0x1dd)](_0x4bdad2,_0xbf1f7a)),_0xbf1f7a;}static async[a224_0x285ab8(0x1bf)](_0x1ccd6d={}){const _0x4019bf=a224_0x285ab8;state[_0x4019bf(0x1c0)]=_0x1ccd6d['defaultLevel']??a224_0x23f248[_0x4019bf(0x1d0)],state[_0x4019bf(0x1cd)]=_0x1ccd6d['handlers']??[],state[_0x4019bf(0x1ea)]=_0x1ccd6d[_0x4019bf(0x1ea)]??null,state['levelOverrides'][_0x4019bf(0x1ee)]();if(_0x1ccd6d[_0x4019bf(0x1be)])for(const [_0x5bedf9,_0x403d15]of Object[_0x4019bf(0x1e3)](_0x1ccd6d[_0x4019bf(0x1be)])){state[_0x4019bf(0x1be)][_0x4019bf(0x1dd)](_0x5bedf9,_0x403d15);}for(const _0x20735a of state[_0x4019bf(0x1cd)]){_0x20735a[_0x4019bf(0x1bf)]&&await _0x20735a[_0x4019bf(0x1bf)]();}state['initialized']=!![];for(const _0x5b0ad7 of state[_0x4019bf(0x1e2)]){Logger[_0x4019bf(0x1d3)](_0x5b0ad7);}state[_0x4019bf(0x1e2)]=[];}static[a224_0x285ab8(0x1ce)](_0x1778f4,_0x72275d){const _0x24c0f7=a224_0x285ab8;state[_0x24c0f7(0x1be)][_0x24c0f7(0x1dd)](_0x1778f4,_0x72275d);}static[a224_0x285ab8(0x1db)](_0x214e79){state['defaultLevel']=_0x214e79;}static[a224_0x285ab8(0x1ba)](_0x470d43){const _0x40c3f2=a224_0x285ab8;state[_0x40c3f2(0x1cd)][_0x40c3f2(0x1e8)](_0x470d43),state[_0x40c3f2(0x1bd)]&&_0x470d43[_0x40c3f2(0x1bf)]&&_0x470d43[_0x40c3f2(0x1bf)]();}static[a224_0x285ab8(0x1c3)](){const _0x290bd7=a224_0x285ab8;state[_0x290bd7(0x1cd)]=[];}static async[a224_0x285ab8(0x1b6)](){const _0xbbdd08=a224_0x285ab8;for(const _0x16e42b of state['handlers']){_0x16e42b['close']&&await _0x16e42b[_0xbbdd08(0x1e9)]();}state['handlers']=[],state[_0xbbdd08(0x1bd)]=![],state['loggers'][_0xbbdd08(0x1ee)](),state[_0xbbdd08(0x1e2)]=[];}static[a224_0x285ab8(0x1c1)](){const _0x4ceea5=a224_0x285ab8;state[_0x4ceea5(0x1bd)]=![],state[_0x4ceea5(0x1c0)]=a224_0x23f248[_0x4ceea5(0x1d0)],state[_0x4ceea5(0x1be)]['clear'](),state[_0x4ceea5(0x1cd)]=[],state[_0x4ceea5(0x1ea)]=null,state[_0x4ceea5(0x1c7)][_0x4ceea5(0x1ee)](),state[_0x4ceea5(0x1e2)]=[];}static[a224_0x285ab8(0x1cc)](){const _0x15c0b7=a224_0x285ab8;return state[_0x15c0b7(0x1bd)];}static['getEffectiveLevel'](_0x3cc545){const _0xdefd64=a224_0x285ab8;if(state[_0xdefd64(0x1be)][_0xdefd64(0x1d8)](_0x3cc545))return state['levelOverrides']['get'](_0x3cc545);const _0x4c4163=_0x3cc545['split']('.');for(let _0x3e7600=_0x4c4163[_0xdefd64(0x1e1)]-0x1;_0x3e7600>0x0;_0x3e7600--){const _0x812cb0=_0x4c4163['slice'](0x0,_0x3e7600)['join']('.');if(state['levelOverrides']['has'](_0x812cb0))return state[_0xdefd64(0x1be)][_0xdefd64(0x1e0)](_0x812cb0);}return state['defaultLevel'];}[a224_0x285ab8(0x1eb)](_0x357554){const _0x5b1df6=a224_0x285ab8,_0x281bf7=Logger[_0x5b1df6(0x1c2)](this[_0x5b1df6(0x1c4)]);return _0x357554>=_0x281bf7;}static[a224_0x285ab8(0x1d3)](_0x20df3b){const _0x488f94=a224_0x285ab8;for(const _0x1d6764 of state[_0x488f94(0x1cd)]){_0x1d6764[_0x488f94(0x1de)](_0x20df3b);}}['log'](_0xec0e1d,_0x27db3c){const _0x57b072=a224_0x285ab8;if(!this[_0x57b072(0x1eb)](_0xec0e1d))return;const _0x3d20d5=_0x27db3c[_0x57b072(0x1b7)](_0x535832=>typeof _0x535832===_0x57b072(0x1bb)?_0x535832():_0x535832),_0x1c37d1=_0x3d20d5[_0x57b072(0x1b7)](safeStringify)['join']('\x20'),_0x217a47={'timestamp':new Date(),'level':_0xec0e1d,'component':this[_0x57b072(0x1c4)],'message':_0x1c37d1};if(!state[_0x57b072(0x1bd)]){state[_0x57b072(0x1e2)][_0x57b072(0x1e1)]<MAX_PENDING_RECORDS&&state['pendingRecords'][_0x57b072(0x1e8)](_0x217a47);return;}Logger[_0x57b072(0x1d3)](_0x217a47);}[a224_0x285ab8(0x1b8)](..._0x555c68){const _0x38525e=a224_0x285ab8;this['log'](a224_0x23f248[_0x38525e(0x1d4)],_0x555c68);}['debug'](..._0x41cb15){const _0x4ce324=a224_0x285ab8;this[_0x4ce324(0x1ef)](a224_0x23f248[_0x4ce324(0x1e6)],_0x41cb15);}[a224_0x285ab8(0x1e4)](..._0x2964e3){const _0x5608c3=a224_0x285ab8;this[_0x5608c3(0x1ef)](a224_0x23f248['INFO'],_0x2964e3);}[a224_0x285ab8(0x1df)](..._0x3a1bf6){const _0x3779b2=a224_0x285ab8;this['log'](a224_0x23f248[_0x3779b2(0x1d6)],_0x3a1bf6);}[a224_0x285ab8(0x1c9)](..._0x541245){const _0x3dc0bd=a224_0x285ab8;this[_0x3dc0bd(0x1ef)](a224_0x23f248['ERROR'],_0x541245);}static[a224_0x285ab8(0x1cb)](){return state['formatter'];}static[a224_0x285ab8(0x1b9)](_0x4fa71e){const _0x3315dc=a224_0x285ab8;if(state[_0x3315dc(0x1ea)])return state[_0x3315dc(0x1ea)][_0x3315dc(0x1b9)](_0x4fa71e);return _0x4fa71e['timestamp'][_0x3315dc(0x1e7)]()+'\x20['+logLevelToString(_0x4fa71e['level'])+']\x20['+_0x4fa71e[_0x3315dc(0x1c4)]+']\x20'+_0x4fa71e['message'];}}
@@ -1 +1 @@
1
- (function(_0x40db57,_0x550e2e){const _0x354c12=a225_0x14b3,_0x228d45=_0x40db57();while(!![]){try{const _0x5a7f3c=parseInt(_0x354c12(0xde))/0x1+parseInt(_0x354c12(0xcf))/0x2*(-parseInt(_0x354c12(0xe4))/0x3)+parseInt(_0x354c12(0xd1))/0x4*(parseInt(_0x354c12(0xd6))/0x5)+parseInt(_0x354c12(0xcd))/0x6*(-parseInt(_0x354c12(0xdd))/0x7)+-parseInt(_0x354c12(0xd7))/0x8+-parseInt(_0x354c12(0xc5))/0x9*(parseInt(_0x354c12(0xd2))/0xa)+parseInt(_0x354c12(0xce))/0xb*(parseInt(_0x354c12(0xd9))/0xc);if(_0x5a7f3c===_0x550e2e)break;else _0x228d45['push'](_0x228d45['shift']());}catch(_0x537b5a){_0x228d45['push'](_0x228d45['shift']());}}}(a225_0x216a,0x765d5));export var LogLevel;function a225_0x14b3(_0x29e8c3,_0x251b71){_0x29e8c3=_0x29e8c3-0xc4;const _0x216a4b=a225_0x216a();let _0x14b3d6=_0x216a4b[_0x29e8c3];return _0x14b3d6;}(function(_0x153ccd){const _0x30d650=a225_0x14b3;_0x153ccd[_0x153ccd['TRACE']=-0x2]=_0x30d650(0xe1),_0x153ccd[_0x153ccd[_0x30d650(0xc7)]=-0x1]=_0x30d650(0xc7),_0x153ccd[_0x153ccd[_0x30d650(0xc8)]=0x0]=_0x30d650(0xc8),_0x153ccd[_0x153ccd[_0x30d650(0xc6)]=0x1]=_0x30d650(0xc6),_0x153ccd[_0x153ccd[_0x30d650(0xcb)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));function a225_0x216a(){const _0x9173f7=['getMilliseconds','ERROR','padStart','717684spxzcr','220GLQeKP','56DVkmxc','getMonth','24aqrpSn','1638990WUTZga','getMinutes','getSeconds','getDate','710300IvxtOD','611704upcqRA','getHours','243396uncPms','abs','info','toString','21LQzRst','405187jbcBPF','WARNING','getTimezoneOffset','TRACE','toUpperCase','floor','26934DlONDb','trace','27qGkSDx','WARN','DEBUG','INFO','getFullYear'];a225_0x216a=function(){return _0x9173f7;};return a225_0x216a();}export function parseLogLevel(_0x5d6b40){const _0x2086c7=a225_0x14b3;switch(_0x5d6b40[_0x2086c7(0xe2)]()){case'TRACE':return LogLevel[_0x2086c7(0xe1)];case _0x2086c7(0xc7):return LogLevel[_0x2086c7(0xc7)];case _0x2086c7(0xc8):return LogLevel[_0x2086c7(0xc8)];case _0x2086c7(0xc6):case _0x2086c7(0xdf):return LogLevel[_0x2086c7(0xc6)];case _0x2086c7(0xcb):return LogLevel['ERROR'];default:return LogLevel[_0x2086c7(0xc8)];}}export function logLevelToString(_0x1020c0){const _0x8d6049=a225_0x14b3;switch(_0x1020c0){case LogLevel[_0x8d6049(0xe1)]:return _0x8d6049(0xc4);case LogLevel[_0x8d6049(0xc7)]:return'debug';case LogLevel[_0x8d6049(0xc8)]:return _0x8d6049(0xdb);case LogLevel[_0x8d6049(0xc6)]:return'warn';case LogLevel[_0x8d6049(0xcb)]:return'error';default:return'info';}}export function formatTimestamp(_0x4df8fe){const _0x171001=a225_0x14b3,_0x5625f3=_0x4df8fe[_0x171001(0xc9)](),_0x2fc918=(_0x4df8fe[_0x171001(0xd0)]()+0x1)[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0'),_0x1c89de=_0x4df8fe[_0x171001(0xd5)]()[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0'),_0xcf8cdb=_0x4df8fe[_0x171001(0xd8)]()[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0'),_0x3a6209=_0x4df8fe[_0x171001(0xd3)]()[_0x171001(0xdc)]()['padStart'](0x2,'0'),_0x52113d=_0x4df8fe[_0x171001(0xd4)]()[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0'),_0x561df1=_0x4df8fe[_0x171001(0xca)]()['toString']()[_0x171001(0xcc)](0x3,'0'),_0xb15d2b=-_0x4df8fe[_0x171001(0xe0)](),_0x2aa592=Math[_0x171001(0xe3)](Math[_0x171001(0xda)](_0xb15d2b)/0x3c),_0x341ad0=Math[_0x171001(0xda)](_0xb15d2b)%0x3c,_0x46c56b=_0xb15d2b>=0x0?'+':'-',_0x4e0f4f=''+_0x46c56b+_0x2aa592[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0')+_0x341ad0[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0');return _0x5625f3+'-'+_0x2fc918+'-'+_0x1c89de+'\x20'+_0xcf8cdb+':'+_0x3a6209+':'+_0x52113d+'.'+_0x561df1+_0x4e0f4f;}
1
+ function a225_0x50a8(_0xe175e7,_0x27d4c7){_0xe175e7=_0xe175e7-0xe5;const _0x6eff43=a225_0x6eff();let _0x50a8a0=_0x6eff43[_0xe175e7];return _0x50a8a0;}(function(_0x3dae35,_0x5c2dbc){const _0x58075d=a225_0x50a8,_0x1fc59f=_0x3dae35();while(!![]){try{const _0x3610c2=-parseInt(_0x58075d(0xf3))/0x1+parseInt(_0x58075d(0xf8))/0x2*(-parseInt(_0x58075d(0xe9))/0x3)+-parseInt(_0x58075d(0xff))/0x4+parseInt(_0x58075d(0xee))/0x5+parseInt(_0x58075d(0xfb))/0x6*(parseInt(_0x58075d(0xf4))/0x7)+parseInt(_0x58075d(0xf0))/0x8*(parseInt(_0x58075d(0x103))/0x9)+parseInt(_0x58075d(0xe8))/0xa*(parseInt(_0x58075d(0xe7))/0xb);if(_0x3610c2===_0x5c2dbc)break;else _0x1fc59f['push'](_0x1fc59f['shift']());}catch(_0x564281){_0x1fc59f['push'](_0x1fc59f['shift']());}}}(a225_0x6eff,0xa1659));function a225_0x6eff(){const _0x370d9e=['2231207BXPhXf','80KPPWJy','3LoEZBw','INFO','debug','warn','ERROR','2360535cQQwfh','WARNING','1880LIGOtV','DEBUG','getFullYear','955685IjcxHz','207221Fgvbcj','getHours','error','WARN','1902172LEIQsB','getTimezoneOffset','getMonth','78RglKMW','abs','trace','info','4818100DPHJEU','getMinutes','padStart','floor','49509uTIrSV','toString','getMilliseconds','TRACE'];a225_0x6eff=function(){return _0x370d9e;};return a225_0x6eff();}export var LogLevel;(function(_0x524b92){const _0x285fd6=a225_0x50a8;_0x524b92[_0x524b92[_0x285fd6(0xe6)]=-0x2]=_0x285fd6(0xe6),_0x524b92[_0x524b92[_0x285fd6(0xf1)]=-0x1]=_0x285fd6(0xf1),_0x524b92[_0x524b92[_0x285fd6(0xea)]=0x0]=_0x285fd6(0xea),_0x524b92[_0x524b92['WARN']=0x1]=_0x285fd6(0xf7),_0x524b92[_0x524b92[_0x285fd6(0xed)]=0x2]=_0x285fd6(0xed);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x4d59a7){const _0xaa4b6f=a225_0x50a8;switch(_0x4d59a7['toUpperCase']()){case _0xaa4b6f(0xe6):return LogLevel['TRACE'];case _0xaa4b6f(0xf1):return LogLevel[_0xaa4b6f(0xf1)];case _0xaa4b6f(0xea):return LogLevel[_0xaa4b6f(0xea)];case'WARN':case _0xaa4b6f(0xef):return LogLevel['WARN'];case _0xaa4b6f(0xed):return LogLevel['ERROR'];default:return LogLevel['INFO'];}}export function logLevelToString(_0x4e76c0){const _0x1b0874=a225_0x50a8;switch(_0x4e76c0){case LogLevel[_0x1b0874(0xe6)]:return _0x1b0874(0xfd);case LogLevel[_0x1b0874(0xf1)]:return _0x1b0874(0xeb);case LogLevel[_0x1b0874(0xea)]:return _0x1b0874(0xfe);case LogLevel[_0x1b0874(0xf7)]:return _0x1b0874(0xec);case LogLevel[_0x1b0874(0xed)]:return _0x1b0874(0xf6);default:return _0x1b0874(0xfe);}}export function formatTimestamp(_0x37c30c){const _0xd81bad=a225_0x50a8,_0x5472ce=_0x37c30c[_0xd81bad(0xf2)](),_0x4b9a3b=(_0x37c30c[_0xd81bad(0xfa)]()+0x1)[_0xd81bad(0x104)]()[_0xd81bad(0x101)](0x2,'0'),_0x1cf1ca=_0x37c30c['getDate']()[_0xd81bad(0x104)]()[_0xd81bad(0x101)](0x2,'0'),_0x36af1b=_0x37c30c[_0xd81bad(0xf5)]()['toString']()[_0xd81bad(0x101)](0x2,'0'),_0x2668cd=_0x37c30c[_0xd81bad(0x100)]()[_0xd81bad(0x104)]()[_0xd81bad(0x101)](0x2,'0'),_0xc06751=_0x37c30c['getSeconds']()['toString']()[_0xd81bad(0x101)](0x2,'0'),_0x59dd5a=_0x37c30c[_0xd81bad(0xe5)]()[_0xd81bad(0x104)]()['padStart'](0x3,'0'),_0x4535a3=-_0x37c30c[_0xd81bad(0xf9)](),_0x468412=Math[_0xd81bad(0x102)](Math[_0xd81bad(0xfc)](_0x4535a3)/0x3c),_0xc4e8bc=Math[_0xd81bad(0xfc)](_0x4535a3)%0x3c,_0x526e6a=_0x4535a3>=0x0?'+':'-',_0x53e007=''+_0x526e6a+_0x468412[_0xd81bad(0x104)]()[_0xd81bad(0x101)](0x2,'0')+_0xc4e8bc[_0xd81bad(0x104)]()[_0xd81bad(0x101)](0x2,'0');return _0x5472ce+'-'+_0x4b9a3b+'-'+_0x1cf1ca+'\x20'+_0x36af1b+':'+_0x2668cd+':'+_0xc06751+'.'+_0x59dd5a+_0x53e007;}
@@ -1 +1 @@
1
- (function(_0x105f11,_0x1f4802){const _0xeafa60=a226_0xb10c,_0x15b50a=_0x105f11();while(!![]){try{const _0x5845f6=parseInt(_0xeafa60(0x1e2))/0x1*(parseInt(_0xeafa60(0x1eb))/0x2)+parseInt(_0xeafa60(0x1e1))/0x3+-parseInt(_0xeafa60(0x1e7))/0x4*(-parseInt(_0xeafa60(0x1e4))/0x5)+-parseInt(_0xeafa60(0x1e9))/0x6+-parseInt(_0xeafa60(0x1e5))/0x7*(parseInt(_0xeafa60(0x1e8))/0x8)+-parseInt(_0xeafa60(0x1ec))/0x9+parseInt(_0xeafa60(0x1df))/0xa;if(_0x5845f6===_0x1f4802)break;else _0x15b50a['push'](_0x15b50a['shift']());}catch(_0x2b8585){_0x15b50a['push'](_0x15b50a['shift']());}}}(a226_0x56a5,0x648e0));export function validateLimitOption(_0x3ae0da){const _0x475a36=a226_0xb10c;if(!Number[_0x475a36(0x1e6)](_0x3ae0da))return{'isValid':![],'error':_0x475a36(0x1e0)+_0x3ae0da+'.\x20Must\x20be\x20an\x20integer.'};if(_0x3ae0da<=0x0)return{'isValid':![],'error':_0x475a36(0x1e0)+_0x3ae0da+_0x475a36(0x1ea)};return{'isValid':!![],'value':_0x3ae0da};}function a226_0xb10c(_0x10c062,_0x26f2d6){_0x10c062=_0x10c062-0x1de;const _0x56a5c0=a226_0x56a5();let _0xb10cc9=_0x56a5c0[_0x10c062];return _0xb10cc9;}function a226_0x56a5(){const _0x249deb=['42Izlqag','isInteger','4876wmoWSm','415016ycpAuW','3516378nCecPu','.\x20Must\x20be\x20a\x20positive\x20integer.','790wHNBRK','5777145SDwHsL','number','9163890zApjTs','Invalid\x20limit\x20value:\x20','1215405wMyehA','523KOQUKh','Invalid\x20timeout\x20value:\x20','1735LWMdTQ'];a226_0x56a5=function(){return _0x249deb;};return a226_0x56a5();}export function validateTimeoutOption(_0x136730,_0x55b5d2=0x1e){const _0x53caa1=a226_0xb10c;if(_0x136730===undefined)return{'isValid':!![],'value':_0x55b5d2};const _0x51a01f=typeof _0x136730===_0x53caa1(0x1de)?_0x136730:parseFloat(_0x136730);if(isNaN(_0x51a01f))return{'isValid':![],'error':_0x53caa1(0x1e3)+_0x136730+'.\x20Must\x20be\x20a\x20number.'};if(_0x51a01f<=0x0)return{'isValid':![],'error':_0x53caa1(0x1e3)+_0x51a01f+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x51a01f};}
1
+ (function(_0x34fc0a,_0x1d581c){const _0xa1e7b5=a226_0x1d61,_0x49830d=_0x34fc0a();while(!![]){try{const _0x1e615b=-parseInt(_0xa1e7b5(0xd2))/0x1*(parseInt(_0xa1e7b5(0xd4))/0x2)+parseInt(_0xa1e7b5(0xd5))/0x3+parseInt(_0xa1e7b5(0xd7))/0x4+parseInt(_0xa1e7b5(0xdc))/0x5+-parseInt(_0xa1e7b5(0xd3))/0x6*(parseInt(_0xa1e7b5(0xd8))/0x7)+-parseInt(_0xa1e7b5(0xd6))/0x8*(parseInt(_0xa1e7b5(0xd9))/0x9)+parseInt(_0xa1e7b5(0xdd))/0xa;if(_0x1e615b===_0x1d581c)break;else _0x49830d['push'](_0x49830d['shift']());}catch(_0x4cf3c9){_0x49830d['push'](_0x49830d['shift']());}}}(a226_0x56fc,0x3d760));function a226_0x1d61(_0x39fc8e,_0x4486d8){_0x39fc8e=_0x39fc8e-0xd0;const _0x56fcaf=a226_0x56fc();let _0x1d6163=_0x56fcaf[_0x39fc8e];return _0x1d6163;}function a226_0x56fc(){const _0x56402a=['692772WJpBti','8pmafkn','1098812jwEmok','1792133WQLYAB','1500939stYFix','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','522145JcdrfF','3302710XxpWEJ','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20integer.','isInteger','number','11VOpjjg','6cGNZyu','48326YTWchq'];a226_0x56fc=function(){return _0x56402a;};return a226_0x56fc();}export function validateLimitOption(_0x2c3a6c){const _0x2c70a8=a226_0x1d61;if(!Number[_0x2c70a8(0xd0)](_0x2c3a6c))return{'isValid':![],'error':_0x2c70a8(0xde)+_0x2c3a6c+_0x2c70a8(0xdb)};if(_0x2c3a6c<=0x0)return{'isValid':![],'error':_0x2c70a8(0xde)+_0x2c3a6c+_0x2c70a8(0xdf)};return{'isValid':!![],'value':_0x2c3a6c};}export function validateTimeoutOption(_0x475c4e,_0x3a82f0=0x1e){const _0x497913=a226_0x1d61;if(_0x475c4e===undefined)return{'isValid':!![],'value':_0x3a82f0};const _0xb57db5=typeof _0x475c4e===_0x497913(0xd1)?_0x475c4e:parseFloat(_0x475c4e);if(isNaN(_0xb57db5))return{'isValid':![],'error':_0x497913(0xda)+_0x475c4e+'.\x20Must\x20be\x20a\x20number.'};if(_0xb57db5<=0x0)return{'isValid':![],'error':_0x497913(0xda)+_0xb57db5+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0xb57db5};}
@@ -1 +1 @@
1
- const a227_0x37d2fc=a227_0x222a;(function(_0x1be22a,_0x205675){const _0x13d49e=a227_0x222a,_0x238980=_0x1be22a();while(!![]){try{const _0x3ac2b7=parseInt(_0x13d49e(0x116))/0x1*(parseInt(_0x13d49e(0x115))/0x2)+-parseInt(_0x13d49e(0x138))/0x3*(parseInt(_0x13d49e(0x130))/0x4)+parseInt(_0x13d49e(0x119))/0x5*(-parseInt(_0x13d49e(0x135))/0x6)+-parseInt(_0x13d49e(0x13f))/0x7+-parseInt(_0x13d49e(0x11a))/0x8*(-parseInt(_0x13d49e(0x148))/0x9)+-parseInt(_0x13d49e(0x12c))/0xa*(-parseInt(_0x13d49e(0x132))/0xb)+-parseInt(_0x13d49e(0x121))/0xc*(parseInt(_0x13d49e(0x124))/0xd);if(_0x3ac2b7===_0x205675)break;else _0x238980['push'](_0x238980['shift']());}catch(_0x3444bf){_0x238980['push'](_0x238980['shift']());}}}(a227_0x4492,0xd36e4));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash','zsh','sh',a227_0x37d2fc(0x12a),a227_0x37d2fc(0x131),a227_0x37d2fc(0x140),a227_0x37d2fc(0x12f),a227_0x37d2fc(0x13c),a227_0x37d2fc(0x13a),'powershell','nu',a227_0x37d2fc(0x139),'elvish',a227_0x37d2fc(0x149)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a227_0x37d2fc(0x13d),a227_0x37d2fc(0x146),'cursor',a227_0x37d2fc(0x111),a227_0x37d2fc(0x147)]);function a227_0x4492(){const _0x470ae8=['exit','isInteger','replace','cmd.exe','252QfFhne','map','ignore','140153ZlUpVi','comm','toLowerCase','darwin','kill','split','fish','utf-8','3733290krGtyM','where.exe','xdg-open','csh','860lNbRor','ksh','33gbCstv','has','ps\x20-p\x20','106986nmKOGo','ppid','trim','19647eqntdx','ion','pwsh','unref','dash','claude','stderr','6512247sVteCV','tcsh','platform','pop','Invalid\x20URL:\x20','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','error','code','treasure\x20studio','9607581Cuyqun','xonsh','protocol','pipe','win32','electron','toString','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','pid','29038OJwFGZ','93mhyMaa','data','join','30kmBSJK','8XnNsFb','start','href'];a227_0x4492=function(){return _0x470ae8;};return a227_0x4492();}function getProcessInfoWindows(_0x356ea1){const _0x151e46=a227_0x37d2fc;try{if(!Number[_0x151e46(0x11e)](_0x356ea1)||_0x356ea1<=0x0)return null;const _0x54b061=_0x151e46(0x144)+_0x356ea1+_0x151e46(0x113),_0x20e717=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x54b061+'\x22',{'encoding':_0x151e46(0x12b),'windowsHide':!![],'stdio':[_0x151e46(0x10f),_0x151e46(0x10f),_0x151e46(0x10f)]})[_0x151e46(0x137)]();if(!_0x20e717)return null;const [_0x4558bf,..._0x32bbd6]=_0x20e717[_0x151e46(0x129)](','),_0x1374c7=parseInt(_0x4558bf,0xa),_0x10ccd1=_0x32bbd6[_0x151e46(0x118)](',')[_0x151e46(0x137)]();if(isNaN(_0x1374c7)||!_0x10ccd1)return null;return{'pid':_0x356ea1,'ppid':_0x1374c7,'comm':_0x10ccd1[_0x151e46(0x11f)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x292fd6){const _0x5070c9=a227_0x37d2fc;try{const _0x2f5603=0x400000;if(!Number[_0x5070c9(0x11e)](_0x292fd6)||_0x292fd6<=0x0||_0x292fd6>_0x2f5603)return null;const _0x53cc5f=execSync(_0x5070c9(0x134)+_0x292fd6+'\x20-o\x20ppid=,comm=',{'encoding':_0x5070c9(0x12b),'stdio':_0x5070c9(0x10f)})[_0x5070c9(0x137)](),[_0x28de80,..._0x399ba8]=_0x53cc5f['split'](/\s+/),_0x4c8e2b=parseInt(_0x28de80,0xa),_0x51ffad=_0x399ba8[_0x5070c9(0x118)]('\x20');if(isNaN(_0x4c8e2b))return null;return{'pid':_0x292fd6,'ppid':_0x4c8e2b,'comm':_0x51ffad};}catch{return null;}}function getProcessInfo(_0x2a8844){const _0x5f63d2=a227_0x37d2fc;if(process['platform']===_0x5f63d2(0x110))return getProcessInfoWindows(_0x2a8844);return getProcessInfoPosix(_0x2a8844);}function getBasename(_0x158420){const _0x49f1c1=a227_0x37d2fc;return _0x158420['replace'](/^-/,'')['split']('/')[_0x49f1c1(0x142)]()?.[_0x49f1c1(0x126)]()||'';}function isShell(_0x300a19){const _0x28c076=a227_0x37d2fc;return SHELL_NAMES[_0x28c076(0x133)](getBasename(_0x300a19));}function isEphemeralShellSpawner(_0x1008a8){const _0x5a8b0d=a227_0x37d2fc;return EPHEMERAL_SHELL_SPAWNERS[_0x5a8b0d(0x133)](getBasename(_0x1008a8));}let cachedShellPID;function findShellPID(){const _0x2c0a4a=a227_0x37d2fc;if(process[_0x2c0a4a(0x136)]===undefined)return process[_0x2c0a4a(0x114)];let _0x44928a=process[_0x2c0a4a(0x136)];const _0x21f417=0xa;let _0x1af871=0x0;while(_0x1af871<_0x21f417){const _0x27606c=getProcessInfo(_0x44928a);if(!_0x27606c)break;if(isShell(_0x27606c[_0x2c0a4a(0x125)])){const _0x2d1b3c=getProcessInfo(_0x27606c['ppid']);if(_0x2d1b3c&&isEphemeralShellSpawner(_0x2d1b3c[_0x2c0a4a(0x125)])){_0x44928a=_0x27606c[_0x2c0a4a(0x136)],_0x1af871++;continue;}return _0x27606c[_0x2c0a4a(0x114)];}if(_0x27606c[_0x2c0a4a(0x136)]===0x0||_0x27606c[_0x2c0a4a(0x136)]===0x1){if(isShell(_0x27606c[_0x2c0a4a(0x125)]))return _0x27606c[_0x2c0a4a(0x114)];break;}_0x44928a=_0x27606c['ppid'],_0x1af871++;}return process[_0x2c0a4a(0x136)]!==undefined?process[_0x2c0a4a(0x136)]:process[_0x2c0a4a(0x114)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4e5466){const _0x3503aa=a227_0x37d2fc;if(!Number[_0x3503aa(0x11e)](_0x4e5466)||_0x4e5466<=0x0)return![];try{return process[_0x3503aa(0x128)](_0x4e5466,0x0),!![];}catch{return![];}}export function openBrowser(_0x470168){const _0x23871b=a227_0x37d2fc;let _0xad7977;try{_0xad7977=new URL(_0x470168);}catch{throw new Error(_0x23871b(0x143)+_0x470168);}if(_0xad7977[_0x23871b(0x10e)]!=='http:'&&_0xad7977['protocol']!=='https:')throw new Error('Unsupported\x20protocol:\x20'+_0xad7977['protocol']);const _0x3af30a=_0xad7977[_0x23871b(0x11c)],_0x3e0641=process[_0x23871b(0x141)];if(_0x3e0641===_0x23871b(0x110))spawn(_0x23871b(0x120),['/c',_0x23871b(0x11b),'',_0x3af30a],{'detached':!![],'stdio':_0x23871b(0x123)})['unref']();else{const _0xb6d38e=_0x3e0641===_0x23871b(0x127)?'open':_0x23871b(0x12e);spawn(_0xb6d38e,[_0x3af30a],{'detached':!![],'stdio':_0x23871b(0x123)})[_0x23871b(0x13b)]();}}export function isWindows(){const _0x2a8164=a227_0x37d2fc;return process[_0x2a8164(0x141)]===_0x2a8164(0x110);}export function getCrossSpawnOptions(_0x5e09a3){return{..._0x5e09a3??{},'shell':isWindows()};}export function escapeWindowsArg(_0x59dd6d){const _0x4113ed=a227_0x37d2fc;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x59dd6d))return _0x59dd6d;const _0x2384da=_0x59dd6d[_0x4113ed(0x11f)](/"/g,'\x22\x22');return'\x22'+_0x2384da+'\x22';}function a227_0x222a(_0x4584b4,_0x305f7c){_0x4584b4=_0x4584b4-0x10e;const _0x449223=a227_0x4492();let _0x222a7a=_0x449223[_0x4584b4];return _0x222a7a;}export function crossSpawn(_0x1631f,_0x269def,_0xd3faa3){const _0x3f2d79=a227_0x37d2fc;if(isWindows()){const _0x3818a4=escapeWindowsArg(_0x1631f),_0x1f651d=_0x269def[_0x3f2d79(0x122)](escapeWindowsArg),_0x13ae90=[_0x3818a4,..._0x1f651d]['join']('\x20');return spawn(_0x13ae90,[],{..._0xd3faa3,'shell':!![]});}return spawn(_0x1631f,_0x269def,{..._0xd3faa3,'shell':![]});}export function gracefulExit(_0x2b3f3e=0x0){const _0x28c955=a227_0x37d2fc;isWindows()?setTimeout(()=>process[_0x28c955(0x11d)](_0x2b3f3e),0x32):process[_0x28c955(0x11d)](_0x2b3f3e);}export function findExecutable(_0x1d5f69,_0x5be3b5=0x1388){return new Promise(_0x33fd08=>{const _0x4694e0=a227_0x222a,_0x1269f0=isWindows()?_0x4694e0(0x12d):'which';let _0x367110=![];const _0x3691f3=crossSpawn(_0x1269f0,[_0x1d5f69],{'stdio':_0x4694e0(0x10f),'shell':isWindows()}),_0x38fefd=setTimeout(()=>{const _0x149b61=_0x4694e0;!_0x367110&&(_0x367110=!![],_0x3691f3[_0x149b61(0x128)](),_0x33fd08(null));},_0x5be3b5);let _0x34f3f0='';_0x3691f3['stdout']?.['on'](_0x4694e0(0x117),_0x57eaf2=>{const _0x5dd7e5=_0x4694e0;_0x34f3f0+=_0x57eaf2[_0x5dd7e5(0x112)]();}),_0x3691f3[_0x4694e0(0x13e)]?.['on'](_0x4694e0(0x117),()=>{}),_0x3691f3['on'](_0x4694e0(0x11d),_0x3dc897=>{const _0x168bed=_0x4694e0;if(_0x367110)return;_0x367110=!![],clearTimeout(_0x38fefd);if(_0x3dc897===0x0&&_0x34f3f0['trim']()){const _0x25642a=_0x34f3f0[_0x168bed(0x137)]()['split'](/\r?\n/)[0x0];_0x33fd08(_0x25642a);}else _0x33fd08(null);}),_0x3691f3['on'](_0x4694e0(0x145),()=>{if(_0x367110)return;_0x367110=!![],clearTimeout(_0x38fefd),_0x33fd08(null);});});}
1
+ const a227_0x2a3ade=a227_0x2993;(function(_0x5094e7,_0x46676d){const _0x39d41c=a227_0x2993,_0x4a04f5=_0x5094e7();while(!![]){try{const _0x2303ba=-parseInt(_0x39d41c(0x11a))/0x1+-parseInt(_0x39d41c(0x10e))/0x2+-parseInt(_0x39d41c(0xf4))/0x3+-parseInt(_0x39d41c(0xf6))/0x4+-parseInt(_0x39d41c(0x114))/0x5+parseInt(_0x39d41c(0xf0))/0x6+parseInt(_0x39d41c(0xfe))/0x7;if(_0x2303ba===_0x46676d)break;else _0x4a04f5['push'](_0x4a04f5['shift']());}catch(_0x5baa9b){_0x4a04f5['push'](_0x4a04f5['shift']());}}}(a227_0x51fd,0xa9d7b));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a227_0x2a3ade(0xf9),a227_0x2a3ade(0x119),'sh','fish',a227_0x2a3ade(0xe3),a227_0x2a3ade(0xe6),a227_0x2a3ade(0xe7),'dash','pwsh','powershell','nu',a227_0x2a3ade(0xed),a227_0x2a3ade(0x116),a227_0x2a3ade(0x10d)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a227_0x2a3ade(0x100),a227_0x2a3ade(0xfd),a227_0x2a3ade(0x101),'electron',a227_0x2a3ade(0xfb)]);function getProcessInfoWindows(_0x1b2001){const _0x1b4cae=a227_0x2a3ade;try{if(!Number[_0x1b4cae(0x104)](_0x1b2001)||_0x1b2001<=0x0)return null;const _0x5264be=_0x1b4cae(0x10b)+_0x1b2001+_0x1b4cae(0xee),_0x19d110=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x5264be+'\x22',{'encoding':_0x1b4cae(0x10c),'windowsHide':!![],'stdio':[_0x1b4cae(0xe8),'pipe',_0x1b4cae(0xe8)]})[_0x1b4cae(0xff)]();if(!_0x19d110)return null;const [_0x4ede87,..._0x1d3286]=_0x19d110[_0x1b4cae(0x105)](','),_0x5d303e=parseInt(_0x4ede87,0xa),_0x59367b=_0x1d3286[_0x1b4cae(0xe4)](',')[_0x1b4cae(0xff)]();if(isNaN(_0x5d303e)||!_0x59367b)return null;return{'pid':_0x1b2001,'ppid':_0x5d303e,'comm':_0x59367b[_0x1b4cae(0x108)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x436f69){const _0x32eca8=a227_0x2a3ade;try{const _0x3270b9=0x400000;if(!Number[_0x32eca8(0x104)](_0x436f69)||_0x436f69<=0x0||_0x436f69>_0x3270b9)return null;const _0x5ac4eb=execSync('ps\x20-p\x20'+_0x436f69+_0x32eca8(0xf7),{'encoding':_0x32eca8(0x10c),'stdio':_0x32eca8(0xe8)})[_0x32eca8(0xff)](),[_0x4c129b,..._0x2aa86d]=_0x5ac4eb[_0x32eca8(0x105)](/\s+/),_0x24d461=parseInt(_0x4c129b,0xa),_0x2dad9e=_0x2aa86d[_0x32eca8(0xe4)]('\x20');if(isNaN(_0x24d461))return null;return{'pid':_0x436f69,'ppid':_0x24d461,'comm':_0x2dad9e};}catch{return null;}}function getProcessInfo(_0x1d5ed3){const _0x37d56c=a227_0x2a3ade;if(process['platform']===_0x37d56c(0x106))return getProcessInfoWindows(_0x1d5ed3);return getProcessInfoPosix(_0x1d5ed3);}function getBasename(_0x1e0ec6){const _0x1d9618=a227_0x2a3ade;return _0x1e0ec6['replace'](/^-/,'')[_0x1d9618(0x105)]('/')['pop']()?.[_0x1d9618(0xeb)]()||'';}function isShell(_0x9580e3){const _0x42b06c=a227_0x2a3ade;return SHELL_NAMES[_0x42b06c(0xfc)](getBasename(_0x9580e3));}function isEphemeralShellSpawner(_0x350210){const _0x58e347=a227_0x2a3ade;return EPHEMERAL_SHELL_SPAWNERS[_0x58e347(0xfc)](getBasename(_0x350210));}let cachedShellPID;function findShellPID(){const _0x354e87=a227_0x2a3ade;if(process[_0x354e87(0x102)]===undefined)return process[_0x354e87(0x109)];let _0x2125f3=process[_0x354e87(0x102)];const _0x513781=0xa;let _0x4d51ab=0x0;while(_0x4d51ab<_0x513781){const _0x5d2994=getProcessInfo(_0x2125f3);if(!_0x5d2994)break;if(isShell(_0x5d2994[_0x354e87(0x118)])){const _0x886947=getProcessInfo(_0x5d2994[_0x354e87(0x102)]);if(_0x886947&&isEphemeralShellSpawner(_0x886947[_0x354e87(0x118)])){_0x2125f3=_0x5d2994['ppid'],_0x4d51ab++;continue;}return _0x5d2994[_0x354e87(0x109)];}if(_0x5d2994[_0x354e87(0x102)]===0x0||_0x5d2994['ppid']===0x1){if(isShell(_0x5d2994['comm']))return _0x5d2994['pid'];break;}_0x2125f3=_0x5d2994['ppid'],_0x4d51ab++;}return process['ppid']!==undefined?process['ppid']:process[_0x354e87(0x109)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3ea349){const _0x81cba3=a227_0x2a3ade;if(!Number[_0x81cba3(0x104)](_0x3ea349)||_0x3ea349<=0x0)return![];try{return process[_0x81cba3(0xf8)](_0x3ea349,0x0),!![];}catch{return![];}}export function openBrowser(_0x129ba2){const _0x5c9b39=a227_0x2a3ade;let _0x1663ee;try{_0x1663ee=new URL(_0x129ba2);}catch{throw new Error(_0x5c9b39(0xe9)+_0x129ba2);}if(_0x1663ee['protocol']!==_0x5c9b39(0xea)&&_0x1663ee[_0x5c9b39(0x103)]!=='https:')throw new Error(_0x5c9b39(0xfa)+_0x1663ee[_0x5c9b39(0x103)]);const _0x18c65e=_0x1663ee['href'],_0x47cde1=process[_0x5c9b39(0xe2)];if(_0x47cde1==='win32')spawn(_0x5c9b39(0xf2),['/c',_0x5c9b39(0xf3),'',_0x18c65e],{'detached':!![],'stdio':_0x5c9b39(0x117)})[_0x5c9b39(0xf5)]();else{const _0x43c712=_0x47cde1===_0x5c9b39(0xec)?_0x5c9b39(0xf1):'xdg-open';spawn(_0x43c712,[_0x18c65e],{'detached':!![],'stdio':'ignore'})['unref']();}}export function isWindows(){const _0x5a2030=a227_0x2a3ade;return process[_0x5a2030(0xe2)]===_0x5a2030(0x106);}export function getCrossSpawnOptions(_0x1ed522){return{..._0x1ed522??{},'shell':isWindows()};}export function escapeWindowsArg(_0x3a4b7a){const _0x509bdc=a227_0x2a3ade;if(!/[ \t"&|<>^%!`\r\n]/[_0x509bdc(0x107)](_0x3a4b7a))return _0x3a4b7a;const _0x270c9c=_0x3a4b7a[_0x509bdc(0x108)](/"/g,'\x22\x22');return'\x22'+_0x270c9c+'\x22';}function a227_0x2993(_0x1bfb91,_0x97c9d0){_0x1bfb91=_0x1bfb91-0xe2;const _0x51fd8a=a227_0x51fd();let _0x299359=_0x51fd8a[_0x1bfb91];return _0x299359;}export function crossSpawn(_0x551fc0,_0x3acf03,_0x57c160){const _0x17a8d9=a227_0x2a3ade;if(isWindows()){const _0x1459ec=escapeWindowsArg(_0x551fc0),_0x57d7ec=_0x3acf03[_0x17a8d9(0x113)](escapeWindowsArg),_0x2e1262=[_0x1459ec,..._0x57d7ec][_0x17a8d9(0xe4)]('\x20');return spawn(_0x2e1262,[],{..._0x57c160,'shell':!![]});}return spawn(_0x551fc0,_0x3acf03,{..._0x57c160,'shell':![]});}export function gracefulExit(_0x4c5578=0x0){const _0x682203=a227_0x2a3ade;isWindows()?setTimeout(()=>process[_0x682203(0xe5)](_0x4c5578),0x32):process['exit'](_0x4c5578);}function a227_0x51fd(){const _0x3907f7=['Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','utf-8','xonsh','2719664eKAwwA','stdout','stderr','where.exe','error','map','6783695MJfqTj','which','elvish','ignore','comm','zsh','113829IbfsZd','platform','ksh','join','exit','tcsh','csh','pipe','Invalid\x20URL:\x20','http:','toLowerCase','darwin','ion','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','toString','679422ZdvLyO','open','cmd.exe','start','734019diOwko','unref','4565732oXiIRL','\x20-o\x20ppid=,comm=','kill','bash','Unsupported\x20protocol:\x20','treasure\x20studio','has','code','33592608Nxtubi','trim','claude','cursor','ppid','protocol','isInteger','split','win32','test','replace','pid','data'];a227_0x51fd=function(){return _0x3907f7;};return a227_0x51fd();}export function findExecutable(_0x2bf341,_0x3a906a=0x1388){return new Promise(_0x320a2a=>{const _0x6687b6=a227_0x2993,_0x14cbf9=isWindows()?_0x6687b6(0x111):_0x6687b6(0x115);let _0x4fcfef=![];const _0x1ece51=crossSpawn(_0x14cbf9,[_0x2bf341],{'stdio':'pipe','shell':isWindows()}),_0x2b8496=setTimeout(()=>{!_0x4fcfef&&(_0x4fcfef=!![],_0x1ece51['kill'](),_0x320a2a(null));},_0x3a906a);let _0x426de3='';_0x1ece51[_0x6687b6(0x10f)]?.['on'](_0x6687b6(0x10a),_0x4071e9=>{const _0xa7a54=_0x6687b6;_0x426de3+=_0x4071e9[_0xa7a54(0xef)]();}),_0x1ece51[_0x6687b6(0x110)]?.['on'](_0x6687b6(0x10a),()=>{}),_0x1ece51['on'](_0x6687b6(0xe5),_0x4c1e6f=>{const _0x4f0c2b=_0x6687b6;if(_0x4fcfef)return;_0x4fcfef=!![],clearTimeout(_0x2b8496);if(_0x4c1e6f===0x0&&_0x426de3[_0x4f0c2b(0xff)]()){const _0x3eec0c=_0x426de3['trim']()['split'](/\r?\n/)[0x0];_0x320a2a(_0x3eec0c);}else _0x320a2a(null);}),_0x1ece51['on'](_0x6687b6(0x112),()=>{if(_0x4fcfef)return;_0x4fcfef=!![],clearTimeout(_0x2b8496),_0x320a2a(null);});});}
@@ -1 +1 @@
1
- (function(_0xe195e,_0x5a0375){const _0x3f9d06=a228_0x6abd,_0x53835d=_0xe195e();while(!![]){try{const _0xc8df3e=-parseInt(_0x3f9d06(0x195))/0x1+-parseInt(_0x3f9d06(0x1aa))/0x2+parseInt(_0x3f9d06(0x1ab))/0x3+parseInt(_0x3f9d06(0x19e))/0x4+parseInt(_0x3f9d06(0x194))/0x5+-parseInt(_0x3f9d06(0x1a2))/0x6+-parseInt(_0x3f9d06(0x196))/0x7;if(_0xc8df3e===_0x5a0375)break;else _0x53835d['push'](_0x53835d['shift']());}catch(_0xb8b868){_0x53835d['push'](_0x53835d['shift']());}}}(a228_0x52dc,0xf27bb));import*as a228_0x162885 from'readline';function a228_0x6abd(_0x3d0634,_0x2bcc2e){_0x3d0634=_0x3d0634-0x194;const _0x52dcba=a228_0x52dc();let _0x6abd2c=_0x52dcba[_0x3d0634];return _0x6abd2c;}function a228_0x52dc(){const _0x5522d6=['437196kjljkw','yes','isTTY','utf8','createInterface','\x20(y/N):\x20','toLowerCase','question','1239284BsNIKq','5200611CJqkND','9923205znSGkA','848460ZLBVIe','19259716StUhoM','\x20[y/N]\x20','resume','close','removeListener','setRawMode','stdin','write','6269556MsGoXl','setEncoding','stderr','data'];a228_0x52dc=function(){return _0x5522d6;};return a228_0x52dc();}import{gracefulExit}from'./process.js';export function isInteractive(){return process['stdin']['isTTY']===!![];}export async function confirm(_0x649f9d){const _0x4f338e=a228_0x6abd,_0x5bb9fd=a228_0x162885[_0x4f338e(0x1a6)]({'input':process[_0x4f338e(0x19c)],'output':process['stdout']});return new Promise(_0x211ea7=>{const _0x4100ea=_0x4f338e;_0x5bb9fd[_0x4100ea(0x1a9)](_0x649f9d+_0x4100ea(0x1a7),_0x50d8f8=>{const _0x1fcac4=_0x4100ea;_0x5bb9fd[_0x1fcac4(0x199)](),_0x211ea7(_0x50d8f8[_0x1fcac4(0x1a8)]()==='y'||_0x50d8f8['toLowerCase']()===_0x1fcac4(0x1a3));});});}export async function confirmKey(_0x2bbe8f){const _0x191907=a228_0x6abd;if(!process[_0x191907(0x19c)][_0x191907(0x1a4)])return![];return process[_0x191907(0x1a0)][_0x191907(0x19d)](_0x2bbe8f+_0x191907(0x197)),new Promise(_0x34c427=>{const _0x3da9d1=_0x191907,_0x2a33f2=process[_0x3da9d1(0x19c)];_0x2a33f2[_0x3da9d1(0x19b)](!![]),_0x2a33f2[_0x3da9d1(0x198)](),_0x2a33f2[_0x3da9d1(0x19f)](_0x3da9d1(0x1a5));const _0x9cc01f=_0x5683a9=>{const _0x56b64e=_0x3da9d1;_0x2a33f2[_0x56b64e(0x19b)](![]),_0x2a33f2['pause'](),_0x2a33f2[_0x56b64e(0x19a)]('data',_0x9cc01f);if(_0x5683a9==='\x1b'){process[_0x56b64e(0x1a0)][_0x56b64e(0x19d)]('\x0a'),_0x34c427(![]);return;}_0x5683a9==='\x03'&&(process['stderr'][_0x56b64e(0x19d)]('\x0a'),gracefulExit(0x82));if(_0x5683a9[_0x56b64e(0x1a8)]()==='y'){process[_0x56b64e(0x1a0)][_0x56b64e(0x19d)]('y\x0a'),_0x34c427(!![]);return;}process[_0x56b64e(0x1a0)][_0x56b64e(0x19d)]('\x0a'),_0x34c427(![]);};_0x2a33f2['on'](_0x3da9d1(0x1a1),_0x9cc01f);});}
1
+ function a228_0x5c5f(_0x3bd734,_0x2b5596){_0x3bd734=_0x3bd734-0x158;const _0x4ed42f=a228_0x4ed4();let _0x5c5f00=_0x4ed42f[_0x3bd734];return _0x5c5f00;}function a228_0x4ed4(){const _0x4b55e9=['utf8','40593gPtlxv','data','5365236YpElOc','resume','2619385gBtJOd','147173cfdDSJ','84QEWbES','stdout','toLowerCase','856503NedIRJ','330495sLBWjB','yes','14szXWqN','setEncoding','232YLHbgO','setRawMode','write','createInterface','22389dlXJZb','970tVGRwZ','stderr','question','\x20(y/N):\x20','isTTY','close','\x20[y/N]\x20','stdin'];a228_0x4ed4=function(){return _0x4b55e9;};return a228_0x4ed4();}(function(_0x4015a7,_0x554d7c){const _0x5a52d9=a228_0x5c5f,_0x15c576=_0x4015a7();while(!![]){try{const _0x4cf5ce=parseInt(_0x5a52d9(0x15b))/0x1*(-parseInt(_0x5a52d9(0x162))/0x2)+parseInt(_0x5a52d9(0x168))/0x3*(parseInt(_0x5a52d9(0x15c))/0x4)+-parseInt(_0x5a52d9(0x15a))/0x5+-parseInt(_0x5a52d9(0x158))/0x6+parseInt(_0x5a52d9(0x172))/0x7*(-parseInt(_0x5a52d9(0x164))/0x8)+parseInt(_0x5a52d9(0x15f))/0x9+parseInt(_0x5a52d9(0x169))/0xa*(parseInt(_0x5a52d9(0x160))/0xb);if(_0x4cf5ce===_0x554d7c)break;else _0x15c576['push'](_0x15c576['shift']());}catch(_0x2e5356){_0x15c576['push'](_0x15c576['shift']());}}}(a228_0x4ed4,0x8639e));import*as a228_0x441d21 from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x467ec0=a228_0x5c5f;return process['stdin'][_0x467ec0(0x16d)]===!![];}export async function confirm(_0x4c76a8){const _0x4e0ca2=a228_0x5c5f,_0x3ecd3f=a228_0x441d21[_0x4e0ca2(0x167)]({'input':process[_0x4e0ca2(0x170)],'output':process[_0x4e0ca2(0x15d)]});return new Promise(_0x430dc8=>{const _0x3a9e3e=_0x4e0ca2;_0x3ecd3f[_0x3a9e3e(0x16b)](_0x4c76a8+_0x3a9e3e(0x16c),_0x904eac=>{const _0x5940c2=_0x3a9e3e;_0x3ecd3f[_0x5940c2(0x16e)](),_0x430dc8(_0x904eac[_0x5940c2(0x15e)]()==='y'||_0x904eac['toLowerCase']()===_0x5940c2(0x161));});});}export async function confirmKey(_0x15ea0a){const _0xf72b07=a228_0x5c5f;if(!process['stdin']['isTTY'])return![];return process[_0xf72b07(0x16a)][_0xf72b07(0x166)](_0x15ea0a+_0xf72b07(0x16f)),new Promise(_0x26f5b2=>{const _0x227de8=_0xf72b07,_0x568eba=process[_0x227de8(0x170)];_0x568eba[_0x227de8(0x165)](!![]),_0x568eba[_0x227de8(0x159)](),_0x568eba[_0x227de8(0x163)](_0x227de8(0x171));const _0x328e52=_0x2bca3f=>{const _0x47ec37=_0x227de8;_0x568eba['setRawMode'](![]),_0x568eba['pause'](),_0x568eba['removeListener'](_0x47ec37(0x173),_0x328e52);if(_0x2bca3f==='\x1b'){process[_0x47ec37(0x16a)]['write']('\x0a'),_0x26f5b2(![]);return;}_0x2bca3f==='\x03'&&(process[_0x47ec37(0x16a)]['write']('\x0a'),gracefulExit(0x82));if(_0x2bca3f[_0x47ec37(0x15e)]()==='y'){process[_0x47ec37(0x16a)][_0x47ec37(0x166)]('y\x0a'),_0x26f5b2(!![]);return;}process[_0x47ec37(0x16a)][_0x47ec37(0x166)]('\x0a'),_0x26f5b2(![]);};_0x568eba['on'](_0x227de8(0x173),_0x328e52);});}
@@ -1 +1 @@
1
- (function(_0x321e6b,_0x4a8a0c){const _0x2d9da0=a229_0x43ff,_0x4e8d66=_0x321e6b();while(!![]){try{const _0x26dddb=-parseInt(_0x2d9da0(0x1d4))/0x1+parseInt(_0x2d9da0(0x1d3))/0x2+-parseInt(_0x2d9da0(0x1d5))/0x3+-parseInt(_0x2d9da0(0x1d9))/0x4*(parseInt(_0x2d9da0(0x1ce))/0x5)+parseInt(_0x2d9da0(0x1c8))/0x6+parseInt(_0x2d9da0(0x1c1))/0x7*(parseInt(_0x2d9da0(0x1c5))/0x8)+-parseInt(_0x2d9da0(0x1c4))/0x9;if(_0x26dddb===_0x4a8a0c)break;else _0x4e8d66['push'](_0x4e8d66['shift']());}catch(_0x19fd04){_0x4e8d66['push'](_0x4e8d66['shift']());}}}(a229_0x57e5,0xd0dce));function a229_0x57e5(){const _0x4cadf6=['start','\x20[Job\x20ID:\x20','extra','24005YyvYjJ','phase','intervalFactory','stderr','replace','2138044tmLXVJ','568163pcAVvJ','338685cKAkOa','Processing','...','cyan','796boHMqQ','text','jobId','isSpinning','8004752xOpHDt','floor','trim','2674656iZyuZR','8BfMqOV','stop','clock','3459510inCYya','isTTY','toFixed'];a229_0x57e5=function(){return _0x4cadf6;};return a229_0x57e5();}import a229_0x362ae3 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x11f771,_0x90ff7e={}){const _0x50e732=a229_0x43ff,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x90ff7e;return a229_0x362ae3({'text':_0x11f771,'color':_0x50e732(0x1d8),'stream':process[_0x50e732(0x1d1)],'isEnabled':forceEnabled||process['stderr'][_0x50e732(0x1c9)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0xc38a8,_0x318930,_0x3daa42={}){const _0x5a3380=a229_0x43ff,_0x2f7b4c=_0x3daa42[_0x5a3380(0x1c7)]??(()=>Date['now']()),_0x2b1ab4=createCommandSpinner(_0xc38a8,_0x3daa42);_0x2b1ab4[_0x5a3380(0x1cb)]();const _0x834cc0=_0x2f7b4c();try{const _0x2ec66d=await _0x318930(),_0x55a599=_0x2f7b4c()-_0x834cc0;return _0x2b1ab4[_0x5a3380(0x1c6)](),{'data':_0x2ec66d,'elapsedMs':_0x55a599};}catch(_0xb732d4){_0x2b1ab4[_0x5a3380(0x1c6)]();throw _0xb732d4;}}export async function withProgressSpinner(_0x51aae9,_0x5ad36c,_0xfa7083={}){const _0x292e48=a229_0x43ff,_0x3c488a=_0xfa7083['clock']??(()=>Date['now']()),_0x1c934d=_0xfa7083[_0x292e48(0x1d0)]??setInterval,_0x49bedc=createCommandSpinner(_0x51aae9,_0xfa7083);_0x49bedc[_0x292e48(0x1cb)]();const _0x4049ae=_0x3c488a(),_0x25e79b=_0x51aae9[_0x292e48(0x1d2)](_0x292e48(0x1d7),'')['trim']()||_0x292e48(0x1d6),_0x4131af={};let _0x1bd3ae=_0x51aae9;const _0xc8d23d=()=>{const _0x66f78=_0x292e48;if(!_0x49bedc['isSpinning'])return;const _0x2110e2=_0x3c488a()-_0x4049ae,_0x12170a=formatElapsed(_0x2110e2),_0x529d01=_0x4131af[_0x66f78(0x1cf)]?.[_0x66f78(0x1c3)]()||_0x25e79b,_0x4bc4b5=_0x4131af[_0x66f78(0x1db)]?_0x66f78(0x1cc)+_0x4131af[_0x66f78(0x1db)]+']':'',_0x10971c=_0x4131af[_0x66f78(0x1cd)]?'\x20'+_0x4131af['extra']:'',_0xc41e25=_0x529d01+'\x20'+_0x12170a+_0x10971c+_0x4bc4b5;_0xc41e25!==_0x1bd3ae&&_0xc41e25[_0x66f78(0x1c3)]()&&(_0x49bedc['text']=_0xc41e25,_0x1bd3ae=_0xc41e25);},_0x254414=_0x1c934d(()=>{_0xc8d23d();},0x3e8),_0x17a69a={'setPhase':_0x123345=>{const _0x1151c6=_0x292e48;_0x4131af['phase']=_0x123345;const _0x43162a=_0x123345?.[_0x1151c6(0x1c3)]()||_0x25e79b,_0x2d143c=_0x3c488a()-_0x4049ae,_0x2b4df8=formatElapsed(_0x2d143c),_0x56ffe4=_0x4131af['jobId']?_0x1151c6(0x1cc)+_0x4131af[_0x1151c6(0x1db)]+']':'',_0x41777c=_0x4131af['extra']?'\x20'+_0x4131af[_0x1151c6(0x1cd)]:'',_0x5f29e2=_0x43162a+'\x20'+_0x2b4df8+_0x41777c+_0x56ffe4;_0x49bedc[_0x1151c6(0x1c0)]&&_0x5f29e2[_0x1151c6(0x1c3)]()&&(_0x49bedc[_0x1151c6(0x1da)]=_0x5f29e2,_0x1bd3ae=_0x5f29e2);},'setJobId':_0x2c561a=>{_0x4131af['jobId']=_0x2c561a,_0xc8d23d();},'setExtra':_0x306cc8=>{const _0x1cad28=_0x292e48;_0x4131af[_0x1cad28(0x1cd)]=_0x306cc8,_0xc8d23d();}};_0xc8d23d();try{const _0x43f0ff=await _0x5ad36c(_0x17a69a),_0xbedf34=_0x3c488a()-_0x4049ae;return{'data':_0x43f0ff,'elapsedMs':_0xbedf34};}finally{clearInterval(_0x254414),_0x49bedc['stop']();}}function a229_0x43ff(_0x33917d,_0x237df2){_0x33917d=_0x33917d-0x1c0;const _0x57e596=a229_0x57e5();let _0x43fff4=_0x57e596[_0x33917d];return _0x43fff4;}export function formatElapsed(_0xc488ca){const _0x2698db=a229_0x43ff,_0x3e0e7a=Math[_0x2698db(0x1c2)](_0xc488ca/0x3e8);if(_0x3e0e7a<0x3c)return(_0xc488ca/0x3e8)[_0x2698db(0x1ca)](0x1)+'s';const _0x2a05fd=Math[_0x2698db(0x1c2)](_0x3e0e7a/0x3c),_0x2c9869=_0x3e0e7a%0x3c;if(_0x2a05fd<0x3c)return _0x2a05fd+'m\x20'+_0x2c9869+'s';const _0x5048d9=Math[_0x2698db(0x1c2)](_0x2a05fd/0x3c),_0x18a9bd=_0x2a05fd%0x3c;return _0x5048d9+'h\x20'+_0x18a9bd+'m';}
1
+ function a229_0x216a(){const _0x304747=['\x20[Job\x20ID:\x20','3327380HZqkAs','clock','1650636mVQVvY','cyan','floor','jobId','extra','540600EPzmDZ','110874BhlcCA','toFixed','131968qjqsOG','trim','stop','isSpinning','stderr','now','isTTY','4046476nkuzPA','text','phase','replace','1549968lvbQyT','start'];a229_0x216a=function(){return _0x304747;};return a229_0x216a();}(function(_0x34df73,_0x634cfa){const _0x30bc96=a229_0x46a8,_0x2fa6cc=_0x34df73();while(!![]){try{const _0x54e3d6=parseInt(_0x30bc96(0x150))/0x1+parseInt(_0x30bc96(0x14e))/0x2+parseInt(_0x30bc96(0x14d))/0x3+-parseInt(_0x30bc96(0x143))/0x4+parseInt(_0x30bc96(0x146))/0x5+parseInt(_0x30bc96(0x148))/0x6+-parseInt(_0x30bc96(0x13f))/0x7;if(_0x54e3d6===_0x634cfa)break;else _0x2fa6cc['push'](_0x2fa6cc['shift']());}catch(_0x490fed){_0x2fa6cc['push'](_0x2fa6cc['shift']());}}}(a229_0x216a,0x53a63));import a229_0x30edcc from'ora';function a229_0x46a8(_0x1e1ec2,_0x2a8bbd){_0x1e1ec2=_0x1e1ec2-0x13a;const _0x216aae=a229_0x216a();let _0x46a849=_0x216aae[_0x1e1ec2];return _0x46a849;}import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x566dfe,_0x1d88e7={}){const _0x2eea62=a229_0x46a8,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1d88e7;return a229_0x30edcc({'text':_0x566dfe,'color':_0x2eea62(0x149),'stream':process['stderr'],'isEnabled':forceEnabled||process[_0x2eea62(0x13c)][_0x2eea62(0x13e)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x409621,_0xde633a,_0xdfe177={}){const _0x1982ef=a229_0x46a8,_0x2a5e0b=_0xdfe177[_0x1982ef(0x147)]??(()=>Date[_0x1982ef(0x13d)]()),_0x470334=createCommandSpinner(_0x409621,_0xdfe177);_0x470334[_0x1982ef(0x144)]();const _0x1b64ec=_0x2a5e0b();try{const _0x5cbb15=await _0xde633a(),_0x301f74=_0x2a5e0b()-_0x1b64ec;return _0x470334[_0x1982ef(0x13a)](),{'data':_0x5cbb15,'elapsedMs':_0x301f74};}catch(_0x54ecb0){_0x470334[_0x1982ef(0x13a)]();throw _0x54ecb0;}}export async function withProgressSpinner(_0x391511,_0x58ea2c,_0x32baf4={}){const _0xf1dd66=a229_0x46a8,_0x53ebe9=_0x32baf4['clock']??(()=>Date[_0xf1dd66(0x13d)]()),_0x3885ec=_0x32baf4['intervalFactory']??setInterval,_0x34dbfc=createCommandSpinner(_0x391511,_0x32baf4);_0x34dbfc['start']();const _0x556623=_0x53ebe9(),_0x386d11=_0x391511[_0xf1dd66(0x142)]('...','')['trim']()||'Processing',_0x403172={};let _0x1f1f7f=_0x391511;const _0x2acc04=()=>{const _0xff9fcd=_0xf1dd66;if(!_0x34dbfc[_0xff9fcd(0x13b)])return;const _0x36cf50=_0x53ebe9()-_0x556623,_0x2a8e25=formatElapsed(_0x36cf50),_0xc15ee8=_0x403172[_0xff9fcd(0x141)]?.[_0xff9fcd(0x151)]()||_0x386d11,_0x2fbf49=_0x403172[_0xff9fcd(0x14b)]?_0xff9fcd(0x145)+_0x403172[_0xff9fcd(0x14b)]+']':'',_0x4c34d2=_0x403172[_0xff9fcd(0x14c)]?'\x20'+_0x403172[_0xff9fcd(0x14c)]:'',_0x3fbff7=_0xc15ee8+'\x20'+_0x2a8e25+_0x4c34d2+_0x2fbf49;_0x3fbff7!==_0x1f1f7f&&_0x3fbff7[_0xff9fcd(0x151)]()&&(_0x34dbfc['text']=_0x3fbff7,_0x1f1f7f=_0x3fbff7);},_0x4137b6=_0x3885ec(()=>{_0x2acc04();},0x3e8),_0xa178dd={'setPhase':_0x35e650=>{const _0x20150c=_0xf1dd66;_0x403172[_0x20150c(0x141)]=_0x35e650;const _0x3057a1=_0x35e650?.['trim']()||_0x386d11,_0x2428d4=_0x53ebe9()-_0x556623,_0x33f35a=formatElapsed(_0x2428d4),_0x84b413=_0x403172[_0x20150c(0x14b)]?_0x20150c(0x145)+_0x403172[_0x20150c(0x14b)]+']':'',_0x5cfea3=_0x403172[_0x20150c(0x14c)]?'\x20'+_0x403172[_0x20150c(0x14c)]:'',_0x2be5aa=_0x3057a1+'\x20'+_0x33f35a+_0x5cfea3+_0x84b413;_0x34dbfc[_0x20150c(0x13b)]&&_0x2be5aa[_0x20150c(0x151)]()&&(_0x34dbfc[_0x20150c(0x140)]=_0x2be5aa,_0x1f1f7f=_0x2be5aa);},'setJobId':_0x31d5ff=>{_0x403172['jobId']=_0x31d5ff,_0x2acc04();},'setExtra':_0x3ffcff=>{const _0x210659=_0xf1dd66;_0x403172[_0x210659(0x14c)]=_0x3ffcff,_0x2acc04();}};_0x2acc04();try{const _0x22a0d7=await _0x58ea2c(_0xa178dd),_0x400e2c=_0x53ebe9()-_0x556623;return{'data':_0x22a0d7,'elapsedMs':_0x400e2c};}finally{clearInterval(_0x4137b6),_0x34dbfc[_0xf1dd66(0x13a)]();}}export function formatElapsed(_0x33040f){const _0x2fac46=a229_0x46a8,_0x2f8a6a=Math[_0x2fac46(0x14a)](_0x33040f/0x3e8);if(_0x2f8a6a<0x3c)return(_0x33040f/0x3e8)[_0x2fac46(0x14f)](0x1)+'s';const _0x485c74=Math['floor'](_0x2f8a6a/0x3c),_0x3910c6=_0x2f8a6a%0x3c;if(_0x485c74<0x3c)return _0x485c74+'m\x20'+_0x3910c6+'s';const _0x28d914=Math['floor'](_0x485c74/0x3c),_0x100fce=_0x485c74%0x3c;return _0x28d914+'h\x20'+_0x100fce+'m';}
@@ -1 +1 @@
1
- function a230_0x41d1(_0x1a712d,_0x165e88){_0x1a712d=_0x1a712d-0xbf;const _0x2cceaa=a230_0x2cce();let _0x41d16a=_0x2cceaa[_0x1a712d];return _0x41d16a;}(function(_0x2c5f2d,_0x31b385){const _0x56a84d=a230_0x41d1,_0x57a623=_0x2c5f2d();while(!![]){try{const _0xfd4e66=parseInt(_0x56a84d(0xd6))/0x1*(-parseInt(_0x56a84d(0xc1))/0x2)+parseInt(_0x56a84d(0xcf))/0x3+-parseInt(_0x56a84d(0xc9))/0x4+-parseInt(_0x56a84d(0xce))/0x5*(-parseInt(_0x56a84d(0xd5))/0x6)+-parseInt(_0x56a84d(0xd3))/0x7+parseInt(_0x56a84d(0xcb))/0x8*(-parseInt(_0x56a84d(0xc0))/0x9)+parseInt(_0x56a84d(0xbf))/0xa;if(_0xfd4e66===_0x31b385)break;else _0x57a623['push'](_0x57a623['shift']());}catch(_0x4cc376){_0x57a623['push'](_0x57a623['shift']());}}}(a230_0x2cce,0x8e045));function a230_0x2cce(){const _0x5bed22=['27770xXFypx','762042QmTqUi','[LLM\x20API\x20SSE]\x20','Response\x20body\x20is\x20null','pop','2894129aAQHlC','event','342rWBUhs','16lCoDlo','indexOf','18256280RUogqi','1442592SkwwcQ','34072IvRzFj','trim','decode','body','split','read','startsWith','debug','3872832CefAIB','data','8myCzIg','slice','releaseLock'];a230_0x2cce=function(){return _0x5bed22;};return a230_0x2cce();}export async function*parseSSEStream(_0x5ecc6f,_0x114ab5){const _0x330c31=a230_0x41d1;if(!_0x5ecc6f[_0x330c31(0xc4)])throw new Error(_0x330c31(0xd1));const _0x296d60=_0x5ecc6f['body']['getReader'](),_0x4b625c=new TextDecoder();let _0x7b75c9='',_0x3311ba={};try{while(!![]){const {done:_0x424efd,value:_0x4b4845}=await _0x296d60[_0x330c31(0xc6)]();if(_0x424efd){if(_0x3311ba['data']){_0x114ab5?.['debug'](_0x330c31(0xd0)+_0x3311ba['data']);const _0x357d2b=parseSSEData(_0x3311ba[_0x330c31(0xca)]);yield _0x357d2b;}break;}_0x7b75c9+=_0x4b625c[_0x330c31(0xc3)](_0x4b4845,{'stream':!![]});const _0x24e49a=_0x7b75c9[_0x330c31(0xc5)]('\x0a');_0x7b75c9=_0x24e49a[_0x330c31(0xd2)]()||'';for(const _0x370df1 of _0x24e49a){if(_0x370df1[_0x330c31(0xc2)]()===''){if(_0x3311ba['data']){_0x114ab5?.[_0x330c31(0xc8)](_0x330c31(0xd0)+_0x3311ba[_0x330c31(0xca)]);const _0x29515f=parseSSEData(_0x3311ba[_0x330c31(0xca)]);yield _0x29515f,_0x3311ba={};}continue;}if(_0x370df1[_0x330c31(0xc7)](':'))continue;const _0x5772a3=_0x370df1[_0x330c31(0xd7)](':');if(_0x5772a3===-0x1)continue;const _0x412be0=_0x370df1[_0x330c31(0xcc)](0x0,_0x5772a3);let _0x1e12c3=_0x370df1[_0x330c31(0xcc)](_0x5772a3+0x1);_0x1e12c3[_0x330c31(0xc7)]('\x20')&&(_0x1e12c3=_0x1e12c3['slice'](0x1));switch(_0x412be0){case _0x330c31(0xd4):_0x3311ba[_0x330c31(0xd4)]=_0x1e12c3;break;case _0x330c31(0xca):_0x3311ba[_0x330c31(0xca)]=_0x3311ba[_0x330c31(0xca)]?_0x3311ba['data']+'\x0a'+_0x1e12c3:_0x1e12c3;break;case'id':_0x3311ba['id']=_0x1e12c3;break;}}}}finally{_0x296d60[_0x330c31(0xcd)]();}}function parseSSEData(_0x1d1c7){try{return JSON['parse'](_0x1d1c7);}catch(_0x41f5fb){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x1d1c7,{'cause':_0x41f5fb});}}
1
+ function a230_0x5d43(_0x368bdb,_0x1eeab1){_0x368bdb=_0x368bdb-0xcf;const _0x129d1b=a230_0x129d();let _0x5d438a=_0x129d1b[_0x368bdb];return _0x5d438a;}(function(_0x452274,_0x3a04e9){const _0x532276=a230_0x5d43,_0x5a96e0=_0x452274();while(!![]){try{const _0x2f1bf7=parseInt(_0x532276(0xd5))/0x1+parseInt(_0x532276(0xe4))/0x2+-parseInt(_0x532276(0xe0))/0x3*(parseInt(_0x532276(0xd8))/0x4)+parseInt(_0x532276(0xd0))/0x5+-parseInt(_0x532276(0xdb))/0x6+-parseInt(_0x532276(0xe6))/0x7+parseInt(_0x532276(0xd9))/0x8;if(_0x2f1bf7===_0x3a04e9)break;else _0x5a96e0['push'](_0x5a96e0['shift']());}catch(_0x4e4a5a){_0x5a96e0['push'](_0x5a96e0['shift']());}}}(a230_0x129d,0x1b871));function a230_0x129d(){const _0x168966=['read','[LLM\x20API\x20SSE]\x20','debug','data','86047wLdakp','event','pop','740536qmFaVl','1521600nqOvbf','indexOf','1268472WWQYCJ','slice','releaseLock','split','trim','3XJDqdY','decode','body','getReader','383332PizSuV','Response\x20body\x20is\x20null','1047914qPRXuP','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','startsWith','parse','955440FCOJwY'];a230_0x129d=function(){return _0x168966;};return a230_0x129d();}export async function*parseSSEStream(_0x115ff2,_0x3d5094){const _0x517534=a230_0x5d43;if(!_0x115ff2[_0x517534(0xe2)])throw new Error(_0x517534(0xe5));const _0x238525=_0x115ff2[_0x517534(0xe2)][_0x517534(0xe3)](),_0x566263=new TextDecoder();let _0x3cd0eb='',_0x558cd1={};try{while(!![]){const {done:_0x17df7a,value:_0x4edca8}=await _0x238525[_0x517534(0xd1)]();if(_0x17df7a){if(_0x558cd1[_0x517534(0xd4)]){_0x3d5094?.[_0x517534(0xd3)]('[LLM\x20API\x20SSE]\x20'+_0x558cd1[_0x517534(0xd4)]);const _0x23d5d5=parseSSEData(_0x558cd1[_0x517534(0xd4)]);yield _0x23d5d5;}break;}_0x3cd0eb+=_0x566263[_0x517534(0xe1)](_0x4edca8,{'stream':!![]});const _0xfe8ece=_0x3cd0eb[_0x517534(0xde)]('\x0a');_0x3cd0eb=_0xfe8ece[_0x517534(0xd7)]()||'';for(const _0xdce0bf of _0xfe8ece){if(_0xdce0bf[_0x517534(0xdf)]()===''){if(_0x558cd1[_0x517534(0xd4)]){_0x3d5094?.[_0x517534(0xd3)](_0x517534(0xd2)+_0x558cd1['data']);const _0x591bb3=parseSSEData(_0x558cd1[_0x517534(0xd4)]);yield _0x591bb3,_0x558cd1={};}continue;}if(_0xdce0bf[_0x517534(0xe8)](':'))continue;const _0x75da1f=_0xdce0bf[_0x517534(0xda)](':');if(_0x75da1f===-0x1)continue;const _0xedf499=_0xdce0bf['slice'](0x0,_0x75da1f);let _0x3f807d=_0xdce0bf[_0x517534(0xdc)](_0x75da1f+0x1);_0x3f807d[_0x517534(0xe8)]('\x20')&&(_0x3f807d=_0x3f807d[_0x517534(0xdc)](0x1));switch(_0xedf499){case'event':_0x558cd1[_0x517534(0xd6)]=_0x3f807d;break;case'data':_0x558cd1[_0x517534(0xd4)]=_0x558cd1[_0x517534(0xd4)]?_0x558cd1[_0x517534(0xd4)]+'\x0a'+_0x3f807d:_0x3f807d;break;case'id':_0x558cd1['id']=_0x3f807d;break;}}}}finally{_0x238525[_0x517534(0xdd)]();}}function parseSSEData(_0x4f6ddc){const _0x186922=a230_0x5d43;try{return JSON[_0x186922(0xcf)](_0x4f6ddc);}catch(_0x383808){throw new Error(_0x186922(0xe7)+_0x4f6ddc,{'cause':_0x383808});}}
@@ -1 +1 @@
1
- (function(_0x383ac7,_0x91d236){const _0x1c2365=a231_0x2936,_0x46d16c=_0x383ac7();while(!![]){try{const _0xcb006f=-parseInt(_0x1c2365(0x154))/0x1*(parseInt(_0x1c2365(0x151))/0x2)+parseInt(_0x1c2365(0x15e))/0x3*(parseInt(_0x1c2365(0x157))/0x4)+-parseInt(_0x1c2365(0x15f))/0x5*(parseInt(_0x1c2365(0x150))/0x6)+-parseInt(_0x1c2365(0x164))/0x7+-parseInt(_0x1c2365(0x160))/0x8*(parseInt(_0x1c2365(0x15b))/0x9)+parseInt(_0x1c2365(0x162))/0xa*(parseInt(_0x1c2365(0x15a))/0xb)+-parseInt(_0x1c2365(0x158))/0xc*(-parseInt(_0x1c2365(0x165))/0xd);if(_0xcb006f===_0x91d236)break;else _0x46d16c['push'](_0x46d16c['shift']());}catch(_0x3026a6){_0x46d16c['push'](_0x46d16c['shift']());}}}(a231_0x4c5b,0x6e4c5));import a231_0x28f44c from'string-width';export function stringWidth(_0x4b01d0){return a231_0x28f44c(_0x4b01d0);}export function padEnd(_0x188352,_0x10bd93){const _0x4c709d=a231_0x2936,_0x30bd09=stringWidth(_0x188352);if(_0x30bd09>=_0x10bd93)return _0x188352;return _0x188352+'\x20'[_0x4c709d(0x14d)](_0x10bd93-_0x30bd09);}export function padStart(_0xe6c917,_0x1ff20d){const _0x8e36c8=a231_0x2936,_0xb64c3e=stringWidth(_0xe6c917);if(_0xb64c3e>=_0x1ff20d)return _0xe6c917;return'\x20'[_0x8e36c8(0x14d)](_0x1ff20d-_0xb64c3e)+_0xe6c917;}export function centerAlign(_0x304b66,_0x38e7c6){const _0x351099=a231_0x2936,_0x4996d3=stringWidth(_0x304b66);if(_0x4996d3>_0x38e7c6){if(_0x38e7c6<=0x1)return'…'[_0x351099(0x159)](0x0,_0x38e7c6);let _0x2dea7d=_0x304b66;while(stringWidth(_0x2dea7d+'…')>_0x38e7c6){_0x2dea7d=_0x2dea7d[_0x351099(0x14f)](0x0,-0x1);}return _0x2dea7d+'…';}if(_0x4996d3===_0x38e7c6)return _0x304b66;const _0x58df7f=_0x38e7c6-_0x4996d3,_0x34fae3=Math[_0x351099(0x152)](_0x58df7f/0x2),_0x3cd128=_0x58df7f-_0x34fae3;return'\x20'[_0x351099(0x14d)](_0x34fae3)+_0x304b66+'\x20'[_0x351099(0x14d)](_0x3cd128);}function a231_0x4c5b(){const _0x4adef8=['143vKAtBJ','toString','\x5c$&','random','repeat','unknown','slice','150228zCmfQm','988YRajfO','floor','test','893qyVmMA','toLowerCase','length','4YTBWcw','1352508nREECW','substring','40117enTCWv','333SLfXNb','padStart','replace','2337714raMWVJ','180OqlyJq','37144xXryje','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','500vpJjIZ','trim','1647135UERpno'];a231_0x4c5b=function(){return _0x4adef8;};return a231_0x4c5b();}export function escapeStringLiteral(_0xff694c){const _0x503fb6=a231_0x2936;if(!_0xff694c||_0xff694c[_0x503fb6(0x163)]()[_0x503fb6(0x156)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x254012=_0xff694c[_0x503fb6(0x15d)](/'/g,'\x27\x27');return'\x27'+_0x254012+'\x27';}export function globToLike(_0x512901){const _0x12aa22=a231_0x2936;let _0x3495b8=_0x512901['replace'](/\\/g,'\x5c\x5c')[_0x12aa22(0x15d)](/%/g,'\x5c%')[_0x12aa22(0x15d)](/_/g,'\x5c_');return _0x3495b8=_0x3495b8[_0x12aa22(0x15d)](/\*/g,'%')['replace'](/\?/g,'_'),_0x3495b8;}export function buildLikePattern(_0x4da5e1){const _0x5ccd46=a231_0x2936;if(!_0x4da5e1||_0x4da5e1[_0x5ccd46(0x163)]()[_0x5ccd46(0x156)]===0x0)throw new Error(_0x5ccd46(0x161));const _0x30cacf=globToLike(_0x4da5e1),_0x3f4f1e=_0x30cacf[_0x5ccd46(0x15d)](/'/g,'\x27\x27');return'\x27'+_0x3f4f1e+'\x27';}export function matchGlobPattern(_0x58f841,_0x487dee){const _0x2bd800=a231_0x2936,_0x11bfe3=_0x487dee[_0x2bd800(0x15d)](/[.+^${}()|[\]\\]/g,_0x2bd800(0x167))[_0x2bd800(0x15d)](/\*/g,'.*')[_0x2bd800(0x15d)](/\?/g,'.'),_0x4a48df=new RegExp('^'+_0x11bfe3+'$');return _0x4a48df[_0x2bd800(0x153)](_0x58f841);}function a231_0x2936(_0x253f21,_0xdd9fbb){_0x253f21=_0x253f21-0x14d;const _0x4c5baf=a231_0x4c5b();let _0x2936a3=_0x4c5baf[_0x253f21];return _0x2936a3;}export function getSanitizedUsername(){const _0x223de1=a231_0x2936,_0x58ebe2=process.env.USER||process.env.USERNAME||_0x223de1(0x14e);return _0x58ebe2[_0x223de1(0x15d)](/[^a-zA-Z0-9]/g,'')[_0x223de1(0x155)]();}export function generateRandomHex(){const _0x27e169=a231_0x2936,_0x23a8f5=Math[_0x27e169(0x152)](Math[_0x27e169(0x168)]()*0xfffff);return _0x23a8f5[_0x27e169(0x166)](0x10)[_0x27e169(0x15c)](0x5,'0');}export function sanitizeFileName(_0x4f90d9){const _0x5b063e=a231_0x2936;return _0x4f90d9[_0x5b063e(0x155)]()[_0x5b063e(0x15d)](/[/\\:*?"<>|]/g,'-')[_0x5b063e(0x15d)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x5b063e(0x15d)](/^-|-$/g,'');}
1
+ (function(_0x441f73,_0x2756f7){const _0x16aaeb=a231_0xd2b1,_0x3e42aa=_0x441f73();while(!![]){try{const _0x5e2055=-parseInt(_0x16aaeb(0xd9))/0x1+parseInt(_0x16aaeb(0xcc))/0x2+parseInt(_0x16aaeb(0xd3))/0x3*(parseInt(_0x16aaeb(0xd8))/0x4)+-parseInt(_0x16aaeb(0xce))/0x5+parseInt(_0x16aaeb(0xe1))/0x6*(parseInt(_0x16aaeb(0xc9))/0x7)+-parseInt(_0x16aaeb(0xcd))/0x8*(parseInt(_0x16aaeb(0xd4))/0x9)+parseInt(_0x16aaeb(0xca))/0xa*(-parseInt(_0x16aaeb(0xde))/0xb);if(_0x5e2055===_0x2756f7)break;else _0x3e42aa['push'](_0x3e42aa['shift']());}catch(_0x14e372){_0x3e42aa['push'](_0x3e42aa['shift']());}}}(a231_0x2446,0x6656f));import a231_0x4a5562 from'string-width';export function stringWidth(_0x4821d8){return a231_0x4a5562(_0x4821d8);}function a231_0x2446(){const _0xf9ab45=['slice','random','test','trim','990uSloPI','replace','Cannot\x20escape\x20empty\x20string\x20literal','47364ptGCHw','substring','476wyPTnk','1470RkiINT','length','718292cTaMNC','16ZZaccz','2436800VHAswr','floor','unknown','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','\x5c$&','11166EXjyBs','913509MMbKDz','toString','toLowerCase','repeat','592iilXud','324019yKShIx'];a231_0x2446=function(){return _0xf9ab45;};return a231_0x2446();}export function padEnd(_0xb50efc,_0x3cb16a){const _0x31750d=a231_0xd2b1,_0x4cfd41=stringWidth(_0xb50efc);if(_0x4cfd41>=_0x3cb16a)return _0xb50efc;return _0xb50efc+'\x20'[_0x31750d(0xd7)](_0x3cb16a-_0x4cfd41);}export function padStart(_0x3d0c99,_0x476424){const _0x5ccc30=stringWidth(_0x3d0c99);if(_0x5ccc30>=_0x476424)return _0x3d0c99;return'\x20'['repeat'](_0x476424-_0x5ccc30)+_0x3d0c99;}export function centerAlign(_0x145f1,_0x1d5a61){const _0x39cf46=a231_0xd2b1,_0x1c4d53=stringWidth(_0x145f1);if(_0x1c4d53>_0x1d5a61){if(_0x1d5a61<=0x1)return'…'[_0x39cf46(0xe2)](0x0,_0x1d5a61);let _0x3f56ad=_0x145f1;while(stringWidth(_0x3f56ad+'…')>_0x1d5a61){_0x3f56ad=_0x3f56ad[_0x39cf46(0xda)](0x0,-0x1);}return _0x3f56ad+'…';}if(_0x1c4d53===_0x1d5a61)return _0x145f1;const _0xdbf3f2=_0x1d5a61-_0x1c4d53,_0x537e1e=Math['floor'](_0xdbf3f2/0x2),_0x10a639=_0xdbf3f2-_0x537e1e;return'\x20'['repeat'](_0x537e1e)+_0x145f1+'\x20'[_0x39cf46(0xd7)](_0x10a639);}export function escapeStringLiteral(_0x6793a6){const _0xeaf7db=a231_0xd2b1;if(!_0x6793a6||_0x6793a6['trim']()[_0xeaf7db(0xcb)]===0x0)throw new Error(_0xeaf7db(0xe0));const _0x18c29c=_0x6793a6[_0xeaf7db(0xdf)](/'/g,'\x27\x27');return'\x27'+_0x18c29c+'\x27';}export function globToLike(_0x36df41){const _0x5a4f48=a231_0xd2b1;let _0x14d3dd=_0x36df41[_0x5a4f48(0xdf)](/\\/g,'\x5c\x5c')[_0x5a4f48(0xdf)](/%/g,'\x5c%')[_0x5a4f48(0xdf)](/_/g,'\x5c_');return _0x14d3dd=_0x14d3dd[_0x5a4f48(0xdf)](/\*/g,'%')[_0x5a4f48(0xdf)](/\?/g,'_'),_0x14d3dd;}function a231_0xd2b1(_0x4d831a,_0x4253cb){_0x4d831a=_0x4d831a-0xc9;const _0x244625=a231_0x2446();let _0xd2b1b6=_0x244625[_0x4d831a];return _0xd2b1b6;}export function buildLikePattern(_0x4c789c){const _0x19d53d=a231_0xd2b1;if(!_0x4c789c||_0x4c789c[_0x19d53d(0xdd)]()[_0x19d53d(0xcb)]===0x0)throw new Error(_0x19d53d(0xd1));const _0x47d924=globToLike(_0x4c789c),_0x507b95=_0x47d924[_0x19d53d(0xdf)](/'/g,'\x27\x27');return'\x27'+_0x507b95+'\x27';}export function matchGlobPattern(_0x5bb9de,_0x12c0ea){const _0x452558=a231_0xd2b1,_0x4377eb=_0x12c0ea[_0x452558(0xdf)](/[.+^${}()|[\]\\]/g,_0x452558(0xd2))[_0x452558(0xdf)](/\*/g,'.*')[_0x452558(0xdf)](/\?/g,'.'),_0x350e04=new RegExp('^'+_0x4377eb+'$');return _0x350e04[_0x452558(0xdc)](_0x5bb9de);}export function getSanitizedUsername(){const _0x8e5f7=a231_0xd2b1,_0x52b2e5=process.env.USER||process.env.USERNAME||_0x8e5f7(0xd0);return _0x52b2e5[_0x8e5f7(0xdf)](/[^a-zA-Z0-9]/g,'')[_0x8e5f7(0xd6)]();}export function generateRandomHex(){const _0x54d9d7=a231_0xd2b1,_0x7ae9e6=Math[_0x54d9d7(0xcf)](Math[_0x54d9d7(0xdb)]()*0xfffff);return _0x7ae9e6[_0x54d9d7(0xd5)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x59eded){const _0x951677=a231_0xd2b1;return _0x59eded[_0x951677(0xd6)]()[_0x951677(0xdf)](/[/\\:*?"<>|]/g,'-')[_0x951677(0xdf)](/\s+/g,'-')[_0x951677(0xdf)](/-+/g,'-')[_0x951677(0xdf)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- function a232_0x6a09(){const _0x1156e8=['push','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','includes','1192722EYGHYJ','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','join','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','trim','3546968KeBBjL','187811YXdTDq','catalog','table','281342NBqRpN','Pattern\x20cannot\x20be\x20just\x20a\x20dot','66fjzCjw','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','13852WTTVTe','1619219kUgoDu','database','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','length','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','658625WWSqLf','split'];a232_0x6a09=function(){return _0x1156e8;};return a232_0x6a09();}(function(_0x44bf7c,_0x175a6b){const _0x59c6eb=a232_0x2230,_0x35c81a=_0x44bf7c();while(!![]){try{const _0x3a3562=parseInt(_0x59c6eb(0xe9))/0x1+-parseInt(_0x59c6eb(0xec))/0x2+-parseInt(_0x59c6eb(0xee))/0x3*(parseInt(_0x59c6eb(0xd8))/0x4)+parseInt(_0x59c6eb(0xde))/0x5+-parseInt(_0x59c6eb(0xe3))/0x6+-parseInt(_0x59c6eb(0xd9))/0x7+parseInt(_0x59c6eb(0xe8))/0x8;if(_0x3a3562===_0x175a6b)break;else _0x35c81a['push'](_0x35c81a['shift']());}catch(_0x452d47){_0x35c81a['push'](_0x35c81a['shift']());}}}(a232_0x6a09,0x1c4ea));function hasWildcard(_0x3a3cd2){const _0xe3147e=a232_0x2230;return _0x3a3cd2[_0xe3147e(0xe2)]('*')||_0x3a3cd2[_0xe3147e(0xe2)]('?');}export function parseTableReference(_0x1d4d9c){const _0x4e8f7c=a232_0x2230;if(!_0x1d4d9c||_0x1d4d9c[_0x4e8f7c(0xe7)]()[_0x4e8f7c(0xdc)]===0x0)throw new Error(_0x4e8f7c(0xe6));const _0x42ba14=_0x1d4d9c[_0x4e8f7c(0xe7)](),_0x2bbd6b={'original':_0x42ba14},_0xa0e84e=_0x42ba14[_0x4e8f7c(0xdf)]('.');if(_0xa0e84e['length']===0x1){const _0x18e185=_0xa0e84e[0x0];if(!_0x18e185)throw new Error(_0x4e8f7c(0xed));_0x2bbd6b[_0x4e8f7c(0xeb)]=_0x18e185;}else{if(_0xa0e84e[_0x4e8f7c(0xdc)]===0x2){const [_0x54a812,_0x66b694]=_0xa0e84e;if(!_0x54a812)throw new Error(_0x4e8f7c(0xe4));if(!_0x66b694)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x2bbd6b[_0x4e8f7c(0xda)]=_0x54a812,_0x2bbd6b[_0x4e8f7c(0xeb)]=_0x66b694;}else{if(_0xa0e84e[_0x4e8f7c(0xdc)]===0x3){const [_0x17380b,_0x1f7019,_0x58efd0]=_0xa0e84e;if(!_0x17380b||!_0x1f7019||!_0x58efd0)throw new Error(_0x4e8f7c(0xe1));_0x2bbd6b[_0x4e8f7c(0xea)]=_0x17380b,_0x2bbd6b[_0x4e8f7c(0xda)]=_0x1f7019,_0x2bbd6b[_0x4e8f7c(0xeb)]=_0x58efd0;}else throw new Error(_0x4e8f7c(0xdd));}}return _0x2bbd6b;}export function formatTableReference(_0x537b52){const _0x22e694=a232_0x2230,_0x243612=[];return _0x537b52[_0x22e694(0xea)]&&_0x243612[_0x22e694(0xe0)](_0x537b52[_0x22e694(0xea)]),_0x537b52[_0x22e694(0xda)]&&_0x243612['push'](_0x537b52[_0x22e694(0xda)]),_0x537b52[_0x22e694(0xeb)]&&_0x243612[_0x22e694(0xe0)](_0x537b52['table']),_0x243612[_0x22e694(0xe5)]('.');}function a232_0x2230(_0x32fc34,_0x26d728){_0x32fc34=_0x32fc34-0xd8;const _0x6a09f6=a232_0x6a09();let _0x223074=_0x6a09f6[_0x32fc34];return _0x223074;}export function validateTableListReference(_0x3a594f){return undefined;}export function validateTableDescribeReference(_0x30a5ff){const _0x2de0e0=a232_0x2230;if(!_0x30a5ff[_0x2de0e0(0xeb)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x30a5ff[_0x2de0e0(0xda)]&&hasWildcard(_0x30a5ff[_0x2de0e0(0xda)]))return _0x2de0e0(0xef);if(hasWildcard(_0x30a5ff['table']))return _0x2de0e0(0xdb);return undefined;}
1
+ (function(_0x4269d6,_0x25d644){const _0x41c78d=a232_0x1795,_0x14797c=_0x4269d6();while(!![]){try{const _0x186151=parseInt(_0x41c78d(0x14a))/0x1+parseInt(_0x41c78d(0x150))/0x2*(parseInt(_0x41c78d(0x13d))/0x3)+-parseInt(_0x41c78d(0x149))/0x4+-parseInt(_0x41c78d(0x14b))/0x5+parseInt(_0x41c78d(0x140))/0x6+parseInt(_0x41c78d(0x14d))/0x7+parseInt(_0x41c78d(0x141))/0x8*(-parseInt(_0x41c78d(0x13c))/0x9);if(_0x186151===_0x25d644)break;else _0x14797c['push'](_0x14797c['shift']());}catch(_0x5b4f9d){_0x14797c['push'](_0x14797c['shift']());}}}(a232_0x15f7,0x9d81f));function hasWildcard(_0x2f9e1d){const _0x45b75c=a232_0x1795;return _0x2f9e1d[_0x45b75c(0x13f)]('*')||_0x2f9e1d[_0x45b75c(0x13f)]('?');}export function parseTableReference(_0x44431e){const _0x4e196c=a232_0x1795;if(!_0x44431e||_0x44431e[_0x4e196c(0x145)]()[_0x4e196c(0x14f)]===0x0)throw new Error(_0x4e196c(0x151));const _0x5e0b19=_0x44431e[_0x4e196c(0x145)](),_0x1e1d2c={'original':_0x5e0b19},_0x47939b=_0x5e0b19[_0x4e196c(0x146)]('.');if(_0x47939b[_0x4e196c(0x14f)]===0x1){const _0xaad93c=_0x47939b[0x0];if(!_0xaad93c)throw new Error(_0x4e196c(0x14e));_0x1e1d2c[_0x4e196c(0x148)]=_0xaad93c;}else{if(_0x47939b[_0x4e196c(0x14f)]===0x2){const [_0x460dcd,_0x524f6e]=_0x47939b;if(!_0x460dcd)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x524f6e)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x1e1d2c[_0x4e196c(0x147)]=_0x460dcd,_0x1e1d2c[_0x4e196c(0x148)]=_0x524f6e;}else{if(_0x47939b['length']===0x3){const [_0x4eec55,_0x334e1a,_0x1e7fe8]=_0x47939b;if(!_0x4eec55||!_0x334e1a||!_0x1e7fe8)throw new Error(_0x4e196c(0x144));_0x1e1d2c[_0x4e196c(0x13b)]=_0x4eec55,_0x1e1d2c[_0x4e196c(0x147)]=_0x334e1a,_0x1e1d2c[_0x4e196c(0x148)]=_0x1e7fe8;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x1e1d2c;}function a232_0x15f7(){const _0xb91e64=['length','989926kiuDxF','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','catalog','81pJAkbI','3LoqEHM','push','includes','6711594YNTfuu','922616RuGjvF','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','trim','split','database','table','4343444cSIQrX','1199162LZPMot','1891280SsWble','join','2341409CjBror','Pattern\x20cannot\x20be\x20just\x20a\x20dot'];a232_0x15f7=function(){return _0xb91e64;};return a232_0x15f7();}function a232_0x1795(_0x45955c,_0x165199){_0x45955c=_0x45955c-0x13b;const _0x15f77f=a232_0x15f7();let _0x17955d=_0x15f77f[_0x45955c];return _0x17955d;}export function formatTableReference(_0x40c70b){const _0x213501=a232_0x1795,_0x4925cc=[];return _0x40c70b[_0x213501(0x13b)]&&_0x4925cc[_0x213501(0x13e)](_0x40c70b['catalog']),_0x40c70b[_0x213501(0x147)]&&_0x4925cc['push'](_0x40c70b[_0x213501(0x147)]),_0x40c70b[_0x213501(0x148)]&&_0x4925cc[_0x213501(0x13e)](_0x40c70b[_0x213501(0x148)]),_0x4925cc[_0x213501(0x14c)]('.');}export function validateTableListReference(_0x4c6443){return undefined;}export function validateTableDescribeReference(_0x17cb83){const _0x33f219=a232_0x1795;if(!_0x17cb83[_0x33f219(0x148)])return _0x33f219(0x142);if(_0x17cb83['database']&&hasWildcard(_0x17cb83[_0x33f219(0x147)]))return _0x33f219(0x143);if(hasWildcard(_0x17cb83[_0x33f219(0x148)]))return _0x33f219(0x152);return undefined;}