@treasuredata/tdx 0.1.15 → 0.1.17

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 (85) hide show
  1. package/README.md +10 -0
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-client.js +1 -1
  5. package/dist/client/http-client.js +1 -1
  6. package/dist/client/llm-client.js +1 -1
  7. package/dist/client/rate-limiter.js +1 -1
  8. package/dist/client/td-client.js +1 -1
  9. package/dist/client/trino-client.js +1 -1
  10. package/dist/client/workflow-client.js +1 -1
  11. package/dist/commands/activations.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-command.js.map +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/context-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/job-command.js +1 -1
  21. package/dist/commands/llm-command.js +1 -1
  22. package/dist/commands/llm-proxy.js +1 -1
  23. package/dist/commands/parent-segment-command.js +1 -1
  24. package/dist/commands/profiles-command.js +1 -1
  25. package/dist/commands/query-command.js +1 -1
  26. package/dist/commands/segment-command.js +1 -1
  27. package/dist/commands/segment-create-command.js +1 -1
  28. package/dist/commands/segment-fields-command.js +1 -1
  29. package/dist/commands/segment-pwd-command.js +1 -1
  30. package/dist/commands/segment-update-command.js +1 -1
  31. package/dist/commands/segment-use-command.js +1 -1
  32. package/dist/commands/segments.js +1 -1
  33. package/dist/commands/show.js +1 -1
  34. package/dist/commands/tables.js +1 -1
  35. package/dist/commands/use-command.js +1 -1
  36. package/dist/commands/workflow-command.js +1 -1
  37. package/dist/core/auth.js +1 -1
  38. package/dist/core/config.js +1 -1
  39. package/dist/core/global-context.js +1 -1
  40. package/dist/core/profile.js +1 -1
  41. package/dist/core/project-config.js +1 -1
  42. package/dist/core/session.js +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/proxy/anthropic-adapter.d.ts +21 -2
  45. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  46. package/dist/proxy/anthropic-adapter.js +1 -1
  47. package/dist/proxy/anthropic-adapter.js.map +1 -1
  48. package/dist/proxy/server.d.ts.map +1 -1
  49. package/dist/proxy/server.js +1 -1
  50. package/dist/proxy/server.js.map +1 -1
  51. package/dist/sdk/api.js +1 -1
  52. package/dist/sdk/database.js +1 -1
  53. package/dist/sdk/errors.js +1 -1
  54. package/dist/sdk/index.js +1 -1
  55. package/dist/sdk/job.js +1 -1
  56. package/dist/sdk/llm.js +1 -1
  57. package/dist/sdk/query.js +1 -1
  58. package/dist/sdk/segment.js +1 -1
  59. package/dist/sdk/table.js +1 -1
  60. package/dist/sdk/workflow.js +1 -1
  61. package/dist/types/endpoints.js +1 -1
  62. package/dist/types/index.js +1 -1
  63. package/dist/utils/agent-ref-parser.js +1 -1
  64. package/dist/utils/chat-cache.js +1 -1
  65. package/dist/utils/colors.js +1 -1
  66. package/dist/utils/command-output.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/tree-formatter.js +1 -1
  84. package/dist/utils/workflow-utils.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x390e33,_0x38b586){const _0x4936bb=a67_0x2e65,_0x1856a0=_0x390e33();while(!![]){try{const _0x5df2a6=-parseInt(_0x4936bb(0x9d))/0x1*(parseInt(_0x4936bb(0x97))/0x2)+parseInt(_0x4936bb(0x9e))/0x3+parseInt(_0x4936bb(0x92))/0x4+parseInt(_0x4936bb(0x95))/0x5+-parseInt(_0x4936bb(0x94))/0x6*(-parseInt(_0x4936bb(0x9b))/0x7)+-parseInt(_0x4936bb(0x99))/0x8+-parseInt(_0x4936bb(0x9c))/0x9;if(_0x5df2a6===_0x38b586)break;else _0x1856a0['push'](_0x1856a0['shift']());}catch(_0x244c83){_0x1856a0['push'](_0x1856a0['shift']());}}}(a67_0x2f0d,0xc31a7));export function validateLimitOption(_0x37f0a3){const _0x13445c=a67_0x2e65;if(!Number[_0x13445c(0x9f)](_0x37f0a3))return{'isValid':![],'error':_0x13445c(0x91)+_0x37f0a3+_0x13445c(0x96)};if(_0x37f0a3<=0x0)return{'isValid':![],'error':_0x13445c(0x91)+_0x37f0a3+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x37f0a3};}export function validateTimeoutOption(_0x27025e,_0x2c76df=0x1e){const _0x2fc086=a67_0x2e65;if(_0x27025e===undefined)return{'isValid':!![],'value':_0x2c76df};const _0x62139=typeof _0x27025e===_0x2fc086(0x9a)?_0x27025e:parseFloat(_0x27025e);if(isNaN(_0x62139))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x27025e+_0x2fc086(0x93)};if(_0x62139<=0x0)return{'isValid':![],'error':_0x2fc086(0x98)+_0x62139+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x62139};}function a67_0x2e65(_0x1198cc,_0x4aefda){const _0x2f0d6b=a67_0x2f0d();return a67_0x2e65=function(_0x2e65ff,_0xfab865){_0x2e65ff=_0x2e65ff-0x91;let _0x58b3db=_0x2f0d6b[_0x2e65ff];return _0x58b3db;},a67_0x2e65(_0x1198cc,_0x4aefda);}function a67_0x2f0d(){const _0x4df028=['1990499paAIWN','3942522ebusaX','13NKPdXu','2858913snoqDo','isInteger','Invalid\x20limit\x20value:\x20','2721072kRWPqm','.\x20Must\x20be\x20a\x20number.','12IuRFDQ','6651005iBVGLu','.\x20Must\x20be\x20an\x20integer.','168106qDRmQE','Invalid\x20timeout\x20value:\x20','9618112MDlcdQ','number'];a67_0x2f0d=function(){return _0x4df028;};return a67_0x2f0d();}
