@treasuredata/tdx 0.1.15 → 0.1.16

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 (80) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/client/cdp-client.js +1 -1
  3. package/dist/client/http-client.js +1 -1
  4. package/dist/client/llm-client.js +1 -1
  5. package/dist/client/rate-limiter.js +1 -1
  6. package/dist/client/td-client.js +1 -1
  7. package/dist/client/trino-client.js +1 -1
  8. package/dist/client/workflow-client.js +1 -1
  9. package/dist/commands/activations.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/command.js +1 -1
  14. package/dist/commands/context-command.js +1 -1
  15. package/dist/commands/databases.js +1 -1
  16. package/dist/commands/describe.js +1 -1
  17. package/dist/commands/job-command.js +1 -1
  18. package/dist/commands/llm-command.js +1 -1
  19. package/dist/commands/llm-proxy.js +1 -1
  20. package/dist/commands/parent-segment-command.js +1 -1
  21. package/dist/commands/profiles-command.js +1 -1
  22. package/dist/commands/query-command.js +1 -1
  23. package/dist/commands/segment-command.js +1 -1
  24. package/dist/commands/segment-create-command.js +1 -1
  25. package/dist/commands/segment-fields-command.js +1 -1
  26. package/dist/commands/segment-pwd-command.js +1 -1
  27. package/dist/commands/segment-update-command.js +1 -1
  28. package/dist/commands/segment-use-command.js +1 -1
  29. package/dist/commands/segments.js +1 -1
  30. package/dist/commands/show.js +1 -1
  31. package/dist/commands/tables.js +1 -1
  32. package/dist/commands/use-command.js +1 -1
  33. package/dist/commands/workflow-command.js +1 -1
  34. package/dist/core/auth.js +1 -1
  35. package/dist/core/config.js +1 -1
  36. package/dist/core/global-context.js +1 -1
  37. package/dist/core/profile.js +1 -1
  38. package/dist/core/project-config.js +1 -1
  39. package/dist/core/session.js +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/proxy/anthropic-adapter.d.ts +1 -0
  42. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  43. package/dist/proxy/anthropic-adapter.js +1 -1
  44. package/dist/proxy/anthropic-adapter.js.map +1 -1
  45. package/dist/proxy/server.js +1 -1
  46. package/dist/sdk/api.js +1 -1
  47. package/dist/sdk/database.js +1 -1
  48. package/dist/sdk/errors.js +1 -1
  49. package/dist/sdk/index.js +1 -1
  50. package/dist/sdk/job.js +1 -1
  51. package/dist/sdk/llm.js +1 -1
  52. package/dist/sdk/query.js +1 -1
  53. package/dist/sdk/segment.js +1 -1
  54. package/dist/sdk/table.js +1 -1
  55. package/dist/sdk/workflow.js +1 -1
  56. package/dist/types/endpoints.js +1 -1
  57. package/dist/types/index.js +1 -1
  58. package/dist/utils/agent-ref-parser.js +1 -1
  59. package/dist/utils/chat-cache.js +1 -1
  60. package/dist/utils/colors.js +1 -1
  61. package/dist/utils/command-output.js +1 -1
  62. package/dist/utils/file-permissions.js +1 -1
  63. package/dist/utils/format-detector.js +1 -1
  64. package/dist/utils/formatters.js +1 -1
  65. package/dist/utils/json-loader.js +1 -1
  66. package/dist/utils/model-aliases.js +1 -1
  67. package/dist/utils/option-validation.js +1 -1
  68. package/dist/utils/port.js +1 -1
  69. package/dist/utils/process.js +1 -1
  70. package/dist/utils/prompt.js +1 -1
  71. package/dist/utils/segment-path-parser.js +1 -1
  72. package/dist/utils/segment-ref-parser.js +1 -1
  73. package/dist/utils/spinner.js +1 -1
  74. package/dist/utils/sql-parser.js +1 -1
  75. package/dist/utils/sse-parser.js +1 -1
  76. package/dist/utils/string-utils.js +1 -1
  77. package/dist/utils/table-ref-parser.js +1 -1
  78. package/dist/utils/tree-formatter.js +1 -1
  79. package/dist/utils/workflow-utils.js +1 -1
  80. package/package.json +1 -1
