@treasuredata/tdx 2026.4.17 → 2026.4.18

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 (220) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/access-tracker.js +1 -1
  182. package/dist/sdk/workspace/frontmatter.js +1 -1
  183. package/dist/sdk/workspace/git.js +1 -1
  184. package/dist/sdk/workspace/index.js +1 -1
  185. package/dist/sdk/workspace/templates.js +1 -1
  186. package/dist/sdk/workspace/weekly.js +1 -1
  187. package/dist/sdk/workspace/wikilinks.js +1 -1
  188. package/dist/test-utils/command-runner.js +1 -1
  189. package/dist/test-utils/factories.js +1 -1
  190. package/dist/test-utils/fixtures.js +1 -1
  191. package/dist/test-utils/http-mock.js +1 -1
  192. package/dist/test-utils/index.js +1 -1
  193. package/dist/utils/async.js +1 -1
  194. package/dist/utils/colors.js +1 -1
  195. package/dist/utils/diff.js +1 -1
  196. package/dist/utils/file-permissions.js +1 -1
  197. package/dist/utils/file-reader.js +1 -1
  198. package/dist/utils/github-releases.js +1 -1
  199. package/dist/utils/global-cache.js +1 -1
  200. package/dist/utils/json-loader.js +1 -1
  201. package/dist/utils/local-cache.js +1 -1
  202. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  203. package/dist/utils/logger/formatters/index.js +1 -1
  204. package/dist/utils/logger/handlers/console-handler.js +1 -1
  205. package/dist/utils/logger/handlers/file-handler.js +1 -1
  206. package/dist/utils/logger/handlers/index.js +1 -1
  207. package/dist/utils/logger/handlers/null-handler.js +1 -1
  208. package/dist/utils/logger/index.js +1 -1
  209. package/dist/utils/logger/logger.js +1 -1
  210. package/dist/utils/logger/types.js +1 -1
  211. package/dist/utils/option-validation.js +1 -1
  212. package/dist/utils/process.js +1 -1
  213. package/dist/utils/prompt.js +1 -1
  214. package/dist/utils/spinner.js +1 -1
  215. package/dist/utils/sse-parser.js +1 -1
  216. package/dist/utils/string-utils.js +1 -1
  217. package/dist/utils/table-ref-parser.js +1 -1
  218. package/dist/utils/tdx-logger.js +1 -1
  219. package/dist/utils/version-check.js +1 -1
  220. package/package.json +17 -2
@@ -1 +1 @@
1
- const a225_0x4d339b=a225_0x54e8;(function(_0x33868b,_0xd786ea){const _0xb261a7=a225_0x54e8,_0x365291=_0x33868b();while(!![]){try{const _0x2eeca5=parseInt(_0xb261a7(0x1f2))/0x1+parseInt(_0xb261a7(0x201))/0x2*(-parseInt(_0xb261a7(0x1e2))/0x3)+-parseInt(_0xb261a7(0x1d5))/0x4+parseInt(_0xb261a7(0x1fa))/0x5+parseInt(_0xb261a7(0x1c9))/0x6*(parseInt(_0xb261a7(0x1f0))/0x7)+-parseInt(_0xb261a7(0x1de))/0x8+-parseInt(_0xb261a7(0x1f6))/0x9;if(_0x2eeca5===_0xd786ea)break;else _0x365291['push'](_0x365291['shift']());}catch(_0x17bb9c){_0x365291['push'](_0x365291['shift']());}}}(a225_0x4d65,0x7e035));function a225_0x54e8(_0x24ef62,_0xd5f91c){_0x24ef62=_0x24ef62-0x1c9;const _0x4d658b=a225_0x4d65();let _0x54e83e=_0x4d658b[_0x24ef62];return _0x54e83e;}function a225_0x4d65(){const _0x577b60=['18kvxlmT','get','name','getEffectiveLevel','reset','dispatch','error','set','shouldLog','loggers','length','timestamp','level','initialized','10129sxAtxR','string','589496zeSAes','close','toISOString','log','2618352qunKnG','isInitialized','init','component','4949670kjnVCE','WARN','map','has','setDefaultLevel','formatter','setLogLevel','212394CiEHsI','2802tEuUQi','ERROR','warn','format','INFO','handlers','pendingRecords','clearHandlers','TRACE','message','defaultLevel','split','1034468rJkqGr','addHandler','clear','levelOverrides','stack','info','slice','debug','trace','4418424BNpkMA','shutdown','push',']\x20['];a225_0x4d65=function(){return _0x577b60;};return a225_0x4d65();}import{LogLevel as a225_0x525891,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a225_0x525891[a225_0x4d339b(0x1cd)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x36117d){const _0x120f24=a225_0x4d339b;if(typeof _0x36117d==='string')return _0x36117d;if(_0x36117d instanceof Error)return _0x36117d[_0x120f24(0x1d9)]||_0x36117d[_0x120f24(0x1e4)]+':\x20'+_0x36117d[_0x120f24(0x1d2)];try{return JSON['stringify'](_0x36117d,(_0x1e3ec0,_0x404420)=>{const _0x61fa8f=_0x120f24;if(_0x404420 instanceof Error)return{'name':_0x404420[_0x61fa8f(0x1e4)],'message':_0x404420['message'],'stack':_0x404420[_0x61fa8f(0x1d9)],'cause':_0x404420['cause']};return _0x404420;});}catch{return String(_0x36117d);}}export class Logger{[a225_0x4d339b(0x1f9)];constructor(_0x4798b8){const _0x1b0800=a225_0x4d339b;this[_0x1b0800(0x1f9)]=_0x4798b8;}static['of'](_0x3207be){const _0x1878a1=a225_0x4d339b,_0x1c5e2d=typeof _0x3207be===_0x1878a1(0x1f1)?_0x3207be:_0x3207be[_0x1878a1(0x1e4)];let _0x1c39e2=state[_0x1878a1(0x1eb)][_0x1878a1(0x1e3)](_0x1c5e2d);return!_0x1c39e2&&(_0x1c39e2=new Logger(_0x1c5e2d),state[_0x1878a1(0x1eb)]['set'](_0x1c5e2d,_0x1c39e2)),_0x1c39e2;}static async['init'](_0x55d24a={}){const _0x1d0d88=a225_0x4d339b;state[_0x1d0d88(0x1d3)]=_0x55d24a[_0x1d0d88(0x1d3)]??a225_0x525891['INFO'],state[_0x1d0d88(0x1ce)]=_0x55d24a[_0x1d0d88(0x1ce)]??[],state[_0x1d0d88(0x1ff)]=_0x55d24a['formatter']??null,state['levelOverrides'][_0x1d0d88(0x1d7)]();if(_0x55d24a['levelOverrides'])for(const [_0xbe3e39,_0x5557af]of Object['entries'](_0x55d24a[_0x1d0d88(0x1d8)])){state[_0x1d0d88(0x1d8)][_0x1d0d88(0x1e9)](_0xbe3e39,_0x5557af);}for(const _0x261346 of state['handlers']){_0x261346[_0x1d0d88(0x1f8)]&&await _0x261346[_0x1d0d88(0x1f8)]();}state[_0x1d0d88(0x1ef)]=!![];for(const _0x422fc3 of state[_0x1d0d88(0x1cf)]){Logger['dispatch'](_0x422fc3);}state['pendingRecords']=[];}static[a225_0x4d339b(0x200)](_0x1283ac,_0x5c1421){const _0x449ca3=a225_0x4d339b;state[_0x449ca3(0x1d8)][_0x449ca3(0x1e9)](_0x1283ac,_0x5c1421);}static[a225_0x4d339b(0x1fe)](_0x334462){const _0x511736=a225_0x4d339b;state[_0x511736(0x1d3)]=_0x334462;}static[a225_0x4d339b(0x1d6)](_0x2bbe49){const _0x4a8d1d=a225_0x4d339b;state[_0x4a8d1d(0x1ce)][_0x4a8d1d(0x1e0)](_0x2bbe49),state['initialized']&&_0x2bbe49[_0x4a8d1d(0x1f8)]&&_0x2bbe49[_0x4a8d1d(0x1f8)]();}static[a225_0x4d339b(0x1d0)](){state['handlers']=[];}static async[a225_0x4d339b(0x1df)](){const _0x3c8bf7=a225_0x4d339b;for(const _0x2bdb9e of state['handlers']){_0x2bdb9e[_0x3c8bf7(0x1f3)]&&await _0x2bdb9e['close']();}state[_0x3c8bf7(0x1ce)]=[],state['initialized']=![],state[_0x3c8bf7(0x1eb)]['clear'](),state['pendingRecords']=[];}static[a225_0x4d339b(0x1e6)](){const _0x149ebd=a225_0x4d339b;state[_0x149ebd(0x1ef)]=![],state['defaultLevel']=a225_0x525891[_0x149ebd(0x1cd)],state['levelOverrides'][_0x149ebd(0x1d7)](),state[_0x149ebd(0x1ce)]=[],state[_0x149ebd(0x1ff)]=null,state['loggers'][_0x149ebd(0x1d7)](),state[_0x149ebd(0x1cf)]=[];}static[a225_0x4d339b(0x1f7)](){const _0x45fadb=a225_0x4d339b;return state[_0x45fadb(0x1ef)];}static[a225_0x4d339b(0x1e5)](_0x7c36f5){const _0x3ca132=a225_0x4d339b;if(state[_0x3ca132(0x1d8)][_0x3ca132(0x1fd)](_0x7c36f5))return state[_0x3ca132(0x1d8)]['get'](_0x7c36f5);const _0x365e11=_0x7c36f5[_0x3ca132(0x1d4)]('.');for(let _0x54ea48=_0x365e11[_0x3ca132(0x1ec)]-0x1;_0x54ea48>0x0;_0x54ea48--){const _0x1b0a02=_0x365e11[_0x3ca132(0x1db)](0x0,_0x54ea48)['join']('.');if(state[_0x3ca132(0x1d8)][_0x3ca132(0x1fd)](_0x1b0a02))return state[_0x3ca132(0x1d8)][_0x3ca132(0x1e3)](_0x1b0a02);}return state[_0x3ca132(0x1d3)];}[a225_0x4d339b(0x1ea)](_0x29e858){const _0x231c6e=a225_0x4d339b,_0xa7fbb8=Logger[_0x231c6e(0x1e5)](this[_0x231c6e(0x1f9)]);return _0x29e858>=_0xa7fbb8;}static[a225_0x4d339b(0x1e7)](_0x360fa4){const _0x116f34=a225_0x4d339b;for(const _0x301dc6 of state[_0x116f34(0x1ce)]){_0x301dc6['handle'](_0x360fa4);}}[a225_0x4d339b(0x1f5)](_0x1686d9,_0x36a952){const _0x5c40be=a225_0x4d339b;if(!this[_0x5c40be(0x1ea)](_0x1686d9))return;const _0x225d6b=_0x36a952['map'](_0x4f37bc=>typeof _0x4f37bc==='function'?_0x4f37bc():_0x4f37bc),_0x4abb1b=_0x225d6b[_0x5c40be(0x1fc)](safeStringify)['join']('\x20'),_0x54b986={'timestamp':new Date(),'level':_0x1686d9,'component':this[_0x5c40be(0x1f9)],'message':_0x4abb1b};if(!state['initialized']){state[_0x5c40be(0x1cf)]['length']<MAX_PENDING_RECORDS&&state[_0x5c40be(0x1cf)][_0x5c40be(0x1e0)](_0x54b986);return;}Logger['dispatch'](_0x54b986);}[a225_0x4d339b(0x1dd)](..._0x285f51){const _0x34aa5b=a225_0x4d339b;this[_0x34aa5b(0x1f5)](a225_0x525891[_0x34aa5b(0x1d1)],_0x285f51);}[a225_0x4d339b(0x1dc)](..._0x4b13e3){this['log'](a225_0x525891['DEBUG'],_0x4b13e3);}[a225_0x4d339b(0x1da)](..._0x266fe4){const _0x5078aa=a225_0x4d339b;this['log'](a225_0x525891[_0x5078aa(0x1cd)],_0x266fe4);}[a225_0x4d339b(0x1cb)](..._0x108e70){const _0x4dc803=a225_0x4d339b;this[_0x4dc803(0x1f5)](a225_0x525891[_0x4dc803(0x1fb)],_0x108e70);}[a225_0x4d339b(0x1e8)](..._0x549471){const _0x501308=a225_0x4d339b;this['log'](a225_0x525891[_0x501308(0x1ca)],_0x549471);}static['getFormatter'](){const _0x5d1e0b=a225_0x4d339b;return state[_0x5d1e0b(0x1ff)];}static[a225_0x4d339b(0x1cc)](_0xba3f87){const _0x83f3d4=a225_0x4d339b;if(state['formatter'])return state[_0x83f3d4(0x1ff)][_0x83f3d4(0x1cc)](_0xba3f87);return _0xba3f87[_0x83f3d4(0x1ed)][_0x83f3d4(0x1f4)]()+'\x20['+logLevelToString(_0xba3f87[_0x83f3d4(0x1ee)])+_0x83f3d4(0x1e1)+_0xba3f87[_0x83f3d4(0x1f9)]+']\x20'+_0xba3f87['message'];}}
1
+ const a225_0x51d8b1=a225_0x33ac;(function(_0x2917e9,_0x7d424d){const _0x572dc0=a225_0x33ac,_0x2b77df=_0x2917e9();while(!![]){try{const _0x553018=parseInt(_0x572dc0(0x95))/0x1+parseInt(_0x572dc0(0xa4))/0x2*(-parseInt(_0x572dc0(0xa2))/0x3)+-parseInt(_0x572dc0(0x96))/0x4*(parseInt(_0x572dc0(0xba))/0x5)+parseInt(_0x572dc0(0x9f))/0x6+-parseInt(_0x572dc0(0xbf))/0x7+-parseInt(_0x572dc0(0xb3))/0x8*(-parseInt(_0x572dc0(0xa3))/0x9)+parseInt(_0x572dc0(0x9c))/0xa;if(_0x553018===_0x7d424d)break;else _0x2b77df['push'](_0x2b77df['shift']());}catch(_0x6bfc7a){_0x2b77df['push'](_0x2b77df['shift']());}}}(a225_0x51bd,0x81689));import{LogLevel as a225_0x1b712e,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a225_0x1b712e[a225_0x51d8b1(0x8e)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a225_0x51bd(){const _0x2babec=['component','toISOString','push','7548110xPEVze','function','log','4164954jadskP','loggers','handlers','15MXFHuO','27jqecMg','321654tKMFuu','DEBUG','join','dispatch','initialized','TRACE','set','length','format','name','slice','stringify','split','warn','handle','2365800tvgCfs','addHandler','timestamp','setLogLevel','getEffectiveLevel','shutdown','clear','460zZFgYE',']\x20[','shouldLog','trace','string','2441943bhHiFd','cause','isInitialized','reset','entries','levelOverrides','defaultLevel','has','get','INFO','message','init','formatter','error','pendingRecords','stack','144352FQwGVp','34672MXXYJN','WARN','getFormatter'];a225_0x51bd=function(){return _0x2babec;};return a225_0x51bd();}function a225_0x33ac(_0x315ac2,_0x9b2a2){_0x315ac2=_0x315ac2-0x87;const _0x51bd2c=a225_0x51bd();let _0x33ac90=_0x51bd2c[_0x315ac2];return _0x33ac90;}function safeStringify(_0xbae8bc){const _0x374d24=a225_0x51d8b1;if(typeof _0xbae8bc===_0x374d24(0xbe))return _0xbae8bc;if(_0xbae8bc instanceof Error)return _0xbae8bc[_0x374d24(0x94)]||_0xbae8bc[_0x374d24(0xad)]+':\x20'+_0xbae8bc[_0x374d24(0x8f)];try{return JSON[_0x374d24(0xaf)](_0xbae8bc,(_0x10ce16,_0x129dca)=>{const _0x1c7e84=_0x374d24;if(_0x129dca instanceof Error)return{'name':_0x129dca[_0x1c7e84(0xad)],'message':_0x129dca[_0x1c7e84(0x8f)],'stack':_0x129dca[_0x1c7e84(0x94)],'cause':_0x129dca[_0x1c7e84(0xc0)]};return _0x129dca;});}catch{return String(_0xbae8bc);}}export class Logger{[a225_0x51d8b1(0x99)];constructor(_0x4b37f1){const _0x20567a=a225_0x51d8b1;this[_0x20567a(0x99)]=_0x4b37f1;}static['of'](_0x5983e6){const _0xed7849=a225_0x51d8b1,_0x18ecc6=typeof _0x5983e6===_0xed7849(0xbe)?_0x5983e6:_0x5983e6[_0xed7849(0xad)];let _0x41f03e=state[_0xed7849(0xa0)][_0xed7849(0x8d)](_0x18ecc6);return!_0x41f03e&&(_0x41f03e=new Logger(_0x18ecc6),state[_0xed7849(0xa0)]['set'](_0x18ecc6,_0x41f03e)),_0x41f03e;}static async['init'](_0x26a454={}){const _0x32b797=a225_0x51d8b1;state[_0x32b797(0x8b)]=_0x26a454[_0x32b797(0x8b)]??a225_0x1b712e['INFO'],state[_0x32b797(0xa1)]=_0x26a454[_0x32b797(0xa1)]??[],state[_0x32b797(0x91)]=_0x26a454['formatter']??null,state[_0x32b797(0x8a)][_0x32b797(0xb9)]();if(_0x26a454[_0x32b797(0x8a)])for(const [_0x51fcc4,_0xfa2f21]of Object[_0x32b797(0x89)](_0x26a454[_0x32b797(0x8a)])){state[_0x32b797(0x8a)][_0x32b797(0xaa)](_0x51fcc4,_0xfa2f21);}for(const _0x14cee7 of state[_0x32b797(0xa1)]){_0x14cee7[_0x32b797(0x90)]&&await _0x14cee7[_0x32b797(0x90)]();}state[_0x32b797(0xa8)]=!![];for(const _0x21d62d of state[_0x32b797(0x93)]){Logger[_0x32b797(0xa7)](_0x21d62d);}state[_0x32b797(0x93)]=[];}static[a225_0x51d8b1(0xb6)](_0x4fa6b2,_0x6b384b){const _0x1dd2e7=a225_0x51d8b1;state[_0x1dd2e7(0x8a)]['set'](_0x4fa6b2,_0x6b384b);}static['setDefaultLevel'](_0x2b9844){state['defaultLevel']=_0x2b9844;}static[a225_0x51d8b1(0xb4)](_0x20deb9){const _0x24f5ad=a225_0x51d8b1;state[_0x24f5ad(0xa1)][_0x24f5ad(0x9b)](_0x20deb9),state[_0x24f5ad(0xa8)]&&_0x20deb9[_0x24f5ad(0x90)]&&_0x20deb9[_0x24f5ad(0x90)]();}static['clearHandlers'](){const _0x1942aa=a225_0x51d8b1;state[_0x1942aa(0xa1)]=[];}static async[a225_0x51d8b1(0xb8)](){const _0x1891c5=a225_0x51d8b1;for(const _0x21cdc6 of state[_0x1891c5(0xa1)]){_0x21cdc6['close']&&await _0x21cdc6['close']();}state['handlers']=[],state['initialized']=![],state[_0x1891c5(0xa0)][_0x1891c5(0xb9)](),state[_0x1891c5(0x93)]=[];}static[a225_0x51d8b1(0x88)](){const _0x1ce550=a225_0x51d8b1;state['initialized']=![],state[_0x1ce550(0x8b)]=a225_0x1b712e['INFO'],state[_0x1ce550(0x8a)]['clear'](),state[_0x1ce550(0xa1)]=[],state[_0x1ce550(0x91)]=null,state[_0x1ce550(0xa0)][_0x1ce550(0xb9)](),state['pendingRecords']=[];}static[a225_0x51d8b1(0x87)](){const _0x4c3d71=a225_0x51d8b1;return state[_0x4c3d71(0xa8)];}static['getEffectiveLevel'](_0x5111c5){const _0xc5a30a=a225_0x51d8b1;if(state['levelOverrides'][_0xc5a30a(0x8c)](_0x5111c5))return state[_0xc5a30a(0x8a)][_0xc5a30a(0x8d)](_0x5111c5);const _0x3b8d5e=_0x5111c5[_0xc5a30a(0xb0)]('.');for(let _0x378435=_0x3b8d5e['length']-0x1;_0x378435>0x0;_0x378435--){const _0x56a9b3=_0x3b8d5e[_0xc5a30a(0xae)](0x0,_0x378435)[_0xc5a30a(0xa6)]('.');if(state[_0xc5a30a(0x8a)][_0xc5a30a(0x8c)](_0x56a9b3))return state[_0xc5a30a(0x8a)][_0xc5a30a(0x8d)](_0x56a9b3);}return state[_0xc5a30a(0x8b)];}['shouldLog'](_0x104a96){const _0x19d474=a225_0x51d8b1,_0x1fae7c=Logger[_0x19d474(0xb7)](this[_0x19d474(0x99)]);return _0x104a96>=_0x1fae7c;}static[a225_0x51d8b1(0xa7)](_0x1aa87b){const _0x218c8f=a225_0x51d8b1;for(const _0x47a263 of state[_0x218c8f(0xa1)]){_0x47a263[_0x218c8f(0xb2)](_0x1aa87b);}}[a225_0x51d8b1(0x9e)](_0x3dce6b,_0x30ebd7){const _0x1cef01=a225_0x51d8b1;if(!this[_0x1cef01(0xbc)](_0x3dce6b))return;const _0x2c09c2=_0x30ebd7['map'](_0x33997d=>typeof _0x33997d===_0x1cef01(0x9d)?_0x33997d():_0x33997d),_0x49dced=_0x2c09c2['map'](safeStringify)['join']('\x20'),_0x5dc9d6={'timestamp':new Date(),'level':_0x3dce6b,'component':this[_0x1cef01(0x99)],'message':_0x49dced};if(!state[_0x1cef01(0xa8)]){state['pendingRecords'][_0x1cef01(0xab)]<MAX_PENDING_RECORDS&&state[_0x1cef01(0x93)][_0x1cef01(0x9b)](_0x5dc9d6);return;}Logger[_0x1cef01(0xa7)](_0x5dc9d6);}[a225_0x51d8b1(0xbd)](..._0x234a5d){const _0x47f5b9=a225_0x51d8b1;this[_0x47f5b9(0x9e)](a225_0x1b712e[_0x47f5b9(0xa9)],_0x234a5d);}['debug'](..._0xe59f44){const _0x49c19e=a225_0x51d8b1;this[_0x49c19e(0x9e)](a225_0x1b712e[_0x49c19e(0xa5)],_0xe59f44);}['info'](..._0x32d316){const _0x11c4d6=a225_0x51d8b1;this[_0x11c4d6(0x9e)](a225_0x1b712e['INFO'],_0x32d316);}[a225_0x51d8b1(0xb1)](..._0x18dff6){const _0xef8a07=a225_0x51d8b1;this[_0xef8a07(0x9e)](a225_0x1b712e[_0xef8a07(0x97)],_0x18dff6);}[a225_0x51d8b1(0x92)](..._0x50037e){const _0x59ac24=a225_0x51d8b1;this[_0x59ac24(0x9e)](a225_0x1b712e['ERROR'],_0x50037e);}static[a225_0x51d8b1(0x98)](){const _0x18ee57=a225_0x51d8b1;return state[_0x18ee57(0x91)];}static['format'](_0x4f8209){const _0x1b0e4b=a225_0x51d8b1;if(state[_0x1b0e4b(0x91)])return state[_0x1b0e4b(0x91)][_0x1b0e4b(0xac)](_0x4f8209);return _0x4f8209[_0x1b0e4b(0xb5)][_0x1b0e4b(0x9a)]()+'\x20['+logLevelToString(_0x4f8209['level'])+_0x1b0e4b(0xbb)+_0x4f8209[_0x1b0e4b(0x99)]+']\x20'+_0x4f8209[_0x1b0e4b(0x8f)];}}
@@ -1 +1 @@
1
- (function(_0x5c41c6,_0x36131f){const _0x1db59e=a226_0x9569,_0x33636e=_0x5c41c6();while(!![]){try{const _0x4adc8d=-parseInt(_0x1db59e(0xda))/0x1*(-parseInt(_0x1db59e(0xcb))/0x2)+parseInt(_0x1db59e(0xdb))/0x3*(parseInt(_0x1db59e(0xdd))/0x4)+-parseInt(_0x1db59e(0xd9))/0x5*(parseInt(_0x1db59e(0xc1))/0x6)+parseInt(_0x1db59e(0xd8))/0x7+-parseInt(_0x1db59e(0xd6))/0x8*(-parseInt(_0x1db59e(0xe1))/0x9)+-parseInt(_0x1db59e(0xd4))/0xa*(parseInt(_0x1db59e(0xcc))/0xb)+-parseInt(_0x1db59e(0xcd))/0xc*(parseInt(_0x1db59e(0xe2))/0xd);if(_0x4adc8d===_0x36131f)break;else _0x33636e['push'](_0x33636e['shift']());}catch(_0x3b7e85){_0x33636e['push'](_0x33636e['shift']());}}}(a226_0x5381,0x8fefd));export var LogLevel;function a226_0x9569(_0x18803d,_0x31c45e){_0x18803d=_0x18803d-0xc0;const _0x53818c=a226_0x5381();let _0x956948=_0x53818c[_0x18803d];return _0x956948;}(function(_0x2029e4){const _0x17e5f7=a226_0x9569;_0x2029e4[_0x2029e4[_0x17e5f7(0xc8)]=-0x2]=_0x17e5f7(0xc8),_0x2029e4[_0x2029e4[_0x17e5f7(0xdf)]=-0x1]='DEBUG',_0x2029e4[_0x2029e4[_0x17e5f7(0xcf)]=0x0]=_0x17e5f7(0xcf),_0x2029e4[_0x2029e4[_0x17e5f7(0xca)]=0x1]=_0x17e5f7(0xca),_0x2029e4[_0x2029e4[_0x17e5f7(0xc5)]=0x2]=_0x17e5f7(0xc5);}(LogLevel||(LogLevel={})));function a226_0x5381(){const _0x28d934=['getDate','error','TRACE','getTimezoneOffset','WARN','4306ZzwxTS','88AibAWy','1190232lpcqkX','abs','INFO','getHours','WARNING','trace','getMinutes','90010OEbcud','getFullYear','2526512PfVmFq','toUpperCase','5357800tXoOvD','200930AnwjWw','239GfvZHX','90wZIZaT','toString','69476MCwrQI','floor','DEBUG','info','9tyxwGv','117MkhCmz','padStart','84OqEIkz','warn','getMonth','getMilliseconds','ERROR'];a226_0x5381=function(){return _0x28d934;};return a226_0x5381();}export function parseLogLevel(_0x464f4a){const _0x5cb026=a226_0x9569;switch(_0x464f4a[_0x5cb026(0xd7)]()){case'TRACE':return LogLevel[_0x5cb026(0xc8)];case'DEBUG':return LogLevel['DEBUG'];case _0x5cb026(0xcf):return LogLevel[_0x5cb026(0xcf)];case _0x5cb026(0xca):case _0x5cb026(0xd1):return LogLevel[_0x5cb026(0xca)];case _0x5cb026(0xc5):return LogLevel[_0x5cb026(0xc5)];default:return LogLevel[_0x5cb026(0xcf)];}}export function logLevelToString(_0x1b7ef0){const _0x7b04b4=a226_0x9569;switch(_0x1b7ef0){case LogLevel[_0x7b04b4(0xc8)]:return _0x7b04b4(0xd2);case LogLevel[_0x7b04b4(0xdf)]:return'debug';case LogLevel[_0x7b04b4(0xcf)]:return _0x7b04b4(0xe0);case LogLevel[_0x7b04b4(0xca)]:return _0x7b04b4(0xc2);case LogLevel[_0x7b04b4(0xc5)]:return _0x7b04b4(0xc7);default:return _0x7b04b4(0xe0);}}export function formatTimestamp(_0x317ed2){const _0x643982=a226_0x9569,_0x59fa19=_0x317ed2[_0x643982(0xd5)](),_0x249341=(_0x317ed2[_0x643982(0xc3)]()+0x1)['toString']()[_0x643982(0xc0)](0x2,'0'),_0x276554=_0x317ed2[_0x643982(0xc6)]()[_0x643982(0xdc)]()[_0x643982(0xc0)](0x2,'0'),_0x8e4b38=_0x317ed2[_0x643982(0xd0)]()[_0x643982(0xdc)]()['padStart'](0x2,'0'),_0x221ed8=_0x317ed2[_0x643982(0xd3)]()['toString']()[_0x643982(0xc0)](0x2,'0'),_0x483234=_0x317ed2['getSeconds']()[_0x643982(0xdc)]()['padStart'](0x2,'0'),_0x4797be=_0x317ed2[_0x643982(0xc4)]()[_0x643982(0xdc)]()[_0x643982(0xc0)](0x3,'0'),_0x1f7e8b=-_0x317ed2[_0x643982(0xc9)](),_0x182856=Math[_0x643982(0xde)](Math[_0x643982(0xce)](_0x1f7e8b)/0x3c),_0x36fe88=Math[_0x643982(0xce)](_0x1f7e8b)%0x3c,_0x38a732=_0x1f7e8b>=0x0?'+':'-',_0x5bebb1=''+_0x38a732+_0x182856[_0x643982(0xdc)]()[_0x643982(0xc0)](0x2,'0')+_0x36fe88[_0x643982(0xdc)]()[_0x643982(0xc0)](0x2,'0');return _0x59fa19+'-'+_0x249341+'-'+_0x276554+'\x20'+_0x8e4b38+':'+_0x221ed8+':'+_0x483234+'.'+_0x4797be+_0x5bebb1;}
1
+ (function(_0x945e04,_0x1b4c45){const _0x47d3a3=a226_0x42f6,_0x155aa5=_0x945e04();while(!![]){try{const _0x4328fd=-parseInt(_0x47d3a3(0xa4))/0x1*(-parseInt(_0x47d3a3(0xad))/0x2)+-parseInt(_0x47d3a3(0xb0))/0x3+-parseInt(_0x47d3a3(0xa8))/0x4+-parseInt(_0x47d3a3(0xa7))/0x5*(-parseInt(_0x47d3a3(0x9e))/0x6)+-parseInt(_0x47d3a3(0xa3))/0x7*(parseInt(_0x47d3a3(0xa0))/0x8)+parseInt(_0x47d3a3(0xaf))/0x9+-parseInt(_0x47d3a3(0x9f))/0xa*(-parseInt(_0x47d3a3(0xac))/0xb);if(_0x4328fd===_0x1b4c45)break;else _0x155aa5['push'](_0x155aa5['shift']());}catch(_0x3f716e){_0x155aa5['push'](_0x155aa5['shift']());}}}(a226_0x43f9,0x42ea8));export var LogLevel;(function(_0x37ae31){const _0xb2edd6=a226_0x42f6;_0x37ae31[_0x37ae31[_0xb2edd6(0x9d)]=-0x2]='TRACE',_0x37ae31[_0x37ae31[_0xb2edd6(0xab)]=-0x1]='DEBUG',_0x37ae31[_0x37ae31[_0xb2edd6(0xa1)]=0x0]=_0xb2edd6(0xa1),_0x37ae31[_0x37ae31[_0xb2edd6(0x9c)]=0x1]='WARN',_0x37ae31[_0x37ae31[_0xb2edd6(0xaa)]=0x2]=_0xb2edd6(0xaa);}(LogLevel||(LogLevel={})));function a226_0x42f6(_0x298fde,_0x17ed54){_0x298fde=_0x298fde-0x98;const _0x43f9d3=a226_0x43f9();let _0x42f60c=_0x43f9d3[_0x298fde];return _0x42f60c;}export function parseLogLevel(_0x54d730){const _0x18f66f=a226_0x42f6;switch(_0x54d730[_0x18f66f(0xa6)]()){case _0x18f66f(0x9d):return LogLevel[_0x18f66f(0x9d)];case _0x18f66f(0xab):return LogLevel[_0x18f66f(0xab)];case _0x18f66f(0xa1):return LogLevel[_0x18f66f(0xa1)];case _0x18f66f(0x9c):case'WARNING':return LogLevel[_0x18f66f(0x9c)];case _0x18f66f(0xaa):return LogLevel[_0x18f66f(0xaa)];default:return LogLevel[_0x18f66f(0xa1)];}}export function logLevelToString(_0x44ed1e){const _0x3216d5=a226_0x42f6;switch(_0x44ed1e){case LogLevel[_0x3216d5(0x9d)]:return'trace';case LogLevel[_0x3216d5(0xab)]:return'debug';case LogLevel['INFO']:return _0x3216d5(0x9a);case LogLevel[_0x3216d5(0x9c)]:return _0x3216d5(0xa2);case LogLevel[_0x3216d5(0xaa)]:return _0x3216d5(0xae);default:return'info';}}export function formatTimestamp(_0x975b40){const _0xb1f6b6=a226_0x42f6,_0x4b29f1=_0x975b40['getFullYear'](),_0x2e4891=(_0x975b40['getMonth']()+0x1)['toString']()['padStart'](0x2,'0'),_0x113769=_0x975b40['getDate']()[_0xb1f6b6(0xa9)]()['padStart'](0x2,'0'),_0x190f0b=_0x975b40[_0xb1f6b6(0xb2)]()[_0xb1f6b6(0xa9)]()['padStart'](0x2,'0'),_0xca64d0=_0x975b40['getMinutes']()[_0xb1f6b6(0xa9)]()['padStart'](0x2,'0'),_0x245a12=_0x975b40['getSeconds']()[_0xb1f6b6(0xa9)]()[_0xb1f6b6(0x9b)](0x2,'0'),_0x12a52f=_0x975b40[_0xb1f6b6(0x99)]()[_0xb1f6b6(0xa9)]()[_0xb1f6b6(0x9b)](0x3,'0'),_0x3c6600=-_0x975b40[_0xb1f6b6(0xb1)](),_0x14d645=Math[_0xb1f6b6(0xa5)](Math[_0xb1f6b6(0x98)](_0x3c6600)/0x3c),_0x14a556=Math[_0xb1f6b6(0x98)](_0x3c6600)%0x3c,_0x1ec723=_0x3c6600>=0x0?'+':'-',_0x30cbdc=''+_0x1ec723+_0x14d645[_0xb1f6b6(0xa9)]()[_0xb1f6b6(0x9b)](0x2,'0')+_0x14a556[_0xb1f6b6(0xa9)]()[_0xb1f6b6(0x9b)](0x2,'0');return _0x4b29f1+'-'+_0x2e4891+'-'+_0x113769+'\x20'+_0x190f0b+':'+_0xca64d0+':'+_0x245a12+'.'+_0x12a52f+_0x30cbdc;}function a226_0x43f9(){const _0xc32ec=['warn','21RUKOcC','11QNxMrV','floor','toUpperCase','965OYppim','216760wkCHHX','toString','ERROR','DEBUG','11nCGztb','29686QPrfIm','error','2233179hFPvRW','1308453iudwpc','getTimezoneOffset','getHours','abs','getMilliseconds','info','padStart','WARN','TRACE','14082mYUspP','700130UoyupT','453224ojXkUg','INFO'];a226_0x43f9=function(){return _0xc32ec;};return a226_0x43f9();}
@@ -1 +1 @@
1
- function a227_0x374f(_0x42cfb2,_0x134bc6){_0x42cfb2=_0x42cfb2-0x81;const _0x2774ce=a227_0x2774();let _0x374f16=_0x2774ce[_0x42cfb2];return _0x374f16;}function a227_0x2774(){const _0x397964=['.\x20Must\x20be\x20a\x20positive\x20number.','11AqUmSy','2279601DRpSJW','166910lTbaqp','5211855BWVTzx','312YwlNsz','Invalid\x20limit\x20value:\x20','21132eBxPQn','isInteger','130851TQhfdd','.\x20Must\x20be\x20a\x20positive\x20integer.','number','42hvZogn','.\x20Must\x20be\x20an\x20integer.','396CmSYhh','29145240EiUcLh','.\x20Must\x20be\x20a\x20number.','168872RprUUc','32MQejWj'];a227_0x2774=function(){return _0x397964;};return a227_0x2774();}(function(_0x44f985,_0x530a90){const _0x50e416=a227_0x374f,_0x3d02e0=_0x44f985();while(!![]){try{const _0x16d67b=-parseInt(_0x50e416(0x8a))/0x1*(parseInt(_0x50e416(0x87))/0x2)+parseInt(_0x50e416(0x90))/0x3*(parseInt(_0x50e416(0x8e))/0x4)+-parseInt(_0x50e416(0x8d))/0x5+parseInt(_0x50e416(0x82))/0x6*(parseInt(_0x50e416(0x92))/0x7)+parseInt(_0x50e416(0x88))/0x8*(-parseInt(_0x50e416(0x8b))/0x9)+parseInt(_0x50e416(0x8c))/0xa*(parseInt(_0x50e416(0x84))/0xb)+parseInt(_0x50e416(0x85))/0xc;if(_0x16d67b===_0x530a90)break;else _0x3d02e0['push'](_0x3d02e0['shift']());}catch(_0x1d8ca5){_0x3d02e0['push'](_0x3d02e0['shift']());}}}(a227_0x2774,0xb1266));export function validateLimitOption(_0x15e902){const _0xd6b70f=a227_0x374f;if(!Number[_0xd6b70f(0x91)](_0x15e902))return{'isValid':![],'error':_0xd6b70f(0x8f)+_0x15e902+_0xd6b70f(0x83)};if(_0x15e902<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x15e902+_0xd6b70f(0x93)};return{'isValid':!![],'value':_0x15e902};}export function validateTimeoutOption(_0x520d42,_0x2f049d=0x1e){const _0x384d00=a227_0x374f;if(_0x520d42===undefined)return{'isValid':!![],'value':_0x2f049d};const _0x1a9463=typeof _0x520d42===_0x384d00(0x81)?_0x520d42:parseFloat(_0x520d42);if(isNaN(_0x1a9463))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x520d42+_0x384d00(0x86)};if(_0x1a9463<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x1a9463+_0x384d00(0x89)};return{'isValid':!![],'value':_0x1a9463};}
1
+ (function(_0x5bdbbe,_0xa4a4c6){const _0x54f614=a227_0x6cfb,_0x14fba2=_0x5bdbbe();while(!![]){try{const _0x7c7eb4=-parseInt(_0x54f614(0x1ec))/0x1+parseInt(_0x54f614(0x1e8))/0x2+parseInt(_0x54f614(0x1e9))/0x3*(parseInt(_0x54f614(0x1e3))/0x4)+-parseInt(_0x54f614(0x1e7))/0x5+parseInt(_0x54f614(0x1ed))/0x6*(-parseInt(_0x54f614(0x1e4))/0x7)+parseInt(_0x54f614(0x1e2))/0x8+parseInt(_0x54f614(0x1ea))/0x9;if(_0x7c7eb4===_0xa4a4c6)break;else _0x14fba2['push'](_0x14fba2['shift']());}catch(_0x3d3087){_0x14fba2['push'](_0x14fba2['shift']());}}}(a227_0x1fea,0x193c5));export function validateLimitOption(_0x57e00e){const _0x252f21=a227_0x6cfb;if(!Number[_0x252f21(0x1e6)](_0x57e00e))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x57e00e+_0x252f21(0x1e5)};if(_0x57e00e<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x57e00e+_0x252f21(0x1df)};return{'isValid':!![],'value':_0x57e00e};}function a227_0x6cfb(_0x11e2de,_0x42ee06){_0x11e2de=_0x11e2de-0x1de;const _0x1feaf7=a227_0x1fea();let _0x6cfbb4=_0x1feaf7[_0x11e2de];return _0x6cfbb4;}export function validateTimeoutOption(_0x145b87,_0x531533=0x1e){const _0x5e8a7f=a227_0x6cfb;if(_0x145b87===undefined)return{'isValid':!![],'value':_0x531533};const _0x1a56e0=typeof _0x145b87===_0x5e8a7f(0x1e0)?_0x145b87:parseFloat(_0x145b87);if(isNaN(_0x1a56e0))return{'isValid':![],'error':_0x5e8a7f(0x1e1)+_0x145b87+_0x5e8a7f(0x1eb)};if(_0x1a56e0<=0x0)return{'isValid':![],'error':_0x5e8a7f(0x1e1)+_0x1a56e0+_0x5e8a7f(0x1de)};return{'isValid':!![],'value':_0x1a56e0};}function a227_0x1fea(){const _0x19707d=['14wGqPGj','.\x20Must\x20be\x20an\x20integer.','isInteger','1003555PseyzW','60794YnjeJv','939XBkAwX','2568204iDGOez','.\x20Must\x20be\x20a\x20number.','46266FDVuhK','262614bZDkQq','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20positive\x20integer.','number','Invalid\x20timeout\x20value:\x20','964496xZMvRP','20XdwEav'];a227_0x1fea=function(){return _0x19707d;};return a227_0x1fea();}
@@ -1 +1 @@
1
- const a228_0x1b95f6=a228_0x14b6;function a228_0x5873(){const _0x1863af=['join','1927648EzlyYQ','284486sTHiBt','unref','which','cmd.exe','cursor','platform','ignore','ppid','3001684mbYjjd','2136048OkDORc','pop','win32','powershell','start','pipe','elvish','ion','open','treasure\x20studio','kill','map','split','bash','7362tOkqBh','pwsh','xonsh','10kHcoqU','exit','1352928hSfGCD','Invalid\x20URL:\x20','comm','darwin','\x20-o\x20ppid=,comm=','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','code','trim','fish','89493adpKpj','xdg-open','has','isInteger','electron','zsh','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','dash','6830MCgZxM','replace','3SoBGZj','utf-8','claude','https:','test','csh','where.exe','toLowerCase','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','pid','protocol'];a228_0x5873=function(){return _0x1863af;};return a228_0x5873();}(function(_0x4ff82e,_0x30796a){const _0x13484e=a228_0x14b6,_0x354c77=_0x4ff82e();while(!![]){try{const _0x204cea=-parseInt(_0x13484e(0x20d))/0x1+parseInt(_0x13484e(0x224))/0x2*(-parseInt(_0x13484e(0x217))/0x3)+parseInt(_0x13484e(0x223))/0x4+parseInt(_0x13484e(0x202))/0x5*(parseInt(_0x13484e(0x204))/0x6)+parseInt(_0x13484e(0x22c))/0x7+-parseInt(_0x13484e(0x1f1))/0x8+parseInt(_0x13484e(0x1ff))/0x9*(-parseInt(_0x13484e(0x215))/0xa);if(_0x204cea===_0x30796a)break;else _0x354c77['push'](_0x354c77['shift']());}catch(_0x119e0d){_0x354c77['push'](_0x354c77['shift']());}}}(a228_0x5873,0x4a488));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a228_0x1b95f6(0x1fe),a228_0x1b95f6(0x212),'sh',a228_0x1b95f6(0x20c),'ksh','tcsh',a228_0x1b95f6(0x21c),a228_0x1b95f6(0x214),a228_0x1b95f6(0x200),a228_0x1b95f6(0x1f4),'nu',a228_0x1b95f6(0x1f8),a228_0x1b95f6(0x1f7),a228_0x1b95f6(0x201)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a228_0x1b95f6(0x219),a228_0x1b95f6(0x20a),a228_0x1b95f6(0x228),a228_0x1b95f6(0x211),a228_0x1b95f6(0x1fa)]);function getProcessInfoWindows(_0x35b25a){const _0x3354d8=a228_0x1b95f6;try{if(!Number[_0x3354d8(0x210)](_0x35b25a)||_0x35b25a<=0x0)return null;const _0x5e6571=_0x3354d8(0x21f)+_0x35b25a+_0x3354d8(0x213),_0xf4ee21=execSync(_0x3354d8(0x209)+_0x5e6571+'\x22',{'encoding':_0x3354d8(0x218),'windowsHide':!![],'stdio':[_0x3354d8(0x1f6),_0x3354d8(0x1f6),_0x3354d8(0x1f6)]})[_0x3354d8(0x20b)]();if(!_0xf4ee21)return null;const [_0xcff53,..._0x6cb398]=_0xf4ee21[_0x3354d8(0x1fd)](','),_0x343edc=parseInt(_0xcff53,0xa),_0x450729=_0x6cb398[_0x3354d8(0x222)](',')[_0x3354d8(0x20b)]();if(isNaN(_0x343edc)||!_0x450729)return null;return{'pid':_0x35b25a,'ppid':_0x343edc,'comm':_0x450729[_0x3354d8(0x216)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x574d5a){const _0x2197be=a228_0x1b95f6;try{const _0x15688d=0x400000;if(!Number['isInteger'](_0x574d5a)||_0x574d5a<=0x0||_0x574d5a>_0x15688d)return null;const _0x2609cf=execSync('ps\x20-p\x20'+_0x574d5a+_0x2197be(0x208),{'encoding':_0x2197be(0x218),'stdio':_0x2197be(0x1f6)})['trim'](),[_0x288776,..._0x4d20fe]=_0x2609cf[_0x2197be(0x1fd)](/\s+/),_0x357e0f=parseInt(_0x288776,0xa),_0x3e84b8=_0x4d20fe[_0x2197be(0x222)]('\x20');if(isNaN(_0x357e0f))return null;return{'pid':_0x574d5a,'ppid':_0x357e0f,'comm':_0x3e84b8};}catch{return null;}}function getProcessInfo(_0xaf5660){const _0x358ba4=a228_0x1b95f6;if(process[_0x358ba4(0x229)]===_0x358ba4(0x1f3))return getProcessInfoWindows(_0xaf5660);return getProcessInfoPosix(_0xaf5660);}function getBasename(_0x698e99){const _0x5d207d=a228_0x1b95f6;return _0x698e99[_0x5d207d(0x216)](/^-/,'')[_0x5d207d(0x1fd)]('/')[_0x5d207d(0x1f2)]()?.[_0x5d207d(0x21e)]()||'';}function isShell(_0x4d8547){const _0x203776=a228_0x1b95f6;return SHELL_NAMES[_0x203776(0x20f)](getBasename(_0x4d8547));}function isEphemeralShellSpawner(_0xe0457f){const _0x3f9ef1=a228_0x1b95f6;return EPHEMERAL_SHELL_SPAWNERS[_0x3f9ef1(0x20f)](getBasename(_0xe0457f));}let cachedShellPID;function findShellPID(){const _0x1400d7=a228_0x1b95f6;if(process[_0x1400d7(0x22b)]===undefined)return process[_0x1400d7(0x220)];let _0xa39175=process[_0x1400d7(0x22b)];const _0x325ac0=0xa;let _0x170cea=0x0;while(_0x170cea<_0x325ac0){const _0x49a715=getProcessInfo(_0xa39175);if(!_0x49a715)break;if(isShell(_0x49a715[_0x1400d7(0x206)])){const _0x132861=getProcessInfo(_0x49a715['ppid']);if(_0x132861&&isEphemeralShellSpawner(_0x132861[_0x1400d7(0x206)])){_0xa39175=_0x49a715[_0x1400d7(0x22b)],_0x170cea++;continue;}return _0x49a715[_0x1400d7(0x220)];}if(_0x49a715['ppid']===0x0||_0x49a715[_0x1400d7(0x22b)]===0x1){if(isShell(_0x49a715[_0x1400d7(0x206)]))return _0x49a715['pid'];break;}_0xa39175=_0x49a715['ppid'],_0x170cea++;}return process[_0x1400d7(0x22b)]!==undefined?process[_0x1400d7(0x22b)]:process['pid'];}function a228_0x14b6(_0x3ed781,_0x3b868a){_0x3ed781=_0x3ed781-0x1f1;const _0x587341=a228_0x5873();let _0x14b662=_0x587341[_0x3ed781];return _0x14b662;}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x15001d){const _0x481a32=a228_0x1b95f6;if(!Number[_0x481a32(0x210)](_0x15001d)||_0x15001d<=0x0)return![];try{return process[_0x481a32(0x1fb)](_0x15001d,0x0),!![];}catch{return![];}}export function openBrowser(_0x22e395){const _0x38c61f=a228_0x1b95f6;let _0x2efeb1;try{_0x2efeb1=new URL(_0x22e395);}catch{throw new Error(_0x38c61f(0x205)+_0x22e395);}if(_0x2efeb1['protocol']!=='http:'&&_0x2efeb1[_0x38c61f(0x221)]!==_0x38c61f(0x21a))throw new Error('Unsupported\x20protocol:\x20'+_0x2efeb1[_0x38c61f(0x221)]);const _0x5a2061=_0x2efeb1['href'],_0x2b4837=process[_0x38c61f(0x229)];if(_0x2b4837==='win32')spawn(_0x38c61f(0x227),['/c',_0x38c61f(0x1f5),'',_0x5a2061],{'detached':!![],'stdio':_0x38c61f(0x22a)})[_0x38c61f(0x225)]();else{const _0x518a75=_0x2b4837===_0x38c61f(0x207)?_0x38c61f(0x1f9):_0x38c61f(0x20e);spawn(_0x518a75,[_0x5a2061],{'detached':!![],'stdio':_0x38c61f(0x22a)})[_0x38c61f(0x225)]();}}export function isWindows(){const _0xdbe7de=a228_0x1b95f6;return process[_0xdbe7de(0x229)]===_0xdbe7de(0x1f3);}export function getCrossSpawnOptions(_0x210e4a){return{..._0x210e4a??{},'shell':isWindows()};}export function escapeWindowsArg(_0x2f9717){const _0x27b368=a228_0x1b95f6;if(!/[ \t"&|<>^%!`\r\n]/[_0x27b368(0x21b)](_0x2f9717))return _0x2f9717;const _0x201fdd=_0x2f9717[_0x27b368(0x216)](/"/g,'\x22\x22');return'\x22'+_0x201fdd+'\x22';}export function crossSpawn(_0x170469,_0x265758,_0x45d578){const _0x4fc0f5=a228_0x1b95f6;if(isWindows()){const _0x33257a=escapeWindowsArg(_0x170469),_0x407201=_0x265758[_0x4fc0f5(0x1fc)](escapeWindowsArg),_0x576334=[_0x33257a,..._0x407201][_0x4fc0f5(0x222)]('\x20');return spawn(_0x576334,[],{..._0x45d578,'shell':!![]});}return spawn(_0x170469,_0x265758,{..._0x45d578,'shell':![]});}export function gracefulExit(_0xe64bb5=0x0){const _0x1582cd=a228_0x1b95f6;isWindows()?setTimeout(()=>process[_0x1582cd(0x203)](_0xe64bb5),0x32):process['exit'](_0xe64bb5);}export function findExecutable(_0x28ffea,_0x90e6a6=0x1388){return new Promise(_0x45948f=>{const _0x3d3f7c=a228_0x14b6,_0x416c31=isWindows()?_0x3d3f7c(0x21d):_0x3d3f7c(0x226);execFile(_0x416c31,[_0x28ffea],{'timeout':_0x90e6a6,'windowsHide':!![]},(_0x2cd04a,_0x357f10)=>{const _0x46e114=_0x3d3f7c;if(_0x2cd04a||!_0x357f10[_0x46e114(0x20b)]())_0x45948f(null);else{const _0x5bf4f8=_0x357f10[_0x46e114(0x20b)]()[_0x46e114(0x1fd)](/\r?\n/)[0x0];_0x45948f(_0x5bf4f8);}});});}
1
+ const a228_0x541ab9=a228_0x2dcf;(function(_0x2f8d5e,_0x99539b){const _0x40ff07=a228_0x2dcf,_0x336590=_0x2f8d5e();while(!![]){try{const _0x14ac3c=parseInt(_0x40ff07(0xb8))/0x1+parseInt(_0x40ff07(0xd9))/0x2+-parseInt(_0x40ff07(0xa6))/0x3+parseInt(_0x40ff07(0xb2))/0x4*(parseInt(_0x40ff07(0xbc))/0x5)+-parseInt(_0x40ff07(0xcf))/0x6+-parseInt(_0x40ff07(0xb7))/0x7*(-parseInt(_0x40ff07(0xd8))/0x8)+-parseInt(_0x40ff07(0xd7))/0x9;if(_0x14ac3c===_0x99539b)break;else _0x336590['push'](_0x336590['shift']());}catch(_0x9d1967){_0x336590['push'](_0x336590['shift']());}}}(a228_0x12f9,0x674af));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a228_0x541ab9(0xba),'sh','fish','ksh','tcsh',a228_0x541ab9(0xb6),a228_0x541ab9(0xca),a228_0x541ab9(0xb0),a228_0x541ab9(0xcd),'nu',a228_0x541ab9(0xd2),'elvish','xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a228_0x541ab9(0xb5),a228_0x541ab9(0xbf),a228_0x541ab9(0xbb),a228_0x541ab9(0xc1)]);function getProcessInfoWindows(_0x40caa3){const _0x735175=a228_0x541ab9;try{if(!Number['isInteger'](_0x40caa3)||_0x40caa3<=0x0)return null;const _0x2165db=_0x735175(0xab)+_0x40caa3+_0x735175(0xd5),_0x3e27d6=execSync(_0x735175(0xc3)+_0x2165db+'\x22',{'encoding':_0x735175(0xc2),'windowsHide':!![],'stdio':[_0x735175(0xd4),'pipe','pipe']})[_0x735175(0xa7)]();if(!_0x3e27d6)return null;const [_0x61ac76,..._0x505ce7]=_0x3e27d6[_0x735175(0xdb)](','),_0x1fb19f=parseInt(_0x61ac76,0xa),_0x3a9b12=_0x505ce7[_0x735175(0xc9)](',')[_0x735175(0xa7)]();if(isNaN(_0x1fb19f)||!_0x3a9b12)return null;return{'pid':_0x40caa3,'ppid':_0x1fb19f,'comm':_0x3a9b12[_0x735175(0xb9)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x8942da){const _0x286126=a228_0x541ab9;try{const _0x4c93d7=0x400000;if(!Number[_0x286126(0xbe)](_0x8942da)||_0x8942da<=0x0||_0x8942da>_0x4c93d7)return null;const _0x4b6e80=execSync(_0x286126(0xd1)+_0x8942da+_0x286126(0xc6),{'encoding':'utf-8','stdio':_0x286126(0xd4)})[_0x286126(0xa7)](),[_0xe09aec,..._0x489265]=_0x4b6e80[_0x286126(0xdb)](/\s+/),_0x4db1a8=parseInt(_0xe09aec,0xa),_0x3afe8c=_0x489265[_0x286126(0xc9)]('\x20');if(isNaN(_0x4db1a8))return null;return{'pid':_0x8942da,'ppid':_0x4db1a8,'comm':_0x3afe8c};}catch{return null;}}function a228_0x2dcf(_0x5292b6,_0x4dfe81){_0x5292b6=_0x5292b6-0xa6;const _0x12f97f=a228_0x12f9();let _0x2dcf6a=_0x12f97f[_0x5292b6];return _0x2dcf6a;}function getProcessInfo(_0x4ff56c){const _0x36ea17=a228_0x541ab9;if(process[_0x36ea17(0xb4)]===_0x36ea17(0xb3))return getProcessInfoWindows(_0x4ff56c);return getProcessInfoPosix(_0x4ff56c);}function getBasename(_0x1cdb6d){const _0xbb0598=a228_0x541ab9;return _0x1cdb6d[_0xbb0598(0xb9)](/^-/,'')[_0xbb0598(0xdb)]('/')[_0xbb0598(0xc4)]()?.[_0xbb0598(0xaa)]()||'';}function isShell(_0x471e02){const _0x501bc8=a228_0x541ab9;return SHELL_NAMES[_0x501bc8(0xac)](getBasename(_0x471e02));}function isEphemeralShellSpawner(_0x1aed7d){const _0x340bec=a228_0x541ab9;return EPHEMERAL_SHELL_SPAWNERS[_0x340bec(0xac)](getBasename(_0x1aed7d));}let cachedShellPID;function findShellPID(){const _0x36cc53=a228_0x541ab9;if(process[_0x36cc53(0xda)]===undefined)return process[_0x36cc53(0xd6)];let _0x4dc8e5=process[_0x36cc53(0xda)];const _0xcdb87c=0xa;let _0x1c0260=0x0;while(_0x1c0260<_0xcdb87c){const _0x2ee8da=getProcessInfo(_0x4dc8e5);if(!_0x2ee8da)break;if(isShell(_0x2ee8da['comm'])){const _0x28fb95=getProcessInfo(_0x2ee8da[_0x36cc53(0xda)]);if(_0x28fb95&&isEphemeralShellSpawner(_0x28fb95[_0x36cc53(0xcc)])){_0x4dc8e5=_0x2ee8da[_0x36cc53(0xda)],_0x1c0260++;continue;}return _0x2ee8da['pid'];}if(_0x2ee8da[_0x36cc53(0xda)]===0x0||_0x2ee8da[_0x36cc53(0xda)]===0x1){if(isShell(_0x2ee8da[_0x36cc53(0xcc)]))return _0x2ee8da[_0x36cc53(0xd6)];break;}_0x4dc8e5=_0x2ee8da[_0x36cc53(0xda)],_0x1c0260++;}return process[_0x36cc53(0xda)]!==undefined?process[_0x36cc53(0xda)]:process[_0x36cc53(0xd6)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x466126){const _0x119cd3=a228_0x541ab9;if(!Number['isInteger'](_0x466126)||_0x466126<=0x0)return![];try{return process[_0x119cd3(0xae)](_0x466126,0x0),!![];}catch{return![];}}export function openBrowser(_0x38f097){const _0x35a000=a228_0x541ab9;let _0x501537;try{_0x501537=new URL(_0x38f097);}catch{throw new Error(_0x35a000(0xce)+_0x38f097);}if(_0x501537['protocol']!==_0x35a000(0xcb)&&_0x501537[_0x35a000(0xc7)]!==_0x35a000(0xa9))throw new Error('Unsupported\x20protocol:\x20'+_0x501537[_0x35a000(0xc7)]);const _0x83985=_0x501537[_0x35a000(0xc5)],_0x19a342=process[_0x35a000(0xb4)];if(_0x19a342===_0x35a000(0xb3))spawn(_0x35a000(0xa8),['/c','start','',_0x83985],{'detached':!![],'stdio':_0x35a000(0xbd)})['unref']();else{const _0x1dc364=_0x19a342==='darwin'?_0x35a000(0xc0):_0x35a000(0xb1);spawn(_0x1dc364,[_0x83985],{'detached':!![],'stdio':_0x35a000(0xbd)})[_0x35a000(0xc8)]();}}export function isWindows(){const _0x39e4cd=a228_0x541ab9;return process[_0x39e4cd(0xb4)]==='win32';}function a228_0x12f9(){const _0x4dea01=['split','350904azoQPO','trim','cmd.exe','https:','toLowerCase','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','has','test','kill','exit','pwsh','xdg-open','724ywCsoJ','win32','platform','code','csh','28JhvGxf','49489JhQngW','replace','zsh','electron','20560rtrTCG','ignore','isInteger','cursor','open','treasure\x20studio','utf-8','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','pop','href','\x20-o\x20ppid=,comm=','protocol','unref','join','dash','http:','comm','powershell','Invalid\x20URL:\x20','2862252PfVsXx','map','ps\x20-p\x20','ion','which','pipe','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','pid','11130939IAnqZT','1302568oTLCrC','1617646ykZaFU','ppid'];a228_0x12f9=function(){return _0x4dea01;};return a228_0x12f9();}export function getCrossSpawnOptions(_0xf67477){return{..._0xf67477??{},'shell':isWindows()};}export function escapeWindowsArg(_0xa01a6a){const _0x5216ba=a228_0x541ab9;if(!/[ \t"&|<>^%!`\r\n]/[_0x5216ba(0xad)](_0xa01a6a))return _0xa01a6a;const _0x5eef96=_0xa01a6a['replace'](/"/g,'\x22\x22');return'\x22'+_0x5eef96+'\x22';}export function crossSpawn(_0x17a523,_0x45d2d8,_0x3faf3b){const _0x4133d2=a228_0x541ab9;if(isWindows()){const _0x2161d0=escapeWindowsArg(_0x17a523),_0x31c2f8=_0x45d2d8[_0x4133d2(0xd0)](escapeWindowsArg),_0x36b70d=[_0x2161d0,..._0x31c2f8]['join']('\x20');return spawn(_0x36b70d,[],{..._0x3faf3b,'shell':!![]});}return spawn(_0x17a523,_0x45d2d8,{..._0x3faf3b,'shell':![]});}export function gracefulExit(_0x220582=0x0){const _0x326ac5=a228_0x541ab9;isWindows()?setTimeout(()=>process['exit'](_0x220582),0x32):process[_0x326ac5(0xaf)](_0x220582);}export function findExecutable(_0xddde71,_0x4f18bb=0x1388){return new Promise(_0x36fca7=>{const _0x230440=a228_0x2dcf,_0x212162=isWindows()?'where.exe':_0x230440(0xd3);execFile(_0x212162,[_0xddde71],{'timeout':_0x4f18bb,'windowsHide':!![]},(_0x280973,_0xd9f01b)=>{const _0x104c91=_0x230440;if(_0x280973||!_0xd9f01b[_0x104c91(0xa7)]())_0x36fca7(null);else{const _0x20b680=_0xd9f01b[_0x104c91(0xa7)]()[_0x104c91(0xdb)](/\r?\n/)[0x0];_0x36fca7(_0x20b680);}});});}
@@ -1 +1 @@
1
- (function(_0x14e844,_0xc8b27a){const _0x3b0bb1=a229_0x4a0e,_0x1f3746=_0x14e844();while(!![]){try{const _0x32fc8e=-parseInt(_0x3b0bb1(0x7f))/0x1+-parseInt(_0x3b0bb1(0x79))/0x2*(parseInt(_0x3b0bb1(0x84))/0x3)+-parseInt(_0x3b0bb1(0x6d))/0x4*(-parseInt(_0x3b0bb1(0x71))/0x5)+parseInt(_0x3b0bb1(0x7d))/0x6*(parseInt(_0x3b0bb1(0x7a))/0x7)+-parseInt(_0x3b0bb1(0x6f))/0x8*(parseInt(_0x3b0bb1(0x77))/0x9)+parseInt(_0x3b0bb1(0x72))/0xa*(parseInt(_0x3b0bb1(0x6c))/0xb)+parseInt(_0x3b0bb1(0x80))/0xc;if(_0x32fc8e===_0xc8b27a)break;else _0x1f3746['push'](_0x1f3746['shift']());}catch(_0x1020d1){_0x1f3746['push'](_0x1f3746['shift']());}}}(a229_0x43d8,0xd24ce));function a229_0x4a0e(_0x5709a5,_0x29e078){_0x5709a5=_0x5709a5-0x67;const _0x43d88c=a229_0x43d8();let _0x4a0e53=_0x43d88c[_0x5709a5];return _0x4a0e53;}import*as a229_0x1273ee from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0xbf52c=a229_0x4a0e;return process['stdin'][_0xbf52c(0x69)]===!![];}function a229_0x43d8(){const _0x1cb1c8=['pause','close','isTTY','resume','stderr','23463FqtIUq','4deBOjF','setEncoding','40RRoxNL','data','5362780UYsULx','2000SVtpfq','setRawMode','write','\x20[y/N]\x20','utf8','2433411UqngWL','toLowerCase','52858EESkzm','1037617ehEnRK','stdout','yes','66iJhkHH','createInterface','1137635Miwftm','12803412VVYtwW','removeListener','\x20(y/N):\x20','stdin','96KeXeqH','question'];a229_0x43d8=function(){return _0x1cb1c8;};return a229_0x43d8();}export async function confirm(_0x40d53d){const _0xc9ce0d=a229_0x4a0e,_0x38d6a7=a229_0x1273ee[_0xc9ce0d(0x7e)]({'input':process[_0xc9ce0d(0x83)],'output':process[_0xc9ce0d(0x7b)]});return new Promise(_0x538d72=>{const _0x58e558=_0xc9ce0d;_0x38d6a7[_0x58e558(0x85)](_0x40d53d+_0x58e558(0x82),_0x18eb38=>{const _0x59d8ee=_0x58e558;_0x38d6a7[_0x59d8ee(0x68)](),_0x538d72(_0x18eb38['toLowerCase']()==='y'||_0x18eb38[_0x59d8ee(0x78)]()===_0x59d8ee(0x7c));});});}export async function confirmKey(_0x3ab541){const _0x507ec6=a229_0x4a0e;if(!process[_0x507ec6(0x83)][_0x507ec6(0x69)])return![];return process['stderr'][_0x507ec6(0x74)](_0x3ab541+_0x507ec6(0x75)),new Promise(_0x1eee17=>{const _0x98a3a4=_0x507ec6,_0x4135f5=process[_0x98a3a4(0x83)];_0x4135f5[_0x98a3a4(0x73)](!![]),_0x4135f5[_0x98a3a4(0x6a)](),_0x4135f5[_0x98a3a4(0x6e)](_0x98a3a4(0x76));const _0x5c246f=_0x41aaf1=>{const _0x3233fd=_0x98a3a4;_0x4135f5['setRawMode'](![]),_0x4135f5[_0x3233fd(0x67)](),_0x4135f5[_0x3233fd(0x81)](_0x3233fd(0x70),_0x5c246f);if(_0x41aaf1==='\x1b'){process[_0x3233fd(0x6b)]['write']('\x0a'),_0x1eee17(![]);return;}_0x41aaf1==='\x03'&&(process[_0x3233fd(0x6b)]['write']('\x0a'),gracefulExit(0x82));if(_0x41aaf1[_0x3233fd(0x78)]()==='y'){process[_0x3233fd(0x6b)][_0x3233fd(0x74)]('y\x0a'),_0x1eee17(!![]);return;}process[_0x3233fd(0x6b)]['write']('\x0a'),_0x1eee17(![]);};_0x4135f5['on']('data',_0x5c246f);});}
1
+ (function(_0x57e03b,_0x944ac1){const _0x40571c=a229_0x4b27,_0x5e2d32=_0x57e03b();while(!![]){try{const _0x336674=parseInt(_0x40571c(0x193))/0x1+-parseInt(_0x40571c(0x189))/0x2*(-parseInt(_0x40571c(0x187))/0x3)+parseInt(_0x40571c(0x190))/0x4*(parseInt(_0x40571c(0x195))/0x5)+parseInt(_0x40571c(0x188))/0x6*(parseInt(_0x40571c(0x185))/0x7)+parseInt(_0x40571c(0x184))/0x8+parseInt(_0x40571c(0x18f))/0x9+parseInt(_0x40571c(0x182))/0xa*(-parseInt(_0x40571c(0x194))/0xb);if(_0x336674===_0x944ac1)break;else _0x5e2d32['push'](_0x5e2d32['shift']());}catch(_0x58c35d){_0x5e2d32['push'](_0x5e2d32['shift']());}}}(a229_0x5b37,0xa7da7));function a229_0x4b27(_0x231fe1,_0x2230b1){_0x231fe1=_0x231fe1-0x182;const _0x5b37d3=a229_0x5b37();let _0x4b2715=_0x5b37d3[_0x231fe1];return _0x4b2715;}import*as a229_0x499743 from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x282c4d=a229_0x4b27;return process[_0x282c4d(0x183)]['isTTY']===!![];}export async function confirm(_0x665854){const _0x2638fc=a229_0x4b27,_0x568f8c=a229_0x499743[_0x2638fc(0x192)]({'input':process[_0x2638fc(0x183)],'output':process[_0x2638fc(0x197)]});return new Promise(_0x38b50d=>{const _0x58bac7=_0x2638fc;_0x568f8c['question'](_0x665854+_0x58bac7(0x18a),_0x5aeca5=>{const _0x4ef483=_0x58bac7;_0x568f8c[_0x4ef483(0x18e)](),_0x38b50d(_0x5aeca5[_0x4ef483(0x191)]()==='y'||_0x5aeca5['toLowerCase']()===_0x4ef483(0x18c));});});}function a229_0x5b37(){const _0xcd6df2=['596KcOPqp','toLowerCase','createInterface','1143128mgrWeZ','36513719etUIWB','19265SOgwpL','stderr','stdout','write','data','\x20[y/N]\x20','pause','10JDtRap','stdin','1540392IgIUZT','840utOlyP','setRawMode','66MxULIx','52026ppEDnR','44816HcSXMs','\x20(y/N):\x20','setEncoding','yes','utf8','close','5073174sAIeeC'];a229_0x5b37=function(){return _0xcd6df2;};return a229_0x5b37();}export async function confirmKey(_0x3227e7){const _0x52f8a3=a229_0x4b27;if(!process[_0x52f8a3(0x183)]['isTTY'])return![];return process[_0x52f8a3(0x196)][_0x52f8a3(0x198)](_0x3227e7+_0x52f8a3(0x19a)),new Promise(_0xaee7f3=>{const _0x6b0b1e=_0x52f8a3,_0x20cc06=process[_0x6b0b1e(0x183)];_0x20cc06[_0x6b0b1e(0x186)](!![]),_0x20cc06['resume'](),_0x20cc06[_0x6b0b1e(0x18b)](_0x6b0b1e(0x18d));const _0x49003d=_0x38b59e=>{const _0x5ca40a=_0x6b0b1e;_0x20cc06['setRawMode'](![]),_0x20cc06[_0x5ca40a(0x19b)](),_0x20cc06['removeListener']('data',_0x49003d);if(_0x38b59e==='\x1b'){process[_0x5ca40a(0x196)][_0x5ca40a(0x198)]('\x0a'),_0xaee7f3(![]);return;}_0x38b59e==='\x03'&&(process[_0x5ca40a(0x196)][_0x5ca40a(0x198)]('\x0a'),gracefulExit(0x82));if(_0x38b59e[_0x5ca40a(0x191)]()==='y'){process[_0x5ca40a(0x196)][_0x5ca40a(0x198)]('y\x0a'),_0xaee7f3(!![]);return;}process['stderr'][_0x5ca40a(0x198)]('\x0a'),_0xaee7f3(![]);};_0x20cc06['on'](_0x6b0b1e(0x199),_0x49003d);});}
@@ -1 +1 @@
1
- (function(_0x3efdc4,_0x580698){const _0x4e1cb8=a230_0x5f3e,_0x4a6937=_0x3efdc4();while(!![]){try{const _0x485e76=parseInt(_0x4e1cb8(0x13a))/0x1+parseInt(_0x4e1cb8(0x140))/0x2+parseInt(_0x4e1cb8(0x141))/0x3+-parseInt(_0x4e1cb8(0x14b))/0x4+parseInt(_0x4e1cb8(0x13f))/0x5+-parseInt(_0x4e1cb8(0x147))/0x6*(parseInt(_0x4e1cb8(0x148))/0x7)+parseInt(_0x4e1cb8(0x146))/0x8*(-parseInt(_0x4e1cb8(0x139))/0x9);if(_0x485e76===_0x580698)break;else _0x4a6937['push'](_0x4a6937['shift']());}catch(_0x120fd1){_0x4a6937['push'](_0x4a6937['shift']());}}}(a230_0x33c1,0xf23b3));import a230_0x9ffc7c from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a230_0x5f3e(_0x273b5b,_0x22c954){_0x273b5b=_0x273b5b-0x135;const _0x33c1ed=a230_0x33c1();let _0x5f3e2d=_0x33c1ed[_0x273b5b];return _0x5f3e2d;}export function createCommandSpinner(_0x42627d,_0x5a0ff0={}){const _0x378034=a230_0x5f3e,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5a0ff0;return a230_0x9ffc7c({'text':_0x42627d,'color':'cyan','stream':process[_0x378034(0x13b)],'isEnabled':forceEnabled||process[_0x378034(0x13b)]['isTTY']&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x56308e,_0x3f0612,_0x51b0c8={}){const _0x5d7fee=a230_0x5f3e,_0x2d0459=_0x51b0c8['clock']??(()=>Date[_0x5d7fee(0x145)]()),_0xeb6326=createCommandSpinner(_0x56308e,_0x51b0c8);_0xeb6326[_0x5d7fee(0x137)]();const _0xcd4d98=_0x2d0459();try{const _0x126595=await _0x3f0612(),_0x5bd495=_0x2d0459()-_0xcd4d98;return _0xeb6326[_0x5d7fee(0x13e)](),{'data':_0x126595,'elapsedMs':_0x5bd495};}catch(_0x59abda){_0xeb6326['stop']();throw _0x59abda;}}export async function withProgressSpinner(_0x351cf6,_0x24058f,_0x371230={}){const _0x2120e9=a230_0x5f3e,_0x48aeda=_0x371230['clock']??(()=>Date[_0x2120e9(0x145)]()),_0x4caa31=_0x371230['intervalFactory']??setInterval,_0x4ad837=createCommandSpinner(_0x351cf6,_0x371230);_0x4ad837[_0x2120e9(0x137)]();const _0x5df67a=_0x48aeda(),_0x574748=_0x351cf6[_0x2120e9(0x136)](_0x2120e9(0x13d),'')['trim']()||_0x2120e9(0x142),_0x1441cb={};let _0x56ac4f=_0x351cf6;const _0x43a81d=()=>{const _0x4c2d66=_0x2120e9;if(!_0x4ad837['isSpinning'])return;const _0x2ac9f9=_0x48aeda()-_0x5df67a,_0x2c19db=formatElapsed(_0x2ac9f9),_0x1cce54=_0x1441cb[_0x4c2d66(0x135)]?.[_0x4c2d66(0x138)]()||_0x574748,_0x5b1e02=_0x1441cb[_0x4c2d66(0x143)]?_0x4c2d66(0x13c)+_0x1441cb['jobId']+']':'',_0x1e85e2=_0x1441cb['extra']?'\x20'+_0x1441cb[_0x4c2d66(0x144)]:'',_0x7f1ec0=_0x1cce54+'\x20'+_0x2c19db+_0x1e85e2+_0x5b1e02;_0x7f1ec0!==_0x56ac4f&&_0x7f1ec0[_0x4c2d66(0x138)]()&&(_0x4ad837[_0x4c2d66(0x149)]=_0x7f1ec0,_0x56ac4f=_0x7f1ec0);},_0x1ff11b=_0x4caa31(()=>{_0x43a81d();},0x3e8),_0x1e4090={'setPhase':_0x27bdb5=>{const _0x26367d=_0x2120e9;_0x1441cb['phase']=_0x27bdb5;const _0x49847e=_0x27bdb5?.[_0x26367d(0x138)]()||_0x574748,_0x4e5ccf=_0x48aeda()-_0x5df67a,_0x23f8a2=formatElapsed(_0x4e5ccf),_0x153d00=_0x1441cb['jobId']?_0x26367d(0x13c)+_0x1441cb['jobId']+']':'',_0xa216a6=_0x1441cb['extra']?'\x20'+_0x1441cb['extra']:'',_0x212846=_0x49847e+'\x20'+_0x23f8a2+_0xa216a6+_0x153d00;_0x4ad837[_0x26367d(0x14a)]&&_0x212846[_0x26367d(0x138)]()&&(_0x4ad837[_0x26367d(0x149)]=_0x212846,_0x56ac4f=_0x212846);},'setJobId':_0x4f46ba=>{const _0x8b4e29=_0x2120e9;_0x1441cb[_0x8b4e29(0x143)]=_0x4f46ba,_0x43a81d();},'setExtra':_0x37f2bc=>{const _0x384e97=_0x2120e9;_0x1441cb[_0x384e97(0x144)]=_0x37f2bc,_0x43a81d();}};_0x43a81d();try{const _0x2d44b3=await _0x24058f(_0x1e4090),_0x22e08c=_0x48aeda()-_0x5df67a;return{'data':_0x2d44b3,'elapsedMs':_0x22e08c};}finally{clearInterval(_0x1ff11b),_0x4ad837[_0x2120e9(0x13e)]();}}function a230_0x33c1(){const _0x28f360=['stop','8379530yvEsPf','2781410PBLrzO','5126481VmmoPm','Processing','jobId','extra','now','2143168qaJWpG','675714jMxdPS','14TyvaAy','text','isSpinning','3759932kAsMOP','floor','phase','replace','start','trim','144jdZCAi','1668298uIvaAt','stderr','\x20[Job\x20ID:\x20','...'];a230_0x33c1=function(){return _0x28f360;};return a230_0x33c1();}export function formatElapsed(_0x4e6b81){const _0x9326ca=a230_0x5f3e,_0x803162=Math[_0x9326ca(0x14c)](_0x4e6b81/0x3e8);if(_0x803162<0x3c)return(_0x4e6b81/0x3e8)['toFixed'](0x1)+'s';const _0x3745c4=Math[_0x9326ca(0x14c)](_0x803162/0x3c),_0x51621a=_0x803162%0x3c;if(_0x3745c4<0x3c)return _0x3745c4+'m\x20'+_0x51621a+'s';const _0x8fe3f3=Math['floor'](_0x3745c4/0x3c),_0x44cfb4=_0x3745c4%0x3c;return _0x8fe3f3+'h\x20'+_0x44cfb4+'m';}
1
+ function a230_0x4b13(){const _0xd317e7=['stop','\x20[Job\x20ID:\x20','cyan','start','floor','extra','isSpinning','2864YmVcJW','4551AYCghD','...','now','text','10NVmIyN','stderr','toFixed','replace','11415290oSkDMM','11QuPnIV','43492116THkpFc','clock','isTTY','15QqbpKF','1192SzDPYK','trim','jobId','1585314JoybKN','intervalFactory','41854GumkXi','30321GdVOJy','phase','2405130hkDycT'];a230_0x4b13=function(){return _0xd317e7;};return a230_0x4b13();}(function(_0x31df32,_0x3de0cb){const _0x3b12c9=a230_0x1a1e,_0x3c77af=_0x31df32();while(!![]){try{const _0x467560=parseInt(_0x3b12c9(0x18f))/0x1*(parseInt(_0x3b12c9(0x19e))/0x2)+parseInt(_0x3b12c9(0x18b))/0x3*(-parseInt(_0x3b12c9(0x18a))/0x4)+-parseInt(_0x3b12c9(0x198))/0x5*(parseInt(_0x3b12c9(0x19c))/0x6)+parseInt(_0x3b12c9(0x1a1))/0x7+parseInt(_0x3b12c9(0x199))/0x8*(-parseInt(_0x3b12c9(0x19f))/0x9)+parseInt(_0x3b12c9(0x193))/0xa*(-parseInt(_0x3b12c9(0x194))/0xb)+parseInt(_0x3b12c9(0x195))/0xc;if(_0x467560===_0x3de0cb)break;else _0x3c77af['push'](_0x3c77af['shift']());}catch(_0x3798f6){_0x3c77af['push'](_0x3c77af['shift']());}}}(a230_0x4b13,0x9fe10));import a230_0x12a9a2 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x5965f5,_0xd1039a={}){const _0x5b86fa=a230_0x1a1e,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xd1039a;return a230_0x12a9a2({'text':_0x5965f5,'color':_0x5b86fa(0x1a4),'stream':process['stderr'],'isEnabled':forceEnabled||process[_0x5b86fa(0x190)][_0x5b86fa(0x197)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x362215,_0x1b7832,_0x55a0ba={}){const _0x379452=a230_0x1a1e,_0x187b73=_0x55a0ba['clock']??(()=>Date[_0x379452(0x18d)]()),_0x1e7112=createCommandSpinner(_0x362215,_0x55a0ba);_0x1e7112[_0x379452(0x1a5)]();const _0x472378=_0x187b73();try{const _0x1602a7=await _0x1b7832(),_0x2d370a=_0x187b73()-_0x472378;return _0x1e7112[_0x379452(0x1a2)](),{'data':_0x1602a7,'elapsedMs':_0x2d370a};}catch(_0x1a714a){_0x1e7112[_0x379452(0x1a2)]();throw _0x1a714a;}}export async function withProgressSpinner(_0x59557f,_0x4a22a7,_0x193a55={}){const _0x331b15=a230_0x1a1e,_0x1d7f95=_0x193a55[_0x331b15(0x196)]??(()=>Date[_0x331b15(0x18d)]()),_0x59d29b=_0x193a55[_0x331b15(0x19d)]??setInterval,_0x10a63b=createCommandSpinner(_0x59557f,_0x193a55);_0x10a63b['start']();const _0x376a08=_0x1d7f95(),_0x563e41=_0x59557f[_0x331b15(0x192)](_0x331b15(0x18c),'')[_0x331b15(0x19a)]()||'Processing',_0x24f8bf={};let _0x4eec31=_0x59557f;const _0x1c79c6=()=>{const _0x99695d=_0x331b15;if(!_0x10a63b[_0x99695d(0x1a8)])return;const _0x5762e2=_0x1d7f95()-_0x376a08,_0x55c812=formatElapsed(_0x5762e2),_0x143a72=_0x24f8bf[_0x99695d(0x1a0)]?.[_0x99695d(0x19a)]()||_0x563e41,_0x5225db=_0x24f8bf[_0x99695d(0x19b)]?'\x20[Job\x20ID:\x20'+_0x24f8bf[_0x99695d(0x19b)]+']':'',_0x179c49=_0x24f8bf['extra']?'\x20'+_0x24f8bf[_0x99695d(0x1a7)]:'',_0x877b8d=_0x143a72+'\x20'+_0x55c812+_0x179c49+_0x5225db;_0x877b8d!==_0x4eec31&&_0x877b8d[_0x99695d(0x19a)]()&&(_0x10a63b[_0x99695d(0x18e)]=_0x877b8d,_0x4eec31=_0x877b8d);},_0x1c246a=_0x59d29b(()=>{_0x1c79c6();},0x3e8),_0x3dab91={'setPhase':_0x3570cd=>{const _0x1c3620=_0x331b15;_0x24f8bf[_0x1c3620(0x1a0)]=_0x3570cd;const _0x3a4de9=_0x3570cd?.[_0x1c3620(0x19a)]()||_0x563e41,_0x38f4ef=_0x1d7f95()-_0x376a08,_0x1da753=formatElapsed(_0x38f4ef),_0xf4c530=_0x24f8bf[_0x1c3620(0x19b)]?_0x1c3620(0x1a3)+_0x24f8bf[_0x1c3620(0x19b)]+']':'',_0x287bd7=_0x24f8bf[_0x1c3620(0x1a7)]?'\x20'+_0x24f8bf[_0x1c3620(0x1a7)]:'',_0x55f8a9=_0x3a4de9+'\x20'+_0x1da753+_0x287bd7+_0xf4c530;_0x10a63b['isSpinning']&&_0x55f8a9['trim']()&&(_0x10a63b[_0x1c3620(0x18e)]=_0x55f8a9,_0x4eec31=_0x55f8a9);},'setJobId':_0x3a1536=>{const _0x6aa6c0=_0x331b15;_0x24f8bf[_0x6aa6c0(0x19b)]=_0x3a1536,_0x1c79c6();},'setExtra':_0x1d35ff=>{const _0x498d07=_0x331b15;_0x24f8bf[_0x498d07(0x1a7)]=_0x1d35ff,_0x1c79c6();}};_0x1c79c6();try{const _0x36f77e=await _0x4a22a7(_0x3dab91),_0x5780ac=_0x1d7f95()-_0x376a08;return{'data':_0x36f77e,'elapsedMs':_0x5780ac};}finally{clearInterval(_0x1c246a),_0x10a63b[_0x331b15(0x1a2)]();}}function a230_0x1a1e(_0x3b6020,_0xdf2a4c){_0x3b6020=_0x3b6020-0x18a;const _0x4b13b0=a230_0x4b13();let _0x1a1e02=_0x4b13b0[_0x3b6020];return _0x1a1e02;}export function formatElapsed(_0x555139){const _0x3abdb9=a230_0x1a1e,_0x3cf42a=Math[_0x3abdb9(0x1a6)](_0x555139/0x3e8);if(_0x3cf42a<0x3c)return(_0x555139/0x3e8)[_0x3abdb9(0x191)](0x1)+'s';const _0x8e2513=Math['floor'](_0x3cf42a/0x3c),_0x3b6c33=_0x3cf42a%0x3c;if(_0x8e2513<0x3c)return _0x8e2513+'m\x20'+_0x3b6c33+'s';const _0x10442b=Math[_0x3abdb9(0x1a6)](_0x8e2513/0x3c),_0x3e8e1a=_0x8e2513%0x3c;return _0x10442b+'h\x20'+_0x3e8e1a+'m';}
@@ -1 +1 @@
1
- (function(_0x5128c2,_0x59f44c){const _0x174490=a231_0x367f,_0x264076=_0x5128c2();while(!![]){try{const _0x58fd9c=-parseInt(_0x174490(0x1a2))/0x1*(-parseInt(_0x174490(0x197))/0x2)+-parseInt(_0x174490(0x1ac))/0x3+parseInt(_0x174490(0x19c))/0x4*(-parseInt(_0x174490(0x1a4))/0x5)+parseInt(_0x174490(0x196))/0x6*(-parseInt(_0x174490(0x19e))/0x7)+parseInt(_0x174490(0x1a1))/0x8+-parseInt(_0x174490(0x199))/0x9+parseInt(_0x174490(0x1ab))/0xa;if(_0x58fd9c===_0x59f44c)break;else _0x264076['push'](_0x264076['shift']());}catch(_0x181d43){_0x264076['push'](_0x264076['shift']());}}}(a231_0x31d1,0x83037));function a231_0x367f(_0x8708e,_0x1876ad){_0x8708e=_0x8708e-0x196;const _0x31d1be=a231_0x31d1();let _0x367fba=_0x31d1be[_0x8708e];return _0x367fba;}export async function*parseSSEStream(_0x5de00b,_0x58e0c9){const _0xef54cb=a231_0x367f;if(!_0x5de00b[_0xef54cb(0x1a5)])throw new Error(_0xef54cb(0x19b));const _0x599433=_0x5de00b[_0xef54cb(0x1a5)]['getReader'](),_0x4785b4=new TextDecoder();let _0x50f0bb='',_0x3a564e={};try{while(!![]){const {done:_0x1f966d,value:_0x51126b}=await _0x599433['read']();if(_0x1f966d){if(_0x3a564e[_0xef54cb(0x19d)]){_0x58e0c9?.['debug'](_0xef54cb(0x1a9)+_0x3a564e[_0xef54cb(0x19d)]);const _0x4c0479=parseSSEData(_0x3a564e[_0xef54cb(0x19d)]);yield _0x4c0479;}break;}_0x50f0bb+=_0x4785b4[_0xef54cb(0x1a3)](_0x51126b,{'stream':!![]});const _0x1c37a3=_0x50f0bb['split']('\x0a');_0x50f0bb=_0x1c37a3['pop']()||'';for(const _0x2da13b of _0x1c37a3){if(_0x2da13b[_0xef54cb(0x19f)]()===''){if(_0x3a564e[_0xef54cb(0x19d)]){_0x58e0c9?.[_0xef54cb(0x1a7)](_0xef54cb(0x1a9)+_0x3a564e[_0xef54cb(0x19d)]);const _0x12b4e1=parseSSEData(_0x3a564e['data']);yield _0x12b4e1,_0x3a564e={};}continue;}if(_0x2da13b['startsWith'](':'))continue;const _0x1cb434=_0x2da13b[_0xef54cb(0x19a)](':');if(_0x1cb434===-0x1)continue;const _0x65bd95=_0x2da13b[_0xef54cb(0x1aa)](0x0,_0x1cb434);let _0x1b556c=_0x2da13b[_0xef54cb(0x1aa)](_0x1cb434+0x1);_0x1b556c[_0xef54cb(0x1a8)]('\x20')&&(_0x1b556c=_0x1b556c[_0xef54cb(0x1aa)](0x1));switch(_0x65bd95){case'event':_0x3a564e[_0xef54cb(0x1a6)]=_0x1b556c;break;case _0xef54cb(0x19d):_0x3a564e[_0xef54cb(0x19d)]=_0x3a564e['data']?_0x3a564e[_0xef54cb(0x19d)]+'\x0a'+_0x1b556c:_0x1b556c;break;case'id':_0x3a564e['id']=_0x1b556c;break;}}}}finally{_0x599433['releaseLock']();}}function a231_0x31d1(){const _0x18016e=['2902864hspdWs','253QAnrUf','decode','5RfkCPV','body','event','debug','startsWith','[LLM\x20API\x20SSE]\x20','slice','31290610SbpRwn','2359800sBslhC','126rMMCqn','1322jtheGa','parse','4267179HbcpXp','indexOf','Response\x20body\x20is\x20null','4018364qOoEpn','data','285733QtKcDx','trim','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'];a231_0x31d1=function(){return _0x18016e;};return a231_0x31d1();}function parseSSEData(_0x575794){const _0x53b4c2=a231_0x367f;try{return JSON[_0x53b4c2(0x198)](_0x575794);}catch(_0x4ca034){throw new Error(_0x53b4c2(0x1a0)+_0x575794,{'cause':_0x4ca034});}}
1
+ (function(_0x39bc45,_0x2b32ef){const _0x286149=a231_0x2beb,_0x405874=_0x39bc45();while(!![]){try{const _0x5f2809=parseInt(_0x286149(0x1b4))/0x1+-parseInt(_0x286149(0x1b8))/0x2*(parseInt(_0x286149(0x1bb))/0x3)+-parseInt(_0x286149(0x1bd))/0x4*(parseInt(_0x286149(0x1bc))/0x5)+-parseInt(_0x286149(0x1c5))/0x6*(parseInt(_0x286149(0x1b2))/0x7)+parseInt(_0x286149(0x1c7))/0x8+parseInt(_0x286149(0x1ca))/0x9*(-parseInt(_0x286149(0x1b6))/0xa)+parseInt(_0x286149(0x1bf))/0xb*(parseInt(_0x286149(0x1c3))/0xc);if(_0x5f2809===_0x2b32ef)break;else _0x405874['push'](_0x405874['shift']());}catch(_0x560dbd){_0x405874['push'](_0x405874['shift']());}}}(a231_0x3194,0x29f4d));export async function*parseSSEStream(_0x56f6eb,_0x1fb3ea){const _0x585f87=a231_0x2beb;if(!_0x56f6eb[_0x585f87(0x1c0)])throw new Error(_0x585f87(0x1b7));const _0x578e57=_0x56f6eb[_0x585f87(0x1c0)][_0x585f87(0x1c2)](),_0x1f12c0=new TextDecoder();let _0x207cae='',_0x21d1b7={};try{while(!![]){const {done:_0x57bb91,value:_0x230fc6}=await _0x578e57[_0x585f87(0x1b9)]();if(_0x57bb91){if(_0x21d1b7[_0x585f87(0x1c4)]){_0x1fb3ea?.['debug'](_0x585f87(0x1ba)+_0x21d1b7[_0x585f87(0x1c4)]);const _0x3769d4=parseSSEData(_0x21d1b7['data']);yield _0x3769d4;}break;}_0x207cae+=_0x1f12c0[_0x585f87(0x1c9)](_0x230fc6,{'stream':!![]});const _0x3fc3a1=_0x207cae[_0x585f87(0x1b3)]('\x0a');_0x207cae=_0x3fc3a1[_0x585f87(0x1c8)]()||'';for(const _0x15d594 of _0x3fc3a1){if(_0x15d594[_0x585f87(0x1cb)]()===''){if(_0x21d1b7[_0x585f87(0x1c4)]){_0x1fb3ea?.[_0x585f87(0x1c6)](_0x585f87(0x1ba)+_0x21d1b7[_0x585f87(0x1c4)]);const _0x33ffff=parseSSEData(_0x21d1b7['data']);yield _0x33ffff,_0x21d1b7={};}continue;}if(_0x15d594[_0x585f87(0x1b5)](':'))continue;const _0x213914=_0x15d594['indexOf'](':');if(_0x213914===-0x1)continue;const _0x1872c6=_0x15d594[_0x585f87(0x1c1)](0x0,_0x213914);let _0x1a9107=_0x15d594[_0x585f87(0x1c1)](_0x213914+0x1);_0x1a9107['startsWith']('\x20')&&(_0x1a9107=_0x1a9107[_0x585f87(0x1c1)](0x1));switch(_0x1872c6){case _0x585f87(0x1cc):_0x21d1b7[_0x585f87(0x1cc)]=_0x1a9107;break;case _0x585f87(0x1c4):_0x21d1b7[_0x585f87(0x1c4)]=_0x21d1b7['data']?_0x21d1b7[_0x585f87(0x1c4)]+'\x0a'+_0x1a9107:_0x1a9107;break;case'id':_0x21d1b7['id']=_0x1a9107;break;}}}}finally{_0x578e57['releaseLock']();}}function a231_0x2beb(_0x5b4995,_0x44e5cc){_0x5b4995=_0x5b4995-0x1b2;const _0x319414=a231_0x3194();let _0x2beb8c=_0x319414[_0x5b4995];return _0x2beb8c;}function a231_0x3194(){const _0x400ddb=['startsWith','70OcWEMs','Response\x20body\x20is\x20null','239746OMjCTz','read','[LLM\x20API\x20SSE]\x20','3MYbPDq','10BfcIXe','119444BhnAwF','parse','319jswgok','body','slice','getReader','156852XCJbPv','data','6NkNtWn','debug','1446328XOntbg','pop','decode','335133nOaHoj','trim','event','47649cdEcAZ','split','59064sSkuWe'];a231_0x3194=function(){return _0x400ddb;};return a231_0x3194();}function parseSSEData(_0xb72be8){const _0x1c47be=a231_0x2beb;try{return JSON[_0x1c47be(0x1be)](_0xb72be8);}catch(_0x1ffe54){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0xb72be8,{'cause':_0x1ffe54});}}
@@ -1 +1 @@
1
- function a232_0x48c3(_0x1a96fc,_0x476d47){_0x1a96fc=_0x1a96fc-0xa9;const _0x2c28ac=a232_0x2c28();let _0x48c334=_0x2c28ac[_0x1a96fc];return _0x48c334;}(function(_0x263749,_0x55c6f8){const _0x440a8e=a232_0x48c3,_0x4e5c5a=_0x263749();while(!![]){try{const _0x5559c4=-parseInt(_0x440a8e(0xbd))/0x1*(-parseInt(_0x440a8e(0xab))/0x2)+parseInt(_0x440a8e(0xb2))/0x3*(-parseInt(_0x440a8e(0xaf))/0x4)+parseInt(_0x440a8e(0xc0))/0x5+parseInt(_0x440a8e(0xba))/0x6*(parseInt(_0x440a8e(0xb4))/0x7)+-parseInt(_0x440a8e(0xae))/0x8+parseInt(_0x440a8e(0xad))/0x9*(parseInt(_0x440a8e(0xb9))/0xa)+-parseInt(_0x440a8e(0xbf))/0xb;if(_0x5559c4===_0x55c6f8)break;else _0x4e5c5a['push'](_0x4e5c5a['shift']());}catch(_0x415c57){_0x4e5c5a['push'](_0x4e5c5a['shift']());}}}(a232_0x2c28,0xe326c));import a232_0xff147f from'string-width';export function stringWidth(_0x129c0d){return a232_0xff147f(_0x129c0d);}export function padEnd(_0x561797,_0x438b87){const _0x1cc91a=a232_0x48c3,_0xf86c63=stringWidth(_0x561797);if(_0xf86c63>=_0x438b87)return _0x561797;return _0x561797+'\x20'[_0x1cc91a(0xa9)](_0x438b87-_0xf86c63);}export function padStart(_0x4b2511,_0x5c8c87){const _0x20045b=a232_0x48c3,_0x53999f=stringWidth(_0x4b2511);if(_0x53999f>=_0x5c8c87)return _0x4b2511;return'\x20'[_0x20045b(0xa9)](_0x5c8c87-_0x53999f)+_0x4b2511;}export function centerAlign(_0x3a86cd,_0x57b267){const _0x562280=a232_0x48c3,_0x32eb00=stringWidth(_0x3a86cd);if(_0x32eb00>_0x57b267){if(_0x57b267<=0x1)return'…'[_0x562280(0xb3)](0x0,_0x57b267);let _0x48a846=_0x3a86cd;while(stringWidth(_0x48a846+'…')>_0x57b267){_0x48a846=_0x48a846[_0x562280(0xc1)](0x0,-0x1);}return _0x48a846+'…';}if(_0x32eb00===_0x57b267)return _0x3a86cd;const _0x1eb69b=_0x57b267-_0x32eb00,_0x366846=Math[_0x562280(0xb8)](_0x1eb69b/0x2),_0x479c48=_0x1eb69b-_0x366846;return'\x20'['repeat'](_0x366846)+_0x3a86cd+'\x20'[_0x562280(0xa9)](_0x479c48);}export function escapeStringLiteral(_0x204a80){const _0x119878=a232_0x48c3;if(!_0x204a80||_0x204a80[_0x119878(0xb6)]()[_0x119878(0xbc)]===0x0)throw new Error(_0x119878(0xbe));const _0x46ca79=_0x204a80[_0x119878(0xb1)](/'/g,'\x27\x27');return'\x27'+_0x46ca79+'\x27';}export function globToLike(_0x1b296f){const _0x21241d=a232_0x48c3;let _0x115637=_0x1b296f[_0x21241d(0xb1)](/\\/g,'\x5c\x5c')[_0x21241d(0xb1)](/%/g,'\x5c%')[_0x21241d(0xb1)](/_/g,'\x5c_');return _0x115637=_0x115637[_0x21241d(0xb1)](/\*/g,'%')['replace'](/\?/g,'_'),_0x115637;}export function buildLikePattern(_0x27c24a){const _0x2fd2e9=a232_0x48c3;if(!_0x27c24a||_0x27c24a[_0x2fd2e9(0xb6)]()[_0x2fd2e9(0xbc)]===0x0)throw new Error(_0x2fd2e9(0xac));const _0x4c4d78=globToLike(_0x27c24a),_0x5618c9=_0x4c4d78[_0x2fd2e9(0xb1)](/'/g,'\x27\x27');return'\x27'+_0x5618c9+'\x27';}export function matchGlobPattern(_0x34ea52,_0xb5ddcf){const _0x3eff07=a232_0x48c3,_0x414320=_0xb5ddcf[_0x3eff07(0xb1)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x3eff07(0xb1)](/\*/g,'.*')[_0x3eff07(0xb1)](/\?/g,'.'),_0x19d346=new RegExp('^'+_0x414320+'$');return _0x19d346[_0x3eff07(0xb7)](_0x34ea52);}export function getSanitizedUsername(){const _0x857a29=a232_0x48c3,_0x5e9577=process.env.USER||process.env.USERNAME||_0x857a29(0xaa);return _0x5e9577[_0x857a29(0xb1)](/[^a-zA-Z0-9]/g,'')[_0x857a29(0xb5)]();}function a232_0x2c28(){const _0xfca66c=['53064FxteAw','104MavUWi','toString','replace','44142rUOJoa','substring','8932bbwxFO','toLowerCase','trim','test','floor','260WXHMxg','444IVnDrP','random','length','937697cGGRVf','Cannot\x20escape\x20empty\x20string\x20literal','21158830ElkbVz','6631580mRiHVo','slice','repeat','unknown','2qrmIWB','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','306243QpJxsG'];a232_0x2c28=function(){return _0xfca66c;};return a232_0x2c28();}export function generateRandomHex(){const _0x133c9a=a232_0x48c3,_0x478392=Math['floor'](Math[_0x133c9a(0xbb)]()*0xfffff);return _0x478392[_0x133c9a(0xb0)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x306f1a){const _0x11dae0=a232_0x48c3;return _0x306f1a[_0x11dae0(0xb5)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x11dae0(0xb1)](/\s+/g,'-')[_0x11dae0(0xb1)](/-+/g,'-')[_0x11dae0(0xb1)](/^-|-$/g,'');}
1
+ function a232_0x5da3(){const _0x31f1c6=['55NuvPRb','trim','substring','repeat','84608JmEbHv','147930DgXxtJ','floor','random','Cannot\x20escape\x20empty\x20string\x20literal','90898wwinwT','\x5c$&','1370928gnezFb','replace','toLowerCase','length','55JDtjzc','24fUeUCV','toString','1689695fTxdLy','1267880rVoonV','6LioCrv','3106926JiuwFC','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','test','slice','padStart'];a232_0x5da3=function(){return _0x31f1c6;};return a232_0x5da3();}(function(_0x3e8fd0,_0x4b64c2){const _0x4f1940=a232_0x36bb,_0x5acfd4=_0x3e8fd0();while(!![]){try{const _0x1ce35c=parseInt(_0x4f1940(0x1b3))/0x1*(-parseInt(_0x4f1940(0x1c2))/0x2)+-parseInt(_0x4f1940(0x1af))/0x3*(parseInt(_0x4f1940(0x1bd))/0x4)+parseInt(_0x4f1940(0x1b9))/0x5*(parseInt(_0x4f1940(0x1be))/0x6)+parseInt(_0x4f1940(0x1b1))/0x7+-parseInt(_0x4f1940(0x1aa))/0x8+-parseInt(_0x4f1940(0x1b4))/0x9+parseInt(_0x4f1940(0x1b2))/0xa*(parseInt(_0x4f1940(0x1ae))/0xb);if(_0x1ce35c===_0x4b64c2)break;else _0x5acfd4['push'](_0x5acfd4['shift']());}catch(_0x4dd83e){_0x5acfd4['push'](_0x5acfd4['shift']());}}}(a232_0x5da3,0x2de88));import a232_0x32f737 from'string-width';export function stringWidth(_0xb3f666){return a232_0x32f737(_0xb3f666);}function a232_0x36bb(_0x4ad65f,_0x1d4b33){_0x4ad65f=_0x4ad65f-0x1a9;const _0x5da3d0=a232_0x5da3();let _0x36bb3c=_0x5da3d0[_0x4ad65f];return _0x36bb3c;}export function padEnd(_0x3fc0c6,_0x2e839){const _0x1345a9=a232_0x36bb,_0x4b10b4=stringWidth(_0x3fc0c6);if(_0x4b10b4>=_0x2e839)return _0x3fc0c6;return _0x3fc0c6+'\x20'[_0x1345a9(0x1bc)](_0x2e839-_0x4b10b4);}export function padStart(_0x299a13,_0x535e84){const _0x4ef224=a232_0x36bb,_0x3012ef=stringWidth(_0x299a13);if(_0x3012ef>=_0x535e84)return _0x299a13;return'\x20'[_0x4ef224(0x1bc)](_0x535e84-_0x3012ef)+_0x299a13;}export function centerAlign(_0x6b6c78,_0x2184a9){const _0x4a53dd=a232_0x36bb,_0x549325=stringWidth(_0x6b6c78);if(_0x549325>_0x2184a9){if(_0x2184a9<=0x1)return'…'[_0x4a53dd(0x1bb)](0x0,_0x2184a9);let _0x455ae5=_0x6b6c78;while(stringWidth(_0x455ae5+'…')>_0x2184a9){_0x455ae5=_0x455ae5[_0x4a53dd(0x1b7)](0x0,-0x1);}return _0x455ae5+'…';}if(_0x549325===_0x2184a9)return _0x6b6c78;const _0x5e9212=_0x2184a9-_0x549325,_0x52e22b=Math[_0x4a53dd(0x1bf)](_0x5e9212/0x2),_0x135337=_0x5e9212-_0x52e22b;return'\x20'['repeat'](_0x52e22b)+_0x6b6c78+'\x20'['repeat'](_0x135337);}export function escapeStringLiteral(_0x374c04){const _0x5e9591=a232_0x36bb;if(!_0x374c04||_0x374c04['trim']()[_0x5e9591(0x1ad)]===0x0)throw new Error(_0x5e9591(0x1c1));const _0x44bcbf=_0x374c04[_0x5e9591(0x1ab)](/'/g,'\x27\x27');return'\x27'+_0x44bcbf+'\x27';}export function globToLike(_0x181408){const _0xba08ba=a232_0x36bb;let _0x29e1ef=_0x181408[_0xba08ba(0x1ab)](/\\/g,'\x5c\x5c')[_0xba08ba(0x1ab)](/%/g,'\x5c%')[_0xba08ba(0x1ab)](/_/g,'\x5c_');return _0x29e1ef=_0x29e1ef['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x29e1ef;}export function buildLikePattern(_0x33e965){const _0xc1530c=a232_0x36bb;if(!_0x33e965||_0x33e965[_0xc1530c(0x1ba)]()['length']===0x0)throw new Error(_0xc1530c(0x1b5));const _0x1b1a3e=globToLike(_0x33e965),_0x30427f=_0x1b1a3e[_0xc1530c(0x1ab)](/'/g,'\x27\x27');return'\x27'+_0x30427f+'\x27';}export function matchGlobPattern(_0x1561aa,_0x160d57){const _0x95bb2e=a232_0x36bb,_0x106a97=_0x160d57[_0x95bb2e(0x1ab)](/[.+^${}()|[\]\\]/g,_0x95bb2e(0x1a9))[_0x95bb2e(0x1ab)](/\*/g,'.*')[_0x95bb2e(0x1ab)](/\?/g,'.'),_0x5bba5e=new RegExp('^'+_0x106a97+'$');return _0x5bba5e[_0x95bb2e(0x1b6)](_0x1561aa);}export function getSanitizedUsername(){const _0x3a48f8=a232_0x36bb,_0x3f7532=process.env.USER||process.env.USERNAME||'unknown';return _0x3f7532[_0x3a48f8(0x1ab)](/[^a-zA-Z0-9]/g,'')[_0x3a48f8(0x1ac)]();}export function generateRandomHex(){const _0xe3f35b=a232_0x36bb,_0x120d25=Math[_0xe3f35b(0x1bf)](Math[_0xe3f35b(0x1c0)]()*0xfffff);return _0x120d25[_0xe3f35b(0x1b0)](0x10)[_0xe3f35b(0x1b8)](0x5,'0');}export function sanitizeFileName(_0x3d8002){const _0x8dcb42=a232_0x36bb;return _0x3d8002['toLowerCase']()[_0x8dcb42(0x1ab)](/[/\\:*?"<>|]/g,'-')[_0x8dcb42(0x1ab)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x8dcb42(0x1ab)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x490884,_0x1f3ef1){const _0x8c4881=a233_0x3f1d,_0x1b911e=_0x490884();while(!![]){try{const _0x42d997=parseInt(_0x8c4881(0x179))/0x1*(parseInt(_0x8c4881(0x182))/0x2)+parseInt(_0x8c4881(0x17c))/0x3*(parseInt(_0x8c4881(0x190))/0x4)+-parseInt(_0x8c4881(0x18d))/0x5*(parseInt(_0x8c4881(0x181))/0x6)+-parseInt(_0x8c4881(0x191))/0x7*(parseInt(_0x8c4881(0x189))/0x8)+-parseInt(_0x8c4881(0x17a))/0x9+-parseInt(_0x8c4881(0x180))/0xa+parseInt(_0x8c4881(0x192))/0xb;if(_0x42d997===_0x1f3ef1)break;else _0x1b911e['push'](_0x1b911e['shift']());}catch(_0x97b85f){_0x1b911e['push'](_0x1b911e['shift']());}}}(a233_0x1577,0x36934));function hasWildcard(_0x9fa599){const _0x4b5e86=a233_0x3f1d;return _0x9fa599[_0x4b5e86(0x17b)]('*')||_0x9fa599[_0x4b5e86(0x17b)]('?');}export function parseTableReference(_0x4e70f7){const _0x4a8878=a233_0x3f1d;if(!_0x4e70f7||_0x4e70f7[_0x4a8878(0x188)]()[_0x4a8878(0x18c)]===0x0)throw new Error(_0x4a8878(0x18a));const _0x1a886b=_0x4e70f7[_0x4a8878(0x188)](),_0x41ccc7={'original':_0x1a886b},_0x312bac=_0x1a886b[_0x4a8878(0x18b)]('.');if(_0x312bac['length']===0x1){const _0x11b175=_0x312bac[0x0];if(!_0x11b175)throw new Error(_0x4a8878(0x17d));_0x41ccc7[_0x4a8878(0x18e)]=_0x11b175;}else{if(_0x312bac[_0x4a8878(0x18c)]===0x2){const [_0x341a8b,_0x46cc91]=_0x312bac;if(!_0x341a8b)throw new Error(_0x4a8878(0x186));if(!_0x46cc91)throw new Error(_0x4a8878(0x17f));_0x41ccc7[_0x4a8878(0x193)]=_0x341a8b,_0x41ccc7[_0x4a8878(0x18e)]=_0x46cc91;}else{if(_0x312bac['length']===0x3){const [_0x2d3159,_0x256a5f,_0x1dbe5f]=_0x312bac;if(!_0x2d3159||!_0x256a5f||!_0x1dbe5f)throw new Error(_0x4a8878(0x187));_0x41ccc7[_0x4a8878(0x17e)]=_0x2d3159,_0x41ccc7[_0x4a8878(0x193)]=_0x256a5f,_0x41ccc7[_0x4a8878(0x18e)]=_0x1dbe5f;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x41ccc7;}function a233_0x3f1d(_0x339c28,_0x12e086){_0x339c28=_0x339c28-0x179;const _0x157770=a233_0x1577();let _0x3f1d1c=_0x157770[_0x339c28];return _0x3f1d1c;}export function formatTableReference(_0x536d50){const _0x3a9a0b=a233_0x3f1d,_0x1c9384=[];return _0x536d50[_0x3a9a0b(0x17e)]&&_0x1c9384['push'](_0x536d50['catalog']),_0x536d50[_0x3a9a0b(0x193)]&&_0x1c9384[_0x3a9a0b(0x18f)](_0x536d50[_0x3a9a0b(0x193)]),_0x536d50[_0x3a9a0b(0x18e)]&&_0x1c9384[_0x3a9a0b(0x18f)](_0x536d50[_0x3a9a0b(0x18e)]),_0x1c9384['join']('.');}function a233_0x1577(){const _0x4585ec=['catalog','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','3262080WFlvuh','245652VHIvGk','4oIIBci','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','trim','88JhrXJz','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','split','length','10YitJFT','table','push','4RjbKiO','42707aUKnRC','7271099IoSQFQ','database','103903IavfjO','2196945OmXkhu','includes','222099aVnZWu','Pattern\x20cannot\x20be\x20just\x20a\x20dot'];a233_0x1577=function(){return _0x4585ec;};return a233_0x1577();}export function validateTableListReference(_0x370ee2){return undefined;}export function validateTableDescribeReference(_0x54e12c){const _0x1f2125=a233_0x3f1d;if(!_0x54e12c[_0x1f2125(0x18e)])return _0x1f2125(0x183);if(_0x54e12c['database']&&hasWildcard(_0x54e12c[_0x1f2125(0x193)]))return _0x1f2125(0x185);if(hasWildcard(_0x54e12c['table']))return _0x1f2125(0x184);return undefined;}
1
+ (function(_0x170e46,_0x54a434){const _0x4bfa00=a233_0xf22e,_0x1be678=_0x170e46();while(!![]){try{const _0x43f1d5=parseInt(_0x4bfa00(0x1b1))/0x1*(parseInt(_0x4bfa00(0x1ae))/0x2)+parseInt(_0x4bfa00(0x19f))/0x3*(-parseInt(_0x4bfa00(0x1a2))/0x4)+-parseInt(_0x4bfa00(0x1a4))/0x5+-parseInt(_0x4bfa00(0x19c))/0x6*(parseInt(_0x4bfa00(0x1a5))/0x7)+parseInt(_0x4bfa00(0x1a8))/0x8*(parseInt(_0x4bfa00(0x19d))/0x9)+-parseInt(_0x4bfa00(0x1ab))/0xa*(parseInt(_0x4bfa00(0x19e))/0xb)+parseInt(_0x4bfa00(0x1b0))/0xc;if(_0x43f1d5===_0x54a434)break;else _0x1be678['push'](_0x1be678['shift']());}catch(_0x55df64){_0x1be678['push'](_0x1be678['shift']());}}}(a233_0x50c1,0x8f6e6));function a233_0x50c1(){const _0x1301c6=['35NXOfAR','table','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','8jVeCnN','catalog','push','11304560XmjBGH','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','6sOEsRq','split','14443428GrIUGF','314462KrgiJl','length','join','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','includes','576198QuCJza','10537965szGuaD','11nFKruM','3DWJqmU','trim','database','1478260dGWvTx','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','3751050UJvwxA'];a233_0x50c1=function(){return _0x1301c6;};return a233_0x50c1();}function hasWildcard(_0x5288d6){const _0xc9308f=a233_0xf22e;return _0x5288d6[_0xc9308f(0x19b)]('*')||_0x5288d6['includes']('?');}export function parseTableReference(_0x3f3182){const _0x4e0c8f=a233_0xf22e;if(!_0x3f3182||_0x3f3182['trim']()[_0x4e0c8f(0x1b2)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x372b03=_0x3f3182[_0x4e0c8f(0x1a0)](),_0x3d825e={'original':_0x372b03},_0x4cb775=_0x372b03[_0x4e0c8f(0x1af)]('.');if(_0x4cb775[_0x4e0c8f(0x1b2)]===0x1){const _0x638046=_0x4cb775[0x0];if(!_0x638046)throw new Error(_0x4e0c8f(0x1b4));_0x3d825e[_0x4e0c8f(0x1a6)]=_0x638046;}else{if(_0x4cb775['length']===0x2){const [_0xc68da2,_0x5f329f]=_0x4cb775;if(!_0xc68da2)throw new Error(_0x4e0c8f(0x1ac));if(!_0x5f329f)throw new Error(_0x4e0c8f(0x19a));_0x3d825e['database']=_0xc68da2,_0x3d825e['table']=_0x5f329f;}else{if(_0x4cb775[_0x4e0c8f(0x1b2)]===0x3){const [_0x3b92ad,_0x5be503,_0x1d7945]=_0x4cb775;if(!_0x3b92ad||!_0x5be503||!_0x1d7945)throw new Error(_0x4e0c8f(0x1ad));_0x3d825e[_0x4e0c8f(0x1a9)]=_0x3b92ad,_0x3d825e['database']=_0x5be503,_0x3d825e['table']=_0x1d7945;}else throw new Error(_0x4e0c8f(0x1b5));}}return _0x3d825e;}function a233_0xf22e(_0x48c407,_0x584220){_0x48c407=_0x48c407-0x19a;const _0x50c147=a233_0x50c1();let _0xf22e0f=_0x50c147[_0x48c407];return _0xf22e0f;}export function formatTableReference(_0x12d796){const _0x8c47f0=a233_0xf22e,_0x20507a=[];return _0x12d796[_0x8c47f0(0x1a9)]&&_0x20507a[_0x8c47f0(0x1aa)](_0x12d796['catalog']),_0x12d796[_0x8c47f0(0x1a1)]&&_0x20507a[_0x8c47f0(0x1aa)](_0x12d796[_0x8c47f0(0x1a1)]),_0x12d796[_0x8c47f0(0x1a6)]&&_0x20507a[_0x8c47f0(0x1aa)](_0x12d796[_0x8c47f0(0x1a6)]),_0x20507a[_0x8c47f0(0x1b3)]('.');}export function validateTableListReference(_0xfc0175){return undefined;}export function validateTableDescribeReference(_0x5b0560){const _0x5ac22b=a233_0xf22e;if(!_0x5b0560['table'])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x5b0560[_0x5ac22b(0x1a1)]&&hasWildcard(_0x5b0560[_0x5ac22b(0x1a1)]))return _0x5ac22b(0x1a7);if(hasWildcard(_0x5b0560[_0x5ac22b(0x1a6)]))return _0x5ac22b(0x1a3);return undefined;}
@@ -1 +1 @@
1
- function a234_0x138f(){const _0x16981c=['57321ViTeAg','logDir','push','2AgaEqt','init','2269518FtybRA','warn','3096180RUiHGZ','fileOnly','logFileName','close','info','debug','getLogPath','fileHandler','3850509ZwGSfb','logger','addHandler','error','logs','5jxrwKI','1527956bjFZmm','INFO','shutdown','8671873KraLOT','logLevel','Session\x20ended','consoleHandler','112MCSxkh','trace','2812864cvoJvn'];a234_0x138f=function(){return _0x16981c;};return a234_0x138f();}const a234_0x2c0093=a234_0x2379;(function(_0x1c35fe,_0xd6adcf){const _0x59cdcb=a234_0x2379,_0x33d1f5=_0x1c35fe();while(!![]){try{const _0x26dab1=parseInt(_0x59cdcb(0x180))/0x1+parseInt(_0x59cdcb(0x18d))/0x2*(parseInt(_0x59cdcb(0x17a))/0x3)+parseInt(_0x59cdcb(0x189))/0x4*(-parseInt(_0x59cdcb(0x17f))/0x5)+parseInt(_0x59cdcb(0x18f))/0x6+-parseInt(_0x59cdcb(0x183))/0x7+-parseInt(_0x59cdcb(0x187))/0x8*(parseInt(_0x59cdcb(0x18a))/0x9)+-parseInt(_0x59cdcb(0x191))/0xa;if(_0x26dab1===_0xd6adcf)break;else _0x33d1f5['push'](_0x33d1f5['shift']());}catch(_0x438199){_0x33d1f5['push'](_0x33d1f5['shift']());}}}(a234_0x138f,0xcf3e9));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';function a234_0x2379(_0x250b35,_0x1c82a7){_0x250b35=_0x250b35-0x174;const _0x138f35=a234_0x138f();let _0x237971=_0x138f35[_0x250b35];return _0x237971;}export class TDXLogger{[a234_0x2c0093(0x184)];[a234_0x2c0093(0x192)];[a234_0x2c0093(0x18b)];[a234_0x2c0093(0x174)];['logger'];[a234_0x2c0093(0x179)]=null;[a234_0x2c0093(0x186)]=null;constructor(_0x517af4=LogLevel[a234_0x2c0093(0x181)],_0x1de4e9=![],_0x10c373,_0x40283a='tdx.log'){const _0x5b0151=a234_0x2c0093;this[_0x5b0151(0x184)]=_0x517af4,this['fileOnly']=_0x1de4e9,this['logDir']=_0x10c373||join(getGlobalCacheDir(),_0x5b0151(0x17e)),this[_0x5b0151(0x174)]=_0x40283a,this['logger']=Logger['of']('tdx');}async[a234_0x2c0093(0x18e)](){const _0x142a55=a234_0x2c0093,_0x3c113c=join(this['logDir'],this[_0x142a55(0x174)]);if(Logger['isInitialized']()){!this[_0x142a55(0x192)]&&(this[_0x142a55(0x186)]=new ConsoleHandler({'minLevel':LogLevel[_0x142a55(0x181)],'colors':!![]}),Logger[_0x142a55(0x17c)](this[_0x142a55(0x186)]));return;}this[_0x142a55(0x179)]=new FileHandler({'filePath':_0x3c113c});const _0x5ddb71=[this['fileHandler']];!this[_0x142a55(0x192)]&&(this[_0x142a55(0x186)]=new ConsoleHandler({'minLevel':LogLevel[_0x142a55(0x181)],'colors':!![]}),_0x5ddb71[_0x142a55(0x18c)](this['consoleHandler'])),await Logger[_0x142a55(0x18e)]({'defaultLevel':this[_0x142a55(0x184)],'handlers':_0x5ddb71,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a234_0x2c0093(0x177)](..._0x43bea7){const _0x3b666c=a234_0x2c0093;this['logger'][_0x3b666c(0x177)](..._0x43bea7);}[a234_0x2c0093(0x188)](..._0x3e045c){const _0x354288=a234_0x2c0093;this[_0x354288(0x17b)][_0x354288(0x188)](..._0x3e045c);}[a234_0x2c0093(0x176)](..._0x1adc2d){const _0x3d108a=a234_0x2c0093;this[_0x3d108a(0x17b)][_0x3d108a(0x176)](..._0x1adc2d);}[a234_0x2c0093(0x190)](..._0x3a57de){const _0x2e5276=a234_0x2c0093;this[_0x2e5276(0x17b)]['warn'](..._0x3a57de);}[a234_0x2c0093(0x17d)](..._0x2a4c08){const _0x376aeb=a234_0x2c0093;this[_0x376aeb(0x17b)][_0x376aeb(0x17d)](..._0x2a4c08);}async[a234_0x2c0093(0x175)](){const _0x12423a=a234_0x2c0093;this[_0x12423a(0x17b)][_0x12423a(0x176)](_0x12423a(0x185)),await Logger[_0x12423a(0x182)]();}[a234_0x2c0093(0x178)](){const _0x3746d8=a234_0x2c0093;return join(this['logDir'],this[_0x3746d8(0x174)]);}}
1
+ function a234_0x4a49(){const _0x1cb117=['14093885CNuAiW','consoleHandler','8FrTohI','159076wPdwYH','737091ElqJzR','INFO','tdx','18hVblBE','addHandler','11nYaELM','init','trace','logFileName','logger','70VacDAS','logLevel','142483XCHcvT','close','9636xEhxuJ','tdx.log','error','logDir','fileHandler','warn','160330gHXSGX','1290ukVLFI','isInitialized','1058638OIcyUQ','84YQkkPx','info','getLogPath','debug','fileOnly','push'];a234_0x4a49=function(){return _0x1cb117;};return a234_0x4a49();}const a234_0x4a46ff=a234_0x116e;(function(_0x148f14,_0x217ff1){const _0x184c1f=a234_0x116e,_0x2a33ae=_0x148f14();while(!![]){try{const _0x588aea=parseInt(_0x184c1f(0x164))/0x1*(parseInt(_0x184c1f(0x173))/0x2)+parseInt(_0x184c1f(0x162))/0x3*(-parseInt(_0x184c1f(0x15e))/0x4)+-parseInt(_0x184c1f(0x174))/0x5*(-parseInt(_0x184c1f(0x16d))/0x6)+parseInt(_0x184c1f(0x176))/0x7*(parseInt(_0x184c1f(0x17f))/0x8)+parseInt(_0x184c1f(0x15f))/0x9*(parseInt(_0x184c1f(0x169))/0xa)+parseInt(_0x184c1f(0x16b))/0xb*(parseInt(_0x184c1f(0x177))/0xc)+-parseInt(_0x184c1f(0x17d))/0xd;if(_0x588aea===_0x217ff1)break;else _0x2a33ae['push'](_0x2a33ae['shift']());}catch(_0x1ae15f){_0x2a33ae['push'](_0x2a33ae['shift']());}}}(a234_0x4a49,0xc087a));import{join}from'path';function a234_0x116e(_0x56a724,_0x470c01){_0x56a724=_0x56a724-0x15e;const _0x4a49e1=a234_0x4a49();let _0x116ec7=_0x4a49e1[_0x56a724];return _0x116ec7;}import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{['logLevel'];[a234_0x4a46ff(0x17b)];[a234_0x4a46ff(0x170)];[a234_0x4a46ff(0x167)];[a234_0x4a46ff(0x168)];[a234_0x4a46ff(0x171)]=null;[a234_0x4a46ff(0x17e)]=null;constructor(_0x528341=LogLevel[a234_0x4a46ff(0x160)],_0x2f189a=![],_0x9354aa,_0x461418=a234_0x4a46ff(0x16e)){const _0x14ded3=a234_0x4a46ff;this[_0x14ded3(0x16a)]=_0x528341,this[_0x14ded3(0x17b)]=_0x2f189a,this[_0x14ded3(0x170)]=_0x9354aa||join(getGlobalCacheDir(),'logs'),this[_0x14ded3(0x167)]=_0x461418,this[_0x14ded3(0x168)]=Logger['of'](_0x14ded3(0x161));}async[a234_0x4a46ff(0x165)](){const _0x393a47=a234_0x4a46ff,_0x1fbc89=join(this[_0x393a47(0x170)],this[_0x393a47(0x167)]);if(Logger[_0x393a47(0x175)]()){!this[_0x393a47(0x17b)]&&(this[_0x393a47(0x17e)]=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),Logger[_0x393a47(0x163)](this[_0x393a47(0x17e)]));return;}this['fileHandler']=new FileHandler({'filePath':_0x1fbc89});const _0x3f435a=[this[_0x393a47(0x171)]];!this[_0x393a47(0x17b)]&&(this[_0x393a47(0x17e)]=new ConsoleHandler({'minLevel':LogLevel[_0x393a47(0x160)],'colors':!![]}),_0x3f435a[_0x393a47(0x17c)](this[_0x393a47(0x17e)])),await Logger['init']({'defaultLevel':this[_0x393a47(0x16a)],'handlers':_0x3f435a,'formatter':new DefaultLogFormatter({'colors':!![]})});}['debug'](..._0x1c7b85){const _0x9319f6=a234_0x4a46ff;this[_0x9319f6(0x168)][_0x9319f6(0x17a)](..._0x1c7b85);}[a234_0x4a46ff(0x166)](..._0x289a97){const _0x56a2da=a234_0x4a46ff;this[_0x56a2da(0x168)][_0x56a2da(0x166)](..._0x289a97);}['info'](..._0x42e575){const _0x7c64e2=a234_0x4a46ff;this[_0x7c64e2(0x168)][_0x7c64e2(0x178)](..._0x42e575);}[a234_0x4a46ff(0x172)](..._0x1da2a2){const _0x213997=a234_0x4a46ff;this[_0x213997(0x168)][_0x213997(0x172)](..._0x1da2a2);}[a234_0x4a46ff(0x16f)](..._0x2e9b27){const _0x4478ff=a234_0x4a46ff;this['logger'][_0x4478ff(0x16f)](..._0x2e9b27);}async[a234_0x4a46ff(0x16c)](){const _0x51f2a1=a234_0x4a46ff;this['logger'][_0x51f2a1(0x178)]('Session\x20ended'),await Logger['shutdown']();}[a234_0x4a46ff(0x179)](){const _0x28ad43=a234_0x4a46ff;return join(this[_0x28ad43(0x170)],this[_0x28ad43(0x167)]);}}
@@ -1 +1 @@
1
- const a235_0x3e2184=a235_0x201c;(function(_0x315527,_0x139640){const _0x4488ef=a235_0x201c,_0x368de9=_0x315527();while(!![]){try{const _0x49a50b=parseInt(_0x4488ef(0x11f))/0x1*(-parseInt(_0x4488ef(0x129))/0x2)+parseInt(_0x4488ef(0x131))/0x3*(-parseInt(_0x4488ef(0x12a))/0x4)+parseInt(_0x4488ef(0x11a))/0x5*(parseInt(_0x4488ef(0x137))/0x6)+parseInt(_0x4488ef(0x10e))/0x7*(parseInt(_0x4488ef(0x134))/0x8)+parseInt(_0x4488ef(0x125))/0x9+-parseInt(_0x4488ef(0x119))/0xa*(-parseInt(_0x4488ef(0x118))/0xb)+-parseInt(_0x4488ef(0x11d))/0xc*(parseInt(_0x4488ef(0x127))/0xd);if(_0x49a50b===_0x139640)break;else _0x368de9['push'](_0x368de9['shift']());}catch(_0x26c3ec){_0x368de9['push'](_0x368de9['shift']());}}}(a235_0x5444,0x8e2d9));import{get}from'https';import{gt,valid}from'semver';import a235_0x6c0bf3 from'chalk';import{createGlobalCache}from'./global-cache.js';function a235_0x201c(_0x4ed13b,_0x5af022){_0x4ed13b=_0x4ed13b-0x10c;const _0x5444ba=a235_0x5444();let _0x201c5e=_0x5444ba[_0x4ed13b];return _0x201c5e;}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a235_0x3e2184(0x110),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a235_0x3e2184(0x11e),'utils/version-check'),nextVersionCache=createGlobalCache('last_version_check_next','utils/version-check-next');function a235_0x5444(){const _0x2de990=['15323IMIaRC','7820uupyKj','17200rqzIoN','HTTP\x20','Update\x20available:','4600524nubWrg','last_version_check','746423AVwnNK','green','data','version','\x0aRun:\x20','updateAvailable','418599kSVkEu','tdx\x20upgrade','13KdWzIC','latestVersion','2fQBfIa','973048mXGxhp','cyan','stderr','yellow','stable','tdx\x20upgrade\x20--next','getTime','9poQTsD','\x0aUpdate\x20available:\x20','gray','1666640VooRuM','isTTY','statusCode','1188cwupOX','write','socket','end','21PzODga','currentVersion','https://registry.npmjs.org/@treasuredata/tdx','dim','destroy','Request\x20timeout','lastCheck','next','toISOString','unref'];a235_0x5444=function(){return _0x2de990;};return a235_0x5444();}function getCacheForChannel(_0x2bbb89){const _0x2a51f6=a235_0x3e2184;return _0x2bbb89===_0x2a51f6(0x115)?nextVersionCache:stableVersionCache;}function readCache(_0x37eb78){return getCacheForChannel(_0x37eb78)['read']()??null;}function writeCache(_0x14438b,_0x46fb2b){const _0x140d48=a235_0x3e2184;try{getCacheForChannel(_0x46fb2b)['write']({'lastCheck':new Date()[_0x140d48(0x116)](),'latestVersion':_0x14438b});}catch{}}function isCacheValid(_0x271810){const _0x49aecc=a235_0x3e2184;if(!_0x271810)return![];const _0x588952=new Date(_0x271810[_0x49aecc(0x114)])[_0x49aecc(0x130)](),_0x141db8=Date['now']();return _0x141db8-_0x588952<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x5b1544=a235_0x3e2184(0x12e),_0x18b483){const _0x2f9d93=a235_0x3e2184,_0x2882b7=_0x18b483?.['background']??![],_0x1545a2=_0x5b1544==='next'?_0x2f9d93(0x115):'latest',_0xd23734=NPM_REGISTRY_BASE+'/'+_0x1545a2;return new Promise((_0x40e0bc,_0x2b2296)=>{const _0x3dca59=_0x2f9d93,_0x306d08=get(_0xd23734,{'timeout':TIMEOUT_MS},_0x20ff31=>{const _0x1949aa=a235_0x201c;if(_0x20ff31[_0x1949aa(0x136)]!==0xc8){clearTimeout(_0x47766b),_0x2b2296(new Error(_0x1949aa(0x11b)+_0x20ff31[_0x1949aa(0x136)]));return;}let _0x4cfc19='';_0x20ff31['on'](_0x1949aa(0x121),_0x72ed63=>{_0x4cfc19+=_0x72ed63;}),_0x20ff31['on'](_0x1949aa(0x10d),()=>{const _0x40a2c7=_0x1949aa;clearTimeout(_0x47766b);try{const _0x28e181=JSON['parse'](_0x4cfc19);if(!valid(_0x28e181[_0x40a2c7(0x122)])){_0x2b2296(new Error('Invalid\x20version\x20format'));return;}_0x40e0bc(_0x28e181[_0x40a2c7(0x122)]);}catch(_0x155fe5){_0x2b2296(_0x155fe5);}});})['on']('error',_0x3d06b0=>{clearTimeout(_0x47766b),_0x2b2296(_0x3d06b0);}),_0x47766b=setTimeout(()=>{const _0x4a84e7=a235_0x201c;_0x306d08[_0x4a84e7(0x112)](),_0x2b2296(new Error(_0x4a84e7(0x113)));},TIMEOUT_MS);_0x2882b7&&(_0x306d08['on'](_0x3dca59(0x10c),_0x35d04d=>{_0x35d04d['unref']();}),_0x47766b[_0x3dca59(0x117)]());});}export async function checkForUpdate(_0x3bf82d,_0x55f83f=a235_0x3e2184(0x12e)){const _0x594cea=a235_0x3e2184;try{const _0x5edec7=readCache(_0x55f83f);if(isCacheValid(_0x5edec7)){const _0x54e25f=gt(_0x5edec7[_0x594cea(0x128)],_0x3bf82d);return{'updateAvailable':_0x54e25f,'currentVersion':_0x3bf82d,'latestVersion':_0x5edec7[_0x594cea(0x128)],'channel':_0x55f83f};}const _0x55690f=await fetchLatestVersion(_0x55f83f,{'background':!![]});writeCache(_0x55690f,_0x55f83f);const _0x228fd0=gt(_0x55690f,_0x3bf82d);return{'updateAvailable':_0x228fd0,'currentVersion':_0x3bf82d,'latestVersion':_0x55690f,'channel':_0x55f83f};}catch{return null;}}export function displayUpdateNotification(_0x230aec){const _0x2ec521=a235_0x3e2184;if(!_0x230aec[_0x2ec521(0x124)])return;const _0x3cf648=_0x230aec['channel']===_0x2ec521(0x115)?_0x2ec521(0x12f):_0x2ec521(0x126),_0x523e35=process['stderr'][_0x2ec521(0x135)]&&!process.env.NO_COLOR,_0xdd6fc5=_0x523e35?a235_0x6c0bf3[_0x2ec521(0x133)]('→'):'→',_0x4a9b47=_0x523e35?a235_0x6c0bf3[_0x2ec521(0x111)](_0x230aec['currentVersion']):_0x230aec[_0x2ec521(0x10f)],_0x3430b0=_0x523e35?a235_0x6c0bf3[_0x2ec521(0x120)](_0x230aec[_0x2ec521(0x128)]):_0x230aec[_0x2ec521(0x128)],_0x264dc4=_0x523e35?a235_0x6c0bf3[_0x2ec521(0x12b)](_0x3cf648):_0x3cf648,_0x38e398=_0x523e35?'\x0a'+a235_0x6c0bf3[_0x2ec521(0x12d)](_0x2ec521(0x11c))+'\x20'+_0x4a9b47+'\x20'+_0xdd6fc5+'\x20'+_0x3430b0+'\x0a'+a235_0x6c0bf3[_0x2ec521(0x111)]('Run:')+'\x20'+_0x264dc4+'\x0a':_0x2ec521(0x132)+_0x4a9b47+'\x20'+_0xdd6fc5+'\x20'+_0x3430b0+_0x2ec521(0x123)+_0x264dc4+'\x0a';process[_0x2ec521(0x12c)][_0x2ec521(0x138)](_0x38e398);}
1
+ const a235_0x5d3c72=a235_0xc49d;(function(_0x3e65e6,_0x51ea02){const _0x4e06e1=a235_0xc49d,_0x57e9fa=_0x3e65e6();while(!![]){try{const _0x33c067=parseInt(_0x4e06e1(0x8c))/0x1+-parseInt(_0x4e06e1(0xb1))/0x2*(-parseInt(_0x4e06e1(0xa0))/0x3)+parseInt(_0x4e06e1(0x8f))/0x4*(-parseInt(_0x4e06e1(0x99))/0x5)+parseInt(_0x4e06e1(0x9a))/0x6+parseInt(_0x4e06e1(0x9f))/0x7*(parseInt(_0x4e06e1(0x9c))/0x8)+-parseInt(_0x4e06e1(0x92))/0x9*(-parseInt(_0x4e06e1(0x98))/0xa)+-parseInt(_0x4e06e1(0xb5))/0xb;if(_0x33c067===_0x51ea02)break;else _0x57e9fa['push'](_0x57e9fa['shift']());}catch(_0x47443b){_0x57e9fa['push'](_0x57e9fa['shift']());}}}(a235_0x1b10,0xe44cb));import{get}from'https';function a235_0xc49d(_0x1018f9,_0x290a50){_0x1018f9=_0x1018f9-0x8b;const _0x1b102a=a235_0x1b10();let _0xc49d0a=_0x1b102a[_0x1018f9];return _0xc49d0a;}function a235_0x1b10(){const _0x6997c3=['green','read','3750ZhwuUy','195ZMQvga','9565374lRumxt','write','9398216cGlOiA','error','tdx\x20upgrade','7kvtfbe','6crRCCq','now','version','parse','gray','cyan','background','utils/version-check-next','unref','statusCode','toISOString','\x0aRun:\x20','Invalid\x20version\x20format','lastCheck','utils/version-check','HTTP\x20','next','1777754NUrlKu','Update\x20available:','\x0aUpdate\x20available:\x20','getTime','52028328xQzUDz','destroy','dim','latestVersion','last_version_check','19672iXhMhU','data','stderr','75984rzxarj','isTTY','Request\x20timeout','44145CTGQRl','Run:','yellow','channel'];a235_0x1b10=function(){return _0x6997c3;};return a235_0x1b10();}import{gt,valid}from'semver';import a235_0x511556 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE='https://registry.npmjs.org/@treasuredata/tdx',TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a235_0x5d3c72(0x8b),a235_0x5d3c72(0xae)),nextVersionCache=createGlobalCache('last_version_check_next',a235_0x5d3c72(0xa7));function getCacheForChannel(_0x5ad4a3){const _0xc47ba6=a235_0x5d3c72;return _0x5ad4a3===_0xc47ba6(0xb0)?nextVersionCache:stableVersionCache;}function readCache(_0x5295dc){const _0xd2b94c=a235_0x5d3c72;return getCacheForChannel(_0x5295dc)[_0xd2b94c(0x97)]()??null;}function writeCache(_0x5c1a03,_0x1ee80b){const _0x4f4906=a235_0x5d3c72;try{getCacheForChannel(_0x1ee80b)['write']({'lastCheck':new Date()[_0x4f4906(0xaa)](),'latestVersion':_0x5c1a03});}catch{}}function isCacheValid(_0x314d4e){const _0x42ee70=a235_0x5d3c72;if(!_0x314d4e)return![];const _0x38ff05=new Date(_0x314d4e[_0x42ee70(0xad)])[_0x42ee70(0xb4)](),_0x284b6c=Date[_0x42ee70(0xa1)]();return _0x284b6c-_0x38ff05<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x48a92b='stable',_0x51e0ff){const _0xd0cad4=a235_0x5d3c72,_0x127041=_0x51e0ff?.[_0xd0cad4(0xa6)]??![],_0x57703d=_0x48a92b===_0xd0cad4(0xb0)?'next':'latest',_0x50b987=NPM_REGISTRY_BASE+'/'+_0x57703d;return new Promise((_0x2c7d50,_0x1b39de)=>{const _0x21052d=_0xd0cad4,_0x15af0e=get(_0x50b987,{'timeout':TIMEOUT_MS},_0x3d2d8c=>{const _0x1a12d5=a235_0xc49d;if(_0x3d2d8c[_0x1a12d5(0xa9)]!==0xc8){clearTimeout(_0x4728bf),_0x1b39de(new Error(_0x1a12d5(0xaf)+_0x3d2d8c['statusCode']));return;}let _0x10483f='';_0x3d2d8c['on'](_0x1a12d5(0x8d),_0x23d86e=>{_0x10483f+=_0x23d86e;}),_0x3d2d8c['on']('end',()=>{const _0x48fc46=_0x1a12d5;clearTimeout(_0x4728bf);try{const _0x18d2b0=JSON[_0x48fc46(0xa3)](_0x10483f);if(!valid(_0x18d2b0['version'])){_0x1b39de(new Error(_0x48fc46(0xac)));return;}_0x2c7d50(_0x18d2b0[_0x48fc46(0xa2)]);}catch(_0x259373){_0x1b39de(_0x259373);}});})['on'](_0x21052d(0x9d),_0x24515a=>{clearTimeout(_0x4728bf),_0x1b39de(_0x24515a);}),_0x4728bf=setTimeout(()=>{const _0x43d59d=_0x21052d;_0x15af0e[_0x43d59d(0xb6)](),_0x1b39de(new Error(_0x43d59d(0x91)));},TIMEOUT_MS);_0x127041&&(_0x15af0e['on']('socket',_0x50ee5e=>{_0x50ee5e['unref']();}),_0x4728bf[_0x21052d(0xa8)]());});}export async function checkForUpdate(_0xdb762d,_0x3f21aa='stable'){const _0x45e51e=a235_0x5d3c72;try{const _0x59c204=readCache(_0x3f21aa);if(isCacheValid(_0x59c204)){const _0x3663ea=gt(_0x59c204['latestVersion'],_0xdb762d);return{'updateAvailable':_0x3663ea,'currentVersion':_0xdb762d,'latestVersion':_0x59c204[_0x45e51e(0xb8)],'channel':_0x3f21aa};}const _0x2b814c=await fetchLatestVersion(_0x3f21aa,{'background':!![]});writeCache(_0x2b814c,_0x3f21aa);const _0x55d200=gt(_0x2b814c,_0xdb762d);return{'updateAvailable':_0x55d200,'currentVersion':_0xdb762d,'latestVersion':_0x2b814c,'channel':_0x3f21aa};}catch{return null;}}export function displayUpdateNotification(_0x2e93e7){const _0x2faa45=a235_0x5d3c72;if(!_0x2e93e7['updateAvailable'])return;const _0x5db352=_0x2e93e7[_0x2faa45(0x95)]===_0x2faa45(0xb0)?'tdx\x20upgrade\x20--next':_0x2faa45(0x9e),_0x2d28ac=process[_0x2faa45(0x8e)][_0x2faa45(0x90)]&&!process.env.NO_COLOR,_0x1c63be=_0x2d28ac?a235_0x511556[_0x2faa45(0xa4)]('→'):'→',_0x42d27a=_0x2d28ac?a235_0x511556[_0x2faa45(0xb7)](_0x2e93e7['currentVersion']):_0x2e93e7['currentVersion'],_0x211be0=_0x2d28ac?a235_0x511556[_0x2faa45(0x96)](_0x2e93e7[_0x2faa45(0xb8)]):_0x2e93e7[_0x2faa45(0xb8)],_0x5cba34=_0x2d28ac?a235_0x511556[_0x2faa45(0xa5)](_0x5db352):_0x5db352,_0x494ce9=_0x2d28ac?'\x0a'+a235_0x511556[_0x2faa45(0x94)](_0x2faa45(0xb2))+'\x20'+_0x42d27a+'\x20'+_0x1c63be+'\x20'+_0x211be0+'\x0a'+a235_0x511556[_0x2faa45(0xb7)](_0x2faa45(0x93))+'\x20'+_0x5cba34+'\x0a':_0x2faa45(0xb3)+_0x42d27a+'\x20'+_0x1c63be+'\x20'+_0x211be0+_0x2faa45(0xab)+_0x5cba34+'\x0a';process[_0x2faa45(0x8e)][_0x2faa45(0x9b)](_0x494ce9);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.4.17",
3
+ "version": "2026.4.18",
4
4
  "description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {
@@ -128,6 +128,21 @@
128
128
  "electron-winstaller",
129
129
  "esbuild",
130
130
  "javascript-obfuscator"
131
- ]
131
+ ],
132
+ "supportedArchitectures": {
133
+ "os": [
134
+ "darwin",
135
+ "linux",
136
+ "win32"
137
+ ],
138
+ "cpu": [
139
+ "x64",
140
+ "arm64"
141
+ ],
142
+ "libc": [
143
+ "glibc",
144
+ "musl"
145
+ ]
146
+ }
132
147
  }
133
148
  }