@treasuredata/tdx 2026.6.1 → 2026.6.3

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 (241) 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/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-command.js.map +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/table-deleted.js +1 -1
  54. package/dist/commands/tables.js +1 -1
  55. package/dist/commands/unset-command.js +1 -1
  56. package/dist/commands/upgrade-command.js +1 -1
  57. package/dist/commands/use-command.js +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/work-command.js +1 -1
  60. package/dist/commands/workflow-command.d.ts +2 -2
  61. package/dist/commands/workflow-command.d.ts.map +1 -1
  62. package/dist/commands/workflow-command.js +1 -1
  63. package/dist/commands/workflow-command.js.map +1 -1
  64. package/dist/core/auth.js +1 -1
  65. package/dist/core/command-output.js +1 -1
  66. package/dist/core/config.js +1 -1
  67. package/dist/core/connection-cache.js +1 -1
  68. package/dist/core/constants.js +1 -1
  69. package/dist/core/credential-cache.js +1 -1
  70. package/dist/core/global-context.js +1 -1
  71. package/dist/core/keychain.js +1 -1
  72. package/dist/core/oauth-keychain.js +1 -1
  73. package/dist/core/oauth.js +1 -1
  74. package/dist/core/profile.js +1 -1
  75. package/dist/core/project-config.js +1 -1
  76. package/dist/core/session.js +1 -1
  77. package/dist/core/user-cache.js +1 -1
  78. package/dist/core/version.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/mcp/server.js +1 -1
  81. package/dist/mcp/tools/index.js +1 -1
  82. package/dist/mcp/tools/tdx-run.js +1 -1
  83. package/dist/mcp/tools/tdx-search.js +1 -1
  84. package/dist/mcp/tools/work-create-item.js +1 -1
  85. package/dist/mcp/utils.js +1 -1
  86. package/dist/proxy/claude-usage-tracker.js +1 -1
  87. package/dist/proxy/passthrough-server.js +1 -1
  88. package/dist/proxy/sse-usage-parser.js +1 -1
  89. package/dist/sdk/agent/agent-config.js +1 -1
  90. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  91. package/dist/sdk/agent/agent-yaml.js +1 -1
  92. package/dist/sdk/agent/test/evaluator.js +1 -1
  93. package/dist/sdk/agent/test/executor.js +1 -1
  94. package/dist/sdk/agent/test/index.js +1 -1
  95. package/dist/sdk/agent/test/output.js +1 -1
  96. package/dist/sdk/agent/test/parser.js +1 -1
  97. package/dist/sdk/agent/tool-target-registry.js +1 -1
  98. package/dist/sdk/api.js +1 -1
  99. package/dist/sdk/cas/cas-api-client.js +1 -1
  100. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  101. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  102. package/dist/sdk/cas/index.js +1 -1
  103. package/dist/sdk/cas/pull-workflow.js +1 -1
  104. package/dist/sdk/cas/push-workflow.js +1 -1
  105. package/dist/sdk/client/cdp-api-client.js +1 -1
  106. package/dist/sdk/client/delivery-api-client.js +1 -1
  107. package/dist/sdk/client/endpoints.js +1 -1
  108. package/dist/sdk/client/engage-api-client.js +1 -1
  109. package/dist/sdk/client/http-client.js +1 -1
  110. package/dist/sdk/client/llm-api-client.js +1 -1
  111. package/dist/sdk/client/oauth-refresh.js +1 -1
  112. package/dist/sdk/client/rate-limiter.js +1 -1
  113. package/dist/sdk/client/td-api-client.js +1 -1
  114. package/dist/sdk/client/trino-api-client.js +1 -1
  115. package/dist/sdk/client/workflow-client.d.ts +23 -1
  116. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  117. package/dist/sdk/client/workflow-client.js +1 -1
  118. package/dist/sdk/client/workflow-client.js.map +1 -1
  119. package/dist/sdk/connection-validator.js +1 -1
  120. package/dist/sdk/connection.js +1 -1
  121. package/dist/sdk/delivery.js +1 -1
  122. package/dist/sdk/engage/campaign-pull.js +1 -1
  123. package/dist/sdk/engage/campaign-push.js +1 -1
  124. package/dist/sdk/engage/campaign-validator.js +1 -1
  125. package/dist/sdk/engage/campaign-yaml.js +1 -1
  126. package/dist/sdk/engage/template-pull.js +1 -1
  127. package/dist/sdk/engage/template-push.js +1 -1
  128. package/dist/sdk/engage/template-validator.js +1 -1
  129. package/dist/sdk/engage/template-yaml.js +1 -1
  130. package/dist/sdk/engage/types/campaign-def.js +1 -1
  131. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  132. package/dist/sdk/engage/types/template-schema.js +1 -1
  133. package/dist/sdk/engage.js +1 -1
  134. package/dist/sdk/errors.js +1 -1
  135. package/dist/sdk/index.js +1 -1
  136. package/dist/sdk/io/index.js +1 -1
  137. package/dist/sdk/io/node-filesystem.js +1 -1
  138. package/dist/sdk/job.js +1 -1
  139. package/dist/sdk/journey.js +1 -1
  140. package/dist/sdk/llm/chat-cache.js +1 -1
  141. package/dist/sdk/llm/index.js +1 -1
  142. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  143. package/dist/sdk/llm/model-factors.js +1 -1
  144. package/dist/sdk/llm/user-settings.js +1 -1
  145. package/dist/sdk/personalization.js +1 -1
  146. package/dist/sdk/policy.js +1 -1
  147. package/dist/sdk/query/deleted-table-validation.js +1 -1
  148. package/dist/sdk/query/index.js +1 -1
  149. package/dist/sdk/query/sql-parser.js +1 -1
  150. package/dist/sdk/realtime.js +1 -1
  151. package/dist/sdk/schedule.js +1 -1
  152. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  153. package/dist/sdk/segment/fields-display.js +1 -1
  154. package/dist/sdk/segment/file-discovery.js +1 -1
  155. package/dist/sdk/segment/journey-utils.js +1 -1
  156. package/dist/sdk/segment/journey-validator.js +1 -1
  157. package/dist/sdk/segment/journey-yaml.js +1 -1
  158. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  159. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  160. package/dist/sdk/segment/pull-workflow.js +1 -1
  161. package/dist/sdk/segment/push-recovery.js +1 -1
  162. package/dist/sdk/segment/push-workflow.js +1 -1
  163. package/dist/sdk/segment/resolution-context.js +1 -1
  164. package/dist/sdk/segment/segment-path-parser.js +1 -1
  165. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  166. package/dist/sdk/segment/segment-validator.js +1 -1
  167. package/dist/sdk/segment/target-resolution.js +1 -1
  168. package/dist/sdk/segment/tdx-config.js +1 -1
  169. package/dist/sdk/segment/types/activation-schema.js +1 -1
  170. package/dist/sdk/segment/types/journey-def.js +1 -1
  171. package/dist/sdk/segment/types/journey-schema.js +1 -1
  172. package/dist/sdk/segment/types/segment-def.js +1 -1
  173. package/dist/sdk/segment/types/segment-schema.js +1 -1
  174. package/dist/sdk/segment/validate-files.js +1 -1
  175. package/dist/sdk/segment/yaml-validator.js +1 -1
  176. package/dist/sdk/segment.js +1 -1
  177. package/dist/sdk/types/index.js +1 -1
  178. package/dist/sdk/types/progress.js +1 -1
  179. package/dist/sdk/types/workflow.d.ts +1 -1
  180. package/dist/sdk/types/workflow.d.ts.map +1 -1
  181. package/dist/sdk/types/workspace.js +1 -1
  182. package/dist/sdk/user.js +1 -1
  183. package/dist/sdk/util/format-detector.js +1 -1
  184. package/dist/sdk/util/formatters.js +1 -1
  185. package/dist/sdk/util/index.js +1 -1
  186. package/dist/sdk/util/paginate.js +1 -1
  187. package/dist/sdk/util/tree-formatter.js +1 -1
  188. package/dist/sdk/workflow/archive-validation.js +1 -1
  189. package/dist/sdk/workflow/clone-workflow.js +1 -1
  190. package/dist/sdk/workflow/index.d.ts +23 -2
  191. package/dist/sdk/workflow/index.d.ts.map +1 -1
  192. package/dist/sdk/workflow/index.js +1 -1
  193. package/dist/sdk/workflow/index.js.map +1 -1
  194. package/dist/sdk/workflow/pull-workflow.js +1 -1
  195. package/dist/sdk/workflow/push-workflow.d.ts +4 -0
  196. package/dist/sdk/workflow/push-workflow.d.ts.map +1 -1
  197. package/dist/sdk/workflow/push-workflow.js +1 -1
  198. package/dist/sdk/workflow/push-workflow.js.map +1 -1
  199. package/dist/sdk/workflow/task-graph.js +1 -1
  200. package/dist/sdk/workflow/tdx-config.js +1 -1
  201. package/dist/sdk/workflow/workflow-utils.js +1 -1
  202. package/dist/sdk/workspace/access-tracker.js +1 -1
  203. package/dist/sdk/workspace/frontmatter.js +1 -1
  204. package/dist/sdk/workspace/git.js +1 -1
  205. package/dist/sdk/workspace/index.js +1 -1
  206. package/dist/sdk/workspace/templates.js +1 -1
  207. package/dist/sdk/workspace/weekly.js +1 -1
  208. package/dist/sdk/workspace/wikilinks.js +1 -1
  209. package/dist/test-utils/command-runner.js +1 -1
  210. package/dist/test-utils/factories.js +1 -1
  211. package/dist/test-utils/fixtures.js +1 -1
  212. package/dist/test-utils/http-mock.js +1 -1
  213. package/dist/test-utils/index.js +1 -1
  214. package/dist/utils/async.js +1 -1
  215. package/dist/utils/colors.js +1 -1
  216. package/dist/utils/diff.js +1 -1
  217. package/dist/utils/file-permissions.js +1 -1
  218. package/dist/utils/file-reader.js +1 -1
  219. package/dist/utils/github-releases.js +1 -1
  220. package/dist/utils/global-cache.js +1 -1
  221. package/dist/utils/json-loader.js +1 -1
  222. package/dist/utils/local-cache.js +1 -1
  223. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  224. package/dist/utils/logger/formatters/index.js +1 -1
  225. package/dist/utils/logger/handlers/console-handler.js +1 -1
  226. package/dist/utils/logger/handlers/file-handler.js +1 -1
  227. package/dist/utils/logger/handlers/index.js +1 -1
  228. package/dist/utils/logger/handlers/null-handler.js +1 -1
  229. package/dist/utils/logger/index.js +1 -1
  230. package/dist/utils/logger/logger.js +1 -1
  231. package/dist/utils/logger/types.js +1 -1
  232. package/dist/utils/option-validation.js +1 -1
  233. package/dist/utils/process.js +1 -1
  234. package/dist/utils/prompt.js +1 -1
  235. package/dist/utils/spinner.js +1 -1
  236. package/dist/utils/sse-parser.js +1 -1
  237. package/dist/utils/string-utils.js +1 -1
  238. package/dist/utils/table-ref-parser.js +1 -1
  239. package/dist/utils/tdx-logger.js +1 -1
  240. package/dist/utils/version-check.js +1 -1
  241. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4d2aa1,_0x115212){const _0x316a4c=a219_0x99b9,_0x1e6162=_0x4d2aa1();while(!![]){try{const _0x56c0a0=parseInt(_0x316a4c(0x1b5))/0x1+parseInt(_0x316a4c(0x1b4))/0x2+-parseInt(_0x316a4c(0x1b3))/0x3*(-parseInt(_0x316a4c(0x1b0))/0x4)+parseInt(_0x316a4c(0x1bc))/0x5+parseInt(_0x316a4c(0x1c1))/0x6*(parseInt(_0x316a4c(0x1c3))/0x7)+parseInt(_0x316a4c(0x1bf))/0x8*(-parseInt(_0x316a4c(0x1ba))/0x9)+-parseInt(_0x316a4c(0x1c2))/0xa;if(_0x56c0a0===_0x115212)break;else _0x1e6162['push'](_0x1e6162['shift']());}catch(_0x38f0ed){_0x1e6162['push'](_0x1e6162['shift']());}}}(a219_0x5cbf,0x558d1));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x175934=a219_0x99b9;return process.env.TDX_CACHE_DIR||join(homedir(),_0x175934(0x1be),_0x175934(0x1bb));}const registry=new Map();export function registerGlobalCacheKey(_0x3969ac,_0x333690){const _0x4711ef=a219_0x99b9,_0x19c74e=registry[_0x4711ef(0x1b7)](_0x3969ac);if(_0x19c74e&&_0x19c74e!==_0x333690)throw new Error(_0x4711ef(0x1c0)+_0x3969ac+_0x4711ef(0x1b6)+_0x19c74e+_0x4711ef(0x1bd)+_0x333690+'\x22');registry[_0x4711ef(0x1b1)](_0x3969ac,_0x333690);}export function getGlobalCachePath(_0x5d0085){return join(getGlobalCacheDir(),_0x5d0085);}function ensureGlobalCacheDir(){const _0x43ddd9=getGlobalCacheDir();!existsSync(_0x43ddd9)&&mkdirSync(_0x43ddd9,{'recursive':!![]});}function readCacheJson(_0x21d756){const _0x307d56=a219_0x99b9,_0x1123ad=getGlobalCachePath(_0x21d756);if(!existsSync(_0x1123ad))return undefined;try{const _0x194879=readFileSync(_0x1123ad,_0x307d56(0x1c4));return JSON['parse'](_0x194879);}catch{return undefined;}}function a219_0x5cbf(){const _0x259b93=['Global\x20cache\x20key\x20\x22','6060iwKZGJ','13652460XjTffh','3752PANQcE','utf-8','clear','{profile}','5668IkMSAH','set','default','351BbmeKb','553324MGfTiy','652169mCmYMe','\x22\x20already\x20registered\x20by\x20\x22','get','trim','replace','82611nDbdEp','tdx','490205pqytSY','\x22,\x20cannot\x20register\x20for\x20\x22','.cache','16fCPYHW'];a219_0x5cbf=function(){return _0x259b93;};return a219_0x5cbf();}function a219_0x99b9(_0x1819b3,_0x3925a0){_0x1819b3=_0x1819b3-0x1af;const _0x5cbfd9=a219_0x5cbf();let _0x99b96c=_0x5cbfd9[_0x1819b3];return _0x99b96c;}function writeCacheJson(_0x40309b,_0x38149b){const _0x526d8c=a219_0x99b9;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x40309b),JSON['stringify'](_0x38149b,null,0x2),_0x526d8c(0x1c4));}function readCacheText(_0x2ad472){const _0x534fb1=a219_0x99b9,_0x3a6b7e=getGlobalCachePath(_0x2ad472);if(!existsSync(_0x3a6b7e))return undefined;try{return readFileSync(_0x3a6b7e,_0x534fb1(0x1c4));}catch{return undefined;}}function writeCacheText(_0x84d8ad,_0x47d126){const _0x43a991=a219_0x99b9;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x84d8ad),_0x47d126,_0x43a991(0x1c4));}function clearCache(_0x19b39c){const _0x1cf3b3=getGlobalCachePath(_0x19b39c);if(existsSync(_0x1cf3b3))try{unlinkSync(_0x1cf3b3);}catch{}}function cacheExists(_0x3229a6){return existsSync(getGlobalCachePath(_0x3229a6));}export function createGlobalCache(_0x559562,_0x34781a){return registerGlobalCacheKey(_0x559562,_0x34781a),{'read':()=>readCacheJson(_0x559562),'write':_0x269825=>writeCacheJson(_0x559562,_0x269825),'clear':()=>clearCache(_0x559562),'exists':()=>cacheExists(_0x559562),'path':()=>getGlobalCachePath(_0x559562)};}export function createGlobalTextCache(_0x1235dd,_0x3f5f1c){const _0x5eb4d2=a219_0x99b9;return registerGlobalCacheKey(_0x1235dd,_0x3f5f1c),{'read':()=>readCacheText(_0x1235dd)?.[_0x5eb4d2(0x1b8)]()||undefined,'write':_0x38291e=>writeCacheText(_0x1235dd,_0x38291e),'clear':()=>clearCache(_0x1235dd),'exists':()=>cacheExists(_0x1235dd),'path':()=>getGlobalCachePath(_0x1235dd)};}export function createProfileCache(_0x153a53,_0x5e1205){const _0x4d8846=_0x444f4e=>{const _0x591977=a219_0x99b9,_0x25ef8b=_0x444f4e||_0x591977(0x1b2);return _0x153a53[_0x591977(0x1b9)](_0x591977(0x1af),_0x25ef8b);};return{'read':_0x5df962=>{const _0x1e1b43=_0x4d8846(_0x5df962);return registerGlobalCacheKey(_0x1e1b43,_0x5e1205),readCacheJson(_0x1e1b43);},'write':(_0x5aee90,_0x33b7f5)=>{const _0x3f2225=_0x4d8846(_0x5aee90);registerGlobalCacheKey(_0x3f2225,_0x5e1205),writeCacheJson(_0x3f2225,_0x33b7f5);},'clear':_0x27e237=>{const _0x1e87de=_0x4d8846(_0x27e237);clearCache(_0x1e87de);},'exists':_0xcf7324=>{const _0x305cfb=_0x4d8846(_0xcf7324);return cacheExists(_0x305cfb);},'path':_0x125eca=>{const _0x489519=_0x4d8846(_0x125eca);return getGlobalCachePath(_0x489519);}};}export function createOptionalProfileCache(_0x4b7015,_0x36e440,_0x3d0b65={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x3d0b65,_0x11d6e4=_0xd3c43d=>{return _0xd3c43d?''+_0x4b7015+profileSeparator+_0xd3c43d+suffix:''+_0x4b7015+suffix;};return{'read':_0x4f41c6=>{const _0x3a5260=_0x11d6e4(_0x4f41c6);return registerGlobalCacheKey(_0x3a5260,_0x36e440),readCacheJson(_0x3a5260);},'write':(_0x30163b,_0x16c2c3)=>{const _0xa9f838=_0x11d6e4(_0x16c2c3);registerGlobalCacheKey(_0xa9f838,_0x36e440),writeCacheJson(_0xa9f838,_0x30163b);},'clear':_0x116950=>{const _0x2b78f9=_0x11d6e4(_0x116950);clearCache(_0x2b78f9);},'exists':_0x50cac8=>{const _0x165500=_0x11d6e4(_0x50cac8);return cacheExists(_0x165500);},'path':_0x2195ba=>{const _0xb5562c=_0x11d6e4(_0x2195ba);return getGlobalCachePath(_0xb5562c);}};}export function clearGlobalRegistry(){const _0x52e31d=a219_0x99b9;registry[_0x52e31d(0x1c5)]();}
1
+ function a219_0x49ac(_0x301c78,_0x515c87){_0x301c78=_0x301c78-0x178;const _0x15c8ee=a219_0x15c8();let _0x49ac6c=_0x15c8ee[_0x301c78];return _0x49ac6c;}(function(_0x147006,_0x581016){const _0x1b6153=a219_0x49ac,_0x317b86=_0x147006();while(!![]){try{const _0x6be445=-parseInt(_0x1b6153(0x187))/0x1+-parseInt(_0x1b6153(0x183))/0x2*(parseInt(_0x1b6153(0x18a))/0x3)+parseInt(_0x1b6153(0x18e))/0x4*(-parseInt(_0x1b6153(0x181))/0x5)+-parseInt(_0x1b6153(0x184))/0x6*(parseInt(_0x1b6153(0x186))/0x7)+parseInt(_0x1b6153(0x17d))/0x8+parseInt(_0x1b6153(0x18b))/0x9*(parseInt(_0x1b6153(0x17f))/0xa)+parseInt(_0x1b6153(0x17b))/0xb*(parseInt(_0x1b6153(0x180))/0xc);if(_0x6be445===_0x581016)break;else _0x317b86['push'](_0x317b86['shift']());}catch(_0x2697bf){_0x317b86['push'](_0x317b86['shift']());}}}(a219_0x15c8,0x1fc20));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();function a219_0x15c8(){const _0x5a2d24=['10ZIcmoR','12pYDdnu','208180vfUVcf','stringify','2vOqKZu','492414LHiPRK','clear','14LwYxDF','227340UYBSdR','set','get','548328ESsJnP','1402119NgSUth','replace','default','8guteKK','utf-8','Global\x20cache\x20key\x20\x22','trim','4956743alqZOg','\x22\x20already\x20registered\x20by\x20\x22','1449616CsNppb','\x22,\x20cannot\x20register\x20for\x20\x22'];a219_0x15c8=function(){return _0x5a2d24;};return a219_0x15c8();}export function registerGlobalCacheKey(_0x5067ce,_0x3d5ca2){const _0x5acc7b=a219_0x49ac,_0x54244e=registry[_0x5acc7b(0x189)](_0x5067ce);if(_0x54244e&&_0x54244e!==_0x3d5ca2)throw new Error(_0x5acc7b(0x179)+_0x5067ce+_0x5acc7b(0x17c)+_0x54244e+_0x5acc7b(0x17e)+_0x3d5ca2+'\x22');registry[_0x5acc7b(0x188)](_0x5067ce,_0x3d5ca2);}export function getGlobalCachePath(_0x1d04e6){return join(getGlobalCacheDir(),_0x1d04e6);}function ensureGlobalCacheDir(){const _0x4a9c21=getGlobalCacheDir();!existsSync(_0x4a9c21)&&mkdirSync(_0x4a9c21,{'recursive':!![]});}function readCacheJson(_0x4e2c58){const _0x79eac0=a219_0x49ac,_0xeb999a=getGlobalCachePath(_0x4e2c58);if(!existsSync(_0xeb999a))return undefined;try{const _0x98fb5f=readFileSync(_0xeb999a,_0x79eac0(0x178));return JSON['parse'](_0x98fb5f);}catch{return undefined;}}function writeCacheJson(_0x420f20,_0x2383e6){const _0x3bfc02=a219_0x49ac;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x420f20),JSON[_0x3bfc02(0x182)](_0x2383e6,null,0x2),_0x3bfc02(0x178));}function readCacheText(_0x5c2024){const _0x5a2484=a219_0x49ac,_0xc6af2a=getGlobalCachePath(_0x5c2024);if(!existsSync(_0xc6af2a))return undefined;try{return readFileSync(_0xc6af2a,_0x5a2484(0x178));}catch{return undefined;}}function writeCacheText(_0x10cff0,_0x18b2ea){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x10cff0),_0x18b2ea,'utf-8');}function clearCache(_0x2e8a87){const _0x55fcb1=getGlobalCachePath(_0x2e8a87);if(existsSync(_0x55fcb1))try{unlinkSync(_0x55fcb1);}catch{}}function cacheExists(_0x48ecd7){return existsSync(getGlobalCachePath(_0x48ecd7));}export function createGlobalCache(_0x220bb8,_0x51b2c3){return registerGlobalCacheKey(_0x220bb8,_0x51b2c3),{'read':()=>readCacheJson(_0x220bb8),'write':_0x4bb508=>writeCacheJson(_0x220bb8,_0x4bb508),'clear':()=>clearCache(_0x220bb8),'exists':()=>cacheExists(_0x220bb8),'path':()=>getGlobalCachePath(_0x220bb8)};}export function createGlobalTextCache(_0x29eef8,_0x40d7ff){const _0x4e330d=a219_0x49ac;return registerGlobalCacheKey(_0x29eef8,_0x40d7ff),{'read':()=>readCacheText(_0x29eef8)?.[_0x4e330d(0x17a)]()||undefined,'write':_0x4da2f0=>writeCacheText(_0x29eef8,_0x4da2f0),'clear':()=>clearCache(_0x29eef8),'exists':()=>cacheExists(_0x29eef8),'path':()=>getGlobalCachePath(_0x29eef8)};}export function createProfileCache(_0x2486fe,_0x1ace5e){const _0x50fbe9=_0x38a048=>{const _0x1342b5=a219_0x49ac,_0x16e6fe=_0x38a048||_0x1342b5(0x18d);return _0x2486fe[_0x1342b5(0x18c)]('{profile}',_0x16e6fe);};return{'read':_0x561e1f=>{const _0x50b9ab=_0x50fbe9(_0x561e1f);return registerGlobalCacheKey(_0x50b9ab,_0x1ace5e),readCacheJson(_0x50b9ab);},'write':(_0x58be0d,_0x18833d)=>{const _0x1a61f0=_0x50fbe9(_0x58be0d);registerGlobalCacheKey(_0x1a61f0,_0x1ace5e),writeCacheJson(_0x1a61f0,_0x18833d);},'clear':_0x5b451a=>{const _0x2efe0c=_0x50fbe9(_0x5b451a);clearCache(_0x2efe0c);},'exists':_0x2f90ac=>{const _0x402952=_0x50fbe9(_0x2f90ac);return cacheExists(_0x402952);},'path':_0x460f27=>{const _0x5defc7=_0x50fbe9(_0x460f27);return getGlobalCachePath(_0x5defc7);}};}export function createOptionalProfileCache(_0x4eb239,_0x3e0dcc,_0x4ea9f8={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4ea9f8,_0x3446e0=_0x415023=>{return _0x415023?''+_0x4eb239+profileSeparator+_0x415023+suffix:''+_0x4eb239+suffix;};return{'read':_0x385356=>{const _0x83a74=_0x3446e0(_0x385356);return registerGlobalCacheKey(_0x83a74,_0x3e0dcc),readCacheJson(_0x83a74);},'write':(_0x49059d,_0x180bd7)=>{const _0x3120b9=_0x3446e0(_0x180bd7);registerGlobalCacheKey(_0x3120b9,_0x3e0dcc),writeCacheJson(_0x3120b9,_0x49059d);},'clear':_0x204269=>{const _0x5887bf=_0x3446e0(_0x204269);clearCache(_0x5887bf);},'exists':_0x4b50f6=>{const _0x177127=_0x3446e0(_0x4b50f6);return cacheExists(_0x177127);},'path':_0x279469=>{const _0x4f9e59=_0x3446e0(_0x279469);return getGlobalCachePath(_0x4f9e59);}};}export function clearGlobalRegistry(){const _0x30457e=a219_0x49ac;registry[_0x30457e(0x185)]();}
@@ -1 +1 @@
1
- (function(_0x2fa729,_0x5a9279){const _0xdfc2f0=a220_0x1dc9,_0x535f01=_0x2fa729();while(!![]){try{const _0x100cad=parseInt(_0xdfc2f0(0x106))/0x1*(parseInt(_0xdfc2f0(0xf8))/0x2)+-parseInt(_0xdfc2f0(0x104))/0x3+parseInt(_0xdfc2f0(0x102))/0x4+-parseInt(_0xdfc2f0(0x10b))/0x5*(parseInt(_0xdfc2f0(0xf7))/0x6)+parseInt(_0xdfc2f0(0xf4))/0x7*(parseInt(_0xdfc2f0(0xfa))/0x8)+parseInt(_0xdfc2f0(0xf6))/0x9+-parseInt(_0xdfc2f0(0x105))/0xa*(-parseInt(_0xdfc2f0(0x10a))/0xb);if(_0x100cad===_0x5a9279)break;else _0x535f01['push'](_0x535f01['shift']());}catch(_0x106e63){_0x535f01['push'](_0x535f01['shift']());}}}(a220_0x13a7,0x2be82));function a220_0x1dc9(_0x168021,_0x3347a2){_0x168021=_0x168021-0xf4;const _0x13a7e1=a220_0x13a7();let _0x1dc97c=_0x13a7e1[_0x168021];return _0x1dc97c;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1ecb9f,_0x34f0cf){const _0x14248f=a220_0x1dc9;try{if(_0x34f0cf){const _0xa05457=await readFile(_0x1ecb9f,'utf-8');try{return JSON[_0x14248f(0x109)](_0xa05457);}catch(_0x33f989){throw new SDKError(ErrorCode[_0x14248f(0xfb)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x1ecb9f+_0x14248f(0xff)+(_0x33f989 instanceof Error?_0x33f989[_0x14248f(0x101)]:String(_0x33f989)));}}else try{return JSON['parse'](_0x1ecb9f);}catch(_0xda535e){throw new SDKError(ErrorCode[_0x14248f(0xfb)],_0x14248f(0xfd)+(_0xda535e instanceof Error?_0xda535e[_0x14248f(0x101)]:String(_0xda535e)));}}catch(_0x4b4f45){if(_0x4b4f45 instanceof SDKError)throw _0x4b4f45;if(_0x4b4f45 instanceof Error&&_0x14248f(0xfe)in _0x4b4f45){const _0xf3819f=_0x4b4f45;if(_0xf3819f[_0x14248f(0xfe)]===_0x14248f(0x107))throw new SDKError(ErrorCode[_0x14248f(0xf9)],_0x14248f(0x100)+_0x1ecb9f);else{if(_0xf3819f['code']===_0x14248f(0x108))throw new SDKError(ErrorCode[_0x14248f(0xf5)],_0x14248f(0x103)+_0x1ecb9f);}}throw new SDKError(ErrorCode[_0x14248f(0xfc)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x4b4f45 instanceof Error?_0x4b4f45[_0x14248f(0x101)]:String(_0x4b4f45)));}}export async function loadJSONFromOptions(_0x5a5d3d,_0xc0def5){const _0x367796=a220_0x1dc9;if(_0x5a5d3d&&_0xc0def5)throw new SDKError(ErrorCode[_0x367796(0xfb)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x5a5d3d)return await loadJSON(_0x5a5d3d,![]);if(_0xc0def5)return await loadJSON(_0xc0def5,!![]);return undefined;}function a220_0x13a7(){const _0x552d38=['824ZQcBQz','INVALID_ARGUMENT','INTERNAL','Invalid\x20JSON\x20string:\x20','code','\x27:\x20','File\x20not\x20found:\x20','message','650456HfYYoH','Permission\x20denied\x20reading\x20file:\x20','625230OBXxPy','10DNqtHc','1RLaGAx','ENOENT','EACCES','parse','704121rgcvTe','5CRuYFc','16667qiyJEa','PERMISSION_DENIED','71361TkVRWh','780756gzVXyM','77162ARVyMr','NOT_FOUND'];a220_0x13a7=function(){return _0x552d38;};return a220_0x13a7();}
1
+ (function(_0x21c65d,_0x1cd230){const _0xac346e=a220_0x50da,_0x460b1a=_0x21c65d();while(!![]){try{const _0x47eb96=parseInt(_0xac346e(0xdc))/0x1*(-parseInt(_0xac346e(0xd4))/0x2)+-parseInt(_0xac346e(0xc8))/0x3+parseInt(_0xac346e(0xd5))/0x4+-parseInt(_0xac346e(0xd8))/0x5*(-parseInt(_0xac346e(0xdd))/0x6)+-parseInt(_0xac346e(0xcf))/0x7*(-parseInt(_0xac346e(0xd1))/0x8)+parseInt(_0xac346e(0xd9))/0x9+parseInt(_0xac346e(0xdb))/0xa;if(_0x47eb96===_0x1cd230)break;else _0x460b1a['push'](_0x460b1a['shift']());}catch(_0x2f3401){_0x460b1a['push'](_0x460b1a['shift']());}}}(a220_0x5a8f,0xf1ca3));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x5407a2,_0x483b01){const _0x137909=a220_0x50da;try{if(_0x483b01){const _0x3b0ab9=await readFile(_0x5407a2,_0x137909(0xd2));try{return JSON[_0x137909(0xd3)](_0x3b0ab9);}catch(_0x259fda){throw new SDKError(ErrorCode[_0x137909(0xce)],_0x137909(0xcb)+_0x5407a2+_0x137909(0xd0)+(_0x259fda instanceof Error?_0x259fda['message']:String(_0x259fda)));}}else try{return JSON['parse'](_0x5407a2);}catch(_0x116ea5){throw new SDKError(ErrorCode[_0x137909(0xce)],'Invalid\x20JSON\x20string:\x20'+(_0x116ea5 instanceof Error?_0x116ea5[_0x137909(0xd6)]:String(_0x116ea5)));}}catch(_0x8c0147){if(_0x8c0147 instanceof SDKError)throw _0x8c0147;if(_0x8c0147 instanceof Error&&_0x137909(0xcc)in _0x8c0147){const _0x2eaca9=_0x8c0147;if(_0x2eaca9[_0x137909(0xcc)]===_0x137909(0xda))throw new SDKError(ErrorCode['NOT_FOUND'],_0x137909(0xcd)+_0x5407a2);else{if(_0x2eaca9['code']==='EACCES')throw new SDKError(ErrorCode[_0x137909(0xde)],_0x137909(0xd7)+_0x5407a2);}}throw new SDKError(ErrorCode[_0x137909(0xc9)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x8c0147 instanceof Error?_0x8c0147['message']:String(_0x8c0147)));}}function a220_0x50da(_0x2a41ad,_0x33aeb7){_0x2a41ad=_0x2a41ad-0xc8;const _0x5a8ffa=a220_0x5a8f();let _0x50da61=_0x5a8ffa[_0x2a41ad];return _0x50da61;}export async function loadJSONFromOptions(_0x2cf5d3,_0x41d98e){const _0x32aaac=a220_0x50da;if(_0x2cf5d3&&_0x41d98e)throw new SDKError(ErrorCode[_0x32aaac(0xce)],_0x32aaac(0xca));if(_0x2cf5d3)return await loadJSON(_0x2cf5d3,![]);if(_0x41d98e)return await loadJSON(_0x41d98e,!![]);return undefined;}function a220_0x5a8f(){const _0x29e52d=['16803520tUVCPs','311dGSDbB','6jzQJmQ','PERMISSION_DENIED','4052259XknNGO','INTERNAL','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Invalid\x20JSON\x20in\x20file\x20\x27','code','File\x20not\x20found:\x20','INVALID_ARGUMENT','26579IzBtwP','\x27:\x20','112iyxzVf','utf-8','parse','11496rsJnEt','3629516aCzxVC','message','Permission\x20denied\x20reading\x20file:\x20','2984055LnUCGb','8019468bHxftI','ENOENT'];a220_0x5a8f=function(){return _0x29e52d;};return a220_0x5a8f();}
@@ -1 +1 @@
1
- const a221_0x1bcc0f=a221_0x3688;(function(_0x258c42,_0x2646fb){const _0xa91b90=a221_0x3688,_0x33e39a=_0x258c42();while(!![]){try{const _0x365c98=-parseInt(_0xa91b90(0x1cb))/0x1+-parseInt(_0xa91b90(0x1c3))/0x2+parseInt(_0xa91b90(0x1c5))/0x3*(-parseInt(_0xa91b90(0x1c9))/0x4)+-parseInt(_0xa91b90(0x1cd))/0x5*(-parseInt(_0xa91b90(0x1be))/0x6)+-parseInt(_0xa91b90(0x1c8))/0x7*(parseInt(_0xa91b90(0x1c2))/0x8)+-parseInt(_0xa91b90(0x1cc))/0x9+parseInt(_0xa91b90(0x1bb))/0xa;if(_0x365c98===_0x2646fb)break;else _0x33e39a['push'](_0x33e39a['shift']());}catch(_0x2df4f2){_0x33e39a['push'](_0x33e39a['shift']());}}}(a221_0x589e,0xa346c));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a221_0x589e(){const _0x3e8706=['.cache/tdx','root','2149cJyHPF','804SjQvxa','trim','557928HowmzV','7968969aJKGOp','1133565lNYrcC','43593260NwPlFi','Cache\x20key\x20\x22','parse','12qKpWgn','\x22,\x20cannot\x20register\x20for\x20\x22','get','\x22\x20already\x20registered\x20by\x20\x22','21104BawaXL','2543716ccyTWU','utf-8','9237NBHLwG'];a221_0x589e=function(){return _0x3e8706;};return a221_0x589e();}import{homedir}from'os';const LOCAL_CACHE_DIR=a221_0x1bcc0f(0x1c6),registry=new Map();export function registerCacheKey(_0x42b43b,_0x2bc496){const _0x54767c=a221_0x1bcc0f,_0x6217e1=registry[_0x54767c(0x1c0)](_0x42b43b);if(_0x6217e1&&_0x6217e1!==_0x2bc496)throw new Error(_0x54767c(0x1bc)+_0x42b43b+_0x54767c(0x1c1)+_0x6217e1+_0x54767c(0x1bf)+_0x2bc496+'\x22');registry['set'](_0x42b43b,_0x2bc496);}export function getCacheDir(){const _0x271c97=a221_0x1bcc0f,_0x3700a7=process['cwd'](),_0x26d947=_0x3700a7===parse(_0x3700a7)[_0x271c97(0x1c7)]?homedir():_0x3700a7;return join(_0x26d947,LOCAL_CACHE_DIR);}export function getCachePath(_0x2fb49b){return join(getCacheDir(),_0x2fb49b);}function ensureCacheDir(){const _0x5a7c2b=getCacheDir();!existsSync(_0x5a7c2b)&&mkdirSync(_0x5a7c2b,{'recursive':!![]});}function readCacheJson(_0x46818d){const _0x5810d5=a221_0x1bcc0f,_0x327957=getCachePath(_0x46818d);if(!existsSync(_0x327957))return undefined;try{const _0x257f62=readFileSync(_0x327957,_0x5810d5(0x1c4));return JSON[_0x5810d5(0x1bd)](_0x257f62);}catch{return undefined;}}function writeCacheJson(_0x549f8b,_0x212c4f){const _0x28a7f8=a221_0x1bcc0f;ensureCacheDir(),writeFileSync(getCachePath(_0x549f8b),JSON['stringify'](_0x212c4f,null,0x2),_0x28a7f8(0x1c4));}function readCacheText(_0x38d279){const _0x5f57d5=a221_0x1bcc0f,_0x38bd68=getCachePath(_0x38d279);if(!existsSync(_0x38bd68))return undefined;try{return readFileSync(_0x38bd68,_0x5f57d5(0x1c4));}catch{return undefined;}}function writeCacheText(_0x1fbd8b,_0x112bc5){const _0x49db86=a221_0x1bcc0f;ensureCacheDir(),writeFileSync(getCachePath(_0x1fbd8b),_0x112bc5,_0x49db86(0x1c4));}function a221_0x3688(_0x35e79b,_0x154268){_0x35e79b=_0x35e79b-0x1bb;const _0x589e74=a221_0x589e();let _0x3688d4=_0x589e74[_0x35e79b];return _0x3688d4;}function clearCache(_0x13b3b1){const _0x23b045=getCachePath(_0x13b3b1);if(existsSync(_0x23b045))try{unlinkSync(_0x23b045);}catch{}}function cacheExists(_0x75732c){return existsSync(getCachePath(_0x75732c));}export function createCache(_0x753635,_0x481d84){return registerCacheKey(_0x753635,_0x481d84),{'read':()=>readCacheJson(_0x753635),'write':_0x4fc6ef=>writeCacheJson(_0x753635,_0x4fc6ef),'clear':()=>clearCache(_0x753635),'exists':()=>cacheExists(_0x753635),'path':()=>getCachePath(_0x753635)};}export function createTextCache(_0xe09635,_0x1caec2){const _0x1dd171=a221_0x1bcc0f;return registerCacheKey(_0xe09635,_0x1caec2),{'read':()=>readCacheText(_0xe09635)?.[_0x1dd171(0x1ca)]()||undefined,'write':_0x2a5076=>writeCacheText(_0xe09635,_0x2a5076),'clear':()=>clearCache(_0xe09635),'exists':()=>cacheExists(_0xe09635),'path':()=>getCachePath(_0xe09635)};}export function clearRegistry(){registry['clear']();}
1
+ const a221_0x128076=a221_0x16a0;function a221_0x3d27(){const _0x2ccdb3=['2187325BcrvSb','set','3HAVMeh','parse','6dnExpd','clear','3259296pvjBnV','15252061erpEzz','.cache/tdx','trim','16511820afcyVp','3876200RUneLK','77AJiilN','25022BvLXZw','root','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','stringify','9iNPzSp','get','1651915eVVlMg','12XznhxR'];a221_0x3d27=function(){return _0x2ccdb3;};return a221_0x3d27();}(function(_0x2b7a7f,_0x340204){const _0x4273b0=a221_0x16a0,_0x3ec244=_0x2b7a7f();while(!![]){try{const _0x206b92=parseInt(_0x4273b0(0x13a))/0x1*(parseInt(_0x4273b0(0x13b))/0x2)+-parseInt(_0x4273b0(0x146))/0x3*(parseInt(_0x4273b0(0x134))/0x4)+parseInt(_0x4273b0(0x142))/0x5+-parseInt(_0x4273b0(0x132))/0x6*(parseInt(_0x4273b0(0x144))/0x7)+parseInt(_0x4273b0(0x139))/0x8+-parseInt(_0x4273b0(0x140))/0x9*(-parseInt(_0x4273b0(0x138))/0xa)+parseInt(_0x4273b0(0x135))/0xb*(-parseInt(_0x4273b0(0x143))/0xc);if(_0x206b92===_0x340204)break;else _0x3ec244['push'](_0x3ec244['shift']());}catch(_0x412d0c){_0x3ec244['push'](_0x3ec244['shift']());}}}(a221_0x3d27,0xdf883));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a221_0x128076(0x136),registry=new Map();export function registerCacheKey(_0x55c49c,_0x47ba51){const _0x128d0e=a221_0x128076,_0x22a0d3=registry[_0x128d0e(0x141)](_0x55c49c);if(_0x22a0d3&&_0x22a0d3!==_0x47ba51)throw new Error('Cache\x20key\x20\x22'+_0x55c49c+'\x22\x20already\x20registered\x20by\x20\x22'+_0x22a0d3+_0x128d0e(0x13d)+_0x47ba51+'\x22');registry[_0x128d0e(0x145)](_0x55c49c,_0x47ba51);}export function getCacheDir(){const _0x34af64=a221_0x128076,_0x59a922=process['cwd'](),_0x345ff2=_0x59a922===parse(_0x59a922)[_0x34af64(0x13c)]?homedir():_0x59a922;return join(_0x345ff2,LOCAL_CACHE_DIR);}export function getCachePath(_0x4d52bd){return join(getCacheDir(),_0x4d52bd);}function ensureCacheDir(){const _0x1a74f6=getCacheDir();!existsSync(_0x1a74f6)&&mkdirSync(_0x1a74f6,{'recursive':!![]});}function readCacheJson(_0x4f19a7){const _0x302284=a221_0x128076,_0x38bb2b=getCachePath(_0x4f19a7);if(!existsSync(_0x38bb2b))return undefined;try{const _0x471e69=readFileSync(_0x38bb2b,_0x302284(0x13e));return JSON[_0x302284(0x131)](_0x471e69);}catch{return undefined;}}function writeCacheJson(_0x18ca66,_0x5ae1a4){const _0x41e3e9=a221_0x128076;ensureCacheDir(),writeFileSync(getCachePath(_0x18ca66),JSON[_0x41e3e9(0x13f)](_0x5ae1a4,null,0x2),_0x41e3e9(0x13e));}function readCacheText(_0xf48b54){const _0x14ca0c=a221_0x128076,_0x36cd9e=getCachePath(_0xf48b54);if(!existsSync(_0x36cd9e))return undefined;try{return readFileSync(_0x36cd9e,_0x14ca0c(0x13e));}catch{return undefined;}}function writeCacheText(_0x37d40f,_0x14c89a){const _0x4dc286=a221_0x128076;ensureCacheDir(),writeFileSync(getCachePath(_0x37d40f),_0x14c89a,_0x4dc286(0x13e));}function clearCache(_0x16a5df){const _0x2ed973=getCachePath(_0x16a5df);if(existsSync(_0x2ed973))try{unlinkSync(_0x2ed973);}catch{}}function cacheExists(_0x5b233c){return existsSync(getCachePath(_0x5b233c));}export function createCache(_0x369128,_0xf1caa7){return registerCacheKey(_0x369128,_0xf1caa7),{'read':()=>readCacheJson(_0x369128),'write':_0x543e98=>writeCacheJson(_0x369128,_0x543e98),'clear':()=>clearCache(_0x369128),'exists':()=>cacheExists(_0x369128),'path':()=>getCachePath(_0x369128)};}export function createTextCache(_0x51ddc3,_0x21aa95){const _0x5e2851=a221_0x128076;return registerCacheKey(_0x51ddc3,_0x21aa95),{'read':()=>readCacheText(_0x51ddc3)?.[_0x5e2851(0x137)]()||undefined,'write':_0x20de89=>writeCacheText(_0x51ddc3,_0x20de89),'clear':()=>clearCache(_0x51ddc3),'exists':()=>cacheExists(_0x51ddc3),'path':()=>getCachePath(_0x51ddc3)};}function a221_0x16a0(_0x12a1e5,_0x216784){_0x12a1e5=_0x12a1e5-0x131;const _0x3d27a2=a221_0x3d27();let _0x16a082=_0x3d27a2[_0x12a1e5];return _0x16a082;}export function clearRegistry(){const _0x51d6f4=a221_0x128076;registry[_0x51d6f4(0x133)]();}
@@ -1 +1 @@
1
- const a222_0x1449eb=a222_0x426c;function a222_0x3f06(){const _0xa9c8ca=['3LYFkuN','32BrzxiH','INFO','2247595zyaXfF','component','gray','message','516980iABggd','dim','green','23238050WvbGcl','level','1488382nXfGsa','blue',']\x20[','red','DEBUG','colorLevel','colors','cyan','633394phqrdO','yellow','ERROR','2brQUJN','Chalk','timestamp','792516APfuyE','243RfTfIb','210370hjgBZI','default','chalk'];a222_0x3f06=function(){return _0xa9c8ca;};return a222_0x3f06();}function a222_0x426c(_0x115f66,_0x322b59){_0x115f66=_0x115f66-0xe3;const _0x3f06a2=a222_0x3f06();let _0x426cc6=_0x3f06a2[_0x115f66];return _0x426cc6;}(function(_0x5567b4,_0x49866d){const _0x1d2fa3=a222_0x426c,_0x19c20f=_0x5567b4();while(!![]){try{const _0x461052=-parseInt(_0x1d2fa3(0xe3))/0x1*(parseInt(_0x1d2fa3(0xff))/0x2)+-parseInt(_0x1d2fa3(0xeb))/0x3*(-parseInt(_0x1d2fa3(0xf2))/0x4)+parseInt(_0x1d2fa3(0xee))/0x5+-parseInt(_0x1d2fa3(0xe6))/0x6+-parseInt(_0x1d2fa3(0xf7))/0x7*(parseInt(_0x1d2fa3(0xec))/0x8)+-parseInt(_0x1d2fa3(0xe7))/0x9*(parseInt(_0x1d2fa3(0xe8))/0xa)+parseInt(_0x1d2fa3(0xf5))/0xb;if(_0x461052===_0x49866d)break;else _0x19c20f['push'](_0x19c20f['shift']());}catch(_0x3cbd7c){_0x19c20f['push'](_0x19c20f['shift']());}}}(a222_0x3f06,0x7bdc3));import a222_0x21ab77 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a222_0x21ab77,ChalkClass=chalkModule['Chalk']||chalkModule[a222_0x1449eb(0xe9)]?.[a222_0x1449eb(0xe4)];export class DefaultLogFormatter{[a222_0x1449eb(0xfd)];[a222_0x1449eb(0xea)];constructor(_0x198188={}){const _0x3489ef=a222_0x1449eb;this[_0x3489ef(0xfd)]=_0x198188[_0x3489ef(0xfd)]??![],this[_0x3489ef(0xea)]=_0x198188['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a222_0x21ab77;}['format'](_0x52414d){const _0x31269c=a222_0x1449eb,_0x204579=formatTimestamp(_0x52414d[_0x31269c(0xe5)]),_0x1be9ba=logLevelToString(_0x52414d['level']);if(!this[_0x31269c(0xfd)])return _0x204579+'\x20['+_0x1be9ba+_0x31269c(0xf9)+_0x52414d[_0x31269c(0xef)]+']\x20'+_0x52414d[_0x31269c(0xf1)];const _0x46c552=this[_0x31269c(0xea)][_0x31269c(0xf3)](_0x204579),_0x141d73=this[_0x31269c(0xfc)](_0x1be9ba,_0x52414d[_0x31269c(0xf6)]),_0x2145f3=this[_0x31269c(0xea)][_0x31269c(0xf8)]('['+_0x52414d['component']+']');return _0x46c552+'\x20'+_0x141d73+'\x20'+_0x2145f3+'\x20'+_0x52414d['message'];}[a222_0x1449eb(0xfc)](_0x179b4a,_0x53f3e){const _0x4f0f29=a222_0x1449eb;switch(_0x53f3e){case LogLevel['TRACE']:return this[_0x4f0f29(0xea)][_0x4f0f29(0xf0)]('['+_0x179b4a+']');case LogLevel[_0x4f0f29(0xfb)]:return this[_0x4f0f29(0xea)][_0x4f0f29(0xf4)]('['+_0x179b4a+']');case LogLevel[_0x4f0f29(0xed)]:return this[_0x4f0f29(0xea)][_0x4f0f29(0xfe)]('['+_0x179b4a+']');case LogLevel['WARN']:return this['chalk'][_0x4f0f29(0x100)]('['+_0x179b4a+']');case LogLevel[_0x4f0f29(0x101)]:return this[_0x4f0f29(0xea)][_0x4f0f29(0xfa)]('['+_0x179b4a+']');default:return'['+_0x179b4a+']';}}}
1
+ const a222_0x5c080e=a222_0x476e;(function(_0x24c920,_0x5c9058){const _0x57713c=a222_0x476e,_0x4db88c=_0x24c920();while(!![]){try{const _0x56a1ef=-parseInt(_0x57713c(0x19d))/0x1*(-parseInt(_0x57713c(0x19a))/0x2)+parseInt(_0x57713c(0x186))/0x3+-parseInt(_0x57713c(0x189))/0x4+parseInt(_0x57713c(0x196))/0x5*(parseInt(_0x57713c(0x1a0))/0x6)+parseInt(_0x57713c(0x190))/0x7*(-parseInt(_0x57713c(0x194))/0x8)+-parseInt(_0x57713c(0x18f))/0x9+-parseInt(_0x57713c(0x199))/0xa*(parseInt(_0x57713c(0x188))/0xb);if(_0x56a1ef===_0x5c9058)break;else _0x4db88c['push'](_0x4db88c['shift']());}catch(_0x175b9f){_0x4db88c['push'](_0x4db88c['shift']());}}}(a222_0x1e1e,0x865b6));import a222_0x4fb5e6 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a222_0x1e1e(){const _0x5cc25f=['2raEkJE','DEBUG','cyan','941633lrbNhR','format','message','3898626ZUtASL','yellow','3266988gHfgOP','default','195140KodJCZ','724596zgglnr','level','INFO','component','colors','colorLevel','5360319AHrfDw','1757NKtJdn','TRACE','chalk','gray','19952KhNtuP','Chalk','5qqlyEs','ERROR','timestamp','410tWInrg'];a222_0x1e1e=function(){return _0x5cc25f;};return a222_0x1e1e();}const chalkModule=a222_0x4fb5e6,ChalkClass=chalkModule[a222_0x5c080e(0x195)]||chalkModule[a222_0x5c080e(0x187)]?.[a222_0x5c080e(0x195)];function a222_0x476e(_0x12760f,_0x497524){_0x12760f=_0x12760f-0x186;const _0x1e1ed5=a222_0x1e1e();let _0x476e88=_0x1e1ed5[_0x12760f];return _0x476e88;}export class DefaultLogFormatter{[a222_0x5c080e(0x18d)];[a222_0x5c080e(0x192)];constructor(_0x280b1c={}){const _0x2a267a=a222_0x5c080e;this['colors']=_0x280b1c[_0x2a267a(0x18d)]??![],this[_0x2a267a(0x192)]=_0x280b1c[_0x2a267a(0x18d)]&&ChalkClass?new ChalkClass({'level':0x3}):a222_0x4fb5e6;}[a222_0x5c080e(0x19e)](_0x3ce785){const _0x1d33fb=a222_0x5c080e,_0x42ead5=formatTimestamp(_0x3ce785[_0x1d33fb(0x198)]),_0x19f73f=logLevelToString(_0x3ce785[_0x1d33fb(0x18a)]);if(!this['colors'])return _0x42ead5+'\x20['+_0x19f73f+']\x20['+_0x3ce785[_0x1d33fb(0x18c)]+']\x20'+_0x3ce785[_0x1d33fb(0x19f)];const _0x177cd5=this[_0x1d33fb(0x192)]['dim'](_0x42ead5),_0x4b1835=this[_0x1d33fb(0x18e)](_0x19f73f,_0x3ce785[_0x1d33fb(0x18a)]),_0x32e592=this['chalk']['blue']('['+_0x3ce785['component']+']');return _0x177cd5+'\x20'+_0x4b1835+'\x20'+_0x32e592+'\x20'+_0x3ce785[_0x1d33fb(0x19f)];}[a222_0x5c080e(0x18e)](_0x33143b,_0x4557ba){const _0xdbe248=a222_0x5c080e;switch(_0x4557ba){case LogLevel[_0xdbe248(0x191)]:return this[_0xdbe248(0x192)][_0xdbe248(0x193)]('['+_0x33143b+']');case LogLevel[_0xdbe248(0x19b)]:return this[_0xdbe248(0x192)]['green']('['+_0x33143b+']');case LogLevel[_0xdbe248(0x18b)]:return this[_0xdbe248(0x192)][_0xdbe248(0x19c)]('['+_0x33143b+']');case LogLevel['WARN']:return this[_0xdbe248(0x192)][_0xdbe248(0x1a1)]('['+_0x33143b+']');case LogLevel[_0xdbe248(0x197)]:return this[_0xdbe248(0x192)]['red']('['+_0x33143b+']');default:return'['+_0x33143b+']';}}}
@@ -1 +1 @@
1
- (function(_0x22609d,_0x546523){var _0x5cbe7e=a223_0x2a01,_0x42a159=_0x22609d();while(!![]){try{var _0x2c2589=-parseInt(_0x5cbe7e(0x10c))/0x1*(-parseInt(_0x5cbe7e(0x108))/0x2)+-parseInt(_0x5cbe7e(0x10a))/0x3*(-parseInt(_0x5cbe7e(0x106))/0x4)+-parseInt(_0x5cbe7e(0x102))/0x5*(parseInt(_0x5cbe7e(0x107))/0x6)+parseInt(_0x5cbe7e(0x101))/0x7+parseInt(_0x5cbe7e(0x104))/0x8*(-parseInt(_0x5cbe7e(0x109))/0x9)+-parseInt(_0x5cbe7e(0x10b))/0xa*(parseInt(_0x5cbe7e(0x103))/0xb)+-parseInt(_0x5cbe7e(0x100))/0xc*(parseInt(_0x5cbe7e(0x105))/0xd);if(_0x2c2589===_0x546523)break;else _0x42a159['push'](_0x42a159['shift']());}catch(_0x1a24d6){_0x42a159['push'](_0x42a159['shift']());}}}(a223_0x253c,0x1f72c));function a223_0x2a01(_0x3197f5,_0x3f38ce){_0x3197f5=_0x3197f5-0x100;var _0x253c98=a223_0x253c();var _0x2a0188=_0x253c98[_0x3197f5];return _0x2a0188;}export{DefaultLogFormatter}from'./default-formatter.js';function a223_0x253c(){var _0x2682e0=['568EvqZIx','903968BpuJpU','248EtwYXj','798FjEpuZ','109542XQayHe','19377LnGdBJ','10518FfgcPq','529160OyBKhF','1yjrgOA','12NNmabP','1730134OXzmnn','4330ZSHUFX','11bIBtkP'];a223_0x253c=function(){return _0x2682e0;};return a223_0x253c();}
1
+ function a223_0x4288(_0x345c87,_0x2a4e18){_0x345c87=_0x345c87-0x19b;var _0x4bab0c=a223_0x4bab();var _0x4288d1=_0x4bab0c[_0x345c87];return _0x4288d1;}function a223_0x4bab(){var _0x2ce8bb=['19243NMkLDZ','2315484FfXDvR','3208ZnLEqw','85653JJcODj','346992KjfdMG','30iNATHQ','4279EGsLsm','26RYEYTS','36758DohSli','12552hNqHPR','2664248vnTHxa','45VOmKox'];a223_0x4bab=function(){return _0x2ce8bb;};return a223_0x4bab();}(function(_0x22b802,_0x5689d5){var _0x11428b=a223_0x4288,_0x290e8b=_0x22b802();while(!![]){try{var _0x4ead6b=-parseInt(_0x11428b(0x19d))/0x1*(parseInt(_0x11428b(0x19e))/0x2)+parseInt(_0x11428b(0x1a5))/0x3+-parseInt(_0x11428b(0x1a0))/0x4+parseInt(_0x11428b(0x1a1))/0x5*(-parseInt(_0x11428b(0x1a6))/0x6)+-parseInt(_0x11428b(0x1a2))/0x7*(-parseInt(_0x11428b(0x1a4))/0x8)+-parseInt(_0x11428b(0x1a3))/0x9*(-parseInt(_0x11428b(0x19b))/0xa)+-parseInt(_0x11428b(0x19c))/0xb*(-parseInt(_0x11428b(0x19f))/0xc);if(_0x4ead6b===_0x5689d5)break;else _0x290e8b['push'](_0x290e8b['shift']());}catch(_0x541899){_0x290e8b['push'](_0x290e8b['shift']());}}}(a223_0x4bab,0x9d862));export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- function a224_0xdab9(_0x2837f3,_0x486782){_0x2837f3=_0x2837f3-0x166;const _0x587057=a224_0x5870();let _0xdab9a6=_0x587057[_0x2837f3];return _0xdab9a6;}const a224_0x45a661=a224_0xdab9;(function(_0x347122,_0x50fe93){const _0x20102a=a224_0xdab9,_0x1b6ffc=_0x347122();while(!![]){try{const _0x270b87=-parseInt(_0x20102a(0x16e))/0x1+parseInt(_0x20102a(0x172))/0x2*(parseInt(_0x20102a(0x16f))/0x3)+-parseInt(_0x20102a(0x16a))/0x4*(-parseInt(_0x20102a(0x16d))/0x5)+parseInt(_0x20102a(0x168))/0x6+parseInt(_0x20102a(0x166))/0x7+parseInt(_0x20102a(0x175))/0x8*(-parseInt(_0x20102a(0x173))/0x9)+parseInt(_0x20102a(0x177))/0xa*(-parseInt(_0x20102a(0x174))/0xb);if(_0x270b87===_0x50fe93)break;else _0x1b6ffc['push'](_0x1b6ffc['shift']());}catch(_0x554ae2){_0x1b6ffc['push'](_0x1b6ffc['shift']());}}}(a224_0x5870,0xb9086));function a224_0x5870(){const _0xcbf46d=['5IuIkJk','417459iEWxcj','94134itYLFS','level','format','4CACfAV','10551609YnkbcV','66sQZduU','8obpdyX','error','594970aQDGms','4716320SjxmAz','useStderr','7412766YCqxpF','minLevel','2931036yehNKl','formatter','WARN'];a224_0x5870=function(){return _0xcbf46d;};return a224_0x5870();}import{LogLevel as a224_0x5d8d08}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a224_0x45a661(0x169)];[a224_0x45a661(0x167)];['formatter'];constructor(_0x44604b={}){const _0xd351=a224_0x45a661;this[_0xd351(0x169)]=_0x44604b[_0xd351(0x169)]??a224_0x5d8d08[_0xd351(0x16c)],this['useStderr']=_0x44604b[_0xd351(0x167)]??!![],this[_0xd351(0x16b)]=new DefaultLogFormatter({'colors':_0x44604b['colors']??!![]});}['handle'](_0x5d76b1){const _0x521c9d=a224_0x45a661;if(_0x5d76b1[_0x521c9d(0x170)]<this[_0x521c9d(0x169)])return;const _0x4d932f=this[_0x521c9d(0x16b)][_0x521c9d(0x171)](_0x5d76b1);this[_0x521c9d(0x167)]&&_0x5d76b1[_0x521c9d(0x170)]>=a224_0x5d8d08['WARN']?console[_0x521c9d(0x176)](_0x4d932f):console['log'](_0x4d932f);}}
1
+ const a224_0x32c689=a224_0xf4f0;function a224_0xebbd(){const _0x50f700=['level','WARN','log','5766774vHsIsC','8ufEFBc','useStderr','1111736FGyiTO','colors','error','9910768XdPCph','7370001zzAkkO','3nHVCfg','75865BdEabA','28918840jfEuUP','handle','formatter','328YSIybj','minLevel','format','674758CtVhQR'];a224_0xebbd=function(){return _0x50f700;};return a224_0xebbd();}function a224_0xf4f0(_0x73f88c,_0x1002be){_0x73f88c=_0x73f88c-0x99;const _0xebbd36=a224_0xebbd();let _0xf4f02d=_0xebbd36[_0x73f88c];return _0xf4f02d;}(function(_0x2a8049,_0x2a994a){const _0x6fbe65=a224_0xf4f0,_0x4e6d34=_0x2a8049();while(!![]){try{const _0xcbeb4d=-parseInt(_0x6fbe65(0x9f))/0x1+parseInt(_0x6fbe65(0xa6))/0x2*(parseInt(_0x6fbe65(0xab))/0x3)+parseInt(_0x6fbe65(0x9c))/0x4*(parseInt(_0x6fbe65(0xac))/0x5)+-parseInt(_0x6fbe65(0xa3))/0x6+-parseInt(_0x6fbe65(0xa9))/0x7*(parseInt(_0x6fbe65(0xa4))/0x8)+-parseInt(_0x6fbe65(0xaa))/0x9+parseInt(_0x6fbe65(0x99))/0xa;if(_0xcbeb4d===_0x2a994a)break;else _0x4e6d34['push'](_0x4e6d34['shift']());}catch(_0x310c6c){_0x4e6d34['push'](_0x4e6d34['shift']());}}}(a224_0xebbd,0xc885a));import{LogLevel as a224_0x1d227f}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a224_0x32c689(0x9d)];['useStderr'];[a224_0x32c689(0x9b)];constructor(_0x10a95b={}){const _0xf86772=a224_0x32c689;this[_0xf86772(0x9d)]=_0x10a95b['minLevel']??a224_0x1d227f[_0xf86772(0xa1)],this[_0xf86772(0xa5)]=_0x10a95b[_0xf86772(0xa5)]??!![],this[_0xf86772(0x9b)]=new DefaultLogFormatter({'colors':_0x10a95b[_0xf86772(0xa7)]??!![]});}[a224_0x32c689(0x9a)](_0x238889){const _0x4b7915=a224_0x32c689;if(_0x238889[_0x4b7915(0xa0)]<this[_0x4b7915(0x9d)])return;const _0x83c7fe=this[_0x4b7915(0x9b)][_0x4b7915(0x9e)](_0x238889);this[_0x4b7915(0xa5)]&&_0x238889[_0x4b7915(0xa0)]>=a224_0x1d227f['WARN']?console[_0x4b7915(0xa8)](_0x83c7fe):console[_0x4b7915(0xa2)](_0x83c7fe);}}
@@ -1 +1 @@
1
- const a225_0x209b95=a225_0x3ccb;(function(_0x14ffc7,_0x2aef1b){const _0xa6093=a225_0x3ccb,_0x31d81f=_0x14ffc7();while(!![]){try{const _0x19e2dc=parseInt(_0xa6093(0x1e4))/0x1*(-parseInt(_0xa6093(0x1f4))/0x2)+parseInt(_0xa6093(0x1e3))/0x3+-parseInt(_0xa6093(0x1e2))/0x4*(parseInt(_0xa6093(0x1e7))/0x5)+-parseInt(_0xa6093(0x1f2))/0x6+-parseInt(_0xa6093(0x1df))/0x7*(parseInt(_0xa6093(0x1f7))/0x8)+-parseInt(_0xa6093(0x1e8))/0x9*(parseInt(_0xa6093(0x1fa))/0xa)+parseInt(_0xa6093(0x1ed))/0xb;if(_0x19e2dc===_0x2aef1b)break;else _0x31d81f['push'](_0x31d81f['shift']());}catch(_0x4ea2a3){_0x31d81f['push'](_0x31d81f['shift']());}}}(a225_0x20aa,0xd88f0));function a225_0x3ccb(_0x5a8bfb,_0x560a7c){_0x5a8bfb=_0x5a8bfb-0x1d7;const _0x20aa46=a225_0x20aa();let _0x3ccb6a=_0x20aa46[_0x5a8bfb];return _0x3ccb6a;}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{[a225_0x209b95(0x1d7)];['logDir'];['logFileName'];[a225_0x209b95(0x1de)];[a225_0x209b95(0x1ee)]=null;[a225_0x209b95(0x1f6)];constructor(_0x368c23={}){const _0x45f446=a225_0x209b95;this['logPath']=_0x368c23[_0x45f446(0x1e0)]??join(getGlobalCacheDir(),_0x45f446(0x1eb),'tdx.log'),this[_0x45f446(0x1e6)]=dirname(this['logPath']),this[_0x45f446(0x1ec)]=basename(this[_0x45f446(0x1d7)]),this['logBaseName']=this[_0x45f446(0x1ec)]['replace'](/\.log$/,''),this['rotate']=_0x368c23[_0x45f446(0x1f6)]??!![];}async[a225_0x209b95(0x1f8)](){const _0x4920b1=a225_0x209b95;try{await mkdir(this[_0x4920b1(0x1e6)],{'recursive':!![]}),this[_0x4920b1(0x1f6)]&&await this[_0x4920b1(0x1ef)](),this[_0x4920b1(0x1ee)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x4920b1(0x1ee)]['on'](_0x4920b1(0x1d9),_0x4b72a3=>{const _0x65d06c=_0x4920b1;console[_0x65d06c(0x1d9)]('Warning:\x20Error\x20writing\x20to\x20'+this['logFileName']+':',_0x4b72a3['message']);});}catch(_0x37fbec){console[_0x4920b1(0x1d9)](_0x4920b1(0x1f0),_0x37fbec);}}[a225_0x209b95(0x1f9)](_0x27fe82){const _0x5a7495=a225_0x209b95;if(!this[_0x5a7495(0x1ee)])return;const _0x52ba19=Logger[_0x5a7495(0x1f1)](_0x27fe82);this['logStream'][_0x5a7495(0x1dd)](_0x52ba19+'\x0a');}async[a225_0x209b95(0x1ea)](){return new Promise(_0x337042=>{const _0x450d99=a225_0x3ccb;this[_0x450d99(0x1ee)]?this[_0x450d99(0x1ee)][_0x450d99(0x1dc)](()=>{const _0x392f44=_0x450d99;this[_0x392f44(0x1ee)]=null,_0x337042();}):_0x337042();});}[a225_0x209b95(0x1db)](){const _0x549e4b=a225_0x209b95;return this[_0x549e4b(0x1d7)];}async[a225_0x209b95(0x1ef)](){const _0x157c6f=a225_0x209b95;try{const _0x591419=await readdir(this['logDir']),_0x4ef6d2=new Date()[_0x157c6f(0x1e9)]()[_0x157c6f(0x1f5)]('T')[0x0];if(_0x591419['includes'](this[_0x157c6f(0x1ec)])){const _0x201142=join(this[_0x157c6f(0x1e6)],this[_0x157c6f(0x1ec)]),_0x2d19b1=await stat(_0x201142),_0x34bfe2=new Date(_0x2d19b1['mtime'])[_0x157c6f(0x1e9)]()[_0x157c6f(0x1f5)]('T')[0x0];if(_0x34bfe2<_0x4ef6d2){const _0x1964c0=join(this['logDir'],this[_0x157c6f(0x1de)]+'-'+_0x34bfe2+'.log');await rename(_0x201142,_0x1964c0);}}const _0x50729f=await readdir(this[_0x157c6f(0x1e6)]),_0x31bebc=this[_0x157c6f(0x1de)][_0x157c6f(0x1f3)](/[.*+?^${}()|[\]\\]/g,_0x157c6f(0x1da)),_0x36d3e5=new RegExp('^'+_0x31bebc+_0x157c6f(0x1e5)),_0xef3398=_0x50729f['filter'](_0x6c9535=>_0x36d3e5['test'](_0x6c9535));for(const _0x172611 of _0xef3398){const _0x36d64f=join(this[_0x157c6f(0x1e6)],_0x172611),_0x4733e8=join(this[_0x157c6f(0x1e6)],_0x172611+_0x157c6f(0x1e1));try{await pipeline(createReadStream(_0x36d64f),createGzip(),createWriteStream(_0x4733e8)),await unlink(_0x36d64f);}catch(_0x2b105b){console[_0x157c6f(0x1d9)](_0x157c6f(0x1d8)+_0x172611+':',_0x2b105b);}}}catch{}}}function a225_0x20aa(){const _0x3740d4=['-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logDir','125tiQwju','76995DKBYoE','toISOString','close','logs','logFileName','26714402RkSykI','logStream','rotateOldLogs','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','format','3496458GeyEow','replace','814nPjyjA','split','rotate','2060728oeOXPa','init','handle','290QUqIOk','logPath','Warning:\x20Failed\x20to\x20compress\x20','error','\x5c$&','getLogPath','end','write','logBaseName','28bnmYiN','filePath','.gz','111968pWeBrD','4911810MFpdrB','1518fUkOjW'];a225_0x20aa=function(){return _0x3740d4;};return a225_0x20aa();}
1
+ function a225_0x3110(){const _0x4351cd=['filter','1615868AnhhRC','Warning:\x20Error\x20writing\x20to\x20','logPath','119817AkJHqT','tdx.log','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','filePath','init','handle','563962zcgVEB','rotateOldLogs','logBaseName','includes','replace','test','2343790TbhTIk','message','3XHhWof','logDir','\x5c$&','split','logs','error','232kSDwZV','logStream','write','rotate','11630QADzkn','toISOString','logFileName','1538396jdFZRu','4485096uHsTpV','570zzIfNG'];a225_0x3110=function(){return _0x4351cd;};return a225_0x3110();}const a225_0x5cdb72=a225_0x4d53;(function(_0x15bbcb,_0x254ad6){const _0x4ae7e8=a225_0x4d53,_0x3851f9=_0x15bbcb();while(!![]){try{const _0x25f384=-parseInt(_0x4ae7e8(0x19a))/0x1+parseInt(_0x4ae7e8(0x191))/0x2+-parseInt(_0x4ae7e8(0x1a2))/0x3*(parseInt(_0x4ae7e8(0x1af))/0x4)+parseInt(_0x4ae7e8(0x1ac))/0x5*(-parseInt(_0x4ae7e8(0x1b1))/0x6)+parseInt(_0x4ae7e8(0x1b0))/0x7+-parseInt(_0x4ae7e8(0x1a8))/0x8*(-parseInt(_0x4ae7e8(0x194))/0x9)+-parseInt(_0x4ae7e8(0x1a0))/0xa;if(_0x25f384===_0x254ad6)break;else _0x3851f9['push'](_0x3851f9['shift']());}catch(_0x24d3af){_0x3851f9['push'](_0x3851f9['shift']());}}}(a225_0x3110,0x692ed));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';function a225_0x4d53(_0x41576b,_0x3cc0f7){_0x41576b=_0x41576b-0x191;const _0x3110c2=a225_0x3110();let _0x4d53dd=_0x3110c2[_0x41576b];return _0x4d53dd;}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a225_0x5cdb72(0x193)];[a225_0x5cdb72(0x1a3)];[a225_0x5cdb72(0x1ae)];[a225_0x5cdb72(0x19c)];[a225_0x5cdb72(0x1a9)]=null;[a225_0x5cdb72(0x1ab)];constructor(_0x846218={}){const _0x1ae03f=a225_0x5cdb72;this['logPath']=_0x846218[_0x1ae03f(0x197)]??join(getGlobalCacheDir(),_0x1ae03f(0x1a6),_0x1ae03f(0x195)),this[_0x1ae03f(0x1a3)]=dirname(this[_0x1ae03f(0x193)]),this['logFileName']=basename(this[_0x1ae03f(0x193)]),this[_0x1ae03f(0x19c)]=this[_0x1ae03f(0x1ae)][_0x1ae03f(0x19e)](/\.log$/,''),this[_0x1ae03f(0x1ab)]=_0x846218[_0x1ae03f(0x1ab)]??!![];}async[a225_0x5cdb72(0x198)](){const _0x4d7c37=a225_0x5cdb72;try{await mkdir(this[_0x4d7c37(0x1a3)],{'recursive':!![]}),this['rotate']&&await this[_0x4d7c37(0x19b)](),this[_0x4d7c37(0x1a9)]=createWriteStream(this[_0x4d7c37(0x193)],{'flags':'a'}),this[_0x4d7c37(0x1a9)]['on'](_0x4d7c37(0x1a7),_0x418456=>{const _0xc6fcef=_0x4d7c37;console[_0xc6fcef(0x1a7)](_0xc6fcef(0x192)+this[_0xc6fcef(0x1ae)]+':',_0x418456[_0xc6fcef(0x1a1)]);});}catch(_0x56efea){console[_0x4d7c37(0x1a7)](_0x4d7c37(0x196),_0x56efea);}}[a225_0x5cdb72(0x199)](_0x46cb4e){const _0x423296=a225_0x5cdb72;if(!this[_0x423296(0x1a9)])return;const _0x5e8fc0=Logger['format'](_0x46cb4e);this[_0x423296(0x1a9)][_0x423296(0x1aa)](_0x5e8fc0+'\x0a');}async['close'](){return new Promise(_0x535465=>{const _0x535a58=a225_0x4d53;this['logStream']?this[_0x535a58(0x1a9)]['end'](()=>{const _0x4e291a=_0x535a58;this[_0x4e291a(0x1a9)]=null,_0x535465();}):_0x535465();});}['getLogPath'](){const _0x235a1f=a225_0x5cdb72;return this[_0x235a1f(0x193)];}async[a225_0x5cdb72(0x19b)](){const _0x5d8304=a225_0x5cdb72;try{const _0x396e33=await readdir(this[_0x5d8304(0x1a3)]),_0x117842=new Date()[_0x5d8304(0x1ad)]()[_0x5d8304(0x1a5)]('T')[0x0];if(_0x396e33[_0x5d8304(0x19d)](this['logFileName'])){const _0x572cad=join(this[_0x5d8304(0x1a3)],this[_0x5d8304(0x1ae)]),_0x127957=await stat(_0x572cad),_0x303e60=new Date(_0x127957['mtime'])['toISOString']()['split']('T')[0x0];if(_0x303e60<_0x117842){const _0xd21cb2=join(this[_0x5d8304(0x1a3)],this[_0x5d8304(0x19c)]+'-'+_0x303e60+'.log');await rename(_0x572cad,_0xd21cb2);}}const _0x32ed5c=await readdir(this[_0x5d8304(0x1a3)]),_0x5e781d=this[_0x5d8304(0x19c)][_0x5d8304(0x19e)](/[.*+?^${}()|[\]\\]/g,_0x5d8304(0x1a4)),_0x42a2ba=new RegExp('^'+_0x5e781d+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x20ffb7=_0x32ed5c[_0x5d8304(0x1b2)](_0x4823f9=>_0x42a2ba[_0x5d8304(0x19f)](_0x4823f9));for(const _0x567f49 of _0x20ffb7){const _0x1ab20c=join(this['logDir'],_0x567f49),_0x341cd3=join(this[_0x5d8304(0x1a3)],_0x567f49+'.gz');try{await pipeline(createReadStream(_0x1ab20c),createGzip(),createWriteStream(_0x341cd3)),await unlink(_0x1ab20c);}catch(_0x28ae9d){console[_0x5d8304(0x1a7)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x567f49+':',_0x28ae9d);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x5484b1,_0x4801c7){var _0x559f9a=a226_0x4d0a,_0x1525a1=_0x5484b1();while(!![]){try{var _0x544c73=parseInt(_0x559f9a(0x84))/0x1*(parseInt(_0x559f9a(0x87))/0x2)+parseInt(_0x559f9a(0x83))/0x3*(-parseInt(_0x559f9a(0x7f))/0x4)+parseInt(_0x559f9a(0x85))/0x5+parseInt(_0x559f9a(0x8a))/0x6*(-parseInt(_0x559f9a(0x8b))/0x7)+-parseInt(_0x559f9a(0x81))/0x8*(-parseInt(_0x559f9a(0x88))/0x9)+parseInt(_0x559f9a(0x89))/0xa*(-parseInt(_0x559f9a(0x80))/0xb)+parseInt(_0x559f9a(0x86))/0xc*(parseInt(_0x559f9a(0x82))/0xd);if(_0x544c73===_0x4801c7)break;else _0x1525a1['push'](_0x1525a1['shift']());}catch(_0x18a9eb){_0x1525a1['push'](_0x1525a1['shift']());}}}(a226_0x4922,0x34216));export{FileHandler}from'./file-handler.js';function a226_0x4d0a(_0x5ca37f,_0x5c7e56){_0x5ca37f=_0x5ca37f-0x7f;var _0x4922fe=a226_0x4922();var _0x4d0a9=_0x4922fe[_0x5ca37f];return _0x4d0a9;}function a226_0x4922(){var _0x1d8498=['3313rYwrwu','2039205zRcDcQ','108ammDEu','90IoLRQn','636750PDgWfs','694060olgCQk','618QhTmYA','17297RlBFIx','60XSeWOl','55fICEmX','40gSTHKN','220051JiSdeP','49590paadUH'];a226_0x4922=function(){return _0x1d8498;};return a226_0x4922();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ (function(_0x13d2e9,_0x5a0c96){var _0x5027d7=a226_0x1ea4,_0x1c67c0=_0x13d2e9();while(!![]){try{var _0x2bc7f8=-parseInt(_0x5027d7(0x105))/0x1*(-parseInt(_0x5027d7(0xfd))/0x2)+-parseInt(_0x5027d7(0x101))/0x3+parseInt(_0x5027d7(0x102))/0x4+-parseInt(_0x5027d7(0x106))/0x5+-parseInt(_0x5027d7(0xff))/0x6+-parseInt(_0x5027d7(0x100))/0x7*(parseInt(_0x5027d7(0x103))/0x8)+parseInt(_0x5027d7(0xfe))/0x9*(parseInt(_0x5027d7(0x104))/0xa);if(_0x2bc7f8===_0x5a0c96)break;else _0x1c67c0['push'](_0x1c67c0['shift']());}catch(_0x146a4a){_0x1c67c0['push'](_0x1c67c0['shift']());}}}(a226_0x43d5,0xe2ebe));export{FileHandler}from'./file-handler.js';function a226_0x1ea4(_0x50c4b5,_0x247569){_0x50c4b5=_0x50c4b5-0xfd;var _0x43d5cb=a226_0x43d5();var _0x1ea40d=_0x43d5cb[_0x50c4b5];return _0x1ea40d;}function a226_0x43d5(){var _0x478418=['3717RBREvM','8534808AZcLcc','5999329SYAvXx','3363474QIhlmv','2463320TZCvre','8enAAVX','69070KhGddQ','5kYvprf','3542815EqkkZH','628114pWwcjc'];a226_0x43d5=function(){return _0x478418;};return a226_0x43d5();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- (function(_0x14da5e,_0xd88f78){var _0x21e929=a227_0x5de3,_0x3c2718=_0x14da5e();while(!![]){try{var _0x532c68=parseInt(_0x21e929(0xee))/0x1*(parseInt(_0x21e929(0xea))/0x2)+-parseInt(_0x21e929(0xf0))/0x3+-parseInt(_0x21e929(0xed))/0x4+-parseInt(_0x21e929(0xe8))/0x5*(-parseInt(_0x21e929(0xef))/0x6)+-parseInt(_0x21e929(0xec))/0x7+-parseInt(_0x21e929(0xf1))/0x8*(-parseInt(_0x21e929(0xe9))/0x9)+-parseInt(_0x21e929(0xe7))/0xa*(-parseInt(_0x21e929(0xeb))/0xb);if(_0x532c68===_0xd88f78)break;else _0x3c2718['push'](_0x3c2718['shift']());}catch(_0x3fcac5){_0x3c2718['push'](_0x3c2718['shift']());}}}(a227_0x5e01,0x857af));function a227_0x5de3(_0x1f83d9,_0x2f0847){_0x1f83d9=_0x1f83d9-0xe7;var _0x5e0156=a227_0x5e01();var _0x5de355=_0x5e0156[_0x1f83d9];return _0x5de355;}function a227_0x5e01(){var _0x1b6faa=['369IeTaDD','55534wVpqbY','875743LXjoBu','1715441HCLmVt','1850152sgBZDa','1MiEGlP','161652cHjReB','1288446IYNzfm','97792CdZcBv','30YmmRaG','170cZjpzD'];a227_0x5e01=function(){return _0x1b6faa;};return a227_0x5e01();}export class NullHandler{['handle'](_0x54df3c){}}
1
+ var a227_0x1fb4ba=a227_0x33a0;(function(_0x4f0cba,_0x4e8a55){var _0x4027bd=a227_0x33a0,_0x51b56=_0x4f0cba();while(!![]){try{var _0x993c22=parseInt(_0x4027bd(0x96))/0x1+-parseInt(_0x4027bd(0x90))/0x2*(-parseInt(_0x4027bd(0x92))/0x3)+parseInt(_0x4027bd(0x8f))/0x4*(parseInt(_0x4027bd(0x8e))/0x5)+-parseInt(_0x4027bd(0x91))/0x6+parseInt(_0x4027bd(0x8c))/0x7*(-parseInt(_0x4027bd(0x95))/0x8)+parseInt(_0x4027bd(0x94))/0x9+parseInt(_0x4027bd(0x8d))/0xa;if(_0x993c22===_0x4e8a55)break;else _0x51b56['push'](_0x51b56['shift']());}catch(_0x1f8eba){_0x51b56['push'](_0x51b56['shift']());}}}(a227_0x1d53,0x63243));function a227_0x33a0(_0x4de1fe,_0x283085){_0x4de1fe=_0x4de1fe-0x8c;var _0x1d5371=a227_0x1d53();var _0x33a00c=_0x1d5371[_0x4de1fe];return _0x33a00c;}export class NullHandler{[a227_0x1fb4ba(0x93)](_0x149f26){}}function a227_0x1d53(){var _0x5d75ec=['7voflit','5505040aIEusz','10UwlQFq','508540UPFUnI','3736tEQNux','1290570vdnEAR','120KOERPe','handle','1889460KdEGgr','5491952PlNmkQ','218238LeZgUw'];a227_0x1d53=function(){return _0x5d75ec;};return a227_0x1d53();}
@@ -1 +1 @@
1
- (function(_0x20fbce,_0x9a8f41){var _0x14a243=a228_0x7267,_0x36b446=_0x20fbce();while(!![]){try{var _0x55dd9d=parseInt(_0x14a243(0x1be))/0x1+-parseInt(_0x14a243(0x1bc))/0x2*(parseInt(_0x14a243(0x1bb))/0x3)+parseInt(_0x14a243(0x1c1))/0x4*(-parseInt(_0x14a243(0x1b9))/0x5)+parseInt(_0x14a243(0x1b8))/0x6*(-parseInt(_0x14a243(0x1bd))/0x7)+-parseInt(_0x14a243(0x1b6))/0x8*(parseInt(_0x14a243(0x1ba))/0x9)+-parseInt(_0x14a243(0x1b7))/0xa*(-parseInt(_0x14a243(0x1c0))/0xb)+parseInt(_0x14a243(0x1bf))/0xc;if(_0x55dd9d===_0x9a8f41)break;else _0x36b446['push'](_0x36b446['shift']());}catch(_0x344e3b){_0x36b446['push'](_0x36b446['shift']());}}}(a228_0x3088,0x4b2fe));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a228_0x3088(){var _0x151d4f=['10pyvpJl','413RUTPoW','447767TYYMkb','16200780uQeYmU','14069wwrEns','4cQnBTQ','768WwdoEG','2760lUaBEL','60474qSchFH','3037640rHAoos','25209JnBSxs','223071ciwaHL'];a228_0x3088=function(){return _0x151d4f;};return a228_0x3088();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a228_0x7267(_0x47c0d6,_0x15f2b1){_0x47c0d6=_0x47c0d6-0x1b6;var _0x3088a2=a228_0x3088();var _0x726709=_0x3088a2[_0x47c0d6];return _0x726709;}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x40ea07,_0xc13672){var _0x552dd6=a228_0x4db3,_0x24b371=_0x40ea07();while(!![]){try{var _0x4eef70=-parseInt(_0x552dd6(0xec))/0x1+-parseInt(_0x552dd6(0xe5))/0x2*(parseInt(_0x552dd6(0xe3))/0x3)+parseInt(_0x552dd6(0xea))/0x4*(-parseInt(_0x552dd6(0xe4))/0x5)+-parseInt(_0x552dd6(0xe7))/0x6*(parseInt(_0x552dd6(0xe8))/0x7)+parseInt(_0x552dd6(0xeb))/0x8+-parseInt(_0x552dd6(0xe6))/0x9+parseInt(_0x552dd6(0xe9))/0xa;if(_0x4eef70===_0xc13672)break;else _0x24b371['push'](_0x24b371['shift']());}catch(_0x2e9f58){_0x24b371['push'](_0x24b371['shift']());}}}(a228_0x1356,0xb77cf));export{Logger}from'./logger.js';function a228_0x1356(){var _0x291cbd=['53305jEznQV','6IVkFcJ','4272894WnxoaA','876126IWiUas','56bpniLk','32295070pXbsEB','248LRnlfK','3765936SFYLMC','482265fiBhaa','162501dPRygJ'];a228_0x1356=function(){return _0x291cbd;};return a228_0x1356();}function a228_0x4db3(_0x4855f7,_0xadd719){_0x4855f7=_0x4855f7-0xe3;var _0x1356d8=a228_0x1356();var _0x4db3c1=_0x1356d8[_0x4855f7];return _0x4db3c1;}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 a229_0x18238a=a229_0x6418;(function(_0x59f42e,_0x5ac01e){const _0x5bf649=a229_0x6418,_0x823ec7=_0x59f42e();while(!![]){try{const _0x510083=parseInt(_0x5bf649(0xb0))/0x1+-parseInt(_0x5bf649(0xaa))/0x2+-parseInt(_0x5bf649(0xad))/0x3+parseInt(_0x5bf649(0x90))/0x4+-parseInt(_0x5bf649(0x9a))/0x5*(parseInt(_0x5bf649(0xae))/0x6)+parseInt(_0x5bf649(0x9d))/0x7*(parseInt(_0x5bf649(0x9c))/0x8)+parseInt(_0x5bf649(0xa9))/0x9;if(_0x510083===_0x5ac01e)break;else _0x823ec7['push'](_0x823ec7['shift']());}catch(_0x3be154){_0x823ec7['push'](_0x823ec7['shift']());}}}(a229_0x11ab,0xe4a52));import{LogLevel as a229_0x252d31,logLevelToString}from'./types.js';function a229_0x6418(_0x4ceba5,_0x42d7a2){_0x4ceba5=_0x4ceba5-0x7a;const _0x11ab5b=a229_0x11ab();let _0x64181a=_0x11ab5b[_0x4ceba5];return _0x64181a;}function a229_0x11ab(){const _0x5e5dfd=['log','join','close','entries','setDefaultLevel','handlers','length','getFormatter','reset','ERROR','DEBUG','initialized','shutdown','isInitialized','3611152DzZokF','shouldLog','levelOverrides','info','name','init','get','clearHandlers','component','string','43535gJQQKk','TRACE','8FOvnez','6675634cLRrsH','push','has','set','timestamp','clear','defaultLevel','formatter','stack','map','debug','loggers','25083567OTBWWR','3209352mBnCfW','split','format','5369775SUNnwX','642RQFYKI','addHandler','619267dmFgDc',']\x20[','getEffectiveLevel','dispatch','setLogLevel','trace','toISOString','message','INFO','pendingRecords','function','stringify','error'];a229_0x11ab=function(){return _0x5e5dfd;};return a229_0x11ab();}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a229_0x252d31[a229_0x18238a(0x7d)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x591b4f){const _0x45d9c3=a229_0x18238a;if(typeof _0x591b4f===_0x45d9c3(0x99))return _0x591b4f;if(_0x591b4f instanceof Error)return _0x591b4f[_0x45d9c3(0xa5)]||_0x591b4f[_0x45d9c3(0x94)]+':\x20'+_0x591b4f[_0x45d9c3(0x7c)];try{return JSON[_0x45d9c3(0x80)](_0x591b4f,(_0x5d6bec,_0x245adb)=>{const _0x39c329=_0x45d9c3;if(_0x245adb instanceof Error)return{'name':_0x245adb[_0x39c329(0x94)],'message':_0x245adb[_0x39c329(0x7c)],'stack':_0x245adb[_0x39c329(0xa5)],'cause':_0x245adb['cause']};return _0x245adb;});}catch{return String(_0x591b4f);}}export class Logger{[a229_0x18238a(0x98)];constructor(_0x1092f6){const _0x5230cc=a229_0x18238a;this[_0x5230cc(0x98)]=_0x1092f6;}static['of'](_0x5634b2){const _0x23505f=a229_0x18238a,_0x378541=typeof _0x5634b2===_0x23505f(0x99)?_0x5634b2:_0x5634b2[_0x23505f(0x94)];let _0x330fed=state['loggers'][_0x23505f(0x96)](_0x378541);return!_0x330fed&&(_0x330fed=new Logger(_0x378541),state[_0x23505f(0xa8)][_0x23505f(0xa0)](_0x378541,_0x330fed)),_0x330fed;}static async[a229_0x18238a(0x95)](_0x5b4daa={}){const _0x5040f0=a229_0x18238a;state['defaultLevel']=_0x5b4daa[_0x5040f0(0xa3)]??a229_0x252d31[_0x5040f0(0x7d)],state[_0x5040f0(0x87)]=_0x5b4daa['handlers']??[],state[_0x5040f0(0xa4)]=_0x5b4daa['formatter']??null,state[_0x5040f0(0x92)][_0x5040f0(0xa2)]();if(_0x5b4daa[_0x5040f0(0x92)])for(const [_0x441d7e,_0x2c31f5]of Object[_0x5040f0(0x85)](_0x5b4daa[_0x5040f0(0x92)])){state[_0x5040f0(0x92)][_0x5040f0(0xa0)](_0x441d7e,_0x2c31f5);}for(const _0x18c195 of state[_0x5040f0(0x87)]){_0x18c195[_0x5040f0(0x95)]&&await _0x18c195[_0x5040f0(0x95)]();}state[_0x5040f0(0x8d)]=!![];for(const _0x38aafd of state[_0x5040f0(0x7e)]){Logger[_0x5040f0(0xb3)](_0x38aafd);}state[_0x5040f0(0x7e)]=[];}static[a229_0x18238a(0xb4)](_0x36398a,_0x1a4e06){const _0x167ef4=a229_0x18238a;state[_0x167ef4(0x92)][_0x167ef4(0xa0)](_0x36398a,_0x1a4e06);}static[a229_0x18238a(0x86)](_0x202d78){const _0x50245d=a229_0x18238a;state[_0x50245d(0xa3)]=_0x202d78;}static[a229_0x18238a(0xaf)](_0x3a4d5f){const _0xced29e=a229_0x18238a;state[_0xced29e(0x87)][_0xced29e(0x9e)](_0x3a4d5f),state[_0xced29e(0x8d)]&&_0x3a4d5f['init']&&_0x3a4d5f['init']();}static[a229_0x18238a(0x97)](){const _0x5e1213=a229_0x18238a;state[_0x5e1213(0x87)]=[];}static async[a229_0x18238a(0x8e)](){const _0xb9c867=a229_0x18238a;for(const _0x5857e5 of state[_0xb9c867(0x87)]){_0x5857e5[_0xb9c867(0x84)]&&await _0x5857e5[_0xb9c867(0x84)]();}state[_0xb9c867(0x87)]=[],state[_0xb9c867(0x8d)]=![],state['loggers'][_0xb9c867(0xa2)](),state[_0xb9c867(0x7e)]=[];}static[a229_0x18238a(0x8a)](){const _0x4fbb7b=a229_0x18238a;state[_0x4fbb7b(0x8d)]=![],state[_0x4fbb7b(0xa3)]=a229_0x252d31[_0x4fbb7b(0x7d)],state[_0x4fbb7b(0x92)][_0x4fbb7b(0xa2)](),state[_0x4fbb7b(0x87)]=[],state[_0x4fbb7b(0xa4)]=null,state[_0x4fbb7b(0xa8)]['clear'](),state[_0x4fbb7b(0x7e)]=[];}static[a229_0x18238a(0x8f)](){const _0x353ef7=a229_0x18238a;return state[_0x353ef7(0x8d)];}static[a229_0x18238a(0xb2)](_0x436108){const _0x5caa1f=a229_0x18238a;if(state[_0x5caa1f(0x92)][_0x5caa1f(0x9f)](_0x436108))return state[_0x5caa1f(0x92)]['get'](_0x436108);const _0x562ee9=_0x436108[_0x5caa1f(0xab)]('.');for(let _0x18dfe5=_0x562ee9[_0x5caa1f(0x88)]-0x1;_0x18dfe5>0x0;_0x18dfe5--){const _0x4a38da=_0x562ee9['slice'](0x0,_0x18dfe5)[_0x5caa1f(0x83)]('.');if(state[_0x5caa1f(0x92)][_0x5caa1f(0x9f)](_0x4a38da))return state[_0x5caa1f(0x92)][_0x5caa1f(0x96)](_0x4a38da);}return state['defaultLevel'];}[a229_0x18238a(0x91)](_0x1e491c){const _0x21c25a=a229_0x18238a,_0x4fc3ad=Logger['getEffectiveLevel'](this[_0x21c25a(0x98)]);return _0x1e491c>=_0x4fc3ad;}static[a229_0x18238a(0xb3)](_0x44e405){const _0x3b4062=a229_0x18238a;for(const _0x209cb5 of state[_0x3b4062(0x87)]){_0x209cb5['handle'](_0x44e405);}}[a229_0x18238a(0x82)](_0xab2dfa,_0xba486b){const _0x2a6733=a229_0x18238a;if(!this[_0x2a6733(0x91)](_0xab2dfa))return;const _0x37f413=_0xba486b['map'](_0x14066d=>typeof _0x14066d===_0x2a6733(0x7f)?_0x14066d():_0x14066d),_0x149d91=_0x37f413[_0x2a6733(0xa6)](safeStringify)[_0x2a6733(0x83)]('\x20'),_0x3c7455={'timestamp':new Date(),'level':_0xab2dfa,'component':this[_0x2a6733(0x98)],'message':_0x149d91};if(!state[_0x2a6733(0x8d)]){state[_0x2a6733(0x7e)][_0x2a6733(0x88)]<MAX_PENDING_RECORDS&&state[_0x2a6733(0x7e)][_0x2a6733(0x9e)](_0x3c7455);return;}Logger[_0x2a6733(0xb3)](_0x3c7455);}[a229_0x18238a(0x7a)](..._0x3f5329){const _0x180523=a229_0x18238a;this[_0x180523(0x82)](a229_0x252d31[_0x180523(0x9b)],_0x3f5329);}[a229_0x18238a(0xa7)](..._0x2ccdcb){const _0x1a3ba8=a229_0x18238a;this[_0x1a3ba8(0x82)](a229_0x252d31[_0x1a3ba8(0x8c)],_0x2ccdcb);}[a229_0x18238a(0x93)](..._0x883665){const _0x393fea=a229_0x18238a;this[_0x393fea(0x82)](a229_0x252d31['INFO'],_0x883665);}['warn'](..._0x1e3b65){this['log'](a229_0x252d31['WARN'],_0x1e3b65);}[a229_0x18238a(0x81)](..._0xee88f0){const _0x3c39b8=a229_0x18238a;this['log'](a229_0x252d31[_0x3c39b8(0x8b)],_0xee88f0);}static[a229_0x18238a(0x89)](){return state['formatter'];}static[a229_0x18238a(0xac)](_0x5df1ae){const _0x5e7ffb=a229_0x18238a;if(state[_0x5e7ffb(0xa4)])return state['formatter'][_0x5e7ffb(0xac)](_0x5df1ae);return _0x5df1ae[_0x5e7ffb(0xa1)][_0x5e7ffb(0x7b)]()+'\x20['+logLevelToString(_0x5df1ae['level'])+_0x5e7ffb(0xb1)+_0x5df1ae[_0x5e7ffb(0x98)]+']\x20'+_0x5df1ae[_0x5e7ffb(0x7c)];}}
1
+ const a229_0x121db3=a229_0x3908;(function(_0x43e048,_0x10ecc5){const _0x12cdf5=a229_0x3908,_0x564003=_0x43e048();while(!![]){try{const _0x374903=parseInt(_0x12cdf5(0xf8))/0x1*(parseInt(_0x12cdf5(0xd5))/0x2)+parseInt(_0x12cdf5(0xd9))/0x3*(-parseInt(_0x12cdf5(0xeb))/0x4)+parseInt(_0x12cdf5(0xdc))/0x5*(parseInt(_0x12cdf5(0xdb))/0x6)+-parseInt(_0x12cdf5(0xf0))/0x7+-parseInt(_0x12cdf5(0xe3))/0x8*(-parseInt(_0x12cdf5(0xea))/0x9)+-parseInt(_0x12cdf5(0xe0))/0xa*(parseInt(_0x12cdf5(0xd0))/0xb)+parseInt(_0x12cdf5(0xe4))/0xc;if(_0x374903===_0x10ecc5)break;else _0x564003['push'](_0x564003['shift']());}catch(_0x2bdb70){_0x564003['push'](_0x564003['shift']());}}}(a229_0x2479,0x7652d));import{LogLevel as a229_0x580b05,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a229_0x580b05[a229_0x121db3(0xfb)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a229_0x3908(_0x11cb62,_0x153862){_0x11cb62=_0x11cb62-0xc0;const _0x2479fc=a229_0x2479();let _0x39083b=_0x2479fc[_0x11cb62];return _0x39083b;}function a229_0x2479(){const _0x46df3c=['toISOString','name','getFormatter','length','init','733311yuigZR','296NNoKdW','defaultLevel','setDefaultLevel','initialized','format','1825572AsoAvi','push','stringify','close','getEffectiveLevel','info','addHandler','message','1mjeNOR','string','DEBUG','INFO','reset','levelOverrides','ERROR',']\x20[','shouldLog','handlers','map','component','timestamp','join','get','log','pendingRecords','debug','level','TRACE','4987455Bgmoqe','clearHandlers','formatter','loggers','has','435572CrhOwO','setLogLevel','set','WARN','33525RMvIGg','clear','54VczLVo','455190zFTmPQ','shutdown','warn','slice','10lGiUdU','isInitialized','stack','16NVFMjm','9908616ffiWpF'];a229_0x2479=function(){return _0x46df3c;};return a229_0x2479();}function safeStringify(_0x170dab){const _0x5872d7=a229_0x121db3;if(typeof _0x170dab===_0x5872d7(0xf9))return _0x170dab;if(_0x170dab instanceof Error)return _0x170dab[_0x5872d7(0xe2)]||_0x170dab[_0x5872d7(0xe6)]+':\x20'+_0x170dab[_0x5872d7(0xf7)];try{return JSON[_0x5872d7(0xf2)](_0x170dab,(_0x276e8f,_0x28d4fe)=>{const _0x40b13b=_0x5872d7;if(_0x28d4fe instanceof Error)return{'name':_0x28d4fe[_0x40b13b(0xe6)],'message':_0x28d4fe[_0x40b13b(0xf7)],'stack':_0x28d4fe['stack'],'cause':_0x28d4fe['cause']};return _0x28d4fe;});}catch{return String(_0x170dab);}}export class Logger{[a229_0x121db3(0xc7)];constructor(_0x54f3df){this['component']=_0x54f3df;}static['of'](_0x6ee630){const _0x20f67c=a229_0x121db3,_0x203295=typeof _0x6ee630===_0x20f67c(0xf9)?_0x6ee630:_0x6ee630[_0x20f67c(0xe6)];let _0x3af99d=state[_0x20f67c(0xd3)][_0x20f67c(0xca)](_0x203295);return!_0x3af99d&&(_0x3af99d=new Logger(_0x203295),state['loggers'][_0x20f67c(0xd7)](_0x203295,_0x3af99d)),_0x3af99d;}static async['init'](_0x28f81b={}){const _0x51fdc2=a229_0x121db3;state[_0x51fdc2(0xec)]=_0x28f81b[_0x51fdc2(0xec)]??a229_0x580b05[_0x51fdc2(0xfb)],state['handlers']=_0x28f81b[_0x51fdc2(0xc5)]??[],state['formatter']=_0x28f81b[_0x51fdc2(0xd2)]??null,state[_0x51fdc2(0xc1)][_0x51fdc2(0xda)]();if(_0x28f81b[_0x51fdc2(0xc1)])for(const [_0x50c964,_0x317719]of Object['entries'](_0x28f81b[_0x51fdc2(0xc1)])){state[_0x51fdc2(0xc1)][_0x51fdc2(0xd7)](_0x50c964,_0x317719);}for(const _0x466f0c of state[_0x51fdc2(0xc5)]){_0x466f0c[_0x51fdc2(0xe9)]&&await _0x466f0c['init']();}state[_0x51fdc2(0xee)]=!![];for(const _0x5d466b of state[_0x51fdc2(0xcc)]){Logger['dispatch'](_0x5d466b);}state[_0x51fdc2(0xcc)]=[];}static[a229_0x121db3(0xd6)](_0x3cc57a,_0x29dae2){const _0x252775=a229_0x121db3;state[_0x252775(0xc1)][_0x252775(0xd7)](_0x3cc57a,_0x29dae2);}static[a229_0x121db3(0xed)](_0x6799c5){const _0x1f55d0=a229_0x121db3;state[_0x1f55d0(0xec)]=_0x6799c5;}static[a229_0x121db3(0xf6)](_0x2fba7b){const _0xd49a3c=a229_0x121db3;state[_0xd49a3c(0xc5)][_0xd49a3c(0xf1)](_0x2fba7b),state[_0xd49a3c(0xee)]&&_0x2fba7b[_0xd49a3c(0xe9)]&&_0x2fba7b['init']();}static[a229_0x121db3(0xd1)](){state['handlers']=[];}static async[a229_0x121db3(0xdd)](){const _0x757363=a229_0x121db3;for(const _0x3cedc0 of state[_0x757363(0xc5)]){_0x3cedc0[_0x757363(0xf3)]&&await _0x3cedc0['close']();}state[_0x757363(0xc5)]=[],state[_0x757363(0xee)]=![],state['loggers'][_0x757363(0xda)](),state['pendingRecords']=[];}static[a229_0x121db3(0xc0)](){const _0x556cf0=a229_0x121db3;state[_0x556cf0(0xee)]=![],state['defaultLevel']=a229_0x580b05[_0x556cf0(0xfb)],state[_0x556cf0(0xc1)][_0x556cf0(0xda)](),state[_0x556cf0(0xc5)]=[],state[_0x556cf0(0xd2)]=null,state[_0x556cf0(0xd3)][_0x556cf0(0xda)](),state[_0x556cf0(0xcc)]=[];}static[a229_0x121db3(0xe1)](){const _0x20172b=a229_0x121db3;return state[_0x20172b(0xee)];}static[a229_0x121db3(0xf4)](_0x4339b1){const _0x2c865b=a229_0x121db3;if(state[_0x2c865b(0xc1)][_0x2c865b(0xd4)](_0x4339b1))return state[_0x2c865b(0xc1)][_0x2c865b(0xca)](_0x4339b1);const _0x1a7829=_0x4339b1['split']('.');for(let _0xdd819c=_0x1a7829[_0x2c865b(0xe8)]-0x1;_0xdd819c>0x0;_0xdd819c--){const _0x1ae9ba=_0x1a7829[_0x2c865b(0xdf)](0x0,_0xdd819c)[_0x2c865b(0xc9)]('.');if(state[_0x2c865b(0xc1)][_0x2c865b(0xd4)](_0x1ae9ba))return state[_0x2c865b(0xc1)][_0x2c865b(0xca)](_0x1ae9ba);}return state['defaultLevel'];}[a229_0x121db3(0xc4)](_0xd50109){const _0x5a4b2f=a229_0x121db3,_0x40e080=Logger[_0x5a4b2f(0xf4)](this[_0x5a4b2f(0xc7)]);return _0xd50109>=_0x40e080;}static['dispatch'](_0x218859){const _0x4b3788=a229_0x121db3;for(const _0x58bfd5 of state[_0x4b3788(0xc5)]){_0x58bfd5['handle'](_0x218859);}}[a229_0x121db3(0xcb)](_0xb28d37,_0x265172){const _0x2720ff=a229_0x121db3;if(!this['shouldLog'](_0xb28d37))return;const _0x4c3934=_0x265172[_0x2720ff(0xc6)](_0x22b5cb=>typeof _0x22b5cb==='function'?_0x22b5cb():_0x22b5cb),_0x4d3d0d=_0x4c3934[_0x2720ff(0xc6)](safeStringify)[_0x2720ff(0xc9)]('\x20'),_0x5d8d09={'timestamp':new Date(),'level':_0xb28d37,'component':this[_0x2720ff(0xc7)],'message':_0x4d3d0d};if(!state['initialized']){state[_0x2720ff(0xcc)][_0x2720ff(0xe8)]<MAX_PENDING_RECORDS&&state[_0x2720ff(0xcc)][_0x2720ff(0xf1)](_0x5d8d09);return;}Logger['dispatch'](_0x5d8d09);}['trace'](..._0x29fd8f){const _0xc93edb=a229_0x121db3;this[_0xc93edb(0xcb)](a229_0x580b05[_0xc93edb(0xcf)],_0x29fd8f);}[a229_0x121db3(0xcd)](..._0x566a9c){const _0x175640=a229_0x121db3;this[_0x175640(0xcb)](a229_0x580b05[_0x175640(0xfa)],_0x566a9c);}[a229_0x121db3(0xf5)](..._0x4bbbec){const _0x595d5b=a229_0x121db3;this[_0x595d5b(0xcb)](a229_0x580b05['INFO'],_0x4bbbec);}[a229_0x121db3(0xde)](..._0x4d90d4){const _0x4d9fe9=a229_0x121db3;this[_0x4d9fe9(0xcb)](a229_0x580b05[_0x4d9fe9(0xd8)],_0x4d90d4);}['error'](..._0x5dbd8b){const _0x595461=a229_0x121db3;this[_0x595461(0xcb)](a229_0x580b05[_0x595461(0xc2)],_0x5dbd8b);}static[a229_0x121db3(0xe7)](){return state['formatter'];}static[a229_0x121db3(0xef)](_0x5563e4){const _0x3ce4c2=a229_0x121db3;if(state[_0x3ce4c2(0xd2)])return state['formatter'][_0x3ce4c2(0xef)](_0x5563e4);return _0x5563e4[_0x3ce4c2(0xc8)][_0x3ce4c2(0xe5)]()+'\x20['+logLevelToString(_0x5563e4[_0x3ce4c2(0xce)])+_0x3ce4c2(0xc3)+_0x5563e4[_0x3ce4c2(0xc7)]+']\x20'+_0x5563e4['message'];}}
@@ -1 +1 @@
1
- (function(_0x38a827,_0x85d472){const _0x5dc1d1=a230_0x2513,_0x34d7cf=_0x38a827();while(!![]){try{const _0x43bc6a=-parseInt(_0x5dc1d1(0x8e))/0x1*(parseInt(_0x5dc1d1(0x80))/0x2)+parseInt(_0x5dc1d1(0x7c))/0x3*(-parseInt(_0x5dc1d1(0x7f))/0x4)+-parseInt(_0x5dc1d1(0x8a))/0x5+-parseInt(_0x5dc1d1(0x84))/0x6*(parseInt(_0x5dc1d1(0x77))/0x7)+parseInt(_0x5dc1d1(0x90))/0x8*(parseInt(_0x5dc1d1(0x91))/0x9)+parseInt(_0x5dc1d1(0x8f))/0xa+-parseInt(_0x5dc1d1(0x8d))/0xb*(-parseInt(_0x5dc1d1(0x88))/0xc);if(_0x43bc6a===_0x85d472)break;else _0x34d7cf['push'](_0x34d7cf['shift']());}catch(_0x8ec104){_0x34d7cf['push'](_0x34d7cf['shift']());}}}(a230_0x46fb,0xbd13f));export var LogLevel;(function(_0x404d25){const _0x5a61bb=a230_0x2513;_0x404d25[_0x404d25[_0x5a61bb(0x7d)]=-0x2]=_0x5a61bb(0x7d),_0x404d25[_0x404d25[_0x5a61bb(0x82)]=-0x1]='DEBUG',_0x404d25[_0x404d25[_0x5a61bb(0x7a)]=0x0]='INFO',_0x404d25[_0x404d25[_0x5a61bb(0x8b)]=0x1]=_0x5a61bb(0x8b),_0x404d25[_0x404d25[_0x5a61bb(0x86)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x5874aa){const _0x5eab66=a230_0x2513;switch(_0x5874aa[_0x5eab66(0x8c)]()){case'TRACE':return LogLevel[_0x5eab66(0x7d)];case _0x5eab66(0x82):return LogLevel[_0x5eab66(0x82)];case _0x5eab66(0x7a):return LogLevel[_0x5eab66(0x7a)];case'WARN':case'WARNING':return LogLevel[_0x5eab66(0x8b)];case _0x5eab66(0x86):return LogLevel[_0x5eab66(0x86)];default:return LogLevel[_0x5eab66(0x7a)];}}export function logLevelToString(_0xa663f6){const _0x4b0ee5=a230_0x2513;switch(_0xa663f6){case LogLevel[_0x4b0ee5(0x7d)]:return _0x4b0ee5(0x78);case LogLevel[_0x4b0ee5(0x82)]:return'debug';case LogLevel[_0x4b0ee5(0x7a)]:return'info';case LogLevel[_0x4b0ee5(0x8b)]:return _0x4b0ee5(0x7e);case LogLevel['ERROR']:return'error';default:return _0x4b0ee5(0x89);}}function a230_0x2513(_0x346711,_0x26e237){_0x346711=_0x346711-0x77;const _0x46fbaa=a230_0x46fb();let _0x2513d1=_0x46fbaa[_0x346711];return _0x2513d1;}function a230_0x46fb(){const _0x101b26=['getDate','6HkauOG','toString','ERROR','padStart','24uPJhdS','info','2412155JxSOUQ','WARN','toUpperCase','20584245XsmoGZ','63oajGEI','8430410ewSydB','16EZOQxh','1645317FGfEgU','8838823XlbLCS','trace','getHours','INFO','getFullYear','17667GxeWxO','TRACE','warn','756nTIcDB','41862iudSaS','abs','DEBUG'];a230_0x46fb=function(){return _0x101b26;};return a230_0x46fb();}export function formatTimestamp(_0x3afa3a){const _0x31ced4=a230_0x2513,_0x4e676d=_0x3afa3a[_0x31ced4(0x7b)](),_0x2ec0f7=(_0x3afa3a['getMonth']()+0x1)[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x2,'0'),_0x251fa3=_0x3afa3a[_0x31ced4(0x83)]()['toString']()[_0x31ced4(0x87)](0x2,'0'),_0x250421=_0x3afa3a[_0x31ced4(0x79)]()[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x2,'0'),_0x587a71=_0x3afa3a['getMinutes']()[_0x31ced4(0x85)]()['padStart'](0x2,'0'),_0x44cc14=_0x3afa3a['getSeconds']()[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x2,'0'),_0x43fa1a=_0x3afa3a['getMilliseconds']()[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x3,'0'),_0x35ff6a=-_0x3afa3a['getTimezoneOffset'](),_0x5431d5=Math['floor'](Math[_0x31ced4(0x81)](_0x35ff6a)/0x3c),_0xb647d1=Math['abs'](_0x35ff6a)%0x3c,_0x3cbc56=_0x35ff6a>=0x0?'+':'-',_0x2f8cfd=''+_0x3cbc56+_0x5431d5['toString']()[_0x31ced4(0x87)](0x2,'0')+_0xb647d1[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x2,'0');return _0x4e676d+'-'+_0x2ec0f7+'-'+_0x251fa3+'\x20'+_0x250421+':'+_0x587a71+':'+_0x44cc14+'.'+_0x43fa1a+_0x2f8cfd;}
1
+ (function(_0x36144d,_0x111211){const _0x2404ae=a230_0x38e0,_0x4aa680=_0x36144d();while(!![]){try{const _0x5e1f31=-parseInt(_0x2404ae(0x186))/0x1*(-parseInt(_0x2404ae(0x188))/0x2)+-parseInt(_0x2404ae(0x1a3))/0x3+-parseInt(_0x2404ae(0x190))/0x4+parseInt(_0x2404ae(0x195))/0x5+parseInt(_0x2404ae(0x192))/0x6*(-parseInt(_0x2404ae(0x189))/0x7)+parseInt(_0x2404ae(0x18e))/0x8+parseInt(_0x2404ae(0x19d))/0x9;if(_0x5e1f31===_0x111211)break;else _0x4aa680['push'](_0x4aa680['shift']());}catch(_0x159fe1){_0x4aa680['push'](_0x4aa680['shift']());}}}(a230_0x27c5,0x82587));export var LogLevel;(function(_0x28e072){const _0x4b4aa3=a230_0x38e0;_0x28e072[_0x28e072['TRACE']=-0x2]='TRACE',_0x28e072[_0x28e072['DEBUG']=-0x1]='DEBUG',_0x28e072[_0x28e072[_0x4b4aa3(0x19a)]=0x0]='INFO',_0x28e072[_0x28e072[_0x4b4aa3(0x19f)]=0x1]=_0x4b4aa3(0x19f),_0x28e072[_0x28e072[_0x4b4aa3(0x194)]=0x2]=_0x4b4aa3(0x194);}(LogLevel||(LogLevel={})));function a230_0x38e0(_0x2ddc20,_0x4736ba){_0x2ddc20=_0x2ddc20-0x186;const _0x27c5ad=a230_0x27c5();let _0x38e0ad=_0x27c5ad[_0x2ddc20];return _0x38e0ad;}function a230_0x27c5(){const _0x4ec84b=['DEBUG','WARNING','2649354yTqReg','padStart','197QKrrHR','getSeconds','22xHFHEn','259hbiotC','debug','getMinutes','error','getFullYear','200456TIdzCU','toString','4083348EhjUJG','getHours','152814dyfKqL','info','ERROR','294980IlSJLg','getMilliseconds','getMonth','trace','TRACE','INFO','warn','getDate','29645847RETyWz','getTimezoneOffset','WARN','abs'];a230_0x27c5=function(){return _0x4ec84b;};return a230_0x27c5();}export function parseLogLevel(_0x2a0d6e){const _0x410143=a230_0x38e0;switch(_0x2a0d6e['toUpperCase']()){case _0x410143(0x199):return LogLevel['TRACE'];case'DEBUG':return LogLevel['DEBUG'];case'INFO':return LogLevel[_0x410143(0x19a)];case _0x410143(0x19f):case _0x410143(0x1a2):return LogLevel[_0x410143(0x19f)];case _0x410143(0x194):return LogLevel[_0x410143(0x194)];default:return LogLevel[_0x410143(0x19a)];}}export function logLevelToString(_0x37cdf9){const _0x1dccc5=a230_0x38e0;switch(_0x37cdf9){case LogLevel['TRACE']:return _0x1dccc5(0x198);case LogLevel[_0x1dccc5(0x1a1)]:return _0x1dccc5(0x18a);case LogLevel[_0x1dccc5(0x19a)]:return _0x1dccc5(0x193);case LogLevel[_0x1dccc5(0x19f)]:return _0x1dccc5(0x19b);case LogLevel[_0x1dccc5(0x194)]:return _0x1dccc5(0x18c);default:return'info';}}export function formatTimestamp(_0x446715){const _0x413e2f=a230_0x38e0,_0x25601b=_0x446715[_0x413e2f(0x18d)](),_0x5a3e96=(_0x446715[_0x413e2f(0x197)]()+0x1)['toString']()['padStart'](0x2,'0'),_0x1c7f1c=_0x446715[_0x413e2f(0x19c)]()[_0x413e2f(0x18f)]()[_0x413e2f(0x1a4)](0x2,'0'),_0x489635=_0x446715[_0x413e2f(0x191)]()[_0x413e2f(0x18f)]()[_0x413e2f(0x1a4)](0x2,'0'),_0x2a3e89=_0x446715[_0x413e2f(0x18b)]()['toString']()[_0x413e2f(0x1a4)](0x2,'0'),_0x18eaa9=_0x446715[_0x413e2f(0x187)]()['toString']()[_0x413e2f(0x1a4)](0x2,'0'),_0x28da30=_0x446715[_0x413e2f(0x196)]()['toString']()[_0x413e2f(0x1a4)](0x3,'0'),_0x3a8900=-_0x446715[_0x413e2f(0x19e)](),_0x1ca589=Math['floor'](Math[_0x413e2f(0x1a0)](_0x3a8900)/0x3c),_0x2c8f44=Math['abs'](_0x3a8900)%0x3c,_0xf8aeca=_0x3a8900>=0x0?'+':'-',_0x59e6dd=''+_0xf8aeca+_0x1ca589[_0x413e2f(0x18f)]()[_0x413e2f(0x1a4)](0x2,'0')+_0x2c8f44[_0x413e2f(0x18f)]()[_0x413e2f(0x1a4)](0x2,'0');return _0x25601b+'-'+_0x5a3e96+'-'+_0x1c7f1c+'\x20'+_0x489635+':'+_0x2a3e89+':'+_0x18eaa9+'.'+_0x28da30+_0x59e6dd;}
@@ -1 +1 @@
1
- (function(_0x255073,_0x2a71f0){const _0x4844f8=a231_0x5149,_0x5d6bc9=_0x255073();while(!![]){try{const _0x6ac513=-parseInt(_0x4844f8(0x120))/0x1*(parseInt(_0x4844f8(0x11c))/0x2)+parseInt(_0x4844f8(0x117))/0x3*(-parseInt(_0x4844f8(0x121))/0x4)+parseInt(_0x4844f8(0x118))/0x5*(parseInt(_0x4844f8(0x11f))/0x6)+parseInt(_0x4844f8(0x11e))/0x7*(parseInt(_0x4844f8(0x11a))/0x8)+-parseInt(_0x4844f8(0x116))/0x9+-parseInt(_0x4844f8(0x123))/0xa*(-parseInt(_0x4844f8(0x11b))/0xb)+parseInt(_0x4844f8(0x122))/0xc;if(_0x6ac513===_0x2a71f0)break;else _0x5d6bc9['push'](_0x5d6bc9['shift']());}catch(_0x54c8df){_0x5d6bc9['push'](_0x5d6bc9['shift']());}}}(a231_0x2a5c,0x37749));function a231_0x2a5c(){const _0x5f110c=['30yqDdrd','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','3359457qqxvCi','3FmCvvE','114025TdlGyL','number','136KSODpL','1065823uEEWZI','36nvTSPP','Invalid\x20timeout\x20value:\x20','180859WtCYNU','6OSZoFK','24294kDLJVW','1340432rwgYvT','7441260MJTlwh'];a231_0x2a5c=function(){return _0x5f110c;};return a231_0x2a5c();}export function validateLimitOption(_0x10c23f){const _0x531ce3=a231_0x5149;if(!Number['isInteger'](_0x10c23f))return{'isValid':![],'error':_0x531ce3(0x125)+_0x10c23f+_0x531ce3(0x115)};if(_0x10c23f<=0x0)return{'isValid':![],'error':_0x531ce3(0x125)+_0x10c23f+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x10c23f};}function a231_0x5149(_0x13bddc,_0x42e224){_0x13bddc=_0x13bddc-0x115;const _0x2a5c90=a231_0x2a5c();let _0x51494b=_0x2a5c90[_0x13bddc];return _0x51494b;}export function validateTimeoutOption(_0x3a6fa0,_0x8327f2=0x1e){const _0x31f229=a231_0x5149;if(_0x3a6fa0===undefined)return{'isValid':!![],'value':_0x8327f2};const _0x4e3a65=typeof _0x3a6fa0===_0x31f229(0x119)?_0x3a6fa0:parseFloat(_0x3a6fa0);if(isNaN(_0x4e3a65))return{'isValid':![],'error':_0x31f229(0x11d)+_0x3a6fa0+'.\x20Must\x20be\x20a\x20number.'};if(_0x4e3a65<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x4e3a65+_0x31f229(0x124)};return{'isValid':!![],'value':_0x4e3a65};}
1
+ function a231_0x1d17(){const _0x46ae4f=['523450WZSVuu','2475116AnQljL','14470722QpcDyJ','.\x20Must\x20be\x20a\x20number.','.\x20Must\x20be\x20a\x20positive\x20number.','2800410AnwTmt','number','isInteger','2679669vAXdSZ','5215704VlGgjR','Invalid\x20limit\x20value:\x20','Invalid\x20timeout\x20value:\x20','1225878WGCzoR','.\x20Must\x20be\x20an\x20integer.'];a231_0x1d17=function(){return _0x46ae4f;};return a231_0x1d17();}(function(_0x91c506,_0x416f9e){const _0x76e55c=a231_0x4284,_0x2d33fb=_0x91c506();while(!![]){try{const _0x4b0e69=-parseInt(_0x76e55c(0x147))/0x1+-parseInt(_0x76e55c(0x13b))/0x2+parseInt(_0x76e55c(0x143))/0x3+parseInt(_0x76e55c(0x13c))/0x4+-parseInt(_0x76e55c(0x140))/0x5+-parseInt(_0x76e55c(0x144))/0x6+parseInt(_0x76e55c(0x13d))/0x7;if(_0x4b0e69===_0x416f9e)break;else _0x2d33fb['push'](_0x2d33fb['shift']());}catch(_0x4d7600){_0x2d33fb['push'](_0x2d33fb['shift']());}}}(a231_0x1d17,0xa1b07));function a231_0x4284(_0xc92151,_0x56cb13){_0xc92151=_0xc92151-0x13a;const _0x1d178c=a231_0x1d17();let _0x4284de=_0x1d178c[_0xc92151];return _0x4284de;}export function validateLimitOption(_0x301986){const _0x5bf035=a231_0x4284;if(!Number[_0x5bf035(0x142)](_0x301986))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x301986+_0x5bf035(0x13a)};if(_0x301986<=0x0)return{'isValid':![],'error':_0x5bf035(0x145)+_0x301986+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x301986};}export function validateTimeoutOption(_0xb62e29,_0xb96b69=0x1e){const _0x435e06=a231_0x4284;if(_0xb62e29===undefined)return{'isValid':!![],'value':_0xb96b69};const _0x401602=typeof _0xb62e29===_0x435e06(0x141)?_0xb62e29:parseFloat(_0xb62e29);if(isNaN(_0x401602))return{'isValid':![],'error':_0x435e06(0x146)+_0xb62e29+_0x435e06(0x13e)};if(_0x401602<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x401602+_0x435e06(0x13f)};return{'isValid':!![],'value':_0x401602};}
@@ -1 +1 @@
1
- const a232_0x281077=a232_0x1831;(function(_0x50286c,_0x1a501a){const _0x5b83d9=a232_0x1831,_0x566109=_0x50286c();while(!![]){try{const _0x5d605e=parseInt(_0x5b83d9(0x173))/0x1+parseInt(_0x5b83d9(0x17f))/0x2*(-parseInt(_0x5b83d9(0x171))/0x3)+parseInt(_0x5b83d9(0x150))/0x4*(-parseInt(_0x5b83d9(0x164))/0x5)+parseInt(_0x5b83d9(0x175))/0x6*(parseInt(_0x5b83d9(0x14c))/0x7)+-parseInt(_0x5b83d9(0x176))/0x8*(-parseInt(_0x5b83d9(0x14f))/0x9)+-parseInt(_0x5b83d9(0x170))/0xa*(parseInt(_0x5b83d9(0x15b))/0xb)+-parseInt(_0x5b83d9(0x15a))/0xc;if(_0x5d605e===_0x1a501a)break;else _0x566109['push'](_0x566109['shift']());}catch(_0x4a4802){_0x566109['push'](_0x566109['shift']());}}}(a232_0xd925,0x4fc4e));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a232_0x281077(0x16e),a232_0x281077(0x16a),'sh','fish',a232_0x281077(0x161),'tcsh','csh',a232_0x281077(0x163),a232_0x281077(0x166),a232_0x281077(0x158),'nu',a232_0x281077(0x15e),a232_0x281077(0x17e),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a232_0x281077(0x16b),a232_0x281077(0x15c),'cursor',a232_0x281077(0x159),a232_0x281077(0x178)]);function getProcessInfoWindows(_0x50924a){const _0x4e1082=a232_0x281077;try{if(!Number[_0x4e1082(0x182)](_0x50924a)||_0x50924a<=0x0)return null;const _0x2440ae=_0x4e1082(0x17d)+_0x50924a+_0x4e1082(0x14d),_0x1660ef=execSync(_0x4e1082(0x154)+_0x2440ae+'\x22',{'encoding':_0x4e1082(0x174),'windowsHide':!![],'stdio':[_0x4e1082(0x14b),'pipe',_0x4e1082(0x14b)]})[_0x4e1082(0x152)]();if(!_0x1660ef)return null;const [_0x44d69c,..._0x319b15]=_0x1660ef[_0x4e1082(0x16c)](','),_0x212003=parseInt(_0x44d69c,0xa),_0x2509a3=_0x319b15['join'](',')[_0x4e1082(0x152)]();if(isNaN(_0x212003)||!_0x2509a3)return null;return{'pid':_0x50924a,'ppid':_0x212003,'comm':_0x2509a3['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0xe5a8b1){const _0x4f1e9f=a232_0x281077;try{const _0x4a6df9=0x400000;if(!Number[_0x4f1e9f(0x182)](_0xe5a8b1)||_0xe5a8b1<=0x0||_0xe5a8b1>_0x4a6df9)return null;const _0x54703d=execSync('ps\x20-p\x20'+_0xe5a8b1+_0x4f1e9f(0x17b),{'encoding':_0x4f1e9f(0x174),'stdio':_0x4f1e9f(0x14b)})[_0x4f1e9f(0x152)](),[_0x5ee313,..._0x1f1759]=_0x54703d[_0x4f1e9f(0x16c)](/\s+/),_0x443217=parseInt(_0x5ee313,0xa),_0xa4b26=_0x1f1759[_0x4f1e9f(0x15d)]('\x20');if(isNaN(_0x443217))return null;return{'pid':_0xe5a8b1,'ppid':_0x443217,'comm':_0xa4b26};}catch{return null;}}function getProcessInfo(_0x3e445c){const _0x447ca1=a232_0x281077;if(process[_0x447ca1(0x180)]===_0x447ca1(0x177))return getProcessInfoWindows(_0x3e445c);return getProcessInfoPosix(_0x3e445c);}function getBasename(_0x1d3107){const _0x57c203=a232_0x281077;return _0x1d3107['replace'](/^-/,'')[_0x57c203(0x16c)]('/')[_0x57c203(0x181)]()?.[_0x57c203(0x16d)]()||'';}function isShell(_0x263d30){const _0x39b94d=a232_0x281077;return SHELL_NAMES[_0x39b94d(0x168)](getBasename(_0x263d30));}function isEphemeralShellSpawner(_0x429c9f){const _0x100ad3=a232_0x281077;return EPHEMERAL_SHELL_SPAWNERS[_0x100ad3(0x168)](getBasename(_0x429c9f));}let cachedShellPID;function findShellPID(){const _0x68ab79=a232_0x281077;if(process[_0x68ab79(0x155)]===undefined)return process[_0x68ab79(0x172)];let _0x43e4bb=process[_0x68ab79(0x155)];const _0x492243=0xa;let _0x201c0d=0x0;while(_0x201c0d<_0x492243){const _0x293e8a=getProcessInfo(_0x43e4bb);if(!_0x293e8a)break;if(isShell(_0x293e8a[_0x68ab79(0x179)])){const _0x214354=getProcessInfo(_0x293e8a[_0x68ab79(0x155)]);if(_0x214354&&isEphemeralShellSpawner(_0x214354[_0x68ab79(0x179)])){_0x43e4bb=_0x293e8a[_0x68ab79(0x155)],_0x201c0d++;continue;}return _0x293e8a['pid'];}if(_0x293e8a[_0x68ab79(0x155)]===0x0||_0x293e8a[_0x68ab79(0x155)]===0x1){if(isShell(_0x293e8a[_0x68ab79(0x179)]))return _0x293e8a['pid'];break;}_0x43e4bb=_0x293e8a[_0x68ab79(0x155)],_0x201c0d++;}return process[_0x68ab79(0x155)]!==undefined?process[_0x68ab79(0x155)]:process[_0x68ab79(0x172)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x2faf2a){if(!Number['isInteger'](_0x2faf2a)||_0x2faf2a<=0x0)return![];try{return process['kill'](_0x2faf2a,0x0),!![];}catch{return![];}}export function openBrowser(_0x55e9fe){const _0x13c9a4=a232_0x281077;let _0x4b0441;try{_0x4b0441=new URL(_0x55e9fe);}catch{throw new Error(_0x13c9a4(0x153)+_0x55e9fe);}if(_0x4b0441[_0x13c9a4(0x167)]!=='http:'&&_0x4b0441[_0x13c9a4(0x167)]!==_0x13c9a4(0x169))throw new Error(_0x13c9a4(0x160)+_0x4b0441[_0x13c9a4(0x167)]);const _0x105399=_0x4b0441[_0x13c9a4(0x151)],_0x29287c=process['platform'];if(_0x29287c==='win32')spawn('cmd.exe',['/c',_0x13c9a4(0x16f),'',_0x105399],{'detached':!![],'stdio':_0x13c9a4(0x183)})[_0x13c9a4(0x157)]();else{const _0x4f29ba=_0x29287c===_0x13c9a4(0x162)?_0x13c9a4(0x15f):'xdg-open';spawn(_0x4f29ba,[_0x105399],{'detached':!![],'stdio':_0x13c9a4(0x183)})['unref']();}}export function isWindows(){const _0x35a763=a232_0x281077;return process['platform']===_0x35a763(0x177);}export function getCrossSpawnOptions(_0x28a689){return{..._0x28a689??{},'shell':isWindows()};}function a232_0x1831(_0x50b7df,_0xf859cf){_0x50b7df=_0x50b7df-0x14b;const _0xd925e8=a232_0xd925();let _0x1831e3=_0xd925e8[_0x50b7df];return _0x1831e3;}export function escapeWindowsArg(_0x489e40){const _0x5b260d=a232_0x281077;if(!/[ \t"&|<>^%!`\r\n]/[_0x5b260d(0x14e)](_0x489e40))return _0x489e40;const _0x50c876=_0x489e40[_0x5b260d(0x17c)](/"/g,'\x22\x22');return'\x22'+_0x50c876+'\x22';}export function crossSpawn(_0x1efb99,_0x2b5ef7,_0x4895c7){const _0x21deba=a232_0x281077;if(isWindows()){const _0x911a31=escapeWindowsArg(_0x1efb99),_0x3449c9=_0x2b5ef7[_0x21deba(0x156)](escapeWindowsArg),_0x1cd402=[_0x911a31,..._0x3449c9]['join']('\x20');return spawn(_0x1cd402,[],{..._0x4895c7,'shell':!![]});}return spawn(_0x1efb99,_0x2b5ef7,{..._0x4895c7,'shell':![]});}export function gracefulExit(_0x18175b=0x0){const _0x23e1fe=a232_0x281077;isWindows()?setTimeout(()=>process[_0x23e1fe(0x184)](_0x18175b),0x32):process['exit'](_0x18175b);}function a232_0xd925(){const _0x373d4c=['6605748thCvmc','15653uLLhnu','code','join','ion','open','Unsupported\x20protocol:\x20','ksh','darwin','dash','298025FeXbEE','which','pwsh','protocol','has','https:','zsh','claude','split','toLowerCase','bash','start','280suXYFZ','3feyeFT','pid','454814hAxcKw','utf-8','6bIVHio','56ytpXmv','win32','treasure\x20studio','comm','where.exe','\x20-o\x20ppid=,comm=','replace','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','elvish','490804cpAnsq','platform','pop','isInteger','ignore','exit','pipe','3604398jHnqQN','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','test','401067jxotEZ','8DhhweW','href','trim','Invalid\x20URL:\x20','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','ppid','map','unref','powershell','electron'];a232_0xd925=function(){return _0x373d4c;};return a232_0xd925();}export function findExecutable(_0x34ed65,_0x465ec6=0x1388){return new Promise(_0x3b5f0d=>{const _0x2f4894=a232_0x1831,_0x13a1ea=isWindows()?_0x2f4894(0x17a):_0x2f4894(0x165);execFile(_0x13a1ea,[_0x34ed65],{'timeout':_0x465ec6,'windowsHide':!![]},(_0x581d78,_0x1c75a5)=>{const _0x5eb86d=_0x2f4894;if(_0x581d78||!_0x1c75a5[_0x5eb86d(0x152)]())_0x3b5f0d(null);else{const _0x252abd=_0x1c75a5[_0x5eb86d(0x152)]()[_0x5eb86d(0x16c)](/\r?\n/)[0x0];_0x3b5f0d(_0x252abd);}});});}
1
+ const a232_0x3bce26=a232_0x3e66;(function(_0x3f33d1,_0x3502cf){const _0x49ae6b=a232_0x3e66,_0x536d4d=_0x3f33d1();while(!![]){try{const _0x3cf1e9=parseInt(_0x49ae6b(0x155))/0x1*(-parseInt(_0x49ae6b(0x138))/0x2)+-parseInt(_0x49ae6b(0x144))/0x3*(-parseInt(_0x49ae6b(0x161))/0x4)+parseInt(_0x49ae6b(0x15c))/0x5*(-parseInt(_0x49ae6b(0x159))/0x6)+parseInt(_0x49ae6b(0x140))/0x7+parseInt(_0x49ae6b(0x160))/0x8+-parseInt(_0x49ae6b(0x157))/0x9*(-parseInt(_0x49ae6b(0x153))/0xa)+-parseInt(_0x49ae6b(0x164))/0xb;if(_0x3cf1e9===_0x3502cf)break;else _0x536d4d['push'](_0x536d4d['shift']());}catch(_0xc955be){_0x536d4d['push'](_0x536d4d['shift']());}}}(a232_0x497e,0x4734c));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a232_0x3bce26(0x14b),a232_0x3bce26(0x150),'sh','fish',a232_0x3bce26(0x141),a232_0x3bce26(0x13e),a232_0x3bce26(0x137),a232_0x3bce26(0x142),a232_0x3bce26(0x14f),a232_0x3bce26(0x132),'nu',a232_0x3bce26(0x13f),a232_0x3bce26(0x13c),a232_0x3bce26(0x148)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a232_0x3bce26(0x13b),a232_0x3bce26(0x14a),a232_0x3bce26(0x165),'electron',a232_0x3bce26(0x134)]);function getProcessInfoWindows(_0x3b4a03){const _0xdb7688=a232_0x3bce26;try{if(!Number[_0xdb7688(0x147)](_0x3b4a03)||_0x3b4a03<=0x0)return null;const _0x525ae9=_0xdb7688(0x143)+_0x3b4a03+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0xef16c2=execSync(_0xdb7688(0x14e)+_0x525ae9+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0xdb7688(0x13d),'pipe',_0xdb7688(0x13d)]})[_0xdb7688(0x15b)]();if(!_0xef16c2)return null;const [_0x45d0de,..._0xa4b4ca]=_0xef16c2[_0xdb7688(0x133)](','),_0x44fccc=parseInt(_0x45d0de,0xa),_0x185ae9=_0xa4b4ca[_0xdb7688(0x13a)](',')[_0xdb7688(0x15b)]();if(isNaN(_0x44fccc)||!_0x185ae9)return null;return{'pid':_0x3b4a03,'ppid':_0x44fccc,'comm':_0x185ae9[_0xdb7688(0x154)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x5ac438){const _0x223937=a232_0x3bce26;try{const _0x252c80=0x400000;if(!Number['isInteger'](_0x5ac438)||_0x5ac438<=0x0||_0x5ac438>_0x252c80)return null;const _0x198034=execSync(_0x223937(0x15e)+_0x5ac438+'\x20-o\x20ppid=,comm=',{'encoding':'utf-8','stdio':_0x223937(0x13d)})[_0x223937(0x15b)](),[_0x22fb1d,..._0x4f4b34]=_0x198034['split'](/\s+/),_0x3bbb05=parseInt(_0x22fb1d,0xa),_0x562958=_0x4f4b34[_0x223937(0x13a)]('\x20');if(isNaN(_0x3bbb05))return null;return{'pid':_0x5ac438,'ppid':_0x3bbb05,'comm':_0x562958};}catch{return null;}}function getProcessInfo(_0x3d1b32){const _0x347c3b=a232_0x3bce26;if(process[_0x347c3b(0x158)]===_0x347c3b(0x146))return getProcessInfoWindows(_0x3d1b32);return getProcessInfoPosix(_0x3d1b32);}function getBasename(_0xc35473){const _0x4d9ae0=a232_0x3bce26;return _0xc35473[_0x4d9ae0(0x154)](/^-/,'')[_0x4d9ae0(0x133)]('/')['pop']()?.[_0x4d9ae0(0x136)]()||'';}function isShell(_0x1ed116){return SHELL_NAMES['has'](getBasename(_0x1ed116));}function isEphemeralShellSpawner(_0x4640b8){const _0x56768b=a232_0x3bce26;return EPHEMERAL_SHELL_SPAWNERS[_0x56768b(0x145)](getBasename(_0x4640b8));}let cachedShellPID;function findShellPID(){const _0x3ecd00=a232_0x3bce26;if(process[_0x3ecd00(0x15a)]===undefined)return process['pid'];let _0x266da2=process['ppid'];const _0x1ddf5f=0xa;let _0x118322=0x0;while(_0x118322<_0x1ddf5f){const _0x59fafd=getProcessInfo(_0x266da2);if(!_0x59fafd)break;if(isShell(_0x59fafd[_0x3ecd00(0x162)])){const _0x26958b=getProcessInfo(_0x59fafd[_0x3ecd00(0x15a)]);if(_0x26958b&&isEphemeralShellSpawner(_0x26958b[_0x3ecd00(0x162)])){_0x266da2=_0x59fafd[_0x3ecd00(0x15a)],_0x118322++;continue;}return _0x59fafd['pid'];}if(_0x59fafd[_0x3ecd00(0x15a)]===0x0||_0x59fafd[_0x3ecd00(0x15a)]===0x1){if(isShell(_0x59fafd[_0x3ecd00(0x162)]))return _0x59fafd['pid'];break;}_0x266da2=_0x59fafd[_0x3ecd00(0x15a)],_0x118322++;}return process[_0x3ecd00(0x15a)]!==undefined?process['ppid']:process['pid'];}function a232_0x497e(){const _0x1b849b=['4646968ptDBrl','8dQdwCh','comm','protocol','14274315SAFznf','cursor','which','powershell','split','treasure\x20studio','unref','toLowerCase','csh','2YrqCBO','Invalid\x20URL:\x20','join','claude','elvish','pipe','tcsh','ion','2997638blNJJM','ksh','dash','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','535917SoKLqi','has','win32','isInteger','xonsh','where.exe','code','bash','start','ignore','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','pwsh','zsh','exit','http:','2443130QSkLRu','replace','208696UEkJLs','https:','18XbrDWF','platform','56988cHWGGk','ppid','trim','30raBvst','open','ps\x20-p\x20','kill'];a232_0x497e=function(){return _0x1b849b;};return a232_0x497e();}function a232_0x3e66(_0x2331df,_0x28a082){_0x2331df=_0x2331df-0x131;const _0x497e83=a232_0x497e();let _0x3e66fe=_0x497e83[_0x2331df];return _0x3e66fe;}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0xa2d1c3){const _0x45cbe3=a232_0x3bce26;if(!Number['isInteger'](_0xa2d1c3)||_0xa2d1c3<=0x0)return![];try{return process[_0x45cbe3(0x15f)](_0xa2d1c3,0x0),!![];}catch{return![];}}export function openBrowser(_0x12833b){const _0x24dba1=a232_0x3bce26;let _0x1e21bc;try{_0x1e21bc=new URL(_0x12833b);}catch{throw new Error(_0x24dba1(0x139)+_0x12833b);}if(_0x1e21bc[_0x24dba1(0x163)]!==_0x24dba1(0x152)&&_0x1e21bc[_0x24dba1(0x163)]!==_0x24dba1(0x156))throw new Error('Unsupported\x20protocol:\x20'+_0x1e21bc[_0x24dba1(0x163)]);const _0x19aa77=_0x1e21bc['href'],_0x4fe5b8=process[_0x24dba1(0x158)];if(_0x4fe5b8===_0x24dba1(0x146))spawn('cmd.exe',['/c',_0x24dba1(0x14c),'',_0x19aa77],{'detached':!![],'stdio':'ignore'})[_0x24dba1(0x135)]();else{const _0x1978d9=_0x4fe5b8==='darwin'?_0x24dba1(0x15d):'xdg-open';spawn(_0x1978d9,[_0x19aa77],{'detached':!![],'stdio':_0x24dba1(0x14d)})[_0x24dba1(0x135)]();}}export function isWindows(){const _0x12d240=a232_0x3bce26;return process[_0x12d240(0x158)]==='win32';}export function getCrossSpawnOptions(_0x4d386d){return{..._0x4d386d??{},'shell':isWindows()};}export function escapeWindowsArg(_0x3a8490){if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x3a8490))return _0x3a8490;const _0x56c501=_0x3a8490['replace'](/"/g,'\x22\x22');return'\x22'+_0x56c501+'\x22';}export function crossSpawn(_0x30d2e6,_0x3bd2df,_0x542443){if(isWindows()){const _0x3d3544=escapeWindowsArg(_0x30d2e6),_0x2b58ea=_0x3bd2df['map'](escapeWindowsArg),_0x559396=[_0x3d3544,..._0x2b58ea]['join']('\x20');return spawn(_0x559396,[],{..._0x542443,'shell':!![]});}return spawn(_0x30d2e6,_0x3bd2df,{..._0x542443,'shell':![]});}export function gracefulExit(_0x584fbe=0x0){const _0x553bd5=a232_0x3bce26;isWindows()?setTimeout(()=>process[_0x553bd5(0x151)](_0x584fbe),0x32):process[_0x553bd5(0x151)](_0x584fbe);}export function findExecutable(_0x8cff7f,_0x49be18=0x1388){return new Promise(_0x3b77f3=>{const _0x6273f4=a232_0x3e66,_0x270f12=isWindows()?_0x6273f4(0x149):_0x6273f4(0x131);execFile(_0x270f12,[_0x8cff7f],{'timeout':_0x49be18,'windowsHide':!![]},(_0x5a1078,_0x4c6602)=>{const _0x196fac=_0x6273f4;if(_0x5a1078||!_0x4c6602[_0x196fac(0x15b)]())_0x3b77f3(null);else{const _0x4da22f=_0x4c6602['trim']()['split'](/\r?\n/)[0x0];_0x3b77f3(_0x4da22f);}});});}
@@ -1 +1 @@
1
- (function(_0x568747,_0xafae70){const _0x238924=a233_0x4fec,_0x539c6c=_0x568747();while(!![]){try{const _0x32326b=parseInt(_0x238924(0xf8))/0x1*(parseInt(_0x238924(0xfe))/0x2)+parseInt(_0x238924(0xf5))/0x3+parseInt(_0x238924(0xf6))/0x4+parseInt(_0x238924(0xf7))/0x5*(parseInt(_0x238924(0xfc))/0x6)+-parseInt(_0x238924(0xf1))/0x7+-parseInt(_0x238924(0x102))/0x8+-parseInt(_0x238924(0xfa))/0x9;if(_0x32326b===_0xafae70)break;else _0x539c6c['push'](_0x539c6c['shift']());}catch(_0xbceed){_0x539c6c['push'](_0x539c6c['shift']());}}}(a233_0x49c6,0x95479));import*as a233_0x1899bf from'readline';function a233_0x49c6(){const _0x4ff2eb=['removeListener','2fxjEZX','stdout','resume','pause','8135080ojYLem','toLowerCase','stderr','stdin','createInterface','isTTY','2991100EoqhSg','\x20[y/N]\x20','\x20(y/N):\x20','data','1751376DWCsXC','4193912qneyxq','10NyRYHT','626797fSGvbF','write','1875933DYzwQG','setEncoding','15012YDTCcT'];a233_0x49c6=function(){return _0x4ff2eb;};return a233_0x49c6();}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x118931=a233_0x4fec;return process['stdin'][_0x118931(0x107)]===!![];}function a233_0x4fec(_0x501108,_0xbb8941){_0x501108=_0x501108-0xf1;const _0x49c6db=a233_0x49c6();let _0x4fec19=_0x49c6db[_0x501108];return _0x4fec19;}export async function confirm(_0x3e76a9){const _0x85fc4c=a233_0x4fec,_0x5dbe09=a233_0x1899bf[_0x85fc4c(0x106)]({'input':process[_0x85fc4c(0x105)],'output':process[_0x85fc4c(0xff)]});return new Promise(_0x332da=>{const _0x20c347=_0x85fc4c;_0x5dbe09['question'](_0x3e76a9+_0x20c347(0xf3),_0x320fc0=>{const _0x5061a4=_0x20c347;_0x5dbe09['close'](),_0x332da(_0x320fc0['toLowerCase']()==='y'||_0x320fc0[_0x5061a4(0x103)]()==='yes');});});}export async function confirmKey(_0x42a3c5){const _0x14af72=a233_0x4fec;if(!process[_0x14af72(0x105)][_0x14af72(0x107)])return![];return process[_0x14af72(0x104)][_0x14af72(0xf9)](_0x42a3c5+_0x14af72(0xf2)),new Promise(_0x30bbc8=>{const _0x98e14b=_0x14af72,_0x144506=process[_0x98e14b(0x105)];_0x144506['setRawMode'](!![]),_0x144506[_0x98e14b(0x100)](),_0x144506[_0x98e14b(0xfb)]('utf8');const _0x3f7129=_0x9fbfc0=>{const _0x1fa14a=_0x98e14b;_0x144506['setRawMode'](![]),_0x144506[_0x1fa14a(0x101)](),_0x144506[_0x1fa14a(0xfd)](_0x1fa14a(0xf4),_0x3f7129);if(_0x9fbfc0==='\x1b'){process[_0x1fa14a(0x104)][_0x1fa14a(0xf9)]('\x0a'),_0x30bbc8(![]);return;}_0x9fbfc0==='\x03'&&(process[_0x1fa14a(0x104)][_0x1fa14a(0xf9)]('\x0a'),gracefulExit(0x82));if(_0x9fbfc0['toLowerCase']()==='y'){process[_0x1fa14a(0x104)][_0x1fa14a(0xf9)]('y\x0a'),_0x30bbc8(!![]);return;}process[_0x1fa14a(0x104)][_0x1fa14a(0xf9)]('\x0a'),_0x30bbc8(![]);};_0x144506['on'](_0x98e14b(0xf4),_0x3f7129);});}
1
+ (function(_0x2a8054,_0x3bdf9b){const _0x11877d=a233_0x1551,_0x4b4fa1=_0x2a8054();while(!![]){try{const _0x3ee096=-parseInt(_0x11877d(0x136))/0x1+parseInt(_0x11877d(0x133))/0x2*(-parseInt(_0x11877d(0x134))/0x3)+parseInt(_0x11877d(0x135))/0x4*(-parseInt(_0x11877d(0x129))/0x5)+parseInt(_0x11877d(0x12e))/0x6*(parseInt(_0x11877d(0x144))/0x7)+-parseInt(_0x11877d(0x137))/0x8*(-parseInt(_0x11877d(0x13e))/0x9)+-parseInt(_0x11877d(0x138))/0xa+parseInt(_0x11877d(0x12c))/0xb*(parseInt(_0x11877d(0x128))/0xc);if(_0x3ee096===_0x3bdf9b)break;else _0x4b4fa1['push'](_0x4b4fa1['shift']());}catch(_0x2af5fd){_0x4b4fa1['push'](_0x4b4fa1['shift']());}}}(a233_0x3120,0x3b4e1));import*as a233_0x34ce57 from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x82ec77=a233_0x1551;return process[_0x82ec77(0x131)][_0x82ec77(0x12d)]===!![];}function a233_0x1551(_0x114500,_0x1d24b4){_0x114500=_0x114500-0x128;const _0x3120c4=a233_0x3120();let _0x15513c=_0x3120c4[_0x114500];return _0x15513c;}export async function confirm(_0x18f2e5){const _0x4b834a=a233_0x1551,_0x1d5123=a233_0x34ce57[_0x4b834a(0x12f)]({'input':process[_0x4b834a(0x131)],'output':process[_0x4b834a(0x12a)]});return new Promise(_0xa0e2b2=>{const _0x455fa3=_0x4b834a;_0x1d5123['question'](_0x18f2e5+_0x455fa3(0x13c),_0x50cbc1=>{const _0x29fe78=_0x455fa3;_0x1d5123[_0x29fe78(0x132)](),_0xa0e2b2(_0x50cbc1[_0x29fe78(0x13b)]()==='y'||_0x50cbc1['toLowerCase']()===_0x29fe78(0x143));});});}function a233_0x3120(){const _0x3ebf69=['createInterface','data','stdin','close','14188KdDrNW','153sFTTmS','8OqMFPi','33265sGMcul','2135528kphXXL','1063810FtsTCW','stderr','write','toLowerCase','\x20(y/N):\x20','removeListener','9EoPqMZ','resume','utf8','setEncoding','\x20[y/N]\x20','yes','70329PpBYQY','240awQrFl','612515nJZzPL','stdout','setRawMode','209451TRzXBu','isTTY','204kKUEaS'];a233_0x3120=function(){return _0x3ebf69;};return a233_0x3120();}export async function confirmKey(_0x416ad8){const _0x378c89=a233_0x1551;if(!process[_0x378c89(0x131)]['isTTY'])return![];return process[_0x378c89(0x139)]['write'](_0x416ad8+_0x378c89(0x142)),new Promise(_0x2c652f=>{const _0x5aecb1=_0x378c89,_0x23e9e0=process[_0x5aecb1(0x131)];_0x23e9e0['setRawMode'](!![]),_0x23e9e0[_0x5aecb1(0x13f)](),_0x23e9e0[_0x5aecb1(0x141)](_0x5aecb1(0x140));const _0x9a2c5e=_0x4ff983=>{const _0x2441e5=_0x5aecb1;_0x23e9e0[_0x2441e5(0x12b)](![]),_0x23e9e0['pause'](),_0x23e9e0[_0x2441e5(0x13d)](_0x2441e5(0x130),_0x9a2c5e);if(_0x4ff983==='\x1b'){process[_0x2441e5(0x139)]['write']('\x0a'),_0x2c652f(![]);return;}_0x4ff983==='\x03'&&(process[_0x2441e5(0x139)][_0x2441e5(0x13a)]('\x0a'),gracefulExit(0x82));if(_0x4ff983[_0x2441e5(0x13b)]()==='y'){process[_0x2441e5(0x139)]['write']('y\x0a'),_0x2c652f(!![]);return;}process['stderr'][_0x2441e5(0x13a)]('\x0a'),_0x2c652f(![]);};_0x23e9e0['on'](_0x5aecb1(0x130),_0x9a2c5e);});}
@@ -1 +1 @@
1
- (function(_0x5f5bc6,_0x168513){const _0x26c578=a234_0x33e3,_0x484645=_0x5f5bc6();while(!![]){try{const _0x2782ea=-parseInt(_0x26c578(0x1a6))/0x1*(parseInt(_0x26c578(0x1a8))/0x2)+parseInt(_0x26c578(0x1b5))/0x3+-parseInt(_0x26c578(0x1b0))/0x4*(-parseInt(_0x26c578(0x1a1))/0x5)+parseInt(_0x26c578(0x1a2))/0x6*(parseInt(_0x26c578(0x1aa))/0x7)+-parseInt(_0x26c578(0x1a9))/0x8+-parseInt(_0x26c578(0x1b6))/0x9+-parseInt(_0x26c578(0x1ad))/0xa*(-parseInt(_0x26c578(0x19e))/0xb);if(_0x2782ea===_0x168513)break;else _0x484645['push'](_0x484645['shift']());}catch(_0xd805e2){_0x484645['push'](_0x484645['shift']());}}}(a234_0x2f57,0x47c9a));import a234_0x4a5dcd from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x32faab,_0x28e1c2={}){const _0x3c1bb0=a234_0x33e3,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x28e1c2;return a234_0x4a5dcd({'text':_0x32faab,'color':'cyan','stream':process[_0x3c1bb0(0x1a3)],'isEnabled':forceEnabled||process[_0x3c1bb0(0x1a3)][_0x3c1bb0(0x1a4)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x25935d,_0x269e65,_0x3a1dec={}){const _0x3d8048=a234_0x33e3,_0x369b61=_0x3a1dec[_0x3d8048(0x1a7)]??(()=>Date[_0x3d8048(0x1b1)]()),_0x1bee36=createCommandSpinner(_0x25935d,_0x3a1dec);_0x1bee36['start']();const _0x2fb8a4=_0x369b61();try{const _0x79a916=await _0x269e65(),_0x3c2a06=_0x369b61()-_0x2fb8a4;return _0x1bee36[_0x3d8048(0x1b8)](),{'data':_0x79a916,'elapsedMs':_0x3c2a06};}catch(_0x22b5c9){_0x1bee36[_0x3d8048(0x1b8)]();throw _0x22b5c9;}}function a234_0x2f57(){const _0x37f562=['isTTY','...','489qDnBYa','clock','1124WNkMxx','3895112WqqwYd','70RgiZmS','isSpinning','text','4045270fzWBpt','jobId','Processing','95188zRbpsU','now','trim','extra','replace','1038180uHrYtE','4638141jIBXPd','floor','stop','11qSmQzV','\x20[Job\x20ID:\x20','toFixed','115JzuDVl','163908AfcMZO','stderr'];a234_0x2f57=function(){return _0x37f562;};return a234_0x2f57();}function a234_0x33e3(_0x57b0c6,_0x3e795e){_0x57b0c6=_0x57b0c6-0x19e;const _0x2f5711=a234_0x2f57();let _0x33e365=_0x2f5711[_0x57b0c6];return _0x33e365;}export async function withProgressSpinner(_0x17242d,_0x4462e9,_0xf5ceb={}){const _0x161e15=a234_0x33e3,_0x23315b=_0xf5ceb[_0x161e15(0x1a7)]??(()=>Date[_0x161e15(0x1b1)]()),_0x15f647=_0xf5ceb['intervalFactory']??setInterval,_0x1dd800=createCommandSpinner(_0x17242d,_0xf5ceb);_0x1dd800['start']();const _0x16950a=_0x23315b(),_0x1a2b36=_0x17242d[_0x161e15(0x1b4)](_0x161e15(0x1a5),'')[_0x161e15(0x1b2)]()||_0x161e15(0x1af),_0x1ade24={};let _0x59952e=_0x17242d;const _0x4257e4=()=>{const _0x5a0a58=_0x161e15;if(!_0x1dd800[_0x5a0a58(0x1ab)])return;const _0x39f585=_0x23315b()-_0x16950a,_0x2adece=formatElapsed(_0x39f585),_0x175291=_0x1ade24['phase']?.[_0x5a0a58(0x1b2)]()||_0x1a2b36,_0x32d5d5=_0x1ade24[_0x5a0a58(0x1ae)]?_0x5a0a58(0x19f)+_0x1ade24[_0x5a0a58(0x1ae)]+']':'',_0x4a953f=_0x1ade24['extra']?'\x20'+_0x1ade24[_0x5a0a58(0x1b3)]:'',_0x422724=_0x175291+'\x20'+_0x2adece+_0x4a953f+_0x32d5d5;_0x422724!==_0x59952e&&_0x422724['trim']()&&(_0x1dd800[_0x5a0a58(0x1ac)]=_0x422724,_0x59952e=_0x422724);},_0x4b20bb=_0x15f647(()=>{_0x4257e4();},0x3e8),_0x3e01a9={'setPhase':_0x4acbca=>{const _0x191fd6=_0x161e15;_0x1ade24['phase']=_0x4acbca;const _0x20ab6f=_0x4acbca?.[_0x191fd6(0x1b2)]()||_0x1a2b36,_0x279139=_0x23315b()-_0x16950a,_0x21e800=formatElapsed(_0x279139),_0x5132fe=_0x1ade24['jobId']?_0x191fd6(0x19f)+_0x1ade24['jobId']+']':'',_0x137317=_0x1ade24[_0x191fd6(0x1b3)]?'\x20'+_0x1ade24[_0x191fd6(0x1b3)]:'',_0x370c5a=_0x20ab6f+'\x20'+_0x21e800+_0x137317+_0x5132fe;_0x1dd800[_0x191fd6(0x1ab)]&&_0x370c5a['trim']()&&(_0x1dd800[_0x191fd6(0x1ac)]=_0x370c5a,_0x59952e=_0x370c5a);},'setJobId':_0x31b1db=>{const _0x22ad24=_0x161e15;_0x1ade24[_0x22ad24(0x1ae)]=_0x31b1db,_0x4257e4();},'setExtra':_0x4e0705=>{const _0x34b2fa=_0x161e15;_0x1ade24[_0x34b2fa(0x1b3)]=_0x4e0705,_0x4257e4();}};_0x4257e4();try{const _0x4834c2=await _0x4462e9(_0x3e01a9),_0x1c8df1=_0x23315b()-_0x16950a;return{'data':_0x4834c2,'elapsedMs':_0x1c8df1};}finally{clearInterval(_0x4b20bb),_0x1dd800[_0x161e15(0x1b8)]();}}export function formatElapsed(_0x1771d3){const _0x45939b=a234_0x33e3,_0x48083c=Math['floor'](_0x1771d3/0x3e8);if(_0x48083c<0x3c)return(_0x1771d3/0x3e8)[_0x45939b(0x1a0)](0x1)+'s';const _0xed8d21=Math[_0x45939b(0x1b7)](_0x48083c/0x3c),_0x5bf0ac=_0x48083c%0x3c;if(_0xed8d21<0x3c)return _0xed8d21+'m\x20'+_0x5bf0ac+'s';const _0x2286e4=Math[_0x45939b(0x1b7)](_0xed8d21/0x3c),_0x41af84=_0xed8d21%0x3c;return _0x2286e4+'h\x20'+_0x41af84+'m';}
1
+ (function(_0x1db86f,_0x43d211){const _0x1d4578=a234_0x4a16,_0x1b4f46=_0x1db86f();while(!![]){try{const _0x5771a3=-parseInt(_0x1d4578(0x14f))/0x1+-parseInt(_0x1d4578(0x14b))/0x2+-parseInt(_0x1d4578(0x150))/0x3+parseInt(_0x1d4578(0x146))/0x4*(-parseInt(_0x1d4578(0x14c))/0x5)+parseInt(_0x1d4578(0x13f))/0x6+-parseInt(_0x1d4578(0x154))/0x7+parseInt(_0x1d4578(0x13e))/0x8;if(_0x5771a3===_0x43d211)break;else _0x1b4f46['push'](_0x1b4f46['shift']());}catch(_0x13b80a){_0x1b4f46['push'](_0x1b4f46['shift']());}}}(a234_0x4f7d,0x3a1fc));import a234_0x3f7590 from'ora';import{isWindows}from'./process.js';function a234_0x4f7d(){const _0x571f30=['text','2576889KSygLf','isTTY','trim','start','Processing','12421392OAbQFf','1975824FpyeNw','extra','clock','floor','replace','phase','jobId','845216XOxvbp','stderr','\x20[Job\x20ID:\x20','now','stop','604418LLNkeV','10cfvrdq','intervalFactory','isSpinning','419673YMgUFC','393855qnmyXS','toFixed','...'];a234_0x4f7d=function(){return _0x571f30;};return a234_0x4f7d();}const windowsSpinner={'interval':0x3e8,'frames':['•']};function a234_0x4a16(_0x577e42,_0x47ea21){_0x577e42=_0x577e42-0x13e;const _0x4f7d6d=a234_0x4f7d();let _0x4a16d0=_0x4f7d6d[_0x577e42];return _0x4a16d0;}export function createCommandSpinner(_0x5b1673,_0x1f36f9={}){const _0x198e34=a234_0x4a16,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1f36f9;return a234_0x3f7590({'text':_0x5b1673,'color':'cyan','stream':process[_0x198e34(0x147)],'isEnabled':forceEnabled||process[_0x198e34(0x147)][_0x198e34(0x155)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x42a6bb,_0x2b777f,_0x1fce91={}){const _0x35021d=a234_0x4a16,_0x20a4d2=_0x1fce91[_0x35021d(0x141)]??(()=>Date[_0x35021d(0x149)]()),_0x40e9f9=createCommandSpinner(_0x42a6bb,_0x1fce91);_0x40e9f9[_0x35021d(0x157)]();const _0x4d2a4=_0x20a4d2();try{const _0x59a26e=await _0x2b777f(),_0x4724ec=_0x20a4d2()-_0x4d2a4;return _0x40e9f9[_0x35021d(0x14a)](),{'data':_0x59a26e,'elapsedMs':_0x4724ec};}catch(_0x43be50){_0x40e9f9[_0x35021d(0x14a)]();throw _0x43be50;}}export async function withProgressSpinner(_0x288d90,_0x5c444a,_0x10df44={}){const _0x5dee66=a234_0x4a16,_0x48508a=_0x10df44[_0x5dee66(0x141)]??(()=>Date['now']()),_0x48b1c6=_0x10df44[_0x5dee66(0x14d)]??setInterval,_0x14fdc2=createCommandSpinner(_0x288d90,_0x10df44);_0x14fdc2[_0x5dee66(0x157)]();const _0x3b0cc3=_0x48508a(),_0x83a271=_0x288d90[_0x5dee66(0x143)](_0x5dee66(0x152),'')[_0x5dee66(0x156)]()||_0x5dee66(0x158),_0x17849a={};let _0x825651=_0x288d90;const _0x4e68ca=()=>{const _0x3c5ffe=_0x5dee66;if(!_0x14fdc2['isSpinning'])return;const _0x5d0056=_0x48508a()-_0x3b0cc3,_0x43baa8=formatElapsed(_0x5d0056),_0x8c58af=_0x17849a[_0x3c5ffe(0x144)]?.[_0x3c5ffe(0x156)]()||_0x83a271,_0x572315=_0x17849a[_0x3c5ffe(0x145)]?_0x3c5ffe(0x148)+_0x17849a['jobId']+']':'',_0x18c91c=_0x17849a[_0x3c5ffe(0x140)]?'\x20'+_0x17849a[_0x3c5ffe(0x140)]:'',_0x787a10=_0x8c58af+'\x20'+_0x43baa8+_0x18c91c+_0x572315;_0x787a10!==_0x825651&&_0x787a10[_0x3c5ffe(0x156)]()&&(_0x14fdc2['text']=_0x787a10,_0x825651=_0x787a10);},_0x287dae=_0x48b1c6(()=>{_0x4e68ca();},0x3e8),_0x1d77d0={'setPhase':_0x28e1bf=>{const _0x2eddc0=_0x5dee66;_0x17849a[_0x2eddc0(0x144)]=_0x28e1bf;const _0x448b24=_0x28e1bf?.[_0x2eddc0(0x156)]()||_0x83a271,_0x47d351=_0x48508a()-_0x3b0cc3,_0x59c572=formatElapsed(_0x47d351),_0x15fbf0=_0x17849a['jobId']?_0x2eddc0(0x148)+_0x17849a['jobId']+']':'',_0x15af7d=_0x17849a[_0x2eddc0(0x140)]?'\x20'+_0x17849a[_0x2eddc0(0x140)]:'',_0x207765=_0x448b24+'\x20'+_0x59c572+_0x15af7d+_0x15fbf0;_0x14fdc2[_0x2eddc0(0x14e)]&&_0x207765[_0x2eddc0(0x156)]()&&(_0x14fdc2[_0x2eddc0(0x153)]=_0x207765,_0x825651=_0x207765);},'setJobId':_0x3558ee=>{_0x17849a['jobId']=_0x3558ee,_0x4e68ca();},'setExtra':_0x5a5eea=>{const _0x14c2f0=_0x5dee66;_0x17849a[_0x14c2f0(0x140)]=_0x5a5eea,_0x4e68ca();}};_0x4e68ca();try{const _0x1b2806=await _0x5c444a(_0x1d77d0),_0x4cd52d=_0x48508a()-_0x3b0cc3;return{'data':_0x1b2806,'elapsedMs':_0x4cd52d};}finally{clearInterval(_0x287dae),_0x14fdc2[_0x5dee66(0x14a)]();}}export function formatElapsed(_0x592227){const _0x16b990=a234_0x4a16,_0x86dd02=Math[_0x16b990(0x142)](_0x592227/0x3e8);if(_0x86dd02<0x3c)return(_0x592227/0x3e8)[_0x16b990(0x151)](0x1)+'s';const _0x2b04b9=Math[_0x16b990(0x142)](_0x86dd02/0x3c),_0x326ebe=_0x86dd02%0x3c;if(_0x2b04b9<0x3c)return _0x2b04b9+'m\x20'+_0x326ebe+'s';const _0x32329a=Math[_0x16b990(0x142)](_0x2b04b9/0x3c),_0x8c7a2b=_0x2b04b9%0x3c;return _0x32329a+'h\x20'+_0x8c7a2b+'m';}
@@ -1 +1 @@
1
- function a235_0x36c2(_0x3a38f8,_0x4e7d66){_0x3a38f8=_0x3a38f8-0x112;const _0x59c730=a235_0x59c7();let _0x36c2c8=_0x59c730[_0x3a38f8];return _0x36c2c8;}function a235_0x59c7(){const _0x1f6942=['27CASWUM','split','10MAIIwS','slice','2871582GUwkWu','201504umFhhZ','pop','read','3804944JDtpAi','[LLM\x20API\x20SSE]\x20','6198563McRIIN','event','459fZuRYs','Response\x20body\x20is\x20null','11578668vBSYQY','2121604bgCEFe','11PNXGBr','122070xaUmyN','getReader','debug','decode','body','data','parse','1DumaYI','indexOf','startsWith','8PeTzkB'];a235_0x59c7=function(){return _0x1f6942;};return a235_0x59c7();}(function(_0x5f4449,_0x4a1cd2){const _0x496a19=a235_0x36c2,_0x178dd4=_0x5f4449();while(!![]){try{const _0x406036=parseInt(_0x496a19(0x11d))/0x1*(-parseInt(_0x496a19(0x114))/0x2)+-parseInt(_0x496a19(0x121))/0x3*(-parseInt(_0x496a19(0x126))/0x4)+-parseInt(_0x496a19(0x123))/0x5*(-parseInt(_0x496a19(0x125))/0x6)+parseInt(_0x496a19(0x12b))/0x7*(parseInt(_0x496a19(0x120))/0x8)+parseInt(_0x496a19(0x12d))/0x9*(parseInt(_0x496a19(0x116))/0xa)+parseInt(_0x496a19(0x115))/0xb*(-parseInt(_0x496a19(0x113))/0xc)+-parseInt(_0x496a19(0x129))/0xd;if(_0x406036===_0x4a1cd2)break;else _0x178dd4['push'](_0x178dd4['shift']());}catch(_0x1fc124){_0x178dd4['push'](_0x178dd4['shift']());}}}(a235_0x59c7,0x928c9));export async function*parseSSEStream(_0x1156a7,_0x5adc1a){const _0x4b0c55=a235_0x36c2;if(!_0x1156a7[_0x4b0c55(0x11a)])throw new Error(_0x4b0c55(0x112));const _0x4952ec=_0x1156a7[_0x4b0c55(0x11a)][_0x4b0c55(0x117)](),_0x1e2687=new TextDecoder();let _0x3a8821='',_0x4edd4e={};try{while(!![]){const {done:_0x28c5a8,value:_0xd8ced3}=await _0x4952ec[_0x4b0c55(0x128)]();if(_0x28c5a8){if(_0x4edd4e[_0x4b0c55(0x11b)]){_0x5adc1a?.[_0x4b0c55(0x118)]('[LLM\x20API\x20SSE]\x20'+_0x4edd4e['data']);const _0x4dd2ba=parseSSEData(_0x4edd4e[_0x4b0c55(0x11b)]);yield _0x4dd2ba;}break;}_0x3a8821+=_0x1e2687[_0x4b0c55(0x119)](_0xd8ced3,{'stream':!![]});const _0x589409=_0x3a8821[_0x4b0c55(0x122)]('\x0a');_0x3a8821=_0x589409[_0x4b0c55(0x127)]()||'';for(const _0x516472 of _0x589409){if(_0x516472['trim']()===''){if(_0x4edd4e[_0x4b0c55(0x11b)]){_0x5adc1a?.['debug'](_0x4b0c55(0x12a)+_0x4edd4e[_0x4b0c55(0x11b)]);const _0x3ec6dc=parseSSEData(_0x4edd4e['data']);yield _0x3ec6dc,_0x4edd4e={};}continue;}if(_0x516472[_0x4b0c55(0x11f)](':'))continue;const _0xab17f9=_0x516472[_0x4b0c55(0x11e)](':');if(_0xab17f9===-0x1)continue;const _0x2f6af4=_0x516472['slice'](0x0,_0xab17f9);let _0x439629=_0x516472[_0x4b0c55(0x124)](_0xab17f9+0x1);_0x439629[_0x4b0c55(0x11f)]('\x20')&&(_0x439629=_0x439629['slice'](0x1));switch(_0x2f6af4){case _0x4b0c55(0x12c):_0x4edd4e[_0x4b0c55(0x12c)]=_0x439629;break;case'data':_0x4edd4e[_0x4b0c55(0x11b)]=_0x4edd4e[_0x4b0c55(0x11b)]?_0x4edd4e[_0x4b0c55(0x11b)]+'\x0a'+_0x439629:_0x439629;break;case'id':_0x4edd4e['id']=_0x439629;break;}}}}finally{_0x4952ec['releaseLock']();}}function parseSSEData(_0x56eb4b){const _0x27556f=a235_0x36c2;try{return JSON[_0x27556f(0x11c)](_0x56eb4b);}catch(_0x522ce5){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x56eb4b,{'cause':_0x522ce5});}}
1
+ (function(_0x17005b,_0x6ad21f){const _0x11af0f=a235_0x245d,_0x4c7c1b=_0x17005b();while(!![]){try{const _0x378efd=parseInt(_0x11af0f(0x7a))/0x1+parseInt(_0x11af0f(0x72))/0x2+-parseInt(_0x11af0f(0x6b))/0x3+parseInt(_0x11af0f(0x74))/0x4+-parseInt(_0x11af0f(0x7f))/0x5+parseInt(_0x11af0f(0x78))/0x6*(parseInt(_0x11af0f(0x7d))/0x7)+-parseInt(_0x11af0f(0x69))/0x8*(parseInt(_0x11af0f(0x6c))/0x9);if(_0x378efd===_0x6ad21f)break;else _0x4c7c1b['push'](_0x4c7c1b['shift']());}catch(_0x1a735e){_0x4c7c1b['push'](_0x4c7c1b['shift']());}}}(a235_0x107f,0x6394a));export async function*parseSSEStream(_0xf4b222,_0x1f89d7){const _0x187c97=a235_0x245d;if(!_0xf4b222['body'])throw new Error(_0x187c97(0x6f));const _0x265ff2=_0xf4b222['body'][_0x187c97(0x7b)](),_0x286f7f=new TextDecoder();let _0x749113='',_0x5d12f8={};try{while(!![]){const {done:_0x42d882,value:_0x327e19}=await _0x265ff2[_0x187c97(0x6d)]();if(_0x42d882){if(_0x5d12f8[_0x187c97(0x77)]){_0x1f89d7?.[_0x187c97(0x79)](_0x187c97(0x73)+_0x5d12f8['data']);const _0x429be2=parseSSEData(_0x5d12f8[_0x187c97(0x77)]);yield _0x429be2;}break;}_0x749113+=_0x286f7f['decode'](_0x327e19,{'stream':!![]});const _0x8dc8fc=_0x749113[_0x187c97(0x70)]('\x0a');_0x749113=_0x8dc8fc[_0x187c97(0x71)]()||'';for(const _0x52b07a of _0x8dc8fc){if(_0x52b07a[_0x187c97(0x7e)]()===''){if(_0x5d12f8[_0x187c97(0x77)]){_0x1f89d7?.[_0x187c97(0x79)](_0x187c97(0x73)+_0x5d12f8[_0x187c97(0x77)]);const _0x399bdd=parseSSEData(_0x5d12f8[_0x187c97(0x77)]);yield _0x399bdd,_0x5d12f8={};}continue;}if(_0x52b07a[_0x187c97(0x68)](':'))continue;const _0x4b3184=_0x52b07a[_0x187c97(0x6a)](':');if(_0x4b3184===-0x1)continue;const _0x53338f=_0x52b07a[_0x187c97(0x7c)](0x0,_0x4b3184);let _0x145eb3=_0x52b07a['slice'](_0x4b3184+0x1);_0x145eb3[_0x187c97(0x68)]('\x20')&&(_0x145eb3=_0x145eb3[_0x187c97(0x7c)](0x1));switch(_0x53338f){case _0x187c97(0x75):_0x5d12f8[_0x187c97(0x75)]=_0x145eb3;break;case _0x187c97(0x77):_0x5d12f8[_0x187c97(0x77)]=_0x5d12f8[_0x187c97(0x77)]?_0x5d12f8[_0x187c97(0x77)]+'\x0a'+_0x145eb3:_0x145eb3;break;case'id':_0x5d12f8['id']=_0x145eb3;break;}}}}finally{_0x265ff2['releaseLock']();}}function a235_0x107f(){const _0x416d3b=['indexOf','596088hUGGYs','1899fTEGud','read','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','Response\x20body\x20is\x20null','split','pop','561014QmVqIg','[LLM\x20API\x20SSE]\x20','2716616LPjsuS','event','parse','data','6hoaNmT','debug','317539pUgboN','getReader','slice','1869602gxsNBa','trim','3904675tdnXpI','startsWith','5944EbexDY'];a235_0x107f=function(){return _0x416d3b;};return a235_0x107f();}function a235_0x245d(_0x3178f4,_0x12f4d8){_0x3178f4=_0x3178f4-0x68;const _0x107fe9=a235_0x107f();let _0x245de5=_0x107fe9[_0x3178f4];return _0x245de5;}function parseSSEData(_0x429122){const _0x51f466=a235_0x245d;try{return JSON[_0x51f466(0x76)](_0x429122);}catch(_0x2b5ccb){throw new Error(_0x51f466(0x6e)+_0x429122,{'cause':_0x2b5ccb});}}
@@ -1 +1 @@
1
- (function(_0xf98120,_0x41ce6f){const _0x758aad=a236_0x8d32,_0x257cfa=_0xf98120();while(!![]){try{const _0x3fc9d1=-parseInt(_0x758aad(0x1ab))/0x1*(parseInt(_0x758aad(0x1b0))/0x2)+-parseInt(_0x758aad(0x1b8))/0x3+-parseInt(_0x758aad(0x1b4))/0x4+parseInt(_0x758aad(0x1b5))/0x5*(parseInt(_0x758aad(0x1af))/0x6)+-parseInt(_0x758aad(0x1a8))/0x7*(-parseInt(_0x758aad(0x1b7))/0x8)+-parseInt(_0x758aad(0x1b1))/0x9+parseInt(_0x758aad(0x1aa))/0xa;if(_0x3fc9d1===_0x41ce6f)break;else _0x257cfa['push'](_0x257cfa['shift']());}catch(_0x1ee191){_0x257cfa['push'](_0x257cfa['shift']());}}}(a236_0x43e8,0x823b6));function a236_0x43e8(){const _0x460108=['slice','664643eIBcmT','Cannot\x20escape\x20empty\x20string\x20literal','10045170KbrDbb','1811trkpyO','random','floor','repeat','1169202TJgDya','518qPhWIl','3989916vCuhpk','toLowerCase','trim','1201084nZEgaU','25MxYOTA','replace','24YNNtVH','1552875wGhzMx','substring','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toString','\x5c$&','length'];a236_0x43e8=function(){return _0x460108;};return a236_0x43e8();}import a236_0x2f4a85 from'string-width';export function stringWidth(_0x353d11){return a236_0x2f4a85(_0x353d11);}export function padEnd(_0x425fc5,_0x1fbe17){const _0x135ca6=a236_0x8d32,_0x2cd8c7=stringWidth(_0x425fc5);if(_0x2cd8c7>=_0x1fbe17)return _0x425fc5;return _0x425fc5+'\x20'[_0x135ca6(0x1ae)](_0x1fbe17-_0x2cd8c7);}function a236_0x8d32(_0x428a3e,_0x4bdf60){_0x428a3e=_0x428a3e-0x1a8;const _0x43e8bf=a236_0x43e8();let _0x8d328a=_0x43e8bf[_0x428a3e];return _0x8d328a;}export function padStart(_0x2927f6,_0x12cb8e){const _0x20e6b7=a236_0x8d32,_0x40867b=stringWidth(_0x2927f6);if(_0x40867b>=_0x12cb8e)return _0x2927f6;return'\x20'[_0x20e6b7(0x1ae)](_0x12cb8e-_0x40867b)+_0x2927f6;}export function centerAlign(_0x3b32fe,_0x1341a2){const _0x35bc17=a236_0x8d32,_0xc4f5f9=stringWidth(_0x3b32fe);if(_0xc4f5f9>_0x1341a2){if(_0x1341a2<=0x1)return'…'[_0x35bc17(0x1b9)](0x0,_0x1341a2);let _0x5dd459=_0x3b32fe;while(stringWidth(_0x5dd459+'…')>_0x1341a2){_0x5dd459=_0x5dd459[_0x35bc17(0x1be)](0x0,-0x1);}return _0x5dd459+'…';}if(_0xc4f5f9===_0x1341a2)return _0x3b32fe;const _0x369448=_0x1341a2-_0xc4f5f9,_0x1156f0=Math[_0x35bc17(0x1ad)](_0x369448/0x2),_0x4ad4c4=_0x369448-_0x1156f0;return'\x20'[_0x35bc17(0x1ae)](_0x1156f0)+_0x3b32fe+'\x20'[_0x35bc17(0x1ae)](_0x4ad4c4);}export function escapeStringLiteral(_0x4fde73){const _0x52008b=a236_0x8d32;if(!_0x4fde73||_0x4fde73['trim']()[_0x52008b(0x1bd)]===0x0)throw new Error(_0x52008b(0x1a9));const _0x6c8f58=_0x4fde73[_0x52008b(0x1b6)](/'/g,'\x27\x27');return'\x27'+_0x6c8f58+'\x27';}export function globToLike(_0x3cb221){const _0x3e0a26=a236_0x8d32;let _0x352d8b=_0x3cb221[_0x3e0a26(0x1b6)](/\\/g,'\x5c\x5c')[_0x3e0a26(0x1b6)](/%/g,'\x5c%')[_0x3e0a26(0x1b6)](/_/g,'\x5c_');return _0x352d8b=_0x352d8b[_0x3e0a26(0x1b6)](/\*/g,'%')[_0x3e0a26(0x1b6)](/\?/g,'_'),_0x352d8b;}export function buildLikePattern(_0xa582dc){const _0xc30344=a236_0x8d32;if(!_0xa582dc||_0xa582dc[_0xc30344(0x1b3)]()[_0xc30344(0x1bd)]===0x0)throw new Error(_0xc30344(0x1ba));const _0x331390=globToLike(_0xa582dc),_0x5734e4=_0x331390[_0xc30344(0x1b6)](/'/g,'\x27\x27');return'\x27'+_0x5734e4+'\x27';}export function matchGlobPattern(_0x33fb17,_0x105a01){const _0x4416cd=a236_0x8d32,_0x20a103=_0x105a01['replace'](/[.+^${}()|[\]\\]/g,_0x4416cd(0x1bc))[_0x4416cd(0x1b6)](/\*/g,'.*')[_0x4416cd(0x1b6)](/\?/g,'.'),_0x449eb1=new RegExp('^'+_0x20a103+'$');return _0x449eb1['test'](_0x33fb17);}export function getSanitizedUsername(){const _0x907212=a236_0x8d32,_0x3f74a6=process.env.USER||process.env.USERNAME||'unknown';return _0x3f74a6[_0x907212(0x1b6)](/[^a-zA-Z0-9]/g,'')[_0x907212(0x1b2)]();}export function generateRandomHex(){const _0x30c271=a236_0x8d32,_0x4e24b5=Math[_0x30c271(0x1ad)](Math[_0x30c271(0x1ac)]()*0xfffff);return _0x4e24b5[_0x30c271(0x1bb)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x4a18eb){const _0x206ac3=a236_0x8d32;return _0x4a18eb[_0x206ac3(0x1b2)]()[_0x206ac3(0x1b6)](/[/\\:*?"<>|]/g,'-')[_0x206ac3(0x1b6)](/\s+/g,'-')[_0x206ac3(0x1b6)](/-+/g,'-')['replace'](/^-|-$/g,'');}
1
+ (function(_0x151c41,_0x180bbc){const _0x421add=a236_0x4dd1,_0x364f71=_0x151c41();while(!![]){try{const _0x54c22a=parseInt(_0x421add(0x8c))/0x1+parseInt(_0x421add(0x9b))/0x2+-parseInt(_0x421add(0x9a))/0x3+-parseInt(_0x421add(0x97))/0x4*(parseInt(_0x421add(0x95))/0x5)+parseInt(_0x421add(0x90))/0x6*(-parseInt(_0x421add(0x94))/0x7)+-parseInt(_0x421add(0x8d))/0x8*(parseInt(_0x421add(0x99))/0x9)+parseInt(_0x421add(0x9c))/0xa;if(_0x54c22a===_0x180bbc)break;else _0x364f71['push'](_0x364f71['shift']());}catch(_0x4bdc2e){_0x364f71['push'](_0x364f71['shift']());}}}(a236_0x257b,0x2fc3d));function a236_0x257b(){const _0x1a3bbd=['471710yFrBdf','2848680VTxoFA','toString','replace','slice','299284EwghqO','4936mDiwKu','test','trim','654omyvQZ','Cannot\x20escape\x20empty\x20string\x20literal','\x5c$&','repeat','4473LdVcah','5mipWQm','length','1365796ekOuxW','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','2043yorHGI','219609ebDPcA'];a236_0x257b=function(){return _0x1a3bbd;};return a236_0x257b();}import a236_0x39ce08 from'string-width';function a236_0x4dd1(_0x187ec9,_0x58f7d1){_0x187ec9=_0x187ec9-0x89;const _0x257b2f=a236_0x257b();let _0x4dd133=_0x257b2f[_0x187ec9];return _0x4dd133;}export function stringWidth(_0x4dacd7){return a236_0x39ce08(_0x4dacd7);}export function padEnd(_0x12159e,_0x4036de){const _0x1d9650=a236_0x4dd1,_0x39db53=stringWidth(_0x12159e);if(_0x39db53>=_0x4036de)return _0x12159e;return _0x12159e+'\x20'[_0x1d9650(0x93)](_0x4036de-_0x39db53);}export function padStart(_0x17374e,_0x3ee0b8){const _0x4a2132=a236_0x4dd1,_0x280fb1=stringWidth(_0x17374e);if(_0x280fb1>=_0x3ee0b8)return _0x17374e;return'\x20'[_0x4a2132(0x93)](_0x3ee0b8-_0x280fb1)+_0x17374e;}export function centerAlign(_0xc00708,_0x3f62d2){const _0x730591=a236_0x4dd1,_0x59cdd0=stringWidth(_0xc00708);if(_0x59cdd0>_0x3f62d2){if(_0x3f62d2<=0x1)return'…'['substring'](0x0,_0x3f62d2);let _0x2a170c=_0xc00708;while(stringWidth(_0x2a170c+'…')>_0x3f62d2){_0x2a170c=_0x2a170c[_0x730591(0x8b)](0x0,-0x1);}return _0x2a170c+'…';}if(_0x59cdd0===_0x3f62d2)return _0xc00708;const _0xf92fe5=_0x3f62d2-_0x59cdd0,_0x24e06b=Math['floor'](_0xf92fe5/0x2),_0x4e62aa=_0xf92fe5-_0x24e06b;return'\x20'[_0x730591(0x93)](_0x24e06b)+_0xc00708+'\x20'[_0x730591(0x93)](_0x4e62aa);}export function escapeStringLiteral(_0x13bf22){const _0x22297c=a236_0x4dd1;if(!_0x13bf22||_0x13bf22['trim']()[_0x22297c(0x96)]===0x0)throw new Error(_0x22297c(0x91));const _0x3c43c0=_0x13bf22[_0x22297c(0x8a)](/'/g,'\x27\x27');return'\x27'+_0x3c43c0+'\x27';}export function globToLike(_0x5e7dd0){const _0x2ba9b1=a236_0x4dd1;let _0x2ff805=_0x5e7dd0[_0x2ba9b1(0x8a)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x2ba9b1(0x8a)](/_/g,'\x5c_');return _0x2ff805=_0x2ff805[_0x2ba9b1(0x8a)](/\*/g,'%')[_0x2ba9b1(0x8a)](/\?/g,'_'),_0x2ff805;}export function buildLikePattern(_0x145c52){const _0x1de2cd=a236_0x4dd1;if(!_0x145c52||_0x145c52[_0x1de2cd(0x8f)]()[_0x1de2cd(0x96)]===0x0)throw new Error(_0x1de2cd(0x98));const _0x2c65b0=globToLike(_0x145c52),_0x4e4a4a=_0x2c65b0[_0x1de2cd(0x8a)](/'/g,'\x27\x27');return'\x27'+_0x4e4a4a+'\x27';}export function matchGlobPattern(_0x2a2804,_0x2a1797){const _0x10a7f6=a236_0x4dd1,_0x433e08=_0x2a1797[_0x10a7f6(0x8a)](/[.+^${}()|[\]\\]/g,_0x10a7f6(0x92))[_0x10a7f6(0x8a)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x44a13e=new RegExp('^'+_0x433e08+'$');return _0x44a13e[_0x10a7f6(0x8e)](_0x2a2804);}export function getSanitizedUsername(){const _0xb64320=a236_0x4dd1,_0x3ab8ad=process.env.USER||process.env.USERNAME||'unknown';return _0x3ab8ad[_0xb64320(0x8a)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x1cb1c9=a236_0x4dd1,_0x453575=Math['floor'](Math['random']()*0xfffff);return _0x453575[_0x1cb1c9(0x89)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x32a720){const _0x477928=a236_0x4dd1;return _0x32a720['toLowerCase']()[_0x477928(0x8a)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x477928(0x8a)](/-+/g,'-')[_0x477928(0x8a)](/^-|-$/g,'');}