@treasuredata/tdx 0.3.3 → 0.3.5

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 (97) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-api-client.js +1 -1
  5. package/dist/client/http-client.js +1 -1
  6. package/dist/client/llm-api-client.js +1 -1
  7. package/dist/client/rate-limiter.js +1 -1
  8. package/dist/client/td-api-client.js +1 -1
  9. package/dist/client/trino-api-client.js +1 -1
  10. package/dist/client/workflow-client.d.ts +17 -1
  11. package/dist/client/workflow-client.d.ts.map +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/client/workflow-client.js.map +1 -1
  14. package/dist/commands/activations.js +1 -1
  15. package/dist/commands/api-command.js +1 -1
  16. package/dist/commands/auth-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/context-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/job-command.js +1 -1
  24. package/dist/commands/llm-command.js +1 -1
  25. package/dist/commands/llm-proxy.js +1 -1
  26. package/dist/commands/parent-segment-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pwd-command.js +1 -1
  33. package/dist/commands/segment-update-command.js +1 -1
  34. package/dist/commands/segment-use-command.js +1 -1
  35. package/dist/commands/segments.js +1 -1
  36. package/dist/commands/show.js +1 -1
  37. package/dist/commands/tables.js +1 -1
  38. package/dist/commands/use-command.js +1 -1
  39. package/dist/commands/workflow-command.d.ts +9 -1
  40. package/dist/commands/workflow-command.d.ts.map +1 -1
  41. package/dist/commands/workflow-command.js +1 -1
  42. package/dist/commands/workflow-command.js.map +1 -1
  43. package/dist/core/auth.js +1 -1
  44. package/dist/core/config.js +1 -1
  45. package/dist/core/global-context.js +1 -1
  46. package/dist/core/profile.js +1 -1
  47. package/dist/core/project-config.js +1 -1
  48. package/dist/core/session.js +1 -1
  49. package/dist/index.js +1 -1
  50. package/dist/proxy/anthropic-adapter.js +1 -1
  51. package/dist/proxy/server.js +1 -1
  52. package/dist/proxy/session-cache.js +1 -1
  53. package/dist/sdk/api.js +1 -1
  54. package/dist/sdk/errors.js +1 -1
  55. package/dist/sdk/index.js +1 -1
  56. package/dist/sdk/job.js +1 -1
  57. package/dist/sdk/llm.js +1 -1
  58. package/dist/sdk/query.js +1 -1
  59. package/dist/sdk/segment.js +1 -1
  60. package/dist/sdk/workflow.d.ts +52 -16
  61. package/dist/sdk/workflow.d.ts.map +1 -1
  62. package/dist/sdk/workflow.js +1 -1
  63. package/dist/sdk/workflow.js.map +1 -1
  64. package/dist/types/endpoints.js +1 -1
  65. package/dist/types/index.d.ts +1 -1
  66. package/dist/types/index.d.ts.map +1 -1
  67. package/dist/types/index.js +1 -1
  68. package/dist/types/workflow.d.ts +49 -0
  69. package/dist/types/workflow.d.ts.map +1 -1
  70. package/dist/utils/agent-ref-parser.js +1 -1
  71. package/dist/utils/chat-cache.js +1 -1
  72. package/dist/utils/colors.js +1 -1
  73. package/dist/utils/command-output.d.ts.map +1 -1
  74. package/dist/utils/command-output.js +1 -1
  75. package/dist/utils/command-output.js.map +1 -1
  76. package/dist/utils/constants.js +1 -1
  77. package/dist/utils/file-permissions.js +1 -1
  78. package/dist/utils/format-detector.js +1 -1
  79. package/dist/utils/formatters.js +1 -1
  80. package/dist/utils/json-loader.js +1 -1
  81. package/dist/utils/model-aliases.js +1 -1
  82. package/dist/utils/option-validation.js +1 -1
  83. package/dist/utils/port.js +1 -1
  84. package/dist/utils/process.js +1 -1
  85. package/dist/utils/prompt.js +1 -1
  86. package/dist/utils/segment-path-parser.js +1 -1
  87. package/dist/utils/segment-ref-parser.js +1 -1
  88. package/dist/utils/spinner.js +1 -1
  89. package/dist/utils/sql-parser.js +1 -1
  90. package/dist/utils/sse-parser.js +1 -1
  91. package/dist/utils/string-utils.js +1 -1
  92. package/dist/utils/table-ref-parser.js +1 -1
  93. package/dist/utils/tdx-logger.js +1 -1
  94. package/dist/utils/tree-formatter.js +1 -1
  95. package/dist/utils/version-check.js +1 -1
  96. package/dist/utils/workflow-utils.js +1 -1
  97. package/package.json +1 -1