@@ -1 +1 @@
1
- function a64_0x558e(){const _0x9ffa67=['1267679hAfQyO','85XBVLiu','int','name','repeat','9242343mXFLjI','tsv','double','reduce','148086uuUged','83360dewBmn','join','toISOString','true','json','423AxQEXE','0\x20B','string','map','64990cdIwrm','type','push','9Vrdqub','forEach','number','bool','pow','columns','long','entries','slice','toFixed','max','length','16tzXjUN','stringify','false','test','\x20rows\x20(','stdout','3156112tJMPtE','log','toLowerCase','floor','timestamp','boolean','table','object','No\x20rows\x20returned','array','311388fUGCLx','replace','min','data'];a64_0x558e=function(){return _0x9ffa67;};return a64_0x558e();}(function(_0x533c24,_0x52456c){const _0x1441e6=a64_0x3a2e,_0x3d4a3d=_0x533c24();while(!![]){try{const _0x23a813=parseInt(_0x1441e6(0x16a))/0x1*(-parseInt(_0x1441e6(0x15b))/0x2)+parseInt(_0x1441e6(0x15e))/0x3*(-parseInt(_0x1441e6(0x17a))/0x4)+parseInt(_0x1441e6(0x17f))/0x5*(parseInt(_0x1441e6(0x187))/0x6)+-parseInt(_0x1441e6(0x17e))/0x7+-parseInt(_0x1441e6(0x170))/0x8+parseInt(_0x1441e6(0x157))/0x9*(parseInt(_0x1441e6(0x188))/0xa)+parseInt(_0x1441e6(0x183))/0xb;if(_0x23a813===_0x52456c)break;else _0x3d4a3d['push'](_0x3d4a3d['shift']());}catch(_0x5b69ee){_0x3d4a3d['push'](_0x3d4a3d['shift']());}}}(a64_0x558e,0x4ebce));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a64_0x3a2e(_0x53ad27,_0x18fdb5){const _0x558e9d=a64_0x558e();return a64_0x3a2e=function(_0x3a2e33,_0x500674){_0x3a2e33=_0x3a2e33-0x156;let _0x581494=_0x558e9d[_0x3a2e33];return _0x581494;},a64_0x3a2e(_0x53ad27,_0x18fdb5);}const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x539ada=a64_0x3a2e;return process[_0x539ada(0x16f)][_0x539ada(0x163)]||Infinity;}export function formatAsTable(_0x6904b0,_0x2a4eb8=DEFAULT_MAX_DISPLAY_ROWS,_0x567b70=![],_0x5dee2b={}){const _0x2e10ab=a64_0x3a2e;if(_0x6904b0[_0x2e10ab(0x17d)][_0x2e10ab(0x169)]===0x0)return _0x2e10ab(0x178);const _0x59ae3b=_0x6904b0[_0x2e10ab(0x163)]['map'](_0x22eb47=>_0x22eb47[_0x2e10ab(0x181)]),_0x204525=_0x6904b0[_0x2e10ab(0x163)]['map'](_0x166932=>simplifyType(_0x166932[_0x2e10ab(0x15c)])),_0x4b2313=_0x6904b0[_0x2e10ab(0x17d)][_0x2e10ab(0x166)](0x0,_0x2a4eb8),_0x12e8ac=_0x6904b0[_0x2e10ab(0x17d)][_0x2e10ab(0x169)],_0xff351b=_0x12e8ac>_0x2a4eb8,_0x28bcab=[],_0x3c2c9=getTerminalWidth(),_0xf98584=_0x3c2c9!==Infinity,_0x38e2d6=0x32;let _0x3657af=_0x59ae3b['map']((_0x385517,_0xd220f1)=>{const _0x281177=_0x2e10ab,_0x4b8c74=stringWidth(_0x204525[_0xd220f1]),_0x465b68=Math[_0x281177(0x168)](..._0x4b2313[_0x281177(0x15a)](_0x274b09=>{const _0x15cd85=_0x274b09[_0x385517];return stringWidth(formatValue(_0x15cd85));})),_0x38ee6e=Math[_0x281177(0x168)](stringWidth(_0x385517),_0x4b8c74,_0x465b68);return _0x567b70?_0x38ee6e:Math[_0x281177(0x17c)](_0x38ee6e,_0x38e2d6);});if(_0xf98584&&!_0x567b70&&_0x59ae3b['length']>0x0){const _0x5a0924=_0x5689a2=>{let _0x185fa5=0x1;for(const _0xbf4432 of _0x5689a2){_0x185fa5+=_0xbf4432+0x3;}return _0x185fa5+0x1;};let _0x5aea79=_0x5a0924(_0x3657af);if(_0x5aea79>_0x3c2c9){const _0x5303e4=0x3;for(let _0x58419d=_0x3657af['length']-0x1;_0x58419d>=0x0;_0x58419d--){_0x5aea79=_0x5a0924(_0x3657af);if(_0x5aea79<=_0x3c2c9)break;const _0x9fad3f=_0x3657af[_0x58419d],_0x3fd0af=_0x5aea79-_0x3c2c9,_0x5d356f=_0x9fad3f-_0x5303e4,_0x232400=Math['min'](_0x3fd0af,_0x5d356f);_0x232400>0x0&&(_0x3657af[_0x58419d]=_0x9fad3f-_0x232400);}}}const _0x2363d4=_0x59ae3b,_0x52f33f=_0x204525,_0x42f8fc=_0x3657af,_0x8f3417=_0x3657af;_0x28bcab['push'](colorBorder('┌'+_0x8f3417['map'](_0x53c42f=>'─'['repeat'](_0x53c42f+0x2))[_0x2e10ab(0x189)]('┬')+'┐',_0x5dee2b));const _0x193bfb=_0x2363d4[_0x2e10ab(0x15a)]((_0x5775ae,_0xbf1472)=>centerAlign(_0x5775ae,_0x42f8fc[_0xbf1472]));_0x28bcab[_0x2e10ab(0x15d)](colorBorder('│',_0x5dee2b)+'\x20'+_0x193bfb[_0x2e10ab(0x189)]('\x20'+colorBorder('│',_0x5dee2b)+'\x20')+'\x20'+colorBorder('│',_0x5dee2b));const _0x56e9df=_0x52f33f[_0x2e10ab(0x15a)]((_0x1784df,_0x20d08c)=>colorType(centerAlign(_0x1784df,_0x42f8fc[_0x20d08c]),_0x5dee2b));_0x28bcab['push'](colorBorder('│',_0x5dee2b)+'\x20'+_0x56e9df[_0x2e10ab(0x189)]('\x20'+colorBorder('│',_0x5dee2b)+'\x20')+'\x20'+colorBorder('│',_0x5dee2b)),_0x28bcab['push'](colorBorder('├'+_0x8f3417[_0x2e10ab(0x15a)](_0x1d83da=>'─'['repeat'](_0x1d83da+0x2))[_0x2e10ab(0x189)]('┼')+'┤',_0x5dee2b));const _0x46bcc4=(_0x56fe4e,_0x13cf6d)=>{const _0x53878d=_0x2e10ab,_0x426879=stringWidth(_0x56fe4e);if(_0x426879<=_0x13cf6d)return _0x56fe4e;let _0x54390d=_0x56fe4e;while(stringWidth(_0x54390d+'…')>_0x13cf6d&&_0x54390d[_0x53878d(0x169)]>0x0){_0x54390d=_0x54390d[_0x53878d(0x166)](0x0,-0x1);}return _0x54390d+'…';};_0x4b2313[_0x2e10ab(0x15f)](_0x2763c5=>{const _0x48a4b6=_0x2e10ab,_0x380935=_0x59ae3b['map']((_0x34a802,_0x17cc54)=>{const _0x24727a=a64_0x3a2e,_0x2402cc=_0x2763c5[_0x34a802],_0x132ced=formatValue(_0x2402cc),_0x4bd8a8=_0x42f8fc[_0x17cc54],_0x56fc70=_0x46bcc4(_0x132ced,_0x4bd8a8),_0x4b9b59=typeof _0x2402cc===_0x24727a(0x160)||typeof _0x2402cc===_0x24727a(0x159)&&/^-?\d+$/[_0x24727a(0x16d)](_0x2402cc);return _0x4b9b59?padStart(_0x56fc70,_0x4bd8a8):padEnd(_0x56fc70,_0x4bd8a8);});_0x28bcab[_0x48a4b6(0x15d)](colorBorder('│',_0x5dee2b)+'\x20'+_0x380935[_0x48a4b6(0x189)]('\x20'+colorBorder('│',_0x5dee2b)+'\x20')+'\x20'+colorBorder('│',_0x5dee2b));});const _0x4af438=_0x8f3417[_0x2e10ab(0x186)]((_0x4a3e01,_0x461d19)=>_0x4a3e01+_0x461d19+0x3,-0x1);_0x28bcab['push'](colorBorder('├'+_0x8f3417['map'](_0x1f7a1f=>'─'[_0x2e10ab(0x182)](_0x1f7a1f+0x2))[_0x2e10ab(0x189)]('┴')+'┤',_0x5dee2b));let _0xc70d10;_0xff351b?_0xc70d10=_0x12e8ac+_0x2e10ab(0x16e)+_0x2a4eb8+'\x20shown)':_0xc70d10=_0x12e8ac+'\x20row'+(_0x12e8ac===0x1?'':'s');const _0x3b67b1=_0xc70d10['padEnd'](_0x4af438-0x2);return _0x28bcab[_0x2e10ab(0x15d)](colorBorder('│',_0x5dee2b)+'\x20'+_0x3b67b1+'\x20'+colorBorder('│',_0x5dee2b)),_0x28bcab[_0x2e10ab(0x15d)](colorBorder('└'+'─'['repeat'](_0x4af438)+'┘',_0x5dee2b)),_0x28bcab[_0x2e10ab(0x189)]('\x0a');}function simplifyType(_0x5763a8){const _0xf4991b=a64_0x3a2e,_0x374329={'varchar':_0xf4991b(0x159),'bigint':_0xf4991b(0x164),'integer':_0xf4991b(0x180),'double':_0xf4991b(0x185),'boolean':_0xf4991b(0x161),'date':'date','timestamp':_0xf4991b(0x174),'array':_0xf4991b(0x179),'map':_0xf4991b(0x15a),'row':'row'},_0x32be77=_0x5763a8[_0xf4991b(0x172)]();for(const [_0x4ce277,_0x38384c]of Object[_0xf4991b(0x165)](_0x374329)){if(_0x32be77['startsWith'](_0x4ce277))return _0x38384c;}return _0x5763a8['length']>0xa?_0x5763a8['substring'](0x0,0xa):_0x5763a8;}export function formatAsJSON(_0x428b7e,_0x54c58b={}){const _0x3f1cac=a64_0x3a2e;if(_0x428b7e['data'][_0x3f1cac(0x169)]===0x0)return'[]';if(shouldUseColor(_0x54c58b))return colorizeJSON(_0x428b7e[_0x3f1cac(0x17d)],_0x54c58b);const _0x20adac=_0x428b7e[_0x3f1cac(0x17d)][_0x3f1cac(0x15a)](_0x8d6091=>'\x20\x20'+JSON['stringify'](_0x8d6091));return'[\x0a'+_0x20adac[_0x3f1cac(0x189)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x5404f0,_0x299632={}){const _0x7d15dc=a64_0x3a2e;if(_0x5404f0[_0x7d15dc(0x17d)][_0x7d15dc(0x169)]===0x0)return'';if(shouldUseColor(_0x299632))return _0x5404f0[_0x7d15dc(0x17d)][_0x7d15dc(0x15a)](_0x3e208a=>colorizeJSONCompact(_0x3e208a,_0x299632))[_0x7d15dc(0x189)]('\x0a');return _0x5404f0[_0x7d15dc(0x17d)]['map'](_0x4eb2dd=>JSON['stringify'](_0x4eb2dd))[_0x7d15dc(0x189)]('\x0a');}export function formatAsTSV(_0xc61928){const _0x201b75=a64_0x3a2e;if(_0xc61928[_0x201b75(0x17d)]['length']===0x0)return'';const _0x2d3dbd=[],_0x3307c8=_0xc61928[_0x201b75(0x163)][_0x201b75(0x15a)](_0x3f1487=>_0x3f1487[_0x201b75(0x181)]);return _0x2d3dbd[_0x201b75(0x15d)](_0x3307c8['join']('\x09')),_0xc61928[_0x201b75(0x17d)]['forEach'](_0x4f0984=>{const _0x4a0853=_0x201b75,_0x2e31b2=_0x3307c8[_0x4a0853(0x15a)](_0x3d04bb=>{const _0x475089=_0x4f0984[_0x3d04bb];return formatValueForTSV(_0x475089);});_0x2d3dbd[_0x4a0853(0x15d)](_0x2e31b2[_0x4a0853(0x189)]('\x09'));}),_0x2d3dbd[_0x201b75(0x189)]('\x0a');}function formatValue(_0x15fb48){const _0x4f4e34=a64_0x3a2e;if(_0x15fb48===null||_0x15fb48===undefined)return'';if(typeof _0x15fb48===_0x4f4e34(0x159)){const _0x2ddef6=_0x15fb48['replace'](/\n/g,'\x5cn')[_0x4f4e34(0x17b)](/\r/g,'\x5cr')[_0x4f4e34(0x17b)](/\t/g,'\x5ct');return _0x2ddef6;}if(typeof _0x15fb48===_0x4f4e34(0x160))return String(_0x15fb48);if(typeof _0x15fb48==='boolean')return _0x15fb48?_0x4f4e34(0x18b):_0x4f4e34(0x16c);if(_0x15fb48 instanceof Date)return _0x15fb48[_0x4f4e34(0x18a)]();if(typeof _0x15fb48===_0x4f4e34(0x177))return JSON[_0x4f4e34(0x16b)](_0x15fb48);return String(_0x15fb48);}function formatValueForTSV(_0x32ccdf){const _0x30b71c=a64_0x3a2e;if(_0x32ccdf===null||_0x32ccdf===undefined)return'';if(typeof _0x32ccdf===_0x30b71c(0x159))return _0x32ccdf[_0x30b71c(0x17b)](/\t/g,'\x5ct')[_0x30b71c(0x17b)](/\n/g,'\x5cn');if(typeof _0x32ccdf===_0x30b71c(0x160)||typeof _0x32ccdf===_0x30b71c(0x175))return String(_0x32ccdf);if(_0x32ccdf instanceof Date)return _0x32ccdf[_0x30b71c(0x18a)]();if(typeof _0x32ccdf===_0x30b71c(0x177))return JSON[_0x30b71c(0x16b)](_0x32ccdf);return String(_0x32ccdf);}export function formatQueryResult(_0x54589c,_0x5acd68){const _0x11ca46=a64_0x3a2e;switch(_0x5acd68){case _0x11ca46(0x176):return formatAsTable(_0x54589c);case _0x11ca46(0x156):return formatAsJSON(_0x54589c);case'jsonl':return formatAsJSONL(_0x54589c);case _0x11ca46(0x184):return formatAsTSV(_0x54589c);default:return formatAsJSON(_0x54589c);}}export function formatBytes(_0x5db20f){const _0x416354=a64_0x3a2e;if(_0x5db20f===0x0)return _0x416354(0x158);const _0x5218dd=['B','KB','MB','GB','TB'],_0x2098ed=0x400,_0x100a18=Math[_0x416354(0x173)](Math[_0x416354(0x171)](_0x5db20f)/Math[_0x416354(0x171)](_0x2098ed)),_0x30ed52=_0x5db20f/Math[_0x416354(0x162)](_0x2098ed,_0x100a18),_0x1a1ad7=_0x30ed52>=0xa?0x1:0x2;return _0x30ed52[_0x416354(0x167)](_0x1a1ad7)+'\x20'+_0x5218dd[_0x100a18];}export function formatRows(_0x541f11){const _0xed028d=a64_0x3a2e;if(_0x541f11==null)return'-';if(_0x541f11===0x0)return'0';if(_0x541f11<0x3e8)return _0x541f11['toString']();const _0x41e4b7=['','K','M','B','T'],_0x14bb60=0x3e8,_0xdba996=Math['floor'](Math[_0xed028d(0x171)](_0x541f11)/Math[_0xed028d(0x171)](_0x14bb60)),_0x307842=_0x541f11/Math['pow'](_0x14bb60,_0xdba996),_0x445c59=_0x307842>=0xa?0x1:0x2;return''+_0x307842['toFixed'](_0x445c59)+_0x41e4b7[_0xdba996];}
1
+ (function(_0x13e094,_0x5f5aa2){const _0x4b2a36=a64_0x3647,_0xc488fc=_0x13e094();while(!![]){try{const _0x449fad=-parseInt(_0x4b2a36(0xbb))/0x1+-parseInt(_0x4b2a36(0xc9))/0x2*(-parseInt(_0x4b2a36(0xb2))/0x3)+parseInt(_0x4b2a36(0xc2))/0x4+-parseInt(_0x4b2a36(0xaa))/0x5+-parseInt(_0x4b2a36(0xc8))/0x6+-parseInt(_0x4b2a36(0xa9))/0x7+parseInt(_0x4b2a36(0xd0))/0x8;if(_0x449fad===_0x5f5aa2)break;else _0xc488fc['push'](_0xc488fc['shift']());}catch(_0xa29f49){_0xc488fc['push'](_0xc488fc['shift']());}}}(a64_0xc488,0xb9f66));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x16c2dd=a64_0x3647;return process[_0x16c2dd(0xb6)]['columns']||Infinity;}export function formatAsTable(_0x46992b,_0x136569=DEFAULT_MAX_DISPLAY_ROWS,_0x3c5bae=![],_0x120bbb={}){const _0x25242e=a64_0x3647;if(_0x46992b[_0x25242e(0xa5)][_0x25242e(0xd5)]===0x0)return _0x25242e(0xc6);const _0x43ed3f=_0x46992b['columns'][_0x25242e(0xa6)](_0x4cd254=>_0x4cd254['name']),_0xe99021=_0x46992b['columns'][_0x25242e(0xa6)](_0x575fa9=>simplifyType(_0x575fa9[_0x25242e(0xc0)])),_0xfd3421=_0x46992b[_0x25242e(0xa5)][_0x25242e(0xb9)](0x0,_0x136569),_0x24fe11=_0x46992b[_0x25242e(0xa5)][_0x25242e(0xd5)],_0x59c175=_0x24fe11>_0x136569,_0x4c40c4=[],_0x1219df=getTerminalWidth(),_0x173480=_0x1219df!==Infinity,_0x26167d=0x32;let _0x10bd7f=_0x43ed3f['map']((_0x9c8e79,_0x325bfc)=>{const _0x4dc326=_0x25242e,_0x1c0937=stringWidth(_0xe99021[_0x325bfc]),_0x132b66=Math[_0x4dc326(0xae)](..._0xfd3421[_0x4dc326(0xa6)](_0x436123=>{const _0x59f5c0=_0x436123[_0x9c8e79];return stringWidth(formatValue(_0x59f5c0));})),_0x2d025b=Math[_0x4dc326(0xae)](stringWidth(_0x9c8e79),_0x1c0937,_0x132b66);return _0x3c5bae?_0x2d025b:Math[_0x4dc326(0xc5)](_0x2d025b,_0x26167d);});if(_0x173480&&!_0x3c5bae&&_0x43ed3f[_0x25242e(0xd5)]>0x0){const _0x23bc1d=_0x521cea=>{let _0x24798e=0x1;for(const _0x63dac3 of _0x521cea){_0x24798e+=_0x63dac3+0x3;}return _0x24798e+0x1;};let _0x44012e=_0x23bc1d(_0x10bd7f);if(_0x44012e>_0x1219df){const _0x2a9f45=0x3;for(let _0x165dc2=_0x10bd7f[_0x25242e(0xd5)]-0x1;_0x165dc2>=0x0;_0x165dc2--){_0x44012e=_0x23bc1d(_0x10bd7f);if(_0x44012e<=_0x1219df)break;const _0x4775ae=_0x10bd7f[_0x165dc2],_0x28ac34=_0x44012e-_0x1219df,_0x129984=_0x4775ae-_0x2a9f45,_0x1a1f92=Math[_0x25242e(0xc5)](_0x28ac34,_0x129984);_0x1a1f92>0x0&&(_0x10bd7f[_0x165dc2]=_0x4775ae-_0x1a1f92);}}}const _0x1ef2b2=_0x43ed3f,_0x4841aa=_0xe99021,_0x879344=_0x10bd7f,_0x53ee8e=_0x10bd7f;_0x4c40c4[_0x25242e(0xb7)](colorBorder('┌'+_0x53ee8e[_0x25242e(0xa6)](_0x262300=>'─'['repeat'](_0x262300+0x2))[_0x25242e(0xa7)]('┬')+'┐',_0x120bbb));const _0x1cca48=_0x1ef2b2['map']((_0x5ac5e3,_0x2cf12e)=>centerAlign(_0x5ac5e3,_0x879344[_0x2cf12e]));_0x4c40c4['push'](colorBorder('│',_0x120bbb)+'\x20'+_0x1cca48[_0x25242e(0xa7)]('\x20'+colorBorder('│',_0x120bbb)+'\x20')+'\x20'+colorBorder('│',_0x120bbb));const _0x16f141=_0x4841aa[_0x25242e(0xa6)]((_0x1c7aa4,_0xf9466f)=>colorType(centerAlign(_0x1c7aa4,_0x879344[_0xf9466f]),_0x120bbb));_0x4c40c4[_0x25242e(0xb7)](colorBorder('│',_0x120bbb)+'\x20'+_0x16f141[_0x25242e(0xa7)]('\x20'+colorBorder('│',_0x120bbb)+'\x20')+'\x20'+colorBorder('│',_0x120bbb)),_0x4c40c4[_0x25242e(0xb7)](colorBorder('├'+_0x53ee8e[_0x25242e(0xa6)](_0x313a7b=>'─'['repeat'](_0x313a7b+0x2))[_0x25242e(0xa7)]('┼')+'┤',_0x120bbb));const _0x130666=(_0x3e4bcf,_0x1b0e27)=>{const _0x47c325=_0x25242e,_0x466ada=stringWidth(_0x3e4bcf);if(_0x466ada<=_0x1b0e27)return _0x3e4bcf;let _0x12060e=_0x3e4bcf;while(stringWidth(_0x12060e+'…')>_0x1b0e27&&_0x12060e[_0x47c325(0xd5)]>0x0){_0x12060e=_0x12060e['slice'](0x0,-0x1);}return _0x12060e+'…';};_0xfd3421['forEach'](_0x4edec8=>{const _0x5dbf01=_0x25242e,_0x20d8b1=_0x43ed3f[_0x5dbf01(0xa6)]((_0x1352f7,_0x2bcfc5)=>{const _0x1ce371=_0x5dbf01,_0x38f600=_0x4edec8[_0x1352f7],_0x3e74b6=formatValue(_0x38f600),_0x232fb2=_0x879344[_0x2bcfc5],_0x4354eb=_0x130666(_0x3e74b6,_0x232fb2),_0x509aa2=typeof _0x38f600==='number'||typeof _0x38f600===_0x1ce371(0xba)&&/^-?\d+$/[_0x1ce371(0xad)](_0x38f600);return _0x509aa2?padStart(_0x4354eb,_0x232fb2):padEnd(_0x4354eb,_0x232fb2);});_0x4c40c4[_0x5dbf01(0xb7)](colorBorder('│',_0x120bbb)+'\x20'+_0x20d8b1[_0x5dbf01(0xa7)]('\x20'+colorBorder('│',_0x120bbb)+'\x20')+'\x20'+colorBorder('│',_0x120bbb));});const _0x5d33ad=_0x53ee8e[_0x25242e(0xca)]((_0x5b2972,_0x1c1180)=>_0x5b2972+_0x1c1180+0x3,-0x1);_0x4c40c4[_0x25242e(0xb7)](colorBorder('├'+_0x53ee8e['map'](_0x1bea3b=>'─'[_0x25242e(0xcb)](_0x1bea3b+0x2))[_0x25242e(0xa7)]('┴')+'┤',_0x120bbb));let _0x2e7eeb;_0x59c175?_0x2e7eeb=_0x24fe11+_0x25242e(0xd4)+_0x136569+_0x25242e(0xab):_0x2e7eeb=_0x24fe11+_0x25242e(0xc3)+(_0x24fe11===0x1?'':'s');const _0x168d3e=_0x2e7eeb[_0x25242e(0xb1)](_0x5d33ad-0x2);return _0x4c40c4[_0x25242e(0xb7)](colorBorder('│',_0x120bbb)+'\x20'+_0x168d3e+'\x20'+colorBorder('│',_0x120bbb)),_0x4c40c4['push'](colorBorder('└'+'─'[_0x25242e(0xcb)](_0x5d33ad)+'┘',_0x120bbb)),_0x4c40c4[_0x25242e(0xa7)]('\x0a');}function simplifyType(_0x274eb3){const _0x15f901=a64_0x3647,_0x383abe={'varchar':_0x15f901(0xba),'bigint':_0x15f901(0xc1),'integer':_0x15f901(0xb3),'double':_0x15f901(0xbc),'boolean':'bool','date':_0x15f901(0xaf),'timestamp':_0x15f901(0xbd),'array':_0x15f901(0xa8),'map':_0x15f901(0xa6),'row':_0x15f901(0xd7)},_0x23a441=_0x274eb3['toLowerCase']();for(const [_0x3061e3,_0x162dce]of Object[_0x15f901(0xd3)](_0x383abe)){if(_0x23a441['startsWith'](_0x3061e3))return _0x162dce;}return _0x274eb3['length']>0xa?_0x274eb3[_0x15f901(0xce)](0x0,0xa):_0x274eb3;}export function formatAsJSON(_0x361c02,_0x559437={}){const _0x54f7ef=a64_0x3647;if(_0x361c02[_0x54f7ef(0xa5)]['length']===0x0)return'[]';if(shouldUseColor(_0x559437))return colorizeJSON(_0x361c02['data'],_0x559437);const _0x2e2115=_0x361c02[_0x54f7ef(0xa5)][_0x54f7ef(0xa6)](_0x27eee9=>'\x20\x20'+JSON[_0x54f7ef(0xc7)](_0x27eee9));return'[\x0a'+_0x2e2115['join'](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x16f767,_0x2f6510={}){const _0x1a3c8e=a64_0x3647;if(_0x16f767['data'][_0x1a3c8e(0xd5)]===0x0)return'';if(shouldUseColor(_0x2f6510))return _0x16f767[_0x1a3c8e(0xa5)][_0x1a3c8e(0xa6)](_0x11cb8e=>colorizeJSONCompact(_0x11cb8e,_0x2f6510))['join']('\x0a');return _0x16f767[_0x1a3c8e(0xa5)][_0x1a3c8e(0xa6)](_0x4db5f6=>JSON[_0x1a3c8e(0xc7)](_0x4db5f6))[_0x1a3c8e(0xa7)]('\x0a');}export function formatAsTSV(_0x555110){const _0x11c1bc=a64_0x3647;if(_0x555110[_0x11c1bc(0xa5)][_0x11c1bc(0xd5)]===0x0)return'';const _0x457aaa=[],_0x2358ee=_0x555110['columns']['map'](_0x1cfc49=>_0x1cfc49['name']);return _0x457aaa[_0x11c1bc(0xb7)](_0x2358ee[_0x11c1bc(0xa7)]('\x09')),_0x555110[_0x11c1bc(0xa5)][_0x11c1bc(0xac)](_0x2984a1=>{const _0x121338=_0x11c1bc,_0x4491f3=_0x2358ee[_0x121338(0xa6)](_0x41464e=>{const _0x4ed8db=_0x2984a1[_0x41464e];return formatValueForTSV(_0x4ed8db);});_0x457aaa[_0x121338(0xb7)](_0x4491f3[_0x121338(0xa7)]('\x09'));}),_0x457aaa[_0x11c1bc(0xa7)]('\x0a');}function formatValue(_0x265ac1){const _0x48a83a=a64_0x3647;if(_0x265ac1===null||_0x265ac1===undefined)return'';if(typeof _0x265ac1===_0x48a83a(0xba)){const _0x39e1d3=_0x265ac1[_0x48a83a(0xcd)](/\n/g,'\x5cn')[_0x48a83a(0xcd)](/\r/g,'\x5cr')[_0x48a83a(0xcd)](/\t/g,'\x5ct');return _0x39e1d3;}if(typeof _0x265ac1===_0x48a83a(0xd6))return String(_0x265ac1);if(typeof _0x265ac1==='boolean')return _0x265ac1?'true':'false';if(_0x265ac1 instanceof Date)return _0x265ac1[_0x48a83a(0xbf)]();if(typeof _0x265ac1===_0x48a83a(0xb5))return JSON['stringify'](_0x265ac1);return String(_0x265ac1);}function formatValueForTSV(_0x1d335e){const _0x5bf04e=a64_0x3647;if(_0x1d335e===null||_0x1d335e===undefined)return'';if(typeof _0x1d335e===_0x5bf04e(0xba))return _0x1d335e[_0x5bf04e(0xcd)](/\t/g,'\x5ct')[_0x5bf04e(0xcd)](/\n/g,'\x5cn');if(typeof _0x1d335e==='number'||typeof _0x1d335e===_0x5bf04e(0xd1))return String(_0x1d335e);if(_0x1d335e instanceof Date)return _0x1d335e[_0x5bf04e(0xbf)]();if(typeof _0x1d335e===_0x5bf04e(0xb5))return JSON[_0x5bf04e(0xc7)](_0x1d335e);return String(_0x1d335e);}export function formatQueryResult(_0x2e251c,_0x5e3b11){const _0x3e4fba=a64_0x3647;switch(_0x5e3b11){case _0x3e4fba(0xcf):return formatAsTable(_0x2e251c);case _0x3e4fba(0xb8):return formatAsJSON(_0x2e251c);case _0x3e4fba(0xcc):return formatAsJSONL(_0x2e251c);case _0x3e4fba(0xc4):return formatAsTSV(_0x2e251c);default:return formatAsJSON(_0x2e251c);}}function a64_0x3647(_0x1dfa4e,_0x2280db){const _0xc48878=a64_0xc488();return a64_0x3647=function(_0x3647f3,_0x4e1e3f){_0x3647f3=_0x3647f3-0xa5;let _0x391b3a=_0xc48878[_0x3647f3];return _0x391b3a;},a64_0x3647(_0x1dfa4e,_0x2280db);}function a64_0xc488(){const _0xe8231b=['test','max','date','floor','padEnd','7131eoQEXR','int','log','object','stdout','push','json','slice','string','796994ELczCi','double','timestamp','toFixed','toISOString','type','long','2074684guXgqD','\x20row','tsv','min','No\x20rows\x20returned','stringify','454320FifBZc','874cbDkxQ','reduce','repeat','jsonl','replace','substring','table','12782288GKvZfU','boolean','pow','entries','\x20rows\x20(','length','number','row','data','map','join','array','696087YpsybE','7106745hggQqm','\x20shown)','forEach'];a64_0xc488=function(){return _0xe8231b;};return a64_0xc488();}export function formatBytes(_0x485681){const _0x15425a=a64_0x3647;if(_0x485681===0x0)return'0\x20B';const _0x3bc586=['B','KB','MB','GB','TB'],_0x8b5ce=0x400,_0x2c69d3=Math['floor'](Math['log'](_0x485681)/Math[_0x15425a(0xb4)](_0x8b5ce)),_0x27aa93=_0x485681/Math['pow'](_0x8b5ce,_0x2c69d3),_0xbcd3a6=_0x27aa93>=0xa?0x1:0x2;return _0x27aa93[_0x15425a(0xbe)](_0xbcd3a6)+'\x20'+_0x3bc586[_0x2c69d3];}export function formatRows(_0xf90cf8){const _0x1965f6=a64_0x3647;if(_0xf90cf8==null)return'-';if(_0xf90cf8===0x0)return'0';if(_0xf90cf8<0x3e8)return _0xf90cf8['toString']();const _0x4fa2bd=['','K','M','B','T'],_0x6b08cc=0x3e8,_0x56b01b=Math[_0x1965f6(0xb0)](Math[_0x1965f6(0xb4)](_0xf90cf8)/Math[_0x1965f6(0xb4)](_0x6b08cc)),_0x6ffe5f=_0xf90cf8/Math[_0x1965f6(0xd2)](_0x6b08cc,_0x56b01b),_0x484219=_0x6ffe5f>=0xa?0x1:0x2;return''+_0x6ffe5f[_0x1965f6(0xbe)](_0x484219)+_0x4fa2bd[_0x56b01b];}
@@ -1 +1 @@
1
- function a65_0x4fbe(_0x2a2194,_0x3e7ecc){const _0x4fcf67=a65_0x4fcf();return a65_0x4fbe=function(_0x4fbef1,_0xff0bb5){_0x4fbef1=_0x4fbef1-0x100;let _0xd8cb0e=_0x4fcf67[_0x4fbef1];return _0xd8cb0e;},a65_0x4fbe(_0x2a2194,_0x3e7ecc);}(function(_0x30c286,_0x16853a){const _0x55b0bd=a65_0x4fbe,_0x33d217=_0x30c286();while(!![]){try{const _0x349a3e=parseInt(_0x55b0bd(0x100))/0x1+-parseInt(_0x55b0bd(0x115))/0x2*(-parseInt(_0x55b0bd(0x10d))/0x3)+parseInt(_0x55b0bd(0x104))/0x4*(parseInt(_0x55b0bd(0x10c))/0x5)+-parseInt(_0x55b0bd(0x110))/0x6+parseInt(_0x55b0bd(0x103))/0x7*(-parseInt(_0x55b0bd(0x112))/0x8)+-parseInt(_0x55b0bd(0x114))/0x9+-parseInt(_0x55b0bd(0x116))/0xa;if(_0x349a3e===_0x16853a)break;else _0x33d217['push'](_0x33d217['shift']());}catch(_0x5b61d4){_0x33d217['push'](_0x33d217['shift']());}}}(a65_0x4fcf,0x65c3b));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x2a8aa,_0xc2ba5b){const _0x13a60c=a65_0x4fbe;try{if(_0xc2ba5b){const _0x163a4a=await readFile(_0x2a8aa,_0x13a60c(0x107));try{return JSON[_0x13a60c(0x10b)](_0x163a4a);}catch(_0x4fe3ca){throw new SDKError(ErrorCode[_0x13a60c(0x111)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x2a8aa+'\x27:\x20'+(_0x4fe3ca instanceof Error?_0x4fe3ca[_0x13a60c(0x106)]:String(_0x4fe3ca)));}}else try{return JSON[_0x13a60c(0x10b)](_0x2a8aa);}catch(_0x9c5964){throw new SDKError(ErrorCode[_0x13a60c(0x111)],_0x13a60c(0x113)+(_0x9c5964 instanceof Error?_0x9c5964[_0x13a60c(0x106)]:String(_0x9c5964)));}}catch(_0x47d92d){if(_0x47d92d instanceof SDKError)throw _0x47d92d;if(_0x47d92d instanceof Error&&_0x13a60c(0x102)in _0x47d92d){const _0x455799=_0x47d92d;if(_0x455799[_0x13a60c(0x102)]===_0x13a60c(0x101))throw new SDKError(ErrorCode[_0x13a60c(0x117)],_0x13a60c(0x105)+_0x2a8aa);else{if(_0x455799[_0x13a60c(0x102)]===_0x13a60c(0x109))throw new SDKError(ErrorCode[_0x13a60c(0x108)],_0x13a60c(0x10f)+_0x2a8aa);}}throw new SDKError(ErrorCode[_0x13a60c(0x10e)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x47d92d instanceof Error?_0x47d92d[_0x13a60c(0x106)]:String(_0x47d92d)));}}export async function loadJSONFromOptions(_0x68f8af,_0x105a98){const _0x456715=a65_0x4fbe;if(_0x68f8af&&_0x105a98)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x456715(0x10a));if(_0x68f8af)return await loadJSON(_0x68f8af,![]);if(_0x105a98)return await loadJSON(_0x105a98,!![]);return undefined;}function a65_0x4fcf(){const _0x286169=['741872RjBygr','File\x20not\x20found:\x20','message','utf-8','PERMISSION_DENIED','EACCES','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','15qWYnwF','75QAhGfX','INTERNAL','Permission\x20denied\x20reading\x20file:\x20','1373394jsqWir','INVALID_ARGUMENT','10584MZvcdz','Invalid\x20JSON\x20string:\x20','2546730ZbniUL','30290kOboyu','4940650TpcBQN','NOT_FOUND','512869QYULyq','ENOENT','code','133xWPeld'];a65_0x4fcf=function(){return _0x286169;};return a65_0x4fcf();}
1
+ (function(_0x569001,_0x430c01){const _0x230068=a65_0x4612,_0x1f710d=_0x569001();while(!![]){try{const _0x24fe89=-parseInt(_0x230068(0x1ba))/0x1+-parseInt(_0x230068(0x1ad))/0x2*(parseInt(_0x230068(0x1b0))/0x3)+parseInt(_0x230068(0x1a7))/0x4+-parseInt(_0x230068(0x1b3))/0x5*(parseInt(_0x230068(0x1ac))/0x6)+-parseInt(_0x230068(0x1a8))/0x7+parseInt(_0x230068(0x1b5))/0x8+parseInt(_0x230068(0x1b7))/0x9;if(_0x24fe89===_0x430c01)break;else _0x1f710d['push'](_0x1f710d['shift']());}catch(_0x156fff){_0x1f710d['push'](_0x1f710d['shift']());}}}(a65_0x4f4c,0x87dd9));function a65_0x4612(_0x516c31,_0x3451c2){const _0x4f4c42=a65_0x4f4c();return a65_0x4612=function(_0x46124c,_0x4d297e){_0x46124c=_0x46124c-0x1a7;let _0x48cc93=_0x4f4c42[_0x46124c];return _0x48cc93;},a65_0x4612(_0x516c31,_0x3451c2);}function a65_0x4f4c(){const _0x4a6a78=['EACCES','79444NOfAjQ','INTERNAL','793608yBuksH','3786741deSEls','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','NOT_FOUND','code','126CgtkMp','941242ljXxhh','parse','\x27:\x20','6kufQFM','message','INVALID_ARGUMENT','94730VWMQaw','Failed\x20to\x20load\x20JSON:\x20','5966320HkoPSM','utf-8','14146452JIQSkY','ENOENT'];a65_0x4f4c=function(){return _0x4a6a78;};return a65_0x4f4c();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x281439,_0x2fc68c){const _0x5bfefa=a65_0x4612;try{if(_0x2fc68c){const _0x57952d=await readFile(_0x281439,_0x5bfefa(0x1b6));try{return JSON['parse'](_0x57952d);}catch(_0x3a7bb3){throw new SDKError(ErrorCode[_0x5bfefa(0x1b2)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x281439+_0x5bfefa(0x1af)+(_0x3a7bb3 instanceof Error?_0x3a7bb3['message']:String(_0x3a7bb3)));}}else try{return JSON[_0x5bfefa(0x1ae)](_0x281439);}catch(_0x70642f){throw new SDKError(ErrorCode[_0x5bfefa(0x1b2)],'Invalid\x20JSON\x20string:\x20'+(_0x70642f instanceof Error?_0x70642f[_0x5bfefa(0x1b1)]:String(_0x70642f)));}}catch(_0x1c68c7){if(_0x1c68c7 instanceof SDKError)throw _0x1c68c7;if(_0x1c68c7 instanceof Error&&'code'in _0x1c68c7){const _0x19307b=_0x1c68c7;if(_0x19307b[_0x5bfefa(0x1ab)]===_0x5bfefa(0x1b8))throw new SDKError(ErrorCode[_0x5bfefa(0x1aa)],'File\x20not\x20found:\x20'+_0x281439);else{if(_0x19307b[_0x5bfefa(0x1ab)]===_0x5bfefa(0x1b9))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0x281439);}}throw new SDKError(ErrorCode[_0x5bfefa(0x1bb)],_0x5bfefa(0x1b4)+(_0x1c68c7 instanceof Error?_0x1c68c7[_0x5bfefa(0x1b1)]:String(_0x1c68c7)));}}export async function loadJSONFromOptions(_0x55f7c8,_0x9d4261){const _0x16d575=a65_0x4612;if(_0x55f7c8&&_0x9d4261)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x16d575(0x1a9));if(_0x55f7c8)return await loadJSON(_0x55f7c8,![]);if(_0x9d4261)return await loadJSON(_0x9d4261,!![]);return undefined;}
@@ -1 +1 @@
1
- function a66_0x6684(_0x3503d4,_0x5aad20){const _0x15dbdf=a66_0x15db();return a66_0x6684=function(_0x668456,_0x22ab93){_0x668456=_0x668456-0x9e;let _0x2c27a1=_0x15dbdf[_0x668456];return _0x2c27a1;},a66_0x6684(_0x3503d4,_0x5aad20);}const a66_0x403616=a66_0x6684;function a66_0x15db(){const _0x12d568=['60pFPKUw','claude-4.5-haiku','312585zOQxjZ','151174edIquF','claude-4.5-sonnet','284760wprgKA','10reGbIk','56310wcCqcK','2333154hhtSKX','1405312LyzTWO','5397408VxEBLu','63OkkIYN'];a66_0x15db=function(){return _0x12d568;};return a66_0x15db();}(function(_0x183186,_0x5ed392){const _0x558037=a66_0x6684,_0x1e166e=_0x183186();while(!![]){try{const _0x757c20=parseInt(_0x558037(0xa9))/0x1+-parseInt(_0x558037(0x9e))/0x2+-parseInt(_0x558037(0xa3))/0x3+parseInt(_0x558037(0xa4))/0x4*(parseInt(_0x558037(0xa1))/0x5)+parseInt(_0x558037(0xa7))/0x6*(-parseInt(_0x558037(0xa0))/0x7)+parseInt(_0x558037(0xa5))/0x8+parseInt(_0x558037(0xa6))/0x9*(parseInt(_0x558037(0xa2))/0xa);if(_0x757c20===_0x5ed392)break;else _0x1e166e['push'](_0x1e166e['shift']());}catch(_0xaaaa10){_0x1e166e['push'](_0x1e166e['shift']());}}}(a66_0x15db,0x728ed));const MODEL_ALIASES={'haiku':a66_0x403616(0xa8),'sonnet':a66_0x403616(0x9f)};export function resolveModelAlias(_0x2b5a8f){return MODEL_ALIASES[_0x2b5a8f['toLowerCase']()]||_0x2b5a8f;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a66_0x4f54dc=a66_0x3ebd;function a66_0x3ebd(_0x1a9456,_0x1f0873){const _0x4b6fce=a66_0x4b6f();return a66_0x3ebd=function(_0x3ebdf6,_0x1a2242){_0x3ebdf6=_0x3ebdf6-0x1e6;let _0x3dfa4d=_0x4b6fce[_0x3ebdf6];return _0x3dfa4d;},a66_0x3ebd(_0x1a9456,_0x1f0873);}(function(_0x3ba18d,_0x485d98){const _0x317255=a66_0x3ebd,_0x758089=_0x3ba18d();while(!![]){try{const _0x40e8c6=parseInt(_0x317255(0x1ef))/0x1+parseInt(_0x317255(0x1f1))/0x2+parseInt(_0x317255(0x1e9))/0x3*(parseInt(_0x317255(0x1f2))/0x4)+parseInt(_0x317255(0x1e8))/0x5*(-parseInt(_0x317255(0x1ec))/0x6)+-parseInt(_0x317255(0x1eb))/0x7+parseInt(_0x317255(0x1f0))/0x8*(parseInt(_0x317255(0x1ea))/0x9)+-parseInt(_0x317255(0x1ee))/0xa;if(_0x40e8c6===_0x485d98)break;else _0x758089['push'](_0x758089['shift']());}catch(_0x539331){_0x758089['push'](_0x758089['shift']());}}}(a66_0x4b6f,0x5f689));function a66_0x4b6f(){const _0x5ce0a6=['claude-4.5-haiku','claude-4.5-sonnet','5nWfHTP','1588935azpLkk','67329dMFkUT','4962594WQfDin','4681770wLKrrr','toLowerCase','5558250yTxCSV','458495BkkdgQ','824pPjZkO','1354344QVVXlf','4CcIiQB'];a66_0x4b6f=function(){return _0x5ce0a6;};return a66_0x4b6f();}const MODEL_ALIASES={'haiku':a66_0x4f54dc(0x1e6),'sonnet':a66_0x4f54dc(0x1e7)};export function resolveModelAlias(_0x4eb010){const _0x7e7975=a66_0x4f54dc;return MODEL_ALIASES[_0x4eb010[_0x7e7975(0x1ed)]()]||_0x4eb010;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x390e33,_0x38b586){const _0x4936bb=a67_0x2e65,_0x1856a0=_0x390e33();while(!![]){try{const _0x5df2a6=-parseInt(_0x4936bb(0x9d))/0x1*(parseInt(_0x4936bb(0x97))/0x2)+parseInt(_0x4936bb(0x9e))/0x3+parseInt(_0x4936bb(0x92))/0x4+parseInt(_0x4936bb(0x95))/0x5+-parseInt(_0x4936bb(0x94))/0x6*(-parseInt(_0x4936bb(0x9b))/0x7)+-parseInt(_0x4936bb(0x99))/0x8+-parseInt(_0x4936bb(0x9c))/0x9;if(_0x5df2a6===_0x38b586)break;else _0x1856a0['push'](_0x1856a0['shift']());}catch(_0x244c83){_0x1856a0['push'](_0x1856a0['shift']());}}}(a67_0x2f0d,0xc31a7));export function validateLimitOption(_0x37f0a3){const _0x13445c=a67_0x2e65;if(!Number[_0x13445c(0x9f)](_0x37f0a3))return{'isValid':![],'error':_0x13445c(0x91)+_0x37f0a3+_0x13445c(0x96)};if(_0x37f0a3<=0x0)return{'isValid':![],'error':_0x13445c(0x91)+_0x37f0a3+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x37f0a3};}export function validateTimeoutOption(_0x27025e,_0x2c76df=0x1e){const _0x2fc086=a67_0x2e65;if(_0x27025e===undefined)return{'isValid':!![],'value':_0x2c76df};const _0x62139=typeof _0x27025e===_0x2fc086(0x9a)?_0x27025e:parseFloat(_0x27025e);if(isNaN(_0x62139))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x27025e+_0x2fc086(0x93)};if(_0x62139<=0x0)return{'isValid':![],'error':_0x2fc086(0x98)+_0x62139+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x62139};}function a67_0x2e65(_0x1198cc,_0x4aefda){const _0x2f0d6b=a67_0x2f0d();return a67_0x2e65=function(_0x2e65ff,_0xfab865){_0x2e65ff=_0x2e65ff-0x91;let _0x58b3db=_0x2f0d6b[_0x2e65ff];return _0x58b3db;},a67_0x2e65(_0x1198cc,_0x4aefda);}function a67_0x2f0d(){const _0x4df028=['1990499paAIWN','3942522ebusaX','13NKPdXu','2858913snoqDo','isInteger','Invalid\x20limit\x20value:\x20','2721072kRWPqm','.\x20Must\x20be\x20a\x20number.','12IuRFDQ','6651005iBVGLu','.\x20Must\x20be\x20an\x20integer.','168106qDRmQE','Invalid\x20timeout\x20value:\x20','9618112MDlcdQ','number'];a67_0x2f0d=function(){return _0x4df028;};return a67_0x2f0d();}
1
+ (function(_0x306428,_0x56e168){const _0x118fcb=a67_0x4260,_0x382033=_0x306428();while(!![]){try{const _0x556cc6=-parseInt(_0x118fcb(0x1ed))/0x1+-parseInt(_0x118fcb(0x1e9))/0x2+parseInt(_0x118fcb(0x1f4))/0x3*(parseInt(_0x118fcb(0x1ef))/0x4)+-parseInt(_0x118fcb(0x1e5))/0x5*(parseInt(_0x118fcb(0x1e4))/0x6)+parseInt(_0x118fcb(0x1ea))/0x7+-parseInt(_0x118fcb(0x1f0))/0x8*(parseInt(_0x118fcb(0x1f5))/0x9)+parseInt(_0x118fcb(0x1e8))/0xa*(parseInt(_0x118fcb(0x1ee))/0xb);if(_0x556cc6===_0x56e168)break;else _0x382033['push'](_0x382033['shift']());}catch(_0x20d3a1){_0x382033['push'](_0x382033['shift']());}}}(a67_0x4503,0x676c1));export function validateLimitOption(_0x29c393){const _0x348fea=a67_0x4260;if(!Number[_0x348fea(0x1f2)](_0x29c393))return{'isValid':![],'error':_0x348fea(0x1ec)+_0x29c393+_0x348fea(0x1f1)};if(_0x29c393<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x29c393+_0x348fea(0x1f3)};return{'isValid':!![],'value':_0x29c393};}function a67_0x4260(_0x1ec999,_0x15dd7a){const _0x4503da=a67_0x4503();return a67_0x4260=function(_0x426075,_0x5ed969){_0x426075=_0x426075-0x1e4;let _0x3474fb=_0x4503da[_0x426075];return _0x3474fb;},a67_0x4260(_0x1ec999,_0x15dd7a);}function a67_0x4503(){const _0x5634e8=['number','.\x20Must\x20be\x20a\x20number.','548380qtXtJl','1162908lsgRDr','3751426avWBLz','Invalid\x20timeout\x20value:\x20','Invalid\x20limit\x20value:\x20','726247tZdrWO','374dgMDpk','4EzwKnd','8HceMgX','.\x20Must\x20be\x20an\x20integer.','isInteger','.\x20Must\x20be\x20a\x20positive\x20integer.','678936fKazKL','2766159PUOECI','354dwjetV','49835fNdnqj'];a67_0x4503=function(){return _0x5634e8;};return a67_0x4503();}export function validateTimeoutOption(_0x5d7eec,_0x11e0f3=0x1e){const _0x3f96f7=a67_0x4260;if(_0x5d7eec===undefined)return{'isValid':!![],'value':_0x11e0f3};const _0x4cfce0=typeof _0x5d7eec===_0x3f96f7(0x1e6)?_0x5d7eec:parseFloat(_0x5d7eec);if(isNaN(_0x4cfce0))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x5d7eec+_0x3f96f7(0x1e7)};if(_0x4cfce0<=0x0)return{'isValid':![],'error':_0x3f96f7(0x1eb)+_0x4cfce0+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x4cfce0};}
@@ -1 +1 @@
1
- (function(_0x186ae2,_0x569487){const _0x2aa668=a68_0x214a,_0x3859e8=_0x186ae2();while(!![]){try{const _0x1aa5af=parseInt(_0x2aa668(0x163))/0x1+parseInt(_0x2aa668(0x15a))/0x2+parseInt(_0x2aa668(0x161))/0x3*(-parseInt(_0x2aa668(0x15d))/0x4)+parseInt(_0x2aa668(0x15c))/0x5*(-parseInt(_0x2aa668(0x15f))/0x6)+parseInt(_0x2aa668(0x167))/0x7+-parseInt(_0x2aa668(0x162))/0x8*(parseInt(_0x2aa668(0x159))/0x9)+-parseInt(_0x2aa668(0x160))/0xa*(-parseInt(_0x2aa668(0x166))/0xb);if(_0x1aa5af===_0x569487)break;else _0x3859e8['push'](_0x3859e8['shift']());}catch(_0x3ae023){_0x3859e8['push'](_0x3859e8['shift']());}}}(a68_0x59c1,0xa9f15));function a68_0x214a(_0x1abcea,_0x4adb7e){const _0x59c153=a68_0x59c1();return a68_0x214a=function(_0x214aab,_0x281261){_0x214aab=_0x214aab-0x159;let _0x4ef078=_0x59c153[_0x214aab];return _0x4ef078;},a68_0x214a(_0x1abcea,_0x4adb7e);}import{createServer}from'node:net';export async function isPortAvailable(_0x340963){return new Promise(_0x24b4b2=>{const _0x150873=a68_0x214a,_0x3d5973=createServer();_0x3d5973[_0x150873(0x168)](_0x150873(0x169),_0x9abd9f=>{const _0x52cbc7=_0x150873;_0x9abd9f['code']===_0x52cbc7(0x15e)?_0x24b4b2(![]):_0x24b4b2(![]);}),_0x3d5973[_0x150873(0x168)]('listening',()=>{const _0x121593=_0x150873;_0x3d5973[_0x121593(0x15b)](),_0x24b4b2(!![]);}),_0x3d5973[_0x150873(0x164)](_0x340963,'0.0.0.0');});}export async function findAvailablePort(_0x2ac120=0xfa0,_0x40bfdb=0x64){const _0x4b0a25=a68_0x214a;for(let _0x46248e=0x0;_0x46248e<_0x40bfdb;_0x46248e++){const _0x5c4fb8=_0x2ac120+_0x46248e;if(await isPortAvailable(_0x5c4fb8))return _0x5c4fb8;}throw new Error(_0x4b0a25(0x16a)+_0x2ac120+_0x4b0a25(0x165)+(_0x2ac120+_0x40bfdb-0x1));}function a68_0x59c1(){const _0x2e2dd7=['6903869xxXIfC','once','error','No\x20available\x20port\x20found\x20between\x20','148869RISPwc','714326GuLDTe','close','3090NiSTqv','148qDGhjH','EADDRINUSE','4044qtuQyZ','850zxYObW','48381ycbnMU','544rhixCr','832094zTizMK','listen','\x20and\x20','85228YWrIOL'];a68_0x59c1=function(){return _0x2e2dd7;};return a68_0x59c1();}
1
+ function a68_0xab0a(_0x2f5109,_0x5e5e3a){const _0x14a592=a68_0x14a5();return a68_0xab0a=function(_0xab0a02,_0x183592){_0xab0a02=_0xab0a02-0x1ce;let _0x5c452a=_0x14a592[_0xab0a02];return _0x5c452a;},a68_0xab0a(_0x2f5109,_0x5e5e3a);}(function(_0x2242c2,_0x213e1d){const _0xee72b=a68_0xab0a,_0x47e5da=_0x2242c2();while(!![]){try{const _0x41103b=parseInt(_0xee72b(0x1de))/0x1*(-parseInt(_0xee72b(0x1e3))/0x2)+-parseInt(_0xee72b(0x1d8))/0x3+-parseInt(_0xee72b(0x1cf))/0x4*(parseInt(_0xee72b(0x1e0))/0x5)+parseInt(_0xee72b(0x1d3))/0x6*(parseInt(_0xee72b(0x1dc))/0x7)+-parseInt(_0xee72b(0x1db))/0x8*(-parseInt(_0xee72b(0x1da))/0x9)+-parseInt(_0xee72b(0x1ce))/0xa*(-parseInt(_0xee72b(0x1d6))/0xb)+parseInt(_0xee72b(0x1e2))/0xc;if(_0x41103b===_0x213e1d)break;else _0x47e5da['push'](_0x47e5da['shift']());}catch(_0x37aa29){_0x47e5da['push'](_0x47e5da['shift']());}}}(a68_0x14a5,0xea9e0));import{createServer}from'node:net';export async function isPortAvailable(_0x49fc98){return new Promise(_0x11c320=>{const _0x26f76d=a68_0xab0a,_0x5147c3=createServer();_0x5147c3[_0x26f76d(0x1d1)](_0x26f76d(0x1d4),_0x4ed6a2=>{const _0xe54f39=_0x26f76d;_0x4ed6a2[_0xe54f39(0x1d7)]===_0xe54f39(0x1d0)?_0x11c320(![]):_0x11c320(![]);}),_0x5147c3[_0x26f76d(0x1d1)](_0x26f76d(0x1d5),()=>{const _0x129d7e=_0x26f76d;_0x5147c3[_0x129d7e(0x1d9)](),_0x11c320(!![]);}),_0x5147c3[_0x26f76d(0x1d2)](_0x49fc98,_0x26f76d(0x1dd));});}function a68_0x14a5(){const _0x5f2c9b=['33099264sbpDEJ','618vXRklp','36010ORtPfW','304roQcKG','EADDRINUSE','once','listen','8832CLKuQB','error','listening','4741TRXDpX','code','4965297LgJrnn','close','3916935sRmaLz','24CtovPX','2814RDdcuD','0.0.0.0','6109JBkbRD','\x20and\x20','112100KxuTpI','No\x20available\x20port\x20found\x20between\x20'];a68_0x14a5=function(){return _0x5f2c9b;};return a68_0x14a5();}export async function findAvailablePort(_0x5ae6f1=0xfa0,_0x22f05c=0x64){const _0x2ceea7=a68_0xab0a;for(let _0x453712=0x0;_0x453712<_0x22f05c;_0x453712++){const _0xa567ad=_0x5ae6f1+_0x453712;if(await isPortAvailable(_0xa567ad))return _0xa567ad;}throw new Error(_0x2ceea7(0x1e1)+_0x5ae6f1+_0x2ceea7(0x1df)+(_0x5ae6f1+_0x22f05c-0x1));}
@@ -1 +1 @@
1
- const a69_0x2e0d45=a69_0x2e57;(function(_0x4db339,_0x2278ee){const _0x479099=a69_0x2e57,_0x5c044c=_0x4db339();while(!![]){try{const _0x41a47f=-parseInt(_0x479099(0x83))/0x1*(-parseInt(_0x479099(0x92))/0x2)+-parseInt(_0x479099(0xa6))/0x3*(-parseInt(_0x479099(0x9f))/0x4)+parseInt(_0x479099(0xa5))/0x5*(-parseInt(_0x479099(0xa9))/0x6)+-parseInt(_0x479099(0xa8))/0x7+-parseInt(_0x479099(0x8f))/0x8+parseInt(_0x479099(0xa4))/0x9+-parseInt(_0x479099(0xaa))/0xa*(-parseInt(_0x479099(0xab))/0xb);if(_0x41a47f===_0x2278ee)break;else _0x5c044c['push'](_0x5c044c['shift']());}catch(_0x2aed1a){_0x5c044c['push'](_0x5c044c['shift']());}}}(a69_0x590e,0xb464a));import{execSync}from'node:child_process';function a69_0x2e57(_0x38ddbf,_0x40ee31){const _0x590e3e=a69_0x590e();return a69_0x2e57=function(_0x2e573d,_0xb85f54){_0x2e573d=_0x2e573d-0x83;let _0x507ff3=_0x590e3e[_0x2e573d];return _0x507ff3;},a69_0x2e57(_0x38ddbf,_0x40ee31);}const SHELL_NAMES=new Set([a69_0x2e0d45(0xa2),a69_0x2e0d45(0x8e),'sh',a69_0x2e0d45(0x87),'ksh',a69_0x2e0d45(0xad),a69_0x2e0d45(0x9a),a69_0x2e0d45(0x9e),a69_0x2e0d45(0xa7),a69_0x2e0d45(0x84),'nu',a69_0x2e0d45(0x8b),a69_0x2e0d45(0xac),'xonsh']);function getProcessInfoWindows(_0x3ea8fb){const _0x1636ac=a69_0x2e0d45;try{const _0x529d71=execSync(_0x1636ac(0x8d)+_0x3ea8fb+_0x1636ac(0x88),{'encoding':_0x1636ac(0xa0),'windowsHide':!![]})[_0x1636ac(0x93)](),_0x28817e=_0x529d71['split']('\x0a')[_0x1636ac(0x8a)](_0x34b665=>_0x34b665['trim']());if(_0x28817e[_0x1636ac(0x99)]<0x2)return null;const _0x765d5d=_0x28817e[_0x28817e[_0x1636ac(0x99)]-0x1][_0x1636ac(0x90)](',');if(_0x765d5d[_0x1636ac(0x99)]<0x3)return null;const _0x195d07=_0x765d5d[0x1]?.['trim']()||'',_0x34ef1e=parseInt(_0x765d5d[0x2]?.[_0x1636ac(0x93)]()||'0',0xa);if(isNaN(_0x34ef1e)||!_0x195d07)return null;return{'pid':_0x3ea8fb,'ppid':_0x34ef1e,'comm':_0x195d07['replace'](/\.exe$/i,'')};}catch(_0x449b3e){return process[_0x1636ac(0x86)][_0x1636ac(0x9c)]&&console[_0x1636ac(0x89)](_0x1636ac(0x9d)+_0x3ea8fb+_0x1636ac(0x9b),_0x449b3e),null;}}function getProcessInfoPosix(_0x10f763){const _0x425f4c=a69_0x2e0d45;try{const _0x23f19e=execSync(_0x425f4c(0x98)+_0x10f763+'\x20-o\x20ppid=,comm=',{'encoding':_0x425f4c(0xa0)})['trim'](),[_0x20cd98,..._0x2e4685]=_0x23f19e[_0x425f4c(0x90)](/\s+/),_0x448e6c=parseInt(_0x20cd98,0xa),_0x281010=_0x2e4685[_0x425f4c(0xa1)]('\x20');if(isNaN(_0x448e6c))return null;return{'pid':_0x10f763,'ppid':_0x448e6c,'comm':_0x281010};}catch(_0x3cf0c8){return process[_0x425f4c(0x86)][_0x425f4c(0x9c)]&&console[_0x425f4c(0x89)](_0x425f4c(0x9d)+_0x10f763+'\x20on\x20POSIX:',_0x3cf0c8),null;}}function getProcessInfo(_0x24c025){const _0x3e230d=a69_0x2e0d45;if(process[_0x3e230d(0x85)]==='win32')return getProcessInfoWindows(_0x24c025);return getProcessInfoPosix(_0x24c025);}function isShell(_0xdcdc70){const _0x5a7e48=a69_0x2e0d45,_0x38bf37=_0xdcdc70[_0x5a7e48(0x96)](/^-/,'')[_0x5a7e48(0x90)]('/')['pop']()||'';return SHELL_NAMES['has'](_0x38bf37[_0x5a7e48(0x91)]());}let cachedShellPID;function findShellPID(){const _0xfde0db=a69_0x2e0d45;let _0x3c858f=process[_0xfde0db(0xa3)];const _0x23a797=0xa;let _0x3a7ca9=0x0;while(_0x3a7ca9<_0x23a797){const _0x37c48e=getProcessInfo(_0x3c858f);if(!_0x37c48e){process[_0xfde0db(0x86)][_0xfde0db(0x9c)]&&console[_0xfde0db(0x89)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x3c858f+_0xfde0db(0x97));break;}if(isShell(_0x37c48e['comm']))return _0x37c48e[_0xfde0db(0x95)];if(_0x37c48e[_0xfde0db(0xa3)]===0x0||_0x37c48e[_0xfde0db(0xa3)]===0x1){if(isShell(_0x37c48e[_0xfde0db(0x94)]))return _0x37c48e[_0xfde0db(0x95)];break;}_0x3c858f=_0x37c48e[_0xfde0db(0xa3)],_0x3a7ca9++;}return process[_0xfde0db(0x86)][_0xfde0db(0x9c)]&&console[_0xfde0db(0x89)](_0xfde0db(0x8c)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}function a69_0x590e(){const _0x53e7a2=['952971XOQlms','pwsh','4588108ljTqdX','12ZMrlbA','8182290ZPCouu','22OwYloX','elvish','tcsh','23293LsIIdc','powershell','platform','env','fish','\x20get\x20ParentProcessId,Name\x20/format:csv','error','filter','ion','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','wmic\x20process\x20where\x20ProcessId=','zsh','10294672VqDEFN','split','toLowerCase','22sRPFJG','trim','comm','pid','replace',',\x20using\x20fallback','ps\x20-p\x20','length','csh','\x20on\x20Windows:','DEBUG','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','dash','8zzakNF','utf-8','join','bash','ppid','3192003UMUqCd','503735SHCdTS'];a69_0x590e=function(){return _0x53e7a2;};return a69_0x590e();}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4d0807){try{return process['kill'](_0x4d0807,0x0),!![];}catch{return![];}}
1
+ const a69_0x4ca1c6=a69_0x1dc1;(function(_0x294da3,_0x2e549d){const _0x1926de=a69_0x1dc1,_0x1259f3=_0x294da3();while(!![]){try{const _0x113425=-parseInt(_0x1926de(0xfb))/0x1*(-parseInt(_0x1926de(0xfa))/0x2)+-parseInt(_0x1926de(0xf1))/0x3+-parseInt(_0x1926de(0xee))/0x4*(parseInt(_0x1926de(0xe9))/0x5)+parseInt(_0x1926de(0xdf))/0x6+-parseInt(_0x1926de(0xf6))/0x7*(parseInt(_0x1926de(0xf7))/0x8)+-parseInt(_0x1926de(0xec))/0x9+parseInt(_0x1926de(0xda))/0xa;if(_0x113425===_0x2e549d)break;else _0x1259f3['push'](_0x1259f3['shift']());}catch(_0x54dee9){_0x1259f3['push'](_0x1259f3['shift']());}}}(a69_0x55e0,0x54fbf));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a69_0x4ca1c6(0xd8),a69_0x4ca1c6(0xef),'sh','fish',a69_0x4ca1c6(0x103),a69_0x4ca1c6(0xea),a69_0x4ca1c6(0xe7),a69_0x4ca1c6(0xe5),a69_0x4ca1c6(0xf2),a69_0x4ca1c6(0xe6),'nu',a69_0x4ca1c6(0xdd),'elvish','xonsh']);function getProcessInfoWindows(_0x4ada8d){const _0x2d800c=a69_0x4ca1c6;try{const _0x77018f=execSync(_0x2d800c(0x102)+_0x4ada8d+_0x2d800c(0xe0),{'encoding':_0x2d800c(0xd9),'windowsHide':!![]})[_0x2d800c(0xe8)](),_0x2abd64=_0x77018f[_0x2d800c(0xdb)]('\x0a')[_0x2d800c(0xfc)](_0x2bc56c=>_0x2bc56c[_0x2d800c(0xe8)]());if(_0x2abd64[_0x2d800c(0xe2)]<0x2)return null;const _0x32ba80=_0x2abd64[_0x2abd64[_0x2d800c(0xe2)]-0x1][_0x2d800c(0xdb)](',');if(_0x32ba80[_0x2d800c(0xe2)]<0x3)return null;const _0x1b76d=_0x32ba80[0x1]?.['trim']()||'',_0x2d4036=parseInt(_0x32ba80[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x2d4036)||!_0x1b76d)return null;return{'pid':_0x4ada8d,'ppid':_0x2d4036,'comm':_0x1b76d[_0x2d800c(0xf0)](/\.exe$/i,'')};}catch(_0x446445){return process[_0x2d800c(0xe3)]['DEBUG']&&console[_0x2d800c(0xeb)](_0x2d800c(0xf8)+_0x4ada8d+'\x20on\x20Windows:',_0x446445),null;}}function getProcessInfoPosix(_0x2192df){const _0x3eb6fe=a69_0x4ca1c6;try{const _0x55fa98=execSync('ps\x20-p\x20'+_0x2192df+_0x3eb6fe(0xfe),{'encoding':_0x3eb6fe(0xd9)})['trim'](),[_0x15ef02,..._0x49c0f3]=_0x55fa98[_0x3eb6fe(0xdb)](/\s+/),_0x2ad8b4=parseInt(_0x15ef02,0xa),_0xc48447=_0x49c0f3['join']('\x20');if(isNaN(_0x2ad8b4))return null;return{'pid':_0x2192df,'ppid':_0x2ad8b4,'comm':_0xc48447};}catch(_0xe68cc7){return process['env']['DEBUG']&&console[_0x3eb6fe(0xeb)](_0x3eb6fe(0xf8)+_0x2192df+_0x3eb6fe(0xe4),_0xe68cc7),null;}}function getProcessInfo(_0x1ee9bf){const _0x4b7bd8=a69_0x4ca1c6;if(process['platform']===_0x4b7bd8(0xf5))return getProcessInfoWindows(_0x1ee9bf);return getProcessInfoPosix(_0x1ee9bf);}function isShell(_0x5a4c15){const _0x488d3f=a69_0x4ca1c6,_0x3cc093=_0x5a4c15[_0x488d3f(0xf0)](/^-/,'')[_0x488d3f(0xdb)]('/')[_0x488d3f(0xf3)]()||'';return SHELL_NAMES[_0x488d3f(0xde)](_0x3cc093[_0x488d3f(0xe1)]());}let cachedShellPID;function findShellPID(){const _0x427ca0=a69_0x4ca1c6;let _0x381a9b=process[_0x427ca0(0xed)];const _0x1acb25=0xa;let _0xc81555=0x0;while(_0xc81555<_0x1acb25){const _0x425cd0=getProcessInfo(_0x381a9b);if(!_0x425cd0){process[_0x427ca0(0xe3)][_0x427ca0(0xf4)]&&console[_0x427ca0(0xeb)](_0x427ca0(0xdc)+_0x381a9b+_0x427ca0(0xfd));break;}if(isShell(_0x425cd0[_0x427ca0(0x100)]))return _0x425cd0['pid'];if(_0x425cd0[_0x427ca0(0xed)]===0x0||_0x425cd0[_0x427ca0(0xed)]===0x1){if(isShell(_0x425cd0[_0x427ca0(0x100)]))return _0x425cd0[_0x427ca0(0xff)];break;}_0x381a9b=_0x425cd0['ppid'],_0xc81555++;}return process[_0x427ca0(0xe3)]['DEBUG']&&console[_0x427ca0(0xeb)](_0x427ca0(0x101)),process[_0x427ca0(0xed)];}function a69_0x55e0(){const _0x4f3ca2=['8vqxqcz','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','kill','134JErzSv','2742NjCUMV','filter',',\x20using\x20fallback','\x20-o\x20ppid=,comm=','pid','comm','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','wmic\x20process\x20where\x20ProcessId=','ksh','bash','utf-8','14900120vXVDVF','split','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','ion','has','1664388JXtvmr','\x20get\x20ParentProcessId,Name\x20/format:csv','toLowerCase','length','env','\x20on\x20POSIX:','dash','powershell','csh','trim','2425gCtVSE','tcsh','error','4668174MRcSur','ppid','372OfwrPA','zsh','replace','1214811QxcHSD','pwsh','pop','DEBUG','win32','4440107qcDuiO'];a69_0x55e0=function(){return _0x4f3ca2;};return a69_0x55e0();}function a69_0x1dc1(_0x4c9012,_0x5b189d){const _0x55e098=a69_0x55e0();return a69_0x1dc1=function(_0x1dc127,_0xacf461){_0x1dc127=_0x1dc127-0xd8;let _0x470463=_0x55e098[_0x1dc127];return _0x470463;},a69_0x1dc1(_0x4c9012,_0x5b189d);}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4d5e96){const _0x1b8d4f=a69_0x4ca1c6;try{return process[_0x1b8d4f(0xf9)](_0x4d5e96,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a70_0xe08d(){const _0x276054=['647YcshsY','stdout','toLowerCase','9422720zgfORS','question','23393079ckSJvj','8918900MKJJza','close','66VmnyTD','7038920UJGZqV','684owxAPy','\x20(y/N):\x20','createInterface','520681ctiYXj','3765831wCTbUM'];a70_0xe08d=function(){return _0x276054;};return a70_0xe08d();}(function(_0x124585,_0x2b073b){const _0x27f518=a70_0x4b96,_0x22b644=_0x124585();while(!![]){try{const _0x3987d0=parseInt(_0x27f518(0x16e))/0x1*(parseInt(_0x27f518(0x169))/0x2)+parseInt(_0x27f518(0x16d))/0x3+-parseInt(_0x27f518(0x168))/0x4+-parseInt(_0x27f518(0x165))/0x5+parseInt(_0x27f518(0x167))/0x6*(-parseInt(_0x27f518(0x16c))/0x7)+parseInt(_0x27f518(0x162))/0x8+parseInt(_0x27f518(0x164))/0x9;if(_0x3987d0===_0x2b073b)break;else _0x22b644['push'](_0x22b644['shift']());}catch(_0x1d4018){_0x22b644['push'](_0x22b644['shift']());}}}(a70_0xe08d,0xd9bfb));function a70_0x4b96(_0x2e374b,_0x35d63f){const _0xe08d15=a70_0xe08d();return a70_0x4b96=function(_0x4b96ad,_0x1e7e90){_0x4b96ad=_0x4b96ad-0x161;let _0x3acb9d=_0xe08d15[_0x4b96ad];return _0x3acb9d;},a70_0x4b96(_0x2e374b,_0x35d63f);}import*as a70_0x938ce6 from'readline';export async function confirm(_0x147473){const _0x5196b8=a70_0x4b96,_0x558bf9=a70_0x938ce6[_0x5196b8(0x16b)]({'input':process['stdin'],'output':process[_0x5196b8(0x16f)]});return new Promise(_0x35aa6a=>{const _0x39f2b3=_0x5196b8;_0x558bf9[_0x39f2b3(0x163)](_0x147473+_0x39f2b3(0x16a),_0x10ca45=>{const _0x130a06=_0x39f2b3;_0x558bf9[_0x130a06(0x166)](),_0x35aa6a(_0x10ca45[_0x130a06(0x161)]()==='y'||_0x10ca45[_0x130a06(0x161)]()==='yes');});});}
1
+ (function(_0x154fc1,_0x2e84e3){const _0x2ccbae=a70_0x229c,_0x13e1d0=_0x154fc1();while(!![]){try{const _0x3d46bf=parseInt(_0x2ccbae(0xa0))/0x1*(parseInt(_0x2ccbae(0x9a))/0x2)+parseInt(_0x2ccbae(0x9c))/0x3+parseInt(_0x2ccbae(0x9e))/0x4+parseInt(_0x2ccbae(0x99))/0x5+parseInt(_0x2ccbae(0x98))/0x6*(-parseInt(_0x2ccbae(0x9b))/0x7)+parseInt(_0x2ccbae(0xa7))/0x8+-parseInt(_0x2ccbae(0xa2))/0x9;if(_0x3d46bf===_0x2e84e3)break;else _0x13e1d0['push'](_0x13e1d0['shift']());}catch(_0x252c38){_0x13e1d0['push'](_0x13e1d0['shift']());}}}(a70_0x5b59,0x85aa3));import*as a70_0x3ed06b from'readline';function a70_0x5b59(){const _0x224c3e=['2699FavlFQ','close','7193097pzDbhj','createInterface','yes','stdin','\x20(y/N):\x20','4224256UiqdkI','4210788rWlWeR','3909440XcpFyk','188asWQuX','7becENv','974229FltdRT','question','640612xoIKCb','toLowerCase'];a70_0x5b59=function(){return _0x224c3e;};return a70_0x5b59();}function a70_0x229c(_0x139d7e,_0x3459bd){const _0x5b59ae=a70_0x5b59();return a70_0x229c=function(_0x229ca5,_0x4528fd){_0x229ca5=_0x229ca5-0x98;let _0x1eb21b=_0x5b59ae[_0x229ca5];return _0x1eb21b;},a70_0x229c(_0x139d7e,_0x3459bd);}export async function confirm(_0x3ee6f4){const _0x4a91a9=a70_0x229c,_0x1ccd93=a70_0x3ed06b[_0x4a91a9(0xa3)]({'input':process[_0x4a91a9(0xa5)],'output':process['stdout']});return new Promise(_0x2d6eb1=>{const _0x5f0e9c=_0x4a91a9;_0x1ccd93[_0x5f0e9c(0x9d)](_0x3ee6f4+_0x5f0e9c(0xa6),_0x1a96ab=>{const _0x5b2b58=_0x5f0e9c;_0x1ccd93[_0x5b2b58(0xa1)](),_0x2d6eb1(_0x1a96ab['toLowerCase']()==='y'||_0x1a96ab[_0x5b2b58(0x9f)]()===_0x5b2b58(0xa4));});});}
@@ -1 +1 @@
1
- (function(_0x40beda,_0x4c2ce0){const _0x16c790=a71_0x330d,_0xc114e2=_0x40beda();while(!![]){try{const _0x181cab=-parseInt(_0x16c790(0xc4))/0x1+-parseInt(_0x16c790(0xc8))/0x2*(parseInt(_0x16c790(0xcb))/0x3)+parseInt(_0x16c790(0xc9))/0x4*(-parseInt(_0x16c790(0xcd))/0x5)+parseInt(_0x16c790(0xc6))/0x6+-parseInt(_0x16c790(0xdc))/0x7+parseInt(_0x16c790(0xd1))/0x8+parseInt(_0x16c790(0xc3))/0x9;if(_0x181cab===_0x4c2ce0)break;else _0xc114e2['push'](_0xc114e2['shift']());}catch(_0x12fb61){_0xc114e2['push'](_0xc114e2['shift']());}}}(a71_0x4f20,0x1ce92));export function parsePath(_0x49685e){const _0x24612a=a71_0x330d;if(!_0x49685e||_0x49685e[_0x24612a(0xd9)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0xf94893=_0x49685e['trim']();if(_0xf94893==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x49685e};const _0x4bf000=_0xf94893[_0x24612a(0xce)]('/')?_0xf94893['substring'](0x1):_0xf94893,_0x3dcac8=_0x4bf000[_0x24612a(0xd7)]('/')[_0x24612a(0xd4)](_0x229b77=>_0x229b77!=='');if(_0x3dcac8[_0x24612a(0xd8)]===0x0)throw new Error(_0x24612a(0xcc));const _0x4d952a=_0xf94893[_0x24612a(0xce)]('/')||!isRelativePathSegment(_0x3dcac8[0x0]);for(const _0x1c5672 of _0x3dcac8){validatePathSegment(_0x1c5672);}return{'segments':_0x3dcac8,'isAbsolute':_0x4d952a,'raw':_0x49685e};}function isRelativePathSegment(_0x25985d){return _0x25985d==='.'||_0x25985d==='..';}function validatePathSegment(_0x5438d4){const _0x5d44e8=a71_0x330d;if(_0x5438d4==='')throw new Error(_0x5d44e8(0xc7));if(_0x5438d4==='.'||_0x5438d4==='..')return;if(/[\x00-\x1F\x7F]/[_0x5d44e8(0xdb)](_0x5438d4))throw new Error(_0x5d44e8(0xd3)+_0x5438d4);if(_0x5438d4!==_0x5438d4['trim']()){}}export function validatePath(_0x496762){const _0x415e45=a71_0x330d;if(_0x496762[_0x415e45(0xd2)][_0x415e45(0xd8)]===0x0&&!_0x496762[_0x415e45(0xc5)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x496762['isAbsolute']){if(_0x496762[_0x415e45(0xd2)][0x0]==='..')throw new Error(_0x415e45(0xd5));let _0x358109=0x0;for(const _0xb83454 of _0x496762[_0x415e45(0xd2)]){if(_0xb83454==='..'){if(_0x358109===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x358109--;}else _0xb83454!=='.'&&_0x358109++;}}}export function joinPaths(_0x2730a5,_0x5a52b6){const _0x39caf7=a71_0x330d;if(!_0x2730a5||_0x2730a5==='/')return _0x5a52b6;if(!_0x5a52b6||_0x5a52b6==='.')return _0x2730a5;if(_0x5a52b6[_0x39caf7(0xce)]('/'))return _0x5a52b6;const _0x2fad0c=parsePath(_0x2730a5),_0x172de6=parsePath(_0x5a52b6),_0x154e98=[..._0x2fad0c['segments']];for(const _0x4328c9 of _0x172de6[_0x39caf7(0xd2)]){if(_0x4328c9==='.')continue;else{if(_0x4328c9==='..'){if(_0x154e98[_0x39caf7(0xd8)]===0x0)throw new Error(_0x39caf7(0xd0));_0x154e98[_0x39caf7(0xc2)]();}else _0x154e98['push'](_0x4328c9);}}const _0x60f2eb=_0x154e98['join']('/');return _0x2fad0c['raw'][_0x39caf7(0xce)]('/')?'/'+_0x60f2eb:_0x60f2eb;}export function normalizePath(_0x3e1de1){const _0x120aeb=a71_0x330d,_0x4d7c0a=parsePath(_0x3e1de1),_0x4d4c6e=[];for(const _0x27ba31 of _0x4d7c0a[_0x120aeb(0xd2)]){if(_0x27ba31==='.')continue;else{if(_0x27ba31==='..'){if(_0x4d4c6e[_0x120aeb(0xd8)]===0x0){if(_0x4d7c0a[_0x120aeb(0xc5)])throw new Error(_0x120aeb(0xd0));_0x4d4c6e['push']('..');}else _0x4d4c6e[_0x4d4c6e[_0x120aeb(0xd8)]-0x1]==='..'?_0x4d4c6e[_0x120aeb(0xd6)]('..'):_0x4d4c6e[_0x120aeb(0xc2)]();}else _0x4d4c6e[_0x120aeb(0xd6)](_0x27ba31);}}if(_0x4d4c6e['length']===0x0)return _0x4d7c0a[_0x120aeb(0xc5)]?'/':'.';const _0x17fdd7=_0x4d4c6e[_0x120aeb(0xda)]('/');return _0x4d7c0a[_0x120aeb(0xcf)]['startsWith']('/')?'/'+_0x17fdd7:_0x17fdd7;}export function getParentPath(_0x246a1d){const _0x596d1e=a71_0x330d,_0x5cbeed=parsePath(_0x246a1d);if(_0x5cbeed[_0x596d1e(0xd2)][_0x596d1e(0xd8)]<=0x1)return'/';const _0x4ecaa9=_0x5cbeed[_0x596d1e(0xd2)][_0x596d1e(0xca)](0x0,-0x1)[_0x596d1e(0xda)]('/');return _0x5cbeed[_0x596d1e(0xcf)][_0x596d1e(0xce)]('/')?'/'+_0x4ecaa9:_0x4ecaa9;}function a71_0x330d(_0x40f697,_0x2f5d0e){const _0x4f20ce=a71_0x4f20();return a71_0x330d=function(_0x330dfe,_0x1f6eb6){_0x330dfe=_0x330dfe-0xc2;let _0x36f021=_0x4f20ce[_0x330dfe];return _0x36f021;},a71_0x330d(_0x40f697,_0x2f5d0e);}export function getBaseName(_0x27d763){const _0x1dcd1c=a71_0x330d,_0x245427=parsePath(_0x27d763);return _0x245427[_0x1dcd1c(0xd2)][_0x245427['segments']['length']-0x1]||'';}export function isChildPath(_0x30eecc,_0x5d4557){const _0x11e8e2=a71_0x330d,_0xdf1bfc=parsePath(_0x30eecc),_0x3bfe45=parsePath(_0x5d4557);if(_0xdf1bfc[_0x11e8e2(0xd2)][_0x11e8e2(0xd8)]<=_0x3bfe45[_0x11e8e2(0xd2)][_0x11e8e2(0xd8)])return![];for(let _0x2e6724=0x0;_0x2e6724<_0x3bfe45[_0x11e8e2(0xd2)]['length'];_0x2e6724++){if(_0xdf1bfc[_0x11e8e2(0xd2)][_0x2e6724]!==_0x3bfe45[_0x11e8e2(0xd2)][_0x2e6724])return![];}return!![];}export function splitPath(_0x3579d1){const _0x276538=a71_0x330d,_0x198f08=parsePath(_0x3579d1);if(_0x198f08[_0x276538(0xd2)][_0x276538(0xd8)]===0x0)throw new Error(_0x276538(0xdd));if(_0x198f08[_0x276538(0xd2)][_0x276538(0xd8)]===0x1)return{'parent':_0x198f08[_0x276538(0xd2)][0x0]};return{'parent':_0x198f08['segments'][0x0],'child':_0x198f08[_0x276538(0xd2)][_0x276538(0xca)](0x1)[_0x276538(0xda)]('/')};}function a71_0x4f20(){const _0x17d2b1=['1104278AVSXjk','Cannot\x20split\x20empty\x20path','pop','2293569hTCzZq','3281ZwpxOk','isAbsolute','588534kQdieg','Path\x20segment\x20cannot\x20be\x20empty','54484vTXnRl','304756JfmqVl','slice','3YkEkKb','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','15UbyVft','startsWith','raw','Cannot\x20navigate\x20above\x20root','1458656TKbtIL','segments','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','filter','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','push','split','length','trim','join','test'];a71_0x4f20=function(){return _0x17d2b1;};return a71_0x4f20();}
1
+ (function(_0x5594ae,_0x474afc){const _0x546164=a71_0x1f8e,_0x8840e7=_0x5594ae();while(!![]){try{const _0x49a2b1=parseInt(_0x546164(0x103))/0x1+-parseInt(_0x546164(0xec))/0x2*(parseInt(_0x546164(0x102))/0x3)+-parseInt(_0x546164(0xf2))/0x4+-parseInt(_0x546164(0x10a))/0x5+parseInt(_0x546164(0x10b))/0x6+-parseInt(_0x546164(0x101))/0x7*(parseInt(_0x546164(0xf5))/0x8)+-parseInt(_0x546164(0xf0))/0x9*(-parseInt(_0x546164(0xee))/0xa);if(_0x49a2b1===_0x474afc)break;else _0x8840e7['push'](_0x8840e7['shift']());}catch(_0x2be8e1){_0x8840e7['push'](_0x8840e7['shift']());}}}(a71_0x4a61,0xf0ca1));export function parsePath(_0xc2f580){const _0x352e34=a71_0x1f8e;if(!_0xc2f580||_0xc2f580[_0x352e34(0xfb)]()==='')throw new Error(_0x352e34(0xfc));const _0x205409=_0xc2f580[_0x352e34(0xfb)]();if(_0x205409==='/')return{'segments':[],'isAbsolute':!![],'raw':_0xc2f580};const _0x427dac=_0x205409['startsWith']('/')?_0x205409[_0x352e34(0xfa)](0x1):_0x205409,_0x5cac5a=_0x427dac[_0x352e34(0xf1)]('/')[_0x352e34(0xfd)](_0x427f1d=>_0x427f1d!=='');if(_0x5cac5a['length']===0x0)throw new Error(_0x352e34(0x104));const _0x2bb2e5=_0x205409[_0x352e34(0x108)]('/')||!isRelativePathSegment(_0x5cac5a[0x0]);for(const _0x16250f of _0x5cac5a){validatePathSegment(_0x16250f);}return{'segments':_0x5cac5a,'isAbsolute':_0x2bb2e5,'raw':_0xc2f580};}function isRelativePathSegment(_0xd562e2){return _0xd562e2==='.'||_0xd562e2==='..';}function validatePathSegment(_0x5bbf8a){const _0x5387ff=a71_0x1f8e;if(_0x5bbf8a==='')throw new Error(_0x5387ff(0x100));if(_0x5bbf8a==='.'||_0x5bbf8a==='..')return;if(/[\x00-\x1F\x7F]/[_0x5387ff(0xff)](_0x5bbf8a))throw new Error(_0x5387ff(0xef)+_0x5bbf8a);if(_0x5bbf8a!==_0x5bbf8a['trim']()){}}export function validatePath(_0x35d61f){const _0x17edf6=a71_0x1f8e;if(_0x35d61f[_0x17edf6(0xf6)][_0x17edf6(0x109)]===0x0&&!_0x35d61f['isAbsolute'])throw new Error(_0x17edf6(0xfe));if(_0x35d61f[_0x17edf6(0xf7)]){if(_0x35d61f[_0x17edf6(0xf6)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x1dc271=0x0;for(const _0x4a1a44 of _0x35d61f['segments']){if(_0x4a1a44==='..'){if(_0x1dc271===0x0)throw new Error(_0x17edf6(0xf9));_0x1dc271--;}else _0x4a1a44!=='.'&&_0x1dc271++;}}}export function joinPaths(_0x227b5c,_0x3bfa7a){const _0xac8d1c=a71_0x1f8e;if(!_0x227b5c||_0x227b5c==='/')return _0x3bfa7a;if(!_0x3bfa7a||_0x3bfa7a==='.')return _0x227b5c;if(_0x3bfa7a[_0xac8d1c(0x108)]('/'))return _0x3bfa7a;const _0x489737=parsePath(_0x227b5c),_0x4b874d=parsePath(_0x3bfa7a),_0x21f0a6=[..._0x489737[_0xac8d1c(0xf6)]];for(const _0x4f47eb of _0x4b874d[_0xac8d1c(0xf6)]){if(_0x4f47eb==='.')continue;else{if(_0x4f47eb==='..'){if(_0x21f0a6[_0xac8d1c(0x109)]===0x0)throw new Error(_0xac8d1c(0x106));_0x21f0a6[_0xac8d1c(0x105)]();}else _0x21f0a6['push'](_0x4f47eb);}}const _0x1b84e3=_0x21f0a6[_0xac8d1c(0xf3)]('/');return _0x489737['raw'][_0xac8d1c(0x108)]('/')?'/'+_0x1b84e3:_0x1b84e3;}function a71_0x4a61(){const _0x240df2=['Path\x20must\x20contain\x20at\x20least\x20one\x20segment','pop','Cannot\x20navigate\x20above\x20root','raw','startsWith','length','8136180QrspWK','8050272qZsYSa','2378sqKAQN','Cannot\x20split\x20empty\x20path','11890740jUdlkw','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','27ftNCof','split','1151620nDxdhr','join','slice','2088rNzNSg','segments','isAbsolute','push','Path\x20attempts\x20to\x20navigate\x20above\x20root','substring','trim','Path\x20cannot\x20be\x20empty','filter','Relative\x20path\x20cannot\x20be\x20empty','test','Path\x20segment\x20cannot\x20be\x20empty','30002NvxxsO','3579LcVuCN','529603aMRxFc'];a71_0x4a61=function(){return _0x240df2;};return a71_0x4a61();}export function normalizePath(_0x49f822){const _0x269b6c=a71_0x1f8e,_0x4c2e06=parsePath(_0x49f822),_0x36ab19=[];for(const _0x22444e of _0x4c2e06[_0x269b6c(0xf6)]){if(_0x22444e==='.')continue;else{if(_0x22444e==='..'){if(_0x36ab19[_0x269b6c(0x109)]===0x0){if(_0x4c2e06[_0x269b6c(0xf7)])throw new Error(_0x269b6c(0x106));_0x36ab19[_0x269b6c(0xf8)]('..');}else _0x36ab19[_0x36ab19['length']-0x1]==='..'?_0x36ab19[_0x269b6c(0xf8)]('..'):_0x36ab19[_0x269b6c(0x105)]();}else _0x36ab19[_0x269b6c(0xf8)](_0x22444e);}}if(_0x36ab19[_0x269b6c(0x109)]===0x0)return _0x4c2e06[_0x269b6c(0xf7)]?'/':'.';const _0x1afe1c=_0x36ab19[_0x269b6c(0xf3)]('/');return _0x4c2e06[_0x269b6c(0x107)][_0x269b6c(0x108)]('/')?'/'+_0x1afe1c:_0x1afe1c;}export function getParentPath(_0xeaa049){const _0x3c0600=a71_0x1f8e,_0x3de48b=parsePath(_0xeaa049);if(_0x3de48b[_0x3c0600(0xf6)][_0x3c0600(0x109)]<=0x1)return'/';const _0x54177f=_0x3de48b[_0x3c0600(0xf6)][_0x3c0600(0xf4)](0x0,-0x1)[_0x3c0600(0xf3)]('/');return _0x3de48b['raw'][_0x3c0600(0x108)]('/')?'/'+_0x54177f:_0x54177f;}export function getBaseName(_0x42897d){const _0x478e4e=a71_0x1f8e,_0x223081=parsePath(_0x42897d);return _0x223081[_0x478e4e(0xf6)][_0x223081[_0x478e4e(0xf6)][_0x478e4e(0x109)]-0x1]||'';}export function isChildPath(_0xb626ae,_0x286ed7){const _0x396bfc=a71_0x1f8e,_0x480ace=parsePath(_0xb626ae),_0x57e915=parsePath(_0x286ed7);if(_0x480ace[_0x396bfc(0xf6)][_0x396bfc(0x109)]<=_0x57e915[_0x396bfc(0xf6)][_0x396bfc(0x109)])return![];for(let _0x44df5e=0x0;_0x44df5e<_0x57e915[_0x396bfc(0xf6)][_0x396bfc(0x109)];_0x44df5e++){if(_0x480ace[_0x396bfc(0xf6)][_0x44df5e]!==_0x57e915[_0x396bfc(0xf6)][_0x44df5e])return![];}return!![];}function a71_0x1f8e(_0x39ab71,_0x54f1b9){const _0x4a61ab=a71_0x4a61();return a71_0x1f8e=function(_0x1f8eff,_0x22f067){_0x1f8eff=_0x1f8eff-0xec;let _0x170463=_0x4a61ab[_0x1f8eff];return _0x170463;},a71_0x1f8e(_0x39ab71,_0x54f1b9);}export function splitPath(_0x575729){const _0x33896b=a71_0x1f8e,_0x520d3e=parsePath(_0x575729);if(_0x520d3e['segments'][_0x33896b(0x109)]===0x0)throw new Error(_0x33896b(0xed));if(_0x520d3e[_0x33896b(0xf6)][_0x33896b(0x109)]===0x1)return{'parent':_0x520d3e[_0x33896b(0xf6)][0x0]};return{'parent':_0x520d3e[_0x33896b(0xf6)][0x0],'child':_0x520d3e['segments'][_0x33896b(0xf4)](0x1)['join']('/')};}
@@ -1 +1 @@
1
- function a72_0x4028(_0x4a125c,_0xba2382){const _0x47ac17=a72_0x47ac();return a72_0x4028=function(_0x40287e,_0x45c671){_0x40287e=_0x40287e-0x1e7;let _0x1388de=_0x47ac17[_0x40287e];return _0x1388de;},a72_0x4028(_0x4a125c,_0xba2382);}(function(_0x228601,_0x10a619){const _0x5ef743=a72_0x4028,_0x160285=_0x228601();while(!![]){try{const _0x5d9bc5=-parseInt(_0x5ef743(0x1f1))/0x1+-parseInt(_0x5ef743(0x1ec))/0x2*(parseInt(_0x5ef743(0x1e7))/0x3)+parseInt(_0x5ef743(0x1ea))/0x4+parseInt(_0x5ef743(0x1f3))/0x5*(-parseInt(_0x5ef743(0x1ee))/0x6)+parseInt(_0x5ef743(0x1f2))/0x7*(-parseInt(_0x5ef743(0x1f5))/0x8)+-parseInt(_0x5ef743(0x1e8))/0x9*(parseInt(_0x5ef743(0x1f7))/0xa)+-parseInt(_0x5ef743(0x1ef))/0xb*(-parseInt(_0x5ef743(0x1f0))/0xc);if(_0x5d9bc5===_0x10a619)break;else _0x160285['push'](_0x160285['shift']());}catch(_0x233b81){_0x160285['push'](_0x160285['shift']());}}}(a72_0x47ac,0x9f562));export function parseSegmentRef(_0x4b2864){const _0x1e5bf4=a72_0x4028,_0x28950c=_0x4b2864[_0x1e5bf4(0x1f4)]('/');if(_0x28950c===-0x1)return{'parentId':_0x4b2864};if(_0x28950c===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x4b2864+_0x1e5bf4(0x1e9));const _0x347432=_0x4b2864[_0x1e5bf4(0x1eb)](0x0,_0x28950c),_0x3b57ac=_0x4b2864[_0x1e5bf4(0x1eb)](_0x28950c+0x1);if(_0x3b57ac==='')throw new Error(_0x1e5bf4(0x1f6)+_0x4b2864+_0x1e5bf4(0x1ed));return{'parentId':_0x347432,'childId':_0x3b57ac};}function a72_0x47ac(){const _0x190dd1=['3xCChiV','9cchqEI','.\x20Parent\x20name\x20cannot\x20be\x20empty','4731992LvlWtT','substring','957458fUFtpo','.\x20Child\x20name\x20cannot\x20be\x20empty','6qYSwpW','928873gxzMhn','456sMuyLf','1176788DDrlqp','3843OjCRjL','4923655oaWGQo','indexOf','5400RmGDzQ','Invalid\x20segment\x20reference\x20format:\x20','7283670sgPLYW'];a72_0x47ac=function(){return _0x190dd1;};return a72_0x47ac();}
1
+ function a72_0x134e(){const _0xfc50e6=['4387348NSdQYJ','625RBfMgj','2138658lzXQmw','21324941uXyHtC','indexOf','substring','102258KLRCYx','20HjQPqU','Invalid\x20segment\x20reference\x20format:\x20','1395240xDxWNC','96fyrAQs','25092fFiNku','27443CdjHQe','.\x20Parent\x20name\x20cannot\x20be\x20empty','8KuFtjz'];a72_0x134e=function(){return _0xfc50e6;};return a72_0x134e();}function a72_0x32d7(_0x5d2500,_0x438758){const _0x134e18=a72_0x134e();return a72_0x32d7=function(_0x32d7f9,_0x232481){_0x32d7f9=_0x32d7f9-0xe0;let _0x22eb5b=_0x134e18[_0x32d7f9];return _0x22eb5b;},a72_0x32d7(_0x5d2500,_0x438758);}(function(_0x2a6889,_0x30565c){const _0x473fbc=a72_0x32d7,_0x2d648d=_0x2a6889();while(!![]){try{const _0x3b6a8a=parseInt(_0x473fbc(0xe0))/0x1*(-parseInt(_0x473fbc(0xed))/0x2)+-parseInt(_0x473fbc(0xe5))/0x3+-parseInt(_0x473fbc(0xec))/0x4+-parseInt(_0x473fbc(0xe4))/0x5*(-parseInt(_0x473fbc(0xee))/0x6)+-parseInt(_0x473fbc(0xe3))/0x7*(-parseInt(_0x473fbc(0xe2))/0x8)+-parseInt(_0x473fbc(0xe9))/0x9*(parseInt(_0x473fbc(0xea))/0xa)+parseInt(_0x473fbc(0xe6))/0xb;if(_0x3b6a8a===_0x30565c)break;else _0x2d648d['push'](_0x2d648d['shift']());}catch(_0x5a1515){_0x2d648d['push'](_0x2d648d['shift']());}}}(a72_0x134e,0xa797d));export function parseSegmentRef(_0x446b26){const _0x98fc28=a72_0x32d7,_0xf9e2a6=_0x446b26[_0x98fc28(0xe7)]('/');if(_0xf9e2a6===-0x1)return{'parentId':_0x446b26};if(_0xf9e2a6===0x0)throw new Error(_0x98fc28(0xeb)+_0x446b26+_0x98fc28(0xe1));const _0x1fa39d=_0x446b26[_0x98fc28(0xe8)](0x0,_0xf9e2a6),_0xe65568=_0x446b26[_0x98fc28(0xe8)](_0xf9e2a6+0x1);if(_0xe65568==='')throw new Error(_0x98fc28(0xeb)+_0x446b26+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x1fa39d,'childId':_0xe65568};}
@@ -1 +1 @@
1
- (function(_0x465088,_0x7b956c){const _0x565751=a73_0x5e26,_0x36788c=_0x465088();while(!![]){try{const _0x2c1e1d=parseInt(_0x565751(0xe1))/0x1+-parseInt(_0x565751(0xf2))/0x2*(parseInt(_0x565751(0xd9))/0x3)+-parseInt(_0x565751(0xdc))/0x4*(-parseInt(_0x565751(0xe4))/0x5)+parseInt(_0x565751(0xf1))/0x6*(parseInt(_0x565751(0xec))/0x7)+parseInt(_0x565751(0xd8))/0x8+parseInt(_0x565751(0xe8))/0x9+parseInt(_0x565751(0xeb))/0xa*(-parseInt(_0x565751(0xe0))/0xb);if(_0x2c1e1d===_0x7b956c)break;else _0x36788c['push'](_0x36788c['shift']());}catch(_0x1f8f71){_0x36788c['push'](_0x36788c['shift']());}}}(a73_0x3169,0xe0ab3));import a73_0x436172 from'ora';export function createCommandSpinner(_0x5ef309,_0x56a2ce={}){const _0x1c74f3=a73_0x5e26,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x56a2ce;return a73_0x436172({'text':_0x5ef309,'color':_0x1c74f3(0xe2),'isEnabled':forceEnabled||process[_0x1c74f3(0xda)]['isTTY']&&!verbose});}export async function withSpinner(_0x392f39,_0x394cef,_0x5b531d={}){const _0x10188e=a73_0x5e26,_0x271bed=_0x5b531d[_0x10188e(0xde)]??(()=>Date[_0x10188e(0xed)]()),_0x1053be=createCommandSpinner(_0x392f39,_0x5b531d);_0x1053be[_0x10188e(0xea)]();const _0x8f41cd=_0x271bed();try{const _0x19473e=await _0x394cef(),_0x17a28c=_0x271bed()-_0x8f41cd;return _0x1053be[_0x10188e(0xdf)](),{'data':_0x19473e,'elapsedMs':_0x17a28c};}catch(_0x330522){_0x1053be['stop']();throw _0x330522;}}function a73_0x3169(){const _0x316262=['1026288yGijip','3wyuADr','stdout','text','91656juxIBh','...','clock','stop','44dlaxsj','635803mYfpXN','cyan','\x20[Job\x20ID:\x20','390Aafpda','jobId','toFixed','intervalFactory','9624465TPjTef','isSpinning','start','8518030CndJXh','119ErOGwt','now','replace','extra','floor','632796iaibGd','2172466iuwply'];a73_0x3169=function(){return _0x316262;};return a73_0x3169();}export async function withQuerySpinner(_0x1b8396,_0x150748,_0x185c3f={}){const _0x565300=a73_0x5e26,_0x35bdaa=_0x185c3f[_0x565300(0xde)]??(()=>Date['now']()),_0x32078c=_0x185c3f[_0x565300(0xe7)]??setInterval,_0x521432=createCommandSpinner(_0x1b8396,_0x185c3f);_0x521432[_0x565300(0xea)]();const _0x2df47a=_0x35bdaa(),_0x1d7c6f=_0x1b8396[_0x565300(0xee)](_0x565300(0xdd),''),_0x212703={},_0x4ee14f=()=>{const _0x3080f7=_0x565300;if(!_0x521432[_0x3080f7(0xe9)])return;const _0x3c4036=_0x35bdaa()-_0x2df47a,_0x2d7c78=formatElapsed(_0x3c4036),_0x66aa93=_0x212703['phase']??_0x1d7c6f,_0x31faa9=_0x212703[_0x3080f7(0xe5)]?_0x3080f7(0xe3)+_0x212703['jobId']+']':'',_0x274e35=_0x212703[_0x3080f7(0xef)]?'\x20'+_0x212703[_0x3080f7(0xef)]:'';_0x521432[_0x3080f7(0xdb)]=_0x66aa93+'\x20'+_0x2d7c78+_0x274e35+_0x31faa9;},_0x5d488e=_0x32078c(()=>{_0x4ee14f();},0x3e8),_0x2eebef={'setPhase':_0x5f32ac=>{_0x212703['phase']=_0x5f32ac,_0x4ee14f();},'setJobId':_0x125b99=>{const _0x5319b2=_0x565300;_0x212703[_0x5319b2(0xe5)]=_0x125b99,_0x4ee14f();},'setExtra':_0xd07f11=>{const _0x3b39d4=_0x565300;_0x212703[_0x3b39d4(0xef)]=_0xd07f11,_0x4ee14f();}};_0x4ee14f();try{const _0x240010=await _0x150748(_0x2eebef),_0x1f0bd6=_0x35bdaa()-_0x2df47a;return{'data':_0x240010,'elapsedMs':_0x1f0bd6};}finally{clearInterval(_0x5d488e),_0x521432['stop']();}}function a73_0x5e26(_0x26c468,_0x28185b){const _0x316933=a73_0x3169();return a73_0x5e26=function(_0x5e2670,_0x25d5f8){_0x5e2670=_0x5e2670-0xd8;let _0x265ca4=_0x316933[_0x5e2670];return _0x265ca4;},a73_0x5e26(_0x26c468,_0x28185b);}export function formatElapsed(_0x3f9be9){const _0x635960=a73_0x5e26,_0x205bd3=Math[_0x635960(0xf0)](_0x3f9be9/0x3e8);if(_0x205bd3<0x3c)return(_0x3f9be9/0x3e8)[_0x635960(0xe6)](0x1)+'s';const _0xd33c56=Math['floor'](_0x205bd3/0x3c),_0x5bbb39=_0x205bd3%0x3c;if(_0xd33c56<0x3c)return _0xd33c56+'m\x20'+_0x5bbb39+'s';const _0x3bf08a=Math[_0x635960(0xf0)](_0xd33c56/0x3c),_0xb7be31=_0xd33c56%0x3c;return _0x3bf08a+'h\x20'+_0xb7be31+'m';}
1
+ (function(_0x5bc184,_0x671d57){const _0x227134=a73_0x4174,_0x41f2e9=_0x5bc184();while(!![]){try{const _0x16e393=parseInt(_0x227134(0x139))/0x1+parseInt(_0x227134(0x138))/0x2*(parseInt(_0x227134(0x12b))/0x3)+parseInt(_0x227134(0x133))/0x4+-parseInt(_0x227134(0x12d))/0x5+parseInt(_0x227134(0x12c))/0x6*(parseInt(_0x227134(0x142))/0x7)+parseInt(_0x227134(0x135))/0x8+-parseInt(_0x227134(0x12f))/0x9*(parseInt(_0x227134(0x134))/0xa);if(_0x16e393===_0x671d57)break;else _0x41f2e9['push'](_0x41f2e9['shift']());}catch(_0x34f575){_0x41f2e9['push'](_0x41f2e9['shift']());}}}(a73_0x4134,0xce9a3));import a73_0x13260e from'ora';export function createCommandSpinner(_0x3db584,_0x35c40c={}){const _0x4fce02=a73_0x4174,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x35c40c;return a73_0x13260e({'text':_0x3db584,'color':_0x4fce02(0x136),'isEnabled':forceEnabled||process[_0x4fce02(0x13c)]['isTTY']&&!verbose});}function a73_0x4134(){const _0x1ec80f=['2834272aKtCsc','18710MhMqgU','11147384NxABzW','cyan','intervalFactory','49506nKjOHW','596935AnRXOe','now','stop','stdout','replace','text','extra','jobId','floor','168UCPirR','start','30EHWAIs','127470oPPhTm','7231655cuyYCo','\x20[Job\x20ID:\x20','5598OptVlf','isSpinning','toFixed','phase'];a73_0x4134=function(){return _0x1ec80f;};return a73_0x4134();}export async function withSpinner(_0x369aef,_0x271135,_0x42ceed={}){const _0x5f02b5=a73_0x4174,_0x231ac9=_0x42ceed['clock']??(()=>Date['now']()),_0x27d5c9=createCommandSpinner(_0x369aef,_0x42ceed);_0x27d5c9[_0x5f02b5(0x12a)]();const _0xcdf418=_0x231ac9();try{const _0x2e4cee=await _0x271135(),_0x22400f=_0x231ac9()-_0xcdf418;return _0x27d5c9[_0x5f02b5(0x13b)](),{'data':_0x2e4cee,'elapsedMs':_0x22400f};}catch(_0x4745c6){_0x27d5c9[_0x5f02b5(0x13b)]();throw _0x4745c6;}}export async function withQuerySpinner(_0x1ee641,_0xa4e36b,_0x481d37={}){const _0x2af27b=a73_0x4174,_0x340b81=_0x481d37['clock']??(()=>Date[_0x2af27b(0x13a)]()),_0x815fc6=_0x481d37[_0x2af27b(0x137)]??setInterval,_0xbce422=createCommandSpinner(_0x1ee641,_0x481d37);_0xbce422[_0x2af27b(0x12a)]();const _0x529f1e=_0x340b81(),_0x20a812=_0x1ee641[_0x2af27b(0x13d)]('...',''),_0x545146={},_0x1e269a=()=>{const _0x13eb22=_0x2af27b;if(!_0xbce422[_0x13eb22(0x130)])return;const _0x252ed2=_0x340b81()-_0x529f1e,_0xeaa036=formatElapsed(_0x252ed2),_0x2af166=_0x545146[_0x13eb22(0x132)]??_0x20a812,_0x495dae=_0x545146[_0x13eb22(0x140)]?_0x13eb22(0x12e)+_0x545146[_0x13eb22(0x140)]+']':'',_0x525216=_0x545146[_0x13eb22(0x13f)]?'\x20'+_0x545146[_0x13eb22(0x13f)]:'';_0xbce422[_0x13eb22(0x13e)]=_0x2af166+'\x20'+_0xeaa036+_0x525216+_0x495dae;},_0x267e72=_0x815fc6(()=>{_0x1e269a();},0x3e8),_0x5a74bb={'setPhase':_0xb8cfad=>{const _0x3a604b=_0x2af27b;_0x545146[_0x3a604b(0x132)]=_0xb8cfad,_0x1e269a();},'setJobId':_0x53c390=>{const _0x3413ec=_0x2af27b;_0x545146[_0x3413ec(0x140)]=_0x53c390,_0x1e269a();},'setExtra':_0x5bf849=>{_0x545146['extra']=_0x5bf849,_0x1e269a();}};_0x1e269a();try{const _0x590064=await _0xa4e36b(_0x5a74bb),_0x42aff8=_0x340b81()-_0x529f1e;return{'data':_0x590064,'elapsedMs':_0x42aff8};}finally{clearInterval(_0x267e72),_0xbce422['stop']();}}function a73_0x4174(_0x10138e,_0x466ba7){const _0x4134d5=a73_0x4134();return a73_0x4174=function(_0x41741a,_0x1a246f){_0x41741a=_0x41741a-0x12a;let _0x3a4877=_0x4134d5[_0x41741a];return _0x3a4877;},a73_0x4174(_0x10138e,_0x466ba7);}export function formatElapsed(_0x2135e8){const _0x462780=a73_0x4174,_0x52a76d=Math[_0x462780(0x141)](_0x2135e8/0x3e8);if(_0x52a76d<0x3c)return(_0x2135e8/0x3e8)[_0x462780(0x131)](0x1)+'s';const _0x9f2eb1=Math[_0x462780(0x141)](_0x52a76d/0x3c),_0x516fdf=_0x52a76d%0x3c;if(_0x9f2eb1<0x3c)return _0x9f2eb1+'m\x20'+_0x516fdf+'s';const _0x19c214=Math['floor'](_0x9f2eb1/0x3c),_0x217196=_0x9f2eb1%0x3c;return _0x19c214+'h\x20'+_0x217196+'m';}
@@ -1 +1 @@
1
- function a74_0x51d3(_0x3c7e7c,_0x169164){const _0x28967a=a74_0x2896();return a74_0x51d3=function(_0x51d327,_0x43ccdb){_0x51d327=_0x51d327-0xab;let _0x46394e=_0x28967a[_0x51d327];return _0x46394e;},a74_0x51d3(_0x3c7e7c,_0x169164);}(function(_0x37edb5,_0x3bb152){const _0x5bc363=a74_0x51d3,_0x280085=_0x37edb5();while(!![]){try{const _0x1e4a22=parseInt(_0x5bc363(0xb0))/0x1*(parseInt(_0x5bc363(0xb6))/0x2)+parseInt(_0x5bc363(0xbd))/0x3*(-parseInt(_0x5bc363(0xab))/0x4)+-parseInt(_0x5bc363(0xba))/0x5*(-parseInt(_0x5bc363(0xc4))/0x6)+-parseInt(_0x5bc363(0xc0))/0x7*(parseInt(_0x5bc363(0xaf))/0x8)+parseInt(_0x5bc363(0xb2))/0x9+-parseInt(_0x5bc363(0xad))/0xa*(-parseInt(_0x5bc363(0xc1))/0xb)+-parseInt(_0x5bc363(0xb9))/0xc;if(_0x1e4a22===_0x3bb152)break;else _0x280085['push'](_0x280085['shift']());}catch(_0x459bf3){_0x280085['push'](_0x280085['shift']());}}}(a74_0x2896,0x8defc));function a74_0x2896(){const _0xa2fc23=['code','message','2647464wdSWbd','\x27\x20not\x20found','4yPhCyn','utf-8','103640mQTwek','length','22744BelpoZ','4OCqumR','replace','5607900OuLWwo','Error\x20reading\x20file\x20\x27','trim','Permission\x20denied\x20reading\x20file\x20\x27','510130XvYPiI','Content\x20contains\x20no\x20SQL\x20statements','filter','11050416IioiIR','5PuyRCu','push','ENOENT','2724819vlursS','File\x20\x27','toLowerCase','1239COBsXI','880frVBdK'];a74_0x2896=function(){return _0xa2fc23;};return a74_0x2896();}import{readFileSync}from'fs';export function stripSqlComments(_0x4399dd){const _0x445b88=a74_0x51d3;let _0x5af98c=_0x4399dd[_0x445b88(0xb1)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5af98c=_0x5af98c[_0x445b88(0xb1)](/--.*$/gm,''),_0x5af98c[_0x445b88(0xb4)]();}function isEscaped(_0x3f2928,_0x1a62b0){let _0x72c009=0x0;for(let _0x24604c=_0x1a62b0-0x1;_0x24604c>=0x0&&_0x3f2928[_0x24604c]==='\x5c';_0x24604c--){_0x72c009++;}return _0x72c009%0x2===0x1;}export function splitSqlStatements(_0x43fd26){const _0x2306b=a74_0x51d3,_0x4aa979=stripSqlComments(_0x43fd26);if(!_0x4aa979)throw new Error(_0x2306b(0xb7));const _0x520ed6=[];let _0x1aeb52='',_0x4e6b3a=![],_0x2d4c62=![],_0x473d5a=![];for(let _0x3ca541=0x0;_0x3ca541<_0x43fd26[_0x2306b(0xae)];_0x3ca541++){const _0x371f7f=_0x43fd26[_0x3ca541];if(_0x371f7f==='\x27'&&!isEscaped(_0x43fd26,_0x3ca541)&&!_0x2d4c62&&!_0x473d5a)_0x4e6b3a=!_0x4e6b3a;else{if(_0x371f7f==='\x22'&&!isEscaped(_0x43fd26,_0x3ca541)&&!_0x4e6b3a&&!_0x473d5a)_0x2d4c62=!_0x2d4c62;else _0x371f7f==='`'&&!isEscaped(_0x43fd26,_0x3ca541)&&!_0x4e6b3a&&!_0x2d4c62&&(_0x473d5a=!_0x473d5a);}if(_0x371f7f===';'&&!_0x4e6b3a&&!_0x2d4c62&&!_0x473d5a){const _0x1b963c=_0x1aeb52[_0x2306b(0xb4)]();_0x1b963c&&_0x520ed6[_0x2306b(0xbb)](_0x1b963c),_0x1aeb52='';}else _0x1aeb52+=_0x371f7f;}const _0x28047d=_0x1aeb52[_0x2306b(0xb4)]();_0x28047d&&_0x520ed6[_0x2306b(0xbb)](_0x28047d);const _0x5abbd5=_0x520ed6['map'](_0x18964e=>_0x18964e[_0x2306b(0xb4)]())[_0x2306b(0xb8)](_0x160f78=>{const _0x3dfaed=_0x2306b,_0x54b9e5=stripSqlComments(_0x160f78);return _0x54b9e5[_0x3dfaed(0xae)]>0x0;});if(_0x5abbd5[_0x2306b(0xae)]===0x0)throw new Error(_0x2306b(0xb7));return _0x5abbd5;}export function readFileContent(_0x5b6601){const _0x453daa=a74_0x51d3;try{return readFileSync(_0x5b6601,_0x453daa(0xac));}catch(_0x3bb87e){const _0x4127b0=_0x3bb87e[_0x453daa(0xc2)];if(_0x4127b0===_0x453daa(0xbc))throw new Error(_0x453daa(0xbe)+_0x5b6601+_0x453daa(0xc5));else{if(_0x4127b0==='EACCES')throw new Error(_0x453daa(0xb5)+_0x5b6601+'\x27');else throw new Error(_0x453daa(0xb3)+_0x5b6601+'\x27:\x20'+_0x3bb87e[_0x453daa(0xc3)]);}}}export function readSqlStatementsFromFile(_0x198e4f){const _0x3c8d24=a74_0x51d3,_0x44557c=readFileContent(_0x198e4f);try{return splitSqlStatements(_0x44557c);}catch(_0x2c8807){throw new Error(_0x3c8d24(0xbe)+_0x198e4f+'\x27\x20'+_0x2c8807['message'][_0x3c8d24(0xbf)]());}}
1
+ (function(_0x36652e,_0x4e0aff){const _0x55e58e=a74_0x506a,_0x51854b=_0x36652e();while(!![]){try{const _0x344a7f=parseInt(_0x55e58e(0x1bc))/0x1+parseInt(_0x55e58e(0x1af))/0x2*(parseInt(_0x55e58e(0x1b0))/0x3)+-parseInt(_0x55e58e(0x1c3))/0x4*(parseInt(_0x55e58e(0x1b8))/0x5)+parseInt(_0x55e58e(0x1b1))/0x6+parseInt(_0x55e58e(0x1ab))/0x7*(-parseInt(_0x55e58e(0x1bd))/0x8)+-parseInt(_0x55e58e(0x1b2))/0x9*(-parseInt(_0x55e58e(0x1bb))/0xa)+-parseInt(_0x55e58e(0x1b6))/0xb;if(_0x344a7f===_0x4e0aff)break;else _0x51854b['push'](_0x51854b['shift']());}catch(_0x509cc8){_0x51854b['push'](_0x51854b['shift']());}}}(a74_0x5f1d,0xeccfe));import{readFileSync}from'fs';export function stripSqlComments(_0x5da99a){const _0x4aaf60=a74_0x506a;let _0x315cbb=_0x5da99a[_0x4aaf60(0x1c0)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x315cbb=_0x315cbb[_0x4aaf60(0x1c0)](/--.*$/gm,''),_0x315cbb[_0x4aaf60(0x1b9)]();}function a74_0x5f1d(){const _0x23b58e=['\x27:\x20','Content\x20contains\x20no\x20SQL\x20statements','utf-8','13166076WsGLSK','Error\x20reading\x20file\x20\x27','24305EmSIQo','trim','\x27\x20not\x20found','310DZyTUf','1524972NsvzqQ','2408jJnkDX','Permission\x20denied\x20reading\x20file\x20\x27','filter','replace','code','length','160zYaOcB','21987Jyrvcd','push','File\x20\x27','EACCES','222NPyqMf','24081mexxzi','2626470ucuAcs','131535LusMUl'];a74_0x5f1d=function(){return _0x23b58e;};return a74_0x5f1d();}function a74_0x506a(_0x4ddad1,_0x4050ff){const _0x5f1d25=a74_0x5f1d();return a74_0x506a=function(_0x506ae7,_0x355288){_0x506ae7=_0x506ae7-0x1ab;let _0x203ef6=_0x5f1d25[_0x506ae7];return _0x203ef6;},a74_0x506a(_0x4ddad1,_0x4050ff);}function isEscaped(_0x186f4a,_0x16bda9){let _0xe403c=0x0;for(let _0x1e1d49=_0x16bda9-0x1;_0x1e1d49>=0x0&&_0x186f4a[_0x1e1d49]==='\x5c';_0x1e1d49--){_0xe403c++;}return _0xe403c%0x2===0x1;}export function splitSqlStatements(_0x429856){const _0x419241=a74_0x506a,_0x38f82b=stripSqlComments(_0x429856);if(!_0x38f82b)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x29d8b4=[];let _0x5d251a='',_0x36837d=![],_0x28b1de=![],_0x170c4c=![];for(let _0x54012d=0x0;_0x54012d<_0x429856['length'];_0x54012d++){const _0x1503bc=_0x429856[_0x54012d];if(_0x1503bc==='\x27'&&!isEscaped(_0x429856,_0x54012d)&&!_0x28b1de&&!_0x170c4c)_0x36837d=!_0x36837d;else{if(_0x1503bc==='\x22'&&!isEscaped(_0x429856,_0x54012d)&&!_0x36837d&&!_0x170c4c)_0x28b1de=!_0x28b1de;else _0x1503bc==='`'&&!isEscaped(_0x429856,_0x54012d)&&!_0x36837d&&!_0x28b1de&&(_0x170c4c=!_0x170c4c);}if(_0x1503bc===';'&&!_0x36837d&&!_0x28b1de&&!_0x170c4c){const _0x28cb74=_0x5d251a[_0x419241(0x1b9)]();_0x28cb74&&_0x29d8b4[_0x419241(0x1ac)](_0x28cb74),_0x5d251a='';}else _0x5d251a+=_0x1503bc;}const _0x868a82=_0x5d251a['trim']();_0x868a82&&_0x29d8b4['push'](_0x868a82);const _0x4e9579=_0x29d8b4['map'](_0x4087f7=>_0x4087f7[_0x419241(0x1b9)]())[_0x419241(0x1bf)](_0x5eb54d=>{const _0x18c452=_0x419241,_0x5aa93c=stripSqlComments(_0x5eb54d);return _0x5aa93c[_0x18c452(0x1c2)]>0x0;});if(_0x4e9579['length']===0x0)throw new Error(_0x419241(0x1b4));return _0x4e9579;}export function readFileContent(_0x17d31c){const _0x21afdb=a74_0x506a;try{return readFileSync(_0x17d31c,_0x21afdb(0x1b5));}catch(_0x4a700c){const _0x47f1ab=_0x4a700c[_0x21afdb(0x1c1)];if(_0x47f1ab==='ENOENT')throw new Error('File\x20\x27'+_0x17d31c+_0x21afdb(0x1ba));else{if(_0x47f1ab===_0x21afdb(0x1ae))throw new Error(_0x21afdb(0x1be)+_0x17d31c+'\x27');else throw new Error(_0x21afdb(0x1b7)+_0x17d31c+_0x21afdb(0x1b3)+_0x4a700c['message']);}}}export function readSqlStatementsFromFile(_0x3d7898){const _0x3708ae=a74_0x506a,_0x1fed34=readFileContent(_0x3d7898);try{return splitSqlStatements(_0x1fed34);}catch(_0x569cbe){throw new Error(_0x3708ae(0x1ad)+_0x3d7898+'\x27\x20'+_0x569cbe['message']['toLowerCase']());}}
@@ -1 +1 @@
1
- (function(_0x3dd3ad,_0x13c763){const _0x278d94=a75_0x1337,_0x39eb2e=_0x3dd3ad();while(!![]){try{const _0x5b880e=parseInt(_0x278d94(0x93))/0x1*(-parseInt(_0x278d94(0x88))/0x2)+-parseInt(_0x278d94(0x8e))/0x3*(-parseInt(_0x278d94(0x94))/0x4)+parseInt(_0x278d94(0x8c))/0x5*(parseInt(_0x278d94(0x8a))/0x6)+-parseInt(_0x278d94(0x96))/0x7+parseInt(_0x278d94(0x91))/0x8*(-parseInt(_0x278d94(0x83))/0x9)+-parseInt(_0x278d94(0x8b))/0xa*(parseInt(_0x278d94(0x89))/0xb)+parseInt(_0x278d94(0x95))/0xc;if(_0x5b880e===_0x13c763)break;else _0x39eb2e['push'](_0x39eb2e['shift']());}catch(_0x57ef55){_0x39eb2e['push'](_0x39eb2e['shift']());}}}(a75_0x14eb,0x237c0));function a75_0x14eb(){const _0x3eabc1=['parse','273490jXJKTW','812jVVmrY','12109632LfYUms','1286145ZimVuH','data','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','event','34893bEKoUq','indexOf','body','startsWith','pop','2qoipxz','11qILxnX','104784WpgKpl','1930640GHVovW','10DvHrEG','Response\x20body\x20is\x20null','282KmmwXM','getReader','slice','552SLOkyp'];a75_0x14eb=function(){return _0x3eabc1;};return a75_0x14eb();}function a75_0x1337(_0x48f07e,_0x386802){const _0x14ebcb=a75_0x14eb();return a75_0x1337=function(_0x133763,_0x5ea42e){_0x133763=_0x133763-0x82;let _0x366068=_0x14ebcb[_0x133763];return _0x366068;},a75_0x1337(_0x48f07e,_0x386802);}export async function*parseSSEStream(_0x2f2208){const _0x4408bf=a75_0x1337;if(!_0x2f2208[_0x4408bf(0x85)])throw new Error(_0x4408bf(0x8d));const _0x553c8f=_0x2f2208['body'][_0x4408bf(0x8f)](),_0x404725=new TextDecoder();let _0x3b9344='',_0x1e04e6={};try{while(!![]){const {done:_0x3c4899,value:_0x2306a2}=await _0x553c8f['read']();if(_0x3c4899){_0x1e04e6[_0x4408bf(0x97)]&&(yield parseSSEData(_0x1e04e6[_0x4408bf(0x97)]));break;}_0x3b9344+=_0x404725['decode'](_0x2306a2,{'stream':!![]});const _0x569938=_0x3b9344['split']('\x0a');_0x3b9344=_0x569938[_0x4408bf(0x87)]()||'';for(const _0x12b467 of _0x569938){if(_0x12b467['trim']()===''){_0x1e04e6[_0x4408bf(0x97)]&&(yield parseSSEData(_0x1e04e6[_0x4408bf(0x97)]),_0x1e04e6={});continue;}if(_0x12b467[_0x4408bf(0x86)](':'))continue;const _0x1eeb1b=_0x12b467[_0x4408bf(0x84)](':');if(_0x1eeb1b===-0x1)continue;const _0x2ca382=_0x12b467[_0x4408bf(0x90)](0x0,_0x1eeb1b);let _0x565736=_0x12b467[_0x4408bf(0x90)](_0x1eeb1b+0x1);_0x565736[_0x4408bf(0x86)]('\x20')&&(_0x565736=_0x565736['slice'](0x1));switch(_0x2ca382){case'event':_0x1e04e6[_0x4408bf(0x82)]=_0x565736;break;case _0x4408bf(0x97):_0x1e04e6['data']=_0x1e04e6[_0x4408bf(0x97)]?_0x1e04e6[_0x4408bf(0x97)]+'\x0a'+_0x565736:_0x565736;break;case'id':_0x1e04e6['id']=_0x565736;break;}}}}finally{_0x553c8f['releaseLock']();}}function parseSSEData(_0x2277c0){const _0x5c9907=a75_0x1337;try{return JSON[_0x5c9907(0x92)](_0x2277c0);}catch(_0x1dc092){throw new Error(_0x5c9907(0x98)+_0x2277c0,{'cause':_0x1dc092});}}
1
+ (function(_0x59ba36,_0x2ba471){const _0xad004a=a75_0x9460,_0x27f058=_0x59ba36();while(!![]){try{const _0x1ae34e=parseInt(_0xad004a(0x9e))/0x1*(parseInt(_0xad004a(0xac))/0x2)+-parseInt(_0xad004a(0xa2))/0x3*(parseInt(_0xad004a(0xaa))/0x4)+parseInt(_0xad004a(0x9a))/0x5*(-parseInt(_0xad004a(0x9c))/0x6)+parseInt(_0xad004a(0xb0))/0x7*(-parseInt(_0xad004a(0xab))/0x8)+parseInt(_0xad004a(0xa6))/0x9+-parseInt(_0xad004a(0x9b))/0xa*(-parseInt(_0xad004a(0xa0))/0xb)+parseInt(_0xad004a(0xa4))/0xc;if(_0x1ae34e===_0x2ba471)break;else _0x27f058['push'](_0x27f058['shift']());}catch(_0x3bbedc){_0x27f058['push'](_0x27f058['shift']());}}}(a75_0x352b,0xd63ea));function a75_0x9460(_0x6cc738,_0x477e06){const _0x352b84=a75_0x352b();return a75_0x9460=function(_0x9460be,_0x1cce22){_0x9460be=_0x9460be-0x9a;let _0x30dcc2=_0x352b84[_0x9460be];return _0x30dcc2;},a75_0x9460(_0x6cc738,_0x477e06);}export async function*parseSSEStream(_0x5e887f){const _0x598774=a75_0x9460;if(!_0x5e887f[_0x598774(0xae)])throw new Error(_0x598774(0xa9));const _0x5aa17b=_0x5e887f['body'][_0x598774(0xaf)](),_0x5a48aa=new TextDecoder();let _0x150838='',_0x432d49={};try{while(!![]){const {done:_0xfe9536,value:_0x1b1053}=await _0x5aa17b['read']();if(_0xfe9536){_0x432d49['data']&&(yield parseSSEData(_0x432d49[_0x598774(0xa1)]));break;}_0x150838+=_0x5a48aa['decode'](_0x1b1053,{'stream':!![]});const _0x2444b2=_0x150838['split']('\x0a');_0x150838=_0x2444b2[_0x598774(0x9f)]()||'';for(const _0x1f00c4 of _0x2444b2){if(_0x1f00c4['trim']()===''){_0x432d49[_0x598774(0xa1)]&&(yield parseSSEData(_0x432d49[_0x598774(0xa1)]),_0x432d49={});continue;}if(_0x1f00c4['startsWith'](':'))continue;const _0x5cdbc8=_0x1f00c4[_0x598774(0xa3)](':');if(_0x5cdbc8===-0x1)continue;const _0x23d858=_0x1f00c4[_0x598774(0xa7)](0x0,_0x5cdbc8);let _0x4b6487=_0x1f00c4[_0x598774(0xa7)](_0x5cdbc8+0x1);_0x4b6487[_0x598774(0x9d)]('\x20')&&(_0x4b6487=_0x4b6487[_0x598774(0xa7)](0x1));switch(_0x23d858){case _0x598774(0xad):_0x432d49['event']=_0x4b6487;break;case _0x598774(0xa1):_0x432d49['data']=_0x432d49[_0x598774(0xa1)]?_0x432d49[_0x598774(0xa1)]+'\x0a'+_0x4b6487:_0x4b6487;break;case'id':_0x432d49['id']=_0x4b6487;break;}}}}finally{_0x5aa17b['releaseLock']();}}function parseSSEData(_0x4f7b2b){const _0x25cece=a75_0x9460;try{return JSON[_0x25cece(0xa5)](_0x4f7b2b);}catch(_0x1c350a){throw new Error(_0x25cece(0xa8)+_0x4f7b2b,{'cause':_0x1c350a});}}function a75_0x352b(){const _0xaf46c1=['9093015oBXlCs','slice','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','Response\x20body\x20is\x20null','18024uOnkOE','119656NastmR','54Tvryvw','event','body','getReader','574wZwKqA','4235045GAajKW','730zsKoHQ','6vhXxsq','startsWith','63743BgCRdr','pop','123827eopCgL','data','990Xwdhgu','indexOf','10618224qQdkWt','parse'];a75_0x352b=function(){return _0xaf46c1;};return a75_0x352b();}
@@ -1 +1 @@
1
- (function(_0x324404,_0x320cea){const _0x3e14e0=a76_0x1090,_0x3ac7ca=_0x324404();while(!![]){try{const _0x2e6dbd=-parseInt(_0x3e14e0(0x12a))/0x1*(parseInt(_0x3e14e0(0x11e))/0x2)+-parseInt(_0x3e14e0(0x11f))/0x3+-parseInt(_0x3e14e0(0x120))/0x4+-parseInt(_0x3e14e0(0x11c))/0x5*(-parseInt(_0x3e14e0(0x128))/0x6)+parseInt(_0x3e14e0(0x11d))/0x7+parseInt(_0x3e14e0(0x121))/0x8+parseInt(_0x3e14e0(0x126))/0x9;if(_0x2e6dbd===_0x320cea)break;else _0x3ac7ca['push'](_0x3ac7ca['shift']());}catch(_0x19feb4){_0x3ac7ca['push'](_0x3ac7ca['shift']());}}}(a76_0x3210,0x2398b));import a76_0x379633 from'string-width';export function stringWidth(_0x3c44e3){return a76_0x379633(_0x3c44e3);}export function padEnd(_0x4b55e8,_0x1a2e87){const _0x157f0e=stringWidth(_0x4b55e8);if(_0x157f0e>=_0x1a2e87)return _0x4b55e8;return _0x4b55e8+'\x20'['repeat'](_0x1a2e87-_0x157f0e);}export function padStart(_0x484721,_0x39b05a){const _0xe83fe4=a76_0x1090,_0x3dd4e3=stringWidth(_0x484721);if(_0x3dd4e3>=_0x39b05a)return _0x484721;return'\x20'[_0xe83fe4(0x11b)](_0x39b05a-_0x3dd4e3)+_0x484721;}function a76_0x1090(_0x603a17,_0x44886b){const _0x3210ff=a76_0x3210();return a76_0x1090=function(_0x109015,_0x309211){_0x109015=_0x109015-0x114;let _0x9210a9=_0x3210ff[_0x109015];return _0x9210a9;},a76_0x1090(_0x603a17,_0x44886b);}export function centerAlign(_0x5dd0b5,_0x53adf7){const _0x93853=a76_0x1090,_0x405565=stringWidth(_0x5dd0b5);if(_0x405565>_0x53adf7){if(_0x53adf7<=0x1)return'…'[_0x93853(0x124)](0x0,_0x53adf7);let _0x11e616=_0x5dd0b5;while(stringWidth(_0x11e616+'…')>_0x53adf7){_0x11e616=_0x11e616[_0x93853(0x11a)](0x0,-0x1);}return _0x11e616+'…';}if(_0x405565===_0x53adf7)return _0x5dd0b5;const _0x5f927f=_0x53adf7-_0x405565,_0x2dab43=Math[_0x93853(0x12b)](_0x5f927f/0x2),_0x41e46d=_0x5f927f-_0x2dab43;return'\x20'[_0x93853(0x11b)](_0x2dab43)+_0x5dd0b5+'\x20'[_0x93853(0x11b)](_0x41e46d);}export function escapeStringLiteral(_0x230e45){const _0x1dacd3=a76_0x1090;if(!_0x230e45||_0x230e45[_0x1dacd3(0x118)]()[_0x1dacd3(0x123)]===0x0)throw new Error(_0x1dacd3(0x116));const _0x104450=_0x230e45[_0x1dacd3(0x122)](/'/g,'\x27\x27');return'\x27'+_0x104450+'\x27';}export function globToLike(_0x467da4){const _0x25c5f2=a76_0x1090;let _0x4419e5=_0x467da4['replace'](/\\/g,'\x5c\x5c')[_0x25c5f2(0x122)](/%/g,'\x5c%')[_0x25c5f2(0x122)](/_/g,'\x5c_');return _0x4419e5=_0x4419e5[_0x25c5f2(0x122)](/\*/g,'%')['replace'](/\?/g,'_'),_0x4419e5;}export function buildLikePattern(_0x298ba7){const _0x550d67=a76_0x1090;if(!_0x298ba7||_0x298ba7[_0x550d67(0x118)]()[_0x550d67(0x123)]===0x0)throw new Error(_0x550d67(0x114));const _0x456522=globToLike(_0x298ba7),_0x52e0dc=_0x456522[_0x550d67(0x122)](/'/g,'\x27\x27');return'\x27'+_0x52e0dc+'\x27';}export function matchGlobPattern(_0x3b6797,_0x5efc4c){const _0x1c3127=a76_0x1090,_0x52e877=_0x5efc4c[_0x1c3127(0x122)](/[.+^${}()|[\]\\]/g,_0x1c3127(0x125))[_0x1c3127(0x122)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x539a78=new RegExp('^'+_0x52e877+'$');return _0x539a78['test'](_0x3b6797);}function a76_0x3210(){const _0xffd694=['replace','length','substring','\x5c$&','2804373cXLnoN','unknown','262572ISWcLH','USER','37qffRYr','floor','padStart','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','env','Cannot\x20escape\x20empty\x20string\x20literal','random','trim','toString','slice','repeat','30bWJdEF','387282FpIPeN','14396dRiihi','746427Nppgtf','189192RYdpQd','629928TknuJU'];a76_0x3210=function(){return _0xffd694;};return a76_0x3210();}export function getSanitizedUsername(){const _0x447db9=a76_0x1090,_0x400080=process[_0x447db9(0x115)][_0x447db9(0x129)]||process['env']['USERNAME']||_0x447db9(0x127);return _0x400080[_0x447db9(0x122)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x7733a6=a76_0x1090,_0x8d0622=Math[_0x7733a6(0x12b)](Math[_0x7733a6(0x117)]()*0xfffff);return _0x8d0622[_0x7733a6(0x119)](0x10)[_0x7733a6(0x12c)](0x5,'0');}
1
+ function a76_0x2720(_0x2b07eb,_0x5b5f5c){const _0x510751=a76_0x5107();return a76_0x2720=function(_0x272002,_0x889f54){_0x272002=_0x272002-0x16b;let _0x2f3da0=_0x510751[_0x272002];return _0x2f3da0;},a76_0x2720(_0x2b07eb,_0x5b5f5c);}(function(_0x177b0d,_0x37dcbe){const _0x17bfba=a76_0x2720,_0x1e0f23=_0x177b0d();while(!![]){try{const _0x214528=-parseInt(_0x17bfba(0x17e))/0x1*(-parseInt(_0x17bfba(0x173))/0x2)+parseInt(_0x17bfba(0x170))/0x3+parseInt(_0x17bfba(0x178))/0x4*(-parseInt(_0x17bfba(0x181))/0x5)+parseInt(_0x17bfba(0x179))/0x6+-parseInt(_0x17bfba(0x172))/0x7*(parseInt(_0x17bfba(0x16d))/0x8)+-parseInt(_0x17bfba(0x175))/0x9+parseInt(_0x17bfba(0x171))/0xa;if(_0x214528===_0x37dcbe)break;else _0x1e0f23['push'](_0x1e0f23['shift']());}catch(_0x21b522){_0x1e0f23['push'](_0x1e0f23['shift']());}}}(a76_0x5107,0xac5f4));import a76_0x5c0ed0 from'string-width';export function stringWidth(_0x2d8980){return a76_0x5c0ed0(_0x2d8980);}export function padEnd(_0x364a10,_0x2d3036){const _0x5123e4=a76_0x2720,_0x2a4397=stringWidth(_0x364a10);if(_0x2a4397>=_0x2d3036)return _0x364a10;return _0x364a10+'\x20'[_0x5123e4(0x174)](_0x2d3036-_0x2a4397);}export function padStart(_0x17d6fa,_0x3985ae){const _0x25346c=stringWidth(_0x17d6fa);if(_0x25346c>=_0x3985ae)return _0x17d6fa;return'\x20'['repeat'](_0x3985ae-_0x25346c)+_0x17d6fa;}export function centerAlign(_0x1549ef,_0x5a3b86){const _0x14a11e=a76_0x2720,_0xa230e4=stringWidth(_0x1549ef);if(_0xa230e4>_0x5a3b86){if(_0x5a3b86<=0x1)return'…'[_0x14a11e(0x17b)](0x0,_0x5a3b86);let _0x2b97ab=_0x1549ef;while(stringWidth(_0x2b97ab+'…')>_0x5a3b86){_0x2b97ab=_0x2b97ab[_0x14a11e(0x183)](0x0,-0x1);}return _0x2b97ab+'…';}if(_0xa230e4===_0x5a3b86)return _0x1549ef;const _0x17f550=_0x5a3b86-_0xa230e4,_0x59f851=Math[_0x14a11e(0x182)](_0x17f550/0x2),_0x594496=_0x17f550-_0x59f851;return'\x20'[_0x14a11e(0x174)](_0x59f851)+_0x1549ef+'\x20'[_0x14a11e(0x174)](_0x594496);}export function escapeStringLiteral(_0xcb611e){const _0x34ee22=a76_0x2720;if(!_0xcb611e||_0xcb611e[_0x34ee22(0x176)]()[_0x34ee22(0x17a)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2fa9ca=_0xcb611e[_0x34ee22(0x184)](/'/g,'\x27\x27');return'\x27'+_0x2fa9ca+'\x27';}function a76_0x5107(){const _0x35aaf7=['43148ZrRZJK','849612EpiGZg','length','substring','\x5c$&','test','564178DvjDLf','padStart','toLowerCase','45CiZieF','floor','slice','replace','unknown','USER','9804016kNoNHV','random','env','3881118AiyKpg','1854890AsQiMe','7jOLYEV','4sBcyCo','repeat','6484788ANVpsq','trim','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string'];a76_0x5107=function(){return _0x35aaf7;};return a76_0x5107();}export function globToLike(_0x177bcd){const _0x352012=a76_0x2720;let _0xc0c3d=_0x177bcd[_0x352012(0x184)](/\\/g,'\x5c\x5c')[_0x352012(0x184)](/%/g,'\x5c%')[_0x352012(0x184)](/_/g,'\x5c_');return _0xc0c3d=_0xc0c3d['replace'](/\*/g,'%')[_0x352012(0x184)](/\?/g,'_'),_0xc0c3d;}export function buildLikePattern(_0x3c724e){const _0x147a30=a76_0x2720;if(!_0x3c724e||_0x3c724e[_0x147a30(0x176)]()[_0x147a30(0x17a)]===0x0)throw new Error(_0x147a30(0x177));const _0x2111cd=globToLike(_0x3c724e),_0xb7f22a=_0x2111cd['replace'](/'/g,'\x27\x27');return'\x27'+_0xb7f22a+'\x27';}export function matchGlobPattern(_0x1ccf1e,_0x3c1629){const _0x3c3152=a76_0x2720,_0x5a2375=_0x3c1629[_0x3c3152(0x184)](/[.+^${}()|[\]\\]/g,_0x3c3152(0x17c))[_0x3c3152(0x184)](/\*/g,'.*')[_0x3c3152(0x184)](/\?/g,'.'),_0x18763f=new RegExp('^'+_0x5a2375+'$');return _0x18763f[_0x3c3152(0x17d)](_0x1ccf1e);}export function getSanitizedUsername(){const _0x534332=a76_0x2720,_0x23a1f9=process[_0x534332(0x16f)][_0x534332(0x16c)]||process[_0x534332(0x16f)]['USERNAME']||_0x534332(0x16b);return _0x23a1f9[_0x534332(0x184)](/[^a-zA-Z0-9]/g,'')[_0x534332(0x180)]();}export function generateRandomHex(){const _0x45e052=a76_0x2720,_0x523157=Math[_0x45e052(0x182)](Math[_0x45e052(0x16e)]()*0xfffff);return _0x523157['toString'](0x10)[_0x45e052(0x17f)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x321e75,_0x27498d){const _0x2a741f=a77_0xeac2,_0x3678ac=_0x321e75();while(!![]){try{const _0x48a4e8=parseInt(_0x2a741f(0x1ba))/0x1*(-parseInt(_0x2a741f(0x1c4))/0x2)+-parseInt(_0x2a741f(0x1c9))/0x3*(-parseInt(_0x2a741f(0x1c6))/0x4)+parseInt(_0x2a741f(0x1c7))/0x5+parseInt(_0x2a741f(0x1c0))/0x6+-parseInt(_0x2a741f(0x1be))/0x7+parseInt(_0x2a741f(0x1bc))/0x8+-parseInt(_0x2a741f(0x1ce))/0x9*(parseInt(_0x2a741f(0x1c5))/0xa);if(_0x48a4e8===_0x27498d)break;else _0x3678ac['push'](_0x3678ac['shift']());}catch(_0x310505){_0x3678ac['push'](_0x3678ac['shift']());}}}(a77_0x2815,0x5bbdb));function hasWildcard(_0x26d5e5){return _0x26d5e5['includes']('*')||_0x26d5e5['includes']('?');}export function parseTableReference(_0x56e320){const _0x48fd8d=a77_0xeac2;if(!_0x56e320||_0x56e320['trim']()['length']===0x0)throw new Error(_0x48fd8d(0x1bf));const _0x12bc3d=_0x56e320[_0x48fd8d(0x1bb)](),_0x5f9e7c={'original':_0x12bc3d},_0x53b2c8=_0x12bc3d[_0x48fd8d(0x1bd)]('.');if(_0x53b2c8[_0x48fd8d(0x1cf)]===0x1){const _0x9b9c1a=_0x53b2c8[0x0];if(!_0x9b9c1a)throw new Error(_0x48fd8d(0x1cc));_0x5f9e7c[_0x48fd8d(0x1ca)]=_0x9b9c1a;}else{if(_0x53b2c8['length']===0x2){const [_0x4f228a,_0x1ec896]=_0x53b2c8;if(!_0x4f228a)throw new Error(_0x48fd8d(0x1c1));if(!_0x1ec896)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x5f9e7c[_0x48fd8d(0x1b8)]=_0x4f228a,_0x5f9e7c[_0x48fd8d(0x1ca)]=_0x1ec896;}else{if(_0x53b2c8[_0x48fd8d(0x1cf)]===0x3){const [_0x22c5e0,_0x48d25f,_0x32537e]=_0x53b2c8;if(!_0x22c5e0||!_0x48d25f||!_0x32537e)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x5f9e7c['catalog']=_0x22c5e0,_0x5f9e7c[_0x48fd8d(0x1b8)]=_0x48d25f,_0x5f9e7c['table']=_0x32537e;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x5f9e7c;}export function formatTableReference(_0x592c8e){const _0x3aadb3=a77_0xeac2,_0x41d206=[];return _0x592c8e[_0x3aadb3(0x1c3)]&&_0x41d206[_0x3aadb3(0x1c2)](_0x592c8e[_0x3aadb3(0x1c3)]),_0x592c8e['database']&&_0x41d206[_0x3aadb3(0x1c2)](_0x592c8e['database']),_0x592c8e[_0x3aadb3(0x1ca)]&&_0x41d206[_0x3aadb3(0x1c2)](_0x592c8e['table']),_0x41d206[_0x3aadb3(0x1b9)]('.');}function a77_0xeac2(_0x40f7f0,_0x53ded){const _0x28152f=a77_0x2815();return a77_0xeac2=function(_0xeac22f,_0x16049f){_0xeac22f=_0xeac22f-0x1b8;let _0x54fab7=_0x28152f[_0xeac22f];return _0x54fab7;},a77_0xeac2(_0x40f7f0,_0x53ded);}export function validateTableListReference(_0x556d84){return undefined;}function a77_0x2815(){const _0xa3b11=['length','database','join','1KvRozF','trim','502888aWaTxD','split','1685404TJIlZs','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','2015064qSrbyG','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','push','catalog','193736gXnuSQ','90qpltyb','250368vvFFId','356070cGZmaE','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','30CxIekT','table','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','382428KQqKvJ'];a77_0x2815=function(){return _0xa3b11;};return a77_0x2815();}export function validateTableDescribeReference(_0x381642){const _0x236c0d=a77_0xeac2;if(!_0x381642['table'])return _0x236c0d(0x1cb);if(_0x381642['database']&&hasWildcard(_0x381642['database']))return _0x236c0d(0x1c8);if(hasWildcard(_0x381642[_0x236c0d(0x1ca)]))return _0x236c0d(0x1cd);return undefined;}
1
+ (function(_0x1b669e,_0x3b448d){const _0x57f9a3=a77_0x5198,_0x44543d=_0x1b669e();while(!![]){try{const _0x326895=-parseInt(_0x57f9a3(0x131))/0x1*(parseInt(_0x57f9a3(0x140))/0x2)+-parseInt(_0x57f9a3(0x12e))/0x3+parseInt(_0x57f9a3(0x144))/0x4*(parseInt(_0x57f9a3(0x142))/0x5)+parseInt(_0x57f9a3(0x132))/0x6+parseInt(_0x57f9a3(0x145))/0x7*(parseInt(_0x57f9a3(0x135))/0x8)+-parseInt(_0x57f9a3(0x13d))/0x9*(-parseInt(_0x57f9a3(0x136))/0xa)+parseInt(_0x57f9a3(0x13a))/0xb*(-parseInt(_0x57f9a3(0x12f))/0xc);if(_0x326895===_0x3b448d)break;else _0x44543d['push'](_0x44543d['shift']());}catch(_0x4631f1){_0x44543d['push'](_0x44543d['shift']());}}}(a77_0x3319,0xcf5d0));function hasWildcard(_0xe1bcb4){const _0x4c32ca=a77_0x5198;return _0xe1bcb4[_0x4c32ca(0x141)]('*')||_0xe1bcb4[_0x4c32ca(0x141)]('?');}function a77_0x5198(_0x3b86cb,_0xad8233){const _0x3319a6=a77_0x3319();return a77_0x5198=function(_0x51982b,_0x50ec47){_0x51982b=_0x51982b-0x12a;let _0x589ce4=_0x3319a6[_0x51982b];return _0x589ce4;},a77_0x5198(_0x3b86cb,_0xad8233);}export function parseTableReference(_0x3ea31c){const _0x5081c9=a77_0x5198;if(!_0x3ea31c||_0x3ea31c[_0x5081c9(0x134)]()['length']===0x0)throw new Error(_0x5081c9(0x12d));const _0x5446d6=_0x3ea31c[_0x5081c9(0x134)](),_0x150e8b={'original':_0x5446d6},_0x1afe6d=_0x5446d6['split']('.');if(_0x1afe6d[_0x5081c9(0x130)]===0x1){const _0x26344f=_0x1afe6d[0x0];if(!_0x26344f)throw new Error(_0x5081c9(0x139));_0x150e8b[_0x5081c9(0x137)]=_0x26344f;}else{if(_0x1afe6d[_0x5081c9(0x130)]===0x2){const [_0x8b2e15,_0xc936b6]=_0x1afe6d;if(!_0x8b2e15)throw new Error(_0x5081c9(0x13c));if(!_0xc936b6)throw new Error(_0x5081c9(0x138));_0x150e8b[_0x5081c9(0x13e)]=_0x8b2e15,_0x150e8b[_0x5081c9(0x137)]=_0xc936b6;}else{if(_0x1afe6d['length']===0x3){const [_0x43ee17,_0x160cbe,_0x483760]=_0x1afe6d;if(!_0x43ee17||!_0x160cbe||!_0x483760)throw new Error(_0x5081c9(0x133));_0x150e8b['catalog']=_0x43ee17,_0x150e8b[_0x5081c9(0x13e)]=_0x160cbe,_0x150e8b[_0x5081c9(0x137)]=_0x483760;}else throw new Error(_0x5081c9(0x13f));}}return _0x150e8b;}export function formatTableReference(_0x3a1800){const _0x448e08=a77_0x5198,_0x2e1d46=[];return _0x3a1800[_0x448e08(0x146)]&&_0x2e1d46[_0x448e08(0x13b)](_0x3a1800[_0x448e08(0x146)]),_0x3a1800[_0x448e08(0x13e)]&&_0x2e1d46[_0x448e08(0x13b)](_0x3a1800[_0x448e08(0x13e)]),_0x3a1800[_0x448e08(0x137)]&&_0x2e1d46['push'](_0x3a1800['table']),_0x2e1d46[_0x448e08(0x143)]('.');}export function validateTableListReference(_0x466d4c){return undefined;}export function validateTableDescribeReference(_0x4d391c){const _0x34befe=a77_0x5198;if(!_0x4d391c[_0x34befe(0x137)])return _0x34befe(0x12c);if(_0x4d391c[_0x34befe(0x13e)]&&hasWildcard(_0x4d391c[_0x34befe(0x13e)]))return _0x34befe(0x12a);if(hasWildcard(_0x4d391c['table']))return _0x34befe(0x12b);return undefined;}function a77_0x3319(){const _0x1d9b58=['8604261bCPvdn','database','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','228958mFgFCe','includes','2821340DVnGKN','join','4rWqCrX','7OyoFDD','catalog','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','2164179aIBCUv','804dGfisp','length','7CLwVVM','7462356pGDtyb','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','trim','8149072jXSVvZ','10ZVVcXq','table','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20just\x20a\x20dot','231583PXQoSI','push','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)'];a77_0x3319=function(){return _0x1d9b58;};return a77_0x3319();}
@@ -1 +1 @@
1
- (function(_0x87e882,_0x3efc68){const _0x10c24f=a78_0xc53f,_0x1297d1=_0x87e882();while(!![]){try{const _0x2b9842=-parseInt(_0x10c24f(0xd7))/0x1*(-parseInt(_0x10c24f(0xe6))/0x2)+parseInt(_0x10c24f(0xdb))/0x3*(parseInt(_0x10c24f(0xd6))/0x4)+parseInt(_0x10c24f(0xed))/0x5*(parseInt(_0x10c24f(0xd5))/0x6)+-parseInt(_0x10c24f(0xdd))/0x7+parseInt(_0x10c24f(0xf4))/0x8*(parseInt(_0x10c24f(0xeb))/0x9)+-parseInt(_0x10c24f(0xd2))/0xa+parseInt(_0x10c24f(0xe0))/0xb;if(_0x2b9842===_0x3efc68)break;else _0x1297d1['push'](_0x1297d1['shift']());}catch(_0x16df01){_0x1297d1['push'](_0x1297d1['shift']());}}}(a78_0x3a52,0xdcb74));import{formatRows}from'./formatters.js';import a78_0x4c2855 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x490de8,_0x36ee43={},_0xdf1901=0x0,_0x268035=''){const _0xd4eba=a78_0xc53f,_0x282618={...DEFAULT_OPTIONS,..._0x36ee43},_0x46b1a5=[],_0x45f11f=[..._0x490de8][_0xd4eba(0xec)]((_0x2c02e7,_0x2b77ee)=>_0x2c02e7['name'][_0xd4eba(0xd1)](_0x2b77ee[_0xd4eba(0xf1)]));for(let _0x484610=0x0;_0x484610<_0x45f11f[_0xd4eba(0xef)];_0x484610++){const _0x518261=_0x45f11f[_0x484610],_0x28dd4a=_0x484610===_0x45f11f[_0xd4eba(0xef)]-0x1;let _0x59f023='';_0xdf1901>0x0&&(_0x59f023+=_0x268035);_0x282618[_0xd4eba(0xe3)]&&_0xdf1901>0x0&&(_0x59f023+=a78_0x4c2855[_0xd4eba(0xee)](_0x28dd4a?'└──\x20':_0xd4eba(0xe1)));_0x282618[_0xd4eba(0xe5)]&&(_0x59f023+=_0x518261[_0xd4eba(0xf2)]===_0xd4eba(0xce)?_0xd4eba(0xda):_0xd4eba(0xe8));_0x59f023+=_0x518261['name'];if(_0x282618[_0xd4eba(0xea)]){if(_0x518261[_0xd4eba(0xf2)]===_0xd4eba(0xce)){const _0x373e9e=[];_0x518261[_0xd4eba(0xd9)][_0xd4eba(0xdc)]&&_0x373e9e[_0xd4eba(0xcf)](_0x518261['metadata'][_0xd4eba(0xdc)]+_0xd4eba(0xe2)+(_0x518261[_0xd4eba(0xd9)]['segmentCount']!==0x1?'s':'')),_0x518261[_0xd4eba(0xd9)][_0xd4eba(0xd4)]&&_0x373e9e['push'](_0x518261[_0xd4eba(0xd9)]['folderCount']+_0xd4eba(0xf5)+(_0x518261[_0xd4eba(0xd9)][_0xd4eba(0xd4)]!==0x1?'s':'')),_0x373e9e[_0xd4eba(0xef)]>0x0&&(_0x59f023+=a78_0x4c2855['dim']('\x20('+_0x373e9e[_0xd4eba(0xd8)](',\x20')+')'));}else _0x518261[_0xd4eba(0xf2)]===_0xd4eba(0xd3)&&_0x518261[_0xd4eba(0xf3)]!==undefined&&(_0x59f023+=a78_0x4c2855[_0xd4eba(0xee)]('\x20('+formatRows(_0x518261[_0xd4eba(0xf3)])+')'));}_0x46b1a5['push'](_0x59f023);if(_0x518261['children']&&_0x518261[_0xd4eba(0xe7)]['length']>0x0){let _0x22a6f9;if(_0xdf1901===0x0)_0x22a6f9='';else _0x282618[_0xd4eba(0xe3)]?_0x22a6f9=_0x268035+(_0x28dd4a?_0xd4eba(0xe4):a78_0x4c2855[_0xd4eba(0xee)]('│')+_0xd4eba(0xe9)):_0x22a6f9=_0x268035+_0x282618[_0xd4eba(0xf0)];const _0x2085a6=formatTree(_0x518261['children'],_0x282618,_0xdf1901+0x1,_0x22a6f9);_0x46b1a5['push'](_0x2085a6);}}return _0x46b1a5[_0xd4eba(0xd8)]('\x0a');}function a78_0x3a52(){const _0x22137a=['folder','push','map','localeCompare','1810WVRSDC','segment','folderCount','831522rtQbhv','4KDAORq','2ICEtXS','join','metadata','📁\x20','1421367oGIsdB','segmentCount','7317121wgtchI','icon','(empty)','318912DYDEwC','├──\x20','\x20segment','showTreeLines','\x20\x20\x20\x20','showIcons','652408gpGEwX','children','🎯\x20','\x20\x20\x20','showMetadata','11268DKuErq','sort','25sgswwl','dim','length','indent','name','type','population','648RHYTro','\x20folder'];a78_0x3a52=function(){return _0x22137a;};return a78_0x3a52();}function a78_0xc53f(_0x557088,_0x58411b){const _0x3a5294=a78_0x3a52();return a78_0xc53f=function(_0xc53ff6,_0x23a387){_0xc53ff6=_0xc53ff6-0xce;let _0x3a6b41=_0x3a5294[_0xc53ff6];return _0x3a6b41;},a78_0xc53f(_0x557088,_0x58411b);}export function formatFlatList(_0x16251e,_0x230448,_0x3968c1={}){const _0x1d1d4f=a78_0xc53f,_0x577ced={...DEFAULT_OPTIONS,..._0x3968c1},_0x43e195=[];for(const _0x3800b0 of _0x16251e){_0x43e195[_0x1d1d4f(0xcf)]({'name':_0x3800b0[_0x1d1d4f(0xf1)],'icon':_0x577ced[_0x1d1d4f(0xe5)]?'📁':'','metadata':undefined});}for(const _0x552d1c of _0x230448){const _0x22dbab=_0x577ced[_0x1d1d4f(0xea)]&&_0x552d1c[_0x1d1d4f(0xf3)]!==undefined?a78_0x4c2855[_0x1d1d4f(0xee)]('\x20('+formatRows(_0x552d1c[_0x1d1d4f(0xf3)])+')'):'';_0x43e195['push']({'name':_0x552d1c[_0x1d1d4f(0xf1)],'icon':_0x577ced[_0x1d1d4f(0xe5)]?'🎯':'','metadata':_0x22dbab});}_0x43e195[_0x1d1d4f(0xec)]((_0x16e783,_0x1d6047)=>_0x16e783['name'][_0x1d1d4f(0xd1)](_0x1d6047[_0x1d1d4f(0xf1)]));if(_0x43e195[_0x1d1d4f(0xef)]===0x0)return _0x1d1d4f(0xdf);const _0x8dbd3f=_0x43e195[_0x1d1d4f(0xd0)](_0x3bb67f=>{const _0x308e0c=_0x1d1d4f,_0x4790be=_0x3bb67f[_0x308e0c(0xde)]?_0x3bb67f['icon']+'\x20':'',_0x5b521b=_0x3bb67f[_0x308e0c(0xd9)]||'';return''+_0x4790be+_0x3bb67f[_0x308e0c(0xf1)]+_0x5b521b;});return _0x8dbd3f[_0x1d1d4f(0xd8)]('\x0a');}
1
+ function a78_0x1fe5(){const _0x42276e=['543954sOzPTu','indent','showTreeLines','showMetadata','length','5840yfrnzq','(empty)','81076fmghxe','└──\x20','\x20segment','77wYjBGF','15cTRxXj','11DKyYTT','folder','showIcons','localeCompare','5pWgVSx','27870852YRVJbe','children','11245380sZjeQY','type','push','\x20folder','\x20\x20\x20','name','icon','3511216SFxIsO','folderCount','segmentCount','dim','map','segment','metadata','├──\x20','sort','637931vanajy','join','5679KnhRPf','population','\x20\x20\x20\x20'];a78_0x1fe5=function(){return _0x42276e;};return a78_0x1fe5();}(function(_0x1625bc,_0x51c789){const _0x2d0c07=a78_0x4574,_0x12718b=_0x1625bc();while(!![]){try{const _0x1b2f9e=parseInt(_0x2d0c07(0x10a))/0x1+-parseInt(_0x2d0c07(0xee))/0x2*(-parseInt(_0x2d0c07(0xf2))/0x3)+parseInt(_0x2d0c07(0x101))/0x4*(-parseInt(_0x2d0c07(0xf7))/0x5)+-parseInt(_0x2d0c07(0xe7))/0x6*(parseInt(_0x2d0c07(0xf1))/0x7)+-parseInt(_0x2d0c07(0xec))/0x8*(-parseInt(_0x2d0c07(0x10c))/0x9)+-parseInt(_0x2d0c07(0xfa))/0xa+-parseInt(_0x2d0c07(0xf3))/0xb*(-parseInt(_0x2d0c07(0xf8))/0xc);if(_0x1b2f9e===_0x51c789)break;else _0x12718b['push'](_0x12718b['shift']());}catch(_0x474ed9){_0x12718b['push'](_0x12718b['shift']());}}}(a78_0x1fe5,0x98667));import{formatRows}from'./formatters.js';import a78_0xba8c53 from'chalk';function a78_0x4574(_0x19ddc3,_0x21f665){const _0x1fe502=a78_0x1fe5();return a78_0x4574=function(_0x4574f5,_0x4b9806){_0x4574f5=_0x4574f5-0xe6;let _0x3a02f6=_0x1fe502[_0x4574f5];return _0x3a02f6;},a78_0x4574(_0x19ddc3,_0x21f665);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x10726e,_0x1f0f44={},_0x2601a5=0x0,_0x5cda7a=''){const _0x457988=a78_0x4574,_0x1a6ffd={...DEFAULT_OPTIONS,..._0x1f0f44},_0x3d5aca=[],_0x53efe0=[..._0x10726e][_0x457988(0x109)]((_0x2c75ab,_0xd9fd4f)=>_0x2c75ab['name']['localeCompare'](_0xd9fd4f['name']));for(let _0x35845a=0x0;_0x35845a<_0x53efe0[_0x457988(0xeb)];_0x35845a++){const _0x2c7e8b=_0x53efe0[_0x35845a],_0x281483=_0x35845a===_0x53efe0[_0x457988(0xeb)]-0x1;let _0x588795='';_0x2601a5>0x0&&(_0x588795+=_0x5cda7a);_0x1a6ffd['showTreeLines']&&_0x2601a5>0x0&&(_0x588795+=a78_0xba8c53[_0x457988(0x104)](_0x281483?_0x457988(0xef):_0x457988(0x108)));_0x1a6ffd[_0x457988(0xf5)]&&(_0x588795+=_0x2c7e8b[_0x457988(0xfb)]===_0x457988(0xf4)?'📁\x20':'🎯\x20');_0x588795+=_0x2c7e8b[_0x457988(0xff)];if(_0x1a6ffd['showMetadata']){if(_0x2c7e8b[_0x457988(0xfb)]===_0x457988(0xf4)){const _0xb2d1c0=[];_0x2c7e8b[_0x457988(0x107)][_0x457988(0x103)]&&_0xb2d1c0[_0x457988(0xfc)](_0x2c7e8b['metadata'][_0x457988(0x103)]+_0x457988(0xf0)+(_0x2c7e8b[_0x457988(0x107)][_0x457988(0x103)]!==0x1?'s':'')),_0x2c7e8b[_0x457988(0x107)][_0x457988(0x102)]&&_0xb2d1c0[_0x457988(0xfc)](_0x2c7e8b[_0x457988(0x107)][_0x457988(0x102)]+_0x457988(0xfd)+(_0x2c7e8b['metadata'][_0x457988(0x102)]!==0x1?'s':'')),_0xb2d1c0[_0x457988(0xeb)]>0x0&&(_0x588795+=a78_0xba8c53[_0x457988(0x104)]('\x20('+_0xb2d1c0[_0x457988(0x10b)](',\x20')+')'));}else _0x2c7e8b[_0x457988(0xfb)]===_0x457988(0x106)&&_0x2c7e8b[_0x457988(0x10d)]!==undefined&&(_0x588795+=a78_0xba8c53[_0x457988(0x104)]('\x20('+formatRows(_0x2c7e8b['population'])+')'));}_0x3d5aca['push'](_0x588795);if(_0x2c7e8b['children']&&_0x2c7e8b[_0x457988(0xf9)][_0x457988(0xeb)]>0x0){let _0x16e9b1;if(_0x2601a5===0x0)_0x16e9b1='';else _0x1a6ffd[_0x457988(0xe9)]?_0x16e9b1=_0x5cda7a+(_0x281483?_0x457988(0xe6):a78_0xba8c53[_0x457988(0x104)]('│')+_0x457988(0xfe)):_0x16e9b1=_0x5cda7a+_0x1a6ffd[_0x457988(0xe8)];const _0x2abec1=formatTree(_0x2c7e8b[_0x457988(0xf9)],_0x1a6ffd,_0x2601a5+0x1,_0x16e9b1);_0x3d5aca[_0x457988(0xfc)](_0x2abec1);}}return _0x3d5aca[_0x457988(0x10b)]('\x0a');}export function formatFlatList(_0x5c92d8,_0x332450,_0x5cb1ba={}){const _0x3efe=a78_0x4574,_0x36dc57={...DEFAULT_OPTIONS,..._0x5cb1ba},_0x5edd36=[];for(const _0x43d815 of _0x5c92d8){_0x5edd36[_0x3efe(0xfc)]({'name':_0x43d815[_0x3efe(0xff)],'icon':_0x36dc57[_0x3efe(0xf5)]?'📁':'','metadata':undefined});}for(const _0x4532cd of _0x332450){const _0x4bf3de=_0x36dc57[_0x3efe(0xea)]&&_0x4532cd['population']!==undefined?a78_0xba8c53[_0x3efe(0x104)]('\x20('+formatRows(_0x4532cd[_0x3efe(0x10d)])+')'):'';_0x5edd36[_0x3efe(0xfc)]({'name':_0x4532cd[_0x3efe(0xff)],'icon':_0x36dc57[_0x3efe(0xf5)]?'🎯':'','metadata':_0x4bf3de});}_0x5edd36[_0x3efe(0x109)]((_0x349e70,_0x9225a9)=>_0x349e70[_0x3efe(0xff)][_0x3efe(0xf6)](_0x9225a9[_0x3efe(0xff)]));if(_0x5edd36[_0x3efe(0xeb)]===0x0)return _0x3efe(0xed);const _0x14d2ee=_0x5edd36[_0x3efe(0x105)](_0x595b44=>{const _0x56eeab=_0x3efe,_0x5b3ff6=_0x595b44[_0x56eeab(0x100)]?_0x595b44[_0x56eeab(0x100)]+'\x20':'',_0x54b367=_0x595b44[_0x56eeab(0x107)]||'';return''+_0x5b3ff6+_0x595b44['name']+_0x54b367;});return _0x14d2ee[_0x3efe(0x10b)]('\x0a');}
@@ -1 +1 @@
1
- const a79_0x1cb70e=a79_0x47c6;(function(_0x3aa53e,_0x2062d3){const _0x5a5d8c=a79_0x47c6,_0x62494b=_0x3aa53e();while(!![]){try{const _0x4a9ff0=parseInt(_0x5a5d8c(0x1a7))/0x1+parseInt(_0x5a5d8c(0x1a2))/0x2+-parseInt(_0x5a5d8c(0x1a5))/0x3*(-parseInt(_0x5a5d8c(0x1a4))/0x4)+parseInt(_0x5a5d8c(0x1aa))/0x5+parseInt(_0x5a5d8c(0x1a1))/0x6*(parseInt(_0x5a5d8c(0x1ab))/0x7)+-parseInt(_0x5a5d8c(0x1ac))/0x8*(-parseInt(_0x5a5d8c(0x1a8))/0x9)+-parseInt(_0x5a5d8c(0x1a9))/0xa;if(_0x4a9ff0===_0x2062d3)break;else _0x62494b['push'](_0x62494b['shift']());}catch(_0x1a8abd){_0x62494b['push'](_0x62494b['shift']());}}}(a79_0x3f42,0x95e9a));function a79_0x3f42(){const _0x41954f=['986295jjsAFI','4105731uFKlXi','3074184GEEVyX','.dig','12xxskJh','651726mXrvgr','.digdag','232JAioAn','48660xrsnIx','startsWith','617850XyAqEQ','18wBMhBK','34093020ydYGcx'];a79_0x3f42=function(){return _0x41954f;};return a79_0x3f42();}function a79_0x47c6(_0x2cf8bd,_0x518f53){const _0x3f42f8=a79_0x3f42();return a79_0x47c6=function(_0x47c6bc,_0x5b5e75){_0x47c6bc=_0x47c6bc-0x1a0;let _0x44fc6e=_0x3f42f8[_0x47c6bc];return _0x44fc6e;},a79_0x47c6(_0x2cf8bd,_0x518f53);}export const WORKFLOW_FILE_EXTENSION=a79_0x1cb70e(0x1a0);export function shouldIncludeInArchive(_0x3b810d){const _0x1f8807=a79_0x1cb70e;if(_0x3b810d===_0x1f8807(0x1a3))return!![];if(_0x3b810d[_0x1f8807(0x1a6)]('.'))return![];return!![];}
1
+ const a79_0x578a12=a79_0x2138;function a79_0x2138(_0x589b26,_0x3b3eab){const _0x37a051=a79_0x37a0();return a79_0x2138=function(_0x2138da,_0x596997){_0x2138da=_0x2138da-0x1b2;let _0x3080d9=_0x37a051[_0x2138da];return _0x3080d9;},a79_0x2138(_0x589b26,_0x3b3eab);}(function(_0x11814e,_0x4d4bb2){const _0x48c342=a79_0x2138,_0x1eda26=_0x11814e();while(!![]){try{const _0x289a63=parseInt(_0x48c342(0x1b9))/0x1+parseInt(_0x48c342(0x1b3))/0x2+-parseInt(_0x48c342(0x1ba))/0x3+-parseInt(_0x48c342(0x1bc))/0x4+parseInt(_0x48c342(0x1b5))/0x5*(-parseInt(_0x48c342(0x1b4))/0x6)+-parseInt(_0x48c342(0x1b8))/0x7*(-parseInt(_0x48c342(0x1b7))/0x8)+-parseInt(_0x48c342(0x1bb))/0x9*(-parseInt(_0x48c342(0x1b2))/0xa);if(_0x289a63===_0x4d4bb2)break;else _0x1eda26['push'](_0x1eda26['shift']());}catch(_0x45b805){_0x1eda26['push'](_0x1eda26['shift']());}}}(a79_0x37a0,0x2c1b2));export const WORKFLOW_FILE_EXTENSION=a79_0x578a12(0x1b6);function a79_0x37a0(){const _0x5bff6c=['48eMrRzp','78835YqvayI','.dig','8qnOwts','2033066GEysWi','68449NjYzVK','401724NeBxFg','963thRCzI','1157236TveVfl','22930slkHta','251546IDBtSY'];a79_0x37a0=function(){return _0x5bff6c;};return a79_0x37a0();}export function shouldIncludeInArchive(_0x570965){if(_0x570965==='.digdag')return!![];if(_0x570965['startsWith']('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
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": {