@treasuredata/tdx 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-client.js +1 -1
  6. package/dist/client/rate-limiter.js +1 -1
  7. package/dist/client/td-client.js +1 -1
  8. package/dist/client/trino-client.js +1 -1
  9. package/dist/client/workflow-client.js +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/api-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/context-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/job-command.js +1 -1
  19. package/dist/commands/llm-command.js +1 -1
  20. package/dist/commands/llm-proxy.js +1 -1
  21. package/dist/commands/parent-segment-command.js +1 -1
  22. package/dist/commands/profiles-command.js +1 -1
  23. package/dist/commands/query-command.js +1 -1
  24. package/dist/commands/segment-command.js +1 -1
  25. package/dist/commands/segment-create-command.js +1 -1
  26. package/dist/commands/segment-fields-command.js +1 -1
  27. package/dist/commands/segment-pwd-command.js +1 -1
  28. package/dist/commands/segment-update-command.js +1 -1
  29. package/dist/commands/segment-use-command.js +1 -1
  30. package/dist/commands/segments.js +1 -1
  31. package/dist/commands/show.js +1 -1
  32. package/dist/commands/tables.js +1 -1
  33. package/dist/commands/use-command.js +1 -1
  34. package/dist/commands/workflow-command.js +1 -1
  35. package/dist/core/auth.js +1 -1
  36. package/dist/core/config.js +1 -1
  37. package/dist/core/global-context.js +1 -1
  38. package/dist/core/profile.js +1 -1
  39. package/dist/core/project-config.js +1 -1
  40. package/dist/core/session.js +1 -1
  41. package/dist/index.js +1 -1
  42. package/dist/proxy/anthropic-adapter.d.ts +27 -3
  43. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  44. package/dist/proxy/anthropic-adapter.js +1 -1
  45. package/dist/proxy/anthropic-adapter.js.map +1 -1
  46. package/dist/proxy/server.d.ts.map +1 -1
  47. package/dist/proxy/server.js +1 -1
  48. package/dist/proxy/server.js.map +1 -1
  49. package/dist/proxy/session-cache.js +1 -1
  50. package/dist/sdk/api.js +1 -1
  51. package/dist/sdk/database.js +1 -1
  52. package/dist/sdk/errors.js +1 -1
  53. package/dist/sdk/index.js +1 -1
  54. package/dist/sdk/job.js +1 -1
  55. package/dist/sdk/llm.js +1 -1
  56. package/dist/sdk/query.js +1 -1
  57. package/dist/sdk/segment.js +1 -1
  58. package/dist/sdk/table.js +1 -1
  59. package/dist/sdk/workflow.js +1 -1
  60. package/dist/types/endpoints.js +1 -1
  61. package/dist/types/index.js +1 -1
  62. package/dist/utils/agent-ref-parser.js +1 -1
  63. package/dist/utils/chat-cache.js +1 -1
  64. package/dist/utils/colors.js +1 -1
  65. package/dist/utils/command-output.js +1 -1
  66. package/dist/utils/constants.js +1 -1
  67. package/dist/utils/file-permissions.js +1 -1
  68. package/dist/utils/format-detector.js +1 -1
  69. package/dist/utils/formatters.js +1 -1
  70. package/dist/utils/json-loader.js +1 -1
  71. package/dist/utils/model-aliases.js +1 -1
  72. package/dist/utils/option-validation.js +1 -1
  73. package/dist/utils/port.js +1 -1
  74. package/dist/utils/process.js +1 -1
  75. package/dist/utils/prompt.js +1 -1
  76. package/dist/utils/segment-path-parser.js +1 -1
  77. package/dist/utils/segment-ref-parser.js +1 -1
  78. package/dist/utils/spinner.js +1 -1
  79. package/dist/utils/sql-parser.js +1 -1
  80. package/dist/utils/sse-parser.js +1 -1
  81. package/dist/utils/string-utils.js +1 -1
  82. package/dist/utils/table-ref-parser.js +1 -1
  83. package/dist/utils/tdx-logger.js +1 -1
  84. package/dist/utils/tree-formatter.js +1 -1
  85. package/dist/utils/version-check.js +1 -1
  86. package/dist/utils/workflow-utils.js +1 -1
  87. package/package.json +1 -1
@@ -1 +1 @@
1
- const a68_0x178d1d=a68_0x29ee;(function(_0x139489,_0x588ec2){const _0x49c086=a68_0x29ee,_0x202dc7=_0x139489();while(!![]){try{const _0x12f5d3=-parseInt(_0x49c086(0x121))/0x1+parseInt(_0x49c086(0x129))/0x2+parseInt(_0x49c086(0x128))/0x3*(parseInt(_0x49c086(0x126))/0x4)+-parseInt(_0x49c086(0x124))/0x5*(-parseInt(_0x49c086(0x120))/0x6)+parseInt(_0x49c086(0x12c))/0x7*(-parseInt(_0x49c086(0x122))/0x8)+parseInt(_0x49c086(0x123))/0x9*(-parseInt(_0x49c086(0x125))/0xa)+-parseInt(_0x49c086(0x12b))/0xb*(parseInt(_0x49c086(0x127))/0xc);if(_0x12f5d3===_0x588ec2)break;else _0x202dc7['push'](_0x202dc7['shift']());}catch(_0x1b0553){_0x202dc7['push'](_0x202dc7['shift']());}}}(a68_0x24be,0x8a20b));const MODEL_ALIASES={'haiku':a68_0x178d1d(0x12d),'sonnet':a68_0x178d1d(0x12a)};function a68_0x24be(){const _0x20d701=['2389581UFBNiD','934918UHgtZI','claude-4.5-sonnet','121jwfnrc','1026403sMDDwh','claude-4.5-haiku','toLowerCase','60jbYvgy','129928ieAGtC','56AIKHkB','81CVETHG','429960sGEPrG','295370SVnQsc','4YeGfHA','148332HqSdmY'];a68_0x24be=function(){return _0x20d701;};return a68_0x24be();}export function extractModelAlias(_0x5dbbce){const _0x424321=a68_0x178d1d,_0x22c9ac=_0x5dbbce['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x22c9ac)return _0x22c9ac[0x1][_0x424321(0x11f)]();return _0x5dbbce;}function a68_0x29ee(_0x16cc58,_0x1278af){const _0x24be71=a68_0x24be();return a68_0x29ee=function(_0x29ee6a,_0x4ac74d){_0x29ee6a=_0x29ee6a-0x11f;let _0x3cfeed=_0x24be71[_0x29ee6a];return _0x3cfeed;},a68_0x29ee(_0x16cc58,_0x1278af);}export function resolveModelAlias(_0x59bd2d){return MODEL_ALIASES[_0x59bd2d['toLowerCase']()]||_0x59bd2d;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a68_0x480721=a68_0x4225;(function(_0x4cc833,_0x211398){const _0x18449a=a68_0x4225,_0x113ba3=_0x4cc833();while(!![]){try{const _0x5a423c=-parseInt(_0x18449a(0x129))/0x1+-parseInt(_0x18449a(0x123))/0x2+-parseInt(_0x18449a(0x12b))/0x3*(-parseInt(_0x18449a(0x12a))/0x4)+parseInt(_0x18449a(0x126))/0x5*(-parseInt(_0x18449a(0x12c))/0x6)+parseInt(_0x18449a(0x122))/0x7+-parseInt(_0x18449a(0x121))/0x8*(-parseInt(_0x18449a(0x124))/0x9)+parseInt(_0x18449a(0x128))/0xa;if(_0x5a423c===_0x211398)break;else _0x113ba3['push'](_0x113ba3['shift']());}catch(_0x353620){_0x113ba3['push'](_0x113ba3['shift']());}}}(a68_0x3526,0x88b2d));const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':a68_0x480721(0x125)};export function extractModelAlias(_0x29c62b){const _0x5b2115=a68_0x480721,_0x1d8848=_0x29c62b[_0x5b2115(0x127)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x1d8848)return _0x1d8848[0x1][_0x5b2115(0x12d)]();return _0x29c62b;}export function resolveModelAlias(_0x41b356){const _0x48c71a=a68_0x480721;return MODEL_ALIASES[_0x41b356[_0x48c71a(0x12d)]()]||_0x41b356;}function a68_0x4225(_0x351a8d,_0x445064){const _0x352678=a68_0x3526();return a68_0x4225=function(_0x422516,_0x2b87ba){_0x422516=_0x422516-0x121;let _0x5318d1=_0x352678[_0x422516];return _0x5318d1;},a68_0x4225(_0x351a8d,_0x445064);}export function getModelAliases(){return{...MODEL_ALIASES};}function a68_0x3526(){const _0x1f4a80=['toLowerCase','392944fMNqRx','6253282kmgwSp','1807914qTQBIR','9JrYmNE','claude-4.5-sonnet','120srWGsW','match','16458050DhavAe','1020143PTcGcg','24MNNBuy','488496xixogv','270306EZngOJ'];a68_0x3526=function(){return _0x1f4a80;};return a68_0x3526();}
@@ -1 +1 @@
1
- function a69_0x19b9(){const _0x3b5eb3=['isInteger','56346dHGcfr','248rscRdh','8qJeDCX','720785AQBzIC','781reMvJU','.\x20Must\x20be\x20a\x20number.','63lIsgVX','5SxkZAh','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','6001536owAcFs','3969455cNaMSO','355928ellUTC','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20integer.','138468UfTliB','486610DgfSpv'];a69_0x19b9=function(){return _0x3b5eb3;};return a69_0x19b9();}(function(_0x52310d,_0x4ccdbe){const _0x3acbbe=a69_0x36c4,_0x2a0336=_0x52310d();while(!![]){try{const _0x45b703=-parseInt(_0x3acbbe(0x16e))/0x1+-parseInt(_0x3acbbe(0x177))/0x2+-parseInt(_0x3acbbe(0x16b))/0x3*(parseInt(_0x3acbbe(0x16c))/0x4)+parseInt(_0x3acbbe(0x172))/0x5*(parseInt(_0x3acbbe(0x175))/0x6)+-parseInt(_0x3acbbe(0x176))/0x7*(-parseInt(_0x3acbbe(0x16d))/0x8)+parseInt(_0x3acbbe(0x171))/0x9*(parseInt(_0x3acbbe(0x169))/0xa)+-parseInt(_0x3acbbe(0x16f))/0xb*(-parseInt(_0x3acbbe(0x168))/0xc);if(_0x45b703===_0x4ccdbe)break;else _0x2a0336['push'](_0x2a0336['shift']());}catch(_0x46f240){_0x2a0336['push'](_0x2a0336['shift']());}}}(a69_0x19b9,0xa21b0));function a69_0x36c4(_0x56aab1,_0x2a82de){const _0x19b930=a69_0x19b9();return a69_0x36c4=function(_0x36c420,_0x7a45ca){_0x36c420=_0x36c420-0x167;let _0x341a6e=_0x19b930[_0x36c420];return _0x341a6e;},a69_0x36c4(_0x56aab1,_0x2a82de);}export function validateLimitOption(_0x49e2d9){const _0x458c06=a69_0x36c4;if(!Number[_0x458c06(0x16a)](_0x49e2d9))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x49e2d9+_0x458c06(0x174)};if(_0x49e2d9<=0x0)return{'isValid':![],'error':_0x458c06(0x173)+_0x49e2d9+_0x458c06(0x167)};return{'isValid':!![],'value':_0x49e2d9};}export function validateTimeoutOption(_0x479c8b,_0x2a39de=0x1e){const _0x17d4cf=a69_0x36c4;if(_0x479c8b===undefined)return{'isValid':!![],'value':_0x2a39de};const _0x4b4f2e=typeof _0x479c8b==='number'?_0x479c8b:parseFloat(_0x479c8b);if(isNaN(_0x4b4f2e))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x479c8b+_0x17d4cf(0x170)};if(_0x4b4f2e<=0x0)return{'isValid':![],'error':_0x17d4cf(0x178)+_0x4b4f2e+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x4b4f2e};}
1
+ (function(_0xabd6d1,_0x5b2ad5){const _0x474d25=a69_0x240a,_0x5c4d13=_0xabd6d1();while(!![]){try{const _0x5bbe0e=parseInt(_0x474d25(0xda))/0x1+parseInt(_0x474d25(0xe0))/0x2*(parseInt(_0x474d25(0xe6))/0x3)+-parseInt(_0x474d25(0xea))/0x4*(-parseInt(_0x474d25(0xde))/0x5)+-parseInt(_0x474d25(0xe4))/0x6*(-parseInt(_0x474d25(0xe1))/0x7)+-parseInt(_0x474d25(0xdc))/0x8+parseInt(_0x474d25(0xdb))/0x9+-parseInt(_0x474d25(0xe9))/0xa*(parseInt(_0x474d25(0xe3))/0xb);if(_0x5bbe0e===_0x5b2ad5)break;else _0x5c4d13['push'](_0x5c4d13['shift']());}catch(_0x208445){_0x5c4d13['push'](_0x5c4d13['shift']());}}}(a69_0x3bdb,0xa3501));function a69_0x3bdb(){const _0x44015e=['1963880QCDTWd','isInteger','5DWCmmM','.\x20Must\x20be\x20a\x20number.','46giTpEN','21XZukJJ','Invalid\x20limit\x20value:\x20','22epubKJ','2635368BVGmMn','Invalid\x20timeout\x20value:\x20','102AjFSZV','.\x20Must\x20be\x20a\x20positive\x20number.','number','10085170dmWZlD','1146916fzTgAY','.\x20Must\x20be\x20an\x20integer.','1294243znXcdH','288090EqTZLz'];a69_0x3bdb=function(){return _0x44015e;};return a69_0x3bdb();}function a69_0x240a(_0x1335a5,_0x220569){const _0x3bdbf3=a69_0x3bdb();return a69_0x240a=function(_0x240a29,_0xadd990){_0x240a29=_0x240a29-0xd9;let _0x519df9=_0x3bdbf3[_0x240a29];return _0x519df9;},a69_0x240a(_0x1335a5,_0x220569);}export function validateLimitOption(_0x126655){const _0x426185=a69_0x240a;if(!Number[_0x426185(0xdd)](_0x126655))return{'isValid':![],'error':_0x426185(0xe2)+_0x126655+_0x426185(0xd9)};if(_0x126655<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x126655+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x126655};}export function validateTimeoutOption(_0x1ac8b3,_0x16bcc4=0x1e){const _0x253689=a69_0x240a;if(_0x1ac8b3===undefined)return{'isValid':!![],'value':_0x16bcc4};const _0x8d80cd=typeof _0x1ac8b3===_0x253689(0xe8)?_0x1ac8b3:parseFloat(_0x1ac8b3);if(isNaN(_0x8d80cd))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x1ac8b3+_0x253689(0xdf)};if(_0x8d80cd<=0x0)return{'isValid':![],'error':_0x253689(0xe5)+_0x8d80cd+_0x253689(0xe7)};return{'isValid':!![],'value':_0x8d80cd};}
@@ -1 +1 @@
1
- function a70_0xc4ee(_0x2ed312,_0x172ab4){const _0x3e71e2=a70_0x3e71();return a70_0xc4ee=function(_0xc4ee52,_0x32907f){_0xc4ee52=_0xc4ee52-0x10c;let _0x279f03=_0x3e71e2[_0xc4ee52];return _0x279f03;},a70_0xc4ee(_0x2ed312,_0x172ab4);}function a70_0x3e71(){const _0x141290=['16165930xcvjXt','3060848DWNfPy','\x20and\x20','5LLduiG','6465740kNKbhR','EADDRINUSE','124618bGYLRb','0.0.0.0','No\x20available\x20port\x20found\x20between\x20','122542kPHQGP','12vedBVS','117XZgFXy','30LLlkss','2323180GIPNMz','535520vQASfp','close','code','listen'];a70_0x3e71=function(){return _0x141290;};return a70_0x3e71();}(function(_0x3f2a0d,_0x2f0674){const _0x3f8489=a70_0xc4ee,_0x46d709=_0x3f2a0d();while(!![]){try{const _0x5e9a29=parseInt(_0x3f8489(0x111))/0x1+-parseInt(_0x3f8489(0x114))/0x2*(parseInt(_0x3f8489(0x117))/0x3)+parseInt(_0x3f8489(0x118))/0x4*(parseInt(_0x3f8489(0x10e))/0x5)+parseInt(_0x3f8489(0x115))/0x6*(-parseInt(_0x3f8489(0x10c))/0x7)+parseInt(_0x3f8489(0x119))/0x8*(-parseInt(_0x3f8489(0x116))/0x9)+parseInt(_0x3f8489(0x10f))/0xa+parseInt(_0x3f8489(0x11d))/0xb;if(_0x5e9a29===_0x2f0674)break;else _0x46d709['push'](_0x46d709['shift']());}catch(_0x24a623){_0x46d709['push'](_0x46d709['shift']());}}}(a70_0x3e71,0x7151f));import{createServer}from'node:net';export async function isPortAvailable(_0x566df6){return new Promise(_0x4ec8ba=>{const _0x1dae9c=a70_0xc4ee,_0x143de5=createServer();_0x143de5['once']('error',_0x241635=>{const _0x519cbb=a70_0xc4ee;_0x241635[_0x519cbb(0x11b)]===_0x519cbb(0x110)?_0x4ec8ba(![]):_0x4ec8ba(![]);}),_0x143de5['once']('listening',()=>{const _0x1c6100=a70_0xc4ee;_0x143de5[_0x1c6100(0x11a)](),_0x4ec8ba(!![]);}),_0x143de5[_0x1dae9c(0x11c)](_0x566df6,_0x1dae9c(0x112));});}export async function findAvailablePort(_0x459257=0xfa0,_0x58656e=0x64){const _0x125320=a70_0xc4ee;for(let _0x2cebe1=0x0;_0x2cebe1<_0x58656e;_0x2cebe1++){const _0x479214=_0x459257+_0x2cebe1;if(await isPortAvailable(_0x479214))return _0x479214;}throw new Error(_0x125320(0x113)+_0x459257+_0x125320(0x10d)+(_0x459257+_0x58656e-0x1));}
1
+ (function(_0x1c7685,_0x4c6da8){const _0x5cb5c2=a70_0x750f,_0x4c1e7a=_0x1c7685();while(!![]){try{const _0x3c861f=-parseInt(_0x5cb5c2(0x106))/0x1+parseInt(_0x5cb5c2(0x111))/0x2*(parseInt(_0x5cb5c2(0x102))/0x3)+parseInt(_0x5cb5c2(0x10b))/0x4+-parseInt(_0x5cb5c2(0x10c))/0x5*(-parseInt(_0x5cb5c2(0x10d))/0x6)+parseInt(_0x5cb5c2(0x107))/0x7*(-parseInt(_0x5cb5c2(0x10a))/0x8)+-parseInt(_0x5cb5c2(0x105))/0x9*(parseInt(_0x5cb5c2(0x10f))/0xa)+parseInt(_0x5cb5c2(0x109))/0xb*(-parseInt(_0x5cb5c2(0x108))/0xc);if(_0x3c861f===_0x4c6da8)break;else _0x4c1e7a['push'](_0x4c1e7a['shift']());}catch(_0x611ee6){_0x4c1e7a['push'](_0x4c1e7a['shift']());}}}(a70_0xdd43,0x2e0e8));import{createServer}from'node:net';function a70_0xdd43(){const _0x54ffdf=['listen','2xXpkaE','close','933159Izwgjf','listening','No\x20available\x20port\x20found\x20between\x20','9biZDTK','25475fuLSiH','133QRHnPl','516iSBKoo','42658dnpgRb','110056sAKEoF','887884tlbjCD','5MITHUy','1898934aPQbHo','\x20and\x20','2072530JnzEiR'];a70_0xdd43=function(){return _0x54ffdf;};return a70_0xdd43();}function a70_0x750f(_0x2c205d,_0xdeb6e9){const _0xdd4310=a70_0xdd43();return a70_0x750f=function(_0x750f92,_0x22c120){_0x750f92=_0x750f92-0x101;let _0x4ec427=_0xdd4310[_0x750f92];return _0x4ec427;},a70_0x750f(_0x2c205d,_0xdeb6e9);}export async function isPortAvailable(_0x25236b){return new Promise(_0xab9b3f=>{const _0x3e5390=a70_0x750f,_0x408d75=createServer();_0x408d75['once']('error',_0x34c613=>{_0x34c613['code']==='EADDRINUSE'?_0xab9b3f(![]):_0xab9b3f(![]);}),_0x408d75['once'](_0x3e5390(0x103),()=>{const _0x3d6f51=_0x3e5390;_0x408d75[_0x3d6f51(0x101)](),_0xab9b3f(!![]);}),_0x408d75[_0x3e5390(0x110)](_0x25236b,'0.0.0.0');});}export async function findAvailablePort(_0x2ca7ff=0xfa0,_0x4c8492=0x64){const _0x60a7a0=a70_0x750f;for(let _0x1e6a3e=0x0;_0x1e6a3e<_0x4c8492;_0x1e6a3e++){const _0x6245dc=_0x2ca7ff+_0x1e6a3e;if(await isPortAvailable(_0x6245dc))return _0x6245dc;}throw new Error(_0x60a7a0(0x104)+_0x2ca7ff+_0x60a7a0(0x10e)+(_0x2ca7ff+_0x4c8492-0x1));}
@@ -1 +1 @@
1
- const a71_0x174e98=a71_0x25ea;(function(_0x4d55bd,_0x1140ef){const _0x5cd692=a71_0x25ea,_0xaf3ad2=_0x4d55bd();while(!![]){try{const _0x382b40=parseInt(_0x5cd692(0x1db))/0x1+parseInt(_0x5cd692(0x1e6))/0x2*(parseInt(_0x5cd692(0x1cb))/0x3)+parseInt(_0x5cd692(0x1e5))/0x4*(parseInt(_0x5cd692(0x1dc))/0x5)+parseInt(_0x5cd692(0x1d9))/0x6+-parseInt(_0x5cd692(0x1c9))/0x7*(parseInt(_0x5cd692(0x1e1))/0x8)+-parseInt(_0x5cd692(0x1d5))/0x9*(-parseInt(_0x5cd692(0x1d2))/0xa)+-parseInt(_0x5cd692(0x1d3))/0xb;if(_0x382b40===_0x1140ef)break;else _0xaf3ad2['push'](_0xaf3ad2['shift']());}catch(_0x1408cd){_0xaf3ad2['push'](_0xaf3ad2['shift']());}}}(a71_0x22a4,0xdd5df));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a71_0x174e98(0x1da),a71_0x174e98(0x1eb),'sh',a71_0x174e98(0x1c8),a71_0x174e98(0x1c6),'tcsh','csh',a71_0x174e98(0x1dd),'pwsh',a71_0x174e98(0x1d6),'nu',a71_0x174e98(0x1d8),a71_0x174e98(0x1c2),a71_0x174e98(0x1ec)]);function a71_0x25ea(_0x283956,_0x321752){const _0x22a472=a71_0x22a4();return a71_0x25ea=function(_0x25ea59,_0x3a8b41){_0x25ea59=_0x25ea59-0x1c2;let _0xea70a5=_0x22a472[_0x25ea59];return _0xea70a5;},a71_0x25ea(_0x283956,_0x321752);}function getProcessInfoWindows(_0x4065d7){const _0x557562=a71_0x174e98;try{const _0xcc3d21=execSync(_0x557562(0x1c3)+_0x4065d7+_0x557562(0x1d0),{'encoding':_0x557562(0x1cd),'windowsHide':!![]})[_0x557562(0x1cf)](),_0x229573=_0xcc3d21[_0x557562(0x1cc)]('\x0a')['filter'](_0x253797=>_0x253797['trim']());if(_0x229573[_0x557562(0x1ed)]<0x2)return null;const _0x1eb3d1=_0x229573[_0x229573[_0x557562(0x1ed)]-0x1]['split'](',');if(_0x1eb3d1[_0x557562(0x1ed)]<0x3)return null;const _0x64c1b7=_0x1eb3d1[0x1]?.['trim']()||'',_0x6ec60f=parseInt(_0x1eb3d1[0x2]?.[_0x557562(0x1cf)]()||'0',0xa);if(isNaN(_0x6ec60f)||!_0x64c1b7)return null;return{'pid':_0x4065d7,'ppid':_0x6ec60f,'comm':_0x64c1b7[_0x557562(0x1ce)](/\.exe$/i,'')};}catch(_0x41dda5){return process[_0x557562(0x1e2)][_0x557562(0x1e8)]&&console['error']('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x4065d7+_0x557562(0x1e3),_0x41dda5),null;}}function getProcessInfoPosix(_0x2bc92d){const _0x296e07=a71_0x174e98;try{const _0x1fd05e=execSync(_0x296e07(0x1e0)+_0x2bc92d+_0x296e07(0x1c7),{'encoding':'utf-8'})['trim'](),[_0x255c18,..._0x2bf9b8]=_0x1fd05e[_0x296e07(0x1cc)](/\s+/),_0x1d6286=parseInt(_0x255c18,0xa),_0x117e57=_0x2bf9b8['join']('\x20');if(isNaN(_0x1d6286))return null;return{'pid':_0x2bc92d,'ppid':_0x1d6286,'comm':_0x117e57};}catch(_0x4c045d){return process[_0x296e07(0x1e2)][_0x296e07(0x1e8)]&&console[_0x296e07(0x1e9)](_0x296e07(0x1e4)+_0x2bc92d+_0x296e07(0x1e7),_0x4c045d),null;}}function getProcessInfo(_0xf75b56){const _0xf6467f=a71_0x174e98;if(process[_0xf6467f(0x1ee)]===_0xf6467f(0x1d4))return getProcessInfoWindows(_0xf75b56);return getProcessInfoPosix(_0xf75b56);}function a71_0x22a4(){const _0x1c49ca=['Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','ps\x20-p\x20','16ZocXpD','env','\x20on\x20Windows:','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','12xoezBL','2XxbYhK','\x20on\x20POSIX:','DEBUG','error','pid','zsh','xonsh','length','platform','elvish','wmic\x20process\x20where\x20ProcessId=','has','ppid','ksh','\x20-o\x20ppid=,comm=','fish','4327414kXIaIc','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','1702797kdzcDK','split','utf-8','replace','trim','\x20get\x20ParentProcessId,Name\x20/format:csv','comm','4360MPhALy','26369035JyVORZ','win32','23076IhHLtv','powershell','kill','ion','7295406UyBLeP','bash','798181uQzZLC','1401205qZmtbS','dash','toLowerCase'];a71_0x22a4=function(){return _0x1c49ca;};return a71_0x22a4();}function isShell(_0x1b0fd5){const _0x47a455=a71_0x174e98,_0x474415=_0x1b0fd5[_0x47a455(0x1ce)](/^-/,'')[_0x47a455(0x1cc)]('/')['pop']()||'';return SHELL_NAMES[_0x47a455(0x1c4)](_0x474415[_0x47a455(0x1de)]());}let cachedShellPID;function findShellPID(){const _0x11d13b=a71_0x174e98;let _0x3ece0c=process['ppid'];const _0x5e38e1=0xa;let _0x40d43e=0x0;while(_0x40d43e<_0x5e38e1){const _0x2ec3de=getProcessInfo(_0x3ece0c);if(!_0x2ec3de){process[_0x11d13b(0x1e2)][_0x11d13b(0x1e8)]&&console['error'](_0x11d13b(0x1df)+_0x3ece0c+',\x20using\x20fallback');break;}if(isShell(_0x2ec3de[_0x11d13b(0x1d1)]))return _0x2ec3de['pid'];if(_0x2ec3de['ppid']===0x0||_0x2ec3de[_0x11d13b(0x1c5)]===0x1){if(isShell(_0x2ec3de[_0x11d13b(0x1d1)]))return _0x2ec3de[_0x11d13b(0x1ea)];break;}_0x3ece0c=_0x2ec3de['ppid'],_0x40d43e++;}return process[_0x11d13b(0x1e2)][_0x11d13b(0x1e8)]&&console[_0x11d13b(0x1e9)](_0x11d13b(0x1ca)),process[_0x11d13b(0x1c5)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x23575e){const _0x6eef5d=a71_0x174e98;try{return process[_0x6eef5d(0x1d7)](_0x23575e,0x0),!![];}catch{return![];}}
1
+ const a71_0x5f2dec=a71_0x5f04;function a71_0x5f04(_0x237d41,_0x558eec){const _0x30b121=a71_0x30b1();return a71_0x5f04=function(_0x5f040d,_0x59544c){_0x5f040d=_0x5f040d-0xdc;let _0x2a834c=_0x30b121[_0x5f040d];return _0x2a834c;},a71_0x5f04(_0x237d41,_0x558eec);}(function(_0x5c5a80,_0x22dc43){const _0x1fa96e=a71_0x5f04,_0xf0db97=_0x5c5a80();while(!![]){try{const _0x364330=-parseInt(_0x1fa96e(0xe8))/0x1*(-parseInt(_0x1fa96e(0xe9))/0x2)+parseInt(_0x1fa96e(0xf0))/0x3*(parseInt(_0x1fa96e(0xe1))/0x4)+parseInt(_0x1fa96e(0xec))/0x5*(parseInt(_0x1fa96e(0xef))/0x6)+parseInt(_0x1fa96e(0xf5))/0x7+parseInt(_0x1fa96e(0xe5))/0x8+parseInt(_0x1fa96e(0xed))/0x9*(parseInt(_0x1fa96e(0xf3))/0xa)+-parseInt(_0x1fa96e(0x102))/0xb;if(_0x364330===_0x22dc43)break;else _0xf0db97['push'](_0xf0db97['shift']());}catch(_0x59850b){_0xf0db97['push'](_0xf0db97['shift']());}}}(a71_0x30b1,0xdfe4d));import{execSync}from'node:child_process';const SHELL_NAMES=new Set(['bash','zsh','sh',a71_0x5f2dec(0x101),a71_0x5f2dec(0xeb),a71_0x5f2dec(0xea),'csh','dash',a71_0x5f2dec(0xe7),a71_0x5f2dec(0xfd),'nu',a71_0x5f2dec(0xf8),'elvish',a71_0x5f2dec(0xe2)]);function getProcessInfoWindows(_0x52622c){const _0x75a9ce=a71_0x5f2dec;try{const _0x58c163=execSync(_0x75a9ce(0xf9)+_0x52622c+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x75a9ce(0xfe),'windowsHide':!![]})[_0x75a9ce(0xdc)](),_0x296b69=_0x58c163[_0x75a9ce(0xf2)]('\x0a')['filter'](_0x1f0faf=>_0x1f0faf[_0x75a9ce(0xdc)]());if(_0x296b69[_0x75a9ce(0xe0)]<0x2)return null;const _0x571e20=_0x296b69[_0x296b69[_0x75a9ce(0xe0)]-0x1]['split'](',');if(_0x571e20['length']<0x3)return null;const _0x204dab=_0x571e20[0x1]?.['trim']()||'',_0x14f718=parseInt(_0x571e20[0x2]?.[_0x75a9ce(0xdc)]()||'0',0xa);if(isNaN(_0x14f718)||!_0x204dab)return null;return{'pid':_0x52622c,'ppid':_0x14f718,'comm':_0x204dab[_0x75a9ce(0x100)](/\.exe$/i,'')};}catch(_0x57a380){return process[_0x75a9ce(0xe3)][_0x75a9ce(0xf7)]&&console[_0x75a9ce(0xe4)](_0x75a9ce(0xee)+_0x52622c+_0x75a9ce(0xfc),_0x57a380),null;}}function getProcessInfoPosix(_0x4eed0b){const _0x21d57a=a71_0x5f2dec;try{const _0x1695df=execSync('ps\x20-p\x20'+_0x4eed0b+_0x21d57a(0xf6),{'encoding':_0x21d57a(0xfe)})['trim'](),[_0x51b3c1,..._0x1a3871]=_0x1695df[_0x21d57a(0xf2)](/\s+/),_0x536661=parseInt(_0x51b3c1,0xa),_0x440897=_0x1a3871[_0x21d57a(0xdf)]('\x20');if(isNaN(_0x536661))return null;return{'pid':_0x4eed0b,'ppid':_0x536661,'comm':_0x440897};}catch(_0x1345ea){return process[_0x21d57a(0xe3)][_0x21d57a(0xf7)]&&console[_0x21d57a(0xe4)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x4eed0b+_0x21d57a(0xfb),_0x1345ea),null;}}function getProcessInfo(_0xe6c011){const _0x5b0cc1=a71_0x5f2dec;if(process[_0x5b0cc1(0xdd)]==='win32')return getProcessInfoWindows(_0xe6c011);return getProcessInfoPosix(_0xe6c011);}function isShell(_0x5d3ff3){const _0x442c04=a71_0x5f2dec,_0x3beda9=_0x5d3ff3['replace'](/^-/,'')[_0x442c04(0xf2)]('/')[_0x442c04(0xf4)]()||'';return SHELL_NAMES[_0x442c04(0xe6)](_0x3beda9['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x392c65=a71_0x5f2dec;let _0x5bb661=process[_0x392c65(0xf1)];const _0x460b00=0xa;let _0x51efe4=0x0;while(_0x51efe4<_0x460b00){const _0x3d78f3=getProcessInfo(_0x5bb661);if(!_0x3d78f3){process[_0x392c65(0xe3)][_0x392c65(0xf7)]&&console[_0x392c65(0xe4)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x5bb661+_0x392c65(0xfa));break;}if(isShell(_0x3d78f3[_0x392c65(0xde)]))return _0x3d78f3[_0x392c65(0xff)];if(_0x3d78f3[_0x392c65(0xf1)]===0x0||_0x3d78f3[_0x392c65(0xf1)]===0x1){if(isShell(_0x3d78f3[_0x392c65(0xde)]))return _0x3d78f3[_0x392c65(0xff)];break;}_0x5bb661=_0x3d78f3['ppid'],_0x51efe4++;}return process['env']['DEBUG']&&console[_0x392c65(0xe4)](_0x392c65(0x103)),process[_0x392c65(0xf1)];}function a71_0x30b1(){const _0x5e7479=['join','length','668zAQsfg','xonsh','env','error','11483976qwUEIE','has','pwsh','1141OZHLmU','414kEKafK','tcsh','ksh','5JUOCgI','14994deBhIw','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','7562154BNvfXJ','19374ZXqmVB','ppid','split','5180NgeEOu','pop','10299170ieSnxo','\x20-o\x20ppid=,comm=','DEBUG','ion','wmic\x20process\x20where\x20ProcessId=',',\x20using\x20fallback','\x20on\x20POSIX:','\x20on\x20Windows:','powershell','utf-8','pid','replace','fish','59705338JeFEvC','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','trim','platform','comm'];a71_0x30b1=function(){return _0x5e7479;};return a71_0x30b1();}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3003af){try{return process['kill'](_0x3003af,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a72_0x1680(){const _0x25655e=['12uqGjGI','212571uAwwdp','stdout','18GQflwA','2450063IACODC','yes','createInterface','230zYtRVf','5532730NGgxGV','question','1182idUaIU','toLowerCase','stdin','32xzSAaY','close','4632200mfqDFB','\x20(y/N):\x20','278973lQuZNu','6050319roZZiz','2562kqobHr'];a72_0x1680=function(){return _0x25655e;};return a72_0x1680();}(function(_0x1cd404,_0x2d21e5){const _0x244b62=a72_0x4ccd,_0x252c9c=_0x1cd404();while(!![]){try{const _0xd66205=-parseInt(_0x244b62(0x1e1))/0x1*(parseInt(_0x244b62(0x1ec))/0x2)+parseInt(_0x244b62(0x1e3))/0x3*(-parseInt(_0x244b62(0x1ef))/0x4)+parseInt(_0x244b62(0x1ea))/0x5+parseInt(_0x244b62(0x1e5))/0x6*(parseInt(_0x244b62(0x1e6))/0x7)+parseInt(_0x244b62(0x1dd))/0x8+parseInt(_0x244b62(0x1df))/0x9*(parseInt(_0x244b62(0x1e9))/0xa)+-parseInt(_0x244b62(0x1e0))/0xb*(parseInt(_0x244b62(0x1e2))/0xc);if(_0xd66205===_0x2d21e5)break;else _0x252c9c['push'](_0x252c9c['shift']());}catch(_0x4c09cd){_0x252c9c['push'](_0x252c9c['shift']());}}}(a72_0x1680,0xc795e));function a72_0x4ccd(_0x42e1fa,_0x27467a){const _0x1680cc=a72_0x1680();return a72_0x4ccd=function(_0x4ccd4b,_0x578776){_0x4ccd4b=_0x4ccd4b-0x1dd;let _0x5cf3e0=_0x1680cc[_0x4ccd4b];return _0x5cf3e0;},a72_0x4ccd(_0x42e1fa,_0x27467a);}import*as a72_0x3a7e3a from'readline';export async function confirm(_0x24e261){const _0x244074=a72_0x4ccd,_0x46f4e3=a72_0x3a7e3a[_0x244074(0x1e8)]({'input':process[_0x244074(0x1ee)],'output':process[_0x244074(0x1e4)]});return new Promise(_0xd21a87=>{const _0x37919c=_0x244074;_0x46f4e3[_0x37919c(0x1eb)](_0x24e261+_0x37919c(0x1de),_0x45e11a=>{const _0x2143f2=_0x37919c;_0x46f4e3[_0x2143f2(0x1f0)](),_0xd21a87(_0x45e11a[_0x2143f2(0x1ed)]()==='y'||_0x45e11a[_0x2143f2(0x1ed)]()===_0x2143f2(0x1e7));});});}
1
+ (function(_0xc30db7,_0xfd336a){const _0x3350fd=a72_0x5118,_0x4896d5=_0xc30db7();while(!![]){try{const _0x9c0157=parseInt(_0x3350fd(0x1b3))/0x1*(parseInt(_0x3350fd(0x1ad))/0x2)+parseInt(_0x3350fd(0x1b7))/0x3*(-parseInt(_0x3350fd(0x1a7))/0x4)+-parseInt(_0x3350fd(0x1b8))/0x5*(parseInt(_0x3350fd(0x1b2))/0x6)+parseInt(_0x3350fd(0x1ab))/0x7+parseInt(_0x3350fd(0x1ac))/0x8+-parseInt(_0x3350fd(0x1a9))/0x9+-parseInt(_0x3350fd(0x1aa))/0xa*(-parseInt(_0x3350fd(0x1ae))/0xb);if(_0x9c0157===_0xfd336a)break;else _0x4896d5['push'](_0x4896d5['shift']());}catch(_0x55709e){_0x4896d5['push'](_0x4896d5['shift']());}}}(a72_0x561e,0x8f0f7));import*as a72_0x1eeb4a from'readline';function a72_0x5118(_0x48b8ea,_0x2523eb){const _0x561eb9=a72_0x561e();return a72_0x5118=function(_0x5118f6,_0x4f37b4){_0x5118f6=_0x5118f6-0x1a7;let _0x148be4=_0x561eb9[_0x5118f6];return _0x148be4;},a72_0x5118(_0x48b8ea,_0x2523eb);}export async function confirm(_0x420b4c){const _0x46b9fe=a72_0x5118,_0x4c18bc=a72_0x1eeb4a[_0x46b9fe(0x1af)]({'input':process[_0x46b9fe(0x1a8)],'output':process[_0x46b9fe(0x1b1)]});return new Promise(_0x5aecf6=>{const _0x411814=_0x46b9fe;_0x4c18bc['question'](_0x420b4c+_0x411814(0x1b5),_0x4b7624=>{const _0xa6534b=_0x411814;_0x4c18bc[_0xa6534b(0x1b6)](),_0x5aecf6(_0x4b7624[_0xa6534b(0x1b4)]()==='y'||_0x4b7624[_0xa6534b(0x1b4)]()===_0xa6534b(0x1b0));});});}function a72_0x561e(){const _0x22bf00=['9361629FCVQOJ','2722730sKsGGl','1845529cxEngF','6447864kAjNdq','16CakXBO','11XfHsle','createInterface','yes','stdout','402mZlhGg','103804ARLxXz','toLowerCase','\x20(y/N):\x20','close','3171iMNllG','31925cXEyMd','448MhjYfF','stdin'];a72_0x561e=function(){return _0x22bf00;};return a72_0x561e();}
@@ -1 +1 @@
1
- (function(_0x2d440d,_0x70dd18){const _0x1c4f12=a73_0x499f,_0xffb935=_0x2d440d();while(!![]){try{const _0x53d955=parseInt(_0x1c4f12(0x1c4))/0x1+parseInt(_0x1c4f12(0x1dc))/0x2*(-parseInt(_0x1c4f12(0x1da))/0x3)+-parseInt(_0x1c4f12(0x1cd))/0x4+-parseInt(_0x1c4f12(0x1d6))/0x5*(parseInt(_0x1c4f12(0x1cb))/0x6)+-parseInt(_0x1c4f12(0x1c5))/0x7+parseInt(_0x1c4f12(0x1d4))/0x8*(parseInt(_0x1c4f12(0x1d7))/0x9)+parseInt(_0x1c4f12(0x1db))/0xa;if(_0x53d955===_0x70dd18)break;else _0xffb935['push'](_0xffb935['shift']());}catch(_0x1370c8){_0xffb935['push'](_0xffb935['shift']());}}}(a73_0x4c58,0x8b7ad));export function parsePath(_0x33ac38){const _0x5658ae=a73_0x499f;if(!_0x33ac38||_0x33ac38[_0x5658ae(0x1c6)]()==='')throw new Error(_0x5658ae(0x1d5));const _0x47be3b=_0x33ac38['trim']();if(_0x47be3b==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x33ac38};const _0x3f0c21=_0x47be3b['startsWith']('/')?_0x47be3b['substring'](0x1):_0x47be3b,_0x4ea318=_0x3f0c21[_0x5658ae(0x1c7)]('/')[_0x5658ae(0x1d2)](_0x430561=>_0x430561!=='');if(_0x4ea318['length']===0x0)throw new Error(_0x5658ae(0x1d9));const _0xdd8c87=_0x47be3b[_0x5658ae(0x1ce)]('/')||!isRelativePathSegment(_0x4ea318[0x0]);for(const _0xb00c1c of _0x4ea318){validatePathSegment(_0xb00c1c);}return{'segments':_0x4ea318,'isAbsolute':_0xdd8c87,'raw':_0x33ac38};}function isRelativePathSegment(_0x94f0ec){return _0x94f0ec==='.'||_0x94f0ec==='..';}function validatePathSegment(_0x3570f6){if(_0x3570f6==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x3570f6==='.'||_0x3570f6==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x3570f6))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x3570f6);if(_0x3570f6!==_0x3570f6['trim']()){}}function a73_0x4c58(){const _0x41a5dd=['Cannot\x20navigate\x20above\x20root','segments','209130Bapziu','pop','2538864NbQPUH','startsWith','push','slice','Path\x20attempts\x20to\x20navigate\x20above\x20root','filter','isAbsolute','197528WnBXsK','Path\x20cannot\x20be\x20empty','60skWSEr','18FfaoTy','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','48537ZxZAGY','11926640fEWJEF','6bJROxq','join','length','468372VjfPKq','263172xsCsoe','trim','split','raw'];a73_0x4c58=function(){return _0x41a5dd;};return a73_0x4c58();}function a73_0x499f(_0x288cd5,_0x593ac4){const _0x4c580d=a73_0x4c58();return a73_0x499f=function(_0x499fa5,_0x597b95){_0x499fa5=_0x499fa5-0x1c3;let _0x591386=_0x4c580d[_0x499fa5];return _0x591386;},a73_0x499f(_0x288cd5,_0x593ac4);}export function validatePath(_0x1de480){const _0x359a47=a73_0x499f;if(_0x1de480[_0x359a47(0x1ca)][_0x359a47(0x1c3)]===0x0&&!_0x1de480[_0x359a47(0x1d3)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x1de480[_0x359a47(0x1d3)]){if(_0x1de480[_0x359a47(0x1ca)][0x0]==='..')throw new Error(_0x359a47(0x1d8));let _0x25b739=0x0;for(const _0x383209 of _0x1de480['segments']){if(_0x383209==='..'){if(_0x25b739===0x0)throw new Error(_0x359a47(0x1d1));_0x25b739--;}else _0x383209!=='.'&&_0x25b739++;}}}export function joinPaths(_0x46d84f,_0x336fac){const _0x56a963=a73_0x499f;if(!_0x46d84f||_0x46d84f==='/')return _0x336fac;if(!_0x336fac||_0x336fac==='.')return _0x46d84f;if(_0x336fac['startsWith']('/'))return _0x336fac;const _0x380ded=parsePath(_0x46d84f),_0x213b5d=parsePath(_0x336fac),_0x1bb676=[..._0x380ded[_0x56a963(0x1ca)]];for(const _0x493c2f of _0x213b5d['segments']){if(_0x493c2f==='.')continue;else{if(_0x493c2f==='..'){if(_0x1bb676[_0x56a963(0x1c3)]===0x0)throw new Error(_0x56a963(0x1c9));_0x1bb676['pop']();}else _0x1bb676[_0x56a963(0x1cf)](_0x493c2f);}}const _0x32cb46=_0x1bb676['join']('/');return _0x380ded['raw'][_0x56a963(0x1ce)]('/')?'/'+_0x32cb46:_0x32cb46;}export function normalizePath(_0x59ec44){const _0x125a83=a73_0x499f,_0x55d1d5=parsePath(_0x59ec44),_0x57b0fc=[];for(const _0x30912c of _0x55d1d5[_0x125a83(0x1ca)]){if(_0x30912c==='.')continue;else{if(_0x30912c==='..'){if(_0x57b0fc[_0x125a83(0x1c3)]===0x0){if(_0x55d1d5['isAbsolute'])throw new Error(_0x125a83(0x1c9));_0x57b0fc[_0x125a83(0x1cf)]('..');}else _0x57b0fc[_0x57b0fc[_0x125a83(0x1c3)]-0x1]==='..'?_0x57b0fc['push']('..'):_0x57b0fc[_0x125a83(0x1cc)]();}else _0x57b0fc['push'](_0x30912c);}}if(_0x57b0fc['length']===0x0)return _0x55d1d5[_0x125a83(0x1d3)]?'/':'.';const _0x44ab05=_0x57b0fc[_0x125a83(0x1dd)]('/');return _0x55d1d5[_0x125a83(0x1c8)][_0x125a83(0x1ce)]('/')?'/'+_0x44ab05:_0x44ab05;}export function getParentPath(_0x41586d){const _0x1a1cdc=a73_0x499f,_0x64c989=parsePath(_0x41586d);if(_0x64c989[_0x1a1cdc(0x1ca)]['length']<=0x1)return'/';const _0x8244ed=_0x64c989[_0x1a1cdc(0x1ca)][_0x1a1cdc(0x1d0)](0x0,-0x1)['join']('/');return _0x64c989[_0x1a1cdc(0x1c8)]['startsWith']('/')?'/'+_0x8244ed:_0x8244ed;}export function getBaseName(_0x1fa268){const _0x5b91d9=parsePath(_0x1fa268);return _0x5b91d9['segments'][_0x5b91d9['segments']['length']-0x1]||'';}export function isChildPath(_0x59fbd7,_0x316e73){const _0x43fd75=a73_0x499f,_0x166205=parsePath(_0x59fbd7),_0x4c0c81=parsePath(_0x316e73);if(_0x166205[_0x43fd75(0x1ca)]['length']<=_0x4c0c81['segments'][_0x43fd75(0x1c3)])return![];for(let _0xcfe378=0x0;_0xcfe378<_0x4c0c81[_0x43fd75(0x1ca)][_0x43fd75(0x1c3)];_0xcfe378++){if(_0x166205[_0x43fd75(0x1ca)][_0xcfe378]!==_0x4c0c81[_0x43fd75(0x1ca)][_0xcfe378])return![];}return!![];}export function splitPath(_0x5877ab){const _0x53d2da=a73_0x499f,_0xf72321=parsePath(_0x5877ab);if(_0xf72321['segments'][_0x53d2da(0x1c3)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0xf72321[_0x53d2da(0x1ca)]['length']===0x1)return{'parent':_0xf72321[_0x53d2da(0x1ca)][0x0]};return{'parent':_0xf72321[_0x53d2da(0x1ca)][0x0],'child':_0xf72321[_0x53d2da(0x1ca)][_0x53d2da(0x1d0)](0x1)[_0x53d2da(0x1dd)]('/')};}
1
+ (function(_0x456cc3,_0xf74c5){const _0x573ca9=a73_0x291c,_0x4d5539=_0x456cc3();while(!![]){try{const _0xcdcb2e=-parseInt(_0x573ca9(0x168))/0x1*(parseInt(_0x573ca9(0x16c))/0x2)+-parseInt(_0x573ca9(0x161))/0x3+-parseInt(_0x573ca9(0x164))/0x4*(-parseInt(_0x573ca9(0x162))/0x5)+-parseInt(_0x573ca9(0x15d))/0x6+parseInt(_0x573ca9(0x166))/0x7*(-parseInt(_0x573ca9(0x154))/0x8)+-parseInt(_0x573ca9(0x15c))/0x9*(parseInt(_0x573ca9(0x16e))/0xa)+parseInt(_0x573ca9(0x155))/0xb;if(_0xcdcb2e===_0xf74c5)break;else _0x4d5539['push'](_0x4d5539['shift']());}catch(_0x4a3ebc){_0x4d5539['push'](_0x4d5539['shift']());}}}(a73_0x2a1d,0x8a5a0));export function parsePath(_0x5b46eb){const _0x4c737=a73_0x291c;if(!_0x5b46eb||_0x5b46eb[_0x4c737(0x16a)]()==='')throw new Error(_0x4c737(0x165));const _0x44a423=_0x5b46eb[_0x4c737(0x16a)]();if(_0x44a423==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5b46eb};const _0x2f0496=_0x44a423[_0x4c737(0x172)]('/')?_0x44a423[_0x4c737(0x157)](0x1):_0x44a423,_0x4e1d8f=_0x2f0496[_0x4c737(0x169)]('/')[_0x4c737(0x16d)](_0x5bec5c=>_0x5bec5c!=='');if(_0x4e1d8f['length']===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x43c3e7=_0x44a423['startsWith']('/')||!isRelativePathSegment(_0x4e1d8f[0x0]);for(const _0x3894d4 of _0x4e1d8f){validatePathSegment(_0x3894d4);}return{'segments':_0x4e1d8f,'isAbsolute':_0x43c3e7,'raw':_0x5b46eb};}function isRelativePathSegment(_0x5cc45b){return _0x5cc45b==='.'||_0x5cc45b==='..';}function validatePathSegment(_0x29a6fc){const _0x86b387=a73_0x291c;if(_0x29a6fc==='')throw new Error(_0x86b387(0x15f));if(_0x29a6fc==='.'||_0x29a6fc==='..')return;if(/[\x00-\x1F\x7F]/[_0x86b387(0x170)](_0x29a6fc))throw new Error(_0x86b387(0x156)+_0x29a6fc);if(_0x29a6fc!==_0x29a6fc[_0x86b387(0x16a)]()){}}export function validatePath(_0x22cbe9){const _0x10c5c8=a73_0x291c;if(_0x22cbe9[_0x10c5c8(0x167)][_0x10c5c8(0x15e)]===0x0&&!_0x22cbe9[_0x10c5c8(0x159)])throw new Error(_0x10c5c8(0x15a));if(_0x22cbe9[_0x10c5c8(0x159)]){if(_0x22cbe9[_0x10c5c8(0x167)][0x0]==='..')throw new Error(_0x10c5c8(0x16b));let _0x136022=0x0;for(const _0x20281c of _0x22cbe9['segments']){if(_0x20281c==='..'){if(_0x136022===0x0)throw new Error(_0x10c5c8(0x163));_0x136022--;}else _0x20281c!=='.'&&_0x136022++;}}}function a73_0x291c(_0x5434ac,_0x1e82d3){const _0x2a1d4a=a73_0x2a1d();return a73_0x291c=function(_0x291ce3,_0x1786cf){_0x291ce3=_0x291ce3-0x153;let _0x25bb01=_0x2a1d4a[_0x291ce3];return _0x25bb01;},a73_0x291c(_0x5434ac,_0x1e82d3);}export function joinPaths(_0x4ea564,_0x209974){const _0xeb4ead=a73_0x291c;if(!_0x4ea564||_0x4ea564==='/')return _0x209974;if(!_0x209974||_0x209974==='.')return _0x4ea564;if(_0x209974[_0xeb4ead(0x172)]('/'))return _0x209974;const _0x23003d=parsePath(_0x4ea564),_0x447624=parsePath(_0x209974),_0x1bb2aa=[..._0x23003d[_0xeb4ead(0x167)]];for(const _0x272690 of _0x447624[_0xeb4ead(0x167)]){if(_0x272690==='.')continue;else{if(_0x272690==='..'){if(_0x1bb2aa[_0xeb4ead(0x15e)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x1bb2aa[_0xeb4ead(0x15b)]();}else _0x1bb2aa[_0xeb4ead(0x158)](_0x272690);}}const _0x50c5f8=_0x1bb2aa[_0xeb4ead(0x171)]('/');return _0x23003d[_0xeb4ead(0x16f)]['startsWith']('/')?'/'+_0x50c5f8:_0x50c5f8;}export function normalizePath(_0x2ae544){const _0x3d77b0=a73_0x291c,_0x9e0226=parsePath(_0x2ae544),_0x1bb04c=[];for(const _0x1e3cd5 of _0x9e0226[_0x3d77b0(0x167)]){if(_0x1e3cd5==='.')continue;else{if(_0x1e3cd5==='..'){if(_0x1bb04c['length']===0x0){if(_0x9e0226[_0x3d77b0(0x159)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x1bb04c['push']('..');}else _0x1bb04c[_0x1bb04c[_0x3d77b0(0x15e)]-0x1]==='..'?_0x1bb04c[_0x3d77b0(0x158)]('..'):_0x1bb04c[_0x3d77b0(0x15b)]();}else _0x1bb04c[_0x3d77b0(0x158)](_0x1e3cd5);}}if(_0x1bb04c[_0x3d77b0(0x15e)]===0x0)return _0x9e0226[_0x3d77b0(0x159)]?'/':'.';const _0x1d56b0=_0x1bb04c[_0x3d77b0(0x171)]('/');return _0x9e0226[_0x3d77b0(0x16f)][_0x3d77b0(0x172)]('/')?'/'+_0x1d56b0:_0x1d56b0;}export function getParentPath(_0x2594c5){const _0x230310=a73_0x291c,_0x3f5196=parsePath(_0x2594c5);if(_0x3f5196['segments'][_0x230310(0x15e)]<=0x1)return'/';const _0x21e58f=_0x3f5196[_0x230310(0x167)]['slice'](0x0,-0x1)[_0x230310(0x171)]('/');return _0x3f5196[_0x230310(0x16f)][_0x230310(0x172)]('/')?'/'+_0x21e58f:_0x21e58f;}function a73_0x2a1d(){const _0x4cd999=['Relative\x20path\x20cannot\x20be\x20empty','pop','81QcFsTj','58344PrDPNX','length','Path\x20segment\x20cannot\x20be\x20empty','slice','347340WXpQdX','141070brUpFP','Path\x20attempts\x20to\x20navigate\x20above\x20root','56zbVoLk','Path\x20cannot\x20be\x20empty','169421XqAbJt','segments','164yGhOoQ','split','trim','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','12374GdNfVB','filter','1223090mcmFht','raw','test','join','startsWith','Cannot\x20split\x20empty\x20path','64VmPoeJ','28668959KnGfdH','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','substring','push','isAbsolute'];a73_0x2a1d=function(){return _0x4cd999;};return a73_0x2a1d();}export function getBaseName(_0x346fea){const _0x2a672c=a73_0x291c,_0x1228c7=parsePath(_0x346fea);return _0x1228c7['segments'][_0x1228c7['segments'][_0x2a672c(0x15e)]-0x1]||'';}export function isChildPath(_0x2aed87,_0x71f647){const _0x31ed8f=a73_0x291c,_0x57f5b5=parsePath(_0x2aed87),_0x5d20eb=parsePath(_0x71f647);if(_0x57f5b5['segments'][_0x31ed8f(0x15e)]<=_0x5d20eb['segments'][_0x31ed8f(0x15e)])return![];for(let _0xb7a176=0x0;_0xb7a176<_0x5d20eb[_0x31ed8f(0x167)][_0x31ed8f(0x15e)];_0xb7a176++){if(_0x57f5b5[_0x31ed8f(0x167)][_0xb7a176]!==_0x5d20eb[_0x31ed8f(0x167)][_0xb7a176])return![];}return!![];}export function splitPath(_0x4b982f){const _0x29f88d=a73_0x291c,_0x1f409d=parsePath(_0x4b982f);if(_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x15e)]===0x0)throw new Error(_0x29f88d(0x153));if(_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x15e)]===0x1)return{'parent':_0x1f409d[_0x29f88d(0x167)][0x0]};return{'parent':_0x1f409d[_0x29f88d(0x167)][0x0],'child':_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x160)](0x1)['join']('/')};}
@@ -1 +1 @@
1
- function a74_0x34ca(_0x2d7cfc,_0x3d5a71){const _0xdf01c=a74_0xdf01();return a74_0x34ca=function(_0x34ca6a,_0x287818){_0x34ca6a=_0x34ca6a-0x1c0;let _0x118225=_0xdf01c[_0x34ca6a];return _0x118225;},a74_0x34ca(_0x2d7cfc,_0x3d5a71);}function a74_0xdf01(){const _0x5003bf=['80296urjqif','604194mlgSXN','1197182bnFTjb','9579105Mzycux','.\x20Parent\x20name\x20cannot\x20be\x20empty','20ZWeTam','4117660heraLx','48dIymIl','.\x20Child\x20name\x20cannot\x20be\x20empty','substring','Invalid\x20segment\x20reference\x20format:\x20','2cDBqwi','274160DWitqN','940332oNIpcv'];a74_0xdf01=function(){return _0x5003bf;};return a74_0xdf01();}(function(_0xf4ccd6,_0x51748b){const _0x5e1e85=a74_0x34ca,_0x1a736e=_0xf4ccd6();while(!![]){try{const _0x555a32=parseInt(_0x5e1e85(0x1c6))/0x1*(parseInt(_0x5e1e85(0x1c3))/0x2)+parseInt(_0x5e1e85(0x1c7))/0x3+-parseInt(_0x5e1e85(0x1c4))/0x4+-parseInt(_0x5e1e85(0x1cc))/0x5+parseInt(_0x5e1e85(0x1c5))/0x6+-parseInt(_0x5e1e85(0x1c8))/0x7*(parseInt(_0x5e1e85(0x1cd))/0x8)+parseInt(_0x5e1e85(0x1c9))/0x9*(parseInt(_0x5e1e85(0x1cb))/0xa);if(_0x555a32===_0x51748b)break;else _0x1a736e['push'](_0x1a736e['shift']());}catch(_0x37edd4){_0x1a736e['push'](_0x1a736e['shift']());}}}(a74_0xdf01,0x9e6ae));export function parseSegmentRef(_0x2eece4){const _0x4828ce=a74_0x34ca,_0x222b47=_0x2eece4['indexOf']('/');if(_0x222b47===-0x1)return{'parentId':_0x2eece4};if(_0x222b47===0x0)throw new Error(_0x4828ce(0x1c2)+_0x2eece4+_0x4828ce(0x1ca));const _0x1bf464=_0x2eece4[_0x4828ce(0x1c1)](0x0,_0x222b47),_0x4e0814=_0x2eece4[_0x4828ce(0x1c1)](_0x222b47+0x1);if(_0x4e0814==='')throw new Error(_0x4828ce(0x1c2)+_0x2eece4+_0x4828ce(0x1c0));return{'parentId':_0x1bf464,'childId':_0x4e0814};}
1
+ (function(_0x3b879b,_0x1b06d7){const _0xf4c4a9=a74_0x54f7,_0x85072c=_0x3b879b();while(!![]){try{const _0x268e79=-parseInt(_0xf4c4a9(0x18a))/0x1*(-parseInt(_0xf4c4a9(0x18d))/0x2)+-parseInt(_0xf4c4a9(0x187))/0x3+parseInt(_0xf4c4a9(0x18f))/0x4*(parseInt(_0xf4c4a9(0x188))/0x5)+parseInt(_0xf4c4a9(0x193))/0x6+-parseInt(_0xf4c4a9(0x186))/0x7+-parseInt(_0xf4c4a9(0x18b))/0x8+-parseInt(_0xf4c4a9(0x18e))/0x9*(parseInt(_0xf4c4a9(0x189))/0xa);if(_0x268e79===_0x1b06d7)break;else _0x85072c['push'](_0x85072c['shift']());}catch(_0x68d79a){_0x85072c['push'](_0x85072c['shift']());}}}(a74_0xc1a6,0x99b37));function a74_0x54f7(_0x2dd3bd,_0x5ed58e){const _0xc1a622=a74_0xc1a6();return a74_0x54f7=function(_0x54f78b,_0x4dc9fb){_0x54f78b=_0x54f78b-0x186;let _0x2948d5=_0xc1a622[_0x54f78b];return _0x2948d5;},a74_0x54f7(_0x2dd3bd,_0x5ed58e);}export function parseSegmentRef(_0x580feb){const _0x1d0c9e=a74_0x54f7,_0x1418b3=_0x580feb[_0x1d0c9e(0x18c)]('/');if(_0x1418b3===-0x1)return{'parentId':_0x580feb};if(_0x1418b3===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x580feb+_0x1d0c9e(0x191));const _0x367e5a=_0x580feb[_0x1d0c9e(0x192)](0x0,_0x1418b3),_0x5a2942=_0x580feb['substring'](_0x1418b3+0x1);if(_0x5a2942==='')throw new Error(_0x1d0c9e(0x190)+_0x580feb+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x367e5a,'childId':_0x5a2942};}function a74_0xc1a6(){const _0x397948=['13865oyJDgO','40DksHfq','9493ogHRQR','8167704EfQWhS','indexOf','138YzCWiP','45855FzQFep','916eAzBDl','Invalid\x20segment\x20reference\x20format:\x20','.\x20Parent\x20name\x20cannot\x20be\x20empty','substring','6547128AkOGdM','2880360regavO','896520LqxMcP'];a74_0xc1a6=function(){return _0x397948;};return a74_0xc1a6();}
@@ -1 +1 @@
1
- (function(_0x53a80b,_0x5b0f78){const _0x2afb06=a75_0x3316,_0x51560c=_0x53a80b();while(!![]){try{const _0x14749c=-parseInt(_0x2afb06(0x82))/0x1+-parseInt(_0x2afb06(0x78))/0x2+-parseInt(_0x2afb06(0x86))/0x3*(-parseInt(_0x2afb06(0x8a))/0x4)+-parseInt(_0x2afb06(0x84))/0x5*(parseInt(_0x2afb06(0x7e))/0x6)+parseInt(_0x2afb06(0x89))/0x7+parseInt(_0x2afb06(0x79))/0x8+parseInt(_0x2afb06(0x87))/0x9*(parseInt(_0x2afb06(0x81))/0xa);if(_0x14749c===_0x5b0f78)break;else _0x51560c['push'](_0x51560c['shift']());}catch(_0x21c3ee){_0x51560c['push'](_0x51560c['shift']());}}}(a75_0x47db,0xba5df));function a75_0x3316(_0x37a95e,_0x3b69be){const _0x47db7c=a75_0x47db();return a75_0x3316=function(_0x3316e5,_0x550f55){_0x3316e5=_0x3316e5-0x75;let _0x2ee9de=_0x47db7c[_0x3316e5];return _0x2ee9de;},a75_0x3316(_0x37a95e,_0x3b69be);}function a75_0x47db(){const _0x4426d8=['5NmKOOw','isSpinning','123213PkGyRf','99bfCSgh','cyan','9090256JlxkQS','4VeYTLM','clock','stop','isTTY','\x20[Job\x20ID:\x20','floor','now','extra','2751332iNbIxB','6044776cLVZyK','jobId','text','stdout','...','3703122ZtzZPk','start','phase','1746370oovkLW','1260071AtdZVo','toFixed'];a75_0x47db=function(){return _0x4426d8;};return a75_0x47db();}import a75_0x1a5c05 from'ora';export function createCommandSpinner(_0x39ba76,_0x12082f={}){const _0x135ba0=a75_0x3316,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x12082f;return a75_0x1a5c05({'text':_0x39ba76,'color':_0x135ba0(0x88),'isEnabled':forceEnabled||process[_0x135ba0(0x7c)][_0x135ba0(0x8d)]&&!verbose});}export async function withSpinner(_0x538e18,_0x4f5a6d,_0x3340d2={}){const _0x514ba8=a75_0x3316,_0x53bc00=_0x3340d2[_0x514ba8(0x8b)]??(()=>Date[_0x514ba8(0x76)]()),_0x508b18=createCommandSpinner(_0x538e18,_0x3340d2);_0x508b18[_0x514ba8(0x7f)]();const _0x417d52=_0x53bc00();try{const _0x54ceab=await _0x4f5a6d(),_0x134b3b=_0x53bc00()-_0x417d52;return _0x508b18[_0x514ba8(0x8c)](),{'data':_0x54ceab,'elapsedMs':_0x134b3b};}catch(_0x37381a){_0x508b18[_0x514ba8(0x8c)]();throw _0x37381a;}}export async function withQuerySpinner(_0x3a2d77,_0x1ae66a,_0x2fbf5b={}){const _0x383fea=a75_0x3316,_0x15497c=_0x2fbf5b[_0x383fea(0x8b)]??(()=>Date[_0x383fea(0x76)]()),_0x32034e=_0x2fbf5b['intervalFactory']??setInterval,_0x520aac=createCommandSpinner(_0x3a2d77,_0x2fbf5b);_0x520aac[_0x383fea(0x7f)]();const _0x5b4cbd=_0x15497c(),_0x522ac2=_0x3a2d77['replace'](_0x383fea(0x7d),''),_0x3f5faa={},_0xdf6579=()=>{const _0x2d5c83=_0x383fea;if(!_0x520aac[_0x2d5c83(0x85)])return;const _0x4acd2f=_0x15497c()-_0x5b4cbd,_0x2d85b1=formatElapsed(_0x4acd2f),_0x20cb18=_0x3f5faa[_0x2d5c83(0x80)]??_0x522ac2,_0x585d8c=_0x3f5faa[_0x2d5c83(0x7a)]?_0x2d5c83(0x8e)+_0x3f5faa[_0x2d5c83(0x7a)]+']':'',_0x5dfd2d=_0x3f5faa['extra']?'\x20'+_0x3f5faa[_0x2d5c83(0x77)]:'';_0x520aac[_0x2d5c83(0x7b)]=_0x20cb18+'\x20'+_0x2d85b1+_0x5dfd2d+_0x585d8c;},_0x4c7e4e=_0x32034e(()=>{_0xdf6579();},0x3e8),_0x95d5c3={'setPhase':_0x3650fb=>{const _0x58d5b7=_0x383fea;_0x3f5faa[_0x58d5b7(0x80)]=_0x3650fb,_0xdf6579();},'setJobId':_0x57f5e5=>{const _0x503150=_0x383fea;_0x3f5faa[_0x503150(0x7a)]=_0x57f5e5,_0xdf6579();},'setExtra':_0x202f57=>{const _0x257794=_0x383fea;_0x3f5faa[_0x257794(0x77)]=_0x202f57,_0xdf6579();}};_0xdf6579();try{const _0x3de175=await _0x1ae66a(_0x95d5c3),_0x43bad1=_0x15497c()-_0x5b4cbd;return{'data':_0x3de175,'elapsedMs':_0x43bad1};}finally{clearInterval(_0x4c7e4e),_0x520aac[_0x383fea(0x8c)]();}}export function formatElapsed(_0x1ca83b){const _0x3cd42c=a75_0x3316,_0x501fd7=Math[_0x3cd42c(0x75)](_0x1ca83b/0x3e8);if(_0x501fd7<0x3c)return(_0x1ca83b/0x3e8)[_0x3cd42c(0x83)](0x1)+'s';const _0x1fa911=Math[_0x3cd42c(0x75)](_0x501fd7/0x3c),_0x409059=_0x501fd7%0x3c;if(_0x1fa911<0x3c)return _0x1fa911+'m\x20'+_0x409059+'s';const _0x2000b0=Math[_0x3cd42c(0x75)](_0x1fa911/0x3c),_0x4311e6=_0x1fa911%0x3c;return _0x2000b0+'h\x20'+_0x4311e6+'m';}
1
+ (function(_0x28d5cc,_0x40a9c6){const _0x3be618=a75_0xbdaf,_0x2f0658=_0x28d5cc();while(!![]){try{const _0x89dd2=parseInt(_0x3be618(0x69))/0x1+-parseInt(_0x3be618(0x7c))/0x2*(-parseInt(_0x3be618(0x65))/0x3)+parseInt(_0x3be618(0x76))/0x4*(parseInt(_0x3be618(0x78))/0x5)+parseInt(_0x3be618(0x79))/0x6+parseInt(_0x3be618(0x72))/0x7+parseInt(_0x3be618(0x68))/0x8*(-parseInt(_0x3be618(0x71))/0x9)+-parseInt(_0x3be618(0x6e))/0xa;if(_0x89dd2===_0x40a9c6)break;else _0x2f0658['push'](_0x2f0658['shift']());}catch(_0x3798df){_0x2f0658['push'](_0x2f0658['shift']());}}}(a75_0x6e75,0xeaf81));function a75_0xbdaf(_0x44fc2e,_0x3e22e4){const _0x6e758c=a75_0x6e75();return a75_0xbdaf=function(_0xbdaf45,_0x20e374){_0xbdaf45=_0xbdaf45-0x65;let _0x19cbbc=_0x6e758c[_0xbdaf45];return _0x19cbbc;},a75_0xbdaf(_0x44fc2e,_0x3e22e4);}import a75_0x240c2b from'ora';export function createCommandSpinner(_0x25ffef,_0x5761db={}){const _0x5325fd=a75_0xbdaf,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5761db;return a75_0x240c2b({'text':_0x25ffef,'color':'cyan','isEnabled':forceEnabled||process[_0x5325fd(0x7b)][_0x5325fd(0x6b)]&&!verbose});}function a75_0x6e75(){const _0x155135=['phase','isTTY','clock','floor','15118380VxRWFC','text','...','27AWpvJD','7516418rVNnBO','start','\x20[Job\x20ID:\x20','now','4QrjQkV','jobId','4367690wPUwPi','2390160QseYmg','extra','stdout','2gMdKPo','1891035LRhGgM','stop','isSpinning','1897904mhwvRb','209968kTiKdK'];a75_0x6e75=function(){return _0x155135;};return a75_0x6e75();}export async function withSpinner(_0x3941ab,_0x358c88,_0x4d1f75={}){const _0x5dc16f=a75_0xbdaf,_0x5ceca3=_0x4d1f75[_0x5dc16f(0x6c)]??(()=>Date['now']()),_0x3aeb05=createCommandSpinner(_0x3941ab,_0x4d1f75);_0x3aeb05['start']();const _0x443feb=_0x5ceca3();try{const _0x1436a1=await _0x358c88(),_0x540b99=_0x5ceca3()-_0x443feb;return _0x3aeb05[_0x5dc16f(0x66)](),{'data':_0x1436a1,'elapsedMs':_0x540b99};}catch(_0x10c89c){_0x3aeb05[_0x5dc16f(0x66)]();throw _0x10c89c;}}export async function withQuerySpinner(_0x3c623e,_0x3139b7,_0x1a9aca={}){const _0x12a7e1=a75_0xbdaf,_0xb4d8e9=_0x1a9aca[_0x12a7e1(0x6c)]??(()=>Date[_0x12a7e1(0x75)]()),_0x1a2938=_0x1a9aca['intervalFactory']??setInterval,_0x111e0=createCommandSpinner(_0x3c623e,_0x1a9aca);_0x111e0[_0x12a7e1(0x73)]();const _0xf65ea8=_0xb4d8e9(),_0x365aab=_0x3c623e['replace'](_0x12a7e1(0x70),''),_0x1129a4={},_0x1b76c9=()=>{const _0x413a41=_0x12a7e1;if(!_0x111e0[_0x413a41(0x67)])return;const _0x504b34=_0xb4d8e9()-_0xf65ea8,_0x44f14c=formatElapsed(_0x504b34),_0x5b466e=_0x1129a4[_0x413a41(0x6a)]??_0x365aab,_0x3ab660=_0x1129a4[_0x413a41(0x77)]?_0x413a41(0x74)+_0x1129a4[_0x413a41(0x77)]+']':'',_0xa8e139=_0x1129a4[_0x413a41(0x7a)]?'\x20'+_0x1129a4[_0x413a41(0x7a)]:'';_0x111e0[_0x413a41(0x6f)]=_0x5b466e+'\x20'+_0x44f14c+_0xa8e139+_0x3ab660;},_0x33398f=_0x1a2938(()=>{_0x1b76c9();},0x3e8),_0x1bfecc={'setPhase':_0x14395d=>{const _0x396abf=_0x12a7e1;_0x1129a4[_0x396abf(0x6a)]=_0x14395d,_0x1b76c9();},'setJobId':_0x5da096=>{_0x1129a4['jobId']=_0x5da096,_0x1b76c9();},'setExtra':_0x4d864e=>{const _0x24bb6e=_0x12a7e1;_0x1129a4[_0x24bb6e(0x7a)]=_0x4d864e,_0x1b76c9();}};_0x1b76c9();try{const _0x1cf208=await _0x3139b7(_0x1bfecc),_0x1abefd=_0xb4d8e9()-_0xf65ea8;return{'data':_0x1cf208,'elapsedMs':_0x1abefd};}finally{clearInterval(_0x33398f),_0x111e0[_0x12a7e1(0x66)]();}}export function formatElapsed(_0x3704fe){const _0x52fcb6=a75_0xbdaf,_0x40429a=Math[_0x52fcb6(0x6d)](_0x3704fe/0x3e8);if(_0x40429a<0x3c)return(_0x3704fe/0x3e8)['toFixed'](0x1)+'s';const _0x448fdb=Math['floor'](_0x40429a/0x3c),_0x398919=_0x40429a%0x3c;if(_0x448fdb<0x3c)return _0x448fdb+'m\x20'+_0x398919+'s';const _0x2cfb71=Math['floor'](_0x448fdb/0x3c),_0x4f5bef=_0x448fdb%0x3c;return _0x2cfb71+'h\x20'+_0x4f5bef+'m';}
@@ -1 +1 @@
1
- (function(_0x4f9a55,_0x44fc94){const _0x3bdf13=a76_0x5a32,_0x284c86=_0x4f9a55();while(!![]){try{const _0x1003e3=-parseInt(_0x3bdf13(0x6e))/0x1*(-parseInt(_0x3bdf13(0x7f))/0x2)+-parseInt(_0x3bdf13(0x7c))/0x3+parseInt(_0x3bdf13(0x72))/0x4*(-parseInt(_0x3bdf13(0x85))/0x5)+parseInt(_0x3bdf13(0x7b))/0x6+parseInt(_0x3bdf13(0x70))/0x7*(-parseInt(_0x3bdf13(0x80))/0x8)+-parseInt(_0x3bdf13(0x7e))/0x9*(parseInt(_0x3bdf13(0x73))/0xa)+parseInt(_0x3bdf13(0x7a))/0xb*(parseInt(_0x3bdf13(0x86))/0xc);if(_0x1003e3===_0x44fc94)break;else _0x284c86['push'](_0x284c86['shift']());}catch(_0xf8c3b7){_0x284c86['push'](_0x284c86['shift']());}}}(a76_0x5059,0xa0b68));import{readFileSync}from'fs';function a76_0x5059(){const _0x2db85e=['8UxPfJb','EACCES','trim','Error\x20reading\x20file\x20\x27','toLowerCase','35015qECAGx','43704OdIlGz','Permission\x20denied\x20reading\x20file\x20\x27','559TxThVI','length','3943051MBSCUR','map','596rBOHTS','120oEbCAT','Content\x20contains\x20no\x20SQL\x20statements','push','code','replace','message','utf-8','3773EHGLVz','7898628xNFgIi','596007SVbdOj','\x27:\x20','394677YbbjaW','1518elkuOz'];a76_0x5059=function(){return _0x2db85e;};return a76_0x5059();}export function stripSqlComments(_0x287da8){const _0x2766f5=a76_0x5a32;let _0x1cf3b4=_0x287da8['replace'](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x1cf3b4=_0x1cf3b4[_0x2766f5(0x77)](/--.*$/gm,''),_0x1cf3b4[_0x2766f5(0x82)]();}function isEscaped(_0x47cf97,_0xb69812){let _0x3d519e=0x0;for(let _0x2ecaa2=_0xb69812-0x1;_0x2ecaa2>=0x0&&_0x47cf97[_0x2ecaa2]==='\x5c';_0x2ecaa2--){_0x3d519e++;}return _0x3d519e%0x2===0x1;}function a76_0x5a32(_0x57e3eb,_0x349897){const _0x505909=a76_0x5059();return a76_0x5a32=function(_0x5a3235,_0x12255b){_0x5a3235=_0x5a3235-0x6d;let _0x3ac98d=_0x505909[_0x5a3235];return _0x3ac98d;},a76_0x5a32(_0x57e3eb,_0x349897);}export function splitSqlStatements(_0x3480c5){const _0x551fa4=a76_0x5a32,_0x4f6956=stripSqlComments(_0x3480c5);if(!_0x4f6956)throw new Error(_0x551fa4(0x74));const _0x571d25=[];let _0x370e40='',_0x38dbbe=![],_0x25d99f=![],_0x55079a=![];for(let _0x3f76c1=0x0;_0x3f76c1<_0x3480c5['length'];_0x3f76c1++){const _0x117ca8=_0x3480c5[_0x3f76c1];if(_0x117ca8==='\x27'&&!isEscaped(_0x3480c5,_0x3f76c1)&&!_0x25d99f&&!_0x55079a)_0x38dbbe=!_0x38dbbe;else{if(_0x117ca8==='\x22'&&!isEscaped(_0x3480c5,_0x3f76c1)&&!_0x38dbbe&&!_0x55079a)_0x25d99f=!_0x25d99f;else _0x117ca8==='`'&&!isEscaped(_0x3480c5,_0x3f76c1)&&!_0x38dbbe&&!_0x25d99f&&(_0x55079a=!_0x55079a);}if(_0x117ca8===';'&&!_0x38dbbe&&!_0x25d99f&&!_0x55079a){const _0x2dcc33=_0x370e40[_0x551fa4(0x82)]();_0x2dcc33&&_0x571d25['push'](_0x2dcc33),_0x370e40='';}else _0x370e40+=_0x117ca8;}const _0xa09d74=_0x370e40[_0x551fa4(0x82)]();_0xa09d74&&_0x571d25[_0x551fa4(0x75)](_0xa09d74);const _0xc03e38=_0x571d25[_0x551fa4(0x71)](_0x9a23d8=>_0x9a23d8['trim']())['filter'](_0x2785d2=>{const _0x2440af=_0x551fa4,_0x1b2777=stripSqlComments(_0x2785d2);return _0x1b2777[_0x2440af(0x6f)]>0x0;});if(_0xc03e38[_0x551fa4(0x6f)]===0x0)throw new Error(_0x551fa4(0x74));return _0xc03e38;}export function readFileContent(_0x2ba48b){const _0x26250b=a76_0x5a32;try{return readFileSync(_0x2ba48b,_0x26250b(0x79));}catch(_0x4dd725){const _0x698371=_0x4dd725[_0x26250b(0x76)];if(_0x698371==='ENOENT')throw new Error('File\x20\x27'+_0x2ba48b+'\x27\x20not\x20found');else{if(_0x698371===_0x26250b(0x81))throw new Error(_0x26250b(0x6d)+_0x2ba48b+'\x27');else throw new Error(_0x26250b(0x83)+_0x2ba48b+_0x26250b(0x7d)+_0x4dd725['message']);}}}export function readSqlStatementsFromFile(_0x2a79ea){const _0xa9cb07=a76_0x5a32,_0x511745=readFileContent(_0x2a79ea);try{return splitSqlStatements(_0x511745);}catch(_0x279598){throw new Error('File\x20\x27'+_0x2a79ea+'\x27\x20'+_0x279598[_0xa9cb07(0x78)][_0xa9cb07(0x84)]());}}
1
+ (function(_0x52c632,_0x4e898f){const _0x24f267=a76_0x2c9c,_0x293264=_0x52c632();while(!![]){try{const _0x412f35=-parseInt(_0x24f267(0x13a))/0x1*(-parseInt(_0x24f267(0x136))/0x2)+-parseInt(_0x24f267(0x145))/0x3+-parseInt(_0x24f267(0x140))/0x4+parseInt(_0x24f267(0x146))/0x5*(-parseInt(_0x24f267(0x131))/0x6)+-parseInt(_0x24f267(0x141))/0x7*(parseInt(_0x24f267(0x138))/0x8)+-parseInt(_0x24f267(0x144))/0x9*(parseInt(_0x24f267(0x135))/0xa)+-parseInt(_0x24f267(0x137))/0xb*(-parseInt(_0x24f267(0x133))/0xc);if(_0x412f35===_0x4e898f)break;else _0x293264['push'](_0x293264['shift']());}catch(_0x1a4b0f){_0x293264['push'](_0x293264['shift']());}}}(a76_0x5bfc,0x507d6));import{readFileSync}from'fs';export function stripSqlComments(_0x26ba60){const _0x266b28=a76_0x2c9c;let _0x5add19=_0x26ba60[_0x266b28(0x139)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5add19=_0x5add19[_0x266b28(0x139)](/--.*$/gm,''),_0x5add19[_0x266b28(0x13c)]();}function isEscaped(_0x3a1b26,_0x3b277e){let _0x2966bf=0x0;for(let _0x27255b=_0x3b277e-0x1;_0x27255b>=0x0&&_0x3a1b26[_0x27255b]==='\x5c';_0x27255b--){_0x2966bf++;}return _0x2966bf%0x2===0x1;}export function splitSqlStatements(_0x2aa4e4){const _0x459008=a76_0x2c9c,_0x41de76=stripSqlComments(_0x2aa4e4);if(!_0x41de76)throw new Error(_0x459008(0x143));const _0xb97a5b=[];let _0x2685bb='',_0x1494c2=![],_0x2aed84=![],_0xdc8826=![];for(let _0x5dbcd2=0x0;_0x5dbcd2<_0x2aa4e4['length'];_0x5dbcd2++){const _0x464a14=_0x2aa4e4[_0x5dbcd2];if(_0x464a14==='\x27'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x2aed84&&!_0xdc8826)_0x1494c2=!_0x1494c2;else{if(_0x464a14==='\x22'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x1494c2&&!_0xdc8826)_0x2aed84=!_0x2aed84;else _0x464a14==='`'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x1494c2&&!_0x2aed84&&(_0xdc8826=!_0xdc8826);}if(_0x464a14===';'&&!_0x1494c2&&!_0x2aed84&&!_0xdc8826){const _0x364494=_0x2685bb[_0x459008(0x13c)]();_0x364494&&_0xb97a5b[_0x459008(0x147)](_0x364494),_0x2685bb='';}else _0x2685bb+=_0x464a14;}const _0x35c80e=_0x2685bb[_0x459008(0x13c)]();_0x35c80e&&_0xb97a5b[_0x459008(0x147)](_0x35c80e);const _0x4582b6=_0xb97a5b['map'](_0x4c4399=>_0x4c4399[_0x459008(0x13c)]())[_0x459008(0x13b)](_0x57e6d4=>{const _0x463ed7=_0x459008,_0x3f639e=stripSqlComments(_0x57e6d4);return _0x3f639e[_0x463ed7(0x13e)]>0x0;});if(_0x4582b6['length']===0x0)throw new Error(_0x459008(0x143));return _0x4582b6;}export function readFileContent(_0x44007e){const _0x1773df=a76_0x2c9c;try{return readFileSync(_0x44007e,_0x1773df(0x13f));}catch(_0x52d722){const _0x4efd6e=_0x52d722['code'];if(_0x4efd6e===_0x1773df(0x130))throw new Error(_0x1773df(0x132)+_0x44007e+'\x27\x20not\x20found');else{if(_0x4efd6e===_0x1773df(0x142))throw new Error(_0x1773df(0x134)+_0x44007e+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x44007e+'\x27:\x20'+_0x52d722['message']);}}}export function readSqlStatementsFromFile(_0x481c12){const _0x25f701=a76_0x2c9c,_0x349e84=readFileContent(_0x481c12);try{return splitSqlStatements(_0x349e84);}catch(_0xf1e090){throw new Error(_0x25f701(0x132)+_0x481c12+'\x27\x20'+_0xf1e090['message'][_0x25f701(0x13d)]());}}function a76_0x2c9c(_0x107978,_0x457b1c){const _0x5bfc63=a76_0x5bfc();return a76_0x2c9c=function(_0x2c9c8d,_0x2961df){_0x2c9c8d=_0x2c9c8d-0x130;let _0x12c829=_0x5bfc63[_0x2c9c8d];return _0x12c829;},a76_0x2c9c(_0x107978,_0x457b1c);}function a76_0x5bfc(){const _0x16431a=['452PByBLX','filter','trim','toLowerCase','length','utf-8','1572928aGHVdb','560cDmBDd','EACCES','Content\x20contains\x20no\x20SQL\x20statements','9uVRzXh','610398UhQSVE','14365fxFkoa','push','ENOENT','1002dmsKDK','File\x20\x27','1056TMnqWc','Permission\x20denied\x20reading\x20file\x20\x27','6150050iChkeS','2198aiszMH','248644zEKjPJ','46472owqNzA','replace'];a76_0x5bfc=function(){return _0x16431a;};return a76_0x5bfc();}
@@ -1 +1 @@
1
- (function(_0x5b738e,_0x3036d4){const _0x568050=a77_0x30fb,_0x5c32a8=_0x5b738e();while(!![]){try{const _0x17a7ae=-parseInt(_0x568050(0xc6))/0x1*(parseInt(_0x568050(0xc7))/0x2)+-parseInt(_0x568050(0xca))/0x3*(parseInt(_0x568050(0xdb))/0x4)+-parseInt(_0x568050(0xd3))/0x5+-parseInt(_0x568050(0xcb))/0x6*(parseInt(_0x568050(0xce))/0x7)+-parseInt(_0x568050(0xda))/0x8+parseInt(_0x568050(0xcf))/0x9+parseInt(_0x568050(0xc8))/0xa;if(_0x17a7ae===_0x3036d4)break;else _0x5c32a8['push'](_0x5c32a8['shift']());}catch(_0x592a06){_0x5c32a8['push'](_0x5c32a8['shift']());}}}(a77_0x57ab,0xe46b5));function a77_0x30fb(_0x15468f,_0x54bdec){const _0x57ab51=a77_0x57ab();return a77_0x30fb=function(_0x30fb18,_0x3b1e6d){_0x30fb18=_0x30fb18-0xc6;let _0x285568=_0x57ab51[_0x30fb18];return _0x285568;},a77_0x30fb(_0x15468f,_0x54bdec);}export async function*parseSSEStream(_0x1da128){const _0x54dfb3=a77_0x30fb;if(!_0x1da128[_0x54dfb3(0xcc)])throw new Error(_0x54dfb3(0xd0));const _0xe7b138=_0x1da128[_0x54dfb3(0xcc)][_0x54dfb3(0xcd)](),_0x465841=new TextDecoder();let _0x2c933d='',_0x3b279f={};try{while(!![]){const {done:_0x52d806,value:_0x152ccd}=await _0xe7b138['read']();if(_0x52d806){_0x3b279f[_0x54dfb3(0xd8)]&&(yield parseSSEData(_0x3b279f[_0x54dfb3(0xd8)]));break;}_0x2c933d+=_0x465841[_0x54dfb3(0xd1)](_0x152ccd,{'stream':!![]});const _0x1e1bc8=_0x2c933d[_0x54dfb3(0xd5)]('\x0a');_0x2c933d=_0x1e1bc8['pop']()||'';for(const _0x235462 of _0x1e1bc8){if(_0x235462[_0x54dfb3(0xd2)]()===''){_0x3b279f[_0x54dfb3(0xd8)]&&(yield parseSSEData(_0x3b279f[_0x54dfb3(0xd8)]),_0x3b279f={});continue;}if(_0x235462['startsWith'](':'))continue;const _0x5cb2da=_0x235462[_0x54dfb3(0xdc)](':');if(_0x5cb2da===-0x1)continue;const _0x4c4c1f=_0x235462[_0x54dfb3(0xd9)](0x0,_0x5cb2da);let _0x2f36e1=_0x235462[_0x54dfb3(0xd9)](_0x5cb2da+0x1);_0x2f36e1['startsWith']('\x20')&&(_0x2f36e1=_0x2f36e1[_0x54dfb3(0xd9)](0x1));switch(_0x4c4c1f){case _0x54dfb3(0xd7):_0x3b279f[_0x54dfb3(0xd7)]=_0x2f36e1;break;case _0x54dfb3(0xd8):_0x3b279f[_0x54dfb3(0xd8)]=_0x3b279f[_0x54dfb3(0xd8)]?_0x3b279f['data']+'\x0a'+_0x2f36e1:_0x2f36e1;break;case'id':_0x3b279f['id']=_0x2f36e1;break;}}}}finally{_0xe7b138[_0x54dfb3(0xd4)]();}}function a77_0x57ab(){const _0x912949=['body','getReader','168fAirdk','3370554ccGfpk','Response\x20body\x20is\x20null','decode','trim','6659370QCrvyI','releaseLock','split','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','event','data','slice','5717752oUpKQb','16612Bfvyse','indexOf','571NQxZff','3122ingdhp','53702200NialQG','parse','759eBWboM','205122kqQVkE'];a77_0x57ab=function(){return _0x912949;};return a77_0x57ab();}function parseSSEData(_0x5df318){const _0x4628a5=a77_0x30fb;try{return JSON[_0x4628a5(0xc9)](_0x5df318);}catch(_0x162f76){throw new Error(_0x4628a5(0xd6)+_0x5df318,{'cause':_0x162f76});}}
1
+ (function(_0xed512b,_0x37b51f){const _0x3c2c98=a77_0x574e,_0x47919b=_0xed512b();while(!![]){try{const _0x262f83=parseInt(_0x3c2c98(0xd1))/0x1+-parseInt(_0x3c2c98(0xdc))/0x2*(-parseInt(_0x3c2c98(0xd0))/0x3)+-parseInt(_0x3c2c98(0xcf))/0x4+parseInt(_0x3c2c98(0xdb))/0x5*(parseInt(_0x3c2c98(0xd9))/0x6)+-parseInt(_0x3c2c98(0xc9))/0x7+parseInt(_0x3c2c98(0xd5))/0x8+-parseInt(_0x3c2c98(0xda))/0x9;if(_0x262f83===_0x37b51f)break;else _0x47919b['push'](_0x47919b['shift']());}catch(_0x4d6402){_0x47919b['push'](_0x47919b['shift']());}}}(a77_0x2df3,0x670b0));export async function*parseSSEStream(_0x5f0493){const _0x5c756b=a77_0x574e;if(!_0x5f0493['body'])throw new Error(_0x5c756b(0xd3));const _0x5afe79=_0x5f0493['body'][_0x5c756b(0xd7)](),_0x38582e=new TextDecoder();let _0x2e433c='',_0x358d4b={};try{while(!![]){const {done:_0x56efe0,value:_0x254c88}=await _0x5afe79['read']();if(_0x56efe0){_0x358d4b[_0x5c756b(0xce)]&&(yield parseSSEData(_0x358d4b[_0x5c756b(0xce)]));break;}_0x2e433c+=_0x38582e['decode'](_0x254c88,{'stream':!![]});const _0x3724cc=_0x2e433c[_0x5c756b(0xd8)]('\x0a');_0x2e433c=_0x3724cc[_0x5c756b(0xdd)]()||'';for(const _0x4e5f63 of _0x3724cc){if(_0x4e5f63['trim']()===''){_0x358d4b['data']&&(yield parseSSEData(_0x358d4b[_0x5c756b(0xce)]),_0x358d4b={});continue;}if(_0x4e5f63[_0x5c756b(0xca)](':'))continue;const _0xc7304d=_0x4e5f63[_0x5c756b(0xd4)](':');if(_0xc7304d===-0x1)continue;const _0x3b1890=_0x4e5f63[_0x5c756b(0xcc)](0x0,_0xc7304d);let _0x23a815=_0x4e5f63[_0x5c756b(0xcc)](_0xc7304d+0x1);_0x23a815['startsWith']('\x20')&&(_0x23a815=_0x23a815['slice'](0x1));switch(_0x3b1890){case _0x5c756b(0xd2):_0x358d4b[_0x5c756b(0xd2)]=_0x23a815;break;case _0x5c756b(0xce):_0x358d4b[_0x5c756b(0xce)]=_0x358d4b[_0x5c756b(0xce)]?_0x358d4b[_0x5c756b(0xce)]+'\x0a'+_0x23a815:_0x23a815;break;case'id':_0x358d4b['id']=_0x23a815;break;}}}}finally{_0x5afe79[_0x5c756b(0xcd)]();}}function a77_0x2df3(){const _0x5f81d3=['getReader','split','2479140VATHAW','13223187MVoKzh','10uFcBQZ','4zRXGbq','pop','493311zmGNWJ','startsWith','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','slice','releaseLock','data','203332LscEHg','636117EipMjc','41597KpIOae','event','Response\x20body\x20is\x20null','indexOf','5764464CntUwv','parse'];a77_0x2df3=function(){return _0x5f81d3;};return a77_0x2df3();}function a77_0x574e(_0x2ce473,_0x4c4746){const _0x2df30e=a77_0x2df3();return a77_0x574e=function(_0x574e90,_0x35f4ce){_0x574e90=_0x574e90-0xc9;let _0x1aa03f=_0x2df30e[_0x574e90];return _0x1aa03f;},a77_0x574e(_0x2ce473,_0x4c4746);}function parseSSEData(_0x33e120){const _0x5c4ad7=a77_0x574e;try{return JSON[_0x5c4ad7(0xd6)](_0x33e120);}catch(_0x3e1fa7){throw new Error(_0x5c4ad7(0xcb)+_0x33e120,{'cause':_0x3e1fa7});}}
@@ -1 +1 @@
1
- (function(_0x15f329,_0x43a6ba){const _0x2cb5aa=a78_0x4a2a,_0x4b9ee7=_0x15f329();while(!![]){try{const _0x4f0606=parseInt(_0x2cb5aa(0x112))/0x1+-parseInt(_0x2cb5aa(0x117))/0x2+-parseInt(_0x2cb5aa(0x123))/0x3*(parseInt(_0x2cb5aa(0x119))/0x4)+-parseInt(_0x2cb5aa(0x12b))/0x5*(parseInt(_0x2cb5aa(0x115))/0x6)+parseInt(_0x2cb5aa(0x118))/0x7+-parseInt(_0x2cb5aa(0x122))/0x8+-parseInt(_0x2cb5aa(0x125))/0x9*(-parseInt(_0x2cb5aa(0x116))/0xa);if(_0x4f0606===_0x43a6ba)break;else _0x4b9ee7['push'](_0x4b9ee7['shift']());}catch(_0x505f0b){_0x4b9ee7['push'](_0x4b9ee7['shift']());}}}(a78_0x3bf0,0xb3997));import a78_0x1afd39 from'string-width';export function stringWidth(_0x106b94){return a78_0x1afd39(_0x106b94);}export function padEnd(_0x3f6c35,_0x1ebeae){const _0x5a79e5=stringWidth(_0x3f6c35);if(_0x5a79e5>=_0x1ebeae)return _0x3f6c35;return _0x3f6c35+'\x20'['repeat'](_0x1ebeae-_0x5a79e5);}function a78_0x4a2a(_0x5b82fb,_0x3b4e69){const _0x3bf0ad=a78_0x3bf0();return a78_0x4a2a=function(_0x4a2a8f,_0x9e6216){_0x4a2a8f=_0x4a2a8f-0x111;let _0x3f578c=_0x3bf0ad[_0x4a2a8f];return _0x3f578c;},a78_0x4a2a(_0x5b82fb,_0x3b4e69);}export function padStart(_0x100571,_0x2380a7){const _0x16f5ce=a78_0x4a2a,_0x98315b=stringWidth(_0x100571);if(_0x98315b>=_0x2380a7)return _0x100571;return'\x20'[_0x16f5ce(0x121)](_0x2380a7-_0x98315b)+_0x100571;}export function centerAlign(_0x48790f,_0x5510e8){const _0x2db925=a78_0x4a2a,_0xe37114=stringWidth(_0x48790f);if(_0xe37114>_0x5510e8){if(_0x5510e8<=0x1)return'…'['substring'](0x0,_0x5510e8);let _0x340d02=_0x48790f;while(stringWidth(_0x340d02+'…')>_0x5510e8){_0x340d02=_0x340d02[_0x2db925(0x11b)](0x0,-0x1);}return _0x340d02+'…';}if(_0xe37114===_0x5510e8)return _0x48790f;const _0x1e5eab=_0x5510e8-_0xe37114,_0x51c8f0=Math[_0x2db925(0x12a)](_0x1e5eab/0x2),_0x306781=_0x1e5eab-_0x51c8f0;return'\x20'['repeat'](_0x51c8f0)+_0x48790f+'\x20'[_0x2db925(0x121)](_0x306781);}export function escapeStringLiteral(_0x5032f7){const _0x2602b2=a78_0x4a2a;if(!_0x5032f7||_0x5032f7[_0x2602b2(0x11c)]()['length']===0x0)throw new Error(_0x2602b2(0x127));const _0x509bb5=_0x5032f7[_0x2602b2(0x113)](/'/g,'\x27\x27');return'\x27'+_0x509bb5+'\x27';}export function globToLike(_0x1ea174){const _0x40dbf4=a78_0x4a2a;let _0x50031c=_0x1ea174[_0x40dbf4(0x113)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x40dbf4(0x113)](/_/g,'\x5c_');return _0x50031c=_0x50031c[_0x40dbf4(0x113)](/\*/g,'%')[_0x40dbf4(0x113)](/\?/g,'_'),_0x50031c;}export function buildLikePattern(_0x5d6700){const _0x407e28=a78_0x4a2a;if(!_0x5d6700||_0x5d6700[_0x407e28(0x11c)]()[_0x407e28(0x11e)]===0x0)throw new Error(_0x407e28(0x11a));const _0x490b0e=globToLike(_0x5d6700),_0x1939f2=_0x490b0e[_0x407e28(0x113)](/'/g,'\x27\x27');return'\x27'+_0x1939f2+'\x27';}export function matchGlobPattern(_0x31114a,_0x3bed83){const _0x27aedd=a78_0x4a2a,_0x373d41=_0x3bed83['replace'](/[.+^${}()|[\]\\]/g,_0x27aedd(0x114))[_0x27aedd(0x113)](/\*/g,'.*')[_0x27aedd(0x113)](/\?/g,'.'),_0x57453a=new RegExp('^'+_0x373d41+'$');return _0x57453a[_0x27aedd(0x11d)](_0x31114a);}function a78_0x3bf0(){const _0x4663ac=['USERNAME','99pJkXsa','env','Cannot\x20escape\x20empty\x20string\x20literal','padStart','unknown','floor','155OJLnJS','random','1048069CcolZh','replace','\x5c$&','269754vBljNV','769650ajYknN','616632fFUMzg','7530208lALJpd','12ThfuRF','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','slice','trim','test','length','toString','USER','repeat','2691464MvDKeL','196311PfIpuh'];a78_0x3bf0=function(){return _0x4663ac;};return a78_0x3bf0();}export function getSanitizedUsername(){const _0x36160d=a78_0x4a2a,_0x45889f=process[_0x36160d(0x126)][_0x36160d(0x120)]||process[_0x36160d(0x126)][_0x36160d(0x124)]||_0x36160d(0x129);return _0x45889f[_0x36160d(0x113)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x4a7929=a78_0x4a2a,_0x44883d=Math[_0x4a7929(0x12a)](Math[_0x4a7929(0x111)]()*0xfffff);return _0x44883d[_0x4a7929(0x11f)](0x10)[_0x4a7929(0x128)](0x5,'0');}
1
+ (function(_0x5d375f,_0x2cec03){const _0x448d7f=a78_0x3aa4,_0x3ec483=_0x5d375f();while(!![]){try{const _0x195467=-parseInt(_0x448d7f(0x1c3))/0x1*(-parseInt(_0x448d7f(0x1d2))/0x2)+parseInt(_0x448d7f(0x1c6))/0x3*(parseInt(_0x448d7f(0x1d7))/0x4)+parseInt(_0x448d7f(0x1c0))/0x5+parseInt(_0x448d7f(0x1d8))/0x6*(-parseInt(_0x448d7f(0x1d4))/0x7)+-parseInt(_0x448d7f(0x1c4))/0x8*(-parseInt(_0x448d7f(0x1cc))/0x9)+parseInt(_0x448d7f(0x1d5))/0xa*(-parseInt(_0x448d7f(0x1c1))/0xb)+parseInt(_0x448d7f(0x1c2))/0xc;if(_0x195467===_0x2cec03)break;else _0x3ec483['push'](_0x3ec483['shift']());}catch(_0x5001b9){_0x3ec483['push'](_0x3ec483['shift']());}}}(a78_0x338a,0x736b8));import a78_0x424a51 from'string-width';export function stringWidth(_0x189c82){return a78_0x424a51(_0x189c82);}export function padEnd(_0x3f03ef,_0x56ec29){const _0x4e13ee=a78_0x3aa4,_0x490534=stringWidth(_0x3f03ef);if(_0x490534>=_0x56ec29)return _0x3f03ef;return _0x3f03ef+'\x20'[_0x4e13ee(0x1c8)](_0x56ec29-_0x490534);}function a78_0x3aa4(_0x5b45be,_0x2abf5e){const _0x338a3f=a78_0x338a();return a78_0x3aa4=function(_0x3aa4ed,_0x24aef2){_0x3aa4ed=_0x3aa4ed-0x1c0;let _0x3b138f=_0x338a3f[_0x3aa4ed];return _0x3b138f;},a78_0x3aa4(_0x5b45be,_0x2abf5e);}export function padStart(_0x622700,_0x2276d4){const _0x1294c4=a78_0x3aa4,_0x46a74b=stringWidth(_0x622700);if(_0x46a74b>=_0x2276d4)return _0x622700;return'\x20'[_0x1294c4(0x1c8)](_0x2276d4-_0x46a74b)+_0x622700;}export function centerAlign(_0x2a79fd,_0x4698c0){const _0x45e226=a78_0x3aa4,_0x26f817=stringWidth(_0x2a79fd);if(_0x26f817>_0x4698c0){if(_0x4698c0<=0x1)return'…'[_0x45e226(0x1da)](0x0,_0x4698c0);let _0xeee4fc=_0x2a79fd;while(stringWidth(_0xeee4fc+'…')>_0x4698c0){_0xeee4fc=_0xeee4fc[_0x45e226(0x1cd)](0x0,-0x1);}return _0xeee4fc+'…';}if(_0x26f817===_0x4698c0)return _0x2a79fd;const _0x4b7f5e=_0x4698c0-_0x26f817,_0x13cd24=Math[_0x45e226(0x1d6)](_0x4b7f5e/0x2),_0x2e5b93=_0x4b7f5e-_0x13cd24;return'\x20'['repeat'](_0x13cd24)+_0x2a79fd+'\x20'[_0x45e226(0x1c8)](_0x2e5b93);}function a78_0x338a(){const _0xd02b06=['1288072Jpwgwt','trim','19533BVAEGH','toString','repeat','\x5c$&','USERNAME','random','45hUkrIx','slice','replace','env','length','toLowerCase','14604ZfNleU','Cannot\x20escape\x20empty\x20string\x20literal','295183iSSCDu','87110NEMAin','floor','328QLmYmB','66NGdHbf','USER','substring','unknown','test','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','628490zBHSyE','979VUbeNW','1565052KmFzGa','16BuwifL'];a78_0x338a=function(){return _0xd02b06;};return a78_0x338a();}export function escapeStringLiteral(_0x26457e){const _0x438d2a=a78_0x3aa4;if(!_0x26457e||_0x26457e[_0x438d2a(0x1c5)]()[_0x438d2a(0x1d0)]===0x0)throw new Error(_0x438d2a(0x1d3));const _0x59ba7e=_0x26457e['replace'](/'/g,'\x27\x27');return'\x27'+_0x59ba7e+'\x27';}export function globToLike(_0x2cba50){const _0x3d03e6=a78_0x3aa4;let _0x45de41=_0x2cba50['replace'](/\\/g,'\x5c\x5c')[_0x3d03e6(0x1ce)](/%/g,'\x5c%')[_0x3d03e6(0x1ce)](/_/g,'\x5c_');return _0x45de41=_0x45de41[_0x3d03e6(0x1ce)](/\*/g,'%')['replace'](/\?/g,'_'),_0x45de41;}export function buildLikePattern(_0x4796d5){const _0xd679cf=a78_0x3aa4;if(!_0x4796d5||_0x4796d5[_0xd679cf(0x1c5)]()[_0xd679cf(0x1d0)]===0x0)throw new Error(_0xd679cf(0x1dd));const _0x2a2778=globToLike(_0x4796d5),_0x2c8b87=_0x2a2778[_0xd679cf(0x1ce)](/'/g,'\x27\x27');return'\x27'+_0x2c8b87+'\x27';}export function matchGlobPattern(_0x2f4e47,_0x39c135){const _0x31beb8=a78_0x3aa4,_0x4dee1e=_0x39c135[_0x31beb8(0x1ce)](/[.+^${}()|[\]\\]/g,_0x31beb8(0x1c9))[_0x31beb8(0x1ce)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x57a44d=new RegExp('^'+_0x4dee1e+'$');return _0x57a44d[_0x31beb8(0x1dc)](_0x2f4e47);}export function getSanitizedUsername(){const _0x334281=a78_0x3aa4,_0x32ebb7=process['env'][_0x334281(0x1d9)]||process[_0x334281(0x1cf)][_0x334281(0x1ca)]||_0x334281(0x1db);return _0x32ebb7[_0x334281(0x1ce)](/[^a-zA-Z0-9]/g,'')[_0x334281(0x1d1)]();}export function generateRandomHex(){const _0x353323=a78_0x3aa4,_0x5561e3=Math['floor'](Math[_0x353323(0x1cb)]()*0xfffff);return _0x5561e3[_0x353323(0x1c7)](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- function a79_0x1275(_0x551538,_0x31f8e7){const _0x19e144=a79_0x19e1();return a79_0x1275=function(_0x1275ab,_0x58eb21){_0x1275ab=_0x1275ab-0x112;let _0x14441d=_0x19e144[_0x1275ab];return _0x14441d;},a79_0x1275(_0x551538,_0x31f8e7);}function a79_0x19e1(){const _0x42ab4a=['21752UmcDEj','420OcQvkb','808052KogdTt','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','length','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','includes','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','join','696JiZPxr','database','trim','1327336gvrzNL','24766230njlvjC','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','2990022mJXKBE','10399165njHXzC','push','9ntiYoJ','catalog','43690elAOGC','table','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)'];a79_0x19e1=function(){return _0x42ab4a;};return a79_0x19e1();}(function(_0x44fa7a,_0x514053){const _0xe99725=a79_0x1275,_0x2497ec=_0x44fa7a();while(!![]){try{const _0x459ddd=-parseInt(_0xe99725(0x125))/0x1+-parseInt(_0xe99725(0x123))/0x2*(-parseInt(_0xe99725(0x124))/0x3)+parseInt(_0xe99725(0x115))/0x4*(parseInt(_0xe99725(0x120))/0x5)+-parseInt(_0xe99725(0x11b))/0x6+parseInt(_0xe99725(0x11c))/0x7+parseInt(_0xe99725(0x118))/0x8+-parseInt(_0xe99725(0x11e))/0x9*(parseInt(_0xe99725(0x119))/0xa);if(_0x459ddd===_0x514053)break;else _0x2497ec['push'](_0x2497ec['shift']());}catch(_0x22084a){_0x2497ec['push'](_0x2497ec['shift']());}}}(a79_0x19e1,0xde8c0));function hasWildcard(_0x337eea){const _0x41a788=a79_0x1275;return _0x337eea[_0x41a788(0x129)]('*')||_0x337eea['includes']('?');}export function parseTableReference(_0x5f42f8){const _0x4533b9=a79_0x1275;if(!_0x5f42f8||_0x5f42f8[_0x4533b9(0x117)]()[_0x4533b9(0x127)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x1128e9=_0x5f42f8[_0x4533b9(0x117)](),_0x25fc58={'original':_0x1128e9},_0x1051c9=_0x1128e9['split']('.');if(_0x1051c9[_0x4533b9(0x127)]===0x1){const _0x382aec=_0x1051c9[0x0];if(!_0x382aec)throw new Error(_0x4533b9(0x112));_0x25fc58['table']=_0x382aec;}else{if(_0x1051c9[_0x4533b9(0x127)]===0x2){const [_0x4fc7ac,_0x7ea5af]=_0x1051c9;if(!_0x4fc7ac)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x7ea5af)throw new Error(_0x4533b9(0x122));_0x25fc58['database']=_0x4fc7ac,_0x25fc58[_0x4533b9(0x121)]=_0x7ea5af;}else{if(_0x1051c9[_0x4533b9(0x127)]===0x3){const [_0x16e373,_0x2fc7e3,_0x2b2e0e]=_0x1051c9;if(!_0x16e373||!_0x2fc7e3||!_0x2b2e0e)throw new Error(_0x4533b9(0x128));_0x25fc58[_0x4533b9(0x11f)]=_0x16e373,_0x25fc58['database']=_0x2fc7e3,_0x25fc58['table']=_0x2b2e0e;}else throw new Error(_0x4533b9(0x113));}}return _0x25fc58;}export function formatTableReference(_0x38f614){const _0x3b175c=a79_0x1275,_0x2c35dd=[];return _0x38f614[_0x3b175c(0x11f)]&&_0x2c35dd[_0x3b175c(0x11d)](_0x38f614['catalog']),_0x38f614[_0x3b175c(0x116)]&&_0x2c35dd['push'](_0x38f614[_0x3b175c(0x116)]),_0x38f614[_0x3b175c(0x121)]&&_0x2c35dd[_0x3b175c(0x11d)](_0x38f614[_0x3b175c(0x121)]),_0x2c35dd[_0x3b175c(0x114)]('.');}export function validateTableListReference(_0x308def){return undefined;}export function validateTableDescribeReference(_0x4fa50b){const _0x4cc557=a79_0x1275;if(!_0x4fa50b['table'])return _0x4cc557(0x126);if(_0x4fa50b[_0x4cc557(0x116)]&&hasWildcard(_0x4fa50b[_0x4cc557(0x116)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x4fa50b[_0x4cc557(0x121)]))return _0x4cc557(0x11a);return undefined;}
1
+ function a79_0x3bc1(_0x2e0485,_0x381de6){const _0x51ba77=a79_0x51ba();return a79_0x3bc1=function(_0x3bc102,_0x4112ce){_0x3bc102=_0x3bc102-0xb3;let _0x4ab172=_0x51ba77[_0x3bc102];return _0x4ab172;},a79_0x3bc1(_0x2e0485,_0x381de6);}(function(_0x33674f,_0x5437dc){const _0x2beec8=a79_0x3bc1,_0x2db93f=_0x33674f();while(!![]){try{const _0x3e1412=-parseInt(_0x2beec8(0xb4))/0x1*(-parseInt(_0x2beec8(0xc5))/0x2)+parseInt(_0x2beec8(0xc0))/0x3+parseInt(_0x2beec8(0xbb))/0x4+-parseInt(_0x2beec8(0xc8))/0x5*(parseInt(_0x2beec8(0xb5))/0x6)+parseInt(_0x2beec8(0xc9))/0x7*(-parseInt(_0x2beec8(0xc3))/0x8)+-parseInt(_0x2beec8(0xb8))/0x9+parseInt(_0x2beec8(0xc7))/0xa;if(_0x3e1412===_0x5437dc)break;else _0x2db93f['push'](_0x2db93f['shift']());}catch(_0x59c6e6){_0x2db93f['push'](_0x2db93f['shift']());}}}(a79_0x51ba,0xddb8e));function hasWildcard(_0x2d5aa8){const _0x49ee31=a79_0x3bc1;return _0x2d5aa8[_0x49ee31(0xbe)]('*')||_0x2d5aa8[_0x49ee31(0xbe)]('?');}export function parseTableReference(_0x28430b){const _0x182211=a79_0x3bc1;if(!_0x28430b||_0x28430b['trim']()[_0x182211(0xb6)]===0x0)throw new Error(_0x182211(0xc6));const _0x3e0041=_0x28430b[_0x182211(0xbd)](),_0x34e34c={'original':_0x3e0041},_0x56737a=_0x3e0041['split']('.');if(_0x56737a['length']===0x1){const _0x445f4a=_0x56737a[0x0];if(!_0x445f4a)throw new Error(_0x182211(0xb3));_0x34e34c[_0x182211(0xc1)]=_0x445f4a;}else{if(_0x56737a[_0x182211(0xb6)]===0x2){const [_0x2535a4,_0x5e82de]=_0x56737a;if(!_0x2535a4)throw new Error(_0x182211(0xb9));if(!_0x5e82de)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x34e34c[_0x182211(0xc2)]=_0x2535a4,_0x34e34c[_0x182211(0xc1)]=_0x5e82de;}else{if(_0x56737a[_0x182211(0xb6)]===0x3){const [_0x4ab168,_0xb1836c,_0x16999c]=_0x56737a;if(!_0x4ab168||!_0xb1836c||!_0x16999c)throw new Error(_0x182211(0xbf));_0x34e34c['catalog']=_0x4ab168,_0x34e34c[_0x182211(0xc2)]=_0xb1836c,_0x34e34c[_0x182211(0xc1)]=_0x16999c;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x34e34c;}function a79_0x51ba(){const _0x35e24c=['Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','1813606sLTrmk','6eDcMtj','length','push','13221738fdKmBX','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','4835028dxezpg','catalog','trim','includes','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','95427WSbVzQ','table','database','8QIPEfo','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','2uKoyuO','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','20139820MtJgGu','8914090RkeIaG','6356560rNzkFr'];a79_0x51ba=function(){return _0x35e24c;};return a79_0x51ba();}export function formatTableReference(_0x358b5d){const _0x82264d=a79_0x3bc1,_0x446918=[];return _0x358b5d[_0x82264d(0xbc)]&&_0x446918[_0x82264d(0xb7)](_0x358b5d['catalog']),_0x358b5d[_0x82264d(0xc2)]&&_0x446918[_0x82264d(0xb7)](_0x358b5d[_0x82264d(0xc2)]),_0x358b5d['table']&&_0x446918[_0x82264d(0xb7)](_0x358b5d[_0x82264d(0xc1)]),_0x446918['join']('.');}export function validateTableListReference(_0xa903b0){return undefined;}export function validateTableDescribeReference(_0x3e81df){const _0x54b77f=a79_0x3bc1;if(!_0x3e81df['table'])return _0x54b77f(0xba);if(_0x3e81df[_0x54b77f(0xc2)]&&hasWildcard(_0x3e81df[_0x54b77f(0xc2)]))return _0x54b77f(0xca);if(hasWildcard(_0x3e81df['table']))return _0x54b77f(0xc4);return undefined;}
@@ -1 +1 @@
1
- const a80_0x2066fa=a80_0x2a6b;(function(_0x1c2a5e,_0x2dc20e){const _0x1d91c2=a80_0x2a6b,_0x1dfc57=_0x1c2a5e();while(!![]){try{const _0x4e1bb4=-parseInt(_0x1d91c2(0x16d))/0x1*(parseInt(_0x1d91c2(0x15a))/0x2)+parseInt(_0x1d91c2(0x159))/0x3*(parseInt(_0x1d91c2(0x14c))/0x4)+parseInt(_0x1d91c2(0x156))/0x5+-parseInt(_0x1d91c2(0x14f))/0x6+parseInt(_0x1d91c2(0x164))/0x7+parseInt(_0x1d91c2(0x17c))/0x8*(-parseInt(_0x1d91c2(0x150))/0x9)+parseInt(_0x1d91c2(0x176))/0xa;if(_0x4e1bb4===_0x2dc20e)break;else _0x1dfc57['push'](_0x1dfc57['shift']());}catch(_0x40bd71){_0x1dfc57['push'](_0x1dfc57['shift']());}}}(a80_0x4fdf,0xba1eb));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';function a80_0x2a6b(_0x4b15bc,_0x1c34c3){const _0x4fdf7c=a80_0x4fdf();return a80_0x2a6b=function(_0x2a6b97,_0x5f16e2){_0x2a6b97=_0x2a6b97-0x140;let _0x3349e2=_0x4fdf7c[_0x2a6b97];return _0x3349e2;},a80_0x2a6b(_0x4b15bc,_0x1c34c3);}import{pipeline}from'stream/promises';import a80_0x177e09 from'chalk';function safeStringify(_0x3029dc){const _0x2c8e40=a80_0x2a6b;if(typeof _0x3029dc===_0x2c8e40(0x165))return _0x3029dc;if(_0x3029dc instanceof Error)return _0x3029dc['stack']||_0x3029dc['name']+':\x20'+_0x3029dc[_0x2c8e40(0x163)];try{return JSON[_0x2c8e40(0x171)](_0x3029dc,(_0x123e0f,_0x1ec01f)=>{const _0x569d3a=_0x2c8e40;if(_0x1ec01f instanceof Error)return{'name':_0x1ec01f[_0x569d3a(0x16f)],'message':_0x1ec01f['message'],'stack':_0x1ec01f['stack'],'cause':_0x1ec01f['cause']};return _0x1ec01f;});}catch{return String(_0x3029dc);}}function getTimezoneOffset(){const _0x106277=a80_0x2a6b,_0x16830c=-new Date()[_0x106277(0x144)](),_0x4c4288=Math[_0x106277(0x16a)](Math[_0x106277(0x174)](_0x16830c)/0x3c),_0x5e6dea=Math[_0x106277(0x174)](_0x16830c)%0x3c,_0x3a85c0=_0x16830c>=0x0?'+':'-';return''+_0x3a85c0+_0x4c4288['toString']()[_0x106277(0x145)](0x2,'0')+_0x5e6dea['toString']()[_0x106277(0x145)](0x2,'0');}function formatTimestamp(){const _0x39a23d=a80_0x2a6b,_0x222c4c=new Date(),_0x167cb4=_0x222c4c[_0x39a23d(0x148)](),_0x377276=(_0x222c4c[_0x39a23d(0x168)]()+0x1)['toString']()['padStart'](0x2,'0'),_0x4208bd=_0x222c4c[_0x39a23d(0x155)]()[_0x39a23d(0x143)]()[_0x39a23d(0x145)](0x2,'0'),_0x5228e7=_0x222c4c[_0x39a23d(0x14e)]()[_0x39a23d(0x143)]()[_0x39a23d(0x145)](0x2,'0'),_0xdf05c1=_0x222c4c['getMinutes']()[_0x39a23d(0x143)]()['padStart'](0x2,'0'),_0x4d252e=_0x222c4c[_0x39a23d(0x15c)]()[_0x39a23d(0x143)]()[_0x39a23d(0x145)](0x2,'0'),_0x4ea709=_0x222c4c[_0x39a23d(0x154)]()[_0x39a23d(0x143)]()['padStart'](0x3,'0'),_0x4d9266=getTimezoneOffset();return _0x167cb4+'-'+_0x377276+'-'+_0x4208bd+'\x20'+_0x5228e7+':'+_0xdf05c1+':'+_0x4d252e+'.'+_0x4ea709+_0x4d9266;}function formatColoredLogEntry(_0x2a605a,_0x491dfe){const _0x5f2256=a80_0x2a6b,_0x1fa8fe=formatTimestamp(),_0x114d7c=_0x491dfe['map'](safeStringify)[_0x5f2256(0x166)]('\x20'),_0x392a36=a80_0x177e09[_0x5f2256(0x151)](_0x1fa8fe);let _0x4202d1;switch(_0x2a605a){case _0x5f2256(0x178):_0x4202d1=a80_0x177e09[_0x5f2256(0x140)]('['+_0x2a605a+']\x20');break;case _0x5f2256(0x15f):_0x4202d1=a80_0x177e09[_0x5f2256(0x147)]('['+_0x2a605a+']\x20');break;case _0x5f2256(0x160):_0x4202d1=a80_0x177e09[_0x5f2256(0x167)]('['+_0x2a605a+']');break;case _0x5f2256(0x169):_0x4202d1=a80_0x177e09[_0x5f2256(0x151)]('['+_0x2a605a+']');break;default:_0x4202d1='['+_0x2a605a+']';}return _0x392a36+'\x20'+_0x4202d1+'\x20'+_0x114d7c;}export var LogLevel;(function(_0x98662b){const _0x57a0a3=a80_0x2a6b;_0x98662b[_0x98662b['TRACE']=-0x2]='TRACE',_0x98662b[_0x98662b[_0x57a0a3(0x142)]=-0x1]=_0x57a0a3(0x142),_0x98662b[_0x98662b['INFO']=0x0]=_0x57a0a3(0x141),_0x98662b[_0x98662b['WARN']=0x1]=_0x57a0a3(0x146),_0x98662b[_0x98662b[_0x57a0a3(0x15b)]=0x2]=_0x57a0a3(0x15b);}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x2066fa(0x152)];[a80_0x2066fa(0x17b)];[a80_0x2066fa(0x15d)];[a80_0x2066fa(0x14b)];constructor(_0x2bdb0c=LogLevel[a80_0x2066fa(0x141)],_0xd2da21=![]){const _0x59daaf=a80_0x2066fa;this['logDir']=join(homedir(),'.cache',_0x59daaf(0x153),'logs'),this[_0x59daaf(0x15d)]=_0x2bdb0c,this['fileOnly']=_0xd2da21;}async[a80_0x2066fa(0x158)](){const _0x5d6192=a80_0x2066fa;try{await mkdir(this[_0x5d6192(0x17b)],{'recursive':!![]}),await this['rotateOldLogs']();const _0x2f17dc=join(this[_0x5d6192(0x17b)],_0x5d6192(0x17d));this['logStream']=createWriteStream(_0x2f17dc,{'flags':'a'}),this['logStream']['on'](_0x5d6192(0x160),_0x59d844=>{const _0xe873af=_0x5d6192;console[_0xe873af(0x160)](_0xe873af(0x16c),_0x59d844[_0xe873af(0x163)]);}),this[_0x5d6192(0x178)](_0x5d6192(0x14a));}catch(_0x2ad45a){console['error'](_0x5d6192(0x17f),_0x2ad45a);}}async[a80_0x2066fa(0x179)](){const _0x33b224=a80_0x2066fa;try{const _0x34127a=await readdir(this[_0x33b224(0x17b)]),_0x52a9a5=new Date()[_0x33b224(0x14d)]()[_0x33b224(0x15e)]('T')[0x0];if(_0x34127a[_0x33b224(0x17e)](_0x33b224(0x17d))){const _0xe36d8b=join(this[_0x33b224(0x17b)],_0x33b224(0x17d)),_0x23c192=await stat(_0xe36d8b),_0x36db28=new Date(_0x23c192[_0x33b224(0x175)])[_0x33b224(0x14d)]()[_0x33b224(0x15e)]('T')[0x0];if(_0x36db28<_0x52a9a5){const _0x1134f0=join(this[_0x33b224(0x17b)],_0x33b224(0x162)+_0x36db28+_0x33b224(0x17a));await rename(_0xe36d8b,_0x1134f0);}}const _0x4785ed=await readdir(this['logDir']),_0x5efe16=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x13ce1b=_0x4785ed[_0x33b224(0x149)](_0xcde471=>_0x5efe16['test'](_0xcde471));for(const _0x207b59 of _0x13ce1b){const _0x475fa7=join(this[_0x33b224(0x17b)],_0x207b59),_0x40c4ae=join(this[_0x33b224(0x17b)],_0x207b59+_0x33b224(0x157));try{await pipeline(createReadStream(_0x475fa7),createGzip(),createWriteStream(_0x40c4ae)),await unlink(_0x475fa7);}catch(_0x291508){console[_0x33b224(0x160)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x207b59+':',_0x291508);}}}catch{}}[a80_0x2066fa(0x169)](..._0x2cbe25){const _0x18571d=a80_0x2066fa;if(this['logLevel']>LogLevel[_0x18571d(0x142)])return;const _0x3c1617=formatColoredLogEntry(_0x18571d(0x169),_0x2cbe25);this[_0x18571d(0x152)]?.[_0x18571d(0x172)](_0x3c1617+'\x0a');}[a80_0x2066fa(0x16b)](..._0x4a50c2){const _0x4ba8f4=a80_0x2066fa;if(this[_0x4ba8f4(0x15d)]>LogLevel[_0x4ba8f4(0x170)])return;const _0x49c142=formatColoredLogEntry(_0x4ba8f4(0x16b),_0x4a50c2);this[_0x4ba8f4(0x152)]?.[_0x4ba8f4(0x172)](_0x49c142+'\x0a');}['info'](..._0x347b6b){const _0x1d956c=a80_0x2066fa;if(this[_0x1d956c(0x15d)]>LogLevel[_0x1d956c(0x141)])return;const _0x2b1399=formatColoredLogEntry(_0x1d956c(0x178),_0x347b6b);!this[_0x1d956c(0x14b)]&&console[_0x1d956c(0x177)](_0x2b1399),this[_0x1d956c(0x152)]?.[_0x1d956c(0x172)](_0x2b1399+'\x0a');}['warn'](..._0x1abb4e){const _0x5c7159=a80_0x2066fa;if(this[_0x5c7159(0x15d)]>LogLevel[_0x5c7159(0x146)])return;const _0x337e7c=formatColoredLogEntry(_0x5c7159(0x15f),_0x1abb4e);!this[_0x5c7159(0x14b)]&&console['error'](_0x337e7c),this[_0x5c7159(0x152)]?.[_0x5c7159(0x172)](_0x337e7c+'\x0a');}['error'](..._0x58ff65){const _0x360faa=a80_0x2066fa,_0x527aee=formatColoredLogEntry('error',_0x58ff65);!this[_0x360faa(0x14b)]&&console['error'](_0x527aee),this[_0x360faa(0x152)]?.[_0x360faa(0x172)](_0x527aee+'\x0a');}async[a80_0x2066fa(0x161)](){const _0x3aad13=a80_0x2066fa;return this[_0x3aad13(0x178)](_0x3aad13(0x16e)),new Promise(_0x558403=>{const _0x3db36a=_0x3aad13;this[_0x3db36a(0x152)]?this[_0x3db36a(0x152)][_0x3db36a(0x173)](()=>{_0x558403();}):_0x558403();});}['getLogPath'](){const _0x39d9c0=a80_0x2066fa;return join(this['logDir'],_0x39d9c0(0x17d));}}function a80_0x4fdf(){const _0x135c17=['720812mpXgKf','toISOString','getHours','6905778bkLXgL','9IPlrJf','gray','logStream','tdx','getMilliseconds','getDate','3220290CXAuoD','.gz','init','6ZnkHWq','13802dMqteS','ERROR','getSeconds','logLevel','split','warn','error','close','proxy-','message','8357167kRporw','string','join','red','getMonth','debug','floor','trace','Warning:\x20Error\x20writing\x20to\x20proxy.log:','153NfiBIP','Proxy\x20session\x20ended','name','TRACE','stringify','write','end','abs','mtime','9763520ozsGTr','log','info','rotateOldLogs','.log','logDir','1644272sIMeCj','proxy.log','includes','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','cyan','INFO','DEBUG','toString','getTimezoneOffset','padStart','WARN','yellow','getFullYear','filter','Proxy\x20server\x20started','fileOnly'];a80_0x4fdf=function(){return _0x135c17;};return a80_0x4fdf();}
1
+ const a80_0x3aa41f=a80_0x307d;(function(_0x3b92f2,_0x4930ec){const _0x247c63=a80_0x307d,_0x35db6e=_0x3b92f2();while(!![]){try{const _0x3b6bc3=-parseInt(_0x247c63(0xc2))/0x1+parseInt(_0x247c63(0xc7))/0x2*(parseInt(_0x247c63(0xc3))/0x3)+parseInt(_0x247c63(0xc6))/0x4*(parseInt(_0x247c63(0xc1))/0x5)+parseInt(_0x247c63(0xf2))/0x6*(parseInt(_0x247c63(0xec))/0x7)+-parseInt(_0x247c63(0xcf))/0x8*(-parseInt(_0x247c63(0xe1))/0x9)+-parseInt(_0x247c63(0xc5))/0xa*(-parseInt(_0x247c63(0xcc))/0xb)+-parseInt(_0x247c63(0xde))/0xc*(parseInt(_0x247c63(0xf3))/0xd);if(_0x3b6bc3===_0x4930ec)break;else _0x35db6e['push'](_0x35db6e['shift']());}catch(_0x32f3e6){_0x35db6e['push'](_0x35db6e['shift']());}}}(a80_0x45c1,0x4f3d9));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a80_0x307d(_0x161aca,_0x2efe13){const _0x45c176=a80_0x45c1();return a80_0x307d=function(_0x307d43,_0x378358){_0x307d43=_0x307d43-0xc1;let _0x54208d=_0x45c176[_0x307d43];return _0x54208d;},a80_0x307d(_0x161aca,_0x2efe13);}import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x20199d from'chalk';function safeStringify(_0x3da47c){const _0x4ceba4=a80_0x307d;if(typeof _0x3da47c===_0x4ceba4(0xdd))return _0x3da47c;if(_0x3da47c instanceof Error)return _0x3da47c[_0x4ceba4(0xf9)]||_0x3da47c[_0x4ceba4(0xe6)]+':\x20'+_0x3da47c['message'];try{return JSON['stringify'](_0x3da47c,(_0x2f7b92,_0x4147d9)=>{const _0xcb0f14=_0x4ceba4;if(_0x4147d9 instanceof Error)return{'name':_0x4147d9[_0xcb0f14(0xe6)],'message':_0x4147d9[_0xcb0f14(0xd9)],'stack':_0x4147d9[_0xcb0f14(0xf9)],'cause':_0x4147d9[_0xcb0f14(0xd3)]};return _0x4147d9;});}catch{return String(_0x3da47c);}}function getTimezoneOffset(){const _0x43d7cf=a80_0x307d,_0xbb5f3a=-new Date()[_0x43d7cf(0xc4)](),_0x4d82a7=Math['floor'](Math[_0x43d7cf(0xf7)](_0xbb5f3a)/0x3c),_0x1117a2=Math[_0x43d7cf(0xf7)](_0xbb5f3a)%0x3c,_0x412add=_0xbb5f3a>=0x0?'+':'-';return''+_0x412add+_0x4d82a7[_0x43d7cf(0xdf)]()[_0x43d7cf(0xd5)](0x2,'0')+_0x1117a2[_0x43d7cf(0xdf)]()['padStart'](0x2,'0');}function formatTimestamp(){const _0x269ede=a80_0x307d,_0x1ac33f=new Date(),_0x4232e1=_0x1ac33f[_0x269ede(0xcd)](),_0x3a45f9=(_0x1ac33f[_0x269ede(0xdc)]()+0x1)[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x2,'0'),_0x3b29f6=_0x1ac33f['getDate']()[_0x269ede(0xdf)]()['padStart'](0x2,'0'),_0x6807bd=_0x1ac33f[_0x269ede(0xe9)]()['toString']()[_0x269ede(0xd5)](0x2,'0'),_0x571fd4=_0x1ac33f['getMinutes']()['toString']()['padStart'](0x2,'0'),_0x147ada=_0x1ac33f['getSeconds']()[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x2,'0'),_0x430391=_0x1ac33f[_0x269ede(0x100)]()[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x3,'0'),_0x4a0d2c=getTimezoneOffset();return _0x4232e1+'-'+_0x3a45f9+'-'+_0x3b29f6+'\x20'+_0x6807bd+':'+_0x571fd4+':'+_0x147ada+'.'+_0x430391+_0x4a0d2c;}function formatColoredLogEntry(_0x844e09,_0x3a66d6){const _0x4bcd9e=a80_0x307d,_0x1f7384=formatTimestamp(),_0x40e602=_0x3a66d6[_0x4bcd9e(0xfe)](safeStringify)[_0x4bcd9e(0xc9)]('\x20'),_0x4cab00=a80_0x20199d[_0x4bcd9e(0xe8)](_0x1f7384);let _0x29973f;switch(_0x844e09){case _0x4bcd9e(0xfb):_0x29973f=a80_0x20199d[_0x4bcd9e(0xd8)]('['+_0x844e09+']\x20');break;case _0x4bcd9e(0xfd):_0x29973f=a80_0x20199d[_0x4bcd9e(0xc8)]('['+_0x844e09+']\x20');break;case _0x4bcd9e(0xfc):_0x29973f=a80_0x20199d[_0x4bcd9e(0xea)]('['+_0x844e09+']');break;case _0x4bcd9e(0xda):_0x29973f=a80_0x20199d[_0x4bcd9e(0xe8)]('['+_0x844e09+']');break;default:_0x29973f='['+_0x844e09+']';}return _0x4cab00+'\x20'+_0x29973f+'\x20'+_0x40e602;}export var LogLevel;function a80_0x45c1(){const _0xe163c3=['12XlGVld','1752569UvzpFL','filter','mtime','Proxy\x20session\x20ended','abs','Proxy\x20server\x20started','stack','logs','info','error','warn','map','TRACE','getMilliseconds','2507025KmXMuJ','241363xdEPTH','66lfMeez','getTimezoneOffset','590KhSnMt','4qsANwv','57606NtQyNB','yellow','join','init','INFO','8107KZIvvm','getFullYear','DEBUG','8jhVgpr','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','getLogPath','proxy.log','cause','ERROR','padStart','end','WARN','cyan','message','debug','logLevel','getMonth','string','60PBHaLc','toString','write','506295FSFuXc','split','proxy-','.cache','.log','name','rotateOldLogs','gray','getHours','red','tdx','18158tcqWEX','logDir','trace','fileOnly','Warning:\x20Error\x20writing\x20to\x20proxy.log:','logStream'];a80_0x45c1=function(){return _0xe163c3;};return a80_0x45c1();}(function(_0x528c9b){const _0x5d8726=a80_0x307d;_0x528c9b[_0x528c9b[_0x5d8726(0xff)]=-0x2]=_0x5d8726(0xff),_0x528c9b[_0x528c9b['DEBUG']=-0x1]=_0x5d8726(0xce),_0x528c9b[_0x528c9b['INFO']=0x0]='INFO',_0x528c9b[_0x528c9b[_0x5d8726(0xd7)]=0x1]=_0x5d8726(0xd7),_0x528c9b[_0x528c9b[_0x5d8726(0xd4)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x3aa41f(0xf1)];[a80_0x3aa41f(0xed)];['logLevel'];[a80_0x3aa41f(0xef)];constructor(_0x1d59db=LogLevel[a80_0x3aa41f(0xcb)],_0x4da62c=![]){const _0x5da9be=a80_0x3aa41f;this['logDir']=join(homedir(),_0x5da9be(0xe4),_0x5da9be(0xeb),_0x5da9be(0xfa)),this[_0x5da9be(0xdb)]=_0x1d59db,this[_0x5da9be(0xef)]=_0x4da62c;}async[a80_0x3aa41f(0xca)](){const _0x27d772=a80_0x3aa41f;try{await mkdir(this[_0x27d772(0xed)],{'recursive':!![]}),await this[_0x27d772(0xe7)]();const _0x2b826c=join(this[_0x27d772(0xed)],_0x27d772(0xd2));this[_0x27d772(0xf1)]=createWriteStream(_0x2b826c,{'flags':'a'}),this[_0x27d772(0xf1)]['on'](_0x27d772(0xfc),_0x1ff279=>{const _0x4b6ff4=_0x27d772;console['error'](_0x4b6ff4(0xf0),_0x1ff279[_0x4b6ff4(0xd9)]);}),this['info'](_0x27d772(0xf8));}catch(_0x473068){console['error'](_0x27d772(0xd0),_0x473068);}}async[a80_0x3aa41f(0xe7)](){const _0xb77364=a80_0x3aa41f;try{const _0x4c231f=await readdir(this['logDir']),_0x51133e=new Date()['toISOString']()['split']('T')[0x0];if(_0x4c231f['includes']('proxy.log')){const _0x80628b=join(this[_0xb77364(0xed)],_0xb77364(0xd2)),_0x20682f=await stat(_0x80628b),_0x3458e9=new Date(_0x20682f[_0xb77364(0xf5)])['toISOString']()[_0xb77364(0xe2)]('T')[0x0];if(_0x3458e9<_0x51133e){const _0x44f6df=join(this['logDir'],_0xb77364(0xe3)+_0x3458e9+_0xb77364(0xe5));await rename(_0x80628b,_0x44f6df);}}const _0x213c81=await readdir(this[_0xb77364(0xed)]),_0x1e7255=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x521585=_0x213c81[_0xb77364(0xf4)](_0x54b9ad=>_0x1e7255['test'](_0x54b9ad));for(const _0x87c6fa of _0x521585){const _0x3d6c94=join(this['logDir'],_0x87c6fa),_0x5dc235=join(this['logDir'],_0x87c6fa+'.gz');try{await pipeline(createReadStream(_0x3d6c94),createGzip(),createWriteStream(_0x5dc235)),await unlink(_0x3d6c94);}catch(_0x2f89f3){console[_0xb77364(0xfc)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x87c6fa+':',_0x2f89f3);}}}catch{}}[a80_0x3aa41f(0xda)](..._0x50132a){const _0x20b25f=a80_0x3aa41f;if(this['logLevel']>LogLevel['DEBUG'])return;const _0x91836=formatColoredLogEntry(_0x20b25f(0xda),_0x50132a);this['logStream']?.[_0x20b25f(0xe0)](_0x91836+'\x0a');}[a80_0x3aa41f(0xee)](..._0x26430d){const _0x3fa6c0=a80_0x3aa41f;if(this[_0x3fa6c0(0xdb)]>LogLevel[_0x3fa6c0(0xff)])return;const _0xfed187=formatColoredLogEntry(_0x3fa6c0(0xee),_0x26430d);this[_0x3fa6c0(0xf1)]?.[_0x3fa6c0(0xe0)](_0xfed187+'\x0a');}[a80_0x3aa41f(0xfb)](..._0x4dc37d){const _0x599cb6=a80_0x3aa41f;if(this[_0x599cb6(0xdb)]>LogLevel[_0x599cb6(0xcb)])return;const _0xa1a645=formatColoredLogEntry(_0x599cb6(0xfb),_0x4dc37d);!this[_0x599cb6(0xef)]&&console['log'](_0xa1a645),this[_0x599cb6(0xf1)]?.[_0x599cb6(0xe0)](_0xa1a645+'\x0a');}[a80_0x3aa41f(0xfd)](..._0x1484c4){const _0x4b2b48=a80_0x3aa41f;if(this[_0x4b2b48(0xdb)]>LogLevel[_0x4b2b48(0xd7)])return;const _0x104f60=formatColoredLogEntry(_0x4b2b48(0xfd),_0x1484c4);!this[_0x4b2b48(0xef)]&&console['error'](_0x104f60),this[_0x4b2b48(0xf1)]?.[_0x4b2b48(0xe0)](_0x104f60+'\x0a');}[a80_0x3aa41f(0xfc)](..._0x168dc4){const _0x551100=a80_0x3aa41f,_0xbd0c7a=formatColoredLogEntry(_0x551100(0xfc),_0x168dc4);!this[_0x551100(0xef)]&&console['error'](_0xbd0c7a),this[_0x551100(0xf1)]?.[_0x551100(0xe0)](_0xbd0c7a+'\x0a');}async['close'](){const _0x42cd90=a80_0x3aa41f;return this[_0x42cd90(0xfb)](_0x42cd90(0xf6)),new Promise(_0x4090c9=>{const _0x29d587=_0x42cd90;this[_0x29d587(0xf1)]?this[_0x29d587(0xf1)][_0x29d587(0xd6)](()=>{_0x4090c9();}):_0x4090c9();});}[a80_0x3aa41f(0xd1)](){const _0x13e191=a80_0x3aa41f;return join(this[_0x13e191(0xed)],_0x13e191(0xd2));}}
@@ -1 +1 @@
1
- (function(_0x580d59,_0xad5fd3){const _0x3b57b7=a81_0x4697,_0x20979f=_0x580d59();while(!![]){try{const _0x54eca7=parseInt(_0x3b57b7(0x152))/0x1*(-parseInt(_0x3b57b7(0x150))/0x2)+-parseInt(_0x3b57b7(0x16f))/0x3*(-parseInt(_0x3b57b7(0x16c))/0x4)+parseInt(_0x3b57b7(0x16d))/0x5+-parseInt(_0x3b57b7(0x16b))/0x6+-parseInt(_0x3b57b7(0x166))/0x7+-parseInt(_0x3b57b7(0x15c))/0x8+parseInt(_0x3b57b7(0x165))/0x9;if(_0x54eca7===_0xad5fd3)break;else _0x20979f['push'](_0x20979f['shift']());}catch(_0x559bd7){_0x20979f['push'](_0x20979f['shift']());}}}(a81_0x4d8e,0xe5d94));import{formatRows}from'./formatters.js';function a81_0x4d8e(){const _0x4b110f=['\x20\x20\x20\x20','\x20\x20\x20','showMetadata','folder','showIcons','sort','segmentCount','14613544iiiXPW','🎯\x20','children','folderCount','name','push','length','join','dim','27989676uZacFo','8804894oqJFNp','segment','population','(empty)','localeCompare','3305694MrWkCG','8DuGylI','8275585HttLXC','└──\x20','1282161YYFAFA','showTreeLines','metadata','📁\x20','2bjhAzd','\x20folder','1042911rwnIqH','indent','type'];a81_0x4d8e=function(){return _0x4b110f;};return a81_0x4d8e();}function a81_0x4697(_0x2b5b76,_0x286306){const _0x4d8e31=a81_0x4d8e();return a81_0x4697=function(_0x4697a1,_0x95b4ca){_0x4697a1=_0x4697a1-0x14e;let _0x12ddb4=_0x4d8e31[_0x4697a1];return _0x12ddb4;},a81_0x4697(_0x2b5b76,_0x286306);}import a81_0x126daa from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x34c29a,_0x5265a9={},_0x5d496d=0x0,_0x3e3ec2=''){const _0x132554=a81_0x4697,_0x17a4fb={...DEFAULT_OPTIONS,..._0x5265a9},_0xcfd075=[],_0x58efc9=[..._0x34c29a][_0x132554(0x15a)]((_0x3e481b,_0x592de0)=>_0x3e481b['name']['localeCompare'](_0x592de0[_0x132554(0x160)]));for(let _0xa02b92=0x0;_0xa02b92<_0x58efc9[_0x132554(0x162)];_0xa02b92++){const _0x393953=_0x58efc9[_0xa02b92],_0x29e597=_0xa02b92===_0x58efc9[_0x132554(0x162)]-0x1;let _0x3f700b='';_0x5d496d>0x0&&(_0x3f700b+=_0x3e3ec2);_0x17a4fb['showTreeLines']&&_0x5d496d>0x0&&(_0x3f700b+=a81_0x126daa[_0x132554(0x164)](_0x29e597?_0x132554(0x16e):'├──\x20'));_0x17a4fb['showIcons']&&(_0x3f700b+=_0x393953[_0x132554(0x154)]===_0x132554(0x158)?_0x132554(0x14f):_0x132554(0x15d));_0x3f700b+=_0x393953['name'];if(_0x17a4fb[_0x132554(0x157)]){if(_0x393953[_0x132554(0x154)]===_0x132554(0x158)){const _0x13b787=[];_0x393953[_0x132554(0x14e)][_0x132554(0x15b)]&&_0x13b787[_0x132554(0x161)](_0x393953[_0x132554(0x14e)]['segmentCount']+'\x20segment'+(_0x393953[_0x132554(0x14e)][_0x132554(0x15b)]!==0x1?'s':'')),_0x393953[_0x132554(0x14e)][_0x132554(0x15f)]&&_0x13b787[_0x132554(0x161)](_0x393953[_0x132554(0x14e)][_0x132554(0x15f)]+_0x132554(0x151)+(_0x393953[_0x132554(0x14e)]['folderCount']!==0x1?'s':'')),_0x13b787[_0x132554(0x162)]>0x0&&(_0x3f700b+=a81_0x126daa[_0x132554(0x164)]('\x20('+_0x13b787[_0x132554(0x163)](',\x20')+')'));}else _0x393953[_0x132554(0x154)]===_0x132554(0x167)&&_0x393953[_0x132554(0x168)]!==undefined&&(_0x3f700b+=a81_0x126daa['dim']('\x20('+formatRows(_0x393953[_0x132554(0x168)])+')'));}_0xcfd075['push'](_0x3f700b);if(_0x393953[_0x132554(0x15e)]&&_0x393953[_0x132554(0x15e)][_0x132554(0x162)]>0x0){let _0x5ae144;if(_0x5d496d===0x0)_0x5ae144='';else _0x17a4fb[_0x132554(0x170)]?_0x5ae144=_0x3e3ec2+(_0x29e597?_0x132554(0x155):a81_0x126daa['dim']('│')+_0x132554(0x156)):_0x5ae144=_0x3e3ec2+_0x17a4fb[_0x132554(0x153)];const _0x46e9fd=formatTree(_0x393953[_0x132554(0x15e)],_0x17a4fb,_0x5d496d+0x1,_0x5ae144);_0xcfd075['push'](_0x46e9fd);}}return _0xcfd075['join']('\x0a');}export function formatFlatList(_0x1af940,_0x2ceca3,_0x11d90c={}){const _0x49c057=a81_0x4697,_0x28af9c={...DEFAULT_OPTIONS,..._0x11d90c},_0x422b8e=[];for(const _0x155921 of _0x1af940){_0x422b8e[_0x49c057(0x161)]({'name':_0x155921[_0x49c057(0x160)],'icon':_0x28af9c[_0x49c057(0x159)]?'📁':'','metadata':undefined});}for(const _0x2cd04b of _0x2ceca3){const _0x4d9ce9=_0x28af9c[_0x49c057(0x157)]&&_0x2cd04b[_0x49c057(0x168)]!==undefined?a81_0x126daa[_0x49c057(0x164)]('\x20('+formatRows(_0x2cd04b['population'])+')'):'';_0x422b8e['push']({'name':_0x2cd04b[_0x49c057(0x160)],'icon':_0x28af9c[_0x49c057(0x159)]?'🎯':'','metadata':_0x4d9ce9});}_0x422b8e[_0x49c057(0x15a)]((_0x8bd5ee,_0x13a3e8)=>_0x8bd5ee[_0x49c057(0x160)][_0x49c057(0x16a)](_0x13a3e8[_0x49c057(0x160)]));if(_0x422b8e['length']===0x0)return _0x49c057(0x169);const _0x1b5f99=_0x422b8e['map'](_0x3a1468=>{const _0x213ddc=_0x49c057,_0x457616=_0x3a1468['icon']?_0x3a1468['icon']+'\x20':'',_0xbf9d91=_0x3a1468[_0x213ddc(0x14e)]||'';return''+_0x457616+_0x3a1468[_0x213ddc(0x160)]+_0xbf9d91;});return _0x1b5f99[_0x49c057(0x163)]('\x0a');}
1
+ (function(_0x59ddbc,_0x62b989){const _0x4c63fd=a81_0x4a0b,_0x20f387=_0x59ddbc();while(!![]){try{const _0x572380=-parseInt(_0x4c63fd(0x16f))/0x1+parseInt(_0x4c63fd(0x16b))/0x2*(parseInt(_0x4c63fd(0x17e))/0x3)+-parseInt(_0x4c63fd(0x17d))/0x4+-parseInt(_0x4c63fd(0x18b))/0x5*(parseInt(_0x4c63fd(0x176))/0x6)+-parseInt(_0x4c63fd(0x179))/0x7*(-parseInt(_0x4c63fd(0x181))/0x8)+-parseInt(_0x4c63fd(0x16e))/0x9+parseInt(_0x4c63fd(0x18c))/0xa;if(_0x572380===_0x62b989)break;else _0x20f387['push'](_0x20f387['shift']());}catch(_0x91f30d){_0x20f387['push'](_0x20f387['shift']());}}}(a81_0x2b5a,0xf065c));import{formatRows}from'./formatters.js';import a81_0x63b894 from'chalk';function a81_0x2b5a(){const _0x2142f7=['sort','3676752owwCHV','segment','showMetadata','5670297eDyRvO','812047rXzvfR','\x20\x20\x20\x20','localeCompare','name','length','population','folderCount','1782WLzLYm','dim','metadata','7tPfCAH','children','indent','join','446992MRTqvo','3UsITSn','folder','type','3577176opJQqR','showIcons','📁\x20','segmentCount','push','showTreeLines','icon','\x20\x20\x20','\x20segment','\x20folder','20595SPtVXv','14763160NFVKBr','🎯\x20'];a81_0x2b5a=function(){return _0x2142f7;};return a81_0x2b5a();}function a81_0x4a0b(_0x1cb937,_0x384648){const _0x2b5ac0=a81_0x2b5a();return a81_0x4a0b=function(_0x4a0b1b,_0x3a68d0){_0x4a0b1b=_0x4a0b1b-0x16a;let _0x4cb081=_0x2b5ac0[_0x4a0b1b];return _0x4cb081;},a81_0x4a0b(_0x1cb937,_0x384648);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x20cf24,_0x330867={},_0x2fc3fe=0x0,_0x4cb7c2=''){const _0x3075e0=a81_0x4a0b,_0x1ef595={...DEFAULT_OPTIONS,..._0x330867},_0x52ab82=[],_0x3871d8=[..._0x20cf24][_0x3075e0(0x16a)]((_0x10e1bd,_0x357785)=>_0x10e1bd[_0x3075e0(0x172)][_0x3075e0(0x171)](_0x357785['name']));for(let _0x3ceb5c=0x0;_0x3ceb5c<_0x3871d8['length'];_0x3ceb5c++){const _0x367497=_0x3871d8[_0x3ceb5c],_0x517be1=_0x3ceb5c===_0x3871d8[_0x3075e0(0x173)]-0x1;let _0x2258cd='';_0x2fc3fe>0x0&&(_0x2258cd+=_0x4cb7c2);_0x1ef595[_0x3075e0(0x186)]&&_0x2fc3fe>0x0&&(_0x2258cd+=a81_0x63b894[_0x3075e0(0x177)](_0x517be1?'└──\x20':'├──\x20'));_0x1ef595[_0x3075e0(0x182)]&&(_0x2258cd+=_0x367497[_0x3075e0(0x180)]==='folder'?_0x3075e0(0x183):_0x3075e0(0x18d));_0x2258cd+=_0x367497['name'];if(_0x1ef595[_0x3075e0(0x16d)]){if(_0x367497['type']===_0x3075e0(0x17f)){const _0x3f8f78=[];_0x367497['metadata'][_0x3075e0(0x184)]&&_0x3f8f78['push'](_0x367497['metadata']['segmentCount']+_0x3075e0(0x189)+(_0x367497[_0x3075e0(0x178)][_0x3075e0(0x184)]!==0x1?'s':'')),_0x367497['metadata'][_0x3075e0(0x175)]&&_0x3f8f78[_0x3075e0(0x185)](_0x367497[_0x3075e0(0x178)]['folderCount']+_0x3075e0(0x18a)+(_0x367497[_0x3075e0(0x178)][_0x3075e0(0x175)]!==0x1?'s':'')),_0x3f8f78['length']>0x0&&(_0x2258cd+=a81_0x63b894['dim']('\x20('+_0x3f8f78[_0x3075e0(0x17c)](',\x20')+')'));}else _0x367497[_0x3075e0(0x180)]===_0x3075e0(0x16c)&&_0x367497[_0x3075e0(0x174)]!==undefined&&(_0x2258cd+=a81_0x63b894[_0x3075e0(0x177)]('\x20('+formatRows(_0x367497[_0x3075e0(0x174)])+')'));}_0x52ab82[_0x3075e0(0x185)](_0x2258cd);if(_0x367497[_0x3075e0(0x17a)]&&_0x367497[_0x3075e0(0x17a)]['length']>0x0){let _0x1099df;if(_0x2fc3fe===0x0)_0x1099df='';else _0x1ef595[_0x3075e0(0x186)]?_0x1099df=_0x4cb7c2+(_0x517be1?_0x3075e0(0x170):a81_0x63b894[_0x3075e0(0x177)]('│')+_0x3075e0(0x188)):_0x1099df=_0x4cb7c2+_0x1ef595[_0x3075e0(0x17b)];const _0x5e7f26=formatTree(_0x367497[_0x3075e0(0x17a)],_0x1ef595,_0x2fc3fe+0x1,_0x1099df);_0x52ab82['push'](_0x5e7f26);}}return _0x52ab82['join']('\x0a');}export function formatFlatList(_0x4e776f,_0x88d516,_0x14fec5={}){const _0x74ca57=a81_0x4a0b,_0x412cbb={...DEFAULT_OPTIONS,..._0x14fec5},_0x273155=[];for(const _0x3f9b6a of _0x4e776f){_0x273155[_0x74ca57(0x185)]({'name':_0x3f9b6a[_0x74ca57(0x172)],'icon':_0x412cbb[_0x74ca57(0x182)]?'📁':'','metadata':undefined});}for(const _0x401c77 of _0x88d516){const _0x186755=_0x412cbb[_0x74ca57(0x16d)]&&_0x401c77[_0x74ca57(0x174)]!==undefined?a81_0x63b894['dim']('\x20('+formatRows(_0x401c77[_0x74ca57(0x174)])+')'):'';_0x273155['push']({'name':_0x401c77[_0x74ca57(0x172)],'icon':_0x412cbb[_0x74ca57(0x182)]?'🎯':'','metadata':_0x186755});}_0x273155[_0x74ca57(0x16a)]((_0x1aa4bd,_0x1291ff)=>_0x1aa4bd[_0x74ca57(0x172)][_0x74ca57(0x171)](_0x1291ff[_0x74ca57(0x172)]));if(_0x273155[_0x74ca57(0x173)]===0x0)return'(empty)';const _0x21d73f=_0x273155['map'](_0x44b2ce=>{const _0x393ffa=_0x74ca57,_0x5b6571=_0x44b2ce['icon']?_0x44b2ce[_0x393ffa(0x187)]+'\x20':'',_0x38f943=_0x44b2ce[_0x393ffa(0x178)]||'';return''+_0x5b6571+_0x44b2ce[_0x393ffa(0x172)]+_0x38f943;});return _0x21d73f[_0x74ca57(0x17c)]('\x0a');}
@@ -1 +1 @@
1
- function a82_0x5253(_0x58412f,_0x206e44){const _0x49ef23=a82_0x49ef();return a82_0x5253=function(_0x525341,_0x3cc30a){_0x525341=_0x525341-0x9b;let _0x1f16b3=_0x49ef23[_0x525341];return _0x1f16b3;},a82_0x5253(_0x58412f,_0x206e44);}const a82_0x298ad4=a82_0x5253;(function(_0x8a9a01,_0x3ec530){const _0x3a4c21=a82_0x5253,_0x1e14d2=_0x8a9a01();while(!![]){try{const _0x571600=-parseInt(_0x3a4c21(0xa3))/0x1+-parseInt(_0x3a4c21(0xa0))/0x2*(parseInt(_0x3a4c21(0xba))/0x3)+parseInt(_0x3a4c21(0xa4))/0x4*(parseInt(_0x3a4c21(0xac))/0x5)+-parseInt(_0x3a4c21(0xb4))/0x6+-parseInt(_0x3a4c21(0xb9))/0x7*(parseInt(_0x3a4c21(0xa7))/0x8)+parseInt(_0x3a4c21(0xb6))/0x9+-parseInt(_0x3a4c21(0xa9))/0xa*(-parseInt(_0x3a4c21(0xa1))/0xb);if(_0x571600===_0x3ec530)break;else _0x1e14d2['push'](_0x1e14d2['shift']());}catch(_0x2aeb97){_0x1e14d2['push'](_0x1e14d2['shift']());}}}(a82_0x49ef,0x1e0e1));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a82_0x595978 from'chalk';function a82_0x49ef(){const _0x241e73=['37372soiPje','now','write','8rdnibb','data','375150fhhimy','cyan','gray','40tHWMkL','utf-8','\x0aUpdate\x20available:\x20','https://registry.npmjs.org/@treasuredata/tdx/latest','destroy','Request\x20timeout','isTTY','lastCheck','700290IkbvDy','\x0aRun:\x20','1291374jaXsFz','updateAvailable','latestVersion','1222571seMdcO','3McTveG','dim','version','statusCode','npm\x20install\x20-g\x20@treasuredata/tdx@latest','error','getTime','parse','end','last_version_check','stringify','22844sPJZoO','121LwjSYy','green','205000aXNDhi'];a82_0x49ef=function(){return _0x241e73;};return a82_0x49ef();}import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a82_0x298ad4(0xaf),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x538b73=a82_0x298ad4,_0x3591a9=getCacheDir();return join(_0x3591a9,_0x538b73(0x9e));}function readCache(){const _0x398b61=a82_0x298ad4;try{const _0x5313f8=getCacheFilePath(),_0x4052fb=readFileSync(_0x5313f8,_0x398b61(0xad));return JSON[_0x398b61(0x9c)](_0x4052fb);}catch{return null;}}function writeCache(_0x6c7443){const _0x104d57=a82_0x298ad4;try{const _0x251704=getCacheDir();mkdirSync(_0x251704,{'recursive':!![]});const _0x52ed40={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x6c7443},_0x28baba=getCacheFilePath();writeFileSync(_0x28baba,JSON[_0x104d57(0x9f)](_0x52ed40,null,0x2),_0x104d57(0xad));}catch{}}function isCacheValid(_0x3be5b6){const _0x1991c3=a82_0x298ad4;if(!_0x3be5b6)return![];const _0x2b8ae5=new Date(_0x3be5b6[_0x1991c3(0xb3)])[_0x1991c3(0x9b)](),_0x19e4d1=Date[_0x1991c3(0xa5)]();return _0x19e4d1-_0x2b8ae5<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0xa2c3a2,_0x198f62)=>{const _0x49b556=a82_0x5253,_0x2979cd=get(NPM_REGISTRY_URL,_0x11bd32=>{const _0x42443e=a82_0x5253;if(_0x11bd32[_0x42443e(0xbd)]!==0xc8){clearTimeout(_0x36ceb3),_0x198f62(new Error('HTTP\x20'+_0x11bd32[_0x42443e(0xbd)]));return;}let _0x4edbf8='';_0x11bd32['on'](_0x42443e(0xa8),_0x3b7f38=>{_0x4edbf8+=_0x3b7f38;}),_0x11bd32['on'](_0x42443e(0x9d),()=>{const _0x570d30=_0x42443e;clearTimeout(_0x36ceb3);try{const _0x1d339c=JSON[_0x570d30(0x9c)](_0x4edbf8);if(!valid(_0x1d339c[_0x570d30(0xbc)])){_0x198f62(new Error('Invalid\x20version\x20format'));return;}_0xa2c3a2(_0x1d339c[_0x570d30(0xbc)]);}catch(_0x2a8f67){_0x198f62(_0x2a8f67);}});})['on'](_0x49b556(0xbf),_0x3ff5d3=>{clearTimeout(_0x36ceb3),_0x198f62(_0x3ff5d3);}),_0x36ceb3=setTimeout(()=>{const _0x1fca88=_0x49b556;_0x2979cd[_0x1fca88(0xb0)](),_0x198f62(new Error(_0x1fca88(0xb1)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x3678f7){const _0x27cc02=a82_0x298ad4;try{const _0x20ec43=readCache();if(isCacheValid(_0x20ec43)){const _0x1d4771=gt(_0x20ec43[_0x27cc02(0xb8)],_0x3678f7);return{'updateAvailable':_0x1d4771,'currentVersion':_0x3678f7,'latestVersion':_0x20ec43[_0x27cc02(0xb8)]};}const _0x5dd126=await fetchLatestVersion();writeCache(_0x5dd126);const _0xa5e05=gt(_0x5dd126,_0x3678f7);return{'updateAvailable':_0xa5e05,'currentVersion':_0x3678f7,'latestVersion':_0x5dd126};}catch{return null;}}export function displayUpdateNotification(_0x2c01fa){const _0x531c86=a82_0x298ad4;if(!_0x2c01fa[_0x531c86(0xb7)])return;const _0x3837dc=process['stderr'][_0x531c86(0xb2)]&&!process['env']['NO_COLOR'],_0x254f3a=_0x3837dc?a82_0x595978[_0x531c86(0xab)]('→'):'→',_0x67aec5=_0x3837dc?a82_0x595978[_0x531c86(0xbb)](_0x2c01fa['currentVersion']):_0x2c01fa['currentVersion'],_0x2efaa4=_0x3837dc?a82_0x595978[_0x531c86(0xa2)](_0x2c01fa['latestVersion']):_0x2c01fa[_0x531c86(0xb8)],_0x1acfe8=_0x3837dc?a82_0x595978[_0x531c86(0xaa)](_0x531c86(0xbe)):_0x531c86(0xbe),_0x3c539c=_0x3837dc?'\x0a'+a82_0x595978['yellow']('Update\x20available:')+'\x20'+_0x67aec5+'\x20'+_0x254f3a+'\x20'+_0x2efaa4+'\x0a'+a82_0x595978['dim']('Run:')+'\x20'+_0x1acfe8+'\x0a':_0x531c86(0xae)+_0x67aec5+'\x20'+_0x254f3a+'\x20'+_0x2efaa4+_0x531c86(0xb5)+_0x1acfe8+'\x0a';process['stderr'][_0x531c86(0xa6)](_0x3c539c);}
1
+ const a82_0x19f9cb=a82_0x2831;(function(_0x26969f,_0x511fc3){const _0x1df863=a82_0x2831,_0x5f111c=_0x26969f();while(!![]){try{const _0x1c97df=-parseInt(_0x1df863(0x198))/0x1*(parseInt(_0x1df863(0x1a4))/0x2)+parseInt(_0x1df863(0x1aa))/0x3*(parseInt(_0x1df863(0x1a2))/0x4)+parseInt(_0x1df863(0x1b4))/0x5+parseInt(_0x1df863(0x1b7))/0x6*(-parseInt(_0x1df863(0x1a1))/0x7)+-parseInt(_0x1df863(0x1b1))/0x8*(-parseInt(_0x1df863(0x1b8))/0x9)+parseInt(_0x1df863(0x1ba))/0xa*(-parseInt(_0x1df863(0x1ac))/0xb)+-parseInt(_0x1df863(0x1b9))/0xc*(-parseInt(_0x1df863(0x19b))/0xd);if(_0x1c97df===_0x511fc3)break;else _0x5f111c['push'](_0x5f111c['shift']());}catch(_0x55432e){_0x5f111c['push'](_0x5f111c['shift']());}}}(a82_0x2de9,0x31c7f));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';function a82_0x2831(_0x1da793,_0xa0e9d){const _0x2de911=a82_0x2de9();return a82_0x2831=function(_0x2831e2,_0x1d316c){_0x2831e2=_0x2831e2-0x196;let _0x286b6d=_0x2de911[_0x2831e2];return _0x286b6d;},a82_0x2831(_0x1da793,_0xa0e9d);}import{join}from'path';import{gt,valid}from'semver';import a82_0x1eb4b7 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a82_0x19f9cb(0x19c),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x1cdcf7=a82_0x19f9cb,_0x53aa4e=getCacheDir();return join(_0x53aa4e,_0x1cdcf7(0x1bc));}function readCache(){const _0x3dabd7=a82_0x19f9cb;try{const _0x46889f=getCacheFilePath(),_0x536634=readFileSync(_0x46889f,_0x3dabd7(0x1b5));return JSON[_0x3dabd7(0x1ae)](_0x536634);}catch{return null;}}function writeCache(_0x2787f8){const _0x5205a4=a82_0x19f9cb;try{const _0x558c2a=getCacheDir();mkdirSync(_0x558c2a,{'recursive':!![]});const _0x49aada={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2787f8},_0x59ed5f=getCacheFilePath();writeFileSync(_0x59ed5f,JSON[_0x5205a4(0x1a7)](_0x49aada,null,0x2),_0x5205a4(0x1b5));}catch{}}function isCacheValid(_0x332765){const _0x116559=a82_0x19f9cb;if(!_0x332765)return![];const _0x108eff=new Date(_0x332765['lastCheck'])[_0x116559(0x197)](),_0x2494f6=Date[_0x116559(0x1b0)]();return _0x2494f6-_0x108eff<CACHE_DURATION_MS;}function a82_0x2de9(){const _0x776bfc=['gray','3QKtIBp','yellow','4763wLsJBj','npm\x20install\x20-g\x20@treasuredata/tdx@latest','parse','currentVersion','now','232EYgFNp','stderr','statusCode','520525yqImbQ','utf-8','updateAvailable','6OlxyKT','3015uOQuDp','13644gpLJiX','1780aXPgPN','env','last_version_check','Request\x20timeout','cyan','getTime','172RKREHZ','Run:','NO_COLOR','2561ModDCp','https://registry.npmjs.org/@treasuredata/tdx/latest','end','version','error','green','1610231KSIDwt','1255588cDtPBK','dim','1636UQaYLo','data','\x0aRun:\x20','stringify','latestVersion'];a82_0x2de9=function(){return _0x776bfc;};return a82_0x2de9();}function fetchLatestVersion(){return new Promise((_0x359c09,_0x357f02)=>{const _0x56eb95=a82_0x2831,_0x1fd372=get(NPM_REGISTRY_URL,_0x989ec9=>{const _0xbad4e2=a82_0x2831;if(_0x989ec9[_0xbad4e2(0x1b3)]!==0xc8){clearTimeout(_0x50225f),_0x357f02(new Error('HTTP\x20'+_0x989ec9[_0xbad4e2(0x1b3)]));return;}let _0x189239='';_0x989ec9['on'](_0xbad4e2(0x1a5),_0x5aea3c=>{_0x189239+=_0x5aea3c;}),_0x989ec9['on'](_0xbad4e2(0x19d),()=>{const _0x4e7492=_0xbad4e2;clearTimeout(_0x50225f);try{const _0x5d0da0=JSON[_0x4e7492(0x1ae)](_0x189239);if(!valid(_0x5d0da0[_0x4e7492(0x19e)])){_0x357f02(new Error('Invalid\x20version\x20format'));return;}_0x359c09(_0x5d0da0[_0x4e7492(0x19e)]);}catch(_0x13f057){_0x357f02(_0x13f057);}});})['on'](_0x56eb95(0x19f),_0x2baf59=>{clearTimeout(_0x50225f),_0x357f02(_0x2baf59);}),_0x50225f=setTimeout(()=>{const _0x20dc9d=_0x56eb95;_0x1fd372['destroy'](),_0x357f02(new Error(_0x20dc9d(0x1bd)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x1fe808){const _0xe79d91=a82_0x19f9cb;try{const _0x36d5a4=readCache();if(isCacheValid(_0x36d5a4)){const _0x4a2d91=gt(_0x36d5a4['latestVersion'],_0x1fe808);return{'updateAvailable':_0x4a2d91,'currentVersion':_0x1fe808,'latestVersion':_0x36d5a4[_0xe79d91(0x1a8)]};}const _0x905a4=await fetchLatestVersion();writeCache(_0x905a4);const _0x900d4e=gt(_0x905a4,_0x1fe808);return{'updateAvailable':_0x900d4e,'currentVersion':_0x1fe808,'latestVersion':_0x905a4};}catch{return null;}}export function displayUpdateNotification(_0x2e01e7){const _0x1a7440=a82_0x19f9cb;if(!_0x2e01e7[_0x1a7440(0x1b6)])return;const _0x3e61b3=process[_0x1a7440(0x1b2)]['isTTY']&&!process[_0x1a7440(0x1bb)][_0x1a7440(0x19a)],_0x2d8189=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a9)]('→'):'→',_0x1ebc86=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a3)](_0x2e01e7[_0x1a7440(0x1af)]):_0x2e01e7[_0x1a7440(0x1af)],_0x4272fd=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a0)](_0x2e01e7['latestVersion']):_0x2e01e7[_0x1a7440(0x1a8)],_0x1bbcca=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x196)](_0x1a7440(0x1ad)):_0x1a7440(0x1ad),_0x326569=_0x3e61b3?'\x0a'+a82_0x1eb4b7[_0x1a7440(0x1ab)]('Update\x20available:')+'\x20'+_0x1ebc86+'\x20'+_0x2d8189+'\x20'+_0x4272fd+'\x0a'+a82_0x1eb4b7[_0x1a7440(0x1a3)](_0x1a7440(0x199))+'\x20'+_0x1bbcca+'\x0a':'\x0aUpdate\x20available:\x20'+_0x1ebc86+'\x20'+_0x2d8189+'\x20'+_0x4272fd+_0x1a7440(0x1a6)+_0x1bbcca+'\x0a';process[_0x1a7440(0x1b2)]['write'](_0x326569);}
@@ -1 +1 @@
1
- (function(_0x36f9d0,_0x2819bf){const _0x42280a=a83_0x5d69,_0x3effdc=_0x36f9d0();while(!![]){try{const _0x4c45e7=parseInt(_0x42280a(0x164))/0x1*(-parseInt(_0x42280a(0x15d))/0x2)+-parseInt(_0x42280a(0x15e))/0x3*(-parseInt(_0x42280a(0x163))/0x4)+-parseInt(_0x42280a(0x15f))/0x5+parseInt(_0x42280a(0x165))/0x6*(-parseInt(_0x42280a(0x166))/0x7)+parseInt(_0x42280a(0x161))/0x8+parseInt(_0x42280a(0x162))/0x9+parseInt(_0x42280a(0x167))/0xa;if(_0x4c45e7===_0x2819bf)break;else _0x3effdc['push'](_0x3effdc['shift']());}catch(_0x173237){_0x3effdc['push'](_0x3effdc['shift']());}}}(a83_0xb2a3,0xb93bb));function a83_0x5d69(_0x46d0e2,_0x551f00){const _0xb2a3f0=a83_0xb2a3();return a83_0x5d69=function(_0x5d692e,_0x1539ef){_0x5d692e=_0x5d692e-0x15d;let _0x3869cd=_0xb2a3f0[_0x5d692e];return _0x3869cd;},a83_0x5d69(_0x46d0e2,_0x551f00);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0xbcbbcc){const _0x26cb02=a83_0x5d69;if(_0xbcbbcc==='.digdag')return!![];if(_0xbcbbcc[_0x26cb02(0x160)]('.'))return![];return!![];}function a83_0xb2a3(){const _0x14f906=['134TqBaiq','499584bfOMya','2090320yYJzWK','startsWith','4694320RRWpDQ','4222242zShNMx','12kCGbOV','3527QZXvrZ','5850594vQKHpY','7tUsacm','8326750NNarXO'];a83_0xb2a3=function(){return _0x14f906;};return a83_0xb2a3();}
1
+ function a83_0xfa44(){const _0xbc2973=['8960544yWpHNZ','5320104CazQmy','3585195kQYdwt','2wsnfxe','1193196nhMWWM','4611204fERofl','startsWith','1892107RhioAO','932142vSksjP','8wNehpc'];a83_0xfa44=function(){return _0xbc2973;};return a83_0xfa44();}(function(_0x3e011e,_0x2ea95a){const _0x1b1e77=a83_0x4c03,_0x546851=_0x3e011e();while(!![]){try{const _0x453b76=parseInt(_0x1b1e77(0x1da))/0x1*(-parseInt(_0x1b1e77(0x1df))/0x2)+-parseInt(_0x1b1e77(0x1db))/0x3+parseInt(_0x1b1e77(0x1e2))/0x4+parseInt(_0x1b1e77(0x1e3))/0x5+-parseInt(_0x1b1e77(0x1dc))/0x6+-parseInt(_0x1b1e77(0x1de))/0x7+-parseInt(_0x1b1e77(0x1e0))/0x8*(-parseInt(_0x1b1e77(0x1e1))/0x9);if(_0x453b76===_0x2ea95a)break;else _0x546851['push'](_0x546851['shift']());}catch(_0x3b38ec){_0x546851['push'](_0x546851['shift']());}}}(a83_0xfa44,0xa48b4));function a83_0x4c03(_0x185a52,_0x1a4851){const _0xfa4465=a83_0xfa44();return a83_0x4c03=function(_0x4c031e,_0x57d91c){_0x4c031e=_0x4c031e-0x1da;let _0x38e25b=_0xfa4465[_0x4c031e];return _0x38e25b;},a83_0x4c03(_0x185a52,_0x1a4851);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x1f2f7e){const _0x3c4f46=a83_0x4c03;if(_0x1f2f7e==='.digdag')return!![];if(_0x1f2f7e[_0x3c4f46(0x1dd)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
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": {