@@ -1 +1 @@
1
- function a69_0x5cbd(){const _0x4a6f06=['20976OCtLKL','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','Invalid\x20JSON\x20string:\x20','File\x20not\x20found:\x20','utf-8','message','code','parse','1233hDEUra','136916HiFLKh','EACCES','INTERNAL','258lvnDPv','Failed\x20to\x20load\x20JSON:\x20','493260DsOaET','INVALID_ARGUMENT','32845tVjSSD','\x27:\x20','54357eGXuBq','1242380wuBHLv','ENOENT','68DKkugl','PERMISSION_DENIED','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','2564527kvAUjT'];a69_0x5cbd=function(){return _0x4a6f06;};return a69_0x5cbd();}function a69_0x3d56(_0x4e4a78,_0x3e5568){const _0x5cbd09=a69_0x5cbd();return a69_0x3d56=function(_0x3d569e,_0x35cad2){_0x3d569e=_0x3d569e-0xfc;let _0x22af53=_0x5cbd09[_0x3d569e];return _0x22af53;},a69_0x3d56(_0x4e4a78,_0x3e5568);}(function(_0x313d02,_0x5bedb1){const _0x705561=a69_0x3d56,_0xaf821d=_0x313d02();while(!![]){try{const _0x210d31=parseInt(_0x705561(0x10c))/0x1+parseInt(_0x705561(0xfe))/0x2*(-parseInt(_0x705561(0x115))/0x3)+parseInt(_0x705561(0xfc))/0x4+parseInt(_0x705561(0x113))/0x5*(-parseInt(_0x705561(0x10f))/0x6)+parseInt(_0x705561(0x101))/0x7+-parseInt(_0x705561(0x102))/0x8*(-parseInt(_0x705561(0x10b))/0x9)+parseInt(_0x705561(0x111))/0xa;if(_0x210d31===_0x5bedb1)break;else _0xaf821d['push'](_0xaf821d['shift']());}catch(_0x5356db){_0xaf821d['push'](_0xaf821d['shift']());}}}(a69_0x5cbd,0x4f13b));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x20264c,_0x15b2fe){const _0xfe6d91=a69_0x3d56;try{if(_0x15b2fe){const _0x182f43=await readFile(_0x20264c,_0xfe6d91(0x107));try{return JSON[_0xfe6d91(0x10a)](_0x182f43);}catch(_0x5e9411){throw new SDKError(ErrorCode[_0xfe6d91(0x112)],_0xfe6d91(0x104)+_0x20264c+_0xfe6d91(0x114)+(_0x5e9411 instanceof Error?_0x5e9411[_0xfe6d91(0x108)]:String(_0x5e9411)));}}else try{return JSON[_0xfe6d91(0x10a)](_0x20264c);}catch(_0x43220d){throw new SDKError(ErrorCode[_0xfe6d91(0x112)],_0xfe6d91(0x105)+(_0x43220d instanceof Error?_0x43220d[_0xfe6d91(0x108)]:String(_0x43220d)));}}catch(_0x478811){if(_0x478811 instanceof SDKError)throw _0x478811;if(_0x478811 instanceof Error&&'code'in _0x478811){const _0x5326f9=_0x478811;if(_0x5326f9['code']===_0xfe6d91(0xfd))throw new SDKError(ErrorCode['NOT_FOUND'],_0xfe6d91(0x106)+_0x20264c);else{if(_0x5326f9[_0xfe6d91(0x109)]===_0xfe6d91(0x10d))throw new SDKError(ErrorCode[_0xfe6d91(0xff)],_0xfe6d91(0x103)+_0x20264c);}}throw new SDKError(ErrorCode[_0xfe6d91(0x10e)],_0xfe6d91(0x110)+(_0x478811 instanceof Error?_0x478811[_0xfe6d91(0x108)]:String(_0x478811)));}}export async function loadJSONFromOptions(_0x4a1601,_0x21e851){const _0x1447f3=a69_0x3d56;if(_0x4a1601&&_0x21e851)throw new SDKError(ErrorCode[_0x1447f3(0x112)],_0x1447f3(0x100));if(_0x4a1601)return await loadJSON(_0x4a1601,![]);if(_0x21e851)return await loadJSON(_0x21e851,!![]);return undefined;}
1
+ (function(_0x3a8ee5,_0x2e5002){const _0x4d3dd4=a69_0x260e,_0x2279fa=_0x3a8ee5();while(!![]){try{const _0x12f5ce=-parseInt(_0x4d3dd4(0x12f))/0x1*(parseInt(_0x4d3dd4(0x130))/0x2)+-parseInt(_0x4d3dd4(0x125))/0x3+parseInt(_0x4d3dd4(0x131))/0x4+-parseInt(_0x4d3dd4(0x122))/0x5+parseInt(_0x4d3dd4(0x132))/0x6*(parseInt(_0x4d3dd4(0x11d))/0x7)+-parseInt(_0x4d3dd4(0x121))/0x8*(parseInt(_0x4d3dd4(0x123))/0x9)+-parseInt(_0x4d3dd4(0x12c))/0xa*(-parseInt(_0x4d3dd4(0x12d))/0xb);if(_0x12f5ce===_0x2e5002)break;else _0x2279fa['push'](_0x2279fa['shift']());}catch(_0x54dbe4){_0x2279fa['push'](_0x2279fa['shift']());}}}(a69_0x4516,0xe267d));import{readFile}from'fs/promises';function a69_0x260e(_0x100417,_0x2e6af7){const _0x451666=a69_0x4516();return a69_0x260e=function(_0x260ef2,_0x1614d8){_0x260ef2=_0x260ef2-0x11d;let _0x328a8e=_0x451666[_0x260ef2];return _0x328a8e;},a69_0x260e(_0x100417,_0x2e6af7);}import{SDKError,ErrorCode}from'../sdk/errors.js';function a69_0x4516(){const _0x4e99ed=['30KOMVxH','7320356rUJzSZ','6ipRyRk','1311919Lvedaa','NOT_FOUND','message','code','24gekpcP','7188680uVHQNh','3692331isoErA','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','4967301wyYmSS','INTERNAL','ENOENT','INVALID_ARGUMENT','PERMISSION_DENIED','parse','Invalid\x20JSON\x20in\x20file\x20\x27','10gniGTj','47673571JLVTet','Invalid\x20JSON\x20string:\x20','73322xUJzSg'];a69_0x4516=function(){return _0x4e99ed;};return a69_0x4516();}export async function loadJSON(_0x197824,_0x11e7e){const _0x4beb98=a69_0x260e;try{if(_0x11e7e){const _0x12046d=await readFile(_0x197824,'utf-8');try{return JSON[_0x4beb98(0x12a)](_0x12046d);}catch(_0x93fa7c){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4beb98(0x12b)+_0x197824+'\x27:\x20'+(_0x93fa7c instanceof Error?_0x93fa7c[_0x4beb98(0x11f)]:String(_0x93fa7c)));}}else try{return JSON['parse'](_0x197824);}catch(_0x13754f){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4beb98(0x12e)+(_0x13754f instanceof Error?_0x13754f['message']:String(_0x13754f)));}}catch(_0x17de15){if(_0x17de15 instanceof SDKError)throw _0x17de15;if(_0x17de15 instanceof Error&&_0x4beb98(0x120)in _0x17de15){const _0x19d4f7=_0x17de15;if(_0x19d4f7[_0x4beb98(0x120)]===_0x4beb98(0x127))throw new SDKError(ErrorCode[_0x4beb98(0x11e)],'File\x20not\x20found:\x20'+_0x197824);else{if(_0x19d4f7['code']==='EACCES')throw new SDKError(ErrorCode[_0x4beb98(0x129)],'Permission\x20denied\x20reading\x20file:\x20'+_0x197824);}}throw new SDKError(ErrorCode[_0x4beb98(0x126)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x17de15 instanceof Error?_0x17de15[_0x4beb98(0x11f)]:String(_0x17de15)));}}export async function loadJSONFromOptions(_0x5a2fbd,_0x2aaeea){const _0x54ca0c=a69_0x260e;if(_0x5a2fbd&&_0x2aaeea)throw new SDKError(ErrorCode[_0x54ca0c(0x128)],_0x54ca0c(0x124));if(_0x5a2fbd)return await loadJSON(_0x5a2fbd,![]);if(_0x2aaeea)return await loadJSON(_0x2aaeea,!![]);return undefined;}
@@ -1 +1 @@
1
- const a70_0x587309=a70_0x1929;(function(_0x21e0df,_0x330ec6){const _0x441906=a70_0x1929,_0x4a89bd=_0x21e0df();while(!![]){try{const _0x45353a=-parseInt(_0x441906(0x156))/0x1*(-parseInt(_0x441906(0x15d))/0x2)+parseInt(_0x441906(0x15f))/0x3*(parseInt(_0x441906(0x15c))/0x4)+-parseInt(_0x441906(0x15b))/0x5*(-parseInt(_0x441906(0x161))/0x6)+parseInt(_0x441906(0x159))/0x7*(-parseInt(_0x441906(0x162))/0x8)+parseInt(_0x441906(0x15e))/0x9*(parseInt(_0x441906(0x164))/0xa)+parseInt(_0x441906(0x166))/0xb+parseInt(_0x441906(0x163))/0xc*(-parseInt(_0x441906(0x158))/0xd);if(_0x45353a===_0x330ec6)break;else _0x4a89bd['push'](_0x4a89bd['shift']());}catch(_0x147c3a){_0x4a89bd['push'](_0x4a89bd['shift']());}}}(a70_0x3974,0x22fc0));const MODEL_ALIASES={'haiku':a70_0x587309(0x165),'sonnet':a70_0x587309(0x157)};export function extractModelAlias(_0x2b1374){const _0x46d80a=a70_0x587309,_0x5f0da0=_0x2b1374[_0x46d80a(0x15a)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x5f0da0)return _0x5f0da0[0x1][_0x46d80a(0x160)]();return _0x2b1374;}function a70_0x3974(){const _0x5a67c2=['72084qDaoRz','60010xJYhTj','claude-4.5-haiku','522588nDeshQ','5349QNfppi','claude-4.5-sonnet','923cqECVL','70WrGlhD','match','175vDlIaN','124KBQmBM','30XRPAZj','45cRdpnv','24375QCKvXE','toLowerCase','36588SqRads','42608efVcYs'];a70_0x3974=function(){return _0x5a67c2;};return a70_0x3974();}export function resolveModelAlias(_0x38c79b){const _0x3f6c6e=a70_0x587309;return MODEL_ALIASES[_0x38c79b[_0x3f6c6e(0x160)]()]||_0x38c79b;}function a70_0x1929(_0x3cfd39,_0x488cf2){const _0x3974e6=a70_0x3974();return a70_0x1929=function(_0x192980,_0x5571a0){_0x192980=_0x192980-0x156;let _0x3e5004=_0x3974e6[_0x192980];return _0x3e5004;},a70_0x1929(_0x3cfd39,_0x488cf2);}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a70_0x34f235=a70_0x70fd;(function(_0x22cf04,_0x34a545){const _0x18fef8=a70_0x70fd,_0x54e411=_0x22cf04();while(!![]){try{const _0x150164=-parseInt(_0x18fef8(0x171))/0x1*(-parseInt(_0x18fef8(0x173))/0x2)+parseInt(_0x18fef8(0x175))/0x3+-parseInt(_0x18fef8(0x170))/0x4*(parseInt(_0x18fef8(0x177))/0x5)+parseInt(_0x18fef8(0x174))/0x6+-parseInt(_0x18fef8(0x17a))/0x7+-parseInt(_0x18fef8(0x176))/0x8+parseInt(_0x18fef8(0x16f))/0x9;if(_0x150164===_0x34a545)break;else _0x54e411['push'](_0x54e411['shift']());}catch(_0x2d7f52){_0x54e411['push'](_0x54e411['shift']());}}}(a70_0x220b,0x89cd3));const MODEL_ALIASES={'haiku':a70_0x34f235(0x178),'sonnet':a70_0x34f235(0x179)};function a70_0x70fd(_0x271868,_0x106714){const _0x220b5=a70_0x220b();return a70_0x70fd=function(_0x70fdae,_0x44dc26){_0x70fdae=_0x70fdae-0x16f;let _0x547765=_0x220b5[_0x70fdae];return _0x547765;},a70_0x70fd(_0x271868,_0x106714);}function a70_0x220b(){const _0x26c882=['44JOcsIr','21UKRZGt','toLowerCase','5854qjRdQd','6679890yQYyKk','2510913fxErNw','3890832beCIAK','422650tBPtyQ','claude-4.5-haiku','claude-4.5-sonnet','3078502EyodxD','3677868VzCaWr'];a70_0x220b=function(){return _0x26c882;};return a70_0x220b();}export function extractModelAlias(_0xdd89f2){const _0x6c99f=a70_0x34f235,_0x19b493=_0xdd89f2['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x19b493)return _0x19b493[0x1][_0x6c99f(0x172)]();return _0xdd89f2;}export function resolveModelAlias(_0x3af86c){const _0x30a0af=a70_0x34f235;return MODEL_ALIASES[_0x3af86c[_0x30a0af(0x172)]()]||_0x3af86c;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- function a71_0x33be(_0x470223,_0x317688){const _0x9f9617=a71_0x9f96();return a71_0x33be=function(_0x33be25,_0x1d7c1){_0x33be25=_0x33be25-0xb4;let _0x38a307=_0x9f9617[_0x33be25];return _0x38a307;},a71_0x33be(_0x470223,_0x317688);}(function(_0x5dfa3a,_0x56c1e2){const _0xc3a981=a71_0x33be,_0x135408=_0x5dfa3a();while(!![]){try{const _0x79457a=-parseInt(_0xc3a981(0xc2))/0x1+parseInt(_0xc3a981(0xbc))/0x2+-parseInt(_0xc3a981(0xc3))/0x3+-parseInt(_0xc3a981(0xb7))/0x4*(parseInt(_0xc3a981(0xbf))/0x5)+parseInt(_0xc3a981(0xbb))/0x6*(parseInt(_0xc3a981(0xb9))/0x7)+-parseInt(_0xc3a981(0xb8))/0x8+-parseInt(_0xc3a981(0xc1))/0x9*(-parseInt(_0xc3a981(0xb5))/0xa);if(_0x79457a===_0x56c1e2)break;else _0x135408['push'](_0x135408['shift']());}catch(_0x4bb863){_0x135408['push'](_0x135408['shift']());}}}(a71_0x9f96,0x266f0));function a71_0x9f96(){const _0x2b577a=['3303063ovZULz','170838VAskpo','209031sHxfwj','Invalid\x20limit\x20value:\x20','10QPAMtV','number','28ghfegw','1433648nXfaNT','14WOzpAL','.\x20Must\x20be\x20an\x20integer.','86442Owjvhn','505602iTdMdz','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20timeout\x20value:\x20','51055Wpgblu','.\x20Must\x20be\x20a\x20positive\x20integer.'];a71_0x9f96=function(){return _0x2b577a;};return a71_0x9f96();}export function validateLimitOption(_0x174780){const _0x335413=a71_0x33be;if(!Number['isInteger'](_0x174780))return{'isValid':![],'error':_0x335413(0xb4)+_0x174780+_0x335413(0xba)};if(_0x174780<=0x0)return{'isValid':![],'error':_0x335413(0xb4)+_0x174780+_0x335413(0xc0)};return{'isValid':!![],'value':_0x174780};}export function validateTimeoutOption(_0x101136,_0x48d944=0x1e){const _0x3b11bf=a71_0x33be;if(_0x101136===undefined)return{'isValid':!![],'value':_0x48d944};const _0x483387=typeof _0x101136===_0x3b11bf(0xb6)?_0x101136:parseFloat(_0x101136);if(isNaN(_0x483387))return{'isValid':![],'error':_0x3b11bf(0xbe)+_0x101136+'.\x20Must\x20be\x20a\x20number.'};if(_0x483387<=0x0)return{'isValid':![],'error':_0x3b11bf(0xbe)+_0x483387+_0x3b11bf(0xbd)};return{'isValid':!![],'value':_0x483387};}
1
+ (function(_0x24323f,_0x512ec9){const _0x49f10a=a71_0x486c,_0x156374=_0x24323f();while(!![]){try{const _0x19ea52=parseInt(_0x49f10a(0xa4))/0x1*(-parseInt(_0x49f10a(0xa8))/0x2)+parseInt(_0x49f10a(0xad))/0x3+-parseInt(_0x49f10a(0xa3))/0x4+parseInt(_0x49f10a(0xb1))/0x5+parseInt(_0x49f10a(0xa9))/0x6+-parseInt(_0x49f10a(0xb3))/0x7*(-parseInt(_0x49f10a(0xb0))/0x8)+-parseInt(_0x49f10a(0xaa))/0x9*(parseInt(_0x49f10a(0xa6))/0xa);if(_0x19ea52===_0x512ec9)break;else _0x156374['push'](_0x156374['shift']());}catch(_0x56adfb){_0x156374['push'](_0x156374['shift']());}}}(a71_0x1e2e,0x67d33));function a71_0x486c(_0x2b696c,_0x3fad02){const _0x1e2e61=a71_0x1e2e();return a71_0x486c=function(_0x486cd4,_0x5c0148){_0x486cd4=_0x486cd4-0xa3;let _0x5ba173=_0x1e2e61[_0x486cd4];return _0x5ba173;},a71_0x486c(_0x2b696c,_0x3fad02);}function a71_0x1e2e(){const _0x14ef79=['number','.\x20Must\x20be\x20a\x20number.','5936QiARNs','789510UYBYPc','Invalid\x20timeout\x20value:\x20','399WjSkyK','1854544NnXWNf','97yiTphX','isInteger','370JNORYx','.\x20Must\x20be\x20a\x20positive\x20number.','8040giVFPB','3579300ZnBbSx','306OYbBVe','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','1450065udDhzW'];a71_0x1e2e=function(){return _0x14ef79;};return a71_0x1e2e();}export function validateLimitOption(_0x4c49b4){const _0x2c5c26=a71_0x486c;if(!Number[_0x2c5c26(0xa5)](_0x4c49b4))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x4c49b4+_0x2c5c26(0xac)};if(_0x4c49b4<=0x0)return{'isValid':![],'error':_0x2c5c26(0xab)+_0x4c49b4+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x4c49b4};}export function validateTimeoutOption(_0x15ee46,_0x4debba=0x1e){const _0x5490c7=a71_0x486c;if(_0x15ee46===undefined)return{'isValid':!![],'value':_0x4debba};const _0x553f46=typeof _0x15ee46===_0x5490c7(0xae)?_0x15ee46:parseFloat(_0x15ee46);if(isNaN(_0x553f46))return{'isValid':![],'error':_0x5490c7(0xb2)+_0x15ee46+_0x5490c7(0xaf)};if(_0x553f46<=0x0)return{'isValid':![],'error':_0x5490c7(0xb2)+_0x553f46+_0x5490c7(0xa7)};return{'isValid':!![],'value':_0x553f46};}
@@ -1 +1 @@
1
- (function(_0x19805,_0x3cd00b){const _0x4fc2c9=a72_0x2549,_0x21ad78=_0x19805();while(!![]){try{const _0x2871ac=-parseInt(_0x4fc2c9(0x1d8))/0x1*(parseInt(_0x4fc2c9(0x1d6))/0x2)+parseInt(_0x4fc2c9(0x1e0))/0x3*(-parseInt(_0x4fc2c9(0x1d5))/0x4)+-parseInt(_0x4fc2c9(0x1ce))/0x5*(-parseInt(_0x4fc2c9(0x1e1))/0x6)+parseInt(_0x4fc2c9(0x1dd))/0x7*(parseInt(_0x4fc2c9(0x1dc))/0x8)+-parseInt(_0x4fc2c9(0x1d7))/0x9*(parseInt(_0x4fc2c9(0x1d2))/0xa)+parseInt(_0x4fc2c9(0x1d4))/0xb*(parseInt(_0x4fc2c9(0x1cf))/0xc)+parseInt(_0x4fc2c9(0x1d9))/0xd;if(_0x2871ac===_0x3cd00b)break;else _0x21ad78['push'](_0x21ad78['shift']());}catch(_0x569597){_0x21ad78['push'](_0x21ad78['shift']());}}}(a72_0x4b17,0xc2b35));import{createServer}from'node:net';function a72_0x2549(_0x318aee,_0xd29bb6){const _0x4b17e2=a72_0x4b17();return a72_0x2549=function(_0x25495a,_0x4ba70d){_0x25495a=_0x25495a-0x1ce;let _0x4218c8=_0x4b17e2[_0x25495a];return _0x4218c8;},a72_0x2549(_0x318aee,_0xd29bb6);}export async function isPortAvailable(_0x26928e){return new Promise(_0x7de375=>{const _0x129d3b=a72_0x2549,_0x8485ae=createServer();_0x8485ae[_0x129d3b(0x1d3)](_0x129d3b(0x1da),_0x2e66a4=>{const _0x33bc9f=_0x129d3b;_0x2e66a4[_0x33bc9f(0x1df)]===_0x33bc9f(0x1e2)?_0x7de375(![]):_0x7de375(![]);}),_0x8485ae[_0x129d3b(0x1d3)](_0x129d3b(0x1d1),()=>{const _0x421198=_0x129d3b;_0x8485ae[_0x421198(0x1d0)](),_0x7de375(!![]);}),_0x8485ae[_0x129d3b(0x1de)](_0x26928e,_0x129d3b(0x1e3));});}function a72_0x4b17(){const _0x2c8cd7=['EADDRINUSE','0.0.0.0','430mgyaNt','48FeVzQT','close','listening','16580mzSfsQ','once','378026egZlSF','72FxuARK','30dipjCD','3249kNGRcj','42635HLLlnb','14267110BYTTSW','error','\x20and\x20','3536EXvkTl','2611aVQInK','listen','code','52467wmmhaN','66318OnVnuW'];a72_0x4b17=function(){return _0x2c8cd7;};return a72_0x4b17();}export async function findAvailablePort(_0xee6f5c=0xfa0,_0x2f3b9a=0x64){const _0x4bd8cc=a72_0x2549;for(let _0x1508bd=0x0;_0x1508bd<_0x2f3b9a;_0x1508bd++){const _0x332043=_0xee6f5c+_0x1508bd;if(await isPortAvailable(_0x332043))return _0x332043;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0xee6f5c+_0x4bd8cc(0x1db)+(_0xee6f5c+_0x2f3b9a-0x1));}
1
+ (function(_0x475e86,_0x5634c9){const _0x2996bc=a72_0x41e4,_0x46548a=_0x475e86();while(!![]){try{const _0xe6e302=parseInt(_0x2996bc(0x1e6))/0x1*(-parseInt(_0x2996bc(0x1e0))/0x2)+-parseInt(_0x2996bc(0x1ed))/0x3+-parseInt(_0x2996bc(0x1e8))/0x4+-parseInt(_0x2996bc(0x1eb))/0x5+parseInt(_0x2996bc(0x1ea))/0x6*(-parseInt(_0x2996bc(0x1e1))/0x7)+-parseInt(_0x2996bc(0x1ec))/0x8+parseInt(_0x2996bc(0x1e5))/0x9;if(_0xe6e302===_0x5634c9)break;else _0x46548a['push'](_0x46548a['shift']());}catch(_0x33c86d){_0x46548a['push'](_0x46548a['shift']());}}}(a72_0x229c,0x2109a));import{createServer}from'node:net';export async function isPortAvailable(_0x59a02e){return new Promise(_0x95eb5c=>{const _0xe83181=a72_0x41e4,_0xcb4049=createServer();_0xcb4049['once'](_0xe83181(0x1e9),_0x37c73d=>{const _0x576252=_0xe83181;_0x37c73d[_0x576252(0x1dc)]===_0x576252(0x1e7)?_0x95eb5c(![]):_0x95eb5c(![]);}),_0xcb4049[_0xe83181(0x1dd)]('listening',()=>{const _0x46f265=_0xe83181;_0xcb4049[_0x46f265(0x1e2)](),_0x95eb5c(!![]);}),_0xcb4049[_0xe83181(0x1df)](_0x59a02e,_0xe83181(0x1e4));});}function a72_0x229c(){const _0x9a5734=['listen','8HubPZi','322qEtWAK','close','\x20and\x20','0.0.0.0','7679646rGsdWp','64809UdKidQ','EADDRINUSE','472272WGHdEk','error','9618AqHIct','215355ciCQpb','1580480ORFcXl','78897FuURTO','code','once','No\x20available\x20port\x20found\x20between\x20'];a72_0x229c=function(){return _0x9a5734;};return a72_0x229c();}function a72_0x41e4(_0x11e1fd,_0x3103ca){const _0x229c61=a72_0x229c();return a72_0x41e4=function(_0x41e4a5,_0x13dc09){_0x41e4a5=_0x41e4a5-0x1dc;let _0x5d5045=_0x229c61[_0x41e4a5];return _0x5d5045;},a72_0x41e4(_0x11e1fd,_0x3103ca);}export async function findAvailablePort(_0x166260=0xfa0,_0x5d23e4=0x64){const _0x4b635f=a72_0x41e4;for(let _0x39364e=0x0;_0x39364e<_0x5d23e4;_0x39364e++){const _0xd0ab64=_0x166260+_0x39364e;if(await isPortAvailable(_0xd0ab64))return _0xd0ab64;}throw new Error(_0x4b635f(0x1de)+_0x166260+_0x4b635f(0x1e3)+(_0x166260+_0x5d23e4-0x1));}
@@ -1 +1 @@
1
- const a73_0x5a035d=a73_0x23be;(function(_0x1f2cbe,_0x1a3758){const _0xf1594e=a73_0x23be,_0x54bff3=_0x1f2cbe();while(!![]){try{const _0x41839e=parseInt(_0xf1594e(0x104))/0x1*(parseInt(_0xf1594e(0x11c))/0x2)+parseInt(_0xf1594e(0x12d))/0x3+parseInt(_0xf1594e(0x120))/0x4*(parseInt(_0xf1594e(0x117))/0x5)+-parseInt(_0xf1594e(0x113))/0x6+-parseInt(_0xf1594e(0x118))/0x7*(-parseInt(_0xf1594e(0x121))/0x8)+-parseInt(_0xf1594e(0x11a))/0x9+parseInt(_0xf1594e(0x123))/0xa*(-parseInt(_0xf1594e(0x124))/0xb);if(_0x41839e===_0x1a3758)break;else _0x54bff3['push'](_0x54bff3['shift']());}catch(_0x562c86){_0x54bff3['push'](_0x54bff3['shift']());}}}(a73_0x1f65,0xaebe4));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a73_0x5a035d(0x11e),a73_0x5a035d(0x112),'sh',a73_0x5a035d(0x108),'ksh','tcsh',a73_0x5a035d(0x133),'dash','pwsh',a73_0x5a035d(0x126),'nu',a73_0x5a035d(0x10c),a73_0x5a035d(0x105),a73_0x5a035d(0x110)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude','code',a73_0x5a035d(0x10f)]);function a73_0x23be(_0x5ba675,_0x36424f){const _0x1f653f=a73_0x1f65();return a73_0x23be=function(_0x23bee8,_0x2ba065){_0x23bee8=_0x23bee8-0x104;let _0x31acd0=_0x1f653f[_0x23bee8];return _0x31acd0;},a73_0x23be(_0x5ba675,_0x36424f);}function a73_0x1f65(){const _0x19e7a9=[',\x20continuing\x20up','length','filter','csh','comm','12YZnjNb','elvish','DEBUG','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','fish','trim','Found\x20ephemeral\x20shell\x20','env','ion','ps\x20-p\x20','\x20on\x20POSIX:','cursor','xonsh','pop','zsh','5747856drWYhs','replace','platform','toLowerCase','4500FhHxAk','5971BeyZUH',',\x20using\x20fallback','9681210WwaRfi','error','181882xtHiOl','split','bash','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','5024FdPjZf','7760BhAoER','join','2960fVIhMT','52789DZBuRM','kill','powershell','pid','\x20on\x20Windows:',')\x20spawned\x20by\x20','utf-8','has','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','3362448mHOtsD','ppid','win32'];a73_0x1f65=function(){return _0x19e7a9;};return a73_0x1f65();}function getProcessInfoWindows(_0x3e6309){const _0x42d5ba=a73_0x5a035d;try{const _0x2d963a=execSync('wmic\x20process\x20where\x20ProcessId='+_0x3e6309+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x42d5ba(0x12a),'windowsHide':!![]})[_0x42d5ba(0x109)](),_0x327b63=_0x2d963a['split']('\x0a')[_0x42d5ba(0x132)](_0x451922=>_0x451922[_0x42d5ba(0x109)]());if(_0x327b63[_0x42d5ba(0x131)]<0x2)return null;const _0x4575cb=_0x327b63[_0x327b63[_0x42d5ba(0x131)]-0x1][_0x42d5ba(0x11d)](',');if(_0x4575cb['length']<0x3)return null;const _0x2be7ce=_0x4575cb[0x1]?.['trim']()||'',_0x1a079f=parseInt(_0x4575cb[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x1a079f)||!_0x2be7ce)return null;return{'pid':_0x3e6309,'ppid':_0x1a079f,'comm':_0x2be7ce[_0x42d5ba(0x114)](/\.exe$/i,'')};}catch(_0x4c254f){return process[_0x42d5ba(0x10b)][_0x42d5ba(0x106)]&&console[_0x42d5ba(0x11b)](_0x42d5ba(0x107)+_0x3e6309+_0x42d5ba(0x128),_0x4c254f),null;}}function getProcessInfoPosix(_0x1d6a18){const _0x5b322f=a73_0x5a035d;try{const _0x5a4c15=execSync(_0x5b322f(0x10d)+_0x1d6a18+'\x20-o\x20ppid=,comm=',{'encoding':_0x5b322f(0x12a)})['trim'](),[_0x590acc,..._0x42606d]=_0x5a4c15[_0x5b322f(0x11d)](/\s+/),_0x1e9193=parseInt(_0x590acc,0xa),_0x435ad1=_0x42606d[_0x5b322f(0x122)]('\x20');if(isNaN(_0x1e9193))return null;return{'pid':_0x1d6a18,'ppid':_0x1e9193,'comm':_0x435ad1};}catch(_0x175ac1){return process[_0x5b322f(0x10b)][_0x5b322f(0x106)]&&console[_0x5b322f(0x11b)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x1d6a18+_0x5b322f(0x10e),_0x175ac1),null;}}function getProcessInfo(_0x231b3d){const _0x4af572=a73_0x5a035d;if(process[_0x4af572(0x115)]===_0x4af572(0x12f))return getProcessInfoWindows(_0x231b3d);return getProcessInfoPosix(_0x231b3d);}function getBasename(_0x245e8f){const _0x5679e0=a73_0x5a035d;return _0x245e8f[_0x5679e0(0x114)](/^-/,'')[_0x5679e0(0x11d)]('/')[_0x5679e0(0x111)]()?.[_0x5679e0(0x116)]()||'';}function isShell(_0x37c958){const _0x756672=a73_0x5a035d;return SHELL_NAMES[_0x756672(0x12b)](getBasename(_0x37c958));}function isEphemeralShellSpawner(_0x18002a){const _0x3a0690=a73_0x5a035d;return EPHEMERAL_SHELL_SPAWNERS[_0x3a0690(0x12b)](getBasename(_0x18002a));}let cachedShellPID;function findShellPID(){const _0x5c1fb0=a73_0x5a035d;let _0x214758=process['ppid'];const _0xbb5d39=0xa;let _0x44c615=0x0;while(_0x44c615<_0xbb5d39){const _0x265ff4=getProcessInfo(_0x214758);if(!_0x265ff4){process[_0x5c1fb0(0x10b)][_0x5c1fb0(0x106)]&&console[_0x5c1fb0(0x11b)](_0x5c1fb0(0x11f)+_0x214758+_0x5c1fb0(0x119));break;}if(isShell(_0x265ff4['comm'])){const _0x58d045=getProcessInfo(_0x265ff4[_0x5c1fb0(0x12e)]);if(_0x58d045&&isEphemeralShellSpawner(_0x58d045[_0x5c1fb0(0x134)])){process['env'][_0x5c1fb0(0x106)]&&console[_0x5c1fb0(0x11b)](_0x5c1fb0(0x10a)+_0x265ff4[_0x5c1fb0(0x127)]+'\x20('+_0x265ff4[_0x5c1fb0(0x134)]+_0x5c1fb0(0x129)+_0x58d045['comm']+_0x5c1fb0(0x130));_0x214758=_0x265ff4[_0x5c1fb0(0x12e)],_0x44c615++;continue;}return _0x265ff4[_0x5c1fb0(0x127)];}if(_0x265ff4[_0x5c1fb0(0x12e)]===0x0||_0x265ff4[_0x5c1fb0(0x12e)]===0x1){if(isShell(_0x265ff4['comm']))return _0x265ff4['pid'];break;}_0x214758=_0x265ff4[_0x5c1fb0(0x12e)],_0x44c615++;}return process[_0x5c1fb0(0x10b)][_0x5c1fb0(0x106)]&&console[_0x5c1fb0(0x11b)](_0x5c1fb0(0x12c)),process[_0x5c1fb0(0x12e)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x57c4b1){const _0x5116ca=a73_0x5a035d;try{return process[_0x5116ca(0x125)](_0x57c4b1,0x0),!![];}catch{return![];}}
1
+ const a73_0x5c6cf0=a73_0x2f68;(function(_0x516ae2,_0xdc9851){const _0x528dcc=a73_0x2f68,_0x2541e9=_0x516ae2();while(!![]){try{const _0x19bd05=parseInt(_0x528dcc(0x1d6))/0x1+-parseInt(_0x528dcc(0x1eb))/0x2*(-parseInt(_0x528dcc(0x1e7))/0x3)+-parseInt(_0x528dcc(0x1cf))/0x4*(-parseInt(_0x528dcc(0x1be))/0x5)+parseInt(_0x528dcc(0x1d2))/0x6+-parseInt(_0x528dcc(0x1ec))/0x7*(-parseInt(_0x528dcc(0x1c8))/0x8)+-parseInt(_0x528dcc(0x1d7))/0x9*(parseInt(_0x528dcc(0x1bd))/0xa)+-parseInt(_0x528dcc(0x1e2))/0xb;if(_0x19bd05===_0xdc9851)break;else _0x2541e9['push'](_0x2541e9['shift']());}catch(_0x28dc50){_0x2541e9['push'](_0x2541e9['shift']());}}}(a73_0x3afa,0x98327));import{execSync}from'node:child_process';function a73_0x3afa(){const _0x4d9a70=['No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','tcsh','trim','243370CsiRLe','71175XBccGK','cursor','fish','pwsh','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','split','csh','Found\x20ephemeral\x20shell\x20','elvish','claude','8AIUorr','length','powershell','wmic\x20process\x20where\x20ProcessId=','pop','toLowerCase','utf-8','104gRLpsr','env',')\x20spawned\x20by\x20','1987470bMjleh','DEBUG','pid','\x20on\x20Windows:','1154234sYzyoX','27YqTeaX','zsh','code','ksh','filter','join','replace','ppid','bash','comm','dash','26502608OWkNYU','\x20on\x20POSIX:','win32',',\x20continuing\x20up','ion','9avLZOT','platform','\x20get\x20ParentProcessId,Name\x20/format:csv','error','347128EhGRqe','5106199eFsbRn'];a73_0x3afa=function(){return _0x4d9a70;};return a73_0x3afa();}const SHELL_NAMES=new Set([a73_0x5c6cf0(0x1df),a73_0x5c6cf0(0x1d8),'sh',a73_0x5c6cf0(0x1c0),a73_0x5c6cf0(0x1da),a73_0x5c6cf0(0x1ee),a73_0x5c6cf0(0x1c4),a73_0x5c6cf0(0x1e1),a73_0x5c6cf0(0x1c1),a73_0x5c6cf0(0x1ca),'nu',a73_0x5c6cf0(0x1e6),a73_0x5c6cf0(0x1c6),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a73_0x5c6cf0(0x1c7),a73_0x5c6cf0(0x1d9),a73_0x5c6cf0(0x1bf)]);function a73_0x2f68(_0x433334,_0x29e374){const _0x3afa01=a73_0x3afa();return a73_0x2f68=function(_0x2f68ca,_0x5ebd11){_0x2f68ca=_0x2f68ca-0x1bc;let _0x2db93a=_0x3afa01[_0x2f68ca];return _0x2db93a;},a73_0x2f68(_0x433334,_0x29e374);}function getProcessInfoWindows(_0x414657){const _0x43b42f=a73_0x5c6cf0;try{const _0x4b53a8=execSync(_0x43b42f(0x1cb)+_0x414657+_0x43b42f(0x1e9),{'encoding':_0x43b42f(0x1ce),'windowsHide':!![]})[_0x43b42f(0x1bc)](),_0x3fe033=_0x4b53a8[_0x43b42f(0x1c3)]('\x0a')[_0x43b42f(0x1db)](_0x2bc6ba=>_0x2bc6ba[_0x43b42f(0x1bc)]());if(_0x3fe033[_0x43b42f(0x1c9)]<0x2)return null;const _0x16ed89=_0x3fe033[_0x3fe033[_0x43b42f(0x1c9)]-0x1][_0x43b42f(0x1c3)](',');if(_0x16ed89[_0x43b42f(0x1c9)]<0x3)return null;const _0x2e2ad9=_0x16ed89[0x1]?.[_0x43b42f(0x1bc)]()||'',_0x515cf9=parseInt(_0x16ed89[0x2]?.[_0x43b42f(0x1bc)]()||'0',0xa);if(isNaN(_0x515cf9)||!_0x2e2ad9)return null;return{'pid':_0x414657,'ppid':_0x515cf9,'comm':_0x2e2ad9[_0x43b42f(0x1dd)](/\.exe$/i,'')};}catch(_0x1b9fed){return process[_0x43b42f(0x1d0)][_0x43b42f(0x1d3)]&&console[_0x43b42f(0x1ea)](_0x43b42f(0x1c2)+_0x414657+_0x43b42f(0x1d5),_0x1b9fed),null;}}function getProcessInfoPosix(_0x47665c){const _0x4ad02f=a73_0x5c6cf0;try{const _0x479be5=execSync('ps\x20-p\x20'+_0x47665c+'\x20-o\x20ppid=,comm=',{'encoding':_0x4ad02f(0x1ce)})['trim'](),[_0x3e7a9d,..._0x5c1cef]=_0x479be5['split'](/\s+/),_0x71df1f=parseInt(_0x3e7a9d,0xa),_0xb75737=_0x5c1cef[_0x4ad02f(0x1dc)]('\x20');if(isNaN(_0x71df1f))return null;return{'pid':_0x47665c,'ppid':_0x71df1f,'comm':_0xb75737};}catch(_0x33c183){return process['env']['DEBUG']&&console[_0x4ad02f(0x1ea)](_0x4ad02f(0x1c2)+_0x47665c+_0x4ad02f(0x1e3),_0x33c183),null;}}function getProcessInfo(_0x408b23){const _0x324936=a73_0x5c6cf0;if(process[_0x324936(0x1e8)]===_0x324936(0x1e4))return getProcessInfoWindows(_0x408b23);return getProcessInfoPosix(_0x408b23);}function getBasename(_0x188e4a){const _0x8dc62d=a73_0x5c6cf0;return _0x188e4a['replace'](/^-/,'')[_0x8dc62d(0x1c3)]('/')[_0x8dc62d(0x1cc)]()?.[_0x8dc62d(0x1cd)]()||'';}function isShell(_0x1f6222){return SHELL_NAMES['has'](getBasename(_0x1f6222));}function isEphemeralShellSpawner(_0x16041f){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x16041f));}let cachedShellPID;function findShellPID(){const _0xb067ac=a73_0x5c6cf0;let _0x473e42=process[_0xb067ac(0x1de)];const _0x166bcf=0xa;let _0x1f1fea=0x0;while(_0x1f1fea<_0x166bcf){const _0x278bc9=getProcessInfo(_0x473e42);if(!_0x278bc9){process['env'][_0xb067ac(0x1d3)]&&console[_0xb067ac(0x1ea)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x473e42+',\x20using\x20fallback');break;}if(isShell(_0x278bc9[_0xb067ac(0x1e0)])){const _0x48a66c=getProcessInfo(_0x278bc9[_0xb067ac(0x1de)]);if(_0x48a66c&&isEphemeralShellSpawner(_0x48a66c[_0xb067ac(0x1e0)])){process['env'][_0xb067ac(0x1d3)]&&console[_0xb067ac(0x1ea)](_0xb067ac(0x1c5)+_0x278bc9['pid']+'\x20('+_0x278bc9['comm']+_0xb067ac(0x1d1)+_0x48a66c[_0xb067ac(0x1e0)]+_0xb067ac(0x1e5));_0x473e42=_0x278bc9[_0xb067ac(0x1de)],_0x1f1fea++;continue;}return _0x278bc9[_0xb067ac(0x1d4)];}if(_0x278bc9[_0xb067ac(0x1de)]===0x0||_0x278bc9[_0xb067ac(0x1de)]===0x1){if(isShell(_0x278bc9[_0xb067ac(0x1e0)]))return _0x278bc9[_0xb067ac(0x1d4)];break;}_0x473e42=_0x278bc9[_0xb067ac(0x1de)],_0x1f1fea++;}return process['env'][_0xb067ac(0x1d3)]&&console[_0xb067ac(0x1ea)](_0xb067ac(0x1ed)),process[_0xb067ac(0x1de)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x211d03){try{return process['kill'](_0x211d03,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x547077,_0x18eff5){const _0x4913f2=a74_0x18b0,_0xeadd45=_0x547077();while(!![]){try{const _0x313bac=parseInt(_0x4913f2(0x10c))/0x1+-parseInt(_0x4913f2(0x10a))/0x2*(parseInt(_0x4913f2(0x111))/0x3)+-parseInt(_0x4913f2(0x10b))/0x4+parseInt(_0x4913f2(0x108))/0x5*(-parseInt(_0x4913f2(0x10d))/0x6)+-parseInt(_0x4913f2(0x109))/0x7+parseInt(_0x4913f2(0x114))/0x8+parseInt(_0x4913f2(0x10f))/0x9;if(_0x313bac===_0x18eff5)break;else _0xeadd45['push'](_0xeadd45['shift']());}catch(_0x2227b3){_0xeadd45['push'](_0xeadd45['shift']());}}}(a74_0x1968,0xc9eb2));function a74_0x18b0(_0xa125c6,_0x36251b){const _0x19684e=a74_0x1968();return a74_0x18b0=function(_0x18b096,_0x51f65a){_0x18b096=_0x18b096-0x106;let _0x584b46=_0x19684e[_0x18b096];return _0x584b46;},a74_0x18b0(_0xa125c6,_0x36251b);}function a74_0x1968(){const _0x1aafe2=['36110196NNQQFO','stdout','11448TwgIye','close','createInterface','2000144neJxoo','toLowerCase','yes','stdin','2629015tDiZcf','467327EXWuAO','626BfZmlK','2469424LKcUAQ','20730lZrpmF','18PNoLdv','question'];a74_0x1968=function(){return _0x1aafe2;};return a74_0x1968();}import*as a74_0x31275b from'readline';export async function confirm(_0x35f82d){const _0x55ae4b=a74_0x18b0,_0x29994c=a74_0x31275b[_0x55ae4b(0x113)]({'input':process[_0x55ae4b(0x107)],'output':process[_0x55ae4b(0x110)]});return new Promise(_0x4e0aee=>{const _0x3932eb=_0x55ae4b;_0x29994c[_0x3932eb(0x10e)](_0x35f82d+'\x20(y/N):\x20',_0x222349=>{const _0x399d6f=_0x3932eb;_0x29994c[_0x399d6f(0x112)](),_0x4e0aee(_0x222349[_0x399d6f(0x115)]()==='y'||_0x222349[_0x399d6f(0x115)]()===_0x399d6f(0x106));});});}
1
+ (function(_0x2576a2,_0x217621){const _0x3e948e=a74_0x3ba1,_0x31f8ab=_0x2576a2();while(!![]){try{const _0x31ee36=parseInt(_0x3e948e(0x19d))/0x1*(parseInt(_0x3e948e(0x1a4))/0x2)+parseInt(_0x3e948e(0x1a8))/0x3*(parseInt(_0x3e948e(0x19c))/0x4)+-parseInt(_0x3e948e(0x1a3))/0x5*(parseInt(_0x3e948e(0x199))/0x6)+parseInt(_0x3e948e(0x1a2))/0x7*(parseInt(_0x3e948e(0x196))/0x8)+parseInt(_0x3e948e(0x1a1))/0x9*(parseInt(_0x3e948e(0x1aa))/0xa)+-parseInt(_0x3e948e(0x19f))/0xb*(-parseInt(_0x3e948e(0x1ab))/0xc)+-parseInt(_0x3e948e(0x1a5))/0xd*(-parseInt(_0x3e948e(0x1a7))/0xe);if(_0x31ee36===_0x217621)break;else _0x31f8ab['push'](_0x31f8ab['shift']());}catch(_0x9552f0){_0x31f8ab['push'](_0x31f8ab['shift']());}}}(a74_0x592c,0xc25bd));function a74_0x592c(){const _0x24cd70=['513blruqe','7nxaJpU','45NgHniW','5246nBjymI','13DYWQBQ','question','5425042ndVQQG','27LhRaEr','close','34530sUikrj','106332UxuMgh','2900104WrQcbX','toLowerCase','\x20(y/N):\x20','734190RKQglb','yes','stdout','144388vHNtEE','73cFOfBz','createInterface','539nfHjvF','stdin'];a74_0x592c=function(){return _0x24cd70;};return a74_0x592c();}import*as a74_0x3b7391 from'readline';function a74_0x3ba1(_0x1792a1,_0xf6d843){const _0x592c8b=a74_0x592c();return a74_0x3ba1=function(_0x3ba136,_0x26e957){_0x3ba136=_0x3ba136-0x196;let _0x308672=_0x592c8b[_0x3ba136];return _0x308672;},a74_0x3ba1(_0x1792a1,_0xf6d843);}export async function confirm(_0x4ac891){const _0x4f04de=a74_0x3ba1,_0x44485c=a74_0x3b7391[_0x4f04de(0x19e)]({'input':process[_0x4f04de(0x1a0)],'output':process[_0x4f04de(0x19b)]});return new Promise(_0x2af943=>{const _0x4fb1ae=_0x4f04de;_0x44485c[_0x4fb1ae(0x1a6)](_0x4ac891+_0x4fb1ae(0x198),_0x2d18f2=>{const _0x1ba87f=_0x4fb1ae;_0x44485c[_0x1ba87f(0x1a9)](),_0x2af943(_0x2d18f2[_0x1ba87f(0x197)]()==='y'||_0x2d18f2[_0x1ba87f(0x197)]()===_0x1ba87f(0x19a));});});}
@@ -1 +1 @@
1
- (function(_0x573ea3,_0x3ae6c9){const _0x56f2c3=a75_0x33ed,_0x56d01f=_0x573ea3();while(!![]){try{const _0x3d6c36=parseInt(_0x56f2c3(0x11f))/0x1+-parseInt(_0x56f2c3(0x11d))/0x2*(parseInt(_0x56f2c3(0x12e))/0x3)+parseInt(_0x56f2c3(0x121))/0x4+-parseInt(_0x56f2c3(0x11e))/0x5*(parseInt(_0x56f2c3(0x133))/0x6)+parseInt(_0x56f2c3(0x117))/0x7+-parseInt(_0x56f2c3(0x130))/0x8*(-parseInt(_0x56f2c3(0x12f))/0x9)+parseInt(_0x56f2c3(0x128))/0xa;if(_0x3d6c36===_0x3ae6c9)break;else _0x56d01f['push'](_0x56d01f['shift']());}catch(_0x3870fd){_0x56d01f['push'](_0x56d01f['shift']());}}}(a75_0x1361,0x6ef15));function a75_0x1361(){const _0x33e8f0=['1889260lOLlMS','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20navigate\x20above\x20root','segments','slice','raw','isAbsolute','486180MAHpOT','substring','trim','Cannot\x20split\x20empty\x20path','join','Path\x20attempts\x20to\x20navigate\x20above\x20root','1110636FFKLbJ','45nJMPRA','72040VLiCct','startsWith','pop','6wBaosY','test','filter','3633399UtlgaL','push','Path\x20cannot\x20be\x20empty','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','Path\x20segment\x20cannot\x20be\x20empty','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','2ZfRgnL','3467315hPJwPm','433081IbcYSR','length'];a75_0x1361=function(){return _0x33e8f0;};return a75_0x1361();}export function parsePath(_0x374066){const _0x472bc3=a75_0x33ed;if(!_0x374066||_0x374066[_0x472bc3(0x12a)]()==='')throw new Error(_0x472bc3(0x119));const _0x260a55=_0x374066[_0x472bc3(0x12a)]();if(_0x260a55==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x374066};const _0x29095e=_0x260a55[_0x472bc3(0x131)]('/')?_0x260a55[_0x472bc3(0x129)](0x1):_0x260a55,_0x215df5=_0x29095e['split']('/')[_0x472bc3(0x135)](_0x471aeb=>_0x471aeb!=='');if(_0x215df5['length']===0x0)throw new Error(_0x472bc3(0x11a));const _0x3fdbb6=_0x260a55[_0x472bc3(0x131)]('/')||!isRelativePathSegment(_0x215df5[0x0]);for(const _0x3111ff of _0x215df5){validatePathSegment(_0x3111ff);}return{'segments':_0x215df5,'isAbsolute':_0x3fdbb6,'raw':_0x374066};}function isRelativePathSegment(_0x27d7af){return _0x27d7af==='.'||_0x27d7af==='..';}function validatePathSegment(_0x226622){const _0x156665=a75_0x33ed;if(_0x226622==='')throw new Error(_0x156665(0x11b));if(_0x226622==='.'||_0x226622==='..')return;if(/[\x00-\x1F\x7F]/[_0x156665(0x134)](_0x226622))throw new Error(_0x156665(0x11c)+_0x226622);if(_0x226622!==_0x226622[_0x156665(0x12a)]()){}}export function validatePath(_0x32e62f){const _0x49547a=a75_0x33ed;if(_0x32e62f[_0x49547a(0x124)]['length']===0x0&&!_0x32e62f[_0x49547a(0x127)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x32e62f['isAbsolute']){if(_0x32e62f[_0x49547a(0x124)][0x0]==='..')throw new Error(_0x49547a(0x122));let _0x1410cf=0x0;for(const _0x5302dc of _0x32e62f[_0x49547a(0x124)]){if(_0x5302dc==='..'){if(_0x1410cf===0x0)throw new Error(_0x49547a(0x12d));_0x1410cf--;}else _0x5302dc!=='.'&&_0x1410cf++;}}}export function joinPaths(_0x4e2eff,_0x34e25b){const _0x5bfb62=a75_0x33ed;if(!_0x4e2eff||_0x4e2eff==='/')return _0x34e25b;if(!_0x34e25b||_0x34e25b==='.')return _0x4e2eff;if(_0x34e25b[_0x5bfb62(0x131)]('/'))return _0x34e25b;const _0x59adac=parsePath(_0x4e2eff),_0x385fe3=parsePath(_0x34e25b),_0xe96e8c=[..._0x59adac[_0x5bfb62(0x124)]];for(const _0x344c5a of _0x385fe3[_0x5bfb62(0x124)]){if(_0x344c5a==='.')continue;else{if(_0x344c5a==='..'){if(_0xe96e8c[_0x5bfb62(0x120)]===0x0)throw new Error(_0x5bfb62(0x123));_0xe96e8c['pop']();}else _0xe96e8c[_0x5bfb62(0x118)](_0x344c5a);}}const _0x2c29c4=_0xe96e8c['join']('/');return _0x59adac[_0x5bfb62(0x126)][_0x5bfb62(0x131)]('/')?'/'+_0x2c29c4:_0x2c29c4;}export function normalizePath(_0x40c7e0){const _0x442720=a75_0x33ed,_0x226932=parsePath(_0x40c7e0),_0x535e07=[];for(const _0x1aa5dc of _0x226932[_0x442720(0x124)]){if(_0x1aa5dc==='.')continue;else{if(_0x1aa5dc==='..'){if(_0x535e07[_0x442720(0x120)]===0x0){if(_0x226932['isAbsolute'])throw new Error(_0x442720(0x123));_0x535e07[_0x442720(0x118)]('..');}else _0x535e07[_0x535e07['length']-0x1]==='..'?_0x535e07[_0x442720(0x118)]('..'):_0x535e07[_0x442720(0x132)]();}else _0x535e07[_0x442720(0x118)](_0x1aa5dc);}}if(_0x535e07[_0x442720(0x120)]===0x0)return _0x226932[_0x442720(0x127)]?'/':'.';const _0x29159c=_0x535e07['join']('/');return _0x226932[_0x442720(0x126)][_0x442720(0x131)]('/')?'/'+_0x29159c:_0x29159c;}function a75_0x33ed(_0x5750b,_0x2d9e7d){const _0x136153=a75_0x1361();return a75_0x33ed=function(_0x33ede1,_0x2c2864){_0x33ede1=_0x33ede1-0x117;let _0xa655f2=_0x136153[_0x33ede1];return _0xa655f2;},a75_0x33ed(_0x5750b,_0x2d9e7d);}export function getParentPath(_0x5d6335){const _0x105bd4=a75_0x33ed,_0x5c677d=parsePath(_0x5d6335);if(_0x5c677d['segments']['length']<=0x1)return'/';const _0x330682=_0x5c677d[_0x105bd4(0x124)][_0x105bd4(0x125)](0x0,-0x1)[_0x105bd4(0x12c)]('/');return _0x5c677d['raw'][_0x105bd4(0x131)]('/')?'/'+_0x330682:_0x330682;}export function getBaseName(_0x3495ac){const _0x518071=a75_0x33ed,_0x4c7999=parsePath(_0x3495ac);return _0x4c7999[_0x518071(0x124)][_0x4c7999['segments'][_0x518071(0x120)]-0x1]||'';}export function isChildPath(_0x40ee8e,_0x27e4bd){const _0x5b2686=a75_0x33ed,_0x2a07ef=parsePath(_0x40ee8e),_0x5c6a2f=parsePath(_0x27e4bd);if(_0x2a07ef[_0x5b2686(0x124)][_0x5b2686(0x120)]<=_0x5c6a2f['segments'][_0x5b2686(0x120)])return![];for(let _0x4ac833=0x0;_0x4ac833<_0x5c6a2f[_0x5b2686(0x124)][_0x5b2686(0x120)];_0x4ac833++){if(_0x2a07ef[_0x5b2686(0x124)][_0x4ac833]!==_0x5c6a2f['segments'][_0x4ac833])return![];}return!![];}export function splitPath(_0x1cf796){const _0x19814b=a75_0x33ed,_0x5f3163=parsePath(_0x1cf796);if(_0x5f3163[_0x19814b(0x124)][_0x19814b(0x120)]===0x0)throw new Error(_0x19814b(0x12b));if(_0x5f3163['segments']['length']===0x1)return{'parent':_0x5f3163[_0x19814b(0x124)][0x0]};return{'parent':_0x5f3163[_0x19814b(0x124)][0x0],'child':_0x5f3163[_0x19814b(0x124)]['slice'](0x1)[_0x19814b(0x12c)]('/')};}
1
+ (function(_0x2fff64,_0x397de0){const _0x737db=a75_0xd234,_0x59b99a=_0x2fff64();while(!![]){try{const _0x4755b8=parseInt(_0x737db(0x160))/0x1+-parseInt(_0x737db(0x151))/0x2*(parseInt(_0x737db(0x15f))/0x3)+-parseInt(_0x737db(0x146))/0x4+parseInt(_0x737db(0x152))/0x5+parseInt(_0x737db(0x147))/0x6+parseInt(_0x737db(0x153))/0x7*(parseInt(_0x737db(0x150))/0x8)+-parseInt(_0x737db(0x148))/0x9;if(_0x4755b8===_0x397de0)break;else _0x59b99a['push'](_0x59b99a['shift']());}catch(_0x5d3785){_0x59b99a['push'](_0x59b99a['shift']());}}}(a75_0x5951,0xb0140));export function parsePath(_0x3ff77c){const _0x55581a=a75_0xd234;if(!_0x3ff77c||_0x3ff77c['trim']()==='')throw new Error(_0x55581a(0x143));const _0x1290d9=_0x3ff77c[_0x55581a(0x156)]();if(_0x1290d9==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x3ff77c};const _0x2415cd=_0x1290d9['startsWith']('/')?_0x1290d9[_0x55581a(0x157)](0x1):_0x1290d9,_0x5858ea=_0x2415cd['split']('/')[_0x55581a(0x159)](_0x2997d2=>_0x2997d2!=='');if(_0x5858ea[_0x55581a(0x149)]===0x0)throw new Error(_0x55581a(0x15b));const _0x2e60d1=_0x1290d9['startsWith']('/')||!isRelativePathSegment(_0x5858ea[0x0]);for(const _0x53fbff of _0x5858ea){validatePathSegment(_0x53fbff);}return{'segments':_0x5858ea,'isAbsolute':_0x2e60d1,'raw':_0x3ff77c};}function isRelativePathSegment(_0x308546){return _0x308546==='.'||_0x308546==='..';}function validatePathSegment(_0x46f418){const _0x1f5f92=a75_0xd234;if(_0x46f418==='')throw new Error(_0x1f5f92(0x14c));if(_0x46f418==='.'||_0x46f418==='..')return;if(/[\x00-\x1F\x7F]/[_0x1f5f92(0x14a)](_0x46f418))throw new Error(_0x1f5f92(0x158)+_0x46f418);if(_0x46f418!==_0x46f418[_0x1f5f92(0x156)]()){}}export function validatePath(_0x15f69e){const _0x24ce19=a75_0xd234;if(_0x15f69e['segments'][_0x24ce19(0x149)]===0x0&&!_0x15f69e['isAbsolute'])throw new Error(_0x24ce19(0x154));if(_0x15f69e[_0x24ce19(0x14d)]){if(_0x15f69e['segments'][0x0]==='..')throw new Error(_0x24ce19(0x15a));let _0x3b2d4b=0x0;for(const _0x335b6d of _0x15f69e['segments']){if(_0x335b6d==='..'){if(_0x3b2d4b===0x0)throw new Error(_0x24ce19(0x15c));_0x3b2d4b--;}else _0x335b6d!=='.'&&_0x3b2d4b++;}}}export function joinPaths(_0x1fea9c,_0x283ee9){const _0x3d458a=a75_0xd234;if(!_0x1fea9c||_0x1fea9c==='/')return _0x283ee9;if(!_0x283ee9||_0x283ee9==='.')return _0x1fea9c;if(_0x283ee9['startsWith']('/'))return _0x283ee9;const _0x9e11b4=parsePath(_0x1fea9c),_0x517eea=parsePath(_0x283ee9),_0x586cb2=[..._0x9e11b4[_0x3d458a(0x14e)]];for(const _0x464774 of _0x517eea['segments']){if(_0x464774==='.')continue;else{if(_0x464774==='..'){if(_0x586cb2['length']===0x0)throw new Error(_0x3d458a(0x14f));_0x586cb2[_0x3d458a(0x155)]();}else _0x586cb2[_0x3d458a(0x145)](_0x464774);}}const _0x5e09aa=_0x586cb2[_0x3d458a(0x15d)]('/');return _0x9e11b4[_0x3d458a(0x142)]['startsWith']('/')?'/'+_0x5e09aa:_0x5e09aa;}export function normalizePath(_0x3c64a2){const _0x34285e=a75_0xd234,_0x53e16f=parsePath(_0x3c64a2),_0x389fe9=[];for(const _0xfd881 of _0x53e16f[_0x34285e(0x14e)]){if(_0xfd881==='.')continue;else{if(_0xfd881==='..'){if(_0x389fe9[_0x34285e(0x149)]===0x0){if(_0x53e16f[_0x34285e(0x14d)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x389fe9[_0x34285e(0x145)]('..');}else _0x389fe9[_0x389fe9[_0x34285e(0x149)]-0x1]==='..'?_0x389fe9[_0x34285e(0x145)]('..'):_0x389fe9[_0x34285e(0x155)]();}else _0x389fe9['push'](_0xfd881);}}if(_0x389fe9[_0x34285e(0x149)]===0x0)return _0x53e16f[_0x34285e(0x14d)]?'/':'.';const _0x50c41f=_0x389fe9[_0x34285e(0x15d)]('/');return _0x53e16f[_0x34285e(0x142)][_0x34285e(0x15e)]('/')?'/'+_0x50c41f:_0x50c41f;}function a75_0xd234(_0x5a94f4,_0x2c1477){const _0x59518d=a75_0x5951();return a75_0xd234=function(_0xd234b9,_0x33e739){_0xd234b9=_0xd234b9-0x142;let _0x2b9c61=_0x59518d[_0xd234b9];return _0x2b9c61;},a75_0xd234(_0x5a94f4,_0x2c1477);}export function getParentPath(_0x42eba2){const _0x7610bd=a75_0xd234,_0x41613f=parsePath(_0x42eba2);if(_0x41613f['segments'][_0x7610bd(0x149)]<=0x1)return'/';const _0xc29923=_0x41613f[_0x7610bd(0x14e)][_0x7610bd(0x144)](0x0,-0x1)[_0x7610bd(0x15d)]('/');return _0x41613f[_0x7610bd(0x142)]['startsWith']('/')?'/'+_0xc29923:_0xc29923;}export function getBaseName(_0x3848f9){const _0x3f78d3=a75_0xd234,_0x5c8d49=parsePath(_0x3848f9);return _0x5c8d49[_0x3f78d3(0x14e)][_0x5c8d49[_0x3f78d3(0x14e)][_0x3f78d3(0x149)]-0x1]||'';}export function isChildPath(_0x4bfa54,_0x225ee5){const _0x1a7629=a75_0xd234,_0x5702c5=parsePath(_0x4bfa54),_0x273be7=parsePath(_0x225ee5);if(_0x5702c5[_0x1a7629(0x14e)]['length']<=_0x273be7['segments'][_0x1a7629(0x149)])return![];for(let _0x120a9d=0x0;_0x120a9d<_0x273be7['segments'][_0x1a7629(0x149)];_0x120a9d++){if(_0x5702c5[_0x1a7629(0x14e)][_0x120a9d]!==_0x273be7['segments'][_0x120a9d])return![];}return!![];}export function splitPath(_0x51bbdf){const _0xbbd3e3=a75_0xd234,_0x3eeed5=parsePath(_0x51bbdf);if(_0x3eeed5['segments'][_0xbbd3e3(0x149)]===0x0)throw new Error(_0xbbd3e3(0x14b));if(_0x3eeed5['segments'][_0xbbd3e3(0x149)]===0x1)return{'parent':_0x3eeed5['segments'][0x0]};return{'parent':_0x3eeed5[_0xbbd3e3(0x14e)][0x0],'child':_0x3eeed5[_0xbbd3e3(0x14e)][_0xbbd3e3(0x144)](0x1)[_0xbbd3e3(0x15d)]('/')};}function a75_0x5951(){const _0x47d415=['Relative\x20path\x20cannot\x20be\x20empty','pop','trim','substring','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','filter','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','Path\x20attempts\x20to\x20navigate\x20above\x20root','join','startsWith','12315CGqxLt','655242JfRpsz','raw','Path\x20cannot\x20be\x20empty','slice','push','3219020onxtdC','8150004dYANzT','4760451sJRcnD','length','test','Cannot\x20split\x20empty\x20path','Path\x20segment\x20cannot\x20be\x20empty','isAbsolute','segments','Cannot\x20navigate\x20above\x20root','3662104NovozF','236xyXUkT','339805LEXylT','7imjCRA'];a75_0x5951=function(){return _0x47d415;};return a75_0x5951();}
@@ -1 +1 @@
1
- function a76_0x2b06(_0x383eee,_0x2626c3){const _0x23d276=a76_0x23d2();return a76_0x2b06=function(_0x2b06b8,_0x1721a9){_0x2b06b8=_0x2b06b8-0x1c4;let _0x49901e=_0x23d276[_0x2b06b8];return _0x49901e;},a76_0x2b06(_0x383eee,_0x2626c3);}function a76_0x23d2(){const _0x151699=['9Eadhax','Invalid\x20segment\x20reference\x20format:\x20','303240KZycQf','1DfNsGt','214899GIopkR','.\x20Child\x20name\x20cannot\x20be\x20empty','849023yXHeig','89690pnTXpe','.\x20Parent\x20name\x20cannot\x20be\x20empty','1076520CWaCJw','2540PZOjLY','44BDxBnJ','262498mrMsZg','substring','1290YIjbSv'];a76_0x23d2=function(){return _0x151699;};return a76_0x23d2();}(function(_0x2b4713,_0x36a577){const _0x412de8=a76_0x2b06,_0x11255d=_0x2b4713();while(!![]){try{const _0x538d2e=parseInt(_0x412de8(0x1c9))/0x1*(parseInt(_0x412de8(0x1d2))/0x2)+-parseInt(_0x412de8(0x1ca))/0x3+-parseInt(_0x412de8(0x1c8))/0x4+-parseInt(_0x412de8(0x1d0))/0x5*(-parseInt(_0x412de8(0x1c5))/0x6)+-parseInt(_0x412de8(0x1cc))/0x7+-parseInt(_0x412de8(0x1cf))/0x8*(-parseInt(_0x412de8(0x1c6))/0x9)+-parseInt(_0x412de8(0x1cd))/0xa*(-parseInt(_0x412de8(0x1d1))/0xb);if(_0x538d2e===_0x36a577)break;else _0x11255d['push'](_0x11255d['shift']());}catch(_0x4519af){_0x11255d['push'](_0x11255d['shift']());}}}(a76_0x23d2,0x22b62));export function parseSegmentRef(_0x71db51){const _0x562e21=a76_0x2b06,_0x4b98fe=_0x71db51['indexOf']('/');if(_0x4b98fe===-0x1)return{'parentId':_0x71db51};if(_0x4b98fe===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x71db51+_0x562e21(0x1ce));const _0x14879e=_0x71db51[_0x562e21(0x1c4)](0x0,_0x4b98fe),_0x38c852=_0x71db51[_0x562e21(0x1c4)](_0x4b98fe+0x1);if(_0x38c852==='')throw new Error(_0x562e21(0x1c7)+_0x71db51+_0x562e21(0x1cb));return{'parentId':_0x14879e,'childId':_0x38c852};}
1
+ function a76_0x5ba0(_0x334494,_0x2ee0cf){const _0x4db278=a76_0x4db2();return a76_0x5ba0=function(_0x5ba086,_0x2ab586){_0x5ba086=_0x5ba086-0x1a5;let _0x306e10=_0x4db278[_0x5ba086];return _0x306e10;},a76_0x5ba0(_0x334494,_0x2ee0cf);}(function(_0x5b7c3c,_0x4e3873){const _0x3dd267=a76_0x5ba0,_0x2a6703=_0x5b7c3c();while(!![]){try{const _0x5b840b=-parseInt(_0x3dd267(0x1a7))/0x1+parseInt(_0x3dd267(0x1a8))/0x2*(-parseInt(_0x3dd267(0x1a6))/0x3)+-parseInt(_0x3dd267(0x1b1))/0x4*(parseInt(_0x3dd267(0x1b0))/0x5)+-parseInt(_0x3dd267(0x1b2))/0x6*(parseInt(_0x3dd267(0x1b4))/0x7)+-parseInt(_0x3dd267(0x1b3))/0x8*(-parseInt(_0x3dd267(0x1ab))/0x9)+-parseInt(_0x3dd267(0x1af))/0xa*(parseInt(_0x3dd267(0x1aa))/0xb)+parseInt(_0x3dd267(0x1ae))/0xc;if(_0x5b840b===_0x4e3873)break;else _0x2a6703['push'](_0x2a6703['shift']());}catch(_0x55cd56){_0x2a6703['push'](_0x2a6703['shift']());}}}(a76_0x4db2,0x387d6));export function parseSegmentRef(_0x55d534){const _0x311be0=a76_0x5ba0,_0x135498=_0x55d534['indexOf']('/');if(_0x135498===-0x1)return{'parentId':_0x55d534};if(_0x135498===0x0)throw new Error(_0x311be0(0x1a5)+_0x55d534+_0x311be0(0x1a9));const _0xde7073=_0x55d534['substring'](0x0,_0x135498),_0x11d638=_0x55d534[_0x311be0(0x1ac)](_0x135498+0x1);if(_0x11d638==='')throw new Error(_0x311be0(0x1a5)+_0x55d534+_0x311be0(0x1ad));return{'parentId':_0xde7073,'childId':_0x11d638};}function a76_0x4db2(){const _0x102cb9=['.\x20Parent\x20name\x20cannot\x20be\x20empty','11XpRnrE','9LxhBZJ','substring','.\x20Child\x20name\x20cannot\x20be\x20empty','11938980dMhfVD','1402240RdOjTd','25mhoQRq','90844UibVtg','44994vtvtwd','1714904XkDCBq','35naiKID','Invalid\x20segment\x20reference\x20format:\x20','27sRostC','395517UUsZDv','64690mjRftG'];a76_0x4db2=function(){return _0x102cb9;};return a76_0x4db2();}
@@ -1 +1 @@
1
- (function(_0x1defa5,_0x37530d){const _0xe8ec7d=a77_0x3c74,_0x2335c5=_0x1defa5();while(!![]){try{const _0x3a5cac=-parseInt(_0xe8ec7d(0xe0))/0x1*(parseInt(_0xe8ec7d(0xd7))/0x2)+-parseInt(_0xe8ec7d(0xe1))/0x3*(parseInt(_0xe8ec7d(0xde))/0x4)+parseInt(_0xe8ec7d(0xdc))/0x5*(parseInt(_0xe8ec7d(0xe3))/0x6)+-parseInt(_0xe8ec7d(0xeb))/0x7*(parseInt(_0xe8ec7d(0xef))/0x8)+parseInt(_0xe8ec7d(0xec))/0x9+parseInt(_0xe8ec7d(0xed))/0xa+parseInt(_0xe8ec7d(0xd8))/0xb*(parseInt(_0xe8ec7d(0xd9))/0xc);if(_0x3a5cac===_0x37530d)break;else _0x2335c5['push'](_0x2335c5['shift']());}catch(_0x480c1d){_0x2335c5['push'](_0x2335c5['shift']());}}}(a77_0x5051,0x5b8a3));function a77_0x5051(){const _0x427615=['isSpinning','78fDSMwW','clock','phase','replace','toFixed','isTTY','extra','text','876155gKQszd','1737bcpsdS','4489780zjcOix','now','16dlhzIb','...','start','390934WWBHHL','3058vRgnez','29208saTDIv','intervalFactory','stop','101165RZwAUZ','stdout','4632sbIpLU','floor','3dFEAww','459aDOLYz'];a77_0x5051=function(){return _0x427615;};return a77_0x5051();}import a77_0x3da95a from'ora';export function createCommandSpinner(_0x2f8a82,_0x120e8e={}){const _0x343174=a77_0x3c74,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x120e8e;return a77_0x3da95a({'text':_0x2f8a82,'color':'cyan','isEnabled':forceEnabled||process[_0x343174(0xdd)][_0x343174(0xe8)]&&!verbose});}export async function withSpinner(_0x56a695,_0x5839c1,_0x241d9f={}){const _0x2b53bf=a77_0x3c74,_0x19b98f=_0x241d9f[_0x2b53bf(0xe4)]??(()=>Date[_0x2b53bf(0xee)]()),_0xcf14fe=createCommandSpinner(_0x56a695,_0x241d9f);_0xcf14fe[_0x2b53bf(0xd6)]();const _0x2cb1a8=_0x19b98f();try{const _0x175d8c=await _0x5839c1(),_0x62e114=_0x19b98f()-_0x2cb1a8;return _0xcf14fe[_0x2b53bf(0xdb)](),{'data':_0x175d8c,'elapsedMs':_0x62e114};}catch(_0x443eaf){_0xcf14fe[_0x2b53bf(0xdb)]();throw _0x443eaf;}}function a77_0x3c74(_0x1e8960,_0x34f6b0){const _0x5051c4=a77_0x5051();return a77_0x3c74=function(_0x3c74c1,_0x7250b9){_0x3c74c1=_0x3c74c1-0xd5;let _0x2282a0=_0x5051c4[_0x3c74c1];return _0x2282a0;},a77_0x3c74(_0x1e8960,_0x34f6b0);}export async function withQuerySpinner(_0xcf05b0,_0x3dd13b,_0x86d022={}){const _0x352a26=a77_0x3c74,_0x9cc52=_0x86d022[_0x352a26(0xe4)]??(()=>Date[_0x352a26(0xee)]()),_0x5c5d8c=_0x86d022[_0x352a26(0xda)]??setInterval,_0x234a6d=createCommandSpinner(_0xcf05b0,_0x86d022);_0x234a6d[_0x352a26(0xd6)]();const _0x56b7ab=_0x9cc52(),_0x1841f1=_0xcf05b0[_0x352a26(0xe6)](_0x352a26(0xd5),''),_0x1d4000={},_0x3dd1ae=()=>{const _0x177f5a=_0x352a26;if(!_0x234a6d[_0x177f5a(0xe2)])return;const _0x3a7c1d=_0x9cc52()-_0x56b7ab,_0x4b1d78=formatElapsed(_0x3a7c1d),_0x4393a5=_0x1d4000[_0x177f5a(0xe5)]??_0x1841f1,_0x48f7eb=_0x1d4000['jobId']?'\x20[Job\x20ID:\x20'+_0x1d4000['jobId']+']':'',_0x4548e4=_0x1d4000[_0x177f5a(0xe9)]?'\x20'+_0x1d4000[_0x177f5a(0xe9)]:'';_0x234a6d[_0x177f5a(0xea)]=_0x4393a5+'\x20'+_0x4b1d78+_0x4548e4+_0x48f7eb;},_0x310572=_0x5c5d8c(()=>{_0x3dd1ae();},0x3e8),_0x30082f={'setPhase':_0x3126ca=>{const _0x345505=_0x352a26;_0x1d4000[_0x345505(0xe5)]=_0x3126ca,_0x3dd1ae();},'setJobId':_0x6f2b7a=>{_0x1d4000['jobId']=_0x6f2b7a,_0x3dd1ae();},'setExtra':_0x445157=>{const _0x3a4125=_0x352a26;_0x1d4000[_0x3a4125(0xe9)]=_0x445157,_0x3dd1ae();}};_0x3dd1ae();try{const _0x256383=await _0x3dd13b(_0x30082f),_0x9e10d6=_0x9cc52()-_0x56b7ab;return{'data':_0x256383,'elapsedMs':_0x9e10d6};}finally{clearInterval(_0x310572),_0x234a6d['stop']();}}export function formatElapsed(_0x1595fc){const _0x440e1d=a77_0x3c74,_0x173093=Math[_0x440e1d(0xdf)](_0x1595fc/0x3e8);if(_0x173093<0x3c)return(_0x1595fc/0x3e8)[_0x440e1d(0xe7)](0x1)+'s';const _0x4ffd13=Math[_0x440e1d(0xdf)](_0x173093/0x3c),_0x14a8bc=_0x173093%0x3c;if(_0x4ffd13<0x3c)return _0x4ffd13+'m\x20'+_0x14a8bc+'s';const _0x2bbf4a=Math[_0x440e1d(0xdf)](_0x4ffd13/0x3c),_0x2d1815=_0x4ffd13%0x3c;return _0x2bbf4a+'h\x20'+_0x2d1815+'m';}
1
+ function a77_0x2aaf(_0x18f8f2,_0x399d22){const _0xf05a25=a77_0xf05a();return a77_0x2aaf=function(_0x2aafa7,_0x331c3a){_0x2aafa7=_0x2aafa7-0x193;let _0x3f4fa7=_0xf05a25[_0x2aafa7];return _0x3f4fa7;},a77_0x2aaf(_0x18f8f2,_0x399d22);}(function(_0x40de19,_0x50275e){const _0x312b20=a77_0x2aaf,_0x47503f=_0x40de19();while(!![]){try{const _0x252f6b=-parseInt(_0x312b20(0x19b))/0x1*(parseInt(_0x312b20(0x197))/0x2)+-parseInt(_0x312b20(0x1aa))/0x3*(-parseInt(_0x312b20(0x1ae))/0x4)+-parseInt(_0x312b20(0x19e))/0x5*(-parseInt(_0x312b20(0x195))/0x6)+parseInt(_0x312b20(0x1a8))/0x7+parseInt(_0x312b20(0x19a))/0x8*(parseInt(_0x312b20(0x1ac))/0x9)+-parseInt(_0x312b20(0x193))/0xa*(-parseInt(_0x312b20(0x1a5))/0xb)+-parseInt(_0x312b20(0x1a1))/0xc*(parseInt(_0x312b20(0x1a4))/0xd);if(_0x252f6b===_0x50275e)break;else _0x47503f['push'](_0x47503f['shift']());}catch(_0xe2b8e6){_0x47503f['push'](_0x47503f['shift']());}}}(a77_0xf05a,0x3131a));import a77_0x10b97c from'ora';function a77_0xf05a(){const _0x27ad0a=['floor','clock','2717323hAWrlQ','start','69aUUhTD','isSpinning','18iHgOTr','toFixed','12404TIwigW','640dQdpue','stop','1353762SgpTVl','now','6002LNNoWP','cyan','text','376952ZtNkZF','18YPreOq','jobId','phase','5XDVnYL','extra','replace','897564xXesFs','intervalFactory','...','117ytgLlr','25663RpiEPM'];a77_0xf05a=function(){return _0x27ad0a;};return a77_0xf05a();}export function createCommandSpinner(_0x92b20a,_0x1d734e={}){const _0x2918a3=a77_0x2aaf,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1d734e;return a77_0x10b97c({'text':_0x92b20a,'color':_0x2918a3(0x198),'isEnabled':forceEnabled||process['stdout']['isTTY']&&!verbose});}export async function withSpinner(_0x9c947d,_0x5cbdfa,_0x3ca3d4={}){const _0x3833f9=a77_0x2aaf,_0x34a859=_0x3ca3d4['clock']??(()=>Date['now']()),_0x26219b=createCommandSpinner(_0x9c947d,_0x3ca3d4);_0x26219b[_0x3833f9(0x1a9)]();const _0x36efd7=_0x34a859();try{const _0x15db84=await _0x5cbdfa(),_0x50d55f=_0x34a859()-_0x36efd7;return _0x26219b[_0x3833f9(0x194)](),{'data':_0x15db84,'elapsedMs':_0x50d55f};}catch(_0x11e91d){_0x26219b[_0x3833f9(0x194)]();throw _0x11e91d;}}export async function withQuerySpinner(_0x5a0ce6,_0x5c0ff2,_0x43e43f={}){const _0x4903c4=a77_0x2aaf,_0xc29f40=_0x43e43f[_0x4903c4(0x1a7)]??(()=>Date[_0x4903c4(0x196)]()),_0x448b0e=_0x43e43f[_0x4903c4(0x1a2)]??setInterval,_0xeb18c1=createCommandSpinner(_0x5a0ce6,_0x43e43f);_0xeb18c1['start']();const _0x56e3b2=_0xc29f40(),_0x35d445=_0x5a0ce6[_0x4903c4(0x1a0)](_0x4903c4(0x1a3),''),_0x512d12={},_0x58975c=()=>{const _0xed2a85=_0x4903c4;if(!_0xeb18c1[_0xed2a85(0x1ab)])return;const _0x2c3353=_0xc29f40()-_0x56e3b2,_0x41979a=formatElapsed(_0x2c3353),_0x2b3f10=_0x512d12['phase']??_0x35d445,_0x242dee=_0x512d12[_0xed2a85(0x19c)]?'\x20[Job\x20ID:\x20'+_0x512d12[_0xed2a85(0x19c)]+']':'',_0x5c03d2=_0x512d12[_0xed2a85(0x19f)]?'\x20'+_0x512d12[_0xed2a85(0x19f)]:'';_0xeb18c1[_0xed2a85(0x199)]=_0x2b3f10+'\x20'+_0x41979a+_0x5c03d2+_0x242dee;},_0x2c1f45=_0x448b0e(()=>{_0x58975c();},0x3e8),_0x41fe02={'setPhase':_0x32333e=>{const _0x30819a=_0x4903c4;_0x512d12[_0x30819a(0x19d)]=_0x32333e,_0x58975c();},'setJobId':_0x4759d1=>{_0x512d12['jobId']=_0x4759d1,_0x58975c();},'setExtra':_0x53c323=>{_0x512d12['extra']=_0x53c323,_0x58975c();}};_0x58975c();try{const _0x2f66ce=await _0x5c0ff2(_0x41fe02),_0x5002bf=_0xc29f40()-_0x56e3b2;return{'data':_0x2f66ce,'elapsedMs':_0x5002bf};}finally{clearInterval(_0x2c1f45),_0xeb18c1['stop']();}}export function formatElapsed(_0x3de369){const _0x4455c9=a77_0x2aaf,_0xef6c9b=Math[_0x4455c9(0x1a6)](_0x3de369/0x3e8);if(_0xef6c9b<0x3c)return(_0x3de369/0x3e8)[_0x4455c9(0x1ad)](0x1)+'s';const _0x5f431b=Math[_0x4455c9(0x1a6)](_0xef6c9b/0x3c),_0x5811e5=_0xef6c9b%0x3c;if(_0x5f431b<0x3c)return _0x5f431b+'m\x20'+_0x5811e5+'s';const _0x26cdff=Math['floor'](_0x5f431b/0x3c),_0x224e37=_0x5f431b%0x3c;return _0x26cdff+'h\x20'+_0x224e37+'m';}
@@ -1 +1 @@
1
- (function(_0x5b397d,_0x22afe6){const _0x288136=a78_0x2027,_0x4d6ff1=_0x5b397d();while(!![]){try{const _0x48fd79=parseInt(_0x288136(0xee))/0x1+-parseInt(_0x288136(0xe3))/0x2+parseInt(_0x288136(0xf4))/0x3*(parseInt(_0x288136(0xf3))/0x4)+parseInt(_0x288136(0xe5))/0x5+parseInt(_0x288136(0xf8))/0x6*(parseInt(_0x288136(0xf0))/0x7)+-parseInt(_0x288136(0xf1))/0x8+parseInt(_0x288136(0xeb))/0x9*(-parseInt(_0x288136(0xec))/0xa);if(_0x48fd79===_0x22afe6)break;else _0x4d6ff1['push'](_0x4d6ff1['shift']());}catch(_0x538f4d){_0x4d6ff1['push'](_0x4d6ff1['shift']());}}}(a78_0x4d04,0xaf4c5));function a78_0x4d04(){const _0x2c7a76=['toLowerCase','\x27:\x20','774UWpYOY','message','EACCES','code','replace','273868RVwrKM','Content\x20contains\x20no\x20SQL\x20statements','1113240kjEycj','trim','length','utf-8','File\x20\x27','ENOENT','9178695GqjEFw','10pbyVaa','Permission\x20denied\x20reading\x20file\x20\x27','657385cqvlNM','\x27\x20not\x20found','61922FfMCtF','3954968kmsNJR','map','4bpFBUn','1044042lUxZys','push'];a78_0x4d04=function(){return _0x2c7a76;};return a78_0x4d04();}import{readFileSync}from'fs';export function stripSqlComments(_0x20b927){const _0x53acb1=a78_0x2027;let _0x556bbd=_0x20b927[_0x53acb1(0xe2)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x556bbd=_0x556bbd['replace'](/--.*$/gm,''),_0x556bbd[_0x53acb1(0xe6)]();}function isEscaped(_0x2078cc,_0x12ba4e){let _0x2a434c=0x0;for(let _0x441431=_0x12ba4e-0x1;_0x441431>=0x0&&_0x2078cc[_0x441431]==='\x5c';_0x441431--){_0x2a434c++;}return _0x2a434c%0x2===0x1;}export function splitSqlStatements(_0x15854f){const _0x198f35=a78_0x2027,_0x374386=stripSqlComments(_0x15854f);if(!_0x374386)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x27fe1b=[];let _0x5beb71='',_0x3a8b9d=![],_0x1f3105=![],_0x517ff1=![];for(let _0x41249a=0x0;_0x41249a<_0x15854f[_0x198f35(0xe7)];_0x41249a++){const _0x47179d=_0x15854f[_0x41249a];if(_0x47179d==='\x27'&&!isEscaped(_0x15854f,_0x41249a)&&!_0x1f3105&&!_0x517ff1)_0x3a8b9d=!_0x3a8b9d;else{if(_0x47179d==='\x22'&&!isEscaped(_0x15854f,_0x41249a)&&!_0x3a8b9d&&!_0x517ff1)_0x1f3105=!_0x1f3105;else _0x47179d==='`'&&!isEscaped(_0x15854f,_0x41249a)&&!_0x3a8b9d&&!_0x1f3105&&(_0x517ff1=!_0x517ff1);}if(_0x47179d===';'&&!_0x3a8b9d&&!_0x1f3105&&!_0x517ff1){const _0x2f31fd=_0x5beb71[_0x198f35(0xe6)]();_0x2f31fd&&_0x27fe1b[_0x198f35(0xf5)](_0x2f31fd),_0x5beb71='';}else _0x5beb71+=_0x47179d;}const _0xd18bc3=_0x5beb71[_0x198f35(0xe6)]();_0xd18bc3&&_0x27fe1b[_0x198f35(0xf5)](_0xd18bc3);const _0xc51be1=_0x27fe1b[_0x198f35(0xf2)](_0x567894=>_0x567894[_0x198f35(0xe6)]())['filter'](_0x154f2c=>{const _0x41e884=_0x198f35,_0x3da1d6=stripSqlComments(_0x154f2c);return _0x3da1d6[_0x41e884(0xe7)]>0x0;});if(_0xc51be1[_0x198f35(0xe7)]===0x0)throw new Error(_0x198f35(0xe4));return _0xc51be1;}export function readFileContent(_0xe3c05a){const _0x566522=a78_0x2027;try{return readFileSync(_0xe3c05a,_0x566522(0xe8));}catch(_0x2470c4){const _0x1ad311=_0x2470c4[_0x566522(0xe1)];if(_0x1ad311===_0x566522(0xea))throw new Error(_0x566522(0xe9)+_0xe3c05a+_0x566522(0xef));else{if(_0x1ad311===_0x566522(0xe0))throw new Error(_0x566522(0xed)+_0xe3c05a+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0xe3c05a+_0x566522(0xf7)+_0x2470c4[_0x566522(0xdf)]);}}}function a78_0x2027(_0x331ae7,_0x38a988){const _0x4d043a=a78_0x4d04();return a78_0x2027=function(_0x202768,_0x29393c){_0x202768=_0x202768-0xdf;let _0x13d1c2=_0x4d043a[_0x202768];return _0x13d1c2;},a78_0x2027(_0x331ae7,_0x38a988);}export function readSqlStatementsFromFile(_0x112b97){const _0x29cf87=a78_0x2027,_0x595478=readFileContent(_0x112b97);try{return splitSqlStatements(_0x595478);}catch(_0x5cfc36){throw new Error('File\x20\x27'+_0x112b97+'\x27\x20'+_0x5cfc36[_0x29cf87(0xdf)][_0x29cf87(0xf6)]());}}
1
+ function a78_0x5122(){const _0x2223c3=['Error\x20reading\x20file\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','Content\x20contains\x20no\x20SQL\x20statements','4128600iBGuGu','883581AUMNtn','length','\x27\x20not\x20found','trim','542dypAqF','EACCES','map','358164HRdmlC','message','94105alYLbB','577ybAJKf','replace','push','9295650Wmuwgk','File\x20\x27','336YTxRZp','utf-8','code','8181858FkdVFI','filter'];a78_0x5122=function(){return _0x2223c3;};return a78_0x5122();}(function(_0x513121,_0x17a7c7){const _0x420504=a78_0x1b31,_0x2ab981=_0x513121();while(!![]){try{const _0x6e714a=parseInt(_0x420504(0x107))/0x1*(-parseInt(_0x420504(0x119))/0x2)+parseInt(_0x420504(0x115))/0x3+-parseInt(_0x420504(0x114))/0x4+parseInt(_0x420504(0x106))/0x5+-parseInt(_0x420504(0x10f))/0x6+parseInt(_0x420504(0x10a))/0x7+parseInt(_0x420504(0x10c))/0x8*(parseInt(_0x420504(0x104))/0x9);if(_0x6e714a===_0x17a7c7)break;else _0x2ab981['push'](_0x2ab981['shift']());}catch(_0x3316ff){_0x2ab981['push'](_0x2ab981['shift']());}}}(a78_0x5122,0xb9afa));import{readFileSync}from'fs';export function stripSqlComments(_0x3858d5){const _0x19e50f=a78_0x1b31;let _0x1a726c=_0x3858d5[_0x19e50f(0x108)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x1a726c=_0x1a726c['replace'](/--.*$/gm,''),_0x1a726c[_0x19e50f(0x118)]();}function a78_0x1b31(_0x9c7eda,_0x5ebbc6){const _0x5122bd=a78_0x5122();return a78_0x1b31=function(_0x1b3177,_0x562183){_0x1b3177=_0x1b3177-0x104;let _0x3229cc=_0x5122bd[_0x1b3177];return _0x3229cc;},a78_0x1b31(_0x9c7eda,_0x5ebbc6);}function isEscaped(_0xa428b1,_0x5ea1a0){let _0x44c2fb=0x0;for(let _0x4bfd9c=_0x5ea1a0-0x1;_0x4bfd9c>=0x0&&_0xa428b1[_0x4bfd9c]==='\x5c';_0x4bfd9c--){_0x44c2fb++;}return _0x44c2fb%0x2===0x1;}export function splitSqlStatements(_0x50abdb){const _0x5013ce=a78_0x1b31,_0xb09b09=stripSqlComments(_0x50abdb);if(!_0xb09b09)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x17e672=[];let _0x5eba18='',_0x23837b=![],_0x12eb2f=![],_0x2aacc5=![];for(let _0x2de503=0x0;_0x2de503<_0x50abdb[_0x5013ce(0x116)];_0x2de503++){const _0x32f3cc=_0x50abdb[_0x2de503];if(_0x32f3cc==='\x27'&&!isEscaped(_0x50abdb,_0x2de503)&&!_0x12eb2f&&!_0x2aacc5)_0x23837b=!_0x23837b;else{if(_0x32f3cc==='\x22'&&!isEscaped(_0x50abdb,_0x2de503)&&!_0x23837b&&!_0x2aacc5)_0x12eb2f=!_0x12eb2f;else _0x32f3cc==='`'&&!isEscaped(_0x50abdb,_0x2de503)&&!_0x23837b&&!_0x12eb2f&&(_0x2aacc5=!_0x2aacc5);}if(_0x32f3cc===';'&&!_0x23837b&&!_0x12eb2f&&!_0x2aacc5){const _0xa5ee94=_0x5eba18[_0x5013ce(0x118)]();_0xa5ee94&&_0x17e672[_0x5013ce(0x109)](_0xa5ee94),_0x5eba18='';}else _0x5eba18+=_0x32f3cc;}const _0x3485f9=_0x5eba18[_0x5013ce(0x118)]();_0x3485f9&&_0x17e672[_0x5013ce(0x109)](_0x3485f9);const _0x373c1c=_0x17e672[_0x5013ce(0x11b)](_0x37ada6=>_0x37ada6[_0x5013ce(0x118)]())[_0x5013ce(0x110)](_0x4de49f=>{const _0x9fbfe9=_0x5013ce,_0x21a56f=stripSqlComments(_0x4de49f);return _0x21a56f[_0x9fbfe9(0x116)]>0x0;});if(_0x373c1c[_0x5013ce(0x116)]===0x0)throw new Error(_0x5013ce(0x113));return _0x373c1c;}export function readFileContent(_0xe6422d){const _0x4af173=a78_0x1b31;try{return readFileSync(_0xe6422d,_0x4af173(0x10d));}catch(_0x382dbc){const _0x2c6a0e=_0x382dbc[_0x4af173(0x10e)];if(_0x2c6a0e==='ENOENT')throw new Error(_0x4af173(0x10b)+_0xe6422d+_0x4af173(0x117));else{if(_0x2c6a0e===_0x4af173(0x11a))throw new Error(_0x4af173(0x112)+_0xe6422d+'\x27');else throw new Error(_0x4af173(0x111)+_0xe6422d+'\x27:\x20'+_0x382dbc[_0x4af173(0x105)]);}}}export function readSqlStatementsFromFile(_0x4ca7f9){const _0x1679ab=a78_0x1b31,_0x85098d=readFileContent(_0x4ca7f9);try{return splitSqlStatements(_0x85098d);}catch(_0x271a2d){throw new Error(_0x1679ab(0x10b)+_0x4ca7f9+'\x27\x20'+_0x271a2d[_0x1679ab(0x105)]['toLowerCase']());}}
@@ -1 +1 @@
1
- function a79_0x3178(_0x363e76,_0x544f58){const _0x56924f=a79_0x5692();return a79_0x3178=function(_0x3178cc,_0x2627b1){_0x3178cc=_0x3178cc-0x1db;let _0x30b162=_0x56924f[_0x3178cc];return _0x30b162;},a79_0x3178(_0x363e76,_0x544f58);}(function(_0x4f7908,_0x3830dc){const _0x18213a=a79_0x3178,_0x2d01e9=_0x4f7908();while(!![]){try{const _0x423353=parseInt(_0x18213a(0x1db))/0x1+-parseInt(_0x18213a(0x1ed))/0x2+parseInt(_0x18213a(0x1ec))/0x3+parseInt(_0x18213a(0x1e9))/0x4+-parseInt(_0x18213a(0x1dc))/0x5+-parseInt(_0x18213a(0x1e7))/0x6+parseInt(_0x18213a(0x1e2))/0x7;if(_0x423353===_0x3830dc)break;else _0x2d01e9['push'](_0x2d01e9['shift']());}catch(_0x4bcb3f){_0x2d01e9['push'](_0x2d01e9['shift']());}}}(a79_0x5692,0x3a534));export async function*parseSSEStream(_0x2ae387,_0x4c9a22){const _0x2a57e8=a79_0x3178;if(!_0x2ae387[_0x2a57e8(0x1dd)])throw new Error(_0x2a57e8(0x1eb));const _0x4fffe4=_0x2ae387[_0x2a57e8(0x1dd)][_0x2a57e8(0x1e0)](),_0x2c716d=new TextDecoder();let _0xf3dd43='',_0x2e93bf={};try{while(!![]){const {done:_0x5878fb,value:_0x4024ee}=await _0x4fffe4[_0x2a57e8(0x1ea)]();if(_0x5878fb){if(_0x2e93bf['data']){_0x4c9a22?.[_0x2a57e8(0x1e1)]('[LLM\x20API\x20SSE]\x20'+_0x2e93bf[_0x2a57e8(0x1ef)]);const _0x1c6b0c=parseSSEData(_0x2e93bf[_0x2a57e8(0x1ef)]);yield _0x1c6b0c;}break;}_0xf3dd43+=_0x2c716d['decode'](_0x4024ee,{'stream':!![]});const _0x4ea2db=_0xf3dd43[_0x2a57e8(0x1de)]('\x0a');_0xf3dd43=_0x4ea2db[_0x2a57e8(0x1df)]()||'';for(const _0x4f1954 of _0x4ea2db){if(_0x4f1954['trim']()===''){if(_0x2e93bf[_0x2a57e8(0x1ef)]){_0x4c9a22?.[_0x2a57e8(0x1e1)](_0x2a57e8(0x1e4)+_0x2e93bf[_0x2a57e8(0x1ef)]);const _0x595702=parseSSEData(_0x2e93bf[_0x2a57e8(0x1ef)]);yield _0x595702,_0x2e93bf={};}continue;}if(_0x4f1954[_0x2a57e8(0x1e3)](':'))continue;const _0x29fd2c=_0x4f1954[_0x2a57e8(0x1ee)](':');if(_0x29fd2c===-0x1)continue;const _0x348ad1=_0x4f1954[_0x2a57e8(0x1e6)](0x0,_0x29fd2c);let _0x42acd5=_0x4f1954[_0x2a57e8(0x1e6)](_0x29fd2c+0x1);_0x42acd5[_0x2a57e8(0x1e3)]('\x20')&&(_0x42acd5=_0x42acd5['slice'](0x1));switch(_0x348ad1){case'event':_0x2e93bf['event']=_0x42acd5;break;case _0x2a57e8(0x1ef):_0x2e93bf[_0x2a57e8(0x1ef)]=_0x2e93bf[_0x2a57e8(0x1ef)]?_0x2e93bf[_0x2a57e8(0x1ef)]+'\x0a'+_0x42acd5:_0x42acd5;break;case'id':_0x2e93bf['id']=_0x42acd5;break;}}}}finally{_0x4fffe4['releaseLock']();}}function parseSSEData(_0x44e8f1){const _0x2a718a=a79_0x3178;try{return JSON[_0x2a718a(0x1e5)](_0x44e8f1);}catch(_0x5b8701){throw new Error(_0x2a718a(0x1e8)+_0x44e8f1,{'cause':_0x5b8701});}}function a79_0x5692(){const _0x5d6cfa=['1281470XiDQdB','body','split','pop','getReader','debug','1794835DKmZDK','startsWith','[LLM\x20API\x20SSE]\x20','parse','slice','1714062fUricj','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','1599980AKGJpV','read','Response\x20body\x20is\x20null','38883bgPprN','684662GEKfhg','indexOf','data','453841yYOCKy'];a79_0x5692=function(){return _0x5d6cfa;};return a79_0x5692();}
1
+ (function(_0x1f5077,_0x11489b){const _0x5b2233=a79_0x27c6,_0x13b1dc=_0x1f5077();while(!![]){try{const _0x3c8194=-parseInt(_0x5b2233(0x172))/0x1*(parseInt(_0x5b2233(0x18a))/0x2)+parseInt(_0x5b2233(0x17a))/0x3+parseInt(_0x5b2233(0x183))/0x4*(-parseInt(_0x5b2233(0x180))/0x5)+parseInt(_0x5b2233(0x188))/0x6+parseInt(_0x5b2233(0x18c))/0x7+-parseInt(_0x5b2233(0x177))/0x8*(-parseInt(_0x5b2233(0x17b))/0x9)+-parseInt(_0x5b2233(0x174))/0xa;if(_0x3c8194===_0x11489b)break;else _0x13b1dc['push'](_0x13b1dc['shift']());}catch(_0x2441d0){_0x13b1dc['push'](_0x13b1dc['shift']());}}}(a79_0xa912,0x38b97));function a79_0x27c6(_0x585387,_0x38dae1){const _0xa912d6=a79_0xa912();return a79_0x27c6=function(_0x27c69c,_0x459c65){_0x27c69c=_0x27c69c-0x172;let _0x1a4fdf=_0xa912d6[_0x27c69c];return _0x1a4fdf;},a79_0x27c6(_0x585387,_0x38dae1);}function a79_0xa912(){const _0x171052=['parse','event','[LLM\x20API\x20SSE]\x20','startsWith','33310PtJInF','decode','body','44IZznSz','trim','data','pop','releaseLock','939336hTzuDh','split','738260WTQWeH','Response\x20body\x20is\x20null','2062718OHFWPh','1DNliqA','read','6060010zhDjIJ','debug','slice','1432JDJqcG','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','indexOf','1200315hzRKRT','21591ciVsvc'];a79_0xa912=function(){return _0x171052;};return a79_0xa912();}export async function*parseSSEStream(_0xb68c2e,_0x1fabee){const _0x3cdcc4=a79_0x27c6;if(!_0xb68c2e['body'])throw new Error(_0x3cdcc4(0x18b));const _0x3e5e0b=_0xb68c2e[_0x3cdcc4(0x182)]['getReader'](),_0x5c87e5=new TextDecoder();let _0x2e4e2d='',_0xe19a57={};try{while(!![]){const {done:_0x2c8a29,value:_0x5c1567}=await _0x3e5e0b[_0x3cdcc4(0x173)]();if(_0x2c8a29){if(_0xe19a57[_0x3cdcc4(0x185)]){_0x1fabee?.[_0x3cdcc4(0x175)](_0x3cdcc4(0x17e)+_0xe19a57['data']);const _0x145255=parseSSEData(_0xe19a57['data']);yield _0x145255;}break;}_0x2e4e2d+=_0x5c87e5[_0x3cdcc4(0x181)](_0x5c1567,{'stream':!![]});const _0x1e1338=_0x2e4e2d[_0x3cdcc4(0x189)]('\x0a');_0x2e4e2d=_0x1e1338[_0x3cdcc4(0x186)]()||'';for(const _0x4606b3 of _0x1e1338){if(_0x4606b3[_0x3cdcc4(0x184)]()===''){if(_0xe19a57['data']){_0x1fabee?.[_0x3cdcc4(0x175)]('[LLM\x20API\x20SSE]\x20'+_0xe19a57[_0x3cdcc4(0x185)]);const _0x22874c=parseSSEData(_0xe19a57['data']);yield _0x22874c,_0xe19a57={};}continue;}if(_0x4606b3[_0x3cdcc4(0x17f)](':'))continue;const _0x25b364=_0x4606b3[_0x3cdcc4(0x179)](':');if(_0x25b364===-0x1)continue;const _0x1ad6ff=_0x4606b3['slice'](0x0,_0x25b364);let _0x17853d=_0x4606b3[_0x3cdcc4(0x176)](_0x25b364+0x1);_0x17853d[_0x3cdcc4(0x17f)]('\x20')&&(_0x17853d=_0x17853d[_0x3cdcc4(0x176)](0x1));switch(_0x1ad6ff){case _0x3cdcc4(0x17d):_0xe19a57[_0x3cdcc4(0x17d)]=_0x17853d;break;case _0x3cdcc4(0x185):_0xe19a57[_0x3cdcc4(0x185)]=_0xe19a57[_0x3cdcc4(0x185)]?_0xe19a57[_0x3cdcc4(0x185)]+'\x0a'+_0x17853d:_0x17853d;break;case'id':_0xe19a57['id']=_0x17853d;break;}}}}finally{_0x3e5e0b[_0x3cdcc4(0x187)]();}}function parseSSEData(_0x4bfb87){const _0x5d9b44=a79_0x27c6;try{return JSON[_0x5d9b44(0x17c)](_0x4bfb87);}catch(_0x4e0641){throw new Error(_0x5d9b44(0x178)+_0x4bfb87,{'cause':_0x4e0641});}}
@@ -1 +1 @@
1
- (function(_0x5ddfb8,_0x30ced7){const _0x39a305=a80_0x58fe,_0x35c170=_0x5ddfb8();while(!![]){try{const _0x38a415=-parseInt(_0x39a305(0x88))/0x1*(parseInt(_0x39a305(0x91))/0x2)+-parseInt(_0x39a305(0x8a))/0x3*(-parseInt(_0x39a305(0x82))/0x4)+-parseInt(_0x39a305(0x7c))/0x5*(-parseInt(_0x39a305(0x7d))/0x6)+-parseInt(_0x39a305(0x8c))/0x7+parseInt(_0x39a305(0x8d))/0x8+-parseInt(_0x39a305(0x80))/0x9*(parseInt(_0x39a305(0x86))/0xa)+-parseInt(_0x39a305(0x90))/0xb*(-parseInt(_0x39a305(0x8b))/0xc);if(_0x38a415===_0x30ced7)break;else _0x35c170['push'](_0x35c170['shift']());}catch(_0x393b2b){_0x35c170['push'](_0x35c170['shift']());}}}(a80_0x13f2,0xa0d38));function a80_0x58fe(_0x3da654,_0x45e9ec){const _0x13f298=a80_0x13f2();return a80_0x58fe=function(_0x58fe66,_0x2604e7){_0x58fe66=_0x58fe66-0x76;let _0x2cd9ad=_0x13f298[_0x58fe66];return _0x2cd9ad;},a80_0x58fe(_0x3da654,_0x45e9ec);}function a80_0x13f2(){const _0x3ea8bd=['replace','repeat','99tQAnhg','147894NLVkbp','toLowerCase','random','USERNAME','env','Cannot\x20escape\x20empty\x20string\x20literal','padStart','703315kkAjUx','6YtTiKV','test','slice','64044qtnJIj','length','4yWRpxl','floor','substring','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','820cwWYyL','unknown','1dEpEiK','trim','774021LHxOME','1725564whbPVR','7890155yYXwwK','6004200CCtAWZ'];a80_0x13f2=function(){return _0x3ea8bd;};return a80_0x13f2();}import a80_0x2d6e5f from'string-width';export function stringWidth(_0x5a59cc){return a80_0x2d6e5f(_0x5a59cc);}export function padEnd(_0x281527,_0x24f6bb){const _0x24c123=a80_0x58fe,_0x59976c=stringWidth(_0x281527);if(_0x59976c>=_0x24f6bb)return _0x281527;return _0x281527+'\x20'[_0x24c123(0x8f)](_0x24f6bb-_0x59976c);}export function padStart(_0x1d5116,_0x349567){const _0x32401d=stringWidth(_0x1d5116);if(_0x32401d>=_0x349567)return _0x1d5116;return'\x20'['repeat'](_0x349567-_0x32401d)+_0x1d5116;}export function centerAlign(_0x4a028b,_0x4b1a78){const _0x56805b=a80_0x58fe,_0x21e85d=stringWidth(_0x4a028b);if(_0x21e85d>_0x4b1a78){if(_0x4b1a78<=0x1)return'…'[_0x56805b(0x84)](0x0,_0x4b1a78);let _0x4dd71a=_0x4a028b;while(stringWidth(_0x4dd71a+'…')>_0x4b1a78){_0x4dd71a=_0x4dd71a[_0x56805b(0x7f)](0x0,-0x1);}return _0x4dd71a+'…';}if(_0x21e85d===_0x4b1a78)return _0x4a028b;const _0x427c68=_0x4b1a78-_0x21e85d,_0x3bd3e8=Math[_0x56805b(0x83)](_0x427c68/0x2),_0x2aee4b=_0x427c68-_0x3bd3e8;return'\x20'[_0x56805b(0x8f)](_0x3bd3e8)+_0x4a028b+'\x20'[_0x56805b(0x8f)](_0x2aee4b);}export function escapeStringLiteral(_0x2ead6e){const _0x428ae6=a80_0x58fe;if(!_0x2ead6e||_0x2ead6e[_0x428ae6(0x89)]()[_0x428ae6(0x81)]===0x0)throw new Error(_0x428ae6(0x7a));const _0x86e926=_0x2ead6e[_0x428ae6(0x8e)](/'/g,'\x27\x27');return'\x27'+_0x86e926+'\x27';}export function globToLike(_0x4b98a2){const _0x5358ca=a80_0x58fe;let _0x494ad0=_0x4b98a2[_0x5358ca(0x8e)](/\\/g,'\x5c\x5c')[_0x5358ca(0x8e)](/%/g,'\x5c%')[_0x5358ca(0x8e)](/_/g,'\x5c_');return _0x494ad0=_0x494ad0[_0x5358ca(0x8e)](/\*/g,'%')[_0x5358ca(0x8e)](/\?/g,'_'),_0x494ad0;}export function buildLikePattern(_0x107c8a){const _0x3bf082=a80_0x58fe;if(!_0x107c8a||_0x107c8a[_0x3bf082(0x89)]()[_0x3bf082(0x81)]===0x0)throw new Error(_0x3bf082(0x85));const _0xa507c5=globToLike(_0x107c8a),_0x1b0b03=_0xa507c5[_0x3bf082(0x8e)](/'/g,'\x27\x27');return'\x27'+_0x1b0b03+'\x27';}export function matchGlobPattern(_0x83a60c,_0x1b14c7){const _0x4ac84b=a80_0x58fe,_0x999ffa=_0x1b14c7[_0x4ac84b(0x8e)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x4ac84b(0x8e)](/\*/g,'.*')[_0x4ac84b(0x8e)](/\?/g,'.'),_0x564bb9=new RegExp('^'+_0x999ffa+'$');return _0x564bb9[_0x4ac84b(0x7e)](_0x83a60c);}export function getSanitizedUsername(){const _0x268a2d=a80_0x58fe,_0x3e61db=process[_0x268a2d(0x79)]['USER']||process[_0x268a2d(0x79)][_0x268a2d(0x78)]||_0x268a2d(0x87);return _0x3e61db[_0x268a2d(0x8e)](/[^a-zA-Z0-9]/g,'')[_0x268a2d(0x76)]();}export function generateRandomHex(){const _0xed59bd=a80_0x58fe,_0x1bcf08=Math[_0xed59bd(0x83)](Math[_0xed59bd(0x77)]()*0xfffff);return _0x1bcf08['toString'](0x10)[_0xed59bd(0x7b)](0x5,'0');}
1
+ (function(_0x238f7a,_0x2ac0f0){const _0x173886=a80_0x375f,_0x596b0d=_0x238f7a();while(!![]){try{const _0x339311=-parseInt(_0x173886(0x1a9))/0x1*(parseInt(_0x173886(0x1af))/0x2)+parseInt(_0x173886(0x198))/0x3+-parseInt(_0x173886(0x1aa))/0x4+parseInt(_0x173886(0x1ab))/0x5*(parseInt(_0x173886(0x1a5))/0x6)+-parseInt(_0x173886(0x1a8))/0x7*(-parseInt(_0x173886(0x1a6))/0x8)+-parseInt(_0x173886(0x1a3))/0x9+parseInt(_0x173886(0x1b1))/0xa*(-parseInt(_0x173886(0x1a7))/0xb);if(_0x339311===_0x2ac0f0)break;else _0x596b0d['push'](_0x596b0d['shift']());}catch(_0x94c342){_0x596b0d['push'](_0x596b0d['shift']());}}}(a80_0x1592,0x73d92));import a80_0x292691 from'string-width';export function stringWidth(_0x580532){return a80_0x292691(_0x580532);}export function padEnd(_0x5e8e30,_0x2347b8){const _0x5d26ac=a80_0x375f,_0x12ed6a=stringWidth(_0x5e8e30);if(_0x12ed6a>=_0x2347b8)return _0x5e8e30;return _0x5e8e30+'\x20'[_0x5d26ac(0x1ae)](_0x2347b8-_0x12ed6a);}export function padStart(_0x3e709c,_0x36970c){const _0x24927a=a80_0x375f,_0x2e167f=stringWidth(_0x3e709c);if(_0x2e167f>=_0x36970c)return _0x3e709c;return'\x20'[_0x24927a(0x1ae)](_0x36970c-_0x2e167f)+_0x3e709c;}function a80_0x1592(){const _0x581556=['202DBTvxi','random','270VahjKW','2120598DbHxPs','toString','Cannot\x20escape\x20empty\x20string\x20literal','USERNAME','unknown','\x5c$&','USER','substring','test','trim','floor','6228675OrwGqF','env','1018050pCzNYk','2385112QfGaVo','66957dYZenI','7EuWuCz','458OJvCHe','547336QzjdkW','15kBunqB','replace','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','repeat'];a80_0x1592=function(){return _0x581556;};return a80_0x1592();}export function centerAlign(_0x5057ce,_0x2f0e92){const _0x22cb5a=a80_0x375f,_0x54e00c=stringWidth(_0x5057ce);if(_0x54e00c>_0x2f0e92){if(_0x2f0e92<=0x1)return'…'[_0x22cb5a(0x19f)](0x0,_0x2f0e92);let _0x4faf61=_0x5057ce;while(stringWidth(_0x4faf61+'…')>_0x2f0e92){_0x4faf61=_0x4faf61['slice'](0x0,-0x1);}return _0x4faf61+'…';}if(_0x54e00c===_0x2f0e92)return _0x5057ce;const _0x412ad2=_0x2f0e92-_0x54e00c,_0x8e7acc=Math[_0x22cb5a(0x1a2)](_0x412ad2/0x2),_0x2f38e3=_0x412ad2-_0x8e7acc;return'\x20'[_0x22cb5a(0x1ae)](_0x8e7acc)+_0x5057ce+'\x20'[_0x22cb5a(0x1ae)](_0x2f38e3);}export function escapeStringLiteral(_0x4f4022){const _0x4900e7=a80_0x375f;if(!_0x4f4022||_0x4f4022[_0x4900e7(0x1a1)]()['length']===0x0)throw new Error(_0x4900e7(0x19a));const _0x3f5f2d=_0x4f4022['replace'](/'/g,'\x27\x27');return'\x27'+_0x3f5f2d+'\x27';}export function globToLike(_0x4433c0){const _0x1a328b=a80_0x375f;let _0xfcafc3=_0x4433c0[_0x1a328b(0x1ac)](/\\/g,'\x5c\x5c')[_0x1a328b(0x1ac)](/%/g,'\x5c%')[_0x1a328b(0x1ac)](/_/g,'\x5c_');return _0xfcafc3=_0xfcafc3[_0x1a328b(0x1ac)](/\*/g,'%')[_0x1a328b(0x1ac)](/\?/g,'_'),_0xfcafc3;}export function buildLikePattern(_0x4e0a39){const _0xacf560=a80_0x375f;if(!_0x4e0a39||_0x4e0a39[_0xacf560(0x1a1)]()['length']===0x0)throw new Error(_0xacf560(0x1ad));const _0x568823=globToLike(_0x4e0a39),_0x22a533=_0x568823['replace'](/'/g,'\x27\x27');return'\x27'+_0x22a533+'\x27';}export function matchGlobPattern(_0x551252,_0x3d1ee6){const _0x56a456=a80_0x375f,_0x2e6457=_0x3d1ee6[_0x56a456(0x1ac)](/[.+^${}()|[\]\\]/g,_0x56a456(0x19d))['replace'](/\*/g,'.*')['replace'](/\?/g,'.'),_0x35dbd8=new RegExp('^'+_0x2e6457+'$');return _0x35dbd8[_0x56a456(0x1a0)](_0x551252);}function a80_0x375f(_0x1d65a1,_0x131e50){const _0x15923d=a80_0x1592();return a80_0x375f=function(_0x375f87,_0x581bef){_0x375f87=_0x375f87-0x198;let _0x12f12f=_0x15923d[_0x375f87];return _0x12f12f;},a80_0x375f(_0x1d65a1,_0x131e50);}export function getSanitizedUsername(){const _0x1ea773=a80_0x375f,_0x4a2b28=process[_0x1ea773(0x1a4)][_0x1ea773(0x19e)]||process[_0x1ea773(0x1a4)][_0x1ea773(0x19b)]||_0x1ea773(0x19c);return _0x4a2b28['replace'](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0xf9a6f6=a80_0x375f,_0xa451a4=Math[_0xf9a6f6(0x1a2)](Math[_0xf9a6f6(0x1b0)]()*0xfffff);return _0xa451a4[_0xf9a6f6(0x199)](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x1481f3,_0x4673a6){const _0x4d828e=a81_0x2e20,_0xb49ed2=_0x1481f3();while(!![]){try{const _0x2e544e=parseInt(_0x4d828e(0x74))/0x1*(parseInt(_0x4d828e(0x6c))/0x2)+parseInt(_0x4d828e(0x7e))/0x3+parseInt(_0x4d828e(0x70))/0x4+parseInt(_0x4d828e(0x7d))/0x5+parseInt(_0x4d828e(0x6a))/0x6*(-parseInt(_0x4d828e(0x79))/0x7)+-parseInt(_0x4d828e(0x7f))/0x8*(-parseInt(_0x4d828e(0x6e))/0x9)+-parseInt(_0x4d828e(0x6d))/0xa;if(_0x2e544e===_0x4673a6)break;else _0xb49ed2['push'](_0xb49ed2['shift']());}catch(_0x233cef){_0xb49ed2['push'](_0xb49ed2['shift']());}}}(a81_0x215b,0x54a87));function a81_0x215b(){const _0x1f73f8=['includes','8djYihh','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','table','length','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','35TAdRgo','catalog','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','join','857635ecVitr','255918zczcrZ','1031480RjzBzu','split','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','433338tCBwPi','Pattern\x20cannot\x20be\x20just\x20a\x20dot','50828zvpVGV','10049270rZgXrc','45vWISbx','database','2431924YZykOT','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)'];a81_0x215b=function(){return _0x1f73f8;};return a81_0x215b();}function a81_0x2e20(_0x4e6b95,_0x3d97ec){const _0x215bd7=a81_0x215b();return a81_0x2e20=function(_0x2e20bd,_0x3a5c20){_0x2e20bd=_0x2e20bd-0x6a;let _0x5051fb=_0x215bd7[_0x2e20bd];return _0x5051fb;},a81_0x2e20(_0x4e6b95,_0x3d97ec);}function hasWildcard(_0x57652c){const _0xf02f6c=a81_0x2e20;return _0x57652c[_0xf02f6c(0x73)]('*')||_0x57652c[_0xf02f6c(0x73)]('?');}export function parseTableReference(_0x2ff06a){const _0x4b4ee1=a81_0x2e20;if(!_0x2ff06a||_0x2ff06a['trim']()[_0x4b4ee1(0x77)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x2bdd47=_0x2ff06a['trim'](),_0x3f6878={'original':_0x2bdd47},_0x2bbc78=_0x2bdd47[_0x4b4ee1(0x80)]('.');if(_0x2bbc78[_0x4b4ee1(0x77)]===0x1){const _0x515b33=_0x2bbc78[0x0];if(!_0x515b33)throw new Error(_0x4b4ee1(0x6b));_0x3f6878[_0x4b4ee1(0x76)]=_0x515b33;}else{if(_0x2bbc78[_0x4b4ee1(0x77)]===0x2){const [_0x4f1b16,_0x116035]=_0x2bbc78;if(!_0x4f1b16)throw new Error(_0x4b4ee1(0x71));if(!_0x116035)throw new Error(_0x4b4ee1(0x72));_0x3f6878['database']=_0x4f1b16,_0x3f6878[_0x4b4ee1(0x76)]=_0x116035;}else{if(_0x2bbc78['length']===0x3){const [_0x465c7b,_0x4c610a,_0x44d123]=_0x2bbc78;if(!_0x465c7b||!_0x4c610a||!_0x44d123)throw new Error(_0x4b4ee1(0x75));_0x3f6878[_0x4b4ee1(0x7a)]=_0x465c7b,_0x3f6878[_0x4b4ee1(0x6f)]=_0x4c610a,_0x3f6878[_0x4b4ee1(0x76)]=_0x44d123;}else throw new Error(_0x4b4ee1(0x7b));}}return _0x3f6878;}export function formatTableReference(_0x45381c){const _0x4811f4=a81_0x2e20,_0x1115ae=[];return _0x45381c[_0x4811f4(0x7a)]&&_0x1115ae['push'](_0x45381c[_0x4811f4(0x7a)]),_0x45381c['database']&&_0x1115ae[_0x4811f4(0x81)](_0x45381c[_0x4811f4(0x6f)]),_0x45381c[_0x4811f4(0x76)]&&_0x1115ae[_0x4811f4(0x81)](_0x45381c[_0x4811f4(0x76)]),_0x1115ae[_0x4811f4(0x7c)]('.');}export function validateTableListReference(_0x3e5b7a){return undefined;}export function validateTableDescribeReference(_0x230aff){const _0x20fbbe=a81_0x2e20;if(!_0x230aff[_0x20fbbe(0x76)])return _0x20fbbe(0x78);if(_0x230aff['database']&&hasWildcard(_0x230aff['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x230aff[_0x20fbbe(0x76)]))return _0x20fbbe(0x82);return undefined;}
1
+ (function(_0x7e4d3c,_0x170ba3){const _0x48effd=a81_0x11e8,_0xdf6357=_0x7e4d3c();while(!![]){try{const _0x7b4000=-parseInt(_0x48effd(0xac))/0x1*(-parseInt(_0x48effd(0xa5))/0x2)+-parseInt(_0x48effd(0xb2))/0x3+parseInt(_0x48effd(0xb4))/0x4*(parseInt(_0x48effd(0xbb))/0x5)+parseInt(_0x48effd(0xa8))/0x6*(-parseInt(_0x48effd(0xad))/0x7)+-parseInt(_0x48effd(0xab))/0x8*(parseInt(_0x48effd(0xb5))/0x9)+parseInt(_0x48effd(0xa9))/0xa*(parseInt(_0x48effd(0xb0))/0xb)+-parseInt(_0x48effd(0xa3))/0xc*(-parseInt(_0x48effd(0xa4))/0xd);if(_0x7b4000===_0x170ba3)break;else _0xdf6357['push'](_0xdf6357['shift']());}catch(_0xa28a90){_0xdf6357['push'](_0xdf6357['shift']());}}}(a81_0x3518,0x49982));function hasWildcard(_0xe0b12e){const _0x1bac8b=a81_0x11e8;return _0xe0b12e[_0x1bac8b(0xaa)]('*')||_0xe0b12e['includes']('?');}function a81_0x3518(){const _0x4e5b75=['649581Gjsmtg','join','4rSkeAC','47997SwClnB','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','database','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','length','push','661205lHdqCD','6832824VzGbBR','13UcXzpj','26iePcBc','Pattern\x20cannot\x20be\x20just\x20a\x20dot','catalog','6nBkESl','212630HUCbOp','includes','632fbFnSc','7121NUWMst','621831wzbigE','trim','table','121AbzCDw','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only'];a81_0x3518=function(){return _0x4e5b75;};return a81_0x3518();}export function parseTableReference(_0x49dd1e){const _0x3d346c=a81_0x11e8;if(!_0x49dd1e||_0x49dd1e[_0x3d346c(0xae)]()['length']===0x0)throw new Error(_0x3d346c(0xb1));const _0x35b79b=_0x49dd1e['trim'](),_0x58290f={'original':_0x35b79b},_0x15a8cc=_0x35b79b['split']('.');if(_0x15a8cc[_0x3d346c(0xb9)]===0x1){const _0x47d536=_0x15a8cc[0x0];if(!_0x47d536)throw new Error(_0x3d346c(0xa6));_0x58290f[_0x3d346c(0xaf)]=_0x47d536;}else{if(_0x15a8cc[_0x3d346c(0xb9)]===0x2){const [_0x1e85b2,_0x4e4514]=_0x15a8cc;if(!_0x1e85b2)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x4e4514)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x58290f['database']=_0x1e85b2,_0x58290f[_0x3d346c(0xaf)]=_0x4e4514;}else{if(_0x15a8cc[_0x3d346c(0xb9)]===0x3){const [_0x58b440,_0x2a8fa3,_0x348618]=_0x15a8cc;if(!_0x58b440||!_0x2a8fa3||!_0x348618)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x58290f['catalog']=_0x58b440,_0x58290f[_0x3d346c(0xb7)]=_0x2a8fa3,_0x58290f['table']=_0x348618;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x58290f;}function a81_0x11e8(_0x1958f1,_0x434eba){const _0x3518a6=a81_0x3518();return a81_0x11e8=function(_0x11e840,_0x3356bc){_0x11e840=_0x11e840-0xa3;let _0x5f0734=_0x3518a6[_0x11e840];return _0x5f0734;},a81_0x11e8(_0x1958f1,_0x434eba);}export function formatTableReference(_0x7e46aa){const _0x2ebbd6=a81_0x11e8,_0x29e174=[];return _0x7e46aa[_0x2ebbd6(0xa7)]&&_0x29e174[_0x2ebbd6(0xba)](_0x7e46aa[_0x2ebbd6(0xa7)]),_0x7e46aa[_0x2ebbd6(0xb7)]&&_0x29e174['push'](_0x7e46aa[_0x2ebbd6(0xb7)]),_0x7e46aa[_0x2ebbd6(0xaf)]&&_0x29e174[_0x2ebbd6(0xba)](_0x7e46aa[_0x2ebbd6(0xaf)]),_0x29e174[_0x2ebbd6(0xb3)]('.');}export function validateTableListReference(_0x1780fd){return undefined;}export function validateTableDescribeReference(_0x260cf4){const _0x11c066=a81_0x11e8;if(!_0x260cf4[_0x11c066(0xaf)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x260cf4[_0x11c066(0xb7)]&&hasWildcard(_0x260cf4[_0x11c066(0xb7)]))return _0x11c066(0xb6);if(hasWildcard(_0x260cf4[_0x11c066(0xaf)]))return _0x11c066(0xb8);return undefined;}
@@ -1 +1 @@
1
- const a82_0x28d245=a82_0x2580;function a82_0x5292(){const _0x14a3cd=['742002leLyCb','log','cyan','cause','warn','24096nixRaJ','logDir','48697946dReMpB','11666216pxFzPp','tdx-','ERROR','getFullYear','map','logs','toString','yellow','includes','getTimezoneOffset','2YuSxGr','getDate','error','stack','tdx','getSeconds','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','mtime','617654IDMRDK','stringify','info','getHours','trace','toISOString','string','message','DEBUG','5823875XjnaCd','rotateOldLogs','red','.gz','TRACE','28EaLesx','INFO','padStart','fileOnly','getMilliseconds','gray','WARN','tdx.log','debug','split','write','logStream','init','getLogPath','Warning:\x20Error\x20writing\x20to\x20tdx.log:','429BrDoim','9828750NLuKID','abs','9FTRfNB','logLevel','Warning:\x20Failed\x20to\x20compress\x20','floor','name'];a82_0x5292=function(){return _0x14a3cd;};return a82_0x5292();}(function(_0x277758,_0x2c26af){const _0x194f17=a82_0x2580,_0x55851c=_0x277758();while(!![]){try{const _0x3acfb2=parseInt(_0x194f17(0xfd))/0x1*(-parseInt(_0x194f17(0x105))/0x2)+parseInt(_0x194f17(0xe3))/0x3*(-parseInt(_0x194f17(0xf0))/0x4)+-parseInt(_0x194f17(0xcf))/0x5+-parseInt(_0x194f17(0xeb))/0x6*(parseInt(_0x194f17(0xd4))/0x7)+parseInt(_0x194f17(0xf3))/0x8*(-parseInt(_0x194f17(0xe6))/0x9)+parseInt(_0x194f17(0xe4))/0xa+parseInt(_0x194f17(0xf2))/0xb;if(_0x3acfb2===_0x2c26af)break;else _0x55851c['push'](_0x55851c['shift']());}catch(_0xf26c3){_0x55851c['push'](_0x55851c['shift']());}}}(a82_0x5292,0xc6863));function a82_0x2580(_0x125088,_0x48b14e){const _0x529260=a82_0x5292();return a82_0x2580=function(_0x258029,_0x3061f4){_0x258029=_0x258029-0xc9;let _0x31e2fe=_0x529260[_0x258029];return _0x31e2fe;},a82_0x2580(_0x125088,_0x48b14e);}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a82_0x27a5bc from'chalk';function safeStringify(_0x301985){const _0x5342db=a82_0x2580;if(typeof _0x301985===_0x5342db(0xcc))return _0x301985;if(_0x301985 instanceof Error)return _0x301985['stack']||_0x301985[_0x5342db(0xea)]+':\x20'+_0x301985[_0x5342db(0xcd)];try{return JSON[_0x5342db(0x106)](_0x301985,(_0x1b03b9,_0x2aac40)=>{const _0x423179=_0x5342db;if(_0x2aac40 instanceof Error)return{'name':_0x2aac40[_0x423179(0xea)],'message':_0x2aac40['message'],'stack':_0x2aac40[_0x423179(0x100)],'cause':_0x2aac40[_0x423179(0xee)]};return _0x2aac40;});}catch{return String(_0x301985);}}function getTimezoneOffset(){const _0x4b3034=a82_0x2580,_0x12b1ec=-new Date()[_0x4b3034(0xfc)](),_0x206a7a=Math[_0x4b3034(0xe9)](Math[_0x4b3034(0xe5)](_0x12b1ec)/0x3c),_0x46583f=Math[_0x4b3034(0xe5)](_0x12b1ec)%0x3c,_0x4d9f0b=_0x12b1ec>=0x0?'+':'-';return''+_0x4d9f0b+_0x206a7a[_0x4b3034(0xf9)]()[_0x4b3034(0xd6)](0x2,'0')+_0x46583f[_0x4b3034(0xf9)]()[_0x4b3034(0xd6)](0x2,'0');}function formatTimestamp(){const _0xd9d87b=a82_0x2580,_0xe2ab0=new Date(),_0x391f8c=_0xe2ab0[_0xd9d87b(0xf6)](),_0x2e04fe=(_0xe2ab0['getMonth']()+0x1)[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x2,'0'),_0x4c673f=_0xe2ab0[_0xd9d87b(0xfe)]()[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x2,'0'),_0x39740b=_0xe2ab0[_0xd9d87b(0xc9)]()['toString']()[_0xd9d87b(0xd6)](0x2,'0'),_0x8761a8=_0xe2ab0['getMinutes']()[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x2,'0'),_0xc59430=_0xe2ab0[_0xd9d87b(0x102)]()[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x2,'0'),_0x2e3264=_0xe2ab0[_0xd9d87b(0xd8)]()[_0xd9d87b(0xf9)]()[_0xd9d87b(0xd6)](0x3,'0'),_0x22dc8e=getTimezoneOffset();return _0x391f8c+'-'+_0x2e04fe+'-'+_0x4c673f+'\x20'+_0x39740b+':'+_0x8761a8+':'+_0xc59430+'.'+_0x2e3264+_0x22dc8e;}function formatColoredLogEntry(_0x3e5851,_0x2091fd){const _0x9115e9=a82_0x2580,_0x4a4cd9=formatTimestamp(),_0x42031d=_0x2091fd[_0x9115e9(0xf7)](safeStringify)['join']('\x20'),_0xa61b5a=a82_0x27a5bc[_0x9115e9(0xd9)](_0x4a4cd9);let _0x1ed7a9;switch(_0x3e5851){case _0x9115e9(0x107):_0x1ed7a9=a82_0x27a5bc[_0x9115e9(0xed)]('['+_0x3e5851+']\x20');break;case _0x9115e9(0xef):_0x1ed7a9=a82_0x27a5bc[_0x9115e9(0xfa)]('['+_0x3e5851+']\x20');break;case'error':_0x1ed7a9=a82_0x27a5bc[_0x9115e9(0xd1)]('['+_0x3e5851+']');break;case _0x9115e9(0xdc):_0x1ed7a9=a82_0x27a5bc['gray']('['+_0x3e5851+']');break;default:_0x1ed7a9='['+_0x3e5851+']';}return _0xa61b5a+'\x20'+_0x1ed7a9+'\x20'+_0x42031d;}export var LogLevel;(function(_0x5aae88){const _0x12f26c=a82_0x2580;_0x5aae88[_0x5aae88[_0x12f26c(0xd3)]=-0x2]=_0x12f26c(0xd3),_0x5aae88[_0x5aae88[_0x12f26c(0xce)]=-0x1]='DEBUG',_0x5aae88[_0x5aae88[_0x12f26c(0xd5)]=0x0]=_0x12f26c(0xd5),_0x5aae88[_0x5aae88[_0x12f26c(0xda)]=0x1]=_0x12f26c(0xda),_0x5aae88[_0x5aae88[_0x12f26c(0xf5)]=0x2]=_0x12f26c(0xf5);}(LogLevel||(LogLevel={})));export class TDXLogger{[a82_0x28d245(0xdf)];[a82_0x28d245(0xf1)];[a82_0x28d245(0xe7)];[a82_0x28d245(0xd7)];constructor(_0x13c31b=LogLevel[a82_0x28d245(0xd5)],_0x57f834=![]){const _0x4bd338=a82_0x28d245;this['logDir']=join(homedir(),'.cache',_0x4bd338(0x101),_0x4bd338(0xf8)),this[_0x4bd338(0xe7)]=_0x13c31b,this[_0x4bd338(0xd7)]=_0x57f834;}async[a82_0x28d245(0xe0)](){const _0x351883=a82_0x28d245;try{await mkdir(this[_0x351883(0xf1)],{'recursive':!![]}),await this['rotateOldLogs']();const _0x12ba7e=join(this[_0x351883(0xf1)],_0x351883(0xdb));this[_0x351883(0xdf)]=createWriteStream(_0x12ba7e,{'flags':'a'}),this[_0x351883(0xdf)]['on'](_0x351883(0xff),_0x55fd8a=>{const _0x14e67c=_0x351883;console[_0x14e67c(0xff)](_0x14e67c(0xe2),_0x55fd8a[_0x14e67c(0xcd)]);});}catch(_0x2646d0){console[_0x351883(0xff)](_0x351883(0x103),_0x2646d0);}}async[a82_0x28d245(0xd0)](){const _0x1a6aa6=a82_0x28d245;try{const _0x51dea0=await readdir(this[_0x1a6aa6(0xf1)]),_0x21b7f9=new Date()[_0x1a6aa6(0xcb)]()[_0x1a6aa6(0xdd)]('T')[0x0];if(_0x51dea0[_0x1a6aa6(0xfb)](_0x1a6aa6(0xdb))){const _0x472f92=join(this['logDir'],'tdx.log'),_0x595f6e=await stat(_0x472f92),_0x3d134f=new Date(_0x595f6e[_0x1a6aa6(0x104)])[_0x1a6aa6(0xcb)]()['split']('T')[0x0];if(_0x3d134f<_0x21b7f9){const _0x4248c2=join(this[_0x1a6aa6(0xf1)],_0x1a6aa6(0xf4)+_0x3d134f+'.log');await rename(_0x472f92,_0x4248c2);}}const _0x529fb3=await readdir(this['logDir']),_0x4a0e7b=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x1d335b=_0x529fb3['filter'](_0x428808=>_0x4a0e7b['test'](_0x428808));for(const _0x169afe of _0x1d335b){const _0x1ac6cc=join(this[_0x1a6aa6(0xf1)],_0x169afe),_0x1c489c=join(this['logDir'],_0x169afe+_0x1a6aa6(0xd2));try{await pipeline(createReadStream(_0x1ac6cc),createGzip(),createWriteStream(_0x1c489c)),await unlink(_0x1ac6cc);}catch(_0x578e43){console[_0x1a6aa6(0xff)](_0x1a6aa6(0xe8)+_0x169afe+':',_0x578e43);}}}catch{}}['debug'](..._0x2a6691){const _0x30215c=a82_0x28d245;if(this['logLevel']>LogLevel['DEBUG'])return;const _0x2fe450=formatColoredLogEntry(_0x30215c(0xdc),_0x2a6691);this[_0x30215c(0xdf)]?.[_0x30215c(0xde)](_0x2fe450+'\x0a');}[a82_0x28d245(0xca)](..._0x17c0e1){const _0x8084c9=a82_0x28d245;if(this[_0x8084c9(0xe7)]>LogLevel[_0x8084c9(0xd3)])return;const _0x3e4aec=formatColoredLogEntry(_0x8084c9(0xca),_0x17c0e1);this[_0x8084c9(0xdf)]?.[_0x8084c9(0xde)](_0x3e4aec+'\x0a');}[a82_0x28d245(0x107)](..._0x36fc8a){const _0x32ac07=a82_0x28d245;if(this[_0x32ac07(0xe7)]>LogLevel['INFO'])return;const _0x2dd6e4=formatColoredLogEntry(_0x32ac07(0x107),_0x36fc8a);!this[_0x32ac07(0xd7)]&&console[_0x32ac07(0xec)](_0x2dd6e4),this[_0x32ac07(0xdf)]?.['write'](_0x2dd6e4+'\x0a');}[a82_0x28d245(0xef)](..._0x5e1e9d){const _0x586f8f=a82_0x28d245;if(this['logLevel']>LogLevel[_0x586f8f(0xda)])return;const _0xe2cf80=formatColoredLogEntry(_0x586f8f(0xef),_0x5e1e9d);!this['fileOnly']&&console['error'](_0xe2cf80),this[_0x586f8f(0xdf)]?.[_0x586f8f(0xde)](_0xe2cf80+'\x0a');}[a82_0x28d245(0xff)](..._0x103ea6){const _0x41d3bc=a82_0x28d245,_0x59c1d1=formatColoredLogEntry(_0x41d3bc(0xff),_0x103ea6);!this['fileOnly']&&console[_0x41d3bc(0xff)](_0x59c1d1),this[_0x41d3bc(0xdf)]?.['write'](_0x59c1d1+'\x0a');}async['close'](){const _0x3cdc7a=a82_0x28d245;return this[_0x3cdc7a(0x107)]('Proxy\x20session\x20ended'),new Promise(_0x599640=>{const _0x4699bb=_0x3cdc7a;this[_0x4699bb(0xdf)]?this[_0x4699bb(0xdf)]['end'](()=>{_0x599640();}):_0x599640();});}[a82_0x28d245(0xe1)](){const _0x1483a7=a82_0x28d245;return join(this[_0x1483a7(0xf1)],_0x1483a7(0xdb));}}
1
+ const a82_0x3c0694=a82_0x2ad7;(function(_0x4fe12c,_0x5a9730){const _0x180a23=a82_0x2ad7,_0x174b8d=_0x4fe12c();while(!![]){try{const _0x4b15e8=-parseInt(_0x180a23(0x171))/0x1*(parseInt(_0x180a23(0x165))/0x2)+-parseInt(_0x180a23(0x146))/0x3*(parseInt(_0x180a23(0x136))/0x4)+parseInt(_0x180a23(0x138))/0x5*(parseInt(_0x180a23(0x145))/0x6)+-parseInt(_0x180a23(0x162))/0x7+-parseInt(_0x180a23(0x164))/0x8+-parseInt(_0x180a23(0x153))/0x9+-parseInt(_0x180a23(0x150))/0xa*(-parseInt(_0x180a23(0x151))/0xb);if(_0x4b15e8===_0x5a9730)break;else _0x174b8d['push'](_0x174b8d['shift']());}catch(_0x31e664){_0x174b8d['push'](_0x174b8d['shift']());}}}(a82_0x5f08,0x26abb));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a82_0x2ad7(_0x12111b,_0x1d9b9c){const _0x5f0853=a82_0x5f08();return a82_0x2ad7=function(_0x2ad7ac,_0x55808e){_0x2ad7ac=_0x2ad7ac-0x135;let _0x323dc8=_0x5f0853[_0x2ad7ac];return _0x323dc8;},a82_0x2ad7(_0x12111b,_0x1d9b9c);}import a82_0x43b324 from'chalk';function safeStringify(_0x5e43ec){const _0x1cf916=a82_0x2ad7;if(typeof _0x5e43ec===_0x1cf916(0x142))return _0x5e43ec;if(_0x5e43ec instanceof Error)return _0x5e43ec[_0x1cf916(0x15d)]||_0x5e43ec['name']+':\x20'+_0x5e43ec['message'];try{return JSON[_0x1cf916(0x143)](_0x5e43ec,(_0x5797c6,_0x4afb5f)=>{const _0x6f44c3=_0x1cf916;if(_0x4afb5f instanceof Error)return{'name':_0x4afb5f[_0x6f44c3(0x160)],'message':_0x4afb5f[_0x6f44c3(0x14d)],'stack':_0x4afb5f[_0x6f44c3(0x15d)],'cause':_0x4afb5f[_0x6f44c3(0x13f)]};return _0x4afb5f;});}catch{return String(_0x5e43ec);}}function getTimezoneOffset(){const _0x2750c3=a82_0x2ad7,_0x38ac6d=-new Date()[_0x2750c3(0x13e)](),_0x46c0bf=Math[_0x2750c3(0x15e)](Math[_0x2750c3(0x135)](_0x38ac6d)/0x3c),_0x10876b=Math[_0x2750c3(0x135)](_0x38ac6d)%0x3c,_0x215227=_0x38ac6d>=0x0?'+':'-';return''+_0x215227+_0x46c0bf['toString']()[_0x2750c3(0x14f)](0x2,'0')+_0x10876b['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0x417dd5=a82_0x2ad7,_0x571d26=new Date(),_0x3a81f3=_0x571d26['getFullYear'](),_0x2f479a=(_0x571d26[_0x417dd5(0x149)]()+0x1)[_0x417dd5(0x14c)]()[_0x417dd5(0x14f)](0x2,'0'),_0x488501=_0x571d26[_0x417dd5(0x152)]()[_0x417dd5(0x14c)]()[_0x417dd5(0x14f)](0x2,'0'),_0xc015cd=_0x571d26[_0x417dd5(0x14a)]()[_0x417dd5(0x14c)]()[_0x417dd5(0x14f)](0x2,'0'),_0x1d903c=_0x571d26[_0x417dd5(0x13b)]()[_0x417dd5(0x14c)]()[_0x417dd5(0x14f)](0x2,'0'),_0x133702=_0x571d26['getSeconds']()[_0x417dd5(0x14c)]()[_0x417dd5(0x14f)](0x2,'0'),_0x17a787=_0x571d26[_0x417dd5(0x158)]()[_0x417dd5(0x14c)]()[_0x417dd5(0x14f)](0x3,'0'),_0x152202=getTimezoneOffset();return _0x3a81f3+'-'+_0x2f479a+'-'+_0x488501+'\x20'+_0xc015cd+':'+_0x1d903c+':'+_0x133702+'.'+_0x17a787+_0x152202;}function formatColoredLogEntry(_0x350084,_0x3bd797){const _0x5b67db=a82_0x2ad7,_0xc82add=formatTimestamp(),_0x1d6ff5=_0x3bd797['map'](safeStringify)[_0x5b67db(0x159)]('\x20'),_0x50f828=a82_0x43b324[_0x5b67db(0x15a)](_0xc82add);let _0x329b36;switch(_0x350084){case _0x5b67db(0x154):_0x329b36=a82_0x43b324[_0x5b67db(0x167)]('['+_0x350084+']\x20');break;case _0x5b67db(0x16d):_0x329b36=a82_0x43b324[_0x5b67db(0x16c)]('['+_0x350084+']\x20');break;case'error':_0x329b36=a82_0x43b324['red']('['+_0x350084+']');break;case _0x5b67db(0x157):_0x329b36=a82_0x43b324[_0x5b67db(0x15a)]('['+_0x350084+']');break;default:_0x329b36='['+_0x350084+']';}return _0x50f828+'\x20'+_0x329b36+'\x20'+_0x1d6ff5;}function a82_0x5f08(){const _0x492800=['30009KrLyaO','log','write','getMonth','getHours','DEBUG','toString','message','INFO','padStart','21980YVyfoB','2596MpdUBa','getDate','806265cSBshb','info','TRACE','Warning:\x20Failed\x20to\x20compress\x20','debug','getMilliseconds','join','gray','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','WARN','stack','floor','Warning:\x20Error\x20writing\x20to\x20tdx.log:','name','trace','1072792cRIwAs','fileOnly','1693296jQxsKX','4uwfYMf','split','cyan','tdx-','rotateOldLogs','ERROR','end','yellow','warn','tdx.log','.gz','logDir','25753HAQZaK','includes','abs','4roBScR','error','778395OshchU','Proxy\x20session\x20ended','logs','getMinutes','init','toISOString','getTimezoneOffset','cause','logLevel','mtime','string','stringify','logStream','6mzDMXz'];a82_0x5f08=function(){return _0x492800;};return a82_0x5f08();}export var LogLevel;(function(_0x14f841){const _0x9902f2=a82_0x2ad7;_0x14f841[_0x14f841[_0x9902f2(0x155)]=-0x2]=_0x9902f2(0x155),_0x14f841[_0x14f841[_0x9902f2(0x14b)]=-0x1]=_0x9902f2(0x14b),_0x14f841[_0x14f841[_0x9902f2(0x14e)]=0x0]='INFO',_0x14f841[_0x14f841['WARN']=0x1]='WARN',_0x14f841[_0x14f841[_0x9902f2(0x16a)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a82_0x3c0694(0x144)];[a82_0x3c0694(0x170)];[a82_0x3c0694(0x140)];[a82_0x3c0694(0x163)];constructor(_0x53a2ff=LogLevel[a82_0x3c0694(0x14e)],_0x258e0d=![]){const _0x59a407=a82_0x3c0694;this[_0x59a407(0x170)]=join(homedir(),'.cache','tdx',_0x59a407(0x13a)),this[_0x59a407(0x140)]=_0x53a2ff,this[_0x59a407(0x163)]=_0x258e0d;}async[a82_0x3c0694(0x13c)](){const _0x247081=a82_0x3c0694;try{await mkdir(this[_0x247081(0x170)],{'recursive':!![]}),await this[_0x247081(0x169)]();const _0x49afa4=join(this[_0x247081(0x170)],_0x247081(0x16e));this[_0x247081(0x144)]=createWriteStream(_0x49afa4,{'flags':'a'}),this[_0x247081(0x144)]['on'](_0x247081(0x137),_0x1ffe75=>{const _0x930e0a=_0x247081;console[_0x930e0a(0x137)](_0x930e0a(0x15f),_0x1ffe75[_0x930e0a(0x14d)]);});}catch(_0x4d1d79){console[_0x247081(0x137)](_0x247081(0x15b),_0x4d1d79);}}async[a82_0x3c0694(0x169)](){const _0x4ba610=a82_0x3c0694;try{const _0x35576e=await readdir(this[_0x4ba610(0x170)]),_0x3e4862=new Date()[_0x4ba610(0x13d)]()[_0x4ba610(0x166)]('T')[0x0];if(_0x35576e[_0x4ba610(0x172)]('tdx.log')){const _0x3b9bc2=join(this['logDir'],_0x4ba610(0x16e)),_0x194071=await stat(_0x3b9bc2),_0x45d69c=new Date(_0x194071[_0x4ba610(0x141)])[_0x4ba610(0x13d)]()[_0x4ba610(0x166)]('T')[0x0];if(_0x45d69c<_0x3e4862){const _0x1be9ff=join(this[_0x4ba610(0x170)],_0x4ba610(0x168)+_0x45d69c+'.log');await rename(_0x3b9bc2,_0x1be9ff);}}const _0x4b2ca5=await readdir(this[_0x4ba610(0x170)]),_0x44543f=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x3453e5=_0x4b2ca5['filter'](_0x5758cd=>_0x44543f['test'](_0x5758cd));for(const _0x3f404e of _0x3453e5){const _0xa84c0c=join(this[_0x4ba610(0x170)],_0x3f404e),_0x4475bd=join(this['logDir'],_0x3f404e+_0x4ba610(0x16f));try{await pipeline(createReadStream(_0xa84c0c),createGzip(),createWriteStream(_0x4475bd)),await unlink(_0xa84c0c);}catch(_0x3e0613){console[_0x4ba610(0x137)](_0x4ba610(0x156)+_0x3f404e+':',_0x3e0613);}}}catch{}}[a82_0x3c0694(0x157)](..._0x555bca){const _0x4e9b15=a82_0x3c0694;if(this[_0x4e9b15(0x140)]>LogLevel[_0x4e9b15(0x14b)])return;const _0x8b477=formatColoredLogEntry(_0x4e9b15(0x157),_0x555bca);this[_0x4e9b15(0x144)]?.[_0x4e9b15(0x148)](_0x8b477+'\x0a');}[a82_0x3c0694(0x161)](..._0x1b02ba){const _0xd87353=a82_0x3c0694;if(this[_0xd87353(0x140)]>LogLevel[_0xd87353(0x155)])return;const _0x3bcdb6=formatColoredLogEntry('trace',_0x1b02ba);this[_0xd87353(0x144)]?.[_0xd87353(0x148)](_0x3bcdb6+'\x0a');}[a82_0x3c0694(0x154)](..._0x460902){const _0x2e1d4e=a82_0x3c0694;if(this['logLevel']>LogLevel[_0x2e1d4e(0x14e)])return;const _0x3c0afe=formatColoredLogEntry(_0x2e1d4e(0x154),_0x460902);!this['fileOnly']&&console[_0x2e1d4e(0x147)](_0x3c0afe),this['logStream']?.[_0x2e1d4e(0x148)](_0x3c0afe+'\x0a');}[a82_0x3c0694(0x16d)](..._0x4ed9af){const _0x56ca06=a82_0x3c0694;if(this[_0x56ca06(0x140)]>LogLevel[_0x56ca06(0x15c)])return;const _0x5496cc=formatColoredLogEntry(_0x56ca06(0x16d),_0x4ed9af);!this[_0x56ca06(0x163)]&&console[_0x56ca06(0x137)](_0x5496cc),this[_0x56ca06(0x144)]?.['write'](_0x5496cc+'\x0a');}[a82_0x3c0694(0x137)](..._0x225029){const _0x3fa27d=a82_0x3c0694,_0x52e249=formatColoredLogEntry(_0x3fa27d(0x137),_0x225029);!this['fileOnly']&&console[_0x3fa27d(0x137)](_0x52e249),this[_0x3fa27d(0x144)]?.[_0x3fa27d(0x148)](_0x52e249+'\x0a');}async['close'](){const _0x5ac509=a82_0x3c0694;return this['info'](_0x5ac509(0x139)),new Promise(_0x1e3309=>{const _0x45fd95=_0x5ac509;this['logStream']?this[_0x45fd95(0x144)][_0x45fd95(0x16b)](()=>{_0x1e3309();}):_0x1e3309();});}['getLogPath'](){const _0x3acb1f=a82_0x3c0694;return join(this[_0x3acb1f(0x170)],'tdx.log');}}
@@ -1 +1 @@
1
- (function(_0x167f56,_0x23f87e){const _0x51f766=a83_0x4b9f,_0x17d214=_0x167f56();while(!![]){try{const _0xd5097b=-parseInt(_0x51f766(0xd6))/0x1*(parseInt(_0x51f766(0xda))/0x2)+parseInt(_0x51f766(0xe0))/0x3+parseInt(_0x51f766(0xca))/0x4*(parseInt(_0x51f766(0xcb))/0x5)+parseInt(_0x51f766(0xdc))/0x6+parseInt(_0x51f766(0xdb))/0x7*(-parseInt(_0x51f766(0xcc))/0x8)+parseInt(_0x51f766(0xc5))/0x9*(-parseInt(_0x51f766(0xe3))/0xa)+parseInt(_0x51f766(0xd8))/0xb;if(_0xd5097b===_0x23f87e)break;else _0x17d214['push'](_0x17d214['shift']());}catch(_0x5a51da){_0x17d214['push'](_0x17d214['shift']());}}}(a83_0x18d2,0x48613));import{formatRows}from'./formatters.js';import a83_0xf97e8a from'chalk';function a83_0x4b9f(_0x425f68,_0x275964){const _0x18d244=a83_0x18d2();return a83_0x4b9f=function(_0x4b9f4e,_0x10396b){_0x4b9f4e=_0x4b9f4e-0xc3;let _0x43ea08=_0x18d244[_0x4b9f4e];return _0x43ea08;},a83_0x4b9f(_0x425f68,_0x275964);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x9c343a,_0x275d87={},_0x370c67=0x0,_0x18866a=''){const _0x214886=a83_0x4b9f,_0x51f003={...DEFAULT_OPTIONS,..._0x275d87},_0x6cded0=[],_0x3252f0=[..._0x9c343a][_0x214886(0xcd)]((_0x310b79,_0x28f896)=>_0x310b79['name'][_0x214886(0xde)](_0x28f896[_0x214886(0xe2)]));for(let _0x35714e=0x0;_0x35714e<_0x3252f0[_0x214886(0xdf)];_0x35714e++){const _0x46d73b=_0x3252f0[_0x35714e],_0x4a873d=_0x35714e===_0x3252f0[_0x214886(0xdf)]-0x1;let _0x25905e='';_0x370c67>0x0&&(_0x25905e+=_0x18866a);_0x51f003['showTreeLines']&&_0x370c67>0x0&&(_0x25905e+=a83_0xf97e8a[_0x214886(0xc3)](_0x4a873d?'└──\x20':'├──\x20'));_0x51f003[_0x214886(0xe1)]&&(_0x25905e+=_0x46d73b[_0x214886(0xc8)]===_0x214886(0xd7)?'📁\x20':_0x214886(0xce));_0x25905e+=_0x46d73b['name'];if(_0x51f003[_0x214886(0xc7)]){if(_0x46d73b[_0x214886(0xc8)]===_0x214886(0xd7)){const _0x158779=[];_0x46d73b[_0x214886(0xe5)][_0x214886(0xd4)]&&_0x158779[_0x214886(0xd9)](_0x46d73b[_0x214886(0xe5)][_0x214886(0xd4)]+'\x20segment'+(_0x46d73b[_0x214886(0xe5)][_0x214886(0xd4)]!==0x1?'s':'')),_0x46d73b[_0x214886(0xe5)][_0x214886(0xc6)]&&_0x158779['push'](_0x46d73b[_0x214886(0xe5)]['folderCount']+'\x20folder'+(_0x46d73b['metadata'][_0x214886(0xc6)]!==0x1?'s':'')),_0x158779[_0x214886(0xdf)]>0x0&&(_0x25905e+=a83_0xf97e8a[_0x214886(0xc3)]('\x20('+_0x158779[_0x214886(0xd2)](',\x20')+')'));}else _0x46d73b[_0x214886(0xc8)]===_0x214886(0xd0)&&_0x46d73b[_0x214886(0xd5)]!==undefined&&(_0x25905e+=a83_0xf97e8a['dim']('\x20('+formatRows(_0x46d73b[_0x214886(0xd5)])+')'));}_0x6cded0[_0x214886(0xd9)](_0x25905e);if(_0x46d73b['children']&&_0x46d73b[_0x214886(0xd1)][_0x214886(0xdf)]>0x0){let _0x20ce2f;if(_0x370c67===0x0)_0x20ce2f='';else _0x51f003[_0x214886(0xd3)]?_0x20ce2f=_0x18866a+(_0x4a873d?_0x214886(0xc4):a83_0xf97e8a[_0x214886(0xc3)]('│')+_0x214886(0xe4)):_0x20ce2f=_0x18866a+_0x51f003['indent'];const _0x5e8dcd=formatTree(_0x46d73b[_0x214886(0xd1)],_0x51f003,_0x370c67+0x1,_0x20ce2f);_0x6cded0['push'](_0x5e8dcd);}}return _0x6cded0[_0x214886(0xd2)]('\x0a');}export function formatFlatList(_0x1f4a52,_0x402d9e,_0x2ab47f={}){const _0x485841=a83_0x4b9f,_0x3624d8={...DEFAULT_OPTIONS,..._0x2ab47f},_0x2ee4d4=[];for(const _0x42d2b3 of _0x1f4a52){_0x2ee4d4[_0x485841(0xd9)]({'name':_0x42d2b3[_0x485841(0xe2)],'icon':_0x3624d8[_0x485841(0xe1)]?'📁':'','metadata':undefined});}for(const _0x2601e9 of _0x402d9e){const _0x1876f3=_0x3624d8[_0x485841(0xc7)]&&_0x2601e9[_0x485841(0xd5)]!==undefined?a83_0xf97e8a[_0x485841(0xc3)]('\x20('+formatRows(_0x2601e9['population'])+')'):'';_0x2ee4d4[_0x485841(0xd9)]({'name':_0x2601e9[_0x485841(0xe2)],'icon':_0x3624d8[_0x485841(0xe1)]?'🎯':'','metadata':_0x1876f3});}_0x2ee4d4[_0x485841(0xcd)]((_0x2c2f7c,_0x48a247)=>_0x2c2f7c['name'][_0x485841(0xde)](_0x48a247[_0x485841(0xe2)]));if(_0x2ee4d4[_0x485841(0xdf)]===0x0)return _0x485841(0xc9);const _0x2f1710=_0x2ee4d4[_0x485841(0xcf)](_0x5e1afc=>{const _0x4bf057=_0x485841,_0x23c710=_0x5e1afc['icon']?_0x5e1afc[_0x4bf057(0xdd)]+'\x20':'',_0x1fe9e7=_0x5e1afc[_0x4bf057(0xe5)]||'';return''+_0x23c710+_0x5e1afc[_0x4bf057(0xe2)]+_0x1fe9e7;});return _0x2f1710['join']('\x0a');}function a83_0x18d2(){const _0x3f5a5b=['showMetadata','type','(empty)','3084qBSgnd','1595fwOkEF','224KgaPAd','sort','🎯\x20','map','segment','children','join','showTreeLines','segmentCount','population','357SpQrAJ','folder','5107861aVvBqo','push','358uIIDuE','128765ICHKDp','1346622MjHExZ','icon','localeCompare','length','61104JcKMcK','showIcons','name','50oiKWFh','\x20\x20\x20','metadata','dim','\x20\x20\x20\x20','143415EnjkRf','folderCount'];a83_0x18d2=function(){return _0x3f5a5b;};return a83_0x18d2();}
1
+ function a83_0x1c26(){const _0x3966f5=['push','showTreeLines','showIcons','dim','population','\x20segment','32guvOhU','name','join','folderCount','181736qyidkv','type','folder','showMetadata','7662130MkraZf','map','\x20folder','🎯\x20','888652lRUCbt','4554627zUOzzM','icon','├──\x20','length','8fnlGrV','segmentCount','298755enCnla','localeCompare','1114017mWPsqo','(empty)','sort','children','\x20\x20\x20\x20','102PlPnqE','233005IJdAOj','📁\x20','metadata','indent'];a83_0x1c26=function(){return _0x3966f5;};return a83_0x1c26();}function a83_0x4dfb(_0x5677bf,_0x10e696){const _0x1c2698=a83_0x1c26();return a83_0x4dfb=function(_0x4dfbfa,_0x582c5a){_0x4dfbfa=_0x4dfbfa-0xe5;let _0xb2c8bf=_0x1c2698[_0x4dfbfa];return _0xb2c8bf;},a83_0x4dfb(_0x5677bf,_0x10e696);}(function(_0x28e452,_0x4549ad){const _0x119abc=a83_0x4dfb,_0x2bdc2a=_0x28e452();while(!![]){try{const _0x4018bb=parseInt(_0x119abc(0xeb))/0x1+-parseInt(_0x119abc(0x108))/0x2+parseInt(_0x119abc(0xf4))/0x3*(parseInt(_0x119abc(0xf0))/0x4)+-parseInt(_0x119abc(0xfa))/0x5*(parseInt(_0x119abc(0xf9))/0x6)+parseInt(_0x119abc(0xec))/0x7+parseInt(_0x119abc(0x104))/0x8*(-parseInt(_0x119abc(0xf2))/0x9)+-parseInt(_0x119abc(0xe7))/0xa;if(_0x4018bb===_0x4549ad)break;else _0x2bdc2a['push'](_0x2bdc2a['shift']());}catch(_0x4f81c3){_0x2bdc2a['push'](_0x2bdc2a['shift']());}}}(a83_0x1c26,0x7a0c9));import{formatRows}from'./formatters.js';import a83_0x3a1b4f from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x44cde9,_0x2e9f1f={},_0x32455d=0x0,_0x61c44b=''){const _0x3fb930=a83_0x4dfb,_0x35a329={...DEFAULT_OPTIONS,..._0x2e9f1f},_0x590071=[],_0x31ca32=[..._0x44cde9][_0x3fb930(0xf6)]((_0x3c5b6a,_0x26b1a1)=>_0x3c5b6a[_0x3fb930(0x105)][_0x3fb930(0xf3)](_0x26b1a1[_0x3fb930(0x105)]));for(let _0x45a1c4=0x0;_0x45a1c4<_0x31ca32[_0x3fb930(0xef)];_0x45a1c4++){const _0x3c2f2e=_0x31ca32[_0x45a1c4],_0x544c64=_0x45a1c4===_0x31ca32['length']-0x1;let _0x288757='';_0x32455d>0x0&&(_0x288757+=_0x61c44b);_0x35a329['showTreeLines']&&_0x32455d>0x0&&(_0x288757+=a83_0x3a1b4f['dim'](_0x544c64?'└──\x20':_0x3fb930(0xee)));_0x35a329[_0x3fb930(0x100)]&&(_0x288757+=_0x3c2f2e['type']===_0x3fb930(0xe5)?_0x3fb930(0xfb):_0x3fb930(0xea));_0x288757+=_0x3c2f2e['name'];if(_0x35a329['showMetadata']){if(_0x3c2f2e[_0x3fb930(0x109)]===_0x3fb930(0xe5)){const _0x3da859=[];_0x3c2f2e['metadata']['segmentCount']&&_0x3da859['push'](_0x3c2f2e[_0x3fb930(0xfc)][_0x3fb930(0xf1)]+_0x3fb930(0x103)+(_0x3c2f2e['metadata']['segmentCount']!==0x1?'s':'')),_0x3c2f2e[_0x3fb930(0xfc)]['folderCount']&&_0x3da859[_0x3fb930(0xfe)](_0x3c2f2e['metadata'][_0x3fb930(0x107)]+_0x3fb930(0xe9)+(_0x3c2f2e[_0x3fb930(0xfc)][_0x3fb930(0x107)]!==0x1?'s':'')),_0x3da859[_0x3fb930(0xef)]>0x0&&(_0x288757+=a83_0x3a1b4f[_0x3fb930(0x101)]('\x20('+_0x3da859[_0x3fb930(0x106)](',\x20')+')'));}else _0x3c2f2e[_0x3fb930(0x109)]==='segment'&&_0x3c2f2e[_0x3fb930(0x102)]!==undefined&&(_0x288757+=a83_0x3a1b4f[_0x3fb930(0x101)]('\x20('+formatRows(_0x3c2f2e[_0x3fb930(0x102)])+')'));}_0x590071[_0x3fb930(0xfe)](_0x288757);if(_0x3c2f2e[_0x3fb930(0xf7)]&&_0x3c2f2e['children'][_0x3fb930(0xef)]>0x0){let _0x5401d7;if(_0x32455d===0x0)_0x5401d7='';else _0x35a329[_0x3fb930(0xff)]?_0x5401d7=_0x61c44b+(_0x544c64?_0x3fb930(0xf8):a83_0x3a1b4f['dim']('│')+'\x20\x20\x20'):_0x5401d7=_0x61c44b+_0x35a329[_0x3fb930(0xfd)];const _0x40b4cd=formatTree(_0x3c2f2e[_0x3fb930(0xf7)],_0x35a329,_0x32455d+0x1,_0x5401d7);_0x590071['push'](_0x40b4cd);}}return _0x590071['join']('\x0a');}export function formatFlatList(_0x31e845,_0x1f0fad,_0x2a60d8={}){const _0x39d941=a83_0x4dfb,_0x28a34d={...DEFAULT_OPTIONS,..._0x2a60d8},_0x5a4785=[];for(const _0x2d7e4c of _0x31e845){_0x5a4785[_0x39d941(0xfe)]({'name':_0x2d7e4c['name'],'icon':_0x28a34d[_0x39d941(0x100)]?'📁':'','metadata':undefined});}for(const _0x5a1cf0 of _0x1f0fad){const _0x2b1ac5=_0x28a34d[_0x39d941(0xe6)]&&_0x5a1cf0[_0x39d941(0x102)]!==undefined?a83_0x3a1b4f[_0x39d941(0x101)]('\x20('+formatRows(_0x5a1cf0[_0x39d941(0x102)])+')'):'';_0x5a4785[_0x39d941(0xfe)]({'name':_0x5a1cf0[_0x39d941(0x105)],'icon':_0x28a34d['showIcons']?'🎯':'','metadata':_0x2b1ac5});}_0x5a4785['sort']((_0x5ac615,_0x5d2175)=>_0x5ac615[_0x39d941(0x105)]['localeCompare'](_0x5d2175[_0x39d941(0x105)]));if(_0x5a4785['length']===0x0)return _0x39d941(0xf5);const _0x543aa6=_0x5a4785[_0x39d941(0xe8)](_0x33a674=>{const _0x46cd7a=_0x39d941,_0x496cac=_0x33a674[_0x46cd7a(0xed)]?_0x33a674[_0x46cd7a(0xed)]+'\x20':'',_0x3388dc=_0x33a674['metadata']||'';return''+_0x496cac+_0x33a674[_0x46cd7a(0x105)]+_0x3388dc;});return _0x543aa6[_0x39d941(0x106)]('\x0a');}
@@ -1 +1 @@
1
- const a84_0x1dc2b1=a84_0x5285;(function(_0x71e8d,_0x5ea82c){const _0x4d776e=a84_0x5285,_0x23e3f0=_0x71e8d();while(!![]){try{const _0x29b518=-parseInt(_0x4d776e(0x1c0))/0x1*(-parseInt(_0x4d776e(0x1e5))/0x2)+-parseInt(_0x4d776e(0x1d7))/0x3+parseInt(_0x4d776e(0x1de))/0x4+parseInt(_0x4d776e(0x1d6))/0x5*(parseInt(_0x4d776e(0x1ca))/0x6)+parseInt(_0x4d776e(0x1c7))/0x7+-parseInt(_0x4d776e(0x1cd))/0x8+-parseInt(_0x4d776e(0x1d5))/0x9;if(_0x29b518===_0x5ea82c)break;else _0x23e3f0['push'](_0x23e3f0['shift']());}catch(_0x39878a){_0x23e3f0['push'](_0x23e3f0['shift']());}}}(a84_0x3112,0xd0eaf));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a84_0x4f9065 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a84_0x1dc2b1(0x1e3),TIMEOUT_MS=0x7d0;function a84_0x3112(){const _0xecd84e=['\x0aUpdate\x20available:\x20','Request\x20timeout','updateAvailable','1459880GNBxOg','dim','yellow','Invalid\x20version\x20format','\x0aRun:\x20','https://registry.npmjs.org/@treasuredata/tdx/latest','statusCode','3396754qWhjkx','cyan','NO_COLOR','1ZcmjUI','toISOString','Update\x20available:','end','npm\x20install\x20-g\x20@treasuredata/tdx@latest','now','HTTP\x20','2965179wwsWOG','isTTY','error','366EaYTEs','last_version_check','data','11368928bmtTFh','currentVersion','latestVersion','write','version','utf-8','getTime','lastCheck','3308013DvFddJ','125155jYZbQA','4108305GXwCgR','gray','stderr','Run:'];a84_0x3112=function(){return _0xecd84e;};return a84_0x3112();}function getCacheFilePath(){const _0x3a0ac0=a84_0x1dc2b1,_0x4bcd5f=getCacheDir();return join(_0x4bcd5f,_0x3a0ac0(0x1cb));}function readCache(){const _0x3d743e=a84_0x1dc2b1;try{const _0x108ec6=getCacheFilePath(),_0x2072f1=readFileSync(_0x108ec6,_0x3d743e(0x1d2));return JSON['parse'](_0x2072f1);}catch{return null;}}function a84_0x5285(_0x1326fd,_0x2d764b){const _0x3112fb=a84_0x3112();return a84_0x5285=function(_0x528596,_0x10dac8){_0x528596=_0x528596-0x1c0;let _0x3dee08=_0x3112fb[_0x528596];return _0x3dee08;},a84_0x5285(_0x1326fd,_0x2d764b);}function writeCache(_0x3ce8d5){const _0x1e6599=a84_0x1dc2b1;try{const _0x243c8e=getCacheDir();mkdirSync(_0x243c8e,{'recursive':!![]});const _0xba4b1b={'lastCheck':new Date()[_0x1e6599(0x1c1)](),'latestVersion':_0x3ce8d5},_0x1fc331=getCacheFilePath();writeFileSync(_0x1fc331,JSON['stringify'](_0xba4b1b,null,0x2),_0x1e6599(0x1d2));}catch{}}function isCacheValid(_0x41ccf9){const _0x405a37=a84_0x1dc2b1;if(!_0x41ccf9)return![];const _0x290f3b=new Date(_0x41ccf9[_0x405a37(0x1d4)])[_0x405a37(0x1d3)](),_0x2eec15=Date[_0x405a37(0x1c5)]();return _0x2eec15-_0x290f3b<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x27bf58,_0x4154ed)=>{const _0x453954=a84_0x5285,_0x346d43=get(NPM_REGISTRY_URL,_0x1b93ac=>{const _0x3a3373=a84_0x5285;if(_0x1b93ac['statusCode']!==0xc8){clearTimeout(_0x2b6150),_0x4154ed(new Error(_0x3a3373(0x1c6)+_0x1b93ac[_0x3a3373(0x1e4)]));return;}let _0x1b0926='';_0x1b93ac['on'](_0x3a3373(0x1cc),_0xd6991b=>{_0x1b0926+=_0xd6991b;}),_0x1b93ac['on'](_0x3a3373(0x1c3),()=>{const _0x38ddc4=_0x3a3373;clearTimeout(_0x2b6150);try{const _0x4d86ef=JSON['parse'](_0x1b0926);if(!valid(_0x4d86ef['version'])){_0x4154ed(new Error(_0x38ddc4(0x1e1)));return;}_0x27bf58(_0x4d86ef[_0x38ddc4(0x1d1)]);}catch(_0x4a87a9){_0x4154ed(_0x4a87a9);}});})['on'](_0x453954(0x1c9),_0x4c0777=>{clearTimeout(_0x2b6150),_0x4154ed(_0x4c0777);}),_0x2b6150=setTimeout(()=>{const _0x40b755=_0x453954;_0x346d43['destroy'](),_0x4154ed(new Error(_0x40b755(0x1dc)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x26e076){const _0x12d69c=a84_0x1dc2b1;try{const _0x527eeb=readCache();if(isCacheValid(_0x527eeb)){const _0x3735e3=gt(_0x527eeb[_0x12d69c(0x1cf)],_0x26e076);return{'updateAvailable':_0x3735e3,'currentVersion':_0x26e076,'latestVersion':_0x527eeb[_0x12d69c(0x1cf)]};}const _0x3e9268=await fetchLatestVersion();writeCache(_0x3e9268);const _0x328de6=gt(_0x3e9268,_0x26e076);return{'updateAvailable':_0x328de6,'currentVersion':_0x26e076,'latestVersion':_0x3e9268};}catch{return null;}}export function displayUpdateNotification(_0x59608e){const _0xfa13cb=a84_0x1dc2b1;if(!_0x59608e[_0xfa13cb(0x1dd)])return;const _0x283976=process[_0xfa13cb(0x1d9)][_0xfa13cb(0x1c8)]&&!process['env'][_0xfa13cb(0x1e7)],_0xf43f=_0x283976?a84_0x4f9065[_0xfa13cb(0x1d8)]('→'):'→',_0x2d99e2=_0x283976?a84_0x4f9065['dim'](_0x59608e[_0xfa13cb(0x1ce)]):_0x59608e[_0xfa13cb(0x1ce)],_0x3d4fad=_0x283976?a84_0x4f9065['green'](_0x59608e[_0xfa13cb(0x1cf)]):_0x59608e[_0xfa13cb(0x1cf)],_0x541d06=_0x283976?a84_0x4f9065[_0xfa13cb(0x1e6)](_0xfa13cb(0x1c4)):_0xfa13cb(0x1c4),_0xb2e403=_0x283976?'\x0a'+a84_0x4f9065[_0xfa13cb(0x1e0)](_0xfa13cb(0x1c2))+'\x20'+_0x2d99e2+'\x20'+_0xf43f+'\x20'+_0x3d4fad+'\x0a'+a84_0x4f9065[_0xfa13cb(0x1df)](_0xfa13cb(0x1da))+'\x20'+_0x541d06+'\x0a':_0xfa13cb(0x1db)+_0x2d99e2+'\x20'+_0xf43f+'\x20'+_0x3d4fad+_0xfa13cb(0x1e2)+_0x541d06+'\x0a';process[_0xfa13cb(0x1d9)][_0xfa13cb(0x1d0)](_0xb2e403);}
1
+ function a84_0x4a32(_0x33c093,_0x4599a5){const _0x214f8c=a84_0x214f();return a84_0x4a32=function(_0x4a32fb,_0x5c172b){_0x4a32fb=_0x4a32fb-0x7c;let _0x4433e3=_0x214f8c[_0x4a32fb];return _0x4433e3;},a84_0x4a32(_0x33c093,_0x4599a5);}function a84_0x214f(){const _0x3e7aed=['dim','6cQBOzi','Run:','version','7842528YGfKOI','npm\x20install\x20-g\x20@treasuredata/tdx@latest','Invalid\x20version\x20format','parse','last_version_check','end','isTTY','https://registry.npmjs.org/@treasuredata/tdx/latest','HTTP\x20','green','174JFQzKR','4094870MxwgAx','error','yellow','toISOString','gray','stderr','\x0aUpdate\x20available:\x20','216jnAGcQ','lastCheck','cyan','env','data','currentVersion','NO_COLOR','Request\x20timeout','1908PYcgJH','165739tyLxNy','utf-8','5484265VrmJbR','\x0aRun:\x20','4289992sRDZgC','getTime','destroy','statusCode','Update\x20available:','1679166NNwqlA'];a84_0x214f=function(){return _0x3e7aed;};return a84_0x214f();}const a84_0x1dea99=a84_0x4a32;(function(_0x1b597f,_0x2d1b55){const _0x54ad52=a84_0x4a32,_0x4c27ae=_0x1b597f();while(!![]){try{const _0x3d4054=-parseInt(_0x54ad52(0x99))/0x1*(parseInt(_0x54ad52(0x89))/0x2)+parseInt(_0x54ad52(0xa3))/0x3+parseInt(_0x54ad52(0x9e))/0x4+-parseInt(_0x54ad52(0x9c))/0x5*(-parseInt(_0x54ad52(0x7c))/0x6)+-parseInt(_0x54ad52(0x9a))/0x7*(parseInt(_0x54ad52(0x91))/0x8)+-parseInt(_0x54ad52(0x7f))/0x9+-parseInt(_0x54ad52(0x8a))/0xa;if(_0x3d4054===_0x2d1b55)break;else _0x4c27ae['push'](_0x4c27ae['shift']());}catch(_0x1c8b29){_0x4c27ae['push'](_0x4c27ae['shift']());}}}(a84_0x214f,0x9cf67));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a84_0x3dfd05 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a84_0x1dea99(0x86),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0xdf25a5=a84_0x1dea99,_0x37be6c=getCacheDir();return join(_0x37be6c,_0xdf25a5(0x83));}function readCache(){const _0x3e2def=a84_0x1dea99;try{const _0x5c9a56=getCacheFilePath(),_0x413f62=readFileSync(_0x5c9a56,_0x3e2def(0x9b));return JSON[_0x3e2def(0x82)](_0x413f62);}catch{return null;}}function writeCache(_0x455c00){const _0x366a6c=a84_0x1dea99;try{const _0x7b94d2=getCacheDir();mkdirSync(_0x7b94d2,{'recursive':!![]});const _0x599ece={'lastCheck':new Date()[_0x366a6c(0x8d)](),'latestVersion':_0x455c00},_0x388052=getCacheFilePath();writeFileSync(_0x388052,JSON['stringify'](_0x599ece,null,0x2),'utf-8');}catch{}}function isCacheValid(_0x30e547){const _0x9105eb=a84_0x1dea99;if(!_0x30e547)return![];const _0x41f346=new Date(_0x30e547[_0x9105eb(0x92)])[_0x9105eb(0x9f)](),_0xe364f1=Date['now']();return _0xe364f1-_0x41f346<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x371b8c,_0x44d421)=>{const _0x44d959=a84_0x4a32,_0x5cf979=get(NPM_REGISTRY_URL,_0xa9e73b=>{const _0x2eaab8=a84_0x4a32;if(_0xa9e73b[_0x2eaab8(0xa1)]!==0xc8){clearTimeout(_0x205945),_0x44d421(new Error(_0x2eaab8(0x87)+_0xa9e73b[_0x2eaab8(0xa1)]));return;}let _0xd817e9='';_0xa9e73b['on'](_0x2eaab8(0x95),_0x12f2c2=>{_0xd817e9+=_0x12f2c2;}),_0xa9e73b['on'](_0x2eaab8(0x84),()=>{const _0x4315b2=_0x2eaab8;clearTimeout(_0x205945);try{const _0x2a132f=JSON[_0x4315b2(0x82)](_0xd817e9);if(!valid(_0x2a132f[_0x4315b2(0x7e)])){_0x44d421(new Error(_0x4315b2(0x81)));return;}_0x371b8c(_0x2a132f[_0x4315b2(0x7e)]);}catch(_0xf9e7d5){_0x44d421(_0xf9e7d5);}});})['on'](_0x44d959(0x8b),_0x2a1352=>{clearTimeout(_0x205945),_0x44d421(_0x2a1352);}),_0x205945=setTimeout(()=>{const _0x31766d=_0x44d959;_0x5cf979[_0x31766d(0xa0)](),_0x44d421(new Error(_0x31766d(0x98)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x315a24){try{const _0x2e9825=readCache();if(isCacheValid(_0x2e9825)){const _0x3f5a91=gt(_0x2e9825['latestVersion'],_0x315a24);return{'updateAvailable':_0x3f5a91,'currentVersion':_0x315a24,'latestVersion':_0x2e9825['latestVersion']};}const _0x501bfa=await fetchLatestVersion();writeCache(_0x501bfa);const _0x22f570=gt(_0x501bfa,_0x315a24);return{'updateAvailable':_0x22f570,'currentVersion':_0x315a24,'latestVersion':_0x501bfa};}catch{return null;}}export function displayUpdateNotification(_0x13db70){const _0x382f08=a84_0x1dea99;if(!_0x13db70['updateAvailable'])return;const _0x5cad7c=process[_0x382f08(0x8f)][_0x382f08(0x85)]&&!process[_0x382f08(0x94)][_0x382f08(0x97)],_0x41c9e1=_0x5cad7c?a84_0x3dfd05[_0x382f08(0x8e)]('→'):'→',_0x483cfa=_0x5cad7c?a84_0x3dfd05[_0x382f08(0xa4)](_0x13db70['currentVersion']):_0x13db70[_0x382f08(0x96)],_0x37b147=_0x5cad7c?a84_0x3dfd05[_0x382f08(0x88)](_0x13db70['latestVersion']):_0x13db70['latestVersion'],_0x2323dc=_0x5cad7c?a84_0x3dfd05[_0x382f08(0x93)](_0x382f08(0x80)):_0x382f08(0x80),_0x39929d=_0x5cad7c?'\x0a'+a84_0x3dfd05[_0x382f08(0x8c)](_0x382f08(0xa2))+'\x20'+_0x483cfa+'\x20'+_0x41c9e1+'\x20'+_0x37b147+'\x0a'+a84_0x3dfd05['dim'](_0x382f08(0x7d))+'\x20'+_0x2323dc+'\x0a':_0x382f08(0x90)+_0x483cfa+'\x20'+_0x41c9e1+'\x20'+_0x37b147+_0x382f08(0x9d)+_0x2323dc+'\x0a';process[_0x382f08(0x8f)]['write'](_0x39929d);}
@@ -1 +1 @@
1
- (function(_0x4071b1,_0x5566ca){const _0x34227f=a85_0x4567,_0x512f5e=_0x4071b1();while(!![]){try{const _0x2fa79a=parseInt(_0x34227f(0xb5))/0x1+parseInt(_0x34227f(0xae))/0x2*(-parseInt(_0x34227f(0xad))/0x3)+parseInt(_0x34227f(0xaf))/0x4*(-parseInt(_0x34227f(0xb0))/0x5)+-parseInt(_0x34227f(0xb4))/0x6+parseInt(_0x34227f(0xb1))/0x7+-parseInt(_0x34227f(0xb3))/0x8+parseInt(_0x34227f(0xac))/0x9;if(_0x2fa79a===_0x5566ca)break;else _0x512f5e['push'](_0x512f5e['shift']());}catch(_0x4b478e){_0x512f5e['push'](_0x512f5e['shift']());}}}(a85_0x47a2,0xc75b3));function a85_0x4567(_0x43090e,_0x580d76){const _0x47a2fe=a85_0x47a2();return a85_0x4567=function(_0x45673b,_0x3a6029){_0x45673b=_0x45673b-0xac;let _0x3c8096=_0x47a2fe[_0x45673b];return _0x3c8096;},a85_0x4567(_0x43090e,_0x580d76);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x5b76fc){const _0x505e52=a85_0x4567;if(_0x5b76fc===_0x505e52(0xb6))return!![];if(_0x5b76fc[_0x505e52(0xb2)]('.'))return![];return!![];}function a85_0x47a2(){const _0x18f803=['.digdag','28780857NuEiPi','482523ahluUt','10jnvLah','5565604STsSbe','5nawBVL','7266238DdSfvn','startsWith','6374960NAPLjm','9392142CuTvhH','1138489MZbdvr'];a85_0x47a2=function(){return _0x18f803;};return a85_0x47a2();}
1
+ function a85_0x2891(){const _0x52e102=['1858374aYEOLw','5533350ZTgQhV','3976959vNylDw','startsWith','464777phnGbT','4vAgYUY','20BVZeap','8ZuvVOB','19692TIkRIb','.digdag','7193456bCCZKo','8908821agBKdL'];a85_0x2891=function(){return _0x52e102;};return a85_0x2891();}(function(_0x302033,_0x13cb30){const _0x3c5001=a85_0x47bf,_0x1980e4=_0x302033();while(!![]){try{const _0x27d358=parseInt(_0x3c5001(0x117))/0x1*(-parseInt(_0x3c5001(0x10e))/0x2)+-parseInt(_0x3c5001(0x115))/0x3*(-parseInt(_0x3c5001(0x10c))/0x4)+-parseInt(_0x3c5001(0x114))/0x5+-parseInt(_0x3c5001(0x10f))/0x6+-parseInt(_0x3c5001(0x113))/0x7+parseInt(_0x3c5001(0x111))/0x8+-parseInt(_0x3c5001(0x112))/0x9*(-parseInt(_0x3c5001(0x10d))/0xa);if(_0x27d358===_0x13cb30)break;else _0x1980e4['push'](_0x1980e4['shift']());}catch(_0x344b77){_0x1980e4['push'](_0x1980e4['shift']());}}}(a85_0x2891,0xecd2f));export const WORKFLOW_FILE_EXTENSION='.dig';function a85_0x47bf(_0x357cf4,_0x1b8401){const _0x2891cb=a85_0x2891();return a85_0x47bf=function(_0x47bfce,_0x27637f){_0x47bfce=_0x47bfce-0x10c;let _0x4d1d05=_0x2891cb[_0x47bfce];return _0x4d1d05;},a85_0x47bf(_0x357cf4,_0x1b8401);}export function shouldIncludeInArchive(_0x34f96c){const _0x2f7b22=a85_0x47bf;if(_0x34f96c===_0x2f7b22(0x110))return!![];if(_0x34f96c[_0x2f7b22(0x116)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
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": {