@treasuredata/tdx 0.14.6 → 0.14.7

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 (142) 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/api-command.js +1 -1
  8. package/dist/commands/auth-command.js +1 -1
  9. package/dist/commands/chat-command.js +1 -1
  10. package/dist/commands/claude-command.d.ts.map +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-command.js.map +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-command.js +1 -1
  20. package/dist/commands/job-command.js +1 -1
  21. package/dist/commands/journey-command.js +1 -1
  22. package/dist/commands/journey-validate-command.js +1 -1
  23. package/dist/commands/llm-command.js +1 -1
  24. package/dist/commands/llm-proxy.js +1 -1
  25. package/dist/commands/parent-segment-command.js +1 -1
  26. package/dist/commands/profile-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/tables.js +1 -1
  40. package/dist/commands/unset-command.js +1 -1
  41. package/dist/commands/use-command.js +1 -1
  42. package/dist/commands/user-command.js +1 -1
  43. package/dist/commands/workflow-command.js +1 -1
  44. package/dist/core/auth.js +1 -1
  45. package/dist/core/command-output.js +1 -1
  46. package/dist/core/config.js +1 -1
  47. package/dist/core/connection-cache.js +1 -1
  48. package/dist/core/constants.js +1 -1
  49. package/dist/core/credential-cache.js +1 -1
  50. package/dist/core/global-context.js +1 -1
  51. package/dist/core/keychain.js +1 -1
  52. package/dist/core/profile.js +1 -1
  53. package/dist/core/project-config.js +1 -1
  54. package/dist/core/session.js +1 -1
  55. package/dist/core/user-cache.js +1 -1
  56. package/dist/core/version.js +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/proxy/anthropic-adapter.js +1 -1
  59. package/dist/proxy/claude-usage-tracker.js +1 -1
  60. package/dist/proxy/context-signature.js +1 -1
  61. package/dist/proxy/conversation-utils.js +1 -1
  62. package/dist/proxy/passthrough-server.js +1 -1
  63. package/dist/proxy/server.js +1 -1
  64. package/dist/proxy/session-cache.js +1 -1
  65. package/dist/proxy/sse-usage-parser.js +1 -1
  66. package/dist/sdk/agent/agent-config.js +1 -1
  67. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  68. package/dist/sdk/agent/agent-yaml.js +1 -1
  69. package/dist/sdk/api.js +1 -1
  70. package/dist/sdk/client/cdp-api-client.js +1 -1
  71. package/dist/sdk/client/endpoints.js +1 -1
  72. package/dist/sdk/client/engage-api-client.js +1 -1
  73. package/dist/sdk/client/http-client.d.ts.map +1 -1
  74. package/dist/sdk/client/http-client.js +1 -1
  75. package/dist/sdk/client/http-client.js.map +1 -1
  76. package/dist/sdk/client/llm-api-client.js +1 -1
  77. package/dist/sdk/client/rate-limiter.js +1 -1
  78. package/dist/sdk/client/td-api-client.js +1 -1
  79. package/dist/sdk/client/trino-api-client.js +1 -1
  80. package/dist/sdk/client/workflow-client.js +1 -1
  81. package/dist/sdk/connection-validator.js +1 -1
  82. package/dist/sdk/connection.js +1 -1
  83. package/dist/sdk/engage.js +1 -1
  84. package/dist/sdk/errors.js +1 -1
  85. package/dist/sdk/index.js +1 -1
  86. package/dist/sdk/io/index.js +1 -1
  87. package/dist/sdk/io/node-filesystem.js +1 -1
  88. package/dist/sdk/job.js +1 -1
  89. package/dist/sdk/journey.js +1 -1
  90. package/dist/sdk/llm/chat-cache.js +1 -1
  91. package/dist/sdk/llm/index.js +1 -1
  92. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  93. package/dist/sdk/llm/model-aliases.js +1 -1
  94. package/dist/sdk/llm/model-factors.js +1 -1
  95. package/dist/sdk/query/index.js +1 -1
  96. package/dist/sdk/query/sql-parser.js +1 -1
  97. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  98. package/dist/sdk/segment/fields-display.js +1 -1
  99. package/dist/sdk/segment/file-discovery.js +1 -1
  100. package/dist/sdk/segment/journey-utils.js +1 -1
  101. package/dist/sdk/segment/journey-yaml.js +1 -1
  102. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  103. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  104. package/dist/sdk/segment/pull-workflow.js +1 -1
  105. package/dist/sdk/segment/push-workflow.js +1 -1
  106. package/dist/sdk/segment/resolution-context.js +1 -1
  107. package/dist/sdk/segment/segment-path-parser.js +1 -1
  108. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  109. package/dist/sdk/segment/target-resolution.js +1 -1
  110. package/dist/sdk/segment/tdx-config.js +1 -1
  111. package/dist/sdk/segment/validate-files.js +1 -1
  112. package/dist/sdk/segment/yaml-validator.js +1 -1
  113. package/dist/sdk/segment.js +1 -1
  114. package/dist/sdk/types/index.js +1 -1
  115. package/dist/sdk/types/progress.js +1 -1
  116. package/dist/sdk/user.js +1 -1
  117. package/dist/sdk/util/format-detector.js +1 -1
  118. package/dist/sdk/util/formatters.js +1 -1
  119. package/dist/sdk/util/index.js +1 -1
  120. package/dist/sdk/util/tree-formatter.js +1 -1
  121. package/dist/sdk/workflow/clone-workflow.js +1 -1
  122. package/dist/sdk/workflow/index.js +1 -1
  123. package/dist/sdk/workflow/pull-workflow.js +1 -1
  124. package/dist/sdk/workflow/push-workflow.js +1 -1
  125. package/dist/sdk/workflow/tdx-config.js +1 -1
  126. package/dist/sdk/workflow/workflow-utils.js +1 -1
  127. package/dist/utils/async.js +1 -1
  128. package/dist/utils/colors.js +1 -1
  129. package/dist/utils/diff.js +1 -1
  130. package/dist/utils/file-permissions.js +1 -1
  131. package/dist/utils/json-loader.js +1 -1
  132. package/dist/utils/option-validation.js +1 -1
  133. package/dist/utils/port.js +1 -1
  134. package/dist/utils/process.js +1 -1
  135. package/dist/utils/prompt.js +1 -1
  136. package/dist/utils/spinner.js +1 -1
  137. package/dist/utils/sse-parser.js +1 -1
  138. package/dist/utils/string-utils.js +1 -1
  139. package/dist/utils/table-ref-parser.js +1 -1
  140. package/dist/utils/tdx-logger.js +1 -1
  141. package/dist/utils/version-check.js +1 -1
  142. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x58a6a1,_0x59afba){const _0x35098c=a141_0x48b3,_0x45f621=_0x58a6a1();while(!![]){try{const _0x57f298=parseInt(_0x35098c(0xb1))/0x1+parseInt(_0x35098c(0xb8))/0x2*(parseInt(_0x35098c(0xb3))/0x3)+-parseInt(_0x35098c(0xba))/0x4+parseInt(_0x35098c(0xbc))/0x5*(parseInt(_0x35098c(0xa7))/0x6)+parseInt(_0x35098c(0xaf))/0x7+parseInt(_0x35098c(0xb2))/0x8*(-parseInt(_0x35098c(0xa8))/0x9)+-parseInt(_0x35098c(0xb5))/0xa;if(_0x57f298===_0x59afba)break;else _0x45f621['push'](_0x45f621['shift']());}catch(_0x2757fe){_0x45f621['push'](_0x45f621['shift']());}}}(a141_0x1787,0xce666));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a141_0x48b3(_0x29b4bf,_0x115881){_0x29b4bf=_0x29b4bf-0xa7;const _0x1787f6=a141_0x1787();let _0x48b3d5=_0x1787f6[_0x29b4bf];return _0x48b3d5;}export async function loadJSON(_0x1f1976,_0x393453){const _0x3eeb87=a141_0x48b3;try{if(_0x393453){const _0x46006c=await readFile(_0x1f1976,'utf-8');try{return JSON[_0x3eeb87(0xbe)](_0x46006c);}catch(_0x105936){throw new SDKError(ErrorCode[_0x3eeb87(0xb0)],_0x3eeb87(0xbf)+_0x1f1976+_0x3eeb87(0xad)+(_0x105936 instanceof Error?_0x105936[_0x3eeb87(0xbd)]:String(_0x105936)));}}else try{return JSON[_0x3eeb87(0xbe)](_0x1f1976);}catch(_0x1d3fc2){throw new SDKError(ErrorCode[_0x3eeb87(0xb0)],_0x3eeb87(0xa9)+(_0x1d3fc2 instanceof Error?_0x1d3fc2[_0x3eeb87(0xbd)]:String(_0x1d3fc2)));}}catch(_0xe4f0a0){if(_0xe4f0a0 instanceof SDKError)throw _0xe4f0a0;if(_0xe4f0a0 instanceof Error&&'code'in _0xe4f0a0){const _0x11486d=_0xe4f0a0;if(_0x11486d[_0x3eeb87(0xac)]==='ENOENT')throw new SDKError(ErrorCode[_0x3eeb87(0xae)],_0x3eeb87(0xb9)+_0x1f1976);else{if(_0x11486d[_0x3eeb87(0xac)]===_0x3eeb87(0xb6))throw new SDKError(ErrorCode[_0x3eeb87(0xb7)],_0x3eeb87(0xab)+_0x1f1976);}}throw new SDKError(ErrorCode[_0x3eeb87(0xb4)],_0x3eeb87(0xbb)+(_0xe4f0a0 instanceof Error?_0xe4f0a0[_0x3eeb87(0xbd)]:String(_0xe4f0a0)));}}function a141_0x1787(){const _0x3cf481=['40bJWntZ','File\x20not\x20found:\x20','1623596fATSDx','Failed\x20to\x20load\x20JSON:\x20','5sHqGfH','message','parse','Invalid\x20JSON\x20in\x20file\x20\x27','7508652hSnbPA','129186JzDNCF','Invalid\x20JSON\x20string:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Permission\x20denied\x20reading\x20file:\x20','code','\x27:\x20','NOT_FOUND','9041221IMHTkM','INVALID_ARGUMENT','1295875hvsocx','352oOBKdh','185781hqrEmM','INTERNAL','31945710LgAIXK','EACCES','PERMISSION_DENIED'];a141_0x1787=function(){return _0x3cf481;};return a141_0x1787();}export async function loadJSONFromOptions(_0x342ec5,_0x4ddc22){const _0x36ec52=a141_0x48b3;if(_0x342ec5&&_0x4ddc22)throw new SDKError(ErrorCode[_0x36ec52(0xb0)],_0x36ec52(0xaa));if(_0x342ec5)return await loadJSON(_0x342ec5,![]);if(_0x4ddc22)return await loadJSON(_0x4ddc22,!![]);return undefined;}
1
+ (function(_0x38ad93,_0x2c28be){const _0x49af02=a141_0x12d0,_0xe4a2fd=_0x38ad93();while(!![]){try{const _0x2655be=parseInt(_0x49af02(0x14e))/0x1+parseInt(_0x49af02(0x150))/0x2+-parseInt(_0x49af02(0x153))/0x3*(parseInt(_0x49af02(0x14b))/0x4)+-parseInt(_0x49af02(0x15a))/0x5+-parseInt(_0x49af02(0x15d))/0x6+parseInt(_0x49af02(0x154))/0x7+parseInt(_0x49af02(0x14d))/0x8*(parseInt(_0x49af02(0x15c))/0x9);if(_0x2655be===_0x2c28be)break;else _0xe4a2fd['push'](_0xe4a2fd['shift']());}catch(_0xd81d74){_0xe4a2fd['push'](_0xe4a2fd['shift']());}}}(a141_0x1140,0x98ea9));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x323c8d,_0x4a1fef){const _0x4fc301=a141_0x12d0;try{if(_0x4a1fef){const _0x504271=await readFile(_0x323c8d,'utf-8');try{return JSON['parse'](_0x504271);}catch(_0x1f0d7b){throw new SDKError(ErrorCode[_0x4fc301(0x15b)],_0x4fc301(0x156)+_0x323c8d+_0x4fc301(0x155)+(_0x1f0d7b instanceof Error?_0x1f0d7b[_0x4fc301(0x152)]:String(_0x1f0d7b)));}}else try{return JSON[_0x4fc301(0x157)](_0x323c8d);}catch(_0x1c8ee9){throw new SDKError(ErrorCode[_0x4fc301(0x15b)],_0x4fc301(0x15f)+(_0x1c8ee9 instanceof Error?_0x1c8ee9[_0x4fc301(0x152)]:String(_0x1c8ee9)));}}catch(_0x416d25){if(_0x416d25 instanceof SDKError)throw _0x416d25;if(_0x416d25 instanceof Error&&'code'in _0x416d25){const _0x2019ed=_0x416d25;if(_0x2019ed[_0x4fc301(0x151)]==='ENOENT')throw new SDKError(ErrorCode[_0x4fc301(0x15e)],'File\x20not\x20found:\x20'+_0x323c8d);else{if(_0x2019ed[_0x4fc301(0x151)]==='EACCES')throw new SDKError(ErrorCode[_0x4fc301(0x14f)],_0x4fc301(0x159)+_0x323c8d);}}throw new SDKError(ErrorCode[_0x4fc301(0x158)],_0x4fc301(0x160)+(_0x416d25 instanceof Error?_0x416d25[_0x4fc301(0x152)]:String(_0x416d25)));}}function a141_0x12d0(_0x570908,_0x46d82f){_0x570908=_0x570908-0x14b;const _0x114071=a141_0x1140();let _0x12d00d=_0x114071[_0x570908];return _0x12d00d;}function a141_0x1140(){const _0x5543a7=['INVALID_ARGUMENT','9iJjDjz','151602yeDZXZ','NOT_FOUND','Invalid\x20JSON\x20string:\x20','Failed\x20to\x20load\x20JSON:\x20','4341596nUHeaT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','5885064InEJuA','996811SCWWct','PERMISSION_DENIED','317886PsoILj','code','message','3dGmEmj','5815481ZJIGkK','\x27:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','parse','INTERNAL','Permission\x20denied\x20reading\x20file:\x20','4925795YENksU'];a141_0x1140=function(){return _0x5543a7;};return a141_0x1140();}export async function loadJSONFromOptions(_0x288cb7,_0x7652dc){const _0x386d90=a141_0x12d0;if(_0x288cb7&&_0x7652dc)throw new SDKError(ErrorCode[_0x386d90(0x15b)],_0x386d90(0x14c));if(_0x288cb7)return await loadJSON(_0x288cb7,![]);if(_0x7652dc)return await loadJSON(_0x7652dc,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x4df37a,_0x42f27c){const _0x5e6f43=a142_0x3508,_0x1e7dae=_0x4df37a();while(!![]){try{const _0x108c70=parseInt(_0x5e6f43(0x164))/0x1*(-parseInt(_0x5e6f43(0x16e))/0x2)+parseInt(_0x5e6f43(0x167))/0x3*(-parseInt(_0x5e6f43(0x165))/0x4)+-parseInt(_0x5e6f43(0x171))/0x5+parseInt(_0x5e6f43(0x16f))/0x6+parseInt(_0x5e6f43(0x16d))/0x7+-parseInt(_0x5e6f43(0x163))/0x8+parseInt(_0x5e6f43(0x16a))/0x9;if(_0x108c70===_0x42f27c)break;else _0x1e7dae['push'](_0x1e7dae['shift']());}catch(_0x48ed7e){_0x1e7dae['push'](_0x1e7dae['shift']());}}}(a142_0x89f3,0x98e8b));function a142_0x89f3(){const _0x5f56aa=['4HCpKfl','number','198393EFqfki','isInteger','.\x20Must\x20be\x20an\x20integer.','14685507tSepur','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20integer.','6031522wEICoR','740RGsZmn','6635220DojjIk','.\x20Must\x20be\x20a\x20number.','6160025EsuBzB','Invalid\x20timeout\x20value:\x20','7060944JFwfAp','2141BJzAsv'];a142_0x89f3=function(){return _0x5f56aa;};return a142_0x89f3();}export function validateLimitOption(_0x18f716){const _0x52b85b=a142_0x3508;if(!Number[_0x52b85b(0x168)](_0x18f716))return{'isValid':![],'error':_0x52b85b(0x16b)+_0x18f716+_0x52b85b(0x169)};if(_0x18f716<=0x0)return{'isValid':![],'error':_0x52b85b(0x16b)+_0x18f716+_0x52b85b(0x16c)};return{'isValid':!![],'value':_0x18f716};}function a142_0x3508(_0x4daa09,_0x59239f){_0x4daa09=_0x4daa09-0x163;const _0x89f37=a142_0x89f3();let _0x3508bb=_0x89f37[_0x4daa09];return _0x3508bb;}export function validateTimeoutOption(_0x2f9e16,_0x52433a=0x1e){const _0x58f263=a142_0x3508;if(_0x2f9e16===undefined)return{'isValid':!![],'value':_0x52433a};const _0x1acc9e=typeof _0x2f9e16===_0x58f263(0x166)?_0x2f9e16:parseFloat(_0x2f9e16);if(isNaN(_0x1acc9e))return{'isValid':![],'error':_0x58f263(0x172)+_0x2f9e16+_0x58f263(0x170)};if(_0x1acc9e<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x1acc9e+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x1acc9e};}
1
+ function a142_0xdc46(){const _0x3b8e66=['4929010GBATQZ','610211iFhdYi','655383HpUyfz','number','3568086KyCkdx','isInteger','9323688GLcIXZ','11jblzIk','.\x20Must\x20be\x20a\x20positive\x20integer.','4QTUGvi','Invalid\x20timeout\x20value:\x20','539273NFNIfj','.\x20Must\x20be\x20a\x20positive\x20number.','4wRcjqA','11770130HsvQyF','.\x20Must\x20be\x20an\x20integer.','Invalid\x20limit\x20value:\x20','56hDYxIv'];a142_0xdc46=function(){return _0x3b8e66;};return a142_0xdc46();}(function(_0x175573,_0x357d84){const _0x1b29f7=a142_0x20b6,_0x4d26b7=_0x175573();while(!![]){try{const _0x1c6a72=-parseInt(_0x1b29f7(0x1e6))/0x1+parseInt(_0x1b29f7(0x1e0))/0x2*(-parseInt(_0x1b29f7(0x1e7))/0x3)+-parseInt(_0x1b29f7(0x1dc))/0x4*(parseInt(_0x1b29f7(0x1e5))/0x5)+parseInt(_0x1b29f7(0x1d9))/0x6+-parseInt(_0x1b29f7(0x1de))/0x7*(-parseInt(_0x1b29f7(0x1e4))/0x8)+-parseInt(_0x1b29f7(0x1e9))/0x9+-parseInt(_0x1b29f7(0x1e1))/0xa*(-parseInt(_0x1b29f7(0x1da))/0xb);if(_0x1c6a72===_0x357d84)break;else _0x4d26b7['push'](_0x4d26b7['shift']());}catch(_0x265fe7){_0x4d26b7['push'](_0x4d26b7['shift']());}}}(a142_0xdc46,0xcd48d));function a142_0x20b6(_0xceb9b4,_0xc4cf52){_0xceb9b4=_0xceb9b4-0x1d8;const _0xdc467b=a142_0xdc46();let _0x20b600=_0xdc467b[_0xceb9b4];return _0x20b600;}export function validateLimitOption(_0x3ee1f8){const _0x50a18f=a142_0x20b6;if(!Number[_0x50a18f(0x1d8)](_0x3ee1f8))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3ee1f8+_0x50a18f(0x1e2)};if(_0x3ee1f8<=0x0)return{'isValid':![],'error':_0x50a18f(0x1e3)+_0x3ee1f8+_0x50a18f(0x1db)};return{'isValid':!![],'value':_0x3ee1f8};}export function validateTimeoutOption(_0x3ff17c,_0xb9202e=0x1e){const _0x2d6299=a142_0x20b6;if(_0x3ff17c===undefined)return{'isValid':!![],'value':_0xb9202e};const _0xbd03f=typeof _0x3ff17c===_0x2d6299(0x1e8)?_0x3ff17c:parseFloat(_0x3ff17c);if(isNaN(_0xbd03f))return{'isValid':![],'error':_0x2d6299(0x1dd)+_0x3ff17c+'.\x20Must\x20be\x20a\x20number.'};if(_0xbd03f<=0x0)return{'isValid':![],'error':_0x2d6299(0x1dd)+_0xbd03f+_0x2d6299(0x1df)};return{'isValid':!![],'value':_0xbd03f};}
@@ -1 +1 @@
1
- (function(_0x3230a6,_0x26b5a8){const _0x4b0417=a143_0x21c7,_0x27ba61=_0x3230a6();while(!![]){try{const _0x3f6b94=parseInt(_0x4b0417(0xfe))/0x1*(parseInt(_0x4b0417(0x104))/0x2)+parseInt(_0x4b0417(0x101))/0x3+-parseInt(_0x4b0417(0x107))/0x4+parseInt(_0x4b0417(0x109))/0x5+-parseInt(_0x4b0417(0xfd))/0x6+parseInt(_0x4b0417(0xfc))/0x7*(parseInt(_0x4b0417(0x108))/0x8)+parseInt(_0x4b0417(0xff))/0x9*(-parseInt(_0x4b0417(0x10b))/0xa);if(_0x3f6b94===_0x26b5a8)break;else _0x27ba61['push'](_0x27ba61['shift']());}catch(_0x2ee1a7){_0x27ba61['push'](_0x27ba61['shift']());}}}(a143_0x4c56,0xa6db4));import{createServer}from'node:net';export async function isPortAvailable(_0x3babcb){return new Promise(_0x273688=>{const _0x3fbbc2=a143_0x21c7,_0x4e453e=createServer();_0x4e453e[_0x3fbbc2(0x106)](_0x3fbbc2(0x10d),_0x51ea4d=>{const _0x572458=_0x3fbbc2;_0x51ea4d[_0x572458(0x10a)]==='EADDRINUSE'?_0x273688(![]):_0x273688(![]);}),_0x4e453e['once'](_0x3fbbc2(0x10c),()=>{const _0x594833=_0x3fbbc2;_0x4e453e[_0x594833(0x105)](),_0x273688(!![]);}),_0x4e453e[_0x3fbbc2(0x102)](_0x3babcb,'0.0.0.0');});}function a143_0x21c7(_0x58989e,_0x16daaf){_0x58989e=_0x58989e-0xfc;const _0x4c5683=a143_0x4c56();let _0x21c7d4=_0x4c5683[_0x58989e];return _0x21c7d4;}function a143_0x4c56(){const _0x53082b=['listen','\x20and\x20','6KhRSBj','close','once','2718004QSSGuL','1368088KPZehT','5687660dAZOpt','code','350Vjguqy','listening','error','28ntpjQU','1715040kyJyfD','210619WxMJve','426546qhtgJN','No\x20available\x20port\x20found\x20between\x20','2562426DOvzJH'];a143_0x4c56=function(){return _0x53082b;};return a143_0x4c56();}export async function findAvailablePort(_0xa10ee9=0xfa0,_0x449793=0x64){const _0x15a964=a143_0x21c7;for(let _0x560ce0=0x0;_0x560ce0<_0x449793;_0x560ce0++){const _0x2651b1=_0xa10ee9+_0x560ce0;if(await isPortAvailable(_0x2651b1))return _0x2651b1;}throw new Error(_0x15a964(0x100)+_0xa10ee9+_0x15a964(0x103)+(_0xa10ee9+_0x449793-0x1));}
1
+ (function(_0x83b4c2,_0x29443f){const _0x49c5cd=a143_0x5ef9,_0x11c66d=_0x83b4c2();while(!![]){try{const _0x5c9787=-parseInt(_0x49c5cd(0x95))/0x1*(parseInt(_0x49c5cd(0x98))/0x2)+-parseInt(_0x49c5cd(0x94))/0x3+-parseInt(_0x49c5cd(0xa0))/0x4*(parseInt(_0x49c5cd(0x96))/0x5)+-parseInt(_0x49c5cd(0x97))/0x6+parseInt(_0x49c5cd(0x9c))/0x7+parseInt(_0x49c5cd(0x99))/0x8+parseInt(_0x49c5cd(0x9b))/0x9;if(_0x5c9787===_0x29443f)break;else _0x11c66d['push'](_0x11c66d['shift']());}catch(_0x203ac5){_0x11c66d['push'](_0x11c66d['shift']());}}}(a143_0xcf76,0x86865));function a143_0xcf76(){const _0x4a140b=['17398KDPAYH','3986712WJHNrV','0.0.0.0','14021739OwGSMP','3714186UHkpJT','code','error','listen','3684332vgnrfP','close','\x20and\x20','once','829059LDGahK','93yPAgkO','5kanjxJ','176712VLnieq'];a143_0xcf76=function(){return _0x4a140b;};return a143_0xcf76();}import{createServer}from'node:net';export async function isPortAvailable(_0x5ed835){return new Promise(_0x46239c=>{const _0x3610b3=a143_0x5ef9,_0x9855fb=createServer();_0x9855fb[_0x3610b3(0x93)](_0x3610b3(0x9e),_0x2d1f79=>{const _0x45a80c=_0x3610b3;_0x2d1f79[_0x45a80c(0x9d)]==='EADDRINUSE'?_0x46239c(![]):_0x46239c(![]);}),_0x9855fb[_0x3610b3(0x93)]('listening',()=>{const _0x2f2bef=_0x3610b3;_0x9855fb[_0x2f2bef(0x91)](),_0x46239c(!![]);}),_0x9855fb[_0x3610b3(0x9f)](_0x5ed835,_0x3610b3(0x9a));});}function a143_0x5ef9(_0x53d635,_0x2bf1e1){_0x53d635=_0x53d635-0x91;const _0xcf7673=a143_0xcf76();let _0x5ef917=_0xcf7673[_0x53d635];return _0x5ef917;}export async function findAvailablePort(_0x50f171=0xfa0,_0x25ab40=0x64){const _0xd5f8bb=a143_0x5ef9;for(let _0x84907e=0x0;_0x84907e<_0x25ab40;_0x84907e++){const _0x423820=_0x50f171+_0x84907e;if(await isPortAvailable(_0x423820))return _0x423820;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x50f171+_0xd5f8bb(0x92)+(_0x50f171+_0x25ab40-0x1));}
@@ -1 +1 @@
1
- const a144_0x36d3c8=a144_0x4724;(function(_0x46a8ee,_0x31902c){const _0x3dbfb2=a144_0x4724,_0x4107bf=_0x46a8ee();while(!![]){try{const _0x3c4ffc=parseInt(_0x3dbfb2(0x9b))/0x1+-parseInt(_0x3dbfb2(0x9f))/0x2*(-parseInt(_0x3dbfb2(0x9c))/0x3)+-parseInt(_0x3dbfb2(0x86))/0x4+parseInt(_0x3dbfb2(0xb0))/0x5*(parseInt(_0x3dbfb2(0x98))/0x6)+-parseInt(_0x3dbfb2(0xab))/0x7+parseInt(_0x3dbfb2(0x9e))/0x8+-parseInt(_0x3dbfb2(0x85))/0x9;if(_0x3c4ffc===_0x31902c)break;else _0x4107bf['push'](_0x4107bf['shift']());}catch(_0x2a3ddf){_0x4107bf['push'](_0x4107bf['shift']());}}}(a144_0x3389,0xc0c58));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a144_0x36d3c8(0x80),'sh',a144_0x36d3c8(0x87),a144_0x36d3c8(0x97),a144_0x36d3c8(0xb3),'csh',a144_0x36d3c8(0xa2),a144_0x36d3c8(0x8d),a144_0x36d3c8(0x8a),'nu',a144_0x36d3c8(0x81),'elvish',a144_0x36d3c8(0x91)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a144_0x36d3c8(0x89),a144_0x36d3c8(0x96),a144_0x36d3c8(0xad)]);function getProcessInfoWindows(_0xf00e0e){const _0x3b27d4=a144_0x36d3c8;try{if(!Number[_0x3b27d4(0x83)](_0xf00e0e)||_0xf00e0e<=0x0)return null;const _0x53f628=_0x3b27d4(0xa4)+_0xf00e0e+_0x3b27d4(0xa9),_0xa429c0=execSync(_0x3b27d4(0xaf)+_0x53f628+'\x22',{'encoding':_0x3b27d4(0xaa),'windowsHide':!![],'stdio':[_0x3b27d4(0x93),_0x3b27d4(0x93),'pipe']})[_0x3b27d4(0xa6)]();if(!_0xa429c0)return null;const [_0x513121,..._0x1718c8]=_0xa429c0[_0x3b27d4(0xa8)](','),_0x49d98e=parseInt(_0x513121,0xa),_0x484475=_0x1718c8[_0x3b27d4(0x7d)](',')[_0x3b27d4(0xa6)]();if(isNaN(_0x49d98e)||!_0x484475)return null;return{'pid':_0xf00e0e,'ppid':_0x49d98e,'comm':_0x484475[_0x3b27d4(0xb2)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x508ded){const _0x5bde7b=a144_0x36d3c8;try{const _0x201a0f=0x400000;if(!Number[_0x5bde7b(0x83)](_0x508ded)||_0x508ded<=0x0||_0x508ded>_0x201a0f)return null;const _0x380e8f=execSync(_0x5bde7b(0x8b)+_0x508ded+'\x20-o\x20ppid=,comm=',{'encoding':_0x5bde7b(0xaa),'stdio':'pipe'})['trim'](),[_0x1f2e21,..._0x3dbd26]=_0x380e8f[_0x5bde7b(0xa8)](/\s+/),_0x148364=parseInt(_0x1f2e21,0xa),_0x198d68=_0x3dbd26[_0x5bde7b(0x7d)]('\x20');if(isNaN(_0x148364))return null;return{'pid':_0x508ded,'ppid':_0x148364,'comm':_0x198d68};}catch{return null;}}function a144_0x4724(_0x2fbf8a,_0x1e3372){_0x2fbf8a=_0x2fbf8a-0x7c;const _0x33895a=a144_0x3389();let _0x4724c2=_0x33895a[_0x2fbf8a];return _0x4724c2;}function getProcessInfo(_0x28423d){const _0x252c7f=a144_0x36d3c8;if(process[_0x252c7f(0x90)]===_0x252c7f(0xae))return getProcessInfoWindows(_0x28423d);return getProcessInfoPosix(_0x28423d);}function getBasename(_0x469eba){const _0x598487=a144_0x36d3c8;return _0x469eba[_0x598487(0xb2)](/^-/,'')[_0x598487(0xa8)]('/')[_0x598487(0x82)]()?.[_0x598487(0xac)]()||'';}function isShell(_0x25bb5f){const _0x233c79=a144_0x36d3c8;return SHELL_NAMES[_0x233c79(0xb5)](getBasename(_0x25bb5f));}function isEphemeralShellSpawner(_0x4c2014){const _0x252433=a144_0x36d3c8;return EPHEMERAL_SHELL_SPAWNERS[_0x252433(0xb5)](getBasename(_0x4c2014));}let cachedShellPID;function findShellPID(){const _0x1891e0=a144_0x36d3c8;if(process[_0x1891e0(0x7e)]===undefined)return process[_0x1891e0(0x95)];let _0x16c41e=process['ppid'];const _0x2e0037=0xa;let _0x526571=0x0;while(_0x526571<_0x2e0037){const _0x19b8f4=getProcessInfo(_0x16c41e);if(!_0x19b8f4)break;if(isShell(_0x19b8f4[_0x1891e0(0xa1)])){const _0x2bfe30=getProcessInfo(_0x19b8f4[_0x1891e0(0x7e)]);if(_0x2bfe30&&isEphemeralShellSpawner(_0x2bfe30[_0x1891e0(0xa1)])){_0x16c41e=_0x19b8f4[_0x1891e0(0x7e)],_0x526571++;continue;}return _0x19b8f4['pid'];}if(_0x19b8f4[_0x1891e0(0x7e)]===0x0||_0x19b8f4['ppid']===0x1){if(isShell(_0x19b8f4['comm']))return _0x19b8f4[_0x1891e0(0x95)];break;}_0x16c41e=_0x19b8f4['ppid'],_0x526571++;}return process[_0x1891e0(0x7e)]!==undefined?process[_0x1891e0(0x7e)]:process[_0x1891e0(0x95)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x36bcae){const _0x2bc779=a144_0x36d3c8;if(!Number[_0x2bc779(0x83)](_0x36bcae)||_0x36bcae<=0x0)return![];try{return process[_0x2bc779(0x88)](_0x36bcae,0x0),!![];}catch{return![];}}function a144_0x3389(){const _0x5a3b46=['isInteger','Invalid\x20URL:\x20','10736433PdkhGg','3682356mtkThj','fish','kill','claude','powershell','ps\x20-p\x20','toString','pwsh','data','ignore','platform','xonsh','darwin','pipe','xdg-open','pid','code','ksh','18EWnlUW','protocol','open','1519434soEyCs','22407PTVOEe','cmd.exe','4550992klndwJ','82dHXRGX','stdout','comm','dash','where.exe','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','which','trim','https:','split','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','utf-8','4265142ZzASgB','toLowerCase','cursor','win32','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','1863145JmUHLo','test','replace','tcsh','http:','has','href','map','join','ppid','unref','zsh','ion','pop'];a144_0x3389=function(){return _0x5a3b46;};return a144_0x3389();}export function openBrowser(_0xcd6c33){const _0x57b5bf=a144_0x36d3c8;let _0x5b248a;try{_0x5b248a=new URL(_0xcd6c33);}catch{throw new Error(_0x57b5bf(0x84)+_0xcd6c33);}if(_0x5b248a[_0x57b5bf(0x99)]!==_0x57b5bf(0xb4)&&_0x5b248a[_0x57b5bf(0x99)]!==_0x57b5bf(0xa7))throw new Error('Unsupported\x20protocol:\x20'+_0x5b248a[_0x57b5bf(0x99)]);const _0xacf2ed=_0x5b248a[_0x57b5bf(0xb6)],_0x14c440=process[_0x57b5bf(0x90)];if(_0x14c440===_0x57b5bf(0xae))spawn(_0x57b5bf(0x9d),['/c','start','',_0xacf2ed],{'detached':!![],'stdio':'ignore'})[_0x57b5bf(0x7f)]();else{const _0x31ce6c=_0x14c440===_0x57b5bf(0x92)?_0x57b5bf(0x9a):_0x57b5bf(0x94);spawn(_0x31ce6c,[_0xacf2ed],{'detached':!![],'stdio':_0x57b5bf(0x8f)})[_0x57b5bf(0x7f)]();}}export function isWindows(){const _0x31b04e=a144_0x36d3c8;return process['platform']===_0x31b04e(0xae);}export function getCrossSpawnOptions(_0x579b05){return{..._0x579b05??{},'shell':isWindows()};}export function escapeWindowsArg(_0x1c2256){const _0x4b9b75=a144_0x36d3c8;if(!/[ \t"&|<>^%!`\r\n]/[_0x4b9b75(0xb1)](_0x1c2256))return _0x1c2256;const _0x4be46f=_0x1c2256['replace'](/"/g,'\x22\x22');return'\x22'+_0x4be46f+'\x22';}export function crossSpawn(_0x281322,_0x682bdc,_0x5c72c4){const _0x1f12f1=a144_0x36d3c8;if(isWindows()){const _0x169f0c=escapeWindowsArg(_0x281322),_0x3b417c=_0x682bdc[_0x1f12f1(0x7c)](escapeWindowsArg),_0x524afc=[_0x169f0c,..._0x3b417c][_0x1f12f1(0x7d)]('\x20');return spawn(_0x524afc,[],{..._0x5c72c4,'shell':!![]});}return spawn(_0x281322,_0x682bdc,{..._0x5c72c4,'shell':![]});}export function findExecutable(_0xc48c29,_0x596966=0x1388){return new Promise(_0x2a30bb=>{const _0x4b4dc8=a144_0x4724,_0x32067f=isWindows()?_0x4b4dc8(0xa3):_0x4b4dc8(0xa5);let _0x312ddc=![];const _0x516869=crossSpawn(_0x32067f,[_0xc48c29],{'stdio':_0x4b4dc8(0x93)}),_0x18efb1=setTimeout(()=>{const _0x3662a7=_0x4b4dc8;!_0x312ddc&&(_0x312ddc=!![],_0x516869[_0x3662a7(0x88)](),_0x2a30bb(null));},_0x596966);let _0x481992='';_0x516869[_0x4b4dc8(0xa0)]?.['on'](_0x4b4dc8(0x8e),_0x117461=>{const _0x8fe9a4=_0x4b4dc8;_0x481992+=_0x117461[_0x8fe9a4(0x8c)]();}),_0x516869['stderr']?.['on'](_0x4b4dc8(0x8e),()=>{}),_0x516869['on']('exit',_0x6ce733=>{const _0x35d719=_0x4b4dc8;if(_0x312ddc)return;_0x312ddc=!![],clearTimeout(_0x18efb1);if(_0x6ce733===0x0&&_0x481992[_0x35d719(0xa6)]()){const _0x2e479e=_0x481992['trim']()['split'](/\r?\n/)[0x0];_0x2a30bb(_0x2e479e);}else _0x2a30bb(null);}),_0x516869['on']('error',()=>{if(_0x312ddc)return;_0x312ddc=!![],clearTimeout(_0x18efb1),_0x2a30bb(null);});});}
1
+ const a144_0x56208=a144_0x16db;(function(_0x18c422,_0x921680){const _0x17fbf7=a144_0x16db,_0x43e172=_0x18c422();while(!![]){try{const _0x549d51=parseInt(_0x17fbf7(0x1e0))/0x1+-parseInt(_0x17fbf7(0x1c5))/0x2*(parseInt(_0x17fbf7(0x1c0))/0x3)+parseInt(_0x17fbf7(0x1cf))/0x4+parseInt(_0x17fbf7(0x1bf))/0x5+-parseInt(_0x17fbf7(0x1e7))/0x6*(parseInt(_0x17fbf7(0x1db))/0x7)+parseInt(_0x17fbf7(0x1c4))/0x8*(parseInt(_0x17fbf7(0x1b8))/0x9)+-parseInt(_0x17fbf7(0x1cc))/0xa*(parseInt(_0x17fbf7(0x1ef))/0xb);if(_0x549d51===_0x921680)break;else _0x43e172['push'](_0x43e172['shift']());}catch(_0x3118cb){_0x43e172['push'](_0x43e172['shift']());}}}(a144_0x4472,0x2d666));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a144_0x56208(0x1bb),'zsh','sh','fish',a144_0x56208(0x1d6),a144_0x56208(0x1d5),a144_0x56208(0x1b9),a144_0x56208(0x1d7),a144_0x56208(0x1e8),'powershell','nu',a144_0x56208(0x1b6),a144_0x56208(0x1be),a144_0x56208(0x1dd)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a144_0x56208(0x1e2),a144_0x56208(0x1c7),a144_0x56208(0x1da)]);function getProcessInfoWindows(_0x5cc3df){const _0x5292ff=a144_0x56208;try{if(!Number['isInteger'](_0x5cc3df)||_0x5cc3df<=0x0)return null;const _0x268a13=_0x5292ff(0x1cb)+_0x5cc3df+_0x5292ff(0x1d4),_0x2cbd2e=execSync(_0x5292ff(0x1d0)+_0x268a13+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x5292ff(0x1e5),_0x5292ff(0x1e5),_0x5292ff(0x1e5)]})[_0x5292ff(0x1ea)]();if(!_0x2cbd2e)return null;const [_0x1e6129,..._0x3634c5]=_0x2cbd2e['split'](','),_0x4b1947=parseInt(_0x1e6129,0xa),_0x129f0b=_0x3634c5[_0x5292ff(0x1bc)](',')[_0x5292ff(0x1ea)]();if(isNaN(_0x4b1947)||!_0x129f0b)return null;return{'pid':_0x5cc3df,'ppid':_0x4b1947,'comm':_0x129f0b[_0x5292ff(0x1b7)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x1cc149){const _0x5da65d=a144_0x56208;try{const _0x9e643f=0x400000;if(!Number['isInteger'](_0x1cc149)||_0x1cc149<=0x0||_0x1cc149>_0x9e643f)return null;const _0x5055b5=execSync('ps\x20-p\x20'+_0x1cc149+_0x5da65d(0x1de),{'encoding':_0x5da65d(0x1cd),'stdio':_0x5da65d(0x1e5)})['trim'](),[_0x265b74,..._0x38719d]=_0x5055b5[_0x5da65d(0x1e6)](/\s+/),_0x3a33a3=parseInt(_0x265b74,0xa),_0x273e23=_0x38719d['join']('\x20');if(isNaN(_0x3a33a3))return null;return{'pid':_0x1cc149,'ppid':_0x3a33a3,'comm':_0x273e23};}catch{return null;}}function getProcessInfo(_0x2a5717){const _0x496181=a144_0x56208;if(process[_0x496181(0x1d1)]===_0x496181(0x1e4))return getProcessInfoWindows(_0x2a5717);return getProcessInfoPosix(_0x2a5717);}function a144_0x4472(){const _0xa64ed2=['platform','toLowerCase','ppid','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','tcsh','ksh','dash','https:','which','cursor','7kxrvcK','test','xonsh','\x20-o\x20ppid=,comm=','stderr','133382HxKhQw','href','claude','pid','win32','pipe','split','505572zHGIxe','pwsh','isInteger','trim','ignore','protocol','darwin','comm','55JWjztz','ion','replace','9kuVHJh','csh','xdg-open','bash','join','has','elvish','1095105HMlWVT','184299oOkFKc','http:','toString','exit','1074720rrkNyI','2SzPErl','open','code','unref','kill','where.exe','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','372180jnRVVN','utf-8','map','124000ESpHqu','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'];a144_0x4472=function(){return _0xa64ed2;};return a144_0x4472();}function getBasename(_0x28f59c){const _0x5074bb=a144_0x56208;return _0x28f59c['replace'](/^-/,'')['split']('/')['pop']()?.[_0x5074bb(0x1d2)]()||'';}function isShell(_0x2ed4b6){const _0x4914cb=a144_0x56208;return SHELL_NAMES[_0x4914cb(0x1bd)](getBasename(_0x2ed4b6));}function isEphemeralShellSpawner(_0xd3291d){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0xd3291d));}let cachedShellPID;function findShellPID(){const _0x9ab090=a144_0x56208;if(process[_0x9ab090(0x1d3)]===undefined)return process['pid'];let _0x16dc31=process[_0x9ab090(0x1d3)];const _0xc806d4=0xa;let _0x25b35a=0x0;while(_0x25b35a<_0xc806d4){const _0x1cec48=getProcessInfo(_0x16dc31);if(!_0x1cec48)break;if(isShell(_0x1cec48[_0x9ab090(0x1ee)])){const _0xc8aae9=getProcessInfo(_0x1cec48[_0x9ab090(0x1d3)]);if(_0xc8aae9&&isEphemeralShellSpawner(_0xc8aae9[_0x9ab090(0x1ee)])){_0x16dc31=_0x1cec48[_0x9ab090(0x1d3)],_0x25b35a++;continue;}return _0x1cec48[_0x9ab090(0x1e3)];}if(_0x1cec48[_0x9ab090(0x1d3)]===0x0||_0x1cec48[_0x9ab090(0x1d3)]===0x1){if(isShell(_0x1cec48[_0x9ab090(0x1ee)]))return _0x1cec48[_0x9ab090(0x1e3)];break;}_0x16dc31=_0x1cec48[_0x9ab090(0x1d3)],_0x25b35a++;}return process[_0x9ab090(0x1d3)]!==undefined?process['ppid']:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x47b81b){const _0x517ef3=a144_0x56208;if(!Number[_0x517ef3(0x1e9)](_0x47b81b)||_0x47b81b<=0x0)return![];try{return process[_0x517ef3(0x1c9)](_0x47b81b,0x0),!![];}catch{return![];}}export function openBrowser(_0x4ceb03){const _0x1534a9=a144_0x56208;let _0x4ab30a;try{_0x4ab30a=new URL(_0x4ceb03);}catch{throw new Error('Invalid\x20URL:\x20'+_0x4ceb03);}if(_0x4ab30a['protocol']!==_0x1534a9(0x1c1)&&_0x4ab30a[_0x1534a9(0x1ec)]!==_0x1534a9(0x1d8))throw new Error('Unsupported\x20protocol:\x20'+_0x4ab30a[_0x1534a9(0x1ec)]);const _0x5cbc9c=_0x4ab30a[_0x1534a9(0x1e1)],_0x596dd4=process['platform'];if(_0x596dd4===_0x1534a9(0x1e4))spawn('cmd.exe',['/c','start','',_0x5cbc9c],{'detached':!![],'stdio':_0x1534a9(0x1eb)})[_0x1534a9(0x1c8)]();else{const _0x5ddea3=_0x596dd4===_0x1534a9(0x1ed)?_0x1534a9(0x1c6):_0x1534a9(0x1ba);spawn(_0x5ddea3,[_0x5cbc9c],{'detached':!![],'stdio':_0x1534a9(0x1eb)})[_0x1534a9(0x1c8)]();}}export function isWindows(){const _0xcc0ef7=a144_0x56208;return process[_0xcc0ef7(0x1d1)]===_0xcc0ef7(0x1e4);}export function getCrossSpawnOptions(_0x4eacc1){return{..._0x4eacc1??{},'shell':isWindows()};}export function escapeWindowsArg(_0x2c4f94){const _0x3fa574=a144_0x56208;if(!/[ \t"&|<>^%!`\r\n]/[_0x3fa574(0x1dc)](_0x2c4f94))return _0x2c4f94;const _0x260e58=_0x2c4f94[_0x3fa574(0x1b7)](/"/g,'\x22\x22');return'\x22'+_0x260e58+'\x22';}export function crossSpawn(_0x319dad,_0x484e96,_0x5514c7){const _0x155ed3=a144_0x56208;if(isWindows()){const _0x1e5290=escapeWindowsArg(_0x319dad),_0x1c4c36=_0x484e96[_0x155ed3(0x1ce)](escapeWindowsArg),_0x4dfeaf=[_0x1e5290,..._0x1c4c36]['join']('\x20');return spawn(_0x4dfeaf,[],{..._0x5514c7,'shell':!![]});}return spawn(_0x319dad,_0x484e96,{..._0x5514c7,'shell':![]});}function a144_0x16db(_0x18747e,_0x381694){_0x18747e=_0x18747e-0x1b6;const _0x44722d=a144_0x4472();let _0x16dbd0=_0x44722d[_0x18747e];return _0x16dbd0;}export function findExecutable(_0x2b55a3,_0x36149e=0x1388){return new Promise(_0x1dcd40=>{const _0x39dab8=a144_0x16db,_0x4a9ff8=isWindows()?_0x39dab8(0x1ca):_0x39dab8(0x1d9);let _0x53451e=![];const _0x2d83c6=crossSpawn(_0x4a9ff8,[_0x2b55a3],{'stdio':'pipe'}),_0x18008f=setTimeout(()=>{const _0x5f1a96=_0x39dab8;!_0x53451e&&(_0x53451e=!![],_0x2d83c6[_0x5f1a96(0x1c9)](),_0x1dcd40(null));},_0x36149e);let _0x1cc00a='';_0x2d83c6['stdout']?.['on']('data',_0x2720a2=>{const _0x288a46=_0x39dab8;_0x1cc00a+=_0x2720a2[_0x288a46(0x1c2)]();}),_0x2d83c6[_0x39dab8(0x1df)]?.['on']('data',()=>{}),_0x2d83c6['on'](_0x39dab8(0x1c3),_0x1f95ab=>{const _0x399dae=_0x39dab8;if(_0x53451e)return;_0x53451e=!![],clearTimeout(_0x18008f);if(_0x1f95ab===0x0&&_0x1cc00a[_0x399dae(0x1ea)]()){const _0x138154=_0x1cc00a[_0x399dae(0x1ea)]()['split'](/\r?\n/)[0x0];_0x1dcd40(_0x138154);}else _0x1dcd40(null);}),_0x2d83c6['on']('error',()=>{if(_0x53451e)return;_0x53451e=!![],clearTimeout(_0x18008f),_0x1dcd40(null);});});}
@@ -1 +1 @@
1
- (function(_0x3f809,_0x589178){const _0x4ce184=a145_0x4832,_0x19b321=_0x3f809();while(!![]){try{const _0x2cd924=-parseInt(_0x4ce184(0x12e))/0x1+parseInt(_0x4ce184(0x12d))/0x2*(-parseInt(_0x4ce184(0x123))/0x3)+parseInt(_0x4ce184(0x120))/0x4*(-parseInt(_0x4ce184(0x128))/0x5)+parseInt(_0x4ce184(0x12a))/0x6+parseInt(_0x4ce184(0x125))/0x7+parseInt(_0x4ce184(0x130))/0x8+-parseInt(_0x4ce184(0x12c))/0x9*(-parseInt(_0x4ce184(0x121))/0xa);if(_0x2cd924===_0x589178)break;else _0x19b321['push'](_0x19b321['shift']());}catch(_0x1daaa0){_0x19b321['push'](_0x19b321['shift']());}}}(a145_0x1869,0x7bd73));import*as a145_0x119b1f from'readline';export async function confirm(_0xc9627e){const _0x4ab270=a145_0x4832,_0x45c47d=a145_0x119b1f[_0x4ab270(0x11f)]({'input':process[_0x4ab270(0x12f)],'output':process['stdout']});return new Promise(_0x41d8de=>{const _0x387a87=_0x4ab270;_0x45c47d['question'](_0xc9627e+_0x387a87(0x134),_0xabbaef=>{const _0x330ed1=_0x387a87;_0x45c47d['close'](),_0x41d8de(_0xabbaef['toLowerCase']()==='y'||_0xabbaef[_0x330ed1(0x132)]()==='yes');});});}function a145_0x1869(){const _0x2b8e3c=['8020eqYmom','251632xXKtnO','stdin','5060856spjhWI','resume','toLowerCase','pause','\x20(y/N):\x20','\x20[y/N]\x20','removeListener','createInterface','40ETdPso','50FDisoS','exit','237aUrffD','setRawMode','4825681WnLwKO','data','utf8','417880LwCUpd','stderr','1641558SQOywG','write','568530frdLEQ'];a145_0x1869=function(){return _0x2b8e3c;};return a145_0x1869();}function a145_0x4832(_0x33a57d,_0x28e9f4){_0x33a57d=_0x33a57d-0x11e;const _0x186910=a145_0x1869();let _0x483225=_0x186910[_0x33a57d];return _0x483225;}export async function confirmKey(_0x5d5ac8){const _0x228138=a145_0x4832;if(!process['stdin']['isTTY'])return![];return process[_0x228138(0x129)][_0x228138(0x12b)](_0x5d5ac8+_0x228138(0x135)),new Promise(_0x24f45e=>{const _0x137ea3=_0x228138,_0x13f317=process['stdin'];_0x13f317[_0x137ea3(0x124)](!![]),_0x13f317[_0x137ea3(0x131)](),_0x13f317['setEncoding'](_0x137ea3(0x127));const _0x37a98b=_0x18ad84=>{const _0x2ba4ae=_0x137ea3;_0x13f317[_0x2ba4ae(0x124)](![]),_0x13f317[_0x2ba4ae(0x133)](),_0x13f317[_0x2ba4ae(0x11e)](_0x2ba4ae(0x126),_0x37a98b);if(_0x18ad84==='\x1b'){process[_0x2ba4ae(0x129)][_0x2ba4ae(0x12b)]('\x0a'),_0x24f45e(![]);return;}_0x18ad84==='\x03'&&(process[_0x2ba4ae(0x129)][_0x2ba4ae(0x12b)]('\x0a'),process[_0x2ba4ae(0x122)](0x82));if(_0x18ad84[_0x2ba4ae(0x132)]()==='y'){process[_0x2ba4ae(0x129)][_0x2ba4ae(0x12b)]('y\x0a'),_0x24f45e(!![]);return;}process[_0x2ba4ae(0x129)][_0x2ba4ae(0x12b)]('\x0a'),_0x24f45e(![]);};_0x13f317['on'](_0x137ea3(0x126),_0x37a98b);});}
1
+ function a145_0x165e(_0x38c265,_0x3c9e6d){_0x38c265=_0x38c265-0x167;const _0x3ad058=a145_0x3ad0();let _0x165e09=_0x3ad058[_0x38c265];return _0x165e09;}(function(_0x438df4,_0xc43412){const _0x4119e1=a145_0x165e,_0xce862d=_0x438df4();while(!![]){try{const _0x44e69e=-parseInt(_0x4119e1(0x16b))/0x1*(parseInt(_0x4119e1(0x171))/0x2)+-parseInt(_0x4119e1(0x17e))/0x3*(parseInt(_0x4119e1(0x167))/0x4)+-parseInt(_0x4119e1(0x175))/0x5*(-parseInt(_0x4119e1(0x17f))/0x6)+parseInt(_0x4119e1(0x183))/0x7+parseInt(_0x4119e1(0x173))/0x8+parseInt(_0x4119e1(0x169))/0x9*(parseInt(_0x4119e1(0x17c))/0xa)+parseInt(_0x4119e1(0x180))/0xb*(parseInt(_0x4119e1(0x177))/0xc);if(_0x44e69e===_0xc43412)break;else _0xce862d['push'](_0xce862d['shift']());}catch(_0x575d18){_0xce862d['push'](_0xce862d['shift']());}}}(a145_0x3ad0,0x6951f));import*as a145_0x52dd51 from'readline';export async function confirm(_0x4270df){const _0x17748d=a145_0x165e,_0xf65966=a145_0x52dd51[_0x17748d(0x168)]({'input':process[_0x17748d(0x16d)],'output':process[_0x17748d(0x16c)]});return new Promise(_0x304f89=>{const _0x605ed7=_0x17748d;_0xf65966[_0x605ed7(0x17a)](_0x4270df+_0x605ed7(0x178),_0x39cf54=>{const _0x53bb8f=_0x605ed7;_0xf65966[_0x53bb8f(0x17d)](),_0x304f89(_0x39cf54['toLowerCase']()==='y'||_0x39cf54['toLowerCase']()===_0x53bb8f(0x172));});});}function a145_0x3ad0(){const _0x1f69a1=['pause','668652zzPfzf','createInterface','9nbjpJD','removeListener','5vhjPgn','stdout','stdin','\x20[y/N]\x20','write','utf8','301690sNFpOF','yes','596696usvegN','data','1112145VcTgqp','setEncoding','2532nrGhkY','\x20(y/N):\x20','setRawMode','question','toLowerCase','6638790ymHbRF','close','12WatBZL','12THwDJf','25982QMCbPH','isTTY','stderr','1207934IdIIRg'];a145_0x3ad0=function(){return _0x1f69a1;};return a145_0x3ad0();}export async function confirmKey(_0x4af1ce){const _0x28a86f=a145_0x165e;if(!process[_0x28a86f(0x16d)][_0x28a86f(0x181)])return![];return process[_0x28a86f(0x182)][_0x28a86f(0x16f)](_0x4af1ce+_0x28a86f(0x16e)),new Promise(_0x3e6dbb=>{const _0x20cd94=_0x28a86f,_0x218535=process[_0x20cd94(0x16d)];_0x218535[_0x20cd94(0x179)](!![]),_0x218535['resume'](),_0x218535[_0x20cd94(0x176)](_0x20cd94(0x170));const _0x2c66f9=_0x4fdf76=>{const _0x33d6a5=_0x20cd94;_0x218535[_0x33d6a5(0x179)](![]),_0x218535[_0x33d6a5(0x184)](),_0x218535[_0x33d6a5(0x16a)](_0x33d6a5(0x174),_0x2c66f9);if(_0x4fdf76==='\x1b'){process[_0x33d6a5(0x182)]['write']('\x0a'),_0x3e6dbb(![]);return;}_0x4fdf76==='\x03'&&(process[_0x33d6a5(0x182)][_0x33d6a5(0x16f)]('\x0a'),process['exit'](0x82));if(_0x4fdf76[_0x33d6a5(0x17b)]()==='y'){process['stderr'][_0x33d6a5(0x16f)]('y\x0a'),_0x3e6dbb(!![]);return;}process[_0x33d6a5(0x182)][_0x33d6a5(0x16f)]('\x0a'),_0x3e6dbb(![]);};_0x218535['on'](_0x20cd94(0x174),_0x2c66f9);});}
@@ -1 +1 @@
1
- (function(_0x3d6419,_0x9b63ea){const _0x57d7e0=a146_0x5595,_0x283d4d=_0x3d6419();while(!![]){try{const _0x141d50=parseInt(_0x57d7e0(0x153))/0x1+parseInt(_0x57d7e0(0x14e))/0x2+parseInt(_0x57d7e0(0x162))/0x3*(parseInt(_0x57d7e0(0x168))/0x4)+parseInt(_0x57d7e0(0x157))/0x5*(parseInt(_0x57d7e0(0x169))/0x6)+-parseInt(_0x57d7e0(0x151))/0x7*(-parseInt(_0x57d7e0(0x164))/0x8)+parseInt(_0x57d7e0(0x165))/0x9*(-parseInt(_0x57d7e0(0x163))/0xa)+-parseInt(_0x57d7e0(0x15b))/0xb;if(_0x141d50===_0x9b63ea)break;else _0x283d4d['push'](_0x283d4d['shift']());}catch(_0x23fbf2){_0x283d4d['push'](_0x283d4d['shift']());}}}(a146_0x5cb1,0x6c61a));import a146_0x469a06 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x2c50eb,_0x232938={}){const _0x263665=a146_0x5595,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x232938;return a146_0x469a06({'text':_0x2c50eb,'color':_0x263665(0x14f),'stream':process['stderr'],'isEnabled':forceEnabled||process[_0x263665(0x158)]['isTTY']&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x23b09c,_0x5e5d82,_0x4f5642={}){const _0x18d719=a146_0x5595,_0x1a9b00=_0x4f5642[_0x18d719(0x150)]??(()=>Date[_0x18d719(0x15c)]()),_0x3cd466=createCommandSpinner(_0x23b09c,_0x4f5642);_0x3cd466['start']();const _0x5aaea9=_0x1a9b00();try{const _0x27f3d9=await _0x5e5d82(),_0x1181c7=_0x1a9b00()-_0x5aaea9;return _0x3cd466[_0x18d719(0x14d)](),{'data':_0x27f3d9,'elapsedMs':_0x1181c7};}catch(_0x46e575){_0x3cd466['stop']();throw _0x46e575;}}function a146_0x5cb1(){const _0xe96237=['start','isSpinning','45aDPnib','stderr','...','\x20[Job\x20ID:\x20','19159635HfVZnf','now','jobId','trim','Processing','floor','text','5517iPNfFI','20yhqvtq','824uqhAbp','674073OyZblr','extra','toFixed','1508HBbMRe','566004AadEJX','stop','249794nxbgXw','cyan','clock','33558lfnNqK','intervalFactory','174521HnVfnj','phase'];a146_0x5cb1=function(){return _0xe96237;};return a146_0x5cb1();}function a146_0x5595(_0x2b9f4c,_0x3761fe){_0x2b9f4c=_0x2b9f4c-0x14d;const _0x5cb1aa=a146_0x5cb1();let _0x559593=_0x5cb1aa[_0x2b9f4c];return _0x559593;}export async function withProgressSpinner(_0x388370,_0x163b58,_0x354faf={}){const _0x375bbb=a146_0x5595,_0xd14aa4=_0x354faf[_0x375bbb(0x150)]??(()=>Date[_0x375bbb(0x15c)]()),_0x585443=_0x354faf[_0x375bbb(0x152)]??setInterval,_0x4c7adb=createCommandSpinner(_0x388370,_0x354faf);_0x4c7adb[_0x375bbb(0x155)]();const _0x25c1ff=_0xd14aa4(),_0x1ec997=_0x388370['replace'](_0x375bbb(0x159),'')[_0x375bbb(0x15e)]()||_0x375bbb(0x15f),_0x402e73={};let _0x1530e0=_0x388370;const _0x4fb5fd=()=>{const _0x36eb21=_0x375bbb;if(!_0x4c7adb[_0x36eb21(0x156)])return;const _0x497d53=_0xd14aa4()-_0x25c1ff,_0x4970bf=formatElapsed(_0x497d53),_0x138d22=_0x402e73[_0x36eb21(0x154)]?.[_0x36eb21(0x15e)]()||_0x1ec997,_0x262ebd=_0x402e73[_0x36eb21(0x15d)]?_0x36eb21(0x15a)+_0x402e73[_0x36eb21(0x15d)]+']':'',_0xbd55d0=_0x402e73[_0x36eb21(0x166)]?'\x20'+_0x402e73[_0x36eb21(0x166)]:'',_0x4c8233=_0x138d22+'\x20'+_0x4970bf+_0xbd55d0+_0x262ebd;_0x4c8233!==_0x1530e0&&_0x4c8233[_0x36eb21(0x15e)]()&&(_0x4c7adb[_0x36eb21(0x161)]=_0x4c8233,_0x1530e0=_0x4c8233);},_0x2c542f=_0x585443(()=>{_0x4fb5fd();},0x3e8),_0x4e466b={'setPhase':_0x107c60=>{const _0x32fd9f=_0x375bbb;_0x402e73[_0x32fd9f(0x154)]=_0x107c60;const _0x508591=_0x107c60?.[_0x32fd9f(0x15e)]()||_0x1ec997,_0x16949d=_0xd14aa4()-_0x25c1ff,_0x5478f7=formatElapsed(_0x16949d),_0x22435=_0x402e73[_0x32fd9f(0x15d)]?_0x32fd9f(0x15a)+_0x402e73[_0x32fd9f(0x15d)]+']':'',_0x10ed2a=_0x402e73[_0x32fd9f(0x166)]?'\x20'+_0x402e73['extra']:'',_0xabaf68=_0x508591+'\x20'+_0x5478f7+_0x10ed2a+_0x22435;_0x4c7adb[_0x32fd9f(0x156)]&&_0xabaf68[_0x32fd9f(0x15e)]()&&(_0x4c7adb[_0x32fd9f(0x161)]=_0xabaf68,_0x1530e0=_0xabaf68);},'setJobId':_0x3eff1f=>{const _0x29e9cc=_0x375bbb;_0x402e73[_0x29e9cc(0x15d)]=_0x3eff1f,_0x4fb5fd();},'setExtra':_0x2c9a23=>{const _0x26f754=_0x375bbb;_0x402e73[_0x26f754(0x166)]=_0x2c9a23,_0x4fb5fd();}};_0x4fb5fd();try{const _0xf44858=await _0x163b58(_0x4e466b),_0x48f308=_0xd14aa4()-_0x25c1ff;return{'data':_0xf44858,'elapsedMs':_0x48f308};}finally{clearInterval(_0x2c542f),_0x4c7adb['stop']();}}export function formatElapsed(_0x1fd5d3){const _0x5d5f9d=a146_0x5595,_0x4d3414=Math[_0x5d5f9d(0x160)](_0x1fd5d3/0x3e8);if(_0x4d3414<0x3c)return(_0x1fd5d3/0x3e8)[_0x5d5f9d(0x167)](0x1)+'s';const _0x50636b=Math['floor'](_0x4d3414/0x3c),_0x4740f8=_0x4d3414%0x3c;if(_0x50636b<0x3c)return _0x50636b+'m\x20'+_0x4740f8+'s';const _0x5e7fdc=Math['floor'](_0x50636b/0x3c),_0x4eeed2=_0x50636b%0x3c;return _0x5e7fdc+'h\x20'+_0x4eeed2+'m';}
1
+ (function(_0x2df15b,_0x3fb971){const _0x45290c=a146_0x54da,_0x174981=_0x2df15b();while(!![]){try{const _0x37494a=parseInt(_0x45290c(0x108))/0x1+-parseInt(_0x45290c(0x10f))/0x2+parseInt(_0x45290c(0x105))/0x3*(-parseInt(_0x45290c(0x100))/0x4)+parseInt(_0x45290c(0xfe))/0x5+-parseInt(_0x45290c(0x107))/0x6+parseInt(_0x45290c(0x113))/0x7*(parseInt(_0x45290c(0x114))/0x8)+parseInt(_0x45290c(0xfd))/0x9*(parseInt(_0x45290c(0x116))/0xa);if(_0x37494a===_0x3fb971)break;else _0x174981['push'](_0x174981['shift']());}catch(_0x371934){_0x174981['push'](_0x174981['shift']());}}}(a146_0x5295,0xd6458));function a146_0x5295(){const _0x5f40b4=['floor','288038psQUwE','phase','toFixed','clock','1097474zLZQZG','32fIUjcL','trim','40JBIcUT','start','1281627HvYrdp','5193290ZBhHjt','stderr','4mYUYAM','stop','intervalFactory','isSpinning','extra','3346653TxAmnP','now','1152756oMOmOr','93954ZlmGNi','isTTY','text','jobId','\x20[Job\x20ID:\x20','replace'];a146_0x5295=function(){return _0x5f40b4;};return a146_0x5295();}import a146_0x2794df from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x219b10,_0x1b5977={}){const _0x27f1ad=a146_0x54da,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1b5977;return a146_0x2794df({'text':_0x219b10,'color':'cyan','stream':process['stderr'],'isEnabled':forceEnabled||process[_0x27f1ad(0xff)][_0x27f1ad(0x109)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}function a146_0x54da(_0x4319d8,_0x6b05e){_0x4319d8=_0x4319d8-0xfc;const _0x529599=a146_0x5295();let _0x54da37=_0x529599[_0x4319d8];return _0x54da37;}export async function withSpinner(_0x1f1e88,_0x572250,_0x4d9b0f={}){const _0x7f41d2=a146_0x54da,_0x44a86e=_0x4d9b0f[_0x7f41d2(0x112)]??(()=>Date[_0x7f41d2(0x106)]()),_0x5b8785=createCommandSpinner(_0x1f1e88,_0x4d9b0f);_0x5b8785[_0x7f41d2(0xfc)]();const _0x529e1f=_0x44a86e();try{const _0x231e37=await _0x572250(),_0x3d39f8=_0x44a86e()-_0x529e1f;return _0x5b8785['stop'](),{'data':_0x231e37,'elapsedMs':_0x3d39f8};}catch(_0x1432c4){_0x5b8785[_0x7f41d2(0x101)]();throw _0x1432c4;}}export async function withProgressSpinner(_0x5a805e,_0xd965e0,_0xe3183a={}){const _0x45e08c=a146_0x54da,_0x4841c5=_0xe3183a[_0x45e08c(0x112)]??(()=>Date['now']()),_0x260fc6=_0xe3183a[_0x45e08c(0x102)]??setInterval,_0x334661=createCommandSpinner(_0x5a805e,_0xe3183a);_0x334661['start']();const _0x41f271=_0x4841c5(),_0x332241=_0x5a805e[_0x45e08c(0x10d)]('...','')['trim']()||'Processing',_0x265ac6={};let _0x2c44cd=_0x5a805e;const _0x30c43f=()=>{const _0x112d40=_0x45e08c;if(!_0x334661['isSpinning'])return;const _0x3182dd=_0x4841c5()-_0x41f271,_0x1fd621=formatElapsed(_0x3182dd),_0x3db33f=_0x265ac6['phase']?.['trim']()||_0x332241,_0x3c3513=_0x265ac6[_0x112d40(0x10b)]?_0x112d40(0x10c)+_0x265ac6[_0x112d40(0x10b)]+']':'',_0x17afc7=_0x265ac6[_0x112d40(0x104)]?'\x20'+_0x265ac6[_0x112d40(0x104)]:'',_0x335743=_0x3db33f+'\x20'+_0x1fd621+_0x17afc7+_0x3c3513;_0x335743!==_0x2c44cd&&_0x335743[_0x112d40(0x115)]()&&(_0x334661[_0x112d40(0x10a)]=_0x335743,_0x2c44cd=_0x335743);},_0x543087=_0x260fc6(()=>{_0x30c43f();},0x3e8),_0x1475e3={'setPhase':_0xcaf104=>{const _0x120770=_0x45e08c;_0x265ac6[_0x120770(0x110)]=_0xcaf104;const _0x2d0ecb=_0xcaf104?.[_0x120770(0x115)]()||_0x332241,_0x12a064=_0x4841c5()-_0x41f271,_0x4497b7=formatElapsed(_0x12a064),_0x4dd627=_0x265ac6['jobId']?_0x120770(0x10c)+_0x265ac6[_0x120770(0x10b)]+']':'',_0x4cc826=_0x265ac6['extra']?'\x20'+_0x265ac6[_0x120770(0x104)]:'',_0x323498=_0x2d0ecb+'\x20'+_0x4497b7+_0x4cc826+_0x4dd627;_0x334661[_0x120770(0x103)]&&_0x323498[_0x120770(0x115)]()&&(_0x334661[_0x120770(0x10a)]=_0x323498,_0x2c44cd=_0x323498);},'setJobId':_0x5c778d=>{const _0x5988e=_0x45e08c;_0x265ac6[_0x5988e(0x10b)]=_0x5c778d,_0x30c43f();},'setExtra':_0x145e00=>{const _0xa18b8e=_0x45e08c;_0x265ac6[_0xa18b8e(0x104)]=_0x145e00,_0x30c43f();}};_0x30c43f();try{const _0x2106f8=await _0xd965e0(_0x1475e3),_0x3a9a0c=_0x4841c5()-_0x41f271;return{'data':_0x2106f8,'elapsedMs':_0x3a9a0c};}finally{clearInterval(_0x543087),_0x334661['stop']();}}export function formatElapsed(_0x1665f4){const _0x25a565=a146_0x54da,_0x62c694=Math[_0x25a565(0x10e)](_0x1665f4/0x3e8);if(_0x62c694<0x3c)return(_0x1665f4/0x3e8)[_0x25a565(0x111)](0x1)+'s';const _0x385a0c=Math[_0x25a565(0x10e)](_0x62c694/0x3c),_0x20f4a7=_0x62c694%0x3c;if(_0x385a0c<0x3c)return _0x385a0c+'m\x20'+_0x20f4a7+'s';const _0x1b404b=Math[_0x25a565(0x10e)](_0x385a0c/0x3c),_0x617eee=_0x385a0c%0x3c;return _0x1b404b+'h\x20'+_0x617eee+'m';}
@@ -1 +1 @@
1
- (function(_0x503fc6,_0x402e71){const _0x1d0085=a147_0x562b,_0x58477a=_0x503fc6();while(!![]){try{const _0x2e00c9=parseInt(_0x1d0085(0x1a5))/0x1*(-parseInt(_0x1d0085(0x19a))/0x2)+parseInt(_0x1d0085(0x194))/0x3+-parseInt(_0x1d0085(0x1a1))/0x4+parseInt(_0x1d0085(0x1a4))/0x5*(-parseInt(_0x1d0085(0x198))/0x6)+-parseInt(_0x1d0085(0x19d))/0x7*(parseInt(_0x1d0085(0x19e))/0x8)+-parseInt(_0x1d0085(0x19b))/0x9+-parseInt(_0x1d0085(0x192))/0xa*(-parseInt(_0x1d0085(0x19f))/0xb);if(_0x2e00c9===_0x402e71)break;else _0x58477a['push'](_0x58477a['shift']());}catch(_0x47c9a1){_0x58477a['push'](_0x58477a['shift']());}}}(a147_0x3b56,0xcbb15));function a147_0x562b(_0xd05ca2,_0x5dbd63){_0xd05ca2=_0xd05ca2-0x18d;const _0x3b5624=a147_0x3b56();let _0x562be9=_0x3b5624[_0xd05ca2];return _0x562be9;}export async function*parseSSEStream(_0x52d58d,_0x184f4e){const _0x1a4621=a147_0x562b;if(!_0x52d58d[_0x1a4621(0x18f)])throw new Error(_0x1a4621(0x193));const _0x2a8bb7=_0x52d58d[_0x1a4621(0x18f)][_0x1a4621(0x1a6)](),_0x59ec3b=new TextDecoder();let _0x2d0062='',_0x18620e={};try{while(!![]){const {done:_0xe65811,value:_0x414b0d}=await _0x2a8bb7[_0x1a4621(0x19c)]();if(_0xe65811){if(_0x18620e[_0x1a4621(0x18d)]){_0x184f4e?.[_0x1a4621(0x1a3)](_0x1a4621(0x199)+_0x18620e[_0x1a4621(0x18d)]);const _0xcd10b8=parseSSEData(_0x18620e[_0x1a4621(0x18d)]);yield _0xcd10b8;}break;}_0x2d0062+=_0x59ec3b[_0x1a4621(0x1a2)](_0x414b0d,{'stream':!![]});const _0x4eec91=_0x2d0062[_0x1a4621(0x190)]('\x0a');_0x2d0062=_0x4eec91[_0x1a4621(0x197)]()||'';for(const _0x58d5b8 of _0x4eec91){if(_0x58d5b8[_0x1a4621(0x191)]()===''){if(_0x18620e[_0x1a4621(0x18d)]){_0x184f4e?.['debug'](_0x1a4621(0x199)+_0x18620e[_0x1a4621(0x18d)]);const _0x2412b9=parseSSEData(_0x18620e['data']);yield _0x2412b9,_0x18620e={};}continue;}if(_0x58d5b8['startsWith'](':'))continue;const _0x34dd71=_0x58d5b8[_0x1a4621(0x1a0)](':');if(_0x34dd71===-0x1)continue;const _0x3cb184=_0x58d5b8[_0x1a4621(0x195)](0x0,_0x34dd71);let _0xf41b65=_0x58d5b8[_0x1a4621(0x195)](_0x34dd71+0x1);_0xf41b65[_0x1a4621(0x1a7)]('\x20')&&(_0xf41b65=_0xf41b65['slice'](0x1));switch(_0x3cb184){case'event':_0x18620e['event']=_0xf41b65;break;case _0x1a4621(0x18d):_0x18620e[_0x1a4621(0x18d)]=_0x18620e['data']?_0x18620e[_0x1a4621(0x18d)]+'\x0a'+_0xf41b65:_0xf41b65;break;case'id':_0x18620e['id']=_0xf41b65;break;}}}}finally{_0x2a8bb7[_0x1a4621(0x18e)]();}}function parseSSEData(_0xb5bdd9){const _0x3834eb=a147_0x562b;try{return JSON[_0x3834eb(0x196)](_0xb5bdd9);}catch(_0x4fbcf8){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0xb5bdd9,{'cause':_0x4fbcf8});}}function a147_0x3b56(){const _0x38829e=['body','split','trim','900JAqJTf','Response\x20body\x20is\x20null','4799745WxezBF','slice','parse','pop','2593380JlIQzD','[LLM\x20API\x20SSE]\x20','757938YUqogm','12230595oQgtjG','read','49BBwcBa','1248848wCoRep','597179nQouDH','indexOf','6310020dFChUm','decode','debug','10edwKtF','2bOARjZ','getReader','startsWith','data','releaseLock'];a147_0x3b56=function(){return _0x38829e;};return a147_0x3b56();}
1
+ (function(_0x4ba8ed,_0x820b68){const _0x35dc85=a147_0x46da,_0x43e3d2=_0x4ba8ed();while(!![]){try{const _0x8e1cbc=parseInt(_0x35dc85(0x72))/0x1*(-parseInt(_0x35dc85(0x68))/0x2)+-parseInt(_0x35dc85(0x77))/0x3+parseInt(_0x35dc85(0x7d))/0x4+parseInt(_0x35dc85(0x7e))/0x5*(parseInt(_0x35dc85(0x6c))/0x6)+-parseInt(_0x35dc85(0x69))/0x7*(-parseInt(_0x35dc85(0x7f))/0x8)+-parseInt(_0x35dc85(0x76))/0x9+parseInt(_0x35dc85(0x75))/0xa;if(_0x8e1cbc===_0x820b68)break;else _0x43e3d2['push'](_0x43e3d2['shift']());}catch(_0x57f172){_0x43e3d2['push'](_0x43e3d2['shift']());}}}(a147_0x259d,0xa0fd8));function a147_0x259d(){const _0x219ddb=['read','3928556ePzsAg','263395gBxEky','8341928TEAQnm','6nOKcAw','7LGTnyf','trim','data','66BmQQiK','slice','parse','split','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','pop','371893lgGcIC','body','startsWith','4815680nNeZdR','1179360redUdD','3539346ceMjte','releaseLock','debug','[LLM\x20API\x20SSE]\x20','event'];a147_0x259d=function(){return _0x219ddb;};return a147_0x259d();}function a147_0x46da(_0x3661cb,_0x21eb7f){_0x3661cb=_0x3661cb-0x68;const _0x259d58=a147_0x259d();let _0x46da14=_0x259d58[_0x3661cb];return _0x46da14;}export async function*parseSSEStream(_0x5b55e3,_0x599391){const _0x53fdd9=a147_0x46da;if(!_0x5b55e3[_0x53fdd9(0x73)])throw new Error('Response\x20body\x20is\x20null');const _0x53d518=_0x5b55e3['body']['getReader'](),_0x63990a=new TextDecoder();let _0x459af5='',_0x27ecfb={};try{while(!![]){const {done:_0x4cb4a,value:_0x34c340}=await _0x53d518[_0x53fdd9(0x7c)]();if(_0x4cb4a){if(_0x27ecfb['data']){_0x599391?.[_0x53fdd9(0x79)]('[LLM\x20API\x20SSE]\x20'+_0x27ecfb[_0x53fdd9(0x6b)]);const _0x269946=parseSSEData(_0x27ecfb[_0x53fdd9(0x6b)]);yield _0x269946;}break;}_0x459af5+=_0x63990a['decode'](_0x34c340,{'stream':!![]});const _0x1c81df=_0x459af5[_0x53fdd9(0x6f)]('\x0a');_0x459af5=_0x1c81df[_0x53fdd9(0x71)]()||'';for(const _0x4720df of _0x1c81df){if(_0x4720df[_0x53fdd9(0x6a)]()===''){if(_0x27ecfb['data']){_0x599391?.[_0x53fdd9(0x79)](_0x53fdd9(0x7a)+_0x27ecfb[_0x53fdd9(0x6b)]);const _0x1a1b9d=parseSSEData(_0x27ecfb[_0x53fdd9(0x6b)]);yield _0x1a1b9d,_0x27ecfb={};}continue;}if(_0x4720df['startsWith'](':'))continue;const _0x2e495b=_0x4720df['indexOf'](':');if(_0x2e495b===-0x1)continue;const _0x452c33=_0x4720df[_0x53fdd9(0x6d)](0x0,_0x2e495b);let _0x4ce078=_0x4720df[_0x53fdd9(0x6d)](_0x2e495b+0x1);_0x4ce078[_0x53fdd9(0x74)]('\x20')&&(_0x4ce078=_0x4ce078['slice'](0x1));switch(_0x452c33){case _0x53fdd9(0x7b):_0x27ecfb[_0x53fdd9(0x7b)]=_0x4ce078;break;case _0x53fdd9(0x6b):_0x27ecfb[_0x53fdd9(0x6b)]=_0x27ecfb['data']?_0x27ecfb[_0x53fdd9(0x6b)]+'\x0a'+_0x4ce078:_0x4ce078;break;case'id':_0x27ecfb['id']=_0x4ce078;break;}}}}finally{_0x53d518[_0x53fdd9(0x78)]();}}function parseSSEData(_0x6c1a13){const _0x22f921=a147_0x46da;try{return JSON[_0x22f921(0x6e)](_0x6c1a13);}catch(_0x542844){throw new Error(_0x22f921(0x70)+_0x6c1a13,{'cause':_0x542844});}}
@@ -1 +1 @@
1
- (function(_0x44ab47,_0x1a3c88){const _0x892b6=a148_0xa8fe,_0x53bde1=_0x44ab47();while(!![]){try{const _0x1abee1=parseInt(_0x892b6(0xeb))/0x1+-parseInt(_0x892b6(0xe7))/0x2*(-parseInt(_0x892b6(0xd6))/0x3)+-parseInt(_0x892b6(0xe6))/0x4*(-parseInt(_0x892b6(0xda))/0x5)+-parseInt(_0x892b6(0xd8))/0x6*(parseInt(_0x892b6(0xde))/0x7)+parseInt(_0x892b6(0xdd))/0x8+parseInt(_0x892b6(0xd4))/0x9+parseInt(_0x892b6(0xe8))/0xa*(-parseInt(_0x892b6(0xdb))/0xb);if(_0x1abee1===_0x1a3c88)break;else _0x53bde1['push'](_0x53bde1['shift']());}catch(_0x1c1e23){_0x53bde1['push'](_0x53bde1['shift']());}}}(a148_0x3913,0xaa664));import a148_0x14b1bb from'string-width';function a148_0x3913(){const _0x4fba77=['68GiuWSP','2150qfjBFs','23064990Sesalv','replace','test','1289185PCSRpR','Cannot\x20escape\x20empty\x20string\x20literal','padStart','toString','1828197sVSwqI','trim','2283aFPjEV','substring','6567582FnAFDd','slice','292805dXafGg','11OXQTOM','USER','6344976hAscnI','7YyGVKf','length','floor','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','repeat','\x5c$&','toLowerCase','env'];a148_0x3913=function(){return _0x4fba77;};return a148_0x3913();}export function stringWidth(_0x292983){return a148_0x14b1bb(_0x292983);}export function padEnd(_0x2bef6f,_0x25ead5){const _0x38e9fb=stringWidth(_0x2bef6f);if(_0x38e9fb>=_0x25ead5)return _0x2bef6f;return _0x2bef6f+'\x20'['repeat'](_0x25ead5-_0x38e9fb);}export function padStart(_0x8c806e,_0x249033){const _0x1874c9=stringWidth(_0x8c806e);if(_0x1874c9>=_0x249033)return _0x8c806e;return'\x20'['repeat'](_0x249033-_0x1874c9)+_0x8c806e;}function a148_0xa8fe(_0x3a4637,_0x35ad8e){_0x3a4637=_0x3a4637-0xd3;const _0x3913ea=a148_0x3913();let _0xa8fef5=_0x3913ea[_0x3a4637];return _0xa8fef5;}export function centerAlign(_0x584e78,_0x21af04){const _0x416ceb=a148_0xa8fe,_0x3564fb=stringWidth(_0x584e78);if(_0x3564fb>_0x21af04){if(_0x21af04<=0x1)return'…'[_0x416ceb(0xd7)](0x0,_0x21af04);let _0x5a709b=_0x584e78;while(stringWidth(_0x5a709b+'…')>_0x21af04){_0x5a709b=_0x5a709b[_0x416ceb(0xd9)](0x0,-0x1);}return _0x5a709b+'…';}if(_0x3564fb===_0x21af04)return _0x584e78;const _0x214cbe=_0x21af04-_0x3564fb,_0x2af819=Math[_0x416ceb(0xe0)](_0x214cbe/0x2),_0x2c6070=_0x214cbe-_0x2af819;return'\x20'[_0x416ceb(0xe2)](_0x2af819)+_0x584e78+'\x20'[_0x416ceb(0xe2)](_0x2c6070);}export function escapeStringLiteral(_0x13a6d8){const _0x3f69c0=a148_0xa8fe;if(!_0x13a6d8||_0x13a6d8[_0x3f69c0(0xd5)]()['length']===0x0)throw new Error(_0x3f69c0(0xec));const _0x324ba2=_0x13a6d8[_0x3f69c0(0xe9)](/'/g,'\x27\x27');return'\x27'+_0x324ba2+'\x27';}export function globToLike(_0x53a24c){const _0x4fd4af=a148_0xa8fe;let _0x20a2a7=_0x53a24c[_0x4fd4af(0xe9)](/\\/g,'\x5c\x5c')[_0x4fd4af(0xe9)](/%/g,'\x5c%')[_0x4fd4af(0xe9)](/_/g,'\x5c_');return _0x20a2a7=_0x20a2a7[_0x4fd4af(0xe9)](/\*/g,'%')[_0x4fd4af(0xe9)](/\?/g,'_'),_0x20a2a7;}export function buildLikePattern(_0x36773c){const _0x1b5e2e=a148_0xa8fe;if(!_0x36773c||_0x36773c[_0x1b5e2e(0xd5)]()[_0x1b5e2e(0xdf)]===0x0)throw new Error(_0x1b5e2e(0xe1));const _0x1a7976=globToLike(_0x36773c),_0x1ac172=_0x1a7976[_0x1b5e2e(0xe9)](/'/g,'\x27\x27');return'\x27'+_0x1ac172+'\x27';}export function matchGlobPattern(_0x214247,_0x32d62e){const _0xb85b88=a148_0xa8fe,_0x525fb2=_0x32d62e[_0xb85b88(0xe9)](/[.+^${}()|[\]\\]/g,_0xb85b88(0xe3))[_0xb85b88(0xe9)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x3dab28=new RegExp('^'+_0x525fb2+'$');return _0x3dab28[_0xb85b88(0xea)](_0x214247);}export function getSanitizedUsername(){const _0x2034bd=a148_0xa8fe,_0x1109e8=process[_0x2034bd(0xe5)][_0x2034bd(0xdc)]||process[_0x2034bd(0xe5)]['USERNAME']||'unknown';return _0x1109e8[_0x2034bd(0xe9)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x1625b2=a148_0xa8fe,_0x2c8592=Math['floor'](Math['random']()*0xfffff);return _0x2c8592[_0x1625b2(0xd3)](0x10)[_0x1625b2(0xed)](0x5,'0');}export function sanitizeFileName(_0x30e579){const _0x39d480=a148_0xa8fe;return _0x30e579[_0x39d480(0xe4)]()[_0x39d480(0xe9)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')['replace'](/-+/g,'-')[_0x39d480(0xe9)](/^-|-$/g,'');}
1
+ (function(_0x52e438,_0x253b96){const _0x372005=a148_0x1ccd,_0x25a5a2=_0x52e438();while(!![]){try{const _0x200f8d=-parseInt(_0x372005(0x197))/0x1*(-parseInt(_0x372005(0x183))/0x2)+parseInt(_0x372005(0x189))/0x3*(-parseInt(_0x372005(0x196))/0x4)+parseInt(_0x372005(0x195))/0x5+parseInt(_0x372005(0x188))/0x6+-parseInt(_0x372005(0x187))/0x7+-parseInt(_0x372005(0x185))/0x8+parseInt(_0x372005(0x198))/0x9*(parseInt(_0x372005(0x192))/0xa);if(_0x200f8d===_0x253b96)break;else _0x25a5a2['push'](_0x25a5a2['shift']());}catch(_0x995fdb){_0x25a5a2['push'](_0x25a5a2['shift']());}}}(a148_0x59af,0x1abbf));import a148_0x1987a9 from'string-width';function a148_0x1ccd(_0x5c077f,_0x235c94){_0x5c077f=_0x5c077f-0x181;const _0x59afae=a148_0x59af();let _0x1ccdde=_0x59afae[_0x5c077f];return _0x1ccdde;}export function stringWidth(_0x38da2a){return a148_0x1987a9(_0x38da2a);}export function padEnd(_0x44ee1f,_0xe17b4a){const _0x5b4b0f=a148_0x1ccd,_0x2768e3=stringWidth(_0x44ee1f);if(_0x2768e3>=_0xe17b4a)return _0x44ee1f;return _0x44ee1f+'\x20'[_0x5b4b0f(0x199)](_0xe17b4a-_0x2768e3);}export function padStart(_0x161e97,_0x5d538b){const _0x233b6b=a148_0x1ccd,_0x14c26b=stringWidth(_0x161e97);if(_0x14c26b>=_0x5d538b)return _0x161e97;return'\x20'[_0x233b6b(0x199)](_0x5d538b-_0x14c26b)+_0x161e97;}export function centerAlign(_0x856ecb,_0x3265fd){const _0x1aef45=a148_0x1ccd,_0x178181=stringWidth(_0x856ecb);if(_0x178181>_0x3265fd){if(_0x3265fd<=0x1)return'…'[_0x1aef45(0x18c)](0x0,_0x3265fd);let _0xb106e2=_0x856ecb;while(stringWidth(_0xb106e2+'…')>_0x3265fd){_0xb106e2=_0xb106e2['slice'](0x0,-0x1);}return _0xb106e2+'…';}if(_0x178181===_0x3265fd)return _0x856ecb;const _0x36a76f=_0x3265fd-_0x178181,_0x2988c5=Math[_0x1aef45(0x18f)](_0x36a76f/0x2),_0x195634=_0x36a76f-_0x2988c5;return'\x20'[_0x1aef45(0x199)](_0x2988c5)+_0x856ecb+'\x20'[_0x1aef45(0x199)](_0x195634);}export function escapeStringLiteral(_0x3a487a){const _0xcbb402=a148_0x1ccd;if(!_0x3a487a||_0x3a487a[_0xcbb402(0x19a)]()[_0xcbb402(0x18d)]===0x0)throw new Error(_0xcbb402(0x190));const _0xe4b388=_0x3a487a[_0xcbb402(0x18e)](/'/g,'\x27\x27');return'\x27'+_0xe4b388+'\x27';}function a148_0x59af(){const _0xe891b9=['Cannot\x20escape\x20empty\x20string\x20literal','\x5c$&','10POwNGn','USER','toLowerCase','346530sglIFB','814808mdUFxN','6653eADRzo','3296835TKfSLh','repeat','trim','env','test','random','24VJxltQ','padStart','1005560IrkHVG','unknown','613487lENPfm','66504XCxhVV','3OTNHch','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','USERNAME','substring','length','replace','floor'];a148_0x59af=function(){return _0xe891b9;};return a148_0x59af();}export function globToLike(_0x3e4e42){const _0x2bd3a1=a148_0x1ccd;let _0x3f89bf=_0x3e4e42[_0x2bd3a1(0x18e)](/\\/g,'\x5c\x5c')[_0x2bd3a1(0x18e)](/%/g,'\x5c%')[_0x2bd3a1(0x18e)](/_/g,'\x5c_');return _0x3f89bf=_0x3f89bf[_0x2bd3a1(0x18e)](/\*/g,'%')['replace'](/\?/g,'_'),_0x3f89bf;}export function buildLikePattern(_0x4fe9dd){const _0x4ccab7=a148_0x1ccd;if(!_0x4fe9dd||_0x4fe9dd[_0x4ccab7(0x19a)]()[_0x4ccab7(0x18d)]===0x0)throw new Error(_0x4ccab7(0x18a));const _0x47c74c=globToLike(_0x4fe9dd),_0x515d1e=_0x47c74c[_0x4ccab7(0x18e)](/'/g,'\x27\x27');return'\x27'+_0x515d1e+'\x27';}export function matchGlobPattern(_0xfda547,_0x2c8b59){const _0x4801f3=a148_0x1ccd,_0x4d9cdb=_0x2c8b59[_0x4801f3(0x18e)](/[.+^${}()|[\]\\]/g,_0x4801f3(0x191))[_0x4801f3(0x18e)](/\*/g,'.*')[_0x4801f3(0x18e)](/\?/g,'.'),_0x87ec7=new RegExp('^'+_0x4d9cdb+'$');return _0x87ec7[_0x4801f3(0x181)](_0xfda547);}export function getSanitizedUsername(){const _0x225103=a148_0x1ccd,_0x152e7a=process[_0x225103(0x19b)][_0x225103(0x193)]||process['env'][_0x225103(0x18b)]||_0x225103(0x186);return _0x152e7a[_0x225103(0x18e)](/[^a-zA-Z0-9]/g,'')[_0x225103(0x194)]();}export function generateRandomHex(){const _0x5ded6f=a148_0x1ccd,_0x2cd002=Math[_0x5ded6f(0x18f)](Math[_0x5ded6f(0x182)]()*0xfffff);return _0x2cd002['toString'](0x10)[_0x5ded6f(0x184)](0x5,'0');}export function sanitizeFileName(_0x2de33d){const _0x3249bf=a148_0x1ccd;return _0x2de33d[_0x3249bf(0x194)]()[_0x3249bf(0x18e)](/[/\\:*?"<>|]/g,'-')[_0x3249bf(0x18e)](/\s+/g,'-')[_0x3249bf(0x18e)](/-+/g,'-')['replace'](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x24fb3c,_0x563c68){const _0x18b542=a149_0x1c20,_0x4db5bc=_0x24fb3c();while(!![]){try{const _0x2b0304=parseInt(_0x18b542(0xaf))/0x1*(parseInt(_0x18b542(0xba))/0x2)+parseInt(_0x18b542(0xc0))/0x3*(-parseInt(_0x18b542(0xb5))/0x4)+-parseInt(_0x18b542(0xb8))/0x5*(parseInt(_0x18b542(0xb2))/0x6)+-parseInt(_0x18b542(0xbd))/0x7+-parseInt(_0x18b542(0xae))/0x8+parseInt(_0x18b542(0xbf))/0x9+parseInt(_0x18b542(0xc4))/0xa;if(_0x2b0304===_0x563c68)break;else _0x4db5bc['push'](_0x4db5bc['shift']());}catch(_0x24e33b){_0x4db5bc['push'](_0x4db5bc['shift']());}}}(a149_0x376f,0xea2b5));function hasWildcard(_0xa2c961){const _0x581492=a149_0x1c20;return _0xa2c961[_0x581492(0xb4)]('*')||_0xa2c961['includes']('?');}export function parseTableReference(_0x55d9bd){const _0x440058=a149_0x1c20;if(!_0x55d9bd||_0x55d9bd[_0x440058(0xb9)]()['length']===0x0)throw new Error(_0x440058(0xc7));const _0x2f857b=_0x55d9bd[_0x440058(0xb9)](),_0x1032d8={'original':_0x2f857b},_0x32f149=_0x2f857b[_0x440058(0xbb)]('.');if(_0x32f149['length']===0x1){const _0x3820c2=_0x32f149[0x0];if(!_0x3820c2)throw new Error(_0x440058(0xad));_0x1032d8[_0x440058(0xb6)]=_0x3820c2;}else{if(_0x32f149[_0x440058(0xc1)]===0x2){const [_0x386c2d,_0x76f469]=_0x32f149;if(!_0x386c2d)throw new Error(_0x440058(0xbe));if(!_0x76f469)throw new Error(_0x440058(0xc2));_0x1032d8[_0x440058(0xc6)]=_0x386c2d,_0x1032d8[_0x440058(0xb6)]=_0x76f469;}else{if(_0x32f149[_0x440058(0xc1)]===0x3){const [_0x514fed,_0x31b2e9,_0x4665b1]=_0x32f149;if(!_0x514fed||!_0x31b2e9||!_0x4665b1)throw new Error(_0x440058(0xb3));_0x1032d8[_0x440058(0xb7)]=_0x514fed,_0x1032d8['database']=_0x31b2e9,_0x1032d8['table']=_0x4665b1;}else throw new Error(_0x440058(0xbc));}}return _0x1032d8;}export function formatTableReference(_0x66c44f){const _0x3f5c95=a149_0x1c20,_0x2a0903=[];return _0x66c44f[_0x3f5c95(0xb7)]&&_0x2a0903[_0x3f5c95(0xb0)](_0x66c44f['catalog']),_0x66c44f[_0x3f5c95(0xc6)]&&_0x2a0903[_0x3f5c95(0xb0)](_0x66c44f[_0x3f5c95(0xc6)]),_0x66c44f[_0x3f5c95(0xb6)]&&_0x2a0903[_0x3f5c95(0xb0)](_0x66c44f['table']),_0x2a0903['join']('.');}export function validateTableListReference(_0x594eff){return undefined;}export function validateTableDescribeReference(_0x10645e){const _0x22016a=a149_0x1c20;if(!_0x10645e[_0x22016a(0xb6)])return _0x22016a(0xc3);if(_0x10645e['database']&&hasWildcard(_0x10645e['database']))return _0x22016a(0xc5);if(hasWildcard(_0x10645e[_0x22016a(0xb6)]))return _0x22016a(0xb1);return undefined;}function a149_0x1c20(_0x25e075,_0x2fd9f1){_0x25e075=_0x25e075-0xad;const _0x376fdd=a149_0x376f();let _0x1c207f=_0x376fdd[_0x25e075];return _0x1c207f;}function a149_0x376f(){const _0x125001=['Pattern\x20cannot\x20be\x20just\x20a\x20dot','1772968OSjeLV','700316kgBakW','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','6EjvQIZ','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','includes','148DZOhRV','table','catalog','3128435KRBkHJ','trim','2yrkVir','split','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','5360782MlNexR','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','8148042gvXTkC','146607lSbLMc','length','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','27747900skzbSl','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','database','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only'];a149_0x376f=function(){return _0x125001;};return a149_0x376f();}
1
+ (function(_0x11ca96,_0x44b00c){const _0x290c9a=a149_0x19d0,_0x591ba5=_0x11ca96();while(!![]){try{const _0x1c06f1=parseInt(_0x290c9a(0x6b))/0x1+-parseInt(_0x290c9a(0x7a))/0x2+-parseInt(_0x290c9a(0x74))/0x3+-parseInt(_0x290c9a(0x67))/0x4*(-parseInt(_0x290c9a(0x78))/0x5)+-parseInt(_0x290c9a(0x6e))/0x6*(-parseInt(_0x290c9a(0x6a))/0x7)+-parseInt(_0x290c9a(0x73))/0x8*(-parseInt(_0x290c9a(0x6d))/0x9)+-parseInt(_0x290c9a(0x7d))/0xa;if(_0x1c06f1===_0x44b00c)break;else _0x591ba5['push'](_0x591ba5['shift']());}catch(_0x1dcdc3){_0x591ba5['push'](_0x591ba5['shift']());}}}(a149_0xfcde,0xadaa2));function a149_0x19d0(_0x5ee7af,_0x2b90c9){_0x5ee7af=_0x5ee7af-0x64;const _0xfcdec1=a149_0xfcde();let _0x19d0fb=_0xfcdec1[_0x5ee7af];return _0x19d0fb;}function hasWildcard(_0x4f4c87){const _0x24ff13=a149_0x19d0;return _0x4f4c87['includes']('*')||_0x4f4c87[_0x24ff13(0x6c)]('?');}export function parseTableReference(_0x589932){const _0x541423=a149_0x19d0;if(!_0x589932||_0x589932[_0x541423(0x7c)]()[_0x541423(0x72)]===0x0)throw new Error(_0x541423(0x79));const _0x10ba36=_0x589932['trim'](),_0x7ac2c={'original':_0x10ba36},_0x367b16=_0x10ba36[_0x541423(0x66)]('.');if(_0x367b16['length']===0x1){const _0x2977df=_0x367b16[0x0];if(!_0x2977df)throw new Error(_0x541423(0x65));_0x7ac2c[_0x541423(0x64)]=_0x2977df;}else{if(_0x367b16[_0x541423(0x72)]===0x2){const [_0x435b69,_0x46f2ca]=_0x367b16;if(!_0x435b69)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x46f2ca)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x7ac2c[_0x541423(0x70)]=_0x435b69,_0x7ac2c['table']=_0x46f2ca;}else{if(_0x367b16[_0x541423(0x72)]===0x3){const [_0x144b85,_0x5c9384,_0x4cfd56]=_0x367b16;if(!_0x144b85||!_0x5c9384||!_0x4cfd56)throw new Error(_0x541423(0x76));_0x7ac2c[_0x541423(0x71)]=_0x144b85,_0x7ac2c[_0x541423(0x70)]=_0x5c9384,_0x7ac2c[_0x541423(0x64)]=_0x4cfd56;}else throw new Error(_0x541423(0x75));}}return _0x7ac2c;}export function formatTableReference(_0x5a5d4e){const _0x259b5f=a149_0x19d0,_0x30a67b=[];return _0x5a5d4e[_0x259b5f(0x71)]&&_0x30a67b[_0x259b5f(0x7b)](_0x5a5d4e[_0x259b5f(0x71)]),_0x5a5d4e[_0x259b5f(0x70)]&&_0x30a67b['push'](_0x5a5d4e[_0x259b5f(0x70)]),_0x5a5d4e['table']&&_0x30a67b['push'](_0x5a5d4e[_0x259b5f(0x64)]),_0x30a67b[_0x259b5f(0x68)]('.');}export function validateTableListReference(_0x1562e){return undefined;}function a149_0xfcde(){const _0x5a84f8=['Table\x20name\x20is\x20required\x20for\x20describe\x20operation','345GtviIM','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','2775578tnoDZZ','push','trim','6748970vgDmRk','table','Pattern\x20cannot\x20be\x20just\x20a\x20dot','split','66444fBdjJL','join','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','158970IUJYgZ','1250921kGDFcR','includes','1755ZdzwMb','366aYFiUi','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','database','catalog','length','13168NlIiwG','3988032wvNgmO','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty'];a149_0xfcde=function(){return _0x5a84f8;};return a149_0xfcde();}export function validateTableDescribeReference(_0x3ff2ee){const _0x12d884=a149_0x19d0;if(!_0x3ff2ee[_0x12d884(0x64)])return _0x12d884(0x77);if(_0x3ff2ee[_0x12d884(0x70)]&&hasWildcard(_0x3ff2ee[_0x12d884(0x70)]))return _0x12d884(0x6f);if(hasWildcard(_0x3ff2ee[_0x12d884(0x64)]))return _0x12d884(0x69);return undefined;}
@@ -1 +1 @@
1
- const a150_0x11da70=a150_0x3f28;function a150_0x12cb(){const _0x23fc15=['getLogPath','ERROR','1167152qMJIRg','.cache','logLevel','getMinutes','map','tdx.log','info','Proxy\x20session\x20ended','.gz','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','write','gray','29523RRtTZu','1875572SSyBcH','logDir','Warning:\x20Error\x20writing\x20to\x20tdx.log:','getSeconds','getFullYear','yellow','tdx-','warn','TRACE','WARN','toISOString','close','17237gcwAJU','158268hnoHQf','6lxkctw','trace','DEBUG','split','end','16356gvDVnP','floor','message','test','getHours','padStart','603873tSYtfG','INFO','cyan','5dOhfJm','getMonth','stack','logs','fileOnly','getMilliseconds','Warning:\x20Failed\x20to\x20compress\x20','logStream','name','678808zRvnTh','error','filter','99dykclr','red','.log','abs','133BDrJMG','6680EoREIK','debug','join','mtime','init','toString','rotateOldLogs'];a150_0x12cb=function(){return _0x23fc15;};return a150_0x12cb();}(function(_0x4429c3,_0x403610){const _0x5441d1=a150_0x3f28,_0x4ee0e2=_0x4429c3();while(!![]){try{const _0x38c78a=-parseInt(_0x5441d1(0x1a4))/0x1+parseInt(_0x5441d1(0x1bf))/0x2*(parseInt(_0x5441d1(0x1ca))/0x3)+-parseInt(_0x5441d1(0x1b1))/0x4*(parseInt(_0x5441d1(0x1cd))/0x5)+parseInt(_0x5441d1(0x1be))/0x6*(parseInt(_0x5441d1(0x1dd))/0x7)+-parseInt(_0x5441d1(0x1d6))/0x8*(parseInt(_0x5441d1(0x1d9))/0x9)+parseInt(_0x5441d1(0x19b))/0xa*(-parseInt(_0x5441d1(0x1bd))/0xb)+parseInt(_0x5441d1(0x1c4))/0xc*(parseInt(_0x5441d1(0x1b0))/0xd);if(_0x38c78a===_0x403610)break;else _0x4ee0e2['push'](_0x4ee0e2['shift']());}catch(_0x47964f){_0x4ee0e2['push'](_0x4ee0e2['shift']());}}}(a150_0x12cb,0x8ea4a));function a150_0x3f28(_0x343bcd,_0x6184cc){_0x343bcd=_0x343bcd-0x19b;const _0x12cb9e=a150_0x12cb();let _0x3f2893=_0x12cb9e[_0x343bcd];return _0x3f2893;}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a150_0x5157cf from'chalk';function safeStringify(_0x49f55c){const _0x443c7f=a150_0x3f28;if(typeof _0x49f55c==='string')return _0x49f55c;if(_0x49f55c instanceof Error)return _0x49f55c[_0x443c7f(0x1cf)]||_0x49f55c['name']+':\x20'+_0x49f55c[_0x443c7f(0x1c6)];try{return JSON['stringify'](_0x49f55c,(_0x3c2d68,_0x1b8f25)=>{const _0xa57ada=_0x443c7f;if(_0x1b8f25 instanceof Error)return{'name':_0x1b8f25[_0xa57ada(0x1d5)],'message':_0x1b8f25[_0xa57ada(0x1c6)],'stack':_0x1b8f25[_0xa57ada(0x1cf)],'cause':_0x1b8f25['cause']};return _0x1b8f25;});}catch{return String(_0x49f55c);}}function getTimezoneOffset(){const _0x5266ba=a150_0x3f28,_0x593bc4=-new Date()['getTimezoneOffset'](),_0x259409=Math[_0x5266ba(0x1c5)](Math[_0x5266ba(0x1dc)](_0x593bc4)/0x3c),_0x19cb6b=Math['abs'](_0x593bc4)%0x3c,_0x206c73=_0x593bc4>=0x0?'+':'-';return''+_0x206c73+_0x259409[_0x5266ba(0x1a0)]()[_0x5266ba(0x1c9)](0x2,'0')+_0x19cb6b[_0x5266ba(0x1a0)]()[_0x5266ba(0x1c9)](0x2,'0');}function formatTimestamp(){const _0x3da315=a150_0x3f28,_0xebe03d=new Date(),_0x1a5b8c=_0xebe03d[_0x3da315(0x1b5)](),_0x12ea13=(_0xebe03d[_0x3da315(0x1ce)]()+0x1)[_0x3da315(0x1a0)]()[_0x3da315(0x1c9)](0x2,'0'),_0x5b57b2=_0xebe03d['getDate']()[_0x3da315(0x1a0)]()[_0x3da315(0x1c9)](0x2,'0'),_0x1908b6=_0xebe03d[_0x3da315(0x1c8)]()[_0x3da315(0x1a0)]()[_0x3da315(0x1c9)](0x2,'0'),_0x29a3c6=_0xebe03d[_0x3da315(0x1a7)]()[_0x3da315(0x1a0)]()[_0x3da315(0x1c9)](0x2,'0'),_0x560ab2=_0xebe03d[_0x3da315(0x1b4)]()[_0x3da315(0x1a0)]()[_0x3da315(0x1c9)](0x2,'0'),_0x191bc9=_0xebe03d[_0x3da315(0x1d2)]()[_0x3da315(0x1a0)]()[_0x3da315(0x1c9)](0x3,'0'),_0x1477d7=getTimezoneOffset();return _0x1a5b8c+'-'+_0x12ea13+'-'+_0x5b57b2+'\x20'+_0x1908b6+':'+_0x29a3c6+':'+_0x560ab2+'.'+_0x191bc9+_0x1477d7;}function formatColoredLogEntry(_0x5997fb,_0x4ce84b){const _0x5e9067=a150_0x3f28,_0x2635c3=formatTimestamp(),_0x587317=_0x4ce84b[_0x5e9067(0x1a8)](safeStringify)[_0x5e9067(0x19d)]('\x20'),_0x1622d4=a150_0x5157cf[_0x5e9067(0x1af)](_0x2635c3);let _0x1977c4;switch(_0x5997fb){case _0x5e9067(0x1aa):_0x1977c4=a150_0x5157cf[_0x5e9067(0x1cc)]('['+_0x5997fb+']\x20');break;case _0x5e9067(0x1b8):_0x1977c4=a150_0x5157cf[_0x5e9067(0x1b6)]('['+_0x5997fb+']\x20');break;case'error':_0x1977c4=a150_0x5157cf[_0x5e9067(0x1da)]('['+_0x5997fb+']');break;case _0x5e9067(0x19c):_0x1977c4=a150_0x5157cf[_0x5e9067(0x1af)]('['+_0x5997fb+']');break;default:_0x1977c4='['+_0x5997fb+']';}return _0x1622d4+'\x20'+_0x1977c4+'\x20'+_0x587317;}export var LogLevel;(function(_0x262a76){const _0x284770=a150_0x3f28;_0x262a76[_0x262a76['TRACE']=-0x2]=_0x284770(0x1b9),_0x262a76[_0x262a76[_0x284770(0x1c1)]=-0x1]='DEBUG',_0x262a76[_0x262a76[_0x284770(0x1cb)]=0x0]=_0x284770(0x1cb),_0x262a76[_0x262a76['WARN']=0x1]=_0x284770(0x1ba),_0x262a76[_0x262a76[_0x284770(0x1a3)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a150_0x11da70(0x1d4)];['logDir'];[a150_0x11da70(0x1a6)];[a150_0x11da70(0x1d1)];constructor(_0x27a891=LogLevel[a150_0x11da70(0x1cb)],_0x249b19=![]){const _0x27a60c=a150_0x11da70;this[_0x27a60c(0x1b2)]=join(homedir(),_0x27a60c(0x1a5),'tdx',_0x27a60c(0x1d0)),this[_0x27a60c(0x1a6)]=_0x27a891,this[_0x27a60c(0x1d1)]=_0x249b19;}async[a150_0x11da70(0x19f)](){const _0x5ddd1a=a150_0x11da70;try{await mkdir(this[_0x5ddd1a(0x1b2)],{'recursive':!![]}),await this[_0x5ddd1a(0x1a1)]();const _0x5c9aa0=join(this['logDir'],_0x5ddd1a(0x1a9));this[_0x5ddd1a(0x1d4)]=createWriteStream(_0x5c9aa0,{'flags':'a'}),this['logStream']['on']('error',_0x3a0da1=>{const _0x451311=_0x5ddd1a;console['error'](_0x451311(0x1b3),_0x3a0da1[_0x451311(0x1c6)]);});}catch(_0x436fa6){console[_0x5ddd1a(0x1d7)](_0x5ddd1a(0x1ad),_0x436fa6);}}async[a150_0x11da70(0x1a1)](){const _0x542388=a150_0x11da70;try{const _0x107f27=await readdir(this[_0x542388(0x1b2)]),_0x1c566f=new Date()[_0x542388(0x1bb)]()['split']('T')[0x0];if(_0x107f27['includes'](_0x542388(0x1a9))){const _0x51699b=join(this[_0x542388(0x1b2)],_0x542388(0x1a9)),_0x4182d8=await stat(_0x51699b),_0x53779=new Date(_0x4182d8[_0x542388(0x19e)])[_0x542388(0x1bb)]()[_0x542388(0x1c2)]('T')[0x0];if(_0x53779<_0x1c566f){const _0x3f57e0=join(this[_0x542388(0x1b2)],_0x542388(0x1b7)+_0x53779+_0x542388(0x1db));await rename(_0x51699b,_0x3f57e0);}}const _0x3e13ea=await readdir(this[_0x542388(0x1b2)]),_0x11a73d=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x17bfa4=_0x3e13ea[_0x542388(0x1d8)](_0x129036=>_0x11a73d[_0x542388(0x1c7)](_0x129036));for(const _0x57d731 of _0x17bfa4){const _0x2206bd=join(this[_0x542388(0x1b2)],_0x57d731),_0x3b80be=join(this['logDir'],_0x57d731+_0x542388(0x1ac));try{await pipeline(createReadStream(_0x2206bd),createGzip(),createWriteStream(_0x3b80be)),await unlink(_0x2206bd);}catch(_0x225a4e){console[_0x542388(0x1d7)](_0x542388(0x1d3)+_0x57d731+':',_0x225a4e);}}}catch{}}[a150_0x11da70(0x19c)](..._0x3eafaa){const _0x587b60=a150_0x11da70;if(this[_0x587b60(0x1a6)]>LogLevel[_0x587b60(0x1c1)])return;const _0x55440a=formatColoredLogEntry(_0x587b60(0x19c),_0x3eafaa);this['logStream']?.[_0x587b60(0x1ae)](_0x55440a+'\x0a');}[a150_0x11da70(0x1c0)](..._0xffeef9){const _0x3563d1=a150_0x11da70;if(this[_0x3563d1(0x1a6)]>LogLevel[_0x3563d1(0x1b9)])return;const _0x28ba87=formatColoredLogEntry(_0x3563d1(0x1c0),_0xffeef9);this['logStream']?.[_0x3563d1(0x1ae)](_0x28ba87+'\x0a');}[a150_0x11da70(0x1aa)](..._0x45a3bc){const _0x279c5e=a150_0x11da70;if(this[_0x279c5e(0x1a6)]>LogLevel[_0x279c5e(0x1cb)])return;const _0x9f367a=formatColoredLogEntry('info',_0x45a3bc);!this[_0x279c5e(0x1d1)]&&console['log'](_0x9f367a),this[_0x279c5e(0x1d4)]?.[_0x279c5e(0x1ae)](_0x9f367a+'\x0a');}[a150_0x11da70(0x1b8)](..._0x366a7f){const _0x1163cb=a150_0x11da70;if(this[_0x1163cb(0x1a6)]>LogLevel[_0x1163cb(0x1ba)])return;const _0x254498=formatColoredLogEntry(_0x1163cb(0x1b8),_0x366a7f);!this[_0x1163cb(0x1d1)]&&console[_0x1163cb(0x1d7)](_0x254498),this[_0x1163cb(0x1d4)]?.[_0x1163cb(0x1ae)](_0x254498+'\x0a');}['error'](..._0x3a8d7b){const _0x4ee3a6=a150_0x11da70,_0x2a9728=formatColoredLogEntry(_0x4ee3a6(0x1d7),_0x3a8d7b);!this[_0x4ee3a6(0x1d1)]&&console[_0x4ee3a6(0x1d7)](_0x2a9728),this[_0x4ee3a6(0x1d4)]?.[_0x4ee3a6(0x1ae)](_0x2a9728+'\x0a');}async[a150_0x11da70(0x1bc)](){const _0x2a4662=a150_0x11da70;return this[_0x2a4662(0x1aa)](_0x2a4662(0x1ab)),new Promise(_0x1fa67a=>{const _0x5cc461=_0x2a4662;this[_0x5cc461(0x1d4)]?this[_0x5cc461(0x1d4)][_0x5cc461(0x1c3)](()=>{_0x1fa67a();}):_0x1fa67a();});}[a150_0x11da70(0x1a2)](){const _0x4a527a=a150_0x11da70;return join(this[_0x4a527a(0x1b2)],_0x4a527a(0x1a9));}}
1
+ const a150_0x4d1967=a150_0x2c0a;(function(_0xadc110,_0x57df54){const _0x561590=a150_0x2c0a,_0x4ae8e2=_0xadc110();while(!![]){try{const _0x38bfcb=parseInt(_0x561590(0x1f9))/0x1+-parseInt(_0x561590(0x1f0))/0x2*(parseInt(_0x561590(0x1d6))/0x3)+-parseInt(_0x561590(0x1f4))/0x4+-parseInt(_0x561590(0x1da))/0x5+-parseInt(_0x561590(0x1eb))/0x6+-parseInt(_0x561590(0x1ce))/0x7*(parseInt(_0x561590(0x1cf))/0x8)+parseInt(_0x561590(0x1cb))/0x9;if(_0x38bfcb===_0x57df54)break;else _0x4ae8e2['push'](_0x4ae8e2['shift']());}catch(_0x156388){_0x4ae8e2['push'](_0x4ae8e2['shift']());}}}(a150_0x53f7,0xdc39e));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a150_0x2c0a(_0x19a968,_0x12ba25){_0x19a968=_0x19a968-0x1c1;const _0x53f75a=a150_0x53f7();let _0x2c0a05=_0x53f75a[_0x19a968];return _0x2c0a05;}import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a150_0x655ab9 from'chalk';function a150_0x53f7(){const _0x5a077f=['map','174nILusp','gray','split','.gz','3588200MCSbJU','WARN','getDate','close','init','toString','cause','error','getMonth','logStream','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','fileOnly','logLevel','trace','getSeconds','write','getLogPath','1678638RhjDfJ','tdx','name','message','logs','25214mBNiBQ','padStart','Warning:\x20Error\x20writing\x20to\x20tdx.log:','warn','4005692dNbCpi','log','.cache','info','debug','923466KvHmFc','TRACE','mtime','DEBUG','ERROR','rotateOldLogs','getFullYear','test','getMinutes','INFO','string','getMilliseconds','35872155imfbbZ','join','tdx.log','413fcEliD','173176oOxfod','red','getTimezoneOffset','abs','stack','logDir'];a150_0x53f7=function(){return _0x5a077f;};return a150_0x53f7();}function safeStringify(_0xc78b67){const _0x283ac4=a150_0x2c0a;if(typeof _0xc78b67===_0x283ac4(0x1c9))return _0xc78b67;if(_0xc78b67 instanceof Error)return _0xc78b67[_0x283ac4(0x1d3)]||_0xc78b67[_0x283ac4(0x1ed)]+':\x20'+_0xc78b67[_0x283ac4(0x1ee)];try{return JSON['stringify'](_0xc78b67,(_0x4e0d4d,_0x3017e4)=>{const _0x579554=_0x283ac4;if(_0x3017e4 instanceof Error)return{'name':_0x3017e4[_0x579554(0x1ed)],'message':_0x3017e4['message'],'stack':_0x3017e4['stack'],'cause':_0x3017e4[_0x579554(0x1e0)]};return _0x3017e4;});}catch{return String(_0xc78b67);}}function getTimezoneOffset(){const _0x19140b=a150_0x2c0a,_0x35fd3c=-new Date()[_0x19140b(0x1d1)](),_0x48da6c=Math['floor'](Math[_0x19140b(0x1d2)](_0x35fd3c)/0x3c),_0x288c3d=Math[_0x19140b(0x1d2)](_0x35fd3c)%0x3c,_0x5c4ce0=_0x35fd3c>=0x0?'+':'-';return''+_0x5c4ce0+_0x48da6c[_0x19140b(0x1df)]()['padStart'](0x2,'0')+_0x288c3d[_0x19140b(0x1df)]()[_0x19140b(0x1f1)](0x2,'0');}function formatTimestamp(){const _0x265cb0=a150_0x2c0a,_0x16476d=new Date(),_0x231404=_0x16476d[_0x265cb0(0x1c5)](),_0x36dc5f=(_0x16476d[_0x265cb0(0x1e2)]()+0x1)['toString']()[_0x265cb0(0x1f1)](0x2,'0'),_0x8f8a0e=_0x16476d[_0x265cb0(0x1dc)]()['toString']()[_0x265cb0(0x1f1)](0x2,'0'),_0x3aab52=_0x16476d['getHours']()[_0x265cb0(0x1df)]()['padStart'](0x2,'0'),_0x2c5db1=_0x16476d[_0x265cb0(0x1c7)]()[_0x265cb0(0x1df)]()[_0x265cb0(0x1f1)](0x2,'0'),_0x1fa9b4=_0x16476d[_0x265cb0(0x1e8)]()[_0x265cb0(0x1df)]()[_0x265cb0(0x1f1)](0x2,'0'),_0x3197b5=_0x16476d[_0x265cb0(0x1ca)]()[_0x265cb0(0x1df)]()['padStart'](0x3,'0'),_0x47bae4=getTimezoneOffset();return _0x231404+'-'+_0x36dc5f+'-'+_0x8f8a0e+'\x20'+_0x3aab52+':'+_0x2c5db1+':'+_0x1fa9b4+'.'+_0x3197b5+_0x47bae4;}function formatColoredLogEntry(_0x5b943e,_0x5f4ad9){const _0x19f543=a150_0x2c0a,_0x47ead6=formatTimestamp(),_0x1560a6=_0x5f4ad9[_0x19f543(0x1d5)](safeStringify)[_0x19f543(0x1cc)]('\x20'),_0x20daf9=a150_0x655ab9['gray'](_0x47ead6);let _0x5bf1f9;switch(_0x5b943e){case _0x19f543(0x1f7):_0x5bf1f9=a150_0x655ab9['cyan']('['+_0x5b943e+']\x20');break;case _0x19f543(0x1f3):_0x5bf1f9=a150_0x655ab9['yellow']('['+_0x5b943e+']\x20');break;case _0x19f543(0x1e1):_0x5bf1f9=a150_0x655ab9[_0x19f543(0x1d0)]('['+_0x5b943e+']');break;case _0x19f543(0x1f8):_0x5bf1f9=a150_0x655ab9[_0x19f543(0x1d7)]('['+_0x5b943e+']');break;default:_0x5bf1f9='['+_0x5b943e+']';}return _0x20daf9+'\x20'+_0x5bf1f9+'\x20'+_0x1560a6;}export var LogLevel;(function(_0x2865b6){const _0x513d4f=a150_0x2c0a;_0x2865b6[_0x2865b6[_0x513d4f(0x1fa)]=-0x2]=_0x513d4f(0x1fa),_0x2865b6[_0x2865b6['DEBUG']=-0x1]=_0x513d4f(0x1c2),_0x2865b6[_0x2865b6['INFO']=0x0]=_0x513d4f(0x1c8),_0x2865b6[_0x2865b6[_0x513d4f(0x1db)]=0x1]=_0x513d4f(0x1db),_0x2865b6[_0x2865b6['ERROR']=0x2]=_0x513d4f(0x1c3);}(LogLevel||(LogLevel={})));export class TDXLogger{['logStream'];[a150_0x4d1967(0x1d4)];[a150_0x4d1967(0x1e6)];[a150_0x4d1967(0x1e5)];constructor(_0x2bcfbe=LogLevel['INFO'],_0x37bda2=![]){const _0x569199=a150_0x4d1967;this[_0x569199(0x1d4)]=join(homedir(),_0x569199(0x1f6),_0x569199(0x1ec),_0x569199(0x1ef)),this['logLevel']=_0x2bcfbe,this[_0x569199(0x1e5)]=_0x37bda2;}async[a150_0x4d1967(0x1de)](){const _0x35fbb9=a150_0x4d1967;try{await mkdir(this[_0x35fbb9(0x1d4)],{'recursive':!![]}),await this[_0x35fbb9(0x1c4)]();const _0x2d0886=join(this[_0x35fbb9(0x1d4)],'tdx.log');this['logStream']=createWriteStream(_0x2d0886,{'flags':'a'}),this['logStream']['on'](_0x35fbb9(0x1e1),_0x218aba=>{const _0x24e70f=_0x35fbb9;console[_0x24e70f(0x1e1)](_0x24e70f(0x1f2),_0x218aba[_0x24e70f(0x1ee)]);});}catch(_0x171382){console[_0x35fbb9(0x1e1)](_0x35fbb9(0x1e4),_0x171382);}}async['rotateOldLogs'](){const _0x338a7c=a150_0x4d1967;try{const _0x2e4a19=await readdir(this[_0x338a7c(0x1d4)]),_0x2443dc=new Date()['toISOString']()[_0x338a7c(0x1d8)]('T')[0x0];if(_0x2e4a19['includes'](_0x338a7c(0x1cd))){const _0x332bfe=join(this[_0x338a7c(0x1d4)],'tdx.log'),_0x1b6b99=await stat(_0x332bfe),_0x1b000d=new Date(_0x1b6b99[_0x338a7c(0x1c1)])['toISOString']()[_0x338a7c(0x1d8)]('T')[0x0];if(_0x1b000d<_0x2443dc){const _0xc2e95b=join(this[_0x338a7c(0x1d4)],'tdx-'+_0x1b000d+'.log');await rename(_0x332bfe,_0xc2e95b);}}const _0x20f0ab=await readdir(this[_0x338a7c(0x1d4)]),_0x49a381=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x2f1aff=_0x20f0ab['filter'](_0x3107b3=>_0x49a381[_0x338a7c(0x1c6)](_0x3107b3));for(const _0x50e8ba of _0x2f1aff){const _0x47de70=join(this['logDir'],_0x50e8ba),_0x24a411=join(this[_0x338a7c(0x1d4)],_0x50e8ba+_0x338a7c(0x1d9));try{await pipeline(createReadStream(_0x47de70),createGzip(),createWriteStream(_0x24a411)),await unlink(_0x47de70);}catch(_0x4a1a95){console[_0x338a7c(0x1e1)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x50e8ba+':',_0x4a1a95);}}}catch{}}[a150_0x4d1967(0x1f8)](..._0x2feee7){const _0x1c8bb1=a150_0x4d1967;if(this[_0x1c8bb1(0x1e6)]>LogLevel[_0x1c8bb1(0x1c2)])return;const _0x283d4d=formatColoredLogEntry(_0x1c8bb1(0x1f8),_0x2feee7);this[_0x1c8bb1(0x1e3)]?.[_0x1c8bb1(0x1e9)](_0x283d4d+'\x0a');}[a150_0x4d1967(0x1e7)](..._0x16be7e){const _0x1fe904=a150_0x4d1967;if(this[_0x1fe904(0x1e6)]>LogLevel[_0x1fe904(0x1fa)])return;const _0x1bc5d0=formatColoredLogEntry(_0x1fe904(0x1e7),_0x16be7e);this['logStream']?.[_0x1fe904(0x1e9)](_0x1bc5d0+'\x0a');}[a150_0x4d1967(0x1f7)](..._0x188242){const _0x62ae83=a150_0x4d1967;if(this[_0x62ae83(0x1e6)]>LogLevel[_0x62ae83(0x1c8)])return;const _0x3f466a=formatColoredLogEntry('info',_0x188242);!this['fileOnly']&&console[_0x62ae83(0x1f5)](_0x3f466a),this[_0x62ae83(0x1e3)]?.['write'](_0x3f466a+'\x0a');}['warn'](..._0x48bae1){const _0x31d109=a150_0x4d1967;if(this[_0x31d109(0x1e6)]>LogLevel[_0x31d109(0x1db)])return;const _0x5a91e6=formatColoredLogEntry(_0x31d109(0x1f3),_0x48bae1);!this[_0x31d109(0x1e5)]&&console[_0x31d109(0x1e1)](_0x5a91e6),this[_0x31d109(0x1e3)]?.[_0x31d109(0x1e9)](_0x5a91e6+'\x0a');}[a150_0x4d1967(0x1e1)](..._0x38c3d5){const _0xf7f293=a150_0x4d1967,_0x16bc4d=formatColoredLogEntry('error',_0x38c3d5);!this[_0xf7f293(0x1e5)]&&console[_0xf7f293(0x1e1)](_0x16bc4d),this['logStream']?.[_0xf7f293(0x1e9)](_0x16bc4d+'\x0a');}async[a150_0x4d1967(0x1dd)](){const _0x3ef7a2=a150_0x4d1967;return this[_0x3ef7a2(0x1f7)]('Proxy\x20session\x20ended'),new Promise(_0x5230b0=>{const _0x15a2fc=_0x3ef7a2;this[_0x15a2fc(0x1e3)]?this[_0x15a2fc(0x1e3)]['end'](()=>{_0x5230b0();}):_0x5230b0();});}[a150_0x4d1967(0x1ea)](){const _0x17c219=a150_0x4d1967;return join(this['logDir'],_0x17c219(0x1cd));}}
@@ -1 +1 @@
1
- (function(_0x5c8360,_0x3aeaee){const _0x21502f=a151_0x47f5,_0x336670=_0x5c8360();while(!![]){try{const _0x5ecf53=-parseInt(_0x21502f(0xf8))/0x1+parseInt(_0x21502f(0x109))/0x2+parseInt(_0x21502f(0x10e))/0x3*(parseInt(_0x21502f(0x10d))/0x4)+parseInt(_0x21502f(0x111))/0x5+parseInt(_0x21502f(0x118))/0x6*(-parseInt(_0x21502f(0xfd))/0x7)+parseInt(_0x21502f(0x10f))/0x8*(parseInt(_0x21502f(0x11a))/0x9)+-parseInt(_0x21502f(0x11b))/0xa;if(_0x5ecf53===_0x3aeaee)break;else _0x336670['push'](_0x336670['shift']());}catch(_0x467e19){_0x336670['push'](_0x336670['shift']());}}}(a151_0x4c94,0xa3439));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a151_0x2447ae from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function a151_0x47f5(_0x32bd47,_0x55321e){_0x32bd47=_0x32bd47-0xf3;const _0x4c9407=a151_0x4c94();let _0x47f531=_0x4c9407[_0x32bd47];return _0x47f531;}function getCacheFilePath(){const _0xdc300a=a151_0x47f5,_0x51c141=getCacheDir();return join(_0x51c141,_0xdc300a(0x114));}function readCache(){const _0x48216d=a151_0x47f5;try{const _0x27e286=getCacheFilePath(),_0x241f69=readFileSync(_0x27e286,_0x48216d(0xfa));return JSON['parse'](_0x241f69);}catch{return null;}}function writeCache(_0x15ac42){const _0x1a8eac=a151_0x47f5;try{const _0x9c017f=getCacheDir();mkdirSync(_0x9c017f,{'recursive':!![]});const _0x2c10a2={'lastCheck':new Date()[_0x1a8eac(0x108)](),'latestVersion':_0x15ac42},_0x2b6e2d=getCacheFilePath();writeFileSync(_0x2b6e2d,JSON[_0x1a8eac(0xf6)](_0x2c10a2,null,0x2),_0x1a8eac(0xfa));}catch{}}function isCacheValid(_0x313bba){const _0x462970=a151_0x47f5;if(!_0x313bba)return![];const _0x20ab16=new Date(_0x313bba[_0x462970(0xff)])[_0x462970(0x104)](),_0x502131=Date[_0x462970(0x10a)]();return _0x502131-_0x20ab16<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4c2cbf,_0x558362)=>{const _0x527d0b=a151_0x47f5,_0x40bda3=get(NPM_REGISTRY_URL,_0x108a9e=>{const _0x4138c5=a151_0x47f5;if(_0x108a9e[_0x4138c5(0xfe)]!==0xc8){clearTimeout(_0x5e8f26),_0x558362(new Error(_0x4138c5(0x119)+_0x108a9e[_0x4138c5(0xfe)]));return;}let _0x42fffc='';_0x108a9e['on'](_0x4138c5(0xf4),_0x34a2ba=>{_0x42fffc+=_0x34a2ba;}),_0x108a9e['on']('end',()=>{const _0x1f0424=_0x4138c5;clearTimeout(_0x5e8f26);try{const _0x3bdede=JSON[_0x1f0424(0x101)](_0x42fffc);if(!valid(_0x3bdede[_0x1f0424(0xfc)])){_0x558362(new Error(_0x1f0424(0x110)));return;}_0x4c2cbf(_0x3bdede[_0x1f0424(0xfc)]);}catch(_0x40cccb){_0x558362(_0x40cccb);}});})['on'](_0x527d0b(0x102),_0x2a724f=>{clearTimeout(_0x5e8f26),_0x558362(_0x2a724f);}),_0x5e8f26=setTimeout(()=>{const _0xfb4c0f=_0x527d0b;_0x40bda3[_0xfb4c0f(0x100)](),_0x558362(new Error(_0xfb4c0f(0xfb)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x23e97b){const _0x5210fb=a151_0x47f5;try{const _0x11cc7e=readCache();if(isCacheValid(_0x11cc7e)){const _0x33097f=gt(_0x11cc7e[_0x5210fb(0xf7)],_0x23e97b);return{'updateAvailable':_0x33097f,'currentVersion':_0x23e97b,'latestVersion':_0x11cc7e[_0x5210fb(0xf7)]};}const _0x47022e=await fetchLatestVersion();writeCache(_0x47022e);const _0x2f2e0b=gt(_0x47022e,_0x23e97b);return{'updateAvailable':_0x2f2e0b,'currentVersion':_0x23e97b,'latestVersion':_0x47022e};}catch{return null;}}function a151_0x4c94(){const _0x4d1d9c=['Run:','toISOString','738346iDhTsu','now','\x0aRun:\x20','green','5956VNEUsg','726aCsYIL','8vZUqIo','Invalid\x20version\x20format','3453585prVYHG','Update\x20available:','yellow','last_version_check','updateAvailable','\x0aUpdate\x20available:\x20','currentVersion','315786ukMmwk','HTTP\x20','6016527myawmZ','9822960tVTtLG','cyan','npm\x20install\x20-g\x20@treasuredata/tdx@latest','data','dim','stringify','latestVersion','174551yomAap','stderr','utf-8','Request\x20timeout','version','35XLWUUT','statusCode','lastCheck','destroy','parse','error','write','getTime','isTTY','gray'];a151_0x4c94=function(){return _0x4d1d9c;};return a151_0x4c94();}export function displayUpdateNotification(_0x2dbde9){const _0x5b418f=a151_0x47f5;if(!_0x2dbde9[_0x5b418f(0x115)])return;const _0x574aeb=process[_0x5b418f(0xf9)][_0x5b418f(0x105)]&&!process['env']['NO_COLOR'],_0x4aa6f3=_0x574aeb?a151_0x2447ae[_0x5b418f(0x106)]('→'):'→',_0x175dfd=_0x574aeb?a151_0x2447ae[_0x5b418f(0xf5)](_0x2dbde9[_0x5b418f(0x117)]):_0x2dbde9[_0x5b418f(0x117)],_0x400780=_0x574aeb?a151_0x2447ae[_0x5b418f(0x10c)](_0x2dbde9[_0x5b418f(0xf7)]):_0x2dbde9['latestVersion'],_0x233f4e=_0x574aeb?a151_0x2447ae[_0x5b418f(0x11c)](_0x5b418f(0xf3)):_0x5b418f(0xf3),_0x58aa10=_0x574aeb?'\x0a'+a151_0x2447ae[_0x5b418f(0x113)](_0x5b418f(0x112))+'\x20'+_0x175dfd+'\x20'+_0x4aa6f3+'\x20'+_0x400780+'\x0a'+a151_0x2447ae[_0x5b418f(0xf5)](_0x5b418f(0x107))+'\x20'+_0x233f4e+'\x0a':_0x5b418f(0x116)+_0x175dfd+'\x20'+_0x4aa6f3+'\x20'+_0x400780+_0x5b418f(0x10b)+_0x233f4e+'\x0a';process['stderr'][_0x5b418f(0x103)](_0x58aa10);}
1
+ (function(_0x1f3f63,_0x355e15){const _0x1838f2=a151_0x2f91,_0x395f82=_0x1f3f63();while(!![]){try{const _0x46f46c=parseInt(_0x1838f2(0xa9))/0x1*(-parseInt(_0x1838f2(0xb8))/0x2)+-parseInt(_0x1838f2(0xaf))/0x3*(parseInt(_0x1838f2(0xbc))/0x4)+-parseInt(_0x1838f2(0xa0))/0x5*(parseInt(_0x1838f2(0xc2))/0x6)+parseInt(_0x1838f2(0x9f))/0x7*(parseInt(_0x1838f2(0xa2))/0x8)+parseInt(_0x1838f2(0xa4))/0x9+-parseInt(_0x1838f2(0xc0))/0xa+parseInt(_0x1838f2(0x9e))/0xb;if(_0x46f46c===_0x355e15)break;else _0x395f82['push'](_0x395f82['shift']());}catch(_0x5cfc2a){_0x395f82['push'](_0x395f82['shift']());}}}(a151_0x8202,0xba320));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a151_0x2882e4 from'chalk';function a151_0x2f91(_0x465b70,_0x525290){_0x465b70=_0x465b70-0x9e;const _0x820251=a151_0x8202();let _0x2f917e=_0x820251[_0x465b70];return _0x2f917e;}import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x168fd9=getCacheDir();return join(_0x168fd9,'last_version_check');}function a151_0x8202(){const _0x1ba818=['14528840IJmPXl','stderr','78rNMuGK','end','cyan','46707034CeluEM','7vNjkib','358775tuRoNj','utf-8','448408oTCXEa','Update\x20available:','13639545WbmdHl','latestVersion','write','isTTY','npm\x20install\x20-g\x20@treasuredata/tdx@latest','1216218tFaneG','version','getTime','now','Run:','NO_COLOR','3qtnhvk','statusCode','updateAvailable','destroy','error','stringify','currentVersion','\x0aUpdate\x20available:\x20','data','2lhMFAN','yellow','lastCheck','HTTP\x20','5812308JJnkPm','Invalid\x20version\x20format','green','Request\x20timeout'];a151_0x8202=function(){return _0x1ba818;};return a151_0x8202();}function readCache(){const _0x58fe31=a151_0x2f91;try{const _0x22be1f=getCacheFilePath(),_0x3ff610=readFileSync(_0x22be1f,_0x58fe31(0xa1));return JSON['parse'](_0x3ff610);}catch{return null;}}function writeCache(_0x453ddb){const _0x464c2b=a151_0x2f91;try{const _0x25e1b6=getCacheDir();mkdirSync(_0x25e1b6,{'recursive':!![]});const _0x46ee71={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x453ddb},_0x435c66=getCacheFilePath();writeFileSync(_0x435c66,JSON[_0x464c2b(0xb4)](_0x46ee71,null,0x2),_0x464c2b(0xa1));}catch{}}function isCacheValid(_0x26e4c7){const _0x1463d5=a151_0x2f91;if(!_0x26e4c7)return![];const _0x5b8b67=new Date(_0x26e4c7[_0x1463d5(0xba)])[_0x1463d5(0xab)](),_0xb02420=Date[_0x1463d5(0xac)]();return _0xb02420-_0x5b8b67<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x286a2f,_0x982703)=>{const _0x387298=a151_0x2f91,_0x54d67a=get(NPM_REGISTRY_URL,_0xbbfffc=>{const _0x3170af=a151_0x2f91;if(_0xbbfffc[_0x3170af(0xb0)]!==0xc8){clearTimeout(_0x28c829),_0x982703(new Error(_0x3170af(0xbb)+_0xbbfffc[_0x3170af(0xb0)]));return;}let _0xd71215='';_0xbbfffc['on'](_0x3170af(0xb7),_0x32e808=>{_0xd71215+=_0x32e808;}),_0xbbfffc['on'](_0x3170af(0xc3),()=>{const _0x315c67=_0x3170af;clearTimeout(_0x28c829);try{const _0x1f7c4d=JSON['parse'](_0xd71215);if(!valid(_0x1f7c4d['version'])){_0x982703(new Error(_0x315c67(0xbd)));return;}_0x286a2f(_0x1f7c4d[_0x315c67(0xaa)]);}catch(_0x5aa4a3){_0x982703(_0x5aa4a3);}});})['on'](_0x387298(0xb3),_0x46ad8b=>{clearTimeout(_0x28c829),_0x982703(_0x46ad8b);}),_0x28c829=setTimeout(()=>{const _0x4e64c2=_0x387298;_0x54d67a[_0x4e64c2(0xb2)](),_0x982703(new Error(_0x4e64c2(0xbf)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x48448e){const _0x1f53ed=a151_0x2f91;try{const _0x4e5812=readCache();if(isCacheValid(_0x4e5812)){const _0x335b5d=gt(_0x4e5812[_0x1f53ed(0xa5)],_0x48448e);return{'updateAvailable':_0x335b5d,'currentVersion':_0x48448e,'latestVersion':_0x4e5812[_0x1f53ed(0xa5)]};}const _0x4f87b1=await fetchLatestVersion();writeCache(_0x4f87b1);const _0x366dd2=gt(_0x4f87b1,_0x48448e);return{'updateAvailable':_0x366dd2,'currentVersion':_0x48448e,'latestVersion':_0x4f87b1};}catch{return null;}}export function displayUpdateNotification(_0x574775){const _0x4b44a1=a151_0x2f91;if(!_0x574775[_0x4b44a1(0xb1)])return;const _0x4b6517=process[_0x4b44a1(0xc1)][_0x4b44a1(0xa7)]&&!process['env'][_0x4b44a1(0xae)],_0x3384fa=_0x4b6517?a151_0x2882e4['gray']('→'):'→',_0x2199dd=_0x4b6517?a151_0x2882e4['dim'](_0x574775[_0x4b44a1(0xb5)]):_0x574775[_0x4b44a1(0xb5)],_0x1f13cf=_0x4b6517?a151_0x2882e4[_0x4b44a1(0xbe)](_0x574775['latestVersion']):_0x574775[_0x4b44a1(0xa5)],_0x2df5cf=_0x4b6517?a151_0x2882e4[_0x4b44a1(0xc4)](_0x4b44a1(0xa8)):_0x4b44a1(0xa8),_0x36aed9=_0x4b6517?'\x0a'+a151_0x2882e4[_0x4b44a1(0xb9)](_0x4b44a1(0xa3))+'\x20'+_0x2199dd+'\x20'+_0x3384fa+'\x20'+_0x1f13cf+'\x0a'+a151_0x2882e4['dim'](_0x4b44a1(0xad))+'\x20'+_0x2df5cf+'\x0a':_0x4b44a1(0xb6)+_0x2199dd+'\x20'+_0x3384fa+'\x20'+_0x1f13cf+'\x0aRun:\x20'+_0x2df5cf+'\x0a';process['stderr'][_0x4b44a1(0xa6)](_0x36aed9);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.14.6",
3
+ "version": "0.14.7",
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": {