1
+ (function(_0x590937,_0x5894c3){const _0x13faf8=a67_0x12c7,_0x244a67=_0x590937();while(!![]){try{const _0x5dbc85=parseInt(_0x13faf8(0x119))/0x1*(parseInt(_0x13faf8(0x125))/0x2)+-parseInt(_0x13faf8(0x11c))/0x3+-parseInt(_0x13faf8(0x11b))/0x4+parseInt(_0x13faf8(0x11a))/0x5*(parseInt(_0x13faf8(0x11f))/0x6)+-parseInt(_0x13faf8(0x121))/0x7+-parseInt(_0x13faf8(0x120))/0x8+-parseInt(_0x13faf8(0x122))/0x9*(-parseInt(_0x13faf8(0x11e))/0xa);if(_0x5dbc85===_0x5894c3)break;else _0x244a67['push'](_0x244a67['shift']());}catch(_0x376720){_0x244a67['push'](_0x244a67['shift']());}}}(a67_0x5bf1,0x5240e));export function validateLimitOption(_0x3c5174){const _0x3b99ac=a67_0x12c7;if(!Number['isInteger'](_0x3c5174))return{'isValid':![],'error':_0x3b99ac(0x11d)+_0x3c5174+_0x3b99ac(0x127)};if(_0x3c5174<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3c5174+_0x3b99ac(0x124)};return{'isValid':!![],'value':_0x3c5174};}function a67_0x5bf1(){const _0x344cdf=['Invalid\x20limit\x20value:\x20','30RDOSLj','3685296LbcwJV','1954752sieNik','2778650ONcFuZ','432261jVQFbc','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20positive\x20integer.','386NkNzQE','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','.\x20Must\x20be\x20a\x20number.','number','2454MKavKX','5maHpgB','322880CAucbQ','519003wEfIuV'];a67_0x5bf1=function(){return _0x344cdf;};return a67_0x5bf1();}function a67_0x12c7(_0x22aeca,_0x236c59){const _0x5bf17d=a67_0x5bf1();return a67_0x12c7=function(_0x12c77d,_0x2084cf){_0x12c77d=_0x12c77d-0x119;let _0x22a2fc=_0x5bf17d[_0x12c77d];return _0x22a2fc;},a67_0x12c7(_0x22aeca,_0x236c59);}export function validateTimeoutOption(_0x3a8ee2,_0x3a6a6d=0x1e){const _0x5b2443=a67_0x12c7;if(_0x3a8ee2===undefined)return{'isValid':!![],'value':_0x3a6a6d};const _0x18bcd7=typeof _0x3a8ee2===_0x5b2443(0x129)?_0x3a8ee2:parseFloat(_0x3a8ee2);if(isNaN(_0x18bcd7))return{'isValid':![],'error':_0x5b2443(0x126)+_0x3a8ee2+_0x5b2443(0x128)};if(_0x18bcd7<=0x0)return{'isValid':![],'error':_0x5b2443(0x126)+_0x18bcd7+_0x5b2443(0x123)};return{'isValid':!![],'value':_0x18bcd7};}
@@ -1 +1 @@
1
- (function(_0x186ae2,_0x569487){const _0x2aa668=a68_0x214a,_0x3859e8=_0x186ae2();while(!![]){try{const _0x1aa5af=parseInt(_0x2aa668(0x163))/0x1+parseInt(_0x2aa668(0x15a))/0x2+parseInt(_0x2aa668(0x161))/0x3*(-parseInt(_0x2aa668(0x15d))/0x4)+parseInt(_0x2aa668(0x15c))/0x5*(-parseInt(_0x2aa668(0x15f))/0x6)+parseInt(_0x2aa668(0x167))/0x7+-parseInt(_0x2aa668(0x162))/0x8*(parseInt(_0x2aa668(0x159))/0x9)+-parseInt(_0x2aa668(0x160))/0xa*(-parseInt(_0x2aa668(0x166))/0xb);if(_0x1aa5af===_0x569487)break;else _0x3859e8['push'](_0x3859e8['shift']());}catch(_0x3ae023){_0x3859e8['push'](_0x3859e8['shift']());}}}(a68_0x59c1,0xa9f15));function a68_0x214a(_0x1abcea,_0x4adb7e){const _0x59c153=a68_0x59c1();return a68_0x214a=function(_0x214aab,_0x281261){_0x214aab=_0x214aab-0x159;let _0x4ef078=_0x59c153[_0x214aab];return _0x4ef078;},a68_0x214a(_0x1abcea,_0x4adb7e);}import{createServer}from'node:net';export async function isPortAvailable(_0x340963){return new Promise(_0x24b4b2=>{const _0x150873=a68_0x214a,_0x3d5973=createServer();_0x3d5973[_0x150873(0x168)](_0x150873(0x169),_0x9abd9f=>{const _0x52cbc7=_0x150873;_0x9abd9f['code']===_0x52cbc7(0x15e)?_0x24b4b2(![]):_0x24b4b2(![]);}),_0x3d5973[_0x150873(0x168)]('listening',()=>{const _0x121593=_0x150873;_0x3d5973[_0x121593(0x15b)](),_0x24b4b2(!![]);}),_0x3d5973[_0x150873(0x164)](_0x340963,'0.0.0.0');});}export async function findAvailablePort(_0x2ac120=0xfa0,_0x40bfdb=0x64){const _0x4b0a25=a68_0x214a;for(let _0x46248e=0x0;_0x46248e<_0x40bfdb;_0x46248e++){const _0x5c4fb8=_0x2ac120+_0x46248e;if(await isPortAvailable(_0x5c4fb8))return _0x5c4fb8;}throw new Error(_0x4b0a25(0x16a)+_0x2ac120+_0x4b0a25(0x165)+(_0x2ac120+_0x40bfdb-0x1));}function a68_0x59c1(){const _0x2e2dd7=['6903869xxXIfC','once','error','No\x20available\x20port\x20found\x20between\x20','148869RISPwc','714326GuLDTe','close','3090NiSTqv','148qDGhjH','EADDRINUSE','4044qtuQyZ','850zxYObW','48381ycbnMU','544rhixCr','832094zTizMK','listen','\x20and\x20','85228YWrIOL'];a68_0x59c1=function(){return _0x2e2dd7;};return a68_0x59c1();}
1
+ (function(_0x58f645,_0x2831b8){const _0x9b1897=a68_0x22aa,_0x37c644=_0x58f645();while(!![]){try{const _0x38d57e=-parseInt(_0x9b1897(0x1df))/0x1*(parseInt(_0x9b1897(0x1ea))/0x2)+parseInt(_0x9b1897(0x1dc))/0x3*(-parseInt(_0x9b1897(0x1e2))/0x4)+parseInt(_0x9b1897(0x1d9))/0x5+parseInt(_0x9b1897(0x1e4))/0x6+-parseInt(_0x9b1897(0x1e8))/0x7+-parseInt(_0x9b1897(0x1dd))/0x8+parseInt(_0x9b1897(0x1e0))/0x9*(parseInt(_0x9b1897(0x1e1))/0xa);if(_0x38d57e===_0x2831b8)break;else _0x37c644['push'](_0x37c644['shift']());}catch(_0xb821b3){_0x37c644['push'](_0x37c644['shift']());}}}(a68_0x4ddc,0x2f443));function a68_0x4ddc(){const _0x191dcf=['1OJadcl','2070XidjCN','2730ufVAin','30412jQPGCz','0.0.0.0','1518324ETDopo','once','EADDRINUSE','error','541163lPhcDT','code','367730KdqTbB','listening','1242460wlHvHL','\x20and\x20','No\x20available\x20port\x20found\x20between\x20','39MgGimG','85760noobYD','close'];a68_0x4ddc=function(){return _0x191dcf;};return a68_0x4ddc();}import{createServer}from'node:net';function a68_0x22aa(_0x371fa5,_0x372811){const _0x4ddcc6=a68_0x4ddc();return a68_0x22aa=function(_0x22aad9,_0xa5354d){_0x22aad9=_0x22aad9-0x1d9;let _0x584ba5=_0x4ddcc6[_0x22aad9];return _0x584ba5;},a68_0x22aa(_0x371fa5,_0x372811);}export async function isPortAvailable(_0x3f07c5){return new Promise(_0x3cd63c=>{const _0x2b61e8=a68_0x22aa,_0x3d358d=createServer();_0x3d358d['once'](_0x2b61e8(0x1e7),_0x21d1dc=>{const _0x21473c=_0x2b61e8;_0x21d1dc[_0x21473c(0x1e9)]===_0x21473c(0x1e6)?_0x3cd63c(![]):_0x3cd63c(![]);}),_0x3d358d[_0x2b61e8(0x1e5)](_0x2b61e8(0x1eb),()=>{const _0x387784=_0x2b61e8;_0x3d358d[_0x387784(0x1de)](),_0x3cd63c(!![]);}),_0x3d358d['listen'](_0x3f07c5,_0x2b61e8(0x1e3));});}export async function findAvailablePort(_0x1288e9=0xfa0,_0x5db9e3=0x64){const _0x153aee=a68_0x22aa;for(let _0x6277bf=0x0;_0x6277bf<_0x5db9e3;_0x6277bf++){const _0x5b3a76=_0x1288e9+_0x6277bf;if(await isPortAvailable(_0x5b3a76))return _0x5b3a76;}throw new Error(_0x153aee(0x1db)+_0x1288e9+_0x153aee(0x1da)+(_0x1288e9+_0x5db9e3-0x1));}
@@ -1 +1 @@
1
- const a69_0x2e0d45=a69_0x2e57;(function(_0x4db339,_0x2278ee){const _0x479099=a69_0x2e57,_0x5c044c=_0x4db339();while(!![]){try{const _0x41a47f=-parseInt(_0x479099(0x83))/0x1*(-parseInt(_0x479099(0x92))/0x2)+-parseInt(_0x479099(0xa6))/0x3*(-parseInt(_0x479099(0x9f))/0x4)+parseInt(_0x479099(0xa5))/0x5*(-parseInt(_0x479099(0xa9))/0x6)+-parseInt(_0x479099(0xa8))/0x7+-parseInt(_0x479099(0x8f))/0x8+parseInt(_0x479099(0xa4))/0x9+-parseInt(_0x479099(0xaa))/0xa*(-parseInt(_0x479099(0xab))/0xb);if(_0x41a47f===_0x2278ee)break;else _0x5c044c['push'](_0x5c044c['shift']());}catch(_0x2aed1a){_0x5c044c['push'](_0x5c044c['shift']());}}}(a69_0x590e,0xb464a));import{execSync}from'node:child_process';function a69_0x2e57(_0x38ddbf,_0x40ee31){const _0x590e3e=a69_0x590e();return a69_0x2e57=function(_0x2e573d,_0xb85f54){_0x2e573d=_0x2e573d-0x83;let _0x507ff3=_0x590e3e[_0x2e573d];return _0x507ff3;},a69_0x2e57(_0x38ddbf,_0x40ee31);}const SHELL_NAMES=new Set([a69_0x2e0d45(0xa2),a69_0x2e0d45(0x8e),'sh',a69_0x2e0d45(0x87),'ksh',a69_0x2e0d45(0xad),a69_0x2e0d45(0x9a),a69_0x2e0d45(0x9e),a69_0x2e0d45(0xa7),a69_0x2e0d45(0x84),'nu',a69_0x2e0d45(0x8b),a69_0x2e0d45(0xac),'xonsh']);function getProcessInfoWindows(_0x3ea8fb){const _0x1636ac=a69_0x2e0d45;try{const _0x529d71=execSync(_0x1636ac(0x8d)+_0x3ea8fb+_0x1636ac(0x88),{'encoding':_0x1636ac(0xa0),'windowsHide':!![]})[_0x1636ac(0x93)](),_0x28817e=_0x529d71['split']('\x0a')[_0x1636ac(0x8a)](_0x34b665=>_0x34b665['trim']());if(_0x28817e[_0x1636ac(0x99)]<0x2)return null;const _0x765d5d=_0x28817e[_0x28817e[_0x1636ac(0x99)]-0x1][_0x1636ac(0x90)](',');if(_0x765d5d[_0x1636ac(0x99)]<0x3)return null;const _0x195d07=_0x765d5d[0x1]?.['trim']()||'',_0x34ef1e=parseInt(_0x765d5d[0x2]?.[_0x1636ac(0x93)]()||'0',0xa);if(isNaN(_0x34ef1e)||!_0x195d07)return null;return{'pid':_0x3ea8fb,'ppid':_0x34ef1e,'comm':_0x195d07['replace'](/\.exe$/i,'')};}catch(_0x449b3e){return process[_0x1636ac(0x86)][_0x1636ac(0x9c)]&&console[_0x1636ac(0x89)](_0x1636ac(0x9d)+_0x3ea8fb+_0x1636ac(0x9b),_0x449b3e),null;}}function getProcessInfoPosix(_0x10f763){const _0x425f4c=a69_0x2e0d45;try{const _0x23f19e=execSync(_0x425f4c(0x98)+_0x10f763+'\x20-o\x20ppid=,comm=',{'encoding':_0x425f4c(0xa0)})['trim'](),[_0x20cd98,..._0x2e4685]=_0x23f19e[_0x425f4c(0x90)](/\s+/),_0x448e6c=parseInt(_0x20cd98,0xa),_0x281010=_0x2e4685[_0x425f4c(0xa1)]('\x20');if(isNaN(_0x448e6c))return null;return{'pid':_0x10f763,'ppid':_0x448e6c,'comm':_0x281010};}catch(_0x3cf0c8){return process[_0x425f4c(0x86)][_0x425f4c(0x9c)]&&console[_0x425f4c(0x89)](_0x425f4c(0x9d)+_0x10f763+'\x20on\x20POSIX:',_0x3cf0c8),null;}}function getProcessInfo(_0x24c025){const _0x3e230d=a69_0x2e0d45;if(process[_0x3e230d(0x85)]==='win32')return getProcessInfoWindows(_0x24c025);return getProcessInfoPosix(_0x24c025);}function isShell(_0xdcdc70){const _0x5a7e48=a69_0x2e0d45,_0x38bf37=_0xdcdc70[_0x5a7e48(0x96)](/^-/,'')[_0x5a7e48(0x90)]('/')['pop']()||'';return SHELL_NAMES['has'](_0x38bf37[_0x5a7e48(0x91)]());}let cachedShellPID;function findShellPID(){const _0xfde0db=a69_0x2e0d45;let _0x3c858f=process[_0xfde0db(0xa3)];const _0x23a797=0xa;let _0x3a7ca9=0x0;while(_0x3a7ca9<_0x23a797){const _0x37c48e=getProcessInfo(_0x3c858f);if(!_0x37c48e){process[_0xfde0db(0x86)][_0xfde0db(0x9c)]&&console[_0xfde0db(0x89)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x3c858f+_0xfde0db(0x97));break;}if(isShell(_0x37c48e['comm']))return _0x37c48e[_0xfde0db(0x95)];if(_0x37c48e[_0xfde0db(0xa3)]===0x0||_0x37c48e[_0xfde0db(0xa3)]===0x1){if(isShell(_0x37c48e[_0xfde0db(0x94)]))return _0x37c48e[_0xfde0db(0x95)];break;}_0x3c858f=_0x37c48e[_0xfde0db(0xa3)],_0x3a7ca9++;}return process[_0xfde0db(0x86)][_0xfde0db(0x9c)]&&console[_0xfde0db(0x89)](_0xfde0db(0x8c)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}function a69_0x590e(){const _0x53e7a2=['952971XOQlms','pwsh','4588108ljTqdX','12ZMrlbA','8182290ZPCouu','22OwYloX','elvish','tcsh','23293LsIIdc','powershell','platform','env','fish','\x20get\x20ParentProcessId,Name\x20/format:csv','error','filter','ion','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','wmic\x20process\x20where\x20ProcessId=','zsh','10294672VqDEFN','split','toLowerCase','22sRPFJG','trim','comm','pid','replace',',\x20using\x20fallback','ps\x20-p\x20','length','csh','\x20on\x20Windows:','DEBUG','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','dash','8zzakNF','utf-8','join','bash','ppid','3192003UMUqCd','503735SHCdTS'];a69_0x590e=function(){return _0x53e7a2;};return a69_0x590e();}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4d0807){try{return process['kill'](_0x4d0807,0x0),!![];}catch{return![];}}
1
+ const a69_0x1d9f56=a69_0x223f;function a69_0x2e35(){const _0x469552=['Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','utf-8','fish','replace','trim','comm','ppid','csh','730dhBPKg','9504702nAaTPv','pop','35KhEijP','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','5wxOThR','DEBUG','length','pid','powershell','bash','140254OtlBpg','has','60731uzMAAC','elvish','\x20-o\x20ppid=,comm=','25wOORUK','dash','11332896Ycnbsu','filter','pwsh','split','1084cRHYWa','platform','win32',',\x20using\x20fallback','6033BgsWeM','855810fwDXvl','wmic\x20process\x20where\x20ProcessId=','zsh','kill','error','\x20on\x20POSIX:','ksh','join','614624RAvKuy','env'];a69_0x2e35=function(){return _0x469552;};return a69_0x2e35();}(function(_0x2a1047,_0x2670a8){const _0x268617=a69_0x223f,_0x88c75b=_0x2a1047();while(!![]){try{const _0x3c8a13=parseInt(_0x268617(0x84))/0x1*(parseInt(_0x268617(0x8a))/0x2)+-parseInt(_0x268617(0x99))/0x3*(parseInt(_0x268617(0x95))/0x4)+-parseInt(_0x268617(0x8f))/0x5*(-parseInt(_0x268617(0x9a))/0x6)+-parseInt(_0x268617(0x82))/0x7*(parseInt(_0x268617(0xa2))/0x8)+parseInt(_0x268617(0x80))/0x9+-parseInt(_0x268617(0xac))/0xa*(-parseInt(_0x268617(0x8c))/0xb)+-parseInt(_0x268617(0x91))/0xc;if(_0x3c8a13===_0x2670a8)break;else _0x88c75b['push'](_0x88c75b['shift']());}catch(_0xe92e31){_0x88c75b['push'](_0x88c75b['shift']());}}}(a69_0x2e35,0x9e8b0));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a69_0x1d9f56(0x89),a69_0x1d9f56(0x9c),'sh',a69_0x1d9f56(0xa6),a69_0x1d9f56(0xa0),'tcsh',a69_0x1d9f56(0xab),a69_0x1d9f56(0x90),a69_0x1d9f56(0x93),a69_0x1d9f56(0x88),'nu','ion',a69_0x1d9f56(0x8d),'xonsh']);function getProcessInfoWindows(_0x4ce5cf){const _0x1575c3=a69_0x1d9f56;try{const _0x428144=execSync(_0x1575c3(0x9b)+_0x4ce5cf+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x1575c3(0xa5),'windowsHide':!![]})[_0x1575c3(0xa8)](),_0x4c47ed=_0x428144[_0x1575c3(0x94)]('\x0a')[_0x1575c3(0x92)](_0x1c2a81=>_0x1c2a81[_0x1575c3(0xa8)]());if(_0x4c47ed[_0x1575c3(0x86)]<0x2)return null;const _0x1019f8=_0x4c47ed[_0x4c47ed[_0x1575c3(0x86)]-0x1]['split'](',');if(_0x1019f8[_0x1575c3(0x86)]<0x3)return null;const _0x3249a3=_0x1019f8[0x1]?.[_0x1575c3(0xa8)]()||'',_0x1c9f24=parseInt(_0x1019f8[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x1c9f24)||!_0x3249a3)return null;return{'pid':_0x4ce5cf,'ppid':_0x1c9f24,'comm':_0x3249a3[_0x1575c3(0xa7)](/\.exe$/i,'')};}catch(_0x390c21){return process['env'][_0x1575c3(0x85)]&&console['error']('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x4ce5cf+'\x20on\x20Windows:',_0x390c21),null;}}function getProcessInfoPosix(_0x276d86){const _0x37817d=a69_0x1d9f56;try{const _0x4690de=execSync('ps\x20-p\x20'+_0x276d86+_0x37817d(0x8e),{'encoding':_0x37817d(0xa5)})[_0x37817d(0xa8)](),[_0x2f6b85,..._0x32282d]=_0x4690de['split'](/\s+/),_0x59c7a7=parseInt(_0x2f6b85,0xa),_0x2f094f=_0x32282d[_0x37817d(0xa1)]('\x20');if(isNaN(_0x59c7a7))return null;return{'pid':_0x276d86,'ppid':_0x59c7a7,'comm':_0x2f094f};}catch(_0x3616a5){return process[_0x37817d(0xa3)][_0x37817d(0x85)]&&console[_0x37817d(0x9e)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x276d86+_0x37817d(0x9f),_0x3616a5),null;}}function getProcessInfo(_0x3a7d40){const _0x26acc1=a69_0x1d9f56;if(process[_0x26acc1(0x96)]===_0x26acc1(0x97))return getProcessInfoWindows(_0x3a7d40);return getProcessInfoPosix(_0x3a7d40);}function isShell(_0x3e85ec){const _0x56cfad=a69_0x1d9f56,_0x135c04=_0x3e85ec[_0x56cfad(0xa7)](/^-/,'')[_0x56cfad(0x94)]('/')[_0x56cfad(0x81)]()||'';return SHELL_NAMES[_0x56cfad(0x8b)](_0x135c04['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x2eddc5=a69_0x1d9f56;let _0x3613fd=process['ppid'];const _0x5674e6=0xa;let _0x3cae39=0x0;while(_0x3cae39<_0x5674e6){const _0xe561eb=getProcessInfo(_0x3613fd);if(!_0xe561eb){process['env'][_0x2eddc5(0x85)]&&console[_0x2eddc5(0x9e)](_0x2eddc5(0xa4)+_0x3613fd+_0x2eddc5(0x98));break;}if(isShell(_0xe561eb[_0x2eddc5(0xa9)]))return _0xe561eb[_0x2eddc5(0x87)];if(_0xe561eb['ppid']===0x0||_0xe561eb[_0x2eddc5(0xaa)]===0x1){if(isShell(_0xe561eb[_0x2eddc5(0xa9)]))return _0xe561eb[_0x2eddc5(0x87)];break;}_0x3613fd=_0xe561eb[_0x2eddc5(0xaa)],_0x3cae39++;}return process[_0x2eddc5(0xa3)][_0x2eddc5(0x85)]&&console[_0x2eddc5(0x9e)](_0x2eddc5(0x83)),process[_0x2eddc5(0xaa)];}function a69_0x223f(_0x236494,_0x264299){const _0x2e35ad=a69_0x2e35();return a69_0x223f=function(_0x223f93,_0x1ec415){_0x223f93=_0x223f93-0x80;let _0x4115fd=_0x2e35ad[_0x223f93];return _0x4115fd;},a69_0x223f(_0x236494,_0x264299);}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x5b81c6){const _0x11ec70=a69_0x1d9f56;try{return process[_0x11ec70(0x9d)](_0x5b81c6,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a70_0xe08d(){const _0x276054=['647YcshsY','stdout','toLowerCase','9422720zgfORS','question','23393079ckSJvj','8918900MKJJza','close','66VmnyTD','7038920UJGZqV','684owxAPy','\x20(y/N):\x20','createInterface','520681ctiYXj','3765831wCTbUM'];a70_0xe08d=function(){return _0x276054;};return a70_0xe08d();}(function(_0x124585,_0x2b073b){const _0x27f518=a70_0x4b96,_0x22b644=_0x124585();while(!![]){try{const _0x3987d0=parseInt(_0x27f518(0x16e))/0x1*(parseInt(_0x27f518(0x169))/0x2)+parseInt(_0x27f518(0x16d))/0x3+-parseInt(_0x27f518(0x168))/0x4+-parseInt(_0x27f518(0x165))/0x5+parseInt(_0x27f518(0x167))/0x6*(-parseInt(_0x27f518(0x16c))/0x7)+parseInt(_0x27f518(0x162))/0x8+parseInt(_0x27f518(0x164))/0x9;if(_0x3987d0===_0x2b073b)break;else _0x22b644['push'](_0x22b644['shift']());}catch(_0x1d4018){_0x22b644['push'](_0x22b644['shift']());}}}(a70_0xe08d,0xd9bfb));function a70_0x4b96(_0x2e374b,_0x35d63f){const _0xe08d15=a70_0xe08d();return a70_0x4b96=function(_0x4b96ad,_0x1e7e90){_0x4b96ad=_0x4b96ad-0x161;let _0x3acb9d=_0xe08d15[_0x4b96ad];return _0x3acb9d;},a70_0x4b96(_0x2e374b,_0x35d63f);}import*as a70_0x938ce6 from'readline';export async function confirm(_0x147473){const _0x5196b8=a70_0x4b96,_0x558bf9=a70_0x938ce6[_0x5196b8(0x16b)]({'input':process['stdin'],'output':process[_0x5196b8(0x16f)]});return new Promise(_0x35aa6a=>{const _0x39f2b3=_0x5196b8;_0x558bf9[_0x39f2b3(0x163)](_0x147473+_0x39f2b3(0x16a),_0x10ca45=>{const _0x130a06=_0x39f2b3;_0x558bf9[_0x130a06(0x166)](),_0x35aa6a(_0x10ca45[_0x130a06(0x161)]()==='y'||_0x10ca45[_0x130a06(0x161)]()==='yes');});});}
1
+ function a70_0x2dda(_0x45fea0,_0x59897c){const _0x224e8b=a70_0x224e();return a70_0x2dda=function(_0x2dda12,_0x585493){_0x2dda12=_0x2dda12-0x1e1;let _0x59ec1c=_0x224e8b[_0x2dda12];return _0x59ec1c;},a70_0x2dda(_0x45fea0,_0x59897c);}(function(_0x30760a,_0x1a319a){const _0x224dee=a70_0x2dda,_0x52bd58=_0x30760a();while(!![]){try{const _0x2e5aff=parseInt(_0x224dee(0x1ed))/0x1*(parseInt(_0x224dee(0x1e8))/0x2)+-parseInt(_0x224dee(0x1e3))/0x3+parseInt(_0x224dee(0x1e2))/0x4+-parseInt(_0x224dee(0x1e1))/0x5+-parseInt(_0x224dee(0x1e4))/0x6*(-parseInt(_0x224dee(0x1eb))/0x7)+parseInt(_0x224dee(0x1e5))/0x8+parseInt(_0x224dee(0x1e9))/0x9*(-parseInt(_0x224dee(0x1ea))/0xa);if(_0x2e5aff===_0x1a319a)break;else _0x52bd58['push'](_0x52bd58['shift']());}catch(_0x58cee2){_0x52bd58['push'](_0x52bd58['shift']());}}}(a70_0x224e,0x6f0ab));import*as a70_0x575b38 from'readline';function a70_0x224e(){const _0x32af68=['54101sCzKcT','toLowerCase','2908100dSdxCP','783292bSpons','2201676QNQIHB','1994676bIuphg','7241712thbhjj','question','yes','16INQuAv','863568ILzyFJ','10FmIqjU','7uPvUHJ','stdout'];a70_0x224e=function(){return _0x32af68;};return a70_0x224e();}export async function confirm(_0x53a520){const _0x250cd5=a70_0x2dda,_0x340f9a=a70_0x575b38['createInterface']({'input':process['stdin'],'output':process[_0x250cd5(0x1ec)]});return new Promise(_0x34b04b=>{const _0x1e7f00=_0x250cd5;_0x340f9a[_0x1e7f00(0x1e6)](_0x53a520+'\x20(y/N):\x20',_0x6e58dc=>{const _0x54492f=_0x1e7f00;_0x340f9a['close'](),_0x34b04b(_0x6e58dc[_0x54492f(0x1ee)]()==='y'||_0x6e58dc[_0x54492f(0x1ee)]()===_0x54492f(0x1e7));});});}
@@ -1 +1 @@
1
- (function(_0x40beda,_0x4c2ce0){const _0x16c790=a71_0x330d,_0xc114e2=_0x40beda();while(!![]){try{const _0x181cab=-parseInt(_0x16c790(0xc4))/0x1+-parseInt(_0x16c790(0xc8))/0x2*(parseInt(_0x16c790(0xcb))/0x3)+parseInt(_0x16c790(0xc9))/0x4*(-parseInt(_0x16c790(0xcd))/0x5)+parseInt(_0x16c790(0xc6))/0x6+-parseInt(_0x16c790(0xdc))/0x7+parseInt(_0x16c790(0xd1))/0x8+parseInt(_0x16c790(0xc3))/0x9;if(_0x181cab===_0x4c2ce0)break;else _0xc114e2['push'](_0xc114e2['shift']());}catch(_0x12fb61){_0xc114e2['push'](_0xc114e2['shift']());}}}(a71_0x4f20,0x1ce92));export function parsePath(_0x49685e){const _0x24612a=a71_0x330d;if(!_0x49685e||_0x49685e[_0x24612a(0xd9)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0xf94893=_0x49685e['trim']();if(_0xf94893==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x49685e};const _0x4bf000=_0xf94893[_0x24612a(0xce)]('/')?_0xf94893['substring'](0x1):_0xf94893,_0x3dcac8=_0x4bf000[_0x24612a(0xd7)]('/')[_0x24612a(0xd4)](_0x229b77=>_0x229b77!=='');if(_0x3dcac8[_0x24612a(0xd8)]===0x0)throw new Error(_0x24612a(0xcc));const _0x4d952a=_0xf94893[_0x24612a(0xce)]('/')||!isRelativePathSegment(_0x3dcac8[0x0]);for(const _0x1c5672 of _0x3dcac8){validatePathSegment(_0x1c5672);}return{'segments':_0x3dcac8,'isAbsolute':_0x4d952a,'raw':_0x49685e};}function isRelativePathSegment(_0x25985d){return _0x25985d==='.'||_0x25985d==='..';}function validatePathSegment(_0x5438d4){const _0x5d44e8=a71_0x330d;if(_0x5438d4==='')throw new Error(_0x5d44e8(0xc7));if(_0x5438d4==='.'||_0x5438d4==='..')return;if(/[\x00-\x1F\x7F]/[_0x5d44e8(0xdb)](_0x5438d4))throw new Error(_0x5d44e8(0xd3)+_0x5438d4);if(_0x5438d4!==_0x5438d4['trim']()){}}export function validatePath(_0x496762){const _0x415e45=a71_0x330d;if(_0x496762[_0x415e45(0xd2)][_0x415e45(0xd8)]===0x0&&!_0x496762[_0x415e45(0xc5)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x496762['isAbsolute']){if(_0x496762[_0x415e45(0xd2)][0x0]==='..')throw new Error(_0x415e45(0xd5));let _0x358109=0x0;for(const _0xb83454 of _0x496762[_0x415e45(0xd2)]){if(_0xb83454==='..'){if(_0x358109===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x358109--;}else _0xb83454!=='.'&&_0x358109++;}}}export function joinPaths(_0x2730a5,_0x5a52b6){const _0x39caf7=a71_0x330d;if(!_0x2730a5||_0x2730a5==='/')return _0x5a52b6;if(!_0x5a52b6||_0x5a52b6==='.')return _0x2730a5;if(_0x5a52b6[_0x39caf7(0xce)]('/'))return _0x5a52b6;const _0x2fad0c=parsePath(_0x2730a5),_0x172de6=parsePath(_0x5a52b6),_0x154e98=[..._0x2fad0c['segments']];for(const _0x4328c9 of _0x172de6[_0x39caf7(0xd2)]){if(_0x4328c9==='.')continue;else{if(_0x4328c9==='..'){if(_0x154e98[_0x39caf7(0xd8)]===0x0)throw new Error(_0x39caf7(0xd0));_0x154e98[_0x39caf7(0xc2)]();}else _0x154e98['push'](_0x4328c9);}}const _0x60f2eb=_0x154e98['join']('/');return _0x2fad0c['raw'][_0x39caf7(0xce)]('/')?'/'+_0x60f2eb:_0x60f2eb;}export function normalizePath(_0x3e1de1){const _0x120aeb=a71_0x330d,_0x4d7c0a=parsePath(_0x3e1de1),_0x4d4c6e=[];for(const _0x27ba31 of _0x4d7c0a[_0x120aeb(0xd2)]){if(_0x27ba31==='.')continue;else{if(_0x27ba31==='..'){if(_0x4d4c6e[_0x120aeb(0xd8)]===0x0){if(_0x4d7c0a[_0x120aeb(0xc5)])throw new Error(_0x120aeb(0xd0));_0x4d4c6e['push']('..');}else _0x4d4c6e[_0x4d4c6e[_0x120aeb(0xd8)]-0x1]==='..'?_0x4d4c6e[_0x120aeb(0xd6)]('..'):_0x4d4c6e[_0x120aeb(0xc2)]();}else _0x4d4c6e[_0x120aeb(0xd6)](_0x27ba31);}}if(_0x4d4c6e['length']===0x0)return _0x4d7c0a[_0x120aeb(0xc5)]?'/':'.';const _0x17fdd7=_0x4d4c6e[_0x120aeb(0xda)]('/');return _0x4d7c0a[_0x120aeb(0xcf)]['startsWith']('/')?'/'+_0x17fdd7:_0x17fdd7;}export function getParentPath(_0x246a1d){const _0x596d1e=a71_0x330d,_0x5cbeed=parsePath(_0x246a1d);if(_0x5cbeed[_0x596d1e(0xd2)][_0x596d1e(0xd8)]<=0x1)return'/';const _0x4ecaa9=_0x5cbeed[_0x596d1e(0xd2)][_0x596d1e(0xca)](0x0,-0x1)[_0x596d1e(0xda)]('/');return _0x5cbeed[_0x596d1e(0xcf)][_0x596d1e(0xce)]('/')?'/'+_0x4ecaa9:_0x4ecaa9;}function a71_0x330d(_0x40f697,_0x2f5d0e){const _0x4f20ce=a71_0x4f20();return a71_0x330d=function(_0x330dfe,_0x1f6eb6){_0x330dfe=_0x330dfe-0xc2;let _0x36f021=_0x4f20ce[_0x330dfe];return _0x36f021;},a71_0x330d(_0x40f697,_0x2f5d0e);}export function getBaseName(_0x27d763){const _0x1dcd1c=a71_0x330d,_0x245427=parsePath(_0x27d763);return _0x245427[_0x1dcd1c(0xd2)][_0x245427['segments']['length']-0x1]||'';}export function isChildPath(_0x30eecc,_0x5d4557){const _0x11e8e2=a71_0x330d,_0xdf1bfc=parsePath(_0x30eecc),_0x3bfe45=parsePath(_0x5d4557);if(_0xdf1bfc[_0x11e8e2(0xd2)][_0x11e8e2(0xd8)]<=_0x3bfe45[_0x11e8e2(0xd2)][_0x11e8e2(0xd8)])return![];for(let _0x2e6724=0x0;_0x2e6724<_0x3bfe45[_0x11e8e2(0xd2)]['length'];_0x2e6724++){if(_0xdf1bfc[_0x11e8e2(0xd2)][_0x2e6724]!==_0x3bfe45[_0x11e8e2(0xd2)][_0x2e6724])return![];}return!![];}export function splitPath(_0x3579d1){const _0x276538=a71_0x330d,_0x198f08=parsePath(_0x3579d1);if(_0x198f08[_0x276538(0xd2)][_0x276538(0xd8)]===0x0)throw new Error(_0x276538(0xdd));if(_0x198f08[_0x276538(0xd2)][_0x276538(0xd8)]===0x1)return{'parent':_0x198f08[_0x276538(0xd2)][0x0]};return{'parent':_0x198f08['segments'][0x0],'child':_0x198f08[_0x276538(0xd2)][_0x276538(0xca)](0x1)[_0x276538(0xda)]('/')};}function a71_0x4f20(){const _0x17d2b1=['1104278AVSXjk','Cannot\x20split\x20empty\x20path','pop','2293569hTCzZq','3281ZwpxOk','isAbsolute','588534kQdieg','Path\x20segment\x20cannot\x20be\x20empty','54484vTXnRl','304756JfmqVl','slice','3YkEkKb','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','15UbyVft','startsWith','raw','Cannot\x20navigate\x20above\x20root','1458656TKbtIL','segments','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','filter','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','push','split','length','trim','join','test'];a71_0x4f20=function(){return _0x17d2b1;};return a71_0x4f20();}
1
+ function a71_0x19cd(_0xd201cb,_0x32f908){const _0x388630=a71_0x3886();return a71_0x19cd=function(_0x19cdd5,_0x2b88c0){_0x19cdd5=_0x19cdd5-0x11d;let _0x1598fe=_0x388630[_0x19cdd5];return _0x1598fe;},a71_0x19cd(_0xd201cb,_0x32f908);}(function(_0x1e5353,_0x2fc290){const _0x1c590d=a71_0x19cd,_0x4aca7a=_0x1e5353();while(!![]){try{const _0x1678da=parseInt(_0x1c590d(0x123))/0x1*(-parseInt(_0x1c590d(0x134))/0x2)+parseInt(_0x1c590d(0x121))/0x3+-parseInt(_0x1c590d(0x12b))/0x4+-parseInt(_0x1c590d(0x11d))/0x5*(parseInt(_0x1c590d(0x131))/0x6)+-parseInt(_0x1c590d(0x12e))/0x7+-parseInt(_0x1c590d(0x132))/0x8+parseInt(_0x1c590d(0x12f))/0x9;if(_0x1678da===_0x2fc290)break;else _0x4aca7a['push'](_0x4aca7a['shift']());}catch(_0x2fcb3b){_0x4aca7a['push'](_0x4aca7a['shift']());}}}(a71_0x3886,0xe6ebb));export function parsePath(_0x3c264b){const _0x57b0b7=a71_0x19cd;if(!_0x3c264b||_0x3c264b[_0x57b0b7(0x137)]()==='')throw new Error(_0x57b0b7(0x125));const _0x42fd92=_0x3c264b[_0x57b0b7(0x137)]();if(_0x42fd92==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x3c264b};const _0x4197ec=_0x42fd92[_0x57b0b7(0x136)]('/')?_0x42fd92['substring'](0x1):_0x42fd92,_0x461ed1=_0x4197ec[_0x57b0b7(0x12a)]('/')['filter'](_0xa6559c=>_0xa6559c!=='');if(_0x461ed1[_0x57b0b7(0x128)]===0x0)throw new Error(_0x57b0b7(0x11f));const _0x2e0615=_0x42fd92[_0x57b0b7(0x136)]('/')||!isRelativePathSegment(_0x461ed1[0x0]);for(const _0x770bce of _0x461ed1){validatePathSegment(_0x770bce);}return{'segments':_0x461ed1,'isAbsolute':_0x2e0615,'raw':_0x3c264b};}function isRelativePathSegment(_0x1eb992){return _0x1eb992==='.'||_0x1eb992==='..';}function validatePathSegment(_0x200083){const _0x22744f=a71_0x19cd;if(_0x200083==='')throw new Error(_0x22744f(0x12d));if(_0x200083==='.'||_0x200083==='..')return;if(/[\x00-\x1F\x7F]/[_0x22744f(0x124)](_0x200083))throw new Error(_0x22744f(0x12c)+_0x200083);if(_0x200083!==_0x200083[_0x22744f(0x137)]()){}}export function validatePath(_0x5da5e3){const _0x144676=a71_0x19cd;if(_0x5da5e3[_0x144676(0x129)][_0x144676(0x128)]===0x0&&!_0x5da5e3['isAbsolute'])throw new Error(_0x144676(0x130));if(_0x5da5e3[_0x144676(0x11e)]){if(_0x5da5e3[_0x144676(0x129)][0x0]==='..')throw new Error(_0x144676(0x138));let _0x5a56cd=0x0;for(const _0x98d03d of _0x5da5e3[_0x144676(0x129)]){if(_0x98d03d==='..'){if(_0x5a56cd===0x0)throw new Error(_0x144676(0x122));_0x5a56cd--;}else _0x98d03d!=='.'&&_0x5a56cd++;}}}export function joinPaths(_0x5ed61b,_0x16603b){const _0x569995=a71_0x19cd;if(!_0x5ed61b||_0x5ed61b==='/')return _0x16603b;if(!_0x16603b||_0x16603b==='.')return _0x5ed61b;if(_0x16603b[_0x569995(0x136)]('/'))return _0x16603b;const _0x4cbdaf=parsePath(_0x5ed61b),_0x5b7359=parsePath(_0x16603b),_0x3da55d=[..._0x4cbdaf[_0x569995(0x129)]];for(const _0x54e8fb of _0x5b7359[_0x569995(0x129)]){if(_0x54e8fb==='.')continue;else{if(_0x54e8fb==='..'){if(_0x3da55d['length']===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x3da55d[_0x569995(0x127)]();}else _0x3da55d[_0x569995(0x120)](_0x54e8fb);}}const _0x332b1e=_0x3da55d[_0x569995(0x126)]('/');return _0x4cbdaf['raw']['startsWith']('/')?'/'+_0x332b1e:_0x332b1e;}export function normalizePath(_0x1eae60){const _0xaf8b3b=a71_0x19cd,_0x4db3a7=parsePath(_0x1eae60),_0x4f96f6=[];for(const _0x4a1a94 of _0x4db3a7['segments']){if(_0x4a1a94==='.')continue;else{if(_0x4a1a94==='..'){if(_0x4f96f6[_0xaf8b3b(0x128)]===0x0){if(_0x4db3a7[_0xaf8b3b(0x11e)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x4f96f6[_0xaf8b3b(0x120)]('..');}else _0x4f96f6[_0x4f96f6[_0xaf8b3b(0x128)]-0x1]==='..'?_0x4f96f6[_0xaf8b3b(0x120)]('..'):_0x4f96f6['pop']();}else _0x4f96f6[_0xaf8b3b(0x120)](_0x4a1a94);}}if(_0x4f96f6[_0xaf8b3b(0x128)]===0x0)return _0x4db3a7[_0xaf8b3b(0x11e)]?'/':'.';const _0x5c10ff=_0x4f96f6['join']('/');return _0x4db3a7[_0xaf8b3b(0x133)][_0xaf8b3b(0x136)]('/')?'/'+_0x5c10ff:_0x5c10ff;}function a71_0x3886(){const _0x55d792=['66mlDGgF','12465856bwEJvt','raw','2OTUJKR','slice','startsWith','trim','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20split\x20empty\x20path','31450TBXWKZ','isAbsolute','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','push','5610879JKrvRR','Path\x20attempts\x20to\x20navigate\x20above\x20root','227455CElAlV','test','Path\x20cannot\x20be\x20empty','join','pop','length','segments','split','4486692hIkAFs','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Path\x20segment\x20cannot\x20be\x20empty','1649284qSQKum','20589480ILMgYF','Relative\x20path\x20cannot\x20be\x20empty'];a71_0x3886=function(){return _0x55d792;};return a71_0x3886();}export function getParentPath(_0x1e650a){const _0x58f2cd=a71_0x19cd,_0x547769=parsePath(_0x1e650a);if(_0x547769[_0x58f2cd(0x129)][_0x58f2cd(0x128)]<=0x1)return'/';const _0x2063d1=_0x547769['segments']['slice'](0x0,-0x1)[_0x58f2cd(0x126)]('/');return _0x547769[_0x58f2cd(0x133)][_0x58f2cd(0x136)]('/')?'/'+_0x2063d1:_0x2063d1;}export function getBaseName(_0x447862){const _0x46462d=a71_0x19cd,_0x417ee3=parsePath(_0x447862);return _0x417ee3[_0x46462d(0x129)][_0x417ee3[_0x46462d(0x129)][_0x46462d(0x128)]-0x1]||'';}export function isChildPath(_0x12ec09,_0x41d911){const _0xa58e2b=a71_0x19cd,_0x40b303=parsePath(_0x12ec09),_0x118e2d=parsePath(_0x41d911);if(_0x40b303[_0xa58e2b(0x129)][_0xa58e2b(0x128)]<=_0x118e2d['segments'][_0xa58e2b(0x128)])return![];for(let _0x39e5bb=0x0;_0x39e5bb<_0x118e2d[_0xa58e2b(0x129)][_0xa58e2b(0x128)];_0x39e5bb++){if(_0x40b303[_0xa58e2b(0x129)][_0x39e5bb]!==_0x118e2d[_0xa58e2b(0x129)][_0x39e5bb])return![];}return!![];}export function splitPath(_0x2ea0fd){const _0xe215e=a71_0x19cd,_0x5b9f72=parsePath(_0x2ea0fd);if(_0x5b9f72[_0xe215e(0x129)]['length']===0x0)throw new Error(_0xe215e(0x139));if(_0x5b9f72['segments'][_0xe215e(0x128)]===0x1)return{'parent':_0x5b9f72[_0xe215e(0x129)][0x0]};return{'parent':_0x5b9f72[_0xe215e(0x129)][0x0],'child':_0x5b9f72[_0xe215e(0x129)][_0xe215e(0x135)](0x1)[_0xe215e(0x126)]('/')};}
@@ -1 +1 @@
1
- function a72_0x4028(_0x4a125c,_0xba2382){const _0x47ac17=a72_0x47ac();return a72_0x4028=function(_0x40287e,_0x45c671){_0x40287e=_0x40287e-0x1e7;let _0x1388de=_0x47ac17[_0x40287e];return _0x1388de;},a72_0x4028(_0x4a125c,_0xba2382);}(function(_0x228601,_0x10a619){const _0x5ef743=a72_0x4028,_0x160285=_0x228601();while(!![]){try{const _0x5d9bc5=-parseInt(_0x5ef743(0x1f1))/0x1+-parseInt(_0x5ef743(0x1ec))/0x2*(parseInt(_0x5ef743(0x1e7))/0x3)+parseInt(_0x5ef743(0x1ea))/0x4+parseInt(_0x5ef743(0x1f3))/0x5*(-parseInt(_0x5ef743(0x1ee))/0x6)+parseInt(_0x5ef743(0x1f2))/0x7*(-parseInt(_0x5ef743(0x1f5))/0x8)+-parseInt(_0x5ef743(0x1e8))/0x9*(parseInt(_0x5ef743(0x1f7))/0xa)+-parseInt(_0x5ef743(0x1ef))/0xb*(-parseInt(_0x5ef743(0x1f0))/0xc);if(_0x5d9bc5===_0x10a619)break;else _0x160285['push'](_0x160285['shift']());}catch(_0x233b81){_0x160285['push'](_0x160285['shift']());}}}(a72_0x47ac,0x9f562));export function parseSegmentRef(_0x4b2864){const _0x1e5bf4=a72_0x4028,_0x28950c=_0x4b2864[_0x1e5bf4(0x1f4)]('/');if(_0x28950c===-0x1)return{'parentId':_0x4b2864};if(_0x28950c===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x4b2864+_0x1e5bf4(0x1e9));const _0x347432=_0x4b2864[_0x1e5bf4(0x1eb)](0x0,_0x28950c),_0x3b57ac=_0x4b2864[_0x1e5bf4(0x1eb)](_0x28950c+0x1);if(_0x3b57ac==='')throw new Error(_0x1e5bf4(0x1f6)+_0x4b2864+_0x1e5bf4(0x1ed));return{'parentId':_0x347432,'childId':_0x3b57ac};}function a72_0x47ac(){const _0x190dd1=['3xCChiV','9cchqEI','.\x20Parent\x20name\x20cannot\x20be\x20empty','4731992LvlWtT','substring','957458fUFtpo','.\x20Child\x20name\x20cannot\x20be\x20empty','6qYSwpW','928873gxzMhn','456sMuyLf','1176788DDrlqp','3843OjCRjL','4923655oaWGQo','indexOf','5400RmGDzQ','Invalid\x20segment\x20reference\x20format:\x20','7283670sgPLYW'];a72_0x47ac=function(){return _0x190dd1;};return a72_0x47ac();}
1
+ function a72_0x1424(_0x284ecc,_0x65df83){const _0x2be138=a72_0x2be1();return a72_0x1424=function(_0x14241f,_0x193f1f){_0x14241f=_0x14241f-0x100;let _0x1aa110=_0x2be138[_0x14241f];return _0x1aa110;},a72_0x1424(_0x284ecc,_0x65df83);}function a72_0x2be1(){const _0x422d72=['5164cEkiDL','49068znHIjb','365wXSwSD','14907013Faplbb','.\x20Parent\x20name\x20cannot\x20be\x20empty','4410240EKaclT','6043EpzusL','Invalid\x20segment\x20reference\x20format:\x20','substring','81GXSZAh','12LozcvG','523229LrAeBW','518800CNaYzz','42vKtkzT','102GmSViH','indexOf'];a72_0x2be1=function(){return _0x422d72;};return a72_0x2be1();}(function(_0x5db681,_0x533bbc){const _0x3d8079=a72_0x1424,_0x418d61=_0x5db681();while(!![]){try{const _0x38e93f=-parseInt(_0x3d8079(0x107))/0x1*(-parseInt(_0x3d8079(0x10f))/0x2)+parseInt(_0x3d8079(0x102))/0x3+parseInt(_0x3d8079(0x101))/0x4*(-parseInt(_0x3d8079(0x103))/0x5)+-parseInt(_0x3d8079(0x10e))/0x6*(-parseInt(_0x3d8079(0x10c))/0x7)+parseInt(_0x3d8079(0x106))/0x8+-parseInt(_0x3d8079(0x10a))/0x9*(-parseInt(_0x3d8079(0x10d))/0xa)+parseInt(_0x3d8079(0x104))/0xb*(-parseInt(_0x3d8079(0x10b))/0xc);if(_0x38e93f===_0x533bbc)break;else _0x418d61['push'](_0x418d61['shift']());}catch(_0x1322a5){_0x418d61['push'](_0x418d61['shift']());}}}(a72_0x2be1,0x65b28));export function parseSegmentRef(_0x2c6229){const _0x6faa22=a72_0x1424,_0x2f2513=_0x2c6229[_0x6faa22(0x100)]('/');if(_0x2f2513===-0x1)return{'parentId':_0x2c6229};if(_0x2f2513===0x0)throw new Error(_0x6faa22(0x108)+_0x2c6229+_0x6faa22(0x105));const _0x1e5e39=_0x2c6229[_0x6faa22(0x109)](0x0,_0x2f2513),_0xddf23f=_0x2c6229['substring'](_0x2f2513+0x1);if(_0xddf23f==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2c6229+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x1e5e39,'childId':_0xddf23f};}
@@ -1 +1 @@
1
- (function(_0x465088,_0x7b956c){const _0x565751=a73_0x5e26,_0x36788c=_0x465088();while(!![]){try{const _0x2c1e1d=parseInt(_0x565751(0xe1))/0x1+-parseInt(_0x565751(0xf2))/0x2*(parseInt(_0x565751(0xd9))/0x3)+-parseInt(_0x565751(0xdc))/0x4*(-parseInt(_0x565751(0xe4))/0x5)+parseInt(_0x565751(0xf1))/0x6*(parseInt(_0x565751(0xec))/0x7)+parseInt(_0x565751(0xd8))/0x8+parseInt(_0x565751(0xe8))/0x9+parseInt(_0x565751(0xeb))/0xa*(-parseInt(_0x565751(0xe0))/0xb);if(_0x2c1e1d===_0x7b956c)break;else _0x36788c['push'](_0x36788c['shift']());}catch(_0x1f8f71){_0x36788c['push'](_0x36788c['shift']());}}}(a73_0x3169,0xe0ab3));import a73_0x436172 from'ora';export function createCommandSpinner(_0x5ef309,_0x56a2ce={}){const _0x1c74f3=a73_0x5e26,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x56a2ce;return a73_0x436172({'text':_0x5ef309,'color':_0x1c74f3(0xe2),'isEnabled':forceEnabled||process[_0x1c74f3(0xda)]['isTTY']&&!verbose});}export async function withSpinner(_0x392f39,_0x394cef,_0x5b531d={}){const _0x10188e=a73_0x5e26,_0x271bed=_0x5b531d[_0x10188e(0xde)]??(()=>Date[_0x10188e(0xed)]()),_0x1053be=createCommandSpinner(_0x392f39,_0x5b531d);_0x1053be[_0x10188e(0xea)]();const _0x8f41cd=_0x271bed();try{const _0x19473e=await _0x394cef(),_0x17a28c=_0x271bed()-_0x8f41cd;return _0x1053be[_0x10188e(0xdf)](),{'data':_0x19473e,'elapsedMs':_0x17a28c};}catch(_0x330522){_0x1053be['stop']();throw _0x330522;}}function a73_0x3169(){const _0x316262=['1026288yGijip','3wyuADr','stdout','text','91656juxIBh','...','clock','stop','44dlaxsj','635803mYfpXN','cyan','\x20[Job\x20ID:\x20','390Aafpda','jobId','toFixed','intervalFactory','9624465TPjTef','isSpinning','start','8518030CndJXh','119ErOGwt','now','replace','extra','floor','632796iaibGd','2172466iuwply'];a73_0x3169=function(){return _0x316262;};return a73_0x3169();}export async function withQuerySpinner(_0x1b8396,_0x150748,_0x185c3f={}){const _0x565300=a73_0x5e26,_0x35bdaa=_0x185c3f[_0x565300(0xde)]??(()=>Date['now']()),_0x32078c=_0x185c3f[_0x565300(0xe7)]??setInterval,_0x521432=createCommandSpinner(_0x1b8396,_0x185c3f);_0x521432[_0x565300(0xea)]();const _0x2df47a=_0x35bdaa(),_0x1d7c6f=_0x1b8396[_0x565300(0xee)](_0x565300(0xdd),''),_0x212703={},_0x4ee14f=()=>{const _0x3080f7=_0x565300;if(!_0x521432[_0x3080f7(0xe9)])return;const _0x3c4036=_0x35bdaa()-_0x2df47a,_0x2d7c78=formatElapsed(_0x3c4036),_0x66aa93=_0x212703['phase']??_0x1d7c6f,_0x31faa9=_0x212703[_0x3080f7(0xe5)]?_0x3080f7(0xe3)+_0x212703['jobId']+']':'',_0x274e35=_0x212703[_0x3080f7(0xef)]?'\x20'+_0x212703[_0x3080f7(0xef)]:'';_0x521432[_0x3080f7(0xdb)]=_0x66aa93+'\x20'+_0x2d7c78+_0x274e35+_0x31faa9;},_0x5d488e=_0x32078c(()=>{_0x4ee14f();},0x3e8),_0x2eebef={'setPhase':_0x5f32ac=>{_0x212703['phase']=_0x5f32ac,_0x4ee14f();},'setJobId':_0x125b99=>{const _0x5319b2=_0x565300;_0x212703[_0x5319b2(0xe5)]=_0x125b99,_0x4ee14f();},'setExtra':_0xd07f11=>{const _0x3b39d4=_0x565300;_0x212703[_0x3b39d4(0xef)]=_0xd07f11,_0x4ee14f();}};_0x4ee14f();try{const _0x240010=await _0x150748(_0x2eebef),_0x1f0bd6=_0x35bdaa()-_0x2df47a;return{'data':_0x240010,'elapsedMs':_0x1f0bd6};}finally{clearInterval(_0x5d488e),_0x521432['stop']();}}function a73_0x5e26(_0x26c468,_0x28185b){const _0x316933=a73_0x3169();return a73_0x5e26=function(_0x5e2670,_0x25d5f8){_0x5e2670=_0x5e2670-0xd8;let _0x265ca4=_0x316933[_0x5e2670];return _0x265ca4;},a73_0x5e26(_0x26c468,_0x28185b);}export function formatElapsed(_0x3f9be9){const _0x635960=a73_0x5e26,_0x205bd3=Math[_0x635960(0xf0)](_0x3f9be9/0x3e8);if(_0x205bd3<0x3c)return(_0x3f9be9/0x3e8)[_0x635960(0xe6)](0x1)+'s';const _0xd33c56=Math['floor'](_0x205bd3/0x3c),_0x5bbb39=_0x205bd3%0x3c;if(_0xd33c56<0x3c)return _0xd33c56+'m\x20'+_0x5bbb39+'s';const _0x3bf08a=Math[_0x635960(0xf0)](_0xd33c56/0x3c),_0xb7be31=_0xd33c56%0x3c;return _0x3bf08a+'h\x20'+_0xb7be31+'m';}
1
+ (function(_0x4fa166,_0xa104d9){const _0x552847=a73_0x281d,_0x540d62=_0x4fa166();while(!![]){try{const _0x18c460=parseInt(_0x552847(0x1a3))/0x1*(-parseInt(_0x552847(0x1ad))/0x2)+-parseInt(_0x552847(0x1a4))/0x3+parseInt(_0x552847(0x1a1))/0x4+parseInt(_0x552847(0x1a5))/0x5*(-parseInt(_0x552847(0x1a7))/0x6)+-parseInt(_0x552847(0x1ae))/0x7*(parseInt(_0x552847(0x1a8))/0x8)+-parseInt(_0x552847(0x19a))/0x9*(parseInt(_0x552847(0x1aa))/0xa)+parseInt(_0x552847(0x19c))/0xb;if(_0x18c460===_0xa104d9)break;else _0x540d62['push'](_0x540d62['shift']());}catch(_0x1a1d23){_0x540d62['push'](_0x540d62['shift']());}}}(a73_0x533a,0x781e4));import a73_0x3bf353 from'ora';export function createCommandSpinner(_0x3f1926,_0x13e9cd={}){const _0x5e1d23=a73_0x281d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x13e9cd;return a73_0x3bf353({'text':_0x3f1926,'color':'cyan','isEnabled':forceEnabled||process['stdout'][_0x5e1d23(0x1a9)]&&!verbose});}function a73_0x281d(_0x3e225f,_0x2eb175){const _0x533ae0=a73_0x533a();return a73_0x281d=function(_0x281d78,_0x14e497){_0x281d78=_0x281d78-0x199;let _0x510df4=_0x533ae0[_0x281d78];return _0x510df4;},a73_0x281d(_0x3e225f,_0x2eb175);}export async function withSpinner(_0x51cf4c,_0x1bdae4,_0x2ca2eb={}){const _0x5d70a4=a73_0x281d,_0x50f9f0=_0x2ca2eb[_0x5d70a4(0x1af)]??(()=>Date[_0x5d70a4(0x1b1)]()),_0x2d906d=createCommandSpinner(_0x51cf4c,_0x2ca2eb);_0x2d906d['start']();const _0x18c71=_0x50f9f0();try{const _0x188223=await _0x1bdae4(),_0x3694bc=_0x50f9f0()-_0x18c71;return _0x2d906d[_0x5d70a4(0x1a2)](),{'data':_0x188223,'elapsedMs':_0x3694bc};}catch(_0x238794){_0x2d906d['stop']();throw _0x238794;}}function a73_0x533a(){const _0xe34ff1=['\x20[Job\x20ID:\x20','64yXHaIK','139419eIPfjV','clock','isSpinning','now','jobId','9bCYbyg','intervalFactory','23558579LsysFW','phase','...','extra','start','23952fDxxtx','stop','1789vvjbJO','2553660fpChqn','253545fZgtSW','replace','48SkRByq','120TDfLyS','isTTY','427780OBhkCX','text'];a73_0x533a=function(){return _0xe34ff1;};return a73_0x533a();}export async function withQuerySpinner(_0xe84c75,_0x2116d8,_0x1d53f8={}){const _0x391a93=a73_0x281d,_0x4dcf36=_0x1d53f8['clock']??(()=>Date['now']()),_0x5efd50=_0x1d53f8[_0x391a93(0x19b)]??setInterval,_0x1bb3cd=createCommandSpinner(_0xe84c75,_0x1d53f8);_0x1bb3cd[_0x391a93(0x1a0)]();const _0x2453e0=_0x4dcf36(),_0x177b45=_0xe84c75[_0x391a93(0x1a6)](_0x391a93(0x19e),''),_0x250483={},_0x225f6f=()=>{const _0x56bfe9=_0x391a93;if(!_0x1bb3cd[_0x56bfe9(0x1b0)])return;const _0x52ff00=_0x4dcf36()-_0x2453e0,_0x197d8a=formatElapsed(_0x52ff00),_0x215dab=_0x250483[_0x56bfe9(0x19d)]??_0x177b45,_0x54cf97=_0x250483[_0x56bfe9(0x199)]?_0x56bfe9(0x1ac)+_0x250483[_0x56bfe9(0x199)]+']':'',_0x4f1964=_0x250483[_0x56bfe9(0x19f)]?'\x20'+_0x250483[_0x56bfe9(0x19f)]:'';_0x1bb3cd[_0x56bfe9(0x1ab)]=_0x215dab+'\x20'+_0x197d8a+_0x4f1964+_0x54cf97;},_0xd82f5d=_0x5efd50(()=>{_0x225f6f();},0x3e8),_0x45e3d6={'setPhase':_0x224a18=>{_0x250483['phase']=_0x224a18,_0x225f6f();},'setJobId':_0xe7f55=>{_0x250483['jobId']=_0xe7f55,_0x225f6f();},'setExtra':_0x3186c9=>{const _0x305394=_0x391a93;_0x250483[_0x305394(0x19f)]=_0x3186c9,_0x225f6f();}};_0x225f6f();try{const _0x5e36ed=await _0x2116d8(_0x45e3d6),_0x2506e3=_0x4dcf36()-_0x2453e0;return{'data':_0x5e36ed,'elapsedMs':_0x2506e3};}finally{clearInterval(_0xd82f5d),_0x1bb3cd[_0x391a93(0x1a2)]();}}export function formatElapsed(_0x2f11b6){const _0x1c2e9e=Math['floor'](_0x2f11b6/0x3e8);if(_0x1c2e9e<0x3c)return(_0x2f11b6/0x3e8)['toFixed'](0x1)+'s';const _0x3113c0=Math['floor'](_0x1c2e9e/0x3c),_0x32d611=_0x1c2e9e%0x3c;if(_0x3113c0<0x3c)return _0x3113c0+'m\x20'+_0x32d611+'s';const _0x18b5d2=Math['floor'](_0x3113c0/0x3c),_0x51ed26=_0x3113c0%0x3c;return _0x18b5d2+'h\x20'+_0x51ed26+'m';}
@@ -1 +1 @@
1
- function a74_0x51d3(_0x3c7e7c,_0x169164){const _0x28967a=a74_0x2896();return a74_0x51d3=function(_0x51d327,_0x43ccdb){_0x51d327=_0x51d327-0xab;let _0x46394e=_0x28967a[_0x51d327];return _0x46394e;},a74_0x51d3(_0x3c7e7c,_0x169164);}(function(_0x37edb5,_0x3bb152){const _0x5bc363=a74_0x51d3,_0x280085=_0x37edb5();while(!![]){try{const _0x1e4a22=parseInt(_0x5bc363(0xb0))/0x1*(parseInt(_0x5bc363(0xb6))/0x2)+parseInt(_0x5bc363(0xbd))/0x3*(-parseInt(_0x5bc363(0xab))/0x4)+-parseInt(_0x5bc363(0xba))/0x5*(-parseInt(_0x5bc363(0xc4))/0x6)+-parseInt(_0x5bc363(0xc0))/0x7*(parseInt(_0x5bc363(0xaf))/0x8)+parseInt(_0x5bc363(0xb2))/0x9+-parseInt(_0x5bc363(0xad))/0xa*(-parseInt(_0x5bc363(0xc1))/0xb)+-parseInt(_0x5bc363(0xb9))/0xc;if(_0x1e4a22===_0x3bb152)break;else _0x280085['push'](_0x280085['shift']());}catch(_0x459bf3){_0x280085['push'](_0x280085['shift']());}}}(a74_0x2896,0x8defc));function a74_0x2896(){const _0xa2fc23=['code','message','2647464wdSWbd','\x27\x20not\x20found','4yPhCyn','utf-8','103640mQTwek','length','22744BelpoZ','4OCqumR','replace','5607900OuLWwo','Error\x20reading\x20file\x20\x27','trim','Permission\x20denied\x20reading\x20file\x20\x27','510130XvYPiI','Content\x20contains\x20no\x20SQL\x20statements','filter','11050416IioiIR','5PuyRCu','push','ENOENT','2724819vlursS','File\x20\x27','toLowerCase','1239COBsXI','880frVBdK'];a74_0x2896=function(){return _0xa2fc23;};return a74_0x2896();}import{readFileSync}from'fs';export function stripSqlComments(_0x4399dd){const _0x445b88=a74_0x51d3;let _0x5af98c=_0x4399dd[_0x445b88(0xb1)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5af98c=_0x5af98c[_0x445b88(0xb1)](/--.*$/gm,''),_0x5af98c[_0x445b88(0xb4)]();}function isEscaped(_0x3f2928,_0x1a62b0){let _0x72c009=0x0;for(let _0x24604c=_0x1a62b0-0x1;_0x24604c>=0x0&&_0x3f2928[_0x24604c]==='\x5c';_0x24604c--){_0x72c009++;}return _0x72c009%0x2===0x1;}export function splitSqlStatements(_0x43fd26){const _0x2306b=a74_0x51d3,_0x4aa979=stripSqlComments(_0x43fd26);if(!_0x4aa979)throw new Error(_0x2306b(0xb7));const _0x520ed6=[];let _0x1aeb52='',_0x4e6b3a=![],_0x2d4c62=![],_0x473d5a=![];for(let _0x3ca541=0x0;_0x3ca541<_0x43fd26[_0x2306b(0xae)];_0x3ca541++){const _0x371f7f=_0x43fd26[_0x3ca541];if(_0x371f7f==='\x27'&&!isEscaped(_0x43fd26,_0x3ca541)&&!_0x2d4c62&&!_0x473d5a)_0x4e6b3a=!_0x4e6b3a;else{if(_0x371f7f==='\x22'&&!isEscaped(_0x43fd26,_0x3ca541)&&!_0x4e6b3a&&!_0x473d5a)_0x2d4c62=!_0x2d4c62;else _0x371f7f==='`'&&!isEscaped(_0x43fd26,_0x3ca541)&&!_0x4e6b3a&&!_0x2d4c62&&(_0x473d5a=!_0x473d5a);}if(_0x371f7f===';'&&!_0x4e6b3a&&!_0x2d4c62&&!_0x473d5a){const _0x1b963c=_0x1aeb52[_0x2306b(0xb4)]();_0x1b963c&&_0x520ed6[_0x2306b(0xbb)](_0x1b963c),_0x1aeb52='';}else _0x1aeb52+=_0x371f7f;}const _0x28047d=_0x1aeb52[_0x2306b(0xb4)]();_0x28047d&&_0x520ed6[_0x2306b(0xbb)](_0x28047d);const _0x5abbd5=_0x520ed6['map'](_0x18964e=>_0x18964e[_0x2306b(0xb4)]())[_0x2306b(0xb8)](_0x160f78=>{const _0x3dfaed=_0x2306b,_0x54b9e5=stripSqlComments(_0x160f78);return _0x54b9e5[_0x3dfaed(0xae)]>0x0;});if(_0x5abbd5[_0x2306b(0xae)]===0x0)throw new Error(_0x2306b(0xb7));return _0x5abbd5;}export function readFileContent(_0x5b6601){const _0x453daa=a74_0x51d3;try{return readFileSync(_0x5b6601,_0x453daa(0xac));}catch(_0x3bb87e){const _0x4127b0=_0x3bb87e[_0x453daa(0xc2)];if(_0x4127b0===_0x453daa(0xbc))throw new Error(_0x453daa(0xbe)+_0x5b6601+_0x453daa(0xc5));else{if(_0x4127b0==='EACCES')throw new Error(_0x453daa(0xb5)+_0x5b6601+'\x27');else throw new Error(_0x453daa(0xb3)+_0x5b6601+'\x27:\x20'+_0x3bb87e[_0x453daa(0xc3)]);}}}export function readSqlStatementsFromFile(_0x198e4f){const _0x3c8d24=a74_0x51d3,_0x44557c=readFileContent(_0x198e4f);try{return splitSqlStatements(_0x44557c);}catch(_0x2c8807){throw new Error(_0x3c8d24(0xbe)+_0x198e4f+'\x27\x20'+_0x2c8807['message'][_0x3c8d24(0xbf)]());}}
1
+ (function(_0x72603b,_0x53ab75){const _0x2de0a5=a74_0x17b0,_0x102a56=_0x72603b();while(!![]){try{const _0x38f0d3=-parseInt(_0x2de0a5(0x90))/0x1+parseInt(_0x2de0a5(0x8d))/0x2*(-parseInt(_0x2de0a5(0xa2))/0x3)+parseInt(_0x2de0a5(0x92))/0x4+parseInt(_0x2de0a5(0x9e))/0x5+-parseInt(_0x2de0a5(0x9b))/0x6+parseInt(_0x2de0a5(0x91))/0x7*(parseInt(_0x2de0a5(0x99))/0x8)+-parseInt(_0x2de0a5(0x97))/0x9*(-parseInt(_0x2de0a5(0x96))/0xa);if(_0x38f0d3===_0x53ab75)break;else _0x102a56['push'](_0x102a56['shift']());}catch(_0x314037){_0x102a56['push'](_0x102a56['shift']());}}}(a74_0x5f44,0x506ad));import{readFileSync}from'fs';export function stripSqlComments(_0x1984c8){const _0x33a2cb=a74_0x17b0;let _0x395396=_0x1984c8[_0x33a2cb(0x8f)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x395396=_0x395396[_0x33a2cb(0x8f)](/--.*$/gm,''),_0x395396[_0x33a2cb(0x9d)]();}function a74_0x17b0(_0x5787ff,_0x2e13a4){const _0x5f4448=a74_0x5f44();return a74_0x17b0=function(_0x17b0ae,_0x228e59){_0x17b0ae=_0x17b0ae-0x8d;let _0x6bbe55=_0x5f4448[_0x17b0ae];return _0x6bbe55;},a74_0x17b0(_0x5787ff,_0x2e13a4);}function isEscaped(_0x514829,_0x7ab48c){let _0x2caba9=0x0;for(let _0x195f9d=_0x7ab48c-0x1;_0x195f9d>=0x0&&_0x514829[_0x195f9d]==='\x5c';_0x195f9d--){_0x2caba9++;}return _0x2caba9%0x2===0x1;}export function splitSqlStatements(_0x4b7190){const _0x500a29=a74_0x17b0,_0x2130d9=stripSqlComments(_0x4b7190);if(!_0x2130d9)throw new Error(_0x500a29(0xa0));const _0x597cb6=[];let _0x2b5a5c='',_0x58ef50=![],_0x24178c=![],_0xec828b=![];for(let _0xc24383=0x0;_0xc24383<_0x4b7190['length'];_0xc24383++){const _0x38293a=_0x4b7190[_0xc24383];if(_0x38293a==='\x27'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x24178c&&!_0xec828b)_0x58ef50=!_0x58ef50;else{if(_0x38293a==='\x22'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x58ef50&&!_0xec828b)_0x24178c=!_0x24178c;else _0x38293a==='`'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x58ef50&&!_0x24178c&&(_0xec828b=!_0xec828b);}if(_0x38293a===';'&&!_0x58ef50&&!_0x24178c&&!_0xec828b){const _0x211b75=_0x2b5a5c[_0x500a29(0x9d)]();_0x211b75&&_0x597cb6[_0x500a29(0x93)](_0x211b75),_0x2b5a5c='';}else _0x2b5a5c+=_0x38293a;}const _0x11d258=_0x2b5a5c['trim']();_0x11d258&&_0x597cb6[_0x500a29(0x93)](_0x11d258);const _0x4ef8a0=_0x597cb6[_0x500a29(0x9c)](_0x4a4b0e=>_0x4a4b0e[_0x500a29(0x9d)]())['filter'](_0x38a8c5=>{const _0x473495=_0x500a29,_0x203949=stripSqlComments(_0x38a8c5);return _0x203949[_0x473495(0x98)]>0x0;});if(_0x4ef8a0[_0x500a29(0x98)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x4ef8a0;}export function readFileContent(_0x5ab878){const _0x46c3a0=a74_0x17b0;try{return readFileSync(_0x5ab878,_0x46c3a0(0x8e));}catch(_0x18a332){const _0x5396ff=_0x18a332[_0x46c3a0(0xa1)];if(_0x5396ff==='ENOENT')throw new Error(_0x46c3a0(0xa3)+_0x5ab878+_0x46c3a0(0x9f));else{if(_0x5396ff==='EACCES')throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x5ab878+'\x27');else throw new Error(_0x46c3a0(0x94)+_0x5ab878+_0x46c3a0(0xa4)+_0x18a332['message']);}}}export function readSqlStatementsFromFile(_0x835051){const _0x402a01=a74_0x17b0,_0x4c03ee=readFileContent(_0x835051);try{return splitSqlStatements(_0x4c03ee);}catch(_0x186ad9){throw new Error(_0x402a01(0xa3)+_0x835051+'\x27\x20'+_0x186ad9[_0x402a01(0x95)][_0x402a01(0x9a)]());}}function a74_0x5f44(){const _0x379cc8=['625221tJgVdH','2123359zLwhWU','403684ILocVy','push','Error\x20reading\x20file\x20\x27','message','470rRIaPH','115110YPLuKj','length','8nzRhBU','toLowerCase','584268qLGUTo','map','trim','1347645wAGBku','\x27\x20not\x20found','Content\x20contains\x20no\x20SQL\x20statements','code','3SoiqWJ','File\x20\x27','\x27:\x20','445858RSmxaa','utf-8','replace'];a74_0x5f44=function(){return _0x379cc8;};return a74_0x5f44();}
@@ -1 +1 @@
1
- (function(_0x3dd3ad,_0x13c763){const _0x278d94=a75_0x1337,_0x39eb2e=_0x3dd3ad();while(!![]){try{const _0x5b880e=parseInt(_0x278d94(0x93))/0x1*(-parseInt(_0x278d94(0x88))/0x2)+-parseInt(_0x278d94(0x8e))/0x3*(-parseInt(_0x278d94(0x94))/0x4)+parseInt(_0x278d94(0x8c))/0x5*(parseInt(_0x278d94(0x8a))/0x6)+-parseInt(_0x278d94(0x96))/0x7+parseInt(_0x278d94(0x91))/0x8*(-parseInt(_0x278d94(0x83))/0x9)+-parseInt(_0x278d94(0x8b))/0xa*(parseInt(_0x278d94(0x89))/0xb)+parseInt(_0x278d94(0x95))/0xc;if(_0x5b880e===_0x13c763)break;else _0x39eb2e['push'](_0x39eb2e['shift']());}catch(_0x57ef55){_0x39eb2e['push'](_0x39eb2e['shift']());}}}(a75_0x14eb,0x237c0));function a75_0x14eb(){const _0x3eabc1=['parse','273490jXJKTW','812jVVmrY','12109632LfYUms','1286145ZimVuH','data','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','event','34893bEKoUq','indexOf','body','startsWith','pop','2qoipxz','11qILxnX','104784WpgKpl','1930640GHVovW','10DvHrEG','Response\x20body\x20is\x20null','282KmmwXM','getReader','slice','552SLOkyp'];a75_0x14eb=function(){return _0x3eabc1;};return a75_0x14eb();}function a75_0x1337(_0x48f07e,_0x386802){const _0x14ebcb=a75_0x14eb();return a75_0x1337=function(_0x133763,_0x5ea42e){_0x133763=_0x133763-0x82;let _0x366068=_0x14ebcb[_0x133763];return _0x366068;},a75_0x1337(_0x48f07e,_0x386802);}export async function*parseSSEStream(_0x2f2208){const _0x4408bf=a75_0x1337;if(!_0x2f2208[_0x4408bf(0x85)])throw new Error(_0x4408bf(0x8d));const _0x553c8f=_0x2f2208['body'][_0x4408bf(0x8f)](),_0x404725=new TextDecoder();let _0x3b9344='',_0x1e04e6={};try{while(!![]){const {done:_0x3c4899,value:_0x2306a2}=await _0x553c8f['read']();if(_0x3c4899){_0x1e04e6[_0x4408bf(0x97)]&&(yield parseSSEData(_0x1e04e6[_0x4408bf(0x97)]));break;}_0x3b9344+=_0x404725['decode'](_0x2306a2,{'stream':!![]});const _0x569938=_0x3b9344['split']('\x0a');_0x3b9344=_0x569938[_0x4408bf(0x87)]()||'';for(const _0x12b467 of _0x569938){if(_0x12b467['trim']()===''){_0x1e04e6[_0x4408bf(0x97)]&&(yield parseSSEData(_0x1e04e6[_0x4408bf(0x97)]),_0x1e04e6={});continue;}if(_0x12b467[_0x4408bf(0x86)](':'))continue;const _0x1eeb1b=_0x12b467[_0x4408bf(0x84)](':');if(_0x1eeb1b===-0x1)continue;const _0x2ca382=_0x12b467[_0x4408bf(0x90)](0x0,_0x1eeb1b);let _0x565736=_0x12b467[_0x4408bf(0x90)](_0x1eeb1b+0x1);_0x565736[_0x4408bf(0x86)]('\x20')&&(_0x565736=_0x565736['slice'](0x1));switch(_0x2ca382){case'event':_0x1e04e6[_0x4408bf(0x82)]=_0x565736;break;case _0x4408bf(0x97):_0x1e04e6['data']=_0x1e04e6[_0x4408bf(0x97)]?_0x1e04e6[_0x4408bf(0x97)]+'\x0a'+_0x565736:_0x565736;break;case'id':_0x1e04e6['id']=_0x565736;break;}}}}finally{_0x553c8f['releaseLock']();}}function parseSSEData(_0x2277c0){const _0x5c9907=a75_0x1337;try{return JSON[_0x5c9907(0x92)](_0x2277c0);}catch(_0x1dc092){throw new Error(_0x5c9907(0x98)+_0x2277c0,{'cause':_0x1dc092});}}
1
+ function a75_0x2801(){const _0x2ec243=['slice','event','264332aFSkTO','3252520oSsTvj','10WMifZs','12681DYtddr','getReader','read','releaseLock','data','body','startsWith','indexOf','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','decode','2250612BqGzXd','2395180WJmnsk','1074927nhPKns','parse','Response\x20body\x20is\x20null','2053296KFbJqm','6Gjfmak'];a75_0x2801=function(){return _0x2ec243;};return a75_0x2801();}(function(_0x46beee,_0x4f363c){const _0x313deb=a75_0x5974,_0x353d49=_0x46beee();while(!![]){try{const _0x33ae4f=parseInt(_0x313deb(0xa1))/0x1*(-parseInt(_0x313deb(0xa0))/0x2)+parseInt(_0x313deb(0xad))/0x3+parseInt(_0x313deb(0x9e))/0x4+-parseInt(_0x313deb(0xac))/0x5*(parseInt(_0x313deb(0x9b))/0x6)+parseInt(_0x313deb(0xab))/0x7+parseInt(_0x313deb(0x9f))/0x8+-parseInt(_0x313deb(0x9a))/0x9;if(_0x33ae4f===_0x4f363c)break;else _0x353d49['push'](_0x353d49['shift']());}catch(_0x248f80){_0x353d49['push'](_0x353d49['shift']());}}}(a75_0x2801,0x5d3c0));export async function*parseSSEStream(_0x58fe56){const _0x5f20da=a75_0x5974;if(!_0x58fe56[_0x5f20da(0xa6)])throw new Error(_0x5f20da(0x99));const _0x535b83=_0x58fe56[_0x5f20da(0xa6)][_0x5f20da(0xa2)](),_0x4bf576=new TextDecoder();let _0x6bed1e='',_0x5da539={};try{while(!![]){const {done:_0x1b3258,value:_0x3f6fa7}=await _0x535b83[_0x5f20da(0xa3)]();if(_0x1b3258){_0x5da539[_0x5f20da(0xa5)]&&(yield parseSSEData(_0x5da539[_0x5f20da(0xa5)]));break;}_0x6bed1e+=_0x4bf576[_0x5f20da(0xaa)](_0x3f6fa7,{'stream':!![]});const _0x4b2dd7=_0x6bed1e['split']('\x0a');_0x6bed1e=_0x4b2dd7['pop']()||'';for(const _0xf018e5 of _0x4b2dd7){if(_0xf018e5['trim']()===''){_0x5da539[_0x5f20da(0xa5)]&&(yield parseSSEData(_0x5da539[_0x5f20da(0xa5)]),_0x5da539={});continue;}if(_0xf018e5[_0x5f20da(0xa7)](':'))continue;const _0x4664fb=_0xf018e5[_0x5f20da(0xa8)](':');if(_0x4664fb===-0x1)continue;const _0x2e45a8=_0xf018e5['slice'](0x0,_0x4664fb);let _0xe33076=_0xf018e5[_0x5f20da(0x9c)](_0x4664fb+0x1);_0xe33076[_0x5f20da(0xa7)]('\x20')&&(_0xe33076=_0xe33076['slice'](0x1));switch(_0x2e45a8){case _0x5f20da(0x9d):_0x5da539[_0x5f20da(0x9d)]=_0xe33076;break;case _0x5f20da(0xa5):_0x5da539[_0x5f20da(0xa5)]=_0x5da539[_0x5f20da(0xa5)]?_0x5da539[_0x5f20da(0xa5)]+'\x0a'+_0xe33076:_0xe33076;break;case'id':_0x5da539['id']=_0xe33076;break;}}}}finally{_0x535b83[_0x5f20da(0xa4)]();}}function a75_0x5974(_0x488679,_0x28ebed){const _0x2801c3=a75_0x2801();return a75_0x5974=function(_0x59742f,_0x1d2957){_0x59742f=_0x59742f-0x98;let _0xb507e8=_0x2801c3[_0x59742f];return _0xb507e8;},a75_0x5974(_0x488679,_0x28ebed);}function parseSSEData(_0x361dd5){const _0x59f568=a75_0x5974;try{return JSON[_0x59f568(0x98)](_0x361dd5);}catch(_0x45999){throw new Error(_0x59f568(0xa9)+_0x361dd5,{'cause':_0x45999});}}
@@ -1 +1 @@
1
- (function(_0x324404,_0x320cea){const _0x3e14e0=a76_0x1090,_0x3ac7ca=_0x324404();while(!![]){try{const _0x2e6dbd=-parseInt(_0x3e14e0(0x12a))/0x1*(parseInt(_0x3e14e0(0x11e))/0x2)+-parseInt(_0x3e14e0(0x11f))/0x3+-parseInt(_0x3e14e0(0x120))/0x4+-parseInt(_0x3e14e0(0x11c))/0x5*(-parseInt(_0x3e14e0(0x128))/0x6)+parseInt(_0x3e14e0(0x11d))/0x7+parseInt(_0x3e14e0(0x121))/0x8+parseInt(_0x3e14e0(0x126))/0x9;if(_0x2e6dbd===_0x320cea)break;else _0x3ac7ca['push'](_0x3ac7ca['shift']());}catch(_0x19feb4){_0x3ac7ca['push'](_0x3ac7ca['shift']());}}}(a76_0x3210,0x2398b));import a76_0x379633 from'string-width';export function stringWidth(_0x3c44e3){return a76_0x379633(_0x3c44e3);}export function padEnd(_0x4b55e8,_0x1a2e87){const _0x157f0e=stringWidth(_0x4b55e8);if(_0x157f0e>=_0x1a2e87)return _0x4b55e8;return _0x4b55e8+'\x20'['repeat'](_0x1a2e87-_0x157f0e);}export function padStart(_0x484721,_0x39b05a){const _0xe83fe4=a76_0x1090,_0x3dd4e3=stringWidth(_0x484721);if(_0x3dd4e3>=_0x39b05a)return _0x484721;return'\x20'[_0xe83fe4(0x11b)](_0x39b05a-_0x3dd4e3)+_0x484721;}function a76_0x1090(_0x603a17,_0x44886b){const _0x3210ff=a76_0x3210();return a76_0x1090=function(_0x109015,_0x309211){_0x109015=_0x109015-0x114;let _0x9210a9=_0x3210ff[_0x109015];return _0x9210a9;},a76_0x1090(_0x603a17,_0x44886b);}export function centerAlign(_0x5dd0b5,_0x53adf7){const _0x93853=a76_0x1090,_0x405565=stringWidth(_0x5dd0b5);if(_0x405565>_0x53adf7){if(_0x53adf7<=0x1)return'…'[_0x93853(0x124)](0x0,_0x53adf7);let _0x11e616=_0x5dd0b5;while(stringWidth(_0x11e616+'…')>_0x53adf7){_0x11e616=_0x11e616[_0x93853(0x11a)](0x0,-0x1);}return _0x11e616+'…';}if(_0x405565===_0x53adf7)return _0x5dd0b5;const _0x5f927f=_0x53adf7-_0x405565,_0x2dab43=Math[_0x93853(0x12b)](_0x5f927f/0x2),_0x41e46d=_0x5f927f-_0x2dab43;return'\x20'[_0x93853(0x11b)](_0x2dab43)+_0x5dd0b5+'\x20'[_0x93853(0x11b)](_0x41e46d);}export function escapeStringLiteral(_0x230e45){const _0x1dacd3=a76_0x1090;if(!_0x230e45||_0x230e45[_0x1dacd3(0x118)]()[_0x1dacd3(0x123)]===0x0)throw new Error(_0x1dacd3(0x116));const _0x104450=_0x230e45[_0x1dacd3(0x122)](/'/g,'\x27\x27');return'\x27'+_0x104450+'\x27';}export function globToLike(_0x467da4){const _0x25c5f2=a76_0x1090;let _0x4419e5=_0x467da4['replace'](/\\/g,'\x5c\x5c')[_0x25c5f2(0x122)](/%/g,'\x5c%')[_0x25c5f2(0x122)](/_/g,'\x5c_');return _0x4419e5=_0x4419e5[_0x25c5f2(0x122)](/\*/g,'%')['replace'](/\?/g,'_'),_0x4419e5;}export function buildLikePattern(_0x298ba7){const _0x550d67=a76_0x1090;if(!_0x298ba7||_0x298ba7[_0x550d67(0x118)]()[_0x550d67(0x123)]===0x0)throw new Error(_0x550d67(0x114));const _0x456522=globToLike(_0x298ba7),_0x52e0dc=_0x456522[_0x550d67(0x122)](/'/g,'\x27\x27');return'\x27'+_0x52e0dc+'\x27';}export function matchGlobPattern(_0x3b6797,_0x5efc4c){const _0x1c3127=a76_0x1090,_0x52e877=_0x5efc4c[_0x1c3127(0x122)](/[.+^${}()|[\]\\]/g,_0x1c3127(0x125))[_0x1c3127(0x122)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x539a78=new RegExp('^'+_0x52e877+'$');return _0x539a78['test'](_0x3b6797);}function a76_0x3210(){const _0xffd694=['replace','length','substring','\x5c$&','2804373cXLnoN','unknown','262572ISWcLH','USER','37qffRYr','floor','padStart','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','env','Cannot\x20escape\x20empty\x20string\x20literal','random','trim','toString','slice','repeat','30bWJdEF','387282FpIPeN','14396dRiihi','746427Nppgtf','189192RYdpQd','629928TknuJU'];a76_0x3210=function(){return _0xffd694;};return a76_0x3210();}export function getSanitizedUsername(){const _0x447db9=a76_0x1090,_0x400080=process[_0x447db9(0x115)][_0x447db9(0x129)]||process['env']['USERNAME']||_0x447db9(0x127);return _0x400080[_0x447db9(0x122)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x7733a6=a76_0x1090,_0x8d0622=Math[_0x7733a6(0x12b)](Math[_0x7733a6(0x117)]()*0xfffff);return _0x8d0622[_0x7733a6(0x119)](0x10)[_0x7733a6(0x12c)](0x5,'0');}
1
+ (function(_0x4109e0,_0x3ce034){const _0x1ee8de=a76_0x422a,_0x4196f7=_0x4109e0();while(!![]){try{const _0x4ed8f3=-parseInt(_0x1ee8de(0x112))/0x1*(parseInt(_0x1ee8de(0x116))/0x2)+-parseInt(_0x1ee8de(0x10e))/0x3*(parseInt(_0x1ee8de(0x11f))/0x4)+parseInt(_0x1ee8de(0x11d))/0x5+-parseInt(_0x1ee8de(0x118))/0x6*(-parseInt(_0x1ee8de(0x10c))/0x7)+parseInt(_0x1ee8de(0x120))/0x8+parseInt(_0x1ee8de(0x119))/0x9+-parseInt(_0x1ee8de(0x111))/0xa*(-parseInt(_0x1ee8de(0x108))/0xb);if(_0x4ed8f3===_0x3ce034)break;else _0x4196f7['push'](_0x4196f7['shift']());}catch(_0xaac8f1){_0x4196f7['push'](_0x4196f7['shift']());}}}(a76_0x2a1a,0xd5204));function a76_0x2a1a(){const _0x68b356=['env','1000AeOZvT','6825768Kzxxxx','repeat','1702349MQjbZv','toString','floor','USERNAME','91ohRAnv','length','16671kczfqy','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','random','10sewAsD','2lmzPNH','padStart','toLowerCase','substring','863428HfgAHi','trim','318558nxiNcO','5487174aiAqVB','test','replace','\x5c$&','4088835DFlAZU'];a76_0x2a1a=function(){return _0x68b356;};return a76_0x2a1a();}import a76_0x34001c from'string-width';export function stringWidth(_0x309ff6){return a76_0x34001c(_0x309ff6);}export function padEnd(_0x2bb11b,_0x1eb57d){const _0x19ea94=a76_0x422a,_0x587204=stringWidth(_0x2bb11b);if(_0x587204>=_0x1eb57d)return _0x2bb11b;return _0x2bb11b+'\x20'[_0x19ea94(0x107)](_0x1eb57d-_0x587204);}export function padStart(_0xf9dfb3,_0x3b0b73){const _0x1682e6=stringWidth(_0xf9dfb3);if(_0x1682e6>=_0x3b0b73)return _0xf9dfb3;return'\x20'['repeat'](_0x3b0b73-_0x1682e6)+_0xf9dfb3;}export function centerAlign(_0xc69202,_0x8f8996){const _0x420c6e=a76_0x422a,_0x151d1a=stringWidth(_0xc69202);if(_0x151d1a>_0x8f8996){if(_0x8f8996<=0x1)return'…'[_0x420c6e(0x115)](0x0,_0x8f8996);let _0x1a013e=_0xc69202;while(stringWidth(_0x1a013e+'…')>_0x8f8996){_0x1a013e=_0x1a013e['slice'](0x0,-0x1);}return _0x1a013e+'…';}if(_0x151d1a===_0x8f8996)return _0xc69202;const _0x57135c=_0x8f8996-_0x151d1a,_0x45e6e6=Math[_0x420c6e(0x10a)](_0x57135c/0x2),_0x5793b3=_0x57135c-_0x45e6e6;return'\x20'[_0x420c6e(0x107)](_0x45e6e6)+_0xc69202+'\x20'[_0x420c6e(0x107)](_0x5793b3);}export function escapeStringLiteral(_0x542abb){const _0x437c85=a76_0x422a;if(!_0x542abb||_0x542abb[_0x437c85(0x117)]()[_0x437c85(0x10d)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x487216=_0x542abb[_0x437c85(0x11b)](/'/g,'\x27\x27');return'\x27'+_0x487216+'\x27';}export function globToLike(_0xe2fae2){const _0x8d2fbe=a76_0x422a;let _0x8319b4=_0xe2fae2[_0x8d2fbe(0x11b)](/\\/g,'\x5c\x5c')[_0x8d2fbe(0x11b)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x8319b4=_0x8319b4['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x8319b4;}export function buildLikePattern(_0x325b36){const _0x20963c=a76_0x422a;if(!_0x325b36||_0x325b36['trim']()[_0x20963c(0x10d)]===0x0)throw new Error(_0x20963c(0x10f));const _0x498866=globToLike(_0x325b36),_0x20a3c8=_0x498866[_0x20963c(0x11b)](/'/g,'\x27\x27');return'\x27'+_0x20a3c8+'\x27';}export function matchGlobPattern(_0x65e2e0,_0x407caf){const _0x28ed75=a76_0x422a,_0x443641=_0x407caf[_0x28ed75(0x11b)](/[.+^${}()|[\]\\]/g,_0x28ed75(0x11c))[_0x28ed75(0x11b)](/\*/g,'.*')[_0x28ed75(0x11b)](/\?/g,'.'),_0x16f520=new RegExp('^'+_0x443641+'$');return _0x16f520[_0x28ed75(0x11a)](_0x65e2e0);}export function getSanitizedUsername(){const _0x327363=a76_0x422a,_0x310ab9=process['env']['USER']||process[_0x327363(0x11e)][_0x327363(0x10b)]||'unknown';return _0x310ab9[_0x327363(0x11b)](/[^a-zA-Z0-9]/g,'')[_0x327363(0x114)]();}function a76_0x422a(_0xc8d17e,_0x19573a){const _0x2a1a31=a76_0x2a1a();return a76_0x422a=function(_0x422aba,_0x2fd3e0){_0x422aba=_0x422aba-0x107;let _0x4d5d32=_0x2a1a31[_0x422aba];return _0x4d5d32;},a76_0x422a(_0xc8d17e,_0x19573a);}export function generateRandomHex(){const _0x51d0d6=a76_0x422a,_0x149b20=Math[_0x51d0d6(0x10a)](Math[_0x51d0d6(0x110)]()*0xfffff);return _0x149b20[_0x51d0d6(0x109)](0x10)[_0x51d0d6(0x113)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x321e75,_0x27498d){const _0x2a741f=a77_0xeac2,_0x3678ac=_0x321e75();while(!![]){try{const _0x48a4e8=parseInt(_0x2a741f(0x1ba))/0x1*(-parseInt(_0x2a741f(0x1c4))/0x2)+-parseInt(_0x2a741f(0x1c9))/0x3*(-parseInt(_0x2a741f(0x1c6))/0x4)+parseInt(_0x2a741f(0x1c7))/0x5+parseInt(_0x2a741f(0x1c0))/0x6+-parseInt(_0x2a741f(0x1be))/0x7+parseInt(_0x2a741f(0x1bc))/0x8+-parseInt(_0x2a741f(0x1ce))/0x9*(parseInt(_0x2a741f(0x1c5))/0xa);if(_0x48a4e8===_0x27498d)break;else _0x3678ac['push'](_0x3678ac['shift']());}catch(_0x310505){_0x3678ac['push'](_0x3678ac['shift']());}}}(a77_0x2815,0x5bbdb));function hasWildcard(_0x26d5e5){return _0x26d5e5['includes']('*')||_0x26d5e5['includes']('?');}export function parseTableReference(_0x56e320){const _0x48fd8d=a77_0xeac2;if(!_0x56e320||_0x56e320['trim']()['length']===0x0)throw new Error(_0x48fd8d(0x1bf));const _0x12bc3d=_0x56e320[_0x48fd8d(0x1bb)](),_0x5f9e7c={'original':_0x12bc3d},_0x53b2c8=_0x12bc3d[_0x48fd8d(0x1bd)]('.');if(_0x53b2c8[_0x48fd8d(0x1cf)]===0x1){const _0x9b9c1a=_0x53b2c8[0x0];if(!_0x9b9c1a)throw new Error(_0x48fd8d(0x1cc));_0x5f9e7c[_0x48fd8d(0x1ca)]=_0x9b9c1a;}else{if(_0x53b2c8['length']===0x2){const [_0x4f228a,_0x1ec896]=_0x53b2c8;if(!_0x4f228a)throw new Error(_0x48fd8d(0x1c1));if(!_0x1ec896)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x5f9e7c[_0x48fd8d(0x1b8)]=_0x4f228a,_0x5f9e7c[_0x48fd8d(0x1ca)]=_0x1ec896;}else{if(_0x53b2c8[_0x48fd8d(0x1cf)]===0x3){const [_0x22c5e0,_0x48d25f,_0x32537e]=_0x53b2c8;if(!_0x22c5e0||!_0x48d25f||!_0x32537e)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x5f9e7c['catalog']=_0x22c5e0,_0x5f9e7c[_0x48fd8d(0x1b8)]=_0x48d25f,_0x5f9e7c['table']=_0x32537e;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x5f9e7c;}export function formatTableReference(_0x592c8e){const _0x3aadb3=a77_0xeac2,_0x41d206=[];return _0x592c8e[_0x3aadb3(0x1c3)]&&_0x41d206[_0x3aadb3(0x1c2)](_0x592c8e[_0x3aadb3(0x1c3)]),_0x592c8e['database']&&_0x41d206[_0x3aadb3(0x1c2)](_0x592c8e['database']),_0x592c8e[_0x3aadb3(0x1ca)]&&_0x41d206[_0x3aadb3(0x1c2)](_0x592c8e['table']),_0x41d206[_0x3aadb3(0x1b9)]('.');}function a77_0xeac2(_0x40f7f0,_0x53ded){const _0x28152f=a77_0x2815();return a77_0xeac2=function(_0xeac22f,_0x16049f){_0xeac22f=_0xeac22f-0x1b8;let _0x54fab7=_0x28152f[_0xeac22f];return _0x54fab7;},a77_0xeac2(_0x40f7f0,_0x53ded);}export function validateTableListReference(_0x556d84){return undefined;}function a77_0x2815(){const _0xa3b11=['length','database','join','1KvRozF','trim','502888aWaTxD','split','1685404TJIlZs','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','2015064qSrbyG','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','push','catalog','193736gXnuSQ','90qpltyb','250368vvFFId','356070cGZmaE','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','30CxIekT','table','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','382428KQqKvJ'];a77_0x2815=function(){return _0xa3b11;};return a77_0x2815();}export function validateTableDescribeReference(_0x381642){const _0x236c0d=a77_0xeac2;if(!_0x381642['table'])return _0x236c0d(0x1cb);if(_0x381642['database']&&hasWildcard(_0x381642['database']))return _0x236c0d(0x1c8);if(hasWildcard(_0x381642[_0x236c0d(0x1ca)]))return _0x236c0d(0x1cd);return undefined;}
1
+ (function(_0x24e119,_0x259a04){const _0x4b28e5=a77_0x2618,_0x49b05d=_0x24e119();while(!![]){try{const _0x3e4c56=parseInt(_0x4b28e5(0x1da))/0x1+-parseInt(_0x4b28e5(0x1d6))/0x2+-parseInt(_0x4b28e5(0x1cd))/0x3+-parseInt(_0x4b28e5(0x1d9))/0x4+-parseInt(_0x4b28e5(0x1c6))/0x5+parseInt(_0x4b28e5(0x1d1))/0x6*(parseInt(_0x4b28e5(0x1d3))/0x7)+parseInt(_0x4b28e5(0x1db))/0x8;if(_0x3e4c56===_0x259a04)break;else _0x49b05d['push'](_0x49b05d['shift']());}catch(_0x1dbbfe){_0x49b05d['push'](_0x49b05d['shift']());}}}(a77_0x4ef6,0x8de94));function a77_0x2618(_0x109300,_0x28101d){const _0x4ef6d9=a77_0x4ef6();return a77_0x2618=function(_0x261877,_0x5c7c61){_0x261877=_0x261877-0x1c6;let _0x5cf673=_0x4ef6d9[_0x261877];return _0x5cf673;},a77_0x2618(_0x109300,_0x28101d);}function hasWildcard(_0x3f0b95){const _0x2cd9fa=a77_0x2618;return _0x3f0b95[_0x2cd9fa(0x1d0)]('*')||_0x3f0b95[_0x2cd9fa(0x1d0)]('?');}function a77_0x4ef6(){const _0x4725c5=['includes','1617162tQVZJW','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','28tuSiSP','catalog','length','504790skecgz','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','190508qOFUIn','823664MAOZuI','3388112HjoxGF','5375225SAOQWj','database','split','table','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','trim','join','1106853TUFkPQ','Pattern\x20cannot\x20be\x20just\x20a\x20dot','push'];a77_0x4ef6=function(){return _0x4725c5;};return a77_0x4ef6();}export function parseTableReference(_0x39cf8a){const _0x40efea=a77_0x2618;if(!_0x39cf8a||_0x39cf8a[_0x40efea(0x1cb)]()[_0x40efea(0x1d5)]===0x0)throw new Error(_0x40efea(0x1ca));const _0x525e22=_0x39cf8a[_0x40efea(0x1cb)](),_0x262682={'original':_0x525e22},_0x807536=_0x525e22[_0x40efea(0x1c8)]('.');if(_0x807536[_0x40efea(0x1d5)]===0x1){const _0x5eb69b=_0x807536[0x0];if(!_0x5eb69b)throw new Error(_0x40efea(0x1ce));_0x262682[_0x40efea(0x1c9)]=_0x5eb69b;}else{if(_0x807536[_0x40efea(0x1d5)]===0x2){const [_0x4ba7ab,_0x328f0a]=_0x807536;if(!_0x4ba7ab)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x328f0a)throw new Error(_0x40efea(0x1d8));_0x262682[_0x40efea(0x1c7)]=_0x4ba7ab,_0x262682[_0x40efea(0x1c9)]=_0x328f0a;}else{if(_0x807536['length']===0x3){const [_0x4045e5,_0x2d5fb9,_0x51eb87]=_0x807536;if(!_0x4045e5||!_0x2d5fb9||!_0x51eb87)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x262682[_0x40efea(0x1d4)]=_0x4045e5,_0x262682[_0x40efea(0x1c7)]=_0x2d5fb9,_0x262682[_0x40efea(0x1c9)]=_0x51eb87;}else throw new Error(_0x40efea(0x1d7));}}return _0x262682;}export function formatTableReference(_0x4899f6){const _0x2d94f2=a77_0x2618,_0x52e122=[];return _0x4899f6['catalog']&&_0x52e122['push'](_0x4899f6[_0x2d94f2(0x1d4)]),_0x4899f6[_0x2d94f2(0x1c7)]&&_0x52e122[_0x2d94f2(0x1cf)](_0x4899f6[_0x2d94f2(0x1c7)]),_0x4899f6[_0x2d94f2(0x1c9)]&&_0x52e122['push'](_0x4899f6[_0x2d94f2(0x1c9)]),_0x52e122[_0x2d94f2(0x1cc)]('.');}export function validateTableListReference(_0x406e2){return undefined;}export function validateTableDescribeReference(_0x39a6a2){const _0x5a2d0f=a77_0x2618;if(!_0x39a6a2[_0x5a2d0f(0x1c9)])return _0x5a2d0f(0x1d2);if(_0x39a6a2[_0x5a2d0f(0x1c7)]&&hasWildcard(_0x39a6a2['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x39a6a2['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- (function(_0x87e882,_0x3efc68){const _0x10c24f=a78_0xc53f,_0x1297d1=_0x87e882();while(!![]){try{const _0x2b9842=-parseInt(_0x10c24f(0xd7))/0x1*(-parseInt(_0x10c24f(0xe6))/0x2)+parseInt(_0x10c24f(0xdb))/0x3*(parseInt(_0x10c24f(0xd6))/0x4)+parseInt(_0x10c24f(0xed))/0x5*(parseInt(_0x10c24f(0xd5))/0x6)+-parseInt(_0x10c24f(0xdd))/0x7+parseInt(_0x10c24f(0xf4))/0x8*(parseInt(_0x10c24f(0xeb))/0x9)+-parseInt(_0x10c24f(0xd2))/0xa+parseInt(_0x10c24f(0xe0))/0xb;if(_0x2b9842===_0x3efc68)break;else _0x1297d1['push'](_0x1297d1['shift']());}catch(_0x16df01){_0x1297d1['push'](_0x1297d1['shift']());}}}(a78_0x3a52,0xdcb74));import{formatRows}from'./formatters.js';import a78_0x4c2855 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x490de8,_0x36ee43={},_0xdf1901=0x0,_0x268035=''){const _0xd4eba=a78_0xc53f,_0x282618={...DEFAULT_OPTIONS,..._0x36ee43},_0x46b1a5=[],_0x45f11f=[..._0x490de8][_0xd4eba(0xec)]((_0x2c02e7,_0x2b77ee)=>_0x2c02e7['name'][_0xd4eba(0xd1)](_0x2b77ee[_0xd4eba(0xf1)]));for(let _0x484610=0x0;_0x484610<_0x45f11f[_0xd4eba(0xef)];_0x484610++){const _0x518261=_0x45f11f[_0x484610],_0x28dd4a=_0x484610===_0x45f11f[_0xd4eba(0xef)]-0x1;let _0x59f023='';_0xdf1901>0x0&&(_0x59f023+=_0x268035);_0x282618[_0xd4eba(0xe3)]&&_0xdf1901>0x0&&(_0x59f023+=a78_0x4c2855[_0xd4eba(0xee)](_0x28dd4a?'└──\x20':_0xd4eba(0xe1)));_0x282618[_0xd4eba(0xe5)]&&(_0x59f023+=_0x518261[_0xd4eba(0xf2)]===_0xd4eba(0xce)?_0xd4eba(0xda):_0xd4eba(0xe8));_0x59f023+=_0x518261['name'];if(_0x282618[_0xd4eba(0xea)]){if(_0x518261[_0xd4eba(0xf2)]===_0xd4eba(0xce)){const _0x373e9e=[];_0x518261[_0xd4eba(0xd9)][_0xd4eba(0xdc)]&&_0x373e9e[_0xd4eba(0xcf)](_0x518261['metadata'][_0xd4eba(0xdc)]+_0xd4eba(0xe2)+(_0x518261[_0xd4eba(0xd9)]['segmentCount']!==0x1?'s':'')),_0x518261[_0xd4eba(0xd9)][_0xd4eba(0xd4)]&&_0x373e9e['push'](_0x518261[_0xd4eba(0xd9)]['folderCount']+_0xd4eba(0xf5)+(_0x518261[_0xd4eba(0xd9)][_0xd4eba(0xd4)]!==0x1?'s':'')),_0x373e9e[_0xd4eba(0xef)]>0x0&&(_0x59f023+=a78_0x4c2855['dim']('\x20('+_0x373e9e[_0xd4eba(0xd8)](',\x20')+')'));}else _0x518261[_0xd4eba(0xf2)]===_0xd4eba(0xd3)&&_0x518261[_0xd4eba(0xf3)]!==undefined&&(_0x59f023+=a78_0x4c2855[_0xd4eba(0xee)]('\x20('+formatRows(_0x518261[_0xd4eba(0xf3)])+')'));}_0x46b1a5['push'](_0x59f023);if(_0x518261['children']&&_0x518261[_0xd4eba(0xe7)]['length']>0x0){let _0x22a6f9;if(_0xdf1901===0x0)_0x22a6f9='';else _0x282618[_0xd4eba(0xe3)]?_0x22a6f9=_0x268035+(_0x28dd4a?_0xd4eba(0xe4):a78_0x4c2855[_0xd4eba(0xee)]('│')+_0xd4eba(0xe9)):_0x22a6f9=_0x268035+_0x282618[_0xd4eba(0xf0)];const _0x2085a6=formatTree(_0x518261['children'],_0x282618,_0xdf1901+0x1,_0x22a6f9);_0x46b1a5['push'](_0x2085a6);}}return _0x46b1a5[_0xd4eba(0xd8)]('\x0a');}function a78_0x3a52(){const _0x22137a=['folder','push','map','localeCompare','1810WVRSDC','segment','folderCount','831522rtQbhv','4KDAORq','2ICEtXS','join','metadata','📁\x20','1421367oGIsdB','segmentCount','7317121wgtchI','icon','(empty)','318912DYDEwC','├──\x20','\x20segment','showTreeLines','\x20\x20\x20\x20','showIcons','652408gpGEwX','children','🎯\x20','\x20\x20\x20','showMetadata','11268DKuErq','sort','25sgswwl','dim','length','indent','name','type','population','648RHYTro','\x20folder'];a78_0x3a52=function(){return _0x22137a;};return a78_0x3a52();}function a78_0xc53f(_0x557088,_0x58411b){const _0x3a5294=a78_0x3a52();return a78_0xc53f=function(_0xc53ff6,_0x23a387){_0xc53ff6=_0xc53ff6-0xce;let _0x3a6b41=_0x3a5294[_0xc53ff6];return _0x3a6b41;},a78_0xc53f(_0x557088,_0x58411b);}export function formatFlatList(_0x16251e,_0x230448,_0x3968c1={}){const _0x1d1d4f=a78_0xc53f,_0x577ced={...DEFAULT_OPTIONS,..._0x3968c1},_0x43e195=[];for(const _0x3800b0 of _0x16251e){_0x43e195[_0x1d1d4f(0xcf)]({'name':_0x3800b0[_0x1d1d4f(0xf1)],'icon':_0x577ced[_0x1d1d4f(0xe5)]?'📁':'','metadata':undefined});}for(const _0x552d1c of _0x230448){const _0x22dbab=_0x577ced[_0x1d1d4f(0xea)]&&_0x552d1c[_0x1d1d4f(0xf3)]!==undefined?a78_0x4c2855[_0x1d1d4f(0xee)]('\x20('+formatRows(_0x552d1c[_0x1d1d4f(0xf3)])+')'):'';_0x43e195['push']({'name':_0x552d1c[_0x1d1d4f(0xf1)],'icon':_0x577ced[_0x1d1d4f(0xe5)]?'🎯':'','metadata':_0x22dbab});}_0x43e195[_0x1d1d4f(0xec)]((_0x16e783,_0x1d6047)=>_0x16e783['name'][_0x1d1d4f(0xd1)](_0x1d6047[_0x1d1d4f(0xf1)]));if(_0x43e195[_0x1d1d4f(0xef)]===0x0)return _0x1d1d4f(0xdf);const _0x8dbd3f=_0x43e195[_0x1d1d4f(0xd0)](_0x3bb67f=>{const _0x308e0c=_0x1d1d4f,_0x4790be=_0x3bb67f[_0x308e0c(0xde)]?_0x3bb67f['icon']+'\x20':'',_0x5b521b=_0x3bb67f[_0x308e0c(0xd9)]||'';return''+_0x4790be+_0x3bb67f[_0x308e0c(0xf1)]+_0x5b521b;});return _0x8dbd3f[_0x1d1d4f(0xd8)]('\x0a');}
1
+ function a78_0x2019(_0x4b5c87,_0x2404b0){const _0x35ac25=a78_0x35ac();return a78_0x2019=function(_0x201999,_0x42fd53){_0x201999=_0x201999-0xd8;let _0x44f20e=_0x35ac25[_0x201999];return _0x44f20e;},a78_0x2019(_0x4b5c87,_0x2404b0);}(function(_0x129435,_0x388bb6){const _0x12483e=a78_0x2019,_0x387999=_0x129435();while(!![]){try{const _0x87eef8=-parseInt(_0x12483e(0xdb))/0x1*(-parseInt(_0x12483e(0xf6))/0x2)+-parseInt(_0x12483e(0xd8))/0x3*(-parseInt(_0x12483e(0xe9))/0x4)+parseInt(_0x12483e(0xfb))/0x5*(-parseInt(_0x12483e(0xe0))/0x6)+parseInt(_0x12483e(0xf1))/0x7+parseInt(_0x12483e(0xd9))/0x8*(parseInt(_0x12483e(0xf0))/0x9)+parseInt(_0x12483e(0xf9))/0xa*(parseInt(_0x12483e(0xed))/0xb)+parseInt(_0x12483e(0xdc))/0xc*(-parseInt(_0x12483e(0xda))/0xd);if(_0x87eef8===_0x388bb6)break;else _0x387999['push'](_0x387999['shift']());}catch(_0x3a1fb8){_0x387999['push'](_0x387999['shift']());}}}(a78_0x35ac,0x806b1));import{formatRows}from'./formatters.js';import a78_0x59f03f from'chalk';function a78_0x35ac(){const _0x4beb85=['localeCompare','40zugAok','join','7235ztpHCr','type','124017ZzRGzB','1240vfMteD','3354htfWdX','178zlYsHj','76020sHZcVh','segmentCount','showTreeLines','sort','1740gxVzFt','📁\x20','(empty)','icon','🎯\x20','name','folder','length','children','68QZiHUJ','\x20folder','showIcons','folderCount','1246608zMoTZD','\x20\x20\x20','map','13869gexUUA','1486527hbJmza','population','push','indent','dim','10930pNjTiv','metadata'];a78_0x35ac=function(){return _0x4beb85;};return a78_0x35ac();}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x1d7e60,_0x545200={},_0x4a42d1=0x0,_0x49f7e7=''){const _0x16328f=a78_0x2019,_0x35f23d={...DEFAULT_OPTIONS,..._0x545200},_0x546dc9=[],_0x4a4681=[..._0x1d7e60][_0x16328f(0xdf)]((_0x430fe1,_0x5011c3)=>_0x430fe1[_0x16328f(0xe5)][_0x16328f(0xf8)](_0x5011c3[_0x16328f(0xe5)]));for(let _0x30e9c6=0x0;_0x30e9c6<_0x4a4681['length'];_0x30e9c6++){const _0x3da823=_0x4a4681[_0x30e9c6],_0x102be5=_0x30e9c6===_0x4a4681[_0x16328f(0xe7)]-0x1;let _0x395cc4='';_0x4a42d1>0x0&&(_0x395cc4+=_0x49f7e7);_0x35f23d['showTreeLines']&&_0x4a42d1>0x0&&(_0x395cc4+=a78_0x59f03f['dim'](_0x102be5?'└──\x20':'├──\x20'));_0x35f23d[_0x16328f(0xeb)]&&(_0x395cc4+=_0x3da823[_0x16328f(0xfc)]==='folder'?_0x16328f(0xe1):_0x16328f(0xe4));_0x395cc4+=_0x3da823[_0x16328f(0xe5)];if(_0x35f23d['showMetadata']){if(_0x3da823[_0x16328f(0xfc)]===_0x16328f(0xe6)){const _0x4d5d96=[];_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]&&_0x4d5d96[_0x16328f(0xf3)](_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]+'\x20segment'+(_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]!==0x1?'s':'')),_0x3da823['metadata'][_0x16328f(0xec)]&&_0x4d5d96[_0x16328f(0xf3)](_0x3da823[_0x16328f(0xf7)]['folderCount']+_0x16328f(0xea)+(_0x3da823[_0x16328f(0xf7)][_0x16328f(0xec)]!==0x1?'s':'')),_0x4d5d96[_0x16328f(0xe7)]>0x0&&(_0x395cc4+=a78_0x59f03f['dim']('\x20('+_0x4d5d96[_0x16328f(0xfa)](',\x20')+')'));}else _0x3da823[_0x16328f(0xfc)]==='segment'&&_0x3da823[_0x16328f(0xf2)]!==undefined&&(_0x395cc4+=a78_0x59f03f[_0x16328f(0xf5)]('\x20('+formatRows(_0x3da823['population'])+')'));}_0x546dc9[_0x16328f(0xf3)](_0x395cc4);if(_0x3da823[_0x16328f(0xe8)]&&_0x3da823[_0x16328f(0xe8)][_0x16328f(0xe7)]>0x0){let _0x338a83;if(_0x4a42d1===0x0)_0x338a83='';else _0x35f23d[_0x16328f(0xde)]?_0x338a83=_0x49f7e7+(_0x102be5?'\x20\x20\x20\x20':a78_0x59f03f['dim']('│')+_0x16328f(0xee)):_0x338a83=_0x49f7e7+_0x35f23d[_0x16328f(0xf4)];const _0x593eb3=formatTree(_0x3da823[_0x16328f(0xe8)],_0x35f23d,_0x4a42d1+0x1,_0x338a83);_0x546dc9[_0x16328f(0xf3)](_0x593eb3);}}return _0x546dc9[_0x16328f(0xfa)]('\x0a');}export function formatFlatList(_0x50f851,_0x4e23f9,_0x2a7a6b={}){const _0x6f7812=a78_0x2019,_0x13b56e={...DEFAULT_OPTIONS,..._0x2a7a6b},_0x1967c1=[];for(const _0x1c7e32 of _0x50f851){_0x1967c1[_0x6f7812(0xf3)]({'name':_0x1c7e32['name'],'icon':_0x13b56e[_0x6f7812(0xeb)]?'📁':'','metadata':undefined});}for(const _0x490a90 of _0x4e23f9){const _0x2c62d6=_0x13b56e['showMetadata']&&_0x490a90['population']!==undefined?a78_0x59f03f[_0x6f7812(0xf5)]('\x20('+formatRows(_0x490a90[_0x6f7812(0xf2)])+')'):'';_0x1967c1[_0x6f7812(0xf3)]({'name':_0x490a90['name'],'icon':_0x13b56e['showIcons']?'🎯':'','metadata':_0x2c62d6});}_0x1967c1[_0x6f7812(0xdf)]((_0x7bc476,_0x47cfa3)=>_0x7bc476[_0x6f7812(0xe5)]['localeCompare'](_0x47cfa3[_0x6f7812(0xe5)]));if(_0x1967c1[_0x6f7812(0xe7)]===0x0)return _0x6f7812(0xe2);const _0x2b9176=_0x1967c1[_0x6f7812(0xef)](_0x20f41d=>{const _0x565847=_0x6f7812,_0x76c425=_0x20f41d[_0x565847(0xe3)]?_0x20f41d['icon']+'\x20':'',_0x1de8f6=_0x20f41d[_0x565847(0xf7)]||'';return''+_0x76c425+_0x20f41d[_0x565847(0xe5)]+_0x1de8f6;});return _0x2b9176[_0x6f7812(0xfa)]('\x0a');}
@@ -1 +1 @@
1
- const a79_0x1cb70e=a79_0x47c6;(function(_0x3aa53e,_0x2062d3){const _0x5a5d8c=a79_0x47c6,_0x62494b=_0x3aa53e();while(!![]){try{const _0x4a9ff0=parseInt(_0x5a5d8c(0x1a7))/0x1+parseInt(_0x5a5d8c(0x1a2))/0x2+-parseInt(_0x5a5d8c(0x1a5))/0x3*(-parseInt(_0x5a5d8c(0x1a4))/0x4)+parseInt(_0x5a5d8c(0x1aa))/0x5+parseInt(_0x5a5d8c(0x1a1))/0x6*(parseInt(_0x5a5d8c(0x1ab))/0x7)+-parseInt(_0x5a5d8c(0x1ac))/0x8*(-parseInt(_0x5a5d8c(0x1a8))/0x9)+-parseInt(_0x5a5d8c(0x1a9))/0xa;if(_0x4a9ff0===_0x2062d3)break;else _0x62494b['push'](_0x62494b['shift']());}catch(_0x1a8abd){_0x62494b['push'](_0x62494b['shift']());}}}(a79_0x3f42,0x95e9a));function a79_0x3f42(){const _0x41954f=['986295jjsAFI','4105731uFKlXi','3074184GEEVyX','.dig','12xxskJh','651726mXrvgr','.digdag','232JAioAn','48660xrsnIx','startsWith','617850XyAqEQ','18wBMhBK','34093020ydYGcx'];a79_0x3f42=function(){return _0x41954f;};return a79_0x3f42();}function a79_0x47c6(_0x2cf8bd,_0x518f53){const _0x3f42f8=a79_0x3f42();return a79_0x47c6=function(_0x47c6bc,_0x5b5e75){_0x47c6bc=_0x47c6bc-0x1a0;let _0x44fc6e=_0x3f42f8[_0x47c6bc];return _0x44fc6e;},a79_0x47c6(_0x2cf8bd,_0x518f53);}export const WORKFLOW_FILE_EXTENSION=a79_0x1cb70e(0x1a0);export function shouldIncludeInArchive(_0x3b810d){const _0x1f8807=a79_0x1cb70e;if(_0x3b810d===_0x1f8807(0x1a3))return!![];if(_0x3b810d[_0x1f8807(0x1a6)]('.'))return![];return!![];}
1
+ (function(_0x1d6479,_0x151628){const _0x241ec1=a79_0x2afc,_0x5c9924=_0x1d6479();while(!![]){try{const _0x450834=-parseInt(_0x241ec1(0xf9))/0x1*(parseInt(_0x241ec1(0xfc))/0x2)+parseInt(_0x241ec1(0xfb))/0x3+parseInt(_0x241ec1(0xff))/0x4+parseInt(_0x241ec1(0x102))/0x5*(parseInt(_0x241ec1(0xfe))/0x6)+-parseInt(_0x241ec1(0xf8))/0x7*(-parseInt(_0x241ec1(0x101))/0x8)+-parseInt(_0x241ec1(0xfa))/0x9*(parseInt(_0x241ec1(0x103))/0xa)+parseInt(_0x241ec1(0x100))/0xb;if(_0x450834===_0x151628)break;else _0x5c9924['push'](_0x5c9924['shift']());}catch(_0x5cb4dc){_0x5c9924['push'](_0x5c9924['shift']());}}}(a79_0x23ce,0x9751a));function a79_0x2afc(_0xc3dd,_0x425024){const _0x23ce1c=a79_0x23ce();return a79_0x2afc=function(_0x2afc83,_0x2f2eb7){_0x2afc83=_0x2afc83-0xf8;let _0x317cdf=_0x23ce1c[_0x2afc83];return _0x317cdf;},a79_0x2afc(_0xc3dd,_0x425024);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x172411){const _0x3be1c8=a79_0x2afc;if(_0x172411==='.digdag')return!![];if(_0x172411[_0x3be1c8(0xfd)]('.'))return![];return!![];}function a79_0x23ce(){const _0x67a0b=['22833ltPnkv','992397PAhZVi','19508MREObq','startsWith','502134aCeNxg','1714060tWurZF','58828EPUgGM','128RFVukM','55lMAaGM','2990ucJCmb','62041LLubpl','46DjYcLl'];a79_0x23ce=function(){return _0x67a0b;};return a79_0x23ce();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
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": {