@treasuredata/tdx 0.1.17 → 0.1.18

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 (79) 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.js +1 -1
  42. package/dist/proxy/server.d.ts.map +1 -1
  43. package/dist/proxy/server.js +1 -1
  44. package/dist/proxy/server.js.map +1 -1
  45. package/dist/sdk/api.js +1 -1
  46. package/dist/sdk/database.js +1 -1
  47. package/dist/sdk/errors.js +1 -1
  48. package/dist/sdk/index.js +1 -1
  49. package/dist/sdk/job.js +1 -1
  50. package/dist/sdk/llm.js +1 -1
  51. package/dist/sdk/query.js +1 -1
  52. package/dist/sdk/segment.js +1 -1
  53. package/dist/sdk/table.js +1 -1
  54. package/dist/sdk/workflow.js +1 -1
  55. package/dist/types/endpoints.js +1 -1
  56. package/dist/types/index.js +1 -1
  57. package/dist/utils/agent-ref-parser.js +1 -1
  58. package/dist/utils/chat-cache.js +1 -1
  59. package/dist/utils/colors.js +1 -1
  60. package/dist/utils/command-output.js +1 -1
  61. package/dist/utils/file-permissions.js +1 -1
  62. package/dist/utils/format-detector.js +1 -1
  63. package/dist/utils/formatters.js +1 -1
  64. package/dist/utils/json-loader.js +1 -1
  65. package/dist/utils/model-aliases.js +1 -1
  66. package/dist/utils/option-validation.js +1 -1
  67. package/dist/utils/port.js +1 -1
  68. package/dist/utils/process.js +1 -1
  69. package/dist/utils/prompt.js +1 -1
  70. package/dist/utils/segment-path-parser.js +1 -1
  71. package/dist/utils/segment-ref-parser.js +1 -1
  72. package/dist/utils/spinner.js +1 -1
  73. package/dist/utils/sql-parser.js +1 -1
  74. package/dist/utils/sse-parser.js +1 -1
  75. package/dist/utils/string-utils.js +1 -1
  76. package/dist/utils/table-ref-parser.js +1 -1
  77. package/dist/utils/tree-formatter.js +1 -1
  78. package/dist/utils/workflow-utils.js +1 -1
  79. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5385bf,_0x1d0295){const _0x740600=a64_0xe735,_0x44c235=_0x5385bf();while(!![]){try{const _0x1650b0=parseInt(_0x740600(0x186))/0x1*(-parseInt(_0x740600(0x182))/0x2)+parseInt(_0x740600(0x1ab))/0x3+parseInt(_0x740600(0x19c))/0x4+-parseInt(_0x740600(0x1a7))/0x5*(-parseInt(_0x740600(0x19d))/0x6)+-parseInt(_0x740600(0x189))/0x7+-parseInt(_0x740600(0x192))/0x8*(parseInt(_0x740600(0x1b2))/0x9)+parseInt(_0x740600(0x1a1))/0xa;if(_0x1650b0===_0x1d0295)break;else _0x44c235['push'](_0x44c235['shift']());}catch(_0x4b8250){_0x44c235['push'](_0x44c235['shift']());}}}(a64_0x237a,0xd3156));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a64_0x237a(){const _0x13f3c3=['date','array','boolean','log','92845dBLVMA','name','min','toLowerCase','2817183hLkwgy','entries','string','int','\x20rows\x20(','row','reduce','36AfsGar','replace','join','long','substring','repeat','1658qSsHJO','toISOString','test','stringify','761BRhOhC','map','slice','7688023jdGXJY','jsonl','table','\x20shown)','type','floor','length','0\x20B','toString','2360504FzkYzT','push','columns','forEach','json','timestamp','number','data','double','max','1335028BvcEEb','210ntwGoD','pow','startsWith','object','18512750FHMNIz','toFixed'];a64_0x237a=function(){return _0x13f3c3;};return a64_0x237a();}const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x24e0b9=a64_0xe735;return process['stdout'][_0x24e0b9(0x194)]||Infinity;}export function formatAsTable(_0x9c6956,_0x4e41ef=DEFAULT_MAX_DISPLAY_ROWS,_0x1478dd=![],_0x4a3870={}){const _0x170858=a64_0xe735;if(_0x9c6956['data'][_0x170858(0x18f)]===0x0)return'No\x20rows\x20returned';const _0x56068c=_0x9c6956[_0x170858(0x194)][_0x170858(0x187)](_0x437ed0=>_0x437ed0[_0x170858(0x1a8)]),_0x51efe3=_0x9c6956[_0x170858(0x194)]['map'](_0x20c6ac=>simplifyType(_0x20c6ac[_0x170858(0x18d)])),_0x19f840=_0x9c6956['data']['slice'](0x0,_0x4e41ef),_0x5adb42=_0x9c6956[_0x170858(0x199)][_0x170858(0x18f)],_0x5e3877=_0x5adb42>_0x4e41ef,_0xa4bd13=[],_0x3d81e0=getTerminalWidth(),_0x105f7c=_0x3d81e0!==Infinity,_0x5e7904=0x32;let _0x290e52=_0x56068c[_0x170858(0x187)]((_0xf8a5c2,_0x519b90)=>{const _0x2eb9d5=_0x170858,_0x60ecdd=stringWidth(_0x51efe3[_0x519b90]),_0x5ccd8a=Math[_0x2eb9d5(0x19b)](..._0x19f840[_0x2eb9d5(0x187)](_0x4e141d=>{const _0x2952e6=_0x4e141d[_0xf8a5c2];return stringWidth(formatValue(_0x2952e6));})),_0xeebca1=Math[_0x2eb9d5(0x19b)](stringWidth(_0xf8a5c2),_0x60ecdd,_0x5ccd8a);return _0x1478dd?_0xeebca1:Math[_0x2eb9d5(0x1a9)](_0xeebca1,_0x5e7904);});if(_0x105f7c&&!_0x1478dd&&_0x56068c[_0x170858(0x18f)]>0x0){const _0x43a0d3=_0xa60187=>{let _0x30eb39=0x1;for(const _0x1fe789 of _0xa60187){_0x30eb39+=_0x1fe789+0x3;}return _0x30eb39+0x1;};let _0x16a213=_0x43a0d3(_0x290e52);if(_0x16a213>_0x3d81e0){const _0x105f23=0x3;for(let _0x37bf7e=_0x290e52[_0x170858(0x18f)]-0x1;_0x37bf7e>=0x0;_0x37bf7e--){_0x16a213=_0x43a0d3(_0x290e52);if(_0x16a213<=_0x3d81e0)break;const _0x397180=_0x290e52[_0x37bf7e],_0x3288e4=_0x16a213-_0x3d81e0,_0x10ff6d=_0x397180-_0x105f23,_0x3d69b4=Math[_0x170858(0x1a9)](_0x3288e4,_0x10ff6d);_0x3d69b4>0x0&&(_0x290e52[_0x37bf7e]=_0x397180-_0x3d69b4);}}}const _0x31ccfb=_0x56068c,_0x8ccaee=_0x51efe3,_0x50733e=_0x290e52,_0x4ebf7f=_0x290e52;_0xa4bd13['push'](colorBorder('┌'+_0x4ebf7f[_0x170858(0x187)](_0x47f729=>'─'[_0x170858(0x1b7)](_0x47f729+0x2))[_0x170858(0x1b4)]('┬')+'┐',_0x4a3870));const _0x2c4faa=_0x31ccfb[_0x170858(0x187)]((_0x4e9c25,_0x18647a)=>centerAlign(_0x4e9c25,_0x50733e[_0x18647a]));_0xa4bd13[_0x170858(0x193)](colorBorder('│',_0x4a3870)+'\x20'+_0x2c4faa[_0x170858(0x1b4)]('\x20'+colorBorder('│',_0x4a3870)+'\x20')+'\x20'+colorBorder('│',_0x4a3870));const _0x4bd374=_0x8ccaee[_0x170858(0x187)]((_0x12f25a,_0x59b358)=>colorType(centerAlign(_0x12f25a,_0x50733e[_0x59b358]),_0x4a3870));_0xa4bd13[_0x170858(0x193)](colorBorder('│',_0x4a3870)+'\x20'+_0x4bd374['join']('\x20'+colorBorder('│',_0x4a3870)+'\x20')+'\x20'+colorBorder('│',_0x4a3870)),_0xa4bd13['push'](colorBorder('├'+_0x4ebf7f[_0x170858(0x187)](_0x86ec97=>'─'[_0x170858(0x1b7)](_0x86ec97+0x2))[_0x170858(0x1b4)]('┼')+'┤',_0x4a3870));const _0x14e952=(_0x221e54,_0x440825)=>{const _0x45e019=_0x170858,_0x580446=stringWidth(_0x221e54);if(_0x580446<=_0x440825)return _0x221e54;let _0x297b30=_0x221e54;while(stringWidth(_0x297b30+'…')>_0x440825&&_0x297b30[_0x45e019(0x18f)]>0x0){_0x297b30=_0x297b30[_0x45e019(0x188)](0x0,-0x1);}return _0x297b30+'…';};_0x19f840[_0x170858(0x195)](_0x39a4e2=>{const _0x41c331=_0x170858,_0x38385b=_0x56068c['map']((_0x5751bf,_0xf46026)=>{const _0x1a431b=a64_0xe735,_0xb6e17c=_0x39a4e2[_0x5751bf],_0xb9d689=formatValue(_0xb6e17c),_0x40bc64=_0x50733e[_0xf46026],_0x17c3b5=_0x14e952(_0xb9d689,_0x40bc64),_0x324986=typeof _0xb6e17c===_0x1a431b(0x198)||typeof _0xb6e17c===_0x1a431b(0x1ad)&&/^-?\d+$/[_0x1a431b(0x184)](_0xb6e17c);return _0x324986?padStart(_0x17c3b5,_0x40bc64):padEnd(_0x17c3b5,_0x40bc64);});_0xa4bd13[_0x41c331(0x193)](colorBorder('│',_0x4a3870)+'\x20'+_0x38385b['join']('\x20'+colorBorder('│',_0x4a3870)+'\x20')+'\x20'+colorBorder('│',_0x4a3870));});const _0x255160=_0x4ebf7f[_0x170858(0x1b1)]((_0x2fb1cb,_0x23efb9)=>_0x2fb1cb+_0x23efb9+0x3,-0x1);_0xa4bd13[_0x170858(0x193)](colorBorder('├'+_0x4ebf7f['map'](_0x27e9c5=>'─'[_0x170858(0x1b7)](_0x27e9c5+0x2))['join']('┴')+'┤',_0x4a3870));let _0x38aafd;_0x5e3877?_0x38aafd=_0x5adb42+_0x170858(0x1af)+_0x4e41ef+_0x170858(0x18c):_0x38aafd=_0x5adb42+'\x20row'+(_0x5adb42===0x1?'':'s');const _0x55aefa=_0x38aafd['padEnd'](_0x255160-0x2);return _0xa4bd13[_0x170858(0x193)](colorBorder('│',_0x4a3870)+'\x20'+_0x55aefa+'\x20'+colorBorder('│',_0x4a3870)),_0xa4bd13[_0x170858(0x193)](colorBorder('└'+'─'[_0x170858(0x1b7)](_0x255160)+'┘',_0x4a3870)),_0xa4bd13[_0x170858(0x1b4)]('\x0a');}function simplifyType(_0x137f10){const _0x315716=a64_0xe735,_0x594525={'varchar':_0x315716(0x1ad),'bigint':_0x315716(0x1b5),'integer':_0x315716(0x1ae),'double':_0x315716(0x19a),'boolean':'bool','date':_0x315716(0x1a3),'timestamp':_0x315716(0x197),'array':_0x315716(0x1a4),'map':'map','row':_0x315716(0x1b0)},_0x2f96c2=_0x137f10[_0x315716(0x1aa)]();for(const [_0xb07616,_0x28a732]of Object[_0x315716(0x1ac)](_0x594525)){if(_0x2f96c2[_0x315716(0x19f)](_0xb07616))return _0x28a732;}return _0x137f10[_0x315716(0x18f)]>0xa?_0x137f10[_0x315716(0x1b6)](0x0,0xa):_0x137f10;}export function formatAsJSON(_0x170443,_0xb6b22a={}){const _0x38693d=a64_0xe735;if(_0x170443['data'][_0x38693d(0x18f)]===0x0)return'[]';if(shouldUseColor(_0xb6b22a))return colorizeJSON(_0x170443[_0x38693d(0x199)],_0xb6b22a);const _0x11df98=_0x170443[_0x38693d(0x199)][_0x38693d(0x187)](_0x5176b7=>'\x20\x20'+JSON[_0x38693d(0x185)](_0x5176b7));return'[\x0a'+_0x11df98[_0x38693d(0x1b4)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x6bdcf2,_0x56a3b2={}){const _0x1cdfec=a64_0xe735;if(_0x6bdcf2['data'][_0x1cdfec(0x18f)]===0x0)return'';if(shouldUseColor(_0x56a3b2))return _0x6bdcf2['data'][_0x1cdfec(0x187)](_0x41b089=>colorizeJSONCompact(_0x41b089,_0x56a3b2))[_0x1cdfec(0x1b4)]('\x0a');return _0x6bdcf2['data'][_0x1cdfec(0x187)](_0x1cb598=>JSON['stringify'](_0x1cb598))['join']('\x0a');}export function formatAsTSV(_0x5568d5){const _0x5810ed=a64_0xe735;if(_0x5568d5[_0x5810ed(0x199)]['length']===0x0)return'';const _0x46f932=[],_0x3d8773=_0x5568d5[_0x5810ed(0x194)][_0x5810ed(0x187)](_0x32292c=>_0x32292c[_0x5810ed(0x1a8)]);return _0x46f932[_0x5810ed(0x193)](_0x3d8773[_0x5810ed(0x1b4)]('\x09')),_0x5568d5[_0x5810ed(0x199)][_0x5810ed(0x195)](_0x1d643e=>{const _0x4d7005=_0x5810ed,_0x4764b5=_0x3d8773[_0x4d7005(0x187)](_0x40df66=>{const _0x2d5f76=_0x1d643e[_0x40df66];return formatValueForTSV(_0x2d5f76);});_0x46f932[_0x4d7005(0x193)](_0x4764b5['join']('\x09'));}),_0x46f932['join']('\x0a');}function formatValue(_0x39f9b7){const _0x30e7f6=a64_0xe735;if(_0x39f9b7===null||_0x39f9b7===undefined)return'';if(typeof _0x39f9b7==='string'){const _0x351ff5=_0x39f9b7['replace'](/\n/g,'\x5cn')[_0x30e7f6(0x1b3)](/\r/g,'\x5cr')[_0x30e7f6(0x1b3)](/\t/g,'\x5ct');return _0x351ff5;}if(typeof _0x39f9b7===_0x30e7f6(0x198))return String(_0x39f9b7);if(typeof _0x39f9b7===_0x30e7f6(0x1a5))return _0x39f9b7?'true':'false';if(_0x39f9b7 instanceof Date)return _0x39f9b7[_0x30e7f6(0x183)]();if(typeof _0x39f9b7===_0x30e7f6(0x1a0))return JSON[_0x30e7f6(0x185)](_0x39f9b7);return String(_0x39f9b7);}function a64_0xe735(_0x321011,_0x2a2d39){const _0x237a9e=a64_0x237a();return a64_0xe735=function(_0xe73535,_0x2b3c4b){_0xe73535=_0xe73535-0x182;let _0x38b171=_0x237a9e[_0xe73535];return _0x38b171;},a64_0xe735(_0x321011,_0x2a2d39);}function formatValueForTSV(_0x541a7c){const _0x42cf00=a64_0xe735;if(_0x541a7c===null||_0x541a7c===undefined)return'';if(typeof _0x541a7c===_0x42cf00(0x1ad))return _0x541a7c[_0x42cf00(0x1b3)](/\t/g,'\x5ct')[_0x42cf00(0x1b3)](/\n/g,'\x5cn');if(typeof _0x541a7c===_0x42cf00(0x198)||typeof _0x541a7c===_0x42cf00(0x1a5))return String(_0x541a7c);if(_0x541a7c instanceof Date)return _0x541a7c[_0x42cf00(0x183)]();if(typeof _0x541a7c===_0x42cf00(0x1a0))return JSON[_0x42cf00(0x185)](_0x541a7c);return String(_0x541a7c);}export function formatQueryResult(_0x3cbac4,_0x4ce90e){const _0x4c584b=a64_0xe735;switch(_0x4ce90e){case _0x4c584b(0x18b):return formatAsTable(_0x3cbac4);case _0x4c584b(0x196):return formatAsJSON(_0x3cbac4);case _0x4c584b(0x18a):return formatAsJSONL(_0x3cbac4);case'tsv':return formatAsTSV(_0x3cbac4);default:return formatAsJSON(_0x3cbac4);}}export function formatBytes(_0x1f86d0){const _0xa6cd4=a64_0xe735;if(_0x1f86d0===0x0)return _0xa6cd4(0x190);const _0x20a7e0=['B','KB','MB','GB','TB'],_0x45c659=0x400,_0x3f948e=Math['floor'](Math[_0xa6cd4(0x1a6)](_0x1f86d0)/Math[_0xa6cd4(0x1a6)](_0x45c659)),_0x38509f=_0x1f86d0/Math[_0xa6cd4(0x19e)](_0x45c659,_0x3f948e),_0x1af71e=_0x38509f>=0xa?0x1:0x2;return _0x38509f[_0xa6cd4(0x1a2)](_0x1af71e)+'\x20'+_0x20a7e0[_0x3f948e];}export function formatRows(_0x12ba79){const _0x359a69=a64_0xe735;if(_0x12ba79==null)return'-';if(_0x12ba79===0x0)return'0';if(_0x12ba79<0x3e8)return _0x12ba79[_0x359a69(0x191)]();const _0x42c5fc=['','K','M','B','T'],_0x16f6a7=0x3e8,_0xf40ec0=Math[_0x359a69(0x18e)](Math[_0x359a69(0x1a6)](_0x12ba79)/Math[_0x359a69(0x1a6)](_0x16f6a7)),_0x45afff=_0x12ba79/Math[_0x359a69(0x19e)](_0x16f6a7,_0xf40ec0),_0x3ca1df=_0x45afff>=0xa?0x1:0x2;return''+_0x45afff[_0x359a69(0x1a2)](_0x3ca1df)+_0x42c5fc[_0xf40ec0];}
1
+ (function(_0x41deaa,_0x387c4a){const _0x3233d0=a64_0x3cce,_0x4b66fc=_0x41deaa();while(!![]){try{const _0x12b081=-parseInt(_0x3233d0(0xd2))/0x1+parseInt(_0x3233d0(0xb9))/0x2*(parseInt(_0x3233d0(0xe3))/0x3)+-parseInt(_0x3233d0(0xbc))/0x4+-parseInt(_0x3233d0(0xc2))/0x5*(parseInt(_0x3233d0(0xd8))/0x6)+-parseInt(_0x3233d0(0xd0))/0x7+-parseInt(_0x3233d0(0xcc))/0x8*(parseInt(_0x3233d0(0xdb))/0x9)+parseInt(_0x3233d0(0xb3))/0xa;if(_0x12b081===_0x387c4a)break;else _0x4b66fc['push'](_0x4b66fc['shift']());}catch(_0x3d7267){_0x4b66fc['push'](_0x4b66fc['shift']());}}}(a64_0x1823,0xafe7f));function a64_0x1823(){const _0x26f270=['18927HZeAbE','log','columns','join','double','string','startsWith','stdout','3543exPDIy','replace','int','row','jsonl','push','\x20rows\x20(','43820410lJpYvG','table','array','toFixed','repeat','max','2026nMdpBY','json','false','1248480euZjlF','toISOString','\x20shown)','slice','object','min','5eZJvDP','floor','name','map','entries','forEach','padEnd','toString','tsv','boolean','2648LahZQx','type','reduce','true','7118076jfthYF','number','1399305AkrwBi','stringify','pow','date','length','data','8600982COojls','test','timestamp'];a64_0x1823=function(){return _0x26f270;};return a64_0x1823();}import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a64_0x3cce(_0x12f683,_0x250d7f){const _0x1823ed=a64_0x1823();return a64_0x3cce=function(_0x3cce3c,_0x25e274){_0x3cce3c=_0x3cce3c-0xb0;let _0x244a4f=_0x1823ed[_0x3cce3c];return _0x244a4f;},a64_0x3cce(_0x12f683,_0x250d7f);}const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x4e3d35=a64_0x3cce;return process[_0x4e3d35(0xe2)][_0x4e3d35(0xdd)]||Infinity;}export function formatAsTable(_0x1ec80a,_0x52d8bd=DEFAULT_MAX_DISPLAY_ROWS,_0x1e9a48=![],_0x1abba9={}){const _0x1e3262=a64_0x3cce;if(_0x1ec80a[_0x1e3262(0xd7)][_0x1e3262(0xd6)]===0x0)return'No\x20rows\x20returned';const _0xcde938=_0x1ec80a['columns'][_0x1e3262(0xc5)](_0x21375d=>_0x21375d['name']),_0x2bdf21=_0x1ec80a[_0x1e3262(0xdd)]['map'](_0x2ec669=>simplifyType(_0x2ec669[_0x1e3262(0xcd)])),_0x48a004=_0x1ec80a['data']['slice'](0x0,_0x52d8bd),_0x522a88=_0x1ec80a[_0x1e3262(0xd7)][_0x1e3262(0xd6)],_0xf854e4=_0x522a88>_0x52d8bd,_0x108ae9=[],_0x1e708a=getTerminalWidth(),_0x5232f3=_0x1e708a!==Infinity,_0x2b1739=0x32;let _0x23554b=_0xcde938[_0x1e3262(0xc5)]((_0x2ba646,_0x17e2a9)=>{const _0x30adf7=_0x1e3262,_0x105454=stringWidth(_0x2bdf21[_0x17e2a9]),_0x1a3935=Math[_0x30adf7(0xb8)](..._0x48a004['map'](_0x151a6d=>{const _0x22f8d1=_0x151a6d[_0x2ba646];return stringWidth(formatValue(_0x22f8d1));})),_0x16a155=Math[_0x30adf7(0xb8)](stringWidth(_0x2ba646),_0x105454,_0x1a3935);return _0x1e9a48?_0x16a155:Math['min'](_0x16a155,_0x2b1739);});if(_0x5232f3&&!_0x1e9a48&&_0xcde938[_0x1e3262(0xd6)]>0x0){const _0x1d8c57=_0x1473d7=>{let _0x35acfd=0x1;for(const _0x266195 of _0x1473d7){_0x35acfd+=_0x266195+0x3;}return _0x35acfd+0x1;};let _0x512847=_0x1d8c57(_0x23554b);if(_0x512847>_0x1e708a){const _0x56915b=0x3;for(let _0x327721=_0x23554b['length']-0x1;_0x327721>=0x0;_0x327721--){_0x512847=_0x1d8c57(_0x23554b);if(_0x512847<=_0x1e708a)break;const _0x2a36e0=_0x23554b[_0x327721],_0x5b10a9=_0x512847-_0x1e708a,_0x2b060f=_0x2a36e0-_0x56915b,_0x31bc25=Math[_0x1e3262(0xc1)](_0x5b10a9,_0x2b060f);_0x31bc25>0x0&&(_0x23554b[_0x327721]=_0x2a36e0-_0x31bc25);}}}const _0x317ed6=_0xcde938,_0x3459d4=_0x2bdf21,_0x3be1ae=_0x23554b,_0x51ecf6=_0x23554b;_0x108ae9[_0x1e3262(0xb1)](colorBorder('┌'+_0x51ecf6['map'](_0x48e550=>'─'[_0x1e3262(0xb7)](_0x48e550+0x2))['join']('┬')+'┐',_0x1abba9));const _0x3eb5b8=_0x317ed6[_0x1e3262(0xc5)]((_0x910e7c,_0x4a01c9)=>centerAlign(_0x910e7c,_0x3be1ae[_0x4a01c9]));_0x108ae9[_0x1e3262(0xb1)](colorBorder('│',_0x1abba9)+'\x20'+_0x3eb5b8[_0x1e3262(0xde)]('\x20'+colorBorder('│',_0x1abba9)+'\x20')+'\x20'+colorBorder('│',_0x1abba9));const _0x3a0144=_0x3459d4[_0x1e3262(0xc5)]((_0x524991,_0x4c61cd)=>colorType(centerAlign(_0x524991,_0x3be1ae[_0x4c61cd]),_0x1abba9));_0x108ae9[_0x1e3262(0xb1)](colorBorder('│',_0x1abba9)+'\x20'+_0x3a0144['join']('\x20'+colorBorder('│',_0x1abba9)+'\x20')+'\x20'+colorBorder('│',_0x1abba9)),_0x108ae9['push'](colorBorder('├'+_0x51ecf6[_0x1e3262(0xc5)](_0x398e63=>'─'['repeat'](_0x398e63+0x2))[_0x1e3262(0xde)]('┼')+'┤',_0x1abba9));const _0x86c9c=(_0x423b63,_0x1b2a1b)=>{const _0x209937=_0x1e3262,_0x183fd9=stringWidth(_0x423b63);if(_0x183fd9<=_0x1b2a1b)return _0x423b63;let _0xda5ed0=_0x423b63;while(stringWidth(_0xda5ed0+'…')>_0x1b2a1b&&_0xda5ed0[_0x209937(0xd6)]>0x0){_0xda5ed0=_0xda5ed0[_0x209937(0xbf)](0x0,-0x1);}return _0xda5ed0+'…';};_0x48a004['forEach'](_0x1bf979=>{const _0x6242b4=_0x1e3262,_0x1d46cb=_0xcde938[_0x6242b4(0xc5)]((_0x27b9a1,_0x31d6ee)=>{const _0x488c52=_0x6242b4,_0x22419c=_0x1bf979[_0x27b9a1],_0x4a745c=formatValue(_0x22419c),_0x283f0f=_0x3be1ae[_0x31d6ee],_0x45b287=_0x86c9c(_0x4a745c,_0x283f0f),_0x14e98b=typeof _0x22419c===_0x488c52(0xd1)||typeof _0x22419c===_0x488c52(0xe0)&&/^-?\d+$/[_0x488c52(0xd9)](_0x22419c);return _0x14e98b?padStart(_0x45b287,_0x283f0f):padEnd(_0x45b287,_0x283f0f);});_0x108ae9[_0x6242b4(0xb1)](colorBorder('│',_0x1abba9)+'\x20'+_0x1d46cb[_0x6242b4(0xde)]('\x20'+colorBorder('│',_0x1abba9)+'\x20')+'\x20'+colorBorder('│',_0x1abba9));});const _0x45e862=_0x51ecf6[_0x1e3262(0xce)]((_0x115e49,_0x902d3d)=>_0x115e49+_0x902d3d+0x3,-0x1);_0x108ae9[_0x1e3262(0xb1)](colorBorder('├'+_0x51ecf6['map'](_0x516405=>'─'[_0x1e3262(0xb7)](_0x516405+0x2))[_0x1e3262(0xde)]('┴')+'┤',_0x1abba9));let _0x59e4e3;_0xf854e4?_0x59e4e3=_0x522a88+_0x1e3262(0xb2)+_0x52d8bd+_0x1e3262(0xbe):_0x59e4e3=_0x522a88+'\x20row'+(_0x522a88===0x1?'':'s');const _0x57a955=_0x59e4e3[_0x1e3262(0xc8)](_0x45e862-0x2);return _0x108ae9[_0x1e3262(0xb1)](colorBorder('│',_0x1abba9)+'\x20'+_0x57a955+'\x20'+colorBorder('│',_0x1abba9)),_0x108ae9[_0x1e3262(0xb1)](colorBorder('└'+'─'[_0x1e3262(0xb7)](_0x45e862)+'┘',_0x1abba9)),_0x108ae9['join']('\x0a');}function simplifyType(_0x4a5cf7){const _0x55a141=a64_0x3cce,_0x1e32a3={'varchar':_0x55a141(0xe0),'bigint':'long','integer':_0x55a141(0xe5),'double':_0x55a141(0xdf),'boolean':'bool','date':_0x55a141(0xd5),'timestamp':_0x55a141(0xda),'array':_0x55a141(0xb5),'map':_0x55a141(0xc5),'row':_0x55a141(0xe6)},_0xca7aa1=_0x4a5cf7['toLowerCase']();for(const [_0x2b62b9,_0x22fb32]of Object[_0x55a141(0xc6)](_0x1e32a3)){if(_0xca7aa1[_0x55a141(0xe1)](_0x2b62b9))return _0x22fb32;}return _0x4a5cf7['length']>0xa?_0x4a5cf7['substring'](0x0,0xa):_0x4a5cf7;}export function formatAsJSON(_0xfc230f,_0x4df240={}){const _0x1a11d6=a64_0x3cce;if(_0xfc230f['data'][_0x1a11d6(0xd6)]===0x0)return'[]';if(shouldUseColor(_0x4df240))return colorizeJSON(_0xfc230f[_0x1a11d6(0xd7)],_0x4df240);const _0x4c85f0=_0xfc230f['data']['map'](_0x14e800=>'\x20\x20'+JSON[_0x1a11d6(0xd3)](_0x14e800));return'[\x0a'+_0x4c85f0[_0x1a11d6(0xde)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x16fa75,_0x334623={}){const _0x5cad55=a64_0x3cce;if(_0x16fa75['data'][_0x5cad55(0xd6)]===0x0)return'';if(shouldUseColor(_0x334623))return _0x16fa75[_0x5cad55(0xd7)][_0x5cad55(0xc5)](_0x4975f5=>colorizeJSONCompact(_0x4975f5,_0x334623))[_0x5cad55(0xde)]('\x0a');return _0x16fa75[_0x5cad55(0xd7)][_0x5cad55(0xc5)](_0x4af8cc=>JSON[_0x5cad55(0xd3)](_0x4af8cc))[_0x5cad55(0xde)]('\x0a');}export function formatAsTSV(_0xe2780b){const _0x270106=a64_0x3cce;if(_0xe2780b[_0x270106(0xd7)][_0x270106(0xd6)]===0x0)return'';const _0xf08c90=[],_0x543003=_0xe2780b[_0x270106(0xdd)]['map'](_0x2b3131=>_0x2b3131[_0x270106(0xc4)]);return _0xf08c90[_0x270106(0xb1)](_0x543003[_0x270106(0xde)]('\x09')),_0xe2780b['data'][_0x270106(0xc7)](_0x3af789=>{const _0x34853c=_0x270106,_0x33a976=_0x543003[_0x34853c(0xc5)](_0xb3b4d=>{const _0x5e2fb9=_0x3af789[_0xb3b4d];return formatValueForTSV(_0x5e2fb9);});_0xf08c90[_0x34853c(0xb1)](_0x33a976[_0x34853c(0xde)]('\x09'));}),_0xf08c90[_0x270106(0xde)]('\x0a');}function formatValue(_0xb6a22d){const _0x481032=a64_0x3cce;if(_0xb6a22d===null||_0xb6a22d===undefined)return'';if(typeof _0xb6a22d===_0x481032(0xe0)){const _0x4bb83c=_0xb6a22d[_0x481032(0xe4)](/\n/g,'\x5cn')[_0x481032(0xe4)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x4bb83c;}if(typeof _0xb6a22d===_0x481032(0xd1))return String(_0xb6a22d);if(typeof _0xb6a22d===_0x481032(0xcb))return _0xb6a22d?_0x481032(0xcf):_0x481032(0xbb);if(_0xb6a22d instanceof Date)return _0xb6a22d[_0x481032(0xbd)]();if(typeof _0xb6a22d===_0x481032(0xc0))return JSON['stringify'](_0xb6a22d);return String(_0xb6a22d);}function formatValueForTSV(_0x51f585){const _0x20c541=a64_0x3cce;if(_0x51f585===null||_0x51f585===undefined)return'';if(typeof _0x51f585===_0x20c541(0xe0))return _0x51f585['replace'](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x51f585==='number'||typeof _0x51f585===_0x20c541(0xcb))return String(_0x51f585);if(_0x51f585 instanceof Date)return _0x51f585[_0x20c541(0xbd)]();if(typeof _0x51f585===_0x20c541(0xc0))return JSON[_0x20c541(0xd3)](_0x51f585);return String(_0x51f585);}export function formatQueryResult(_0xa649b6,_0x297702){const _0x4e6fb4=a64_0x3cce;switch(_0x297702){case _0x4e6fb4(0xb4):return formatAsTable(_0xa649b6);case _0x4e6fb4(0xba):return formatAsJSON(_0xa649b6);case _0x4e6fb4(0xb0):return formatAsJSONL(_0xa649b6);case _0x4e6fb4(0xca):return formatAsTSV(_0xa649b6);default:return formatAsJSON(_0xa649b6);}}export function formatBytes(_0x31ca7e){const _0x20ce43=a64_0x3cce;if(_0x31ca7e===0x0)return'0\x20B';const _0x472fe6=['B','KB','MB','GB','TB'],_0x36295a=0x400,_0xbe94d5=Math[_0x20ce43(0xc3)](Math[_0x20ce43(0xdc)](_0x31ca7e)/Math[_0x20ce43(0xdc)](_0x36295a)),_0x5b2e88=_0x31ca7e/Math['pow'](_0x36295a,_0xbe94d5),_0x2dffcd=_0x5b2e88>=0xa?0x1:0x2;return _0x5b2e88[_0x20ce43(0xb6)](_0x2dffcd)+'\x20'+_0x472fe6[_0xbe94d5];}export function formatRows(_0x5cdc38){const _0x3045ec=a64_0x3cce;if(_0x5cdc38==null)return'-';if(_0x5cdc38===0x0)return'0';if(_0x5cdc38<0x3e8)return _0x5cdc38[_0x3045ec(0xc9)]();const _0x75b327=['','K','M','B','T'],_0x4de839=0x3e8,_0x4ad9e3=Math['floor'](Math[_0x3045ec(0xdc)](_0x5cdc38)/Math[_0x3045ec(0xdc)](_0x4de839)),_0x50308c=_0x5cdc38/Math[_0x3045ec(0xd4)](_0x4de839,_0x4ad9e3),_0x3a2413=_0x50308c>=0xa?0x1:0x2;return''+_0x50308c[_0x3045ec(0xb6)](_0x3a2413)+_0x75b327[_0x4ad9e3];}
@@ -1 +1 @@
1
- (function(_0x4fce92,_0xd32c8d){const _0x3f7378=a65_0x59c4,_0x207750=_0x4fce92();while(!![]){try{const _0x4db928=parseInt(_0x3f7378(0x87))/0x1*(parseInt(_0x3f7378(0x90))/0x2)+-parseInt(_0x3f7378(0x8d))/0x3+parseInt(_0x3f7378(0x9d))/0x4*(-parseInt(_0x3f7378(0x95))/0x5)+-parseInt(_0x3f7378(0x8c))/0x6+parseInt(_0x3f7378(0x9b))/0x7*(-parseInt(_0x3f7378(0x89))/0x8)+-parseInt(_0x3f7378(0x8e))/0x9+parseInt(_0x3f7378(0x88))/0xa;if(_0x4db928===_0xd32c8d)break;else _0x207750['push'](_0x207750['shift']());}catch(_0x3ead6b){_0x207750['push'](_0x207750['shift']());}}}(a65_0xa2ef,0x19938));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x2b7927,_0x407976){const _0x346949=a65_0x59c4;try{if(_0x407976){const _0x448041=await readFile(_0x2b7927,_0x346949(0x97));try{return JSON[_0x346949(0x8f)](_0x448041);}catch(_0x321b73){throw new SDKError(ErrorCode[_0x346949(0x9c)],_0x346949(0x91)+_0x2b7927+_0x346949(0x93)+(_0x321b73 instanceof Error?_0x321b73['message']:String(_0x321b73)));}}else try{return JSON[_0x346949(0x8f)](_0x2b7927);}catch(_0x17b60f){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x17b60f instanceof Error?_0x17b60f['message']:String(_0x17b60f)));}}catch(_0x4e8541){if(_0x4e8541 instanceof SDKError)throw _0x4e8541;if(_0x4e8541 instanceof Error&&_0x346949(0x8b)in _0x4e8541){const _0x219091=_0x4e8541;if(_0x219091[_0x346949(0x8b)]===_0x346949(0x99))throw new SDKError(ErrorCode['NOT_FOUND'],_0x346949(0x94)+_0x2b7927);else{if(_0x219091[_0x346949(0x8b)]==='EACCES')throw new SDKError(ErrorCode[_0x346949(0x96)],_0x346949(0x9a)+_0x2b7927);}}throw new SDKError(ErrorCode[_0x346949(0x8a)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x4e8541 instanceof Error?_0x4e8541[_0x346949(0x98)]:String(_0x4e8541)));}}export async function loadJSONFromOptions(_0x775f3e,_0x42cf0e){const _0x42dead=a65_0x59c4;if(_0x775f3e&&_0x42cf0e)throw new SDKError(ErrorCode[_0x42dead(0x9c)],_0x42dead(0x92));if(_0x775f3e)return await loadJSON(_0x775f3e,![]);if(_0x42cf0e)return await loadJSON(_0x42cf0e,!![]);return undefined;}function a65_0x59c4(_0x38dace,_0x455f9e){const _0xa2ef81=a65_0xa2ef();return a65_0x59c4=function(_0x59c4fd,_0x12527f){_0x59c4fd=_0x59c4fd-0x87;let _0x19a8a6=_0xa2ef81[_0x59c4fd];return _0x19a8a6;},a65_0x59c4(_0x38dace,_0x455f9e);}function a65_0xa2ef(){const _0x53506e=['INVALID_ARGUMENT','4ubGwyw','69219tTVdix','5069680kGRcCy','8VGdnqC','INTERNAL','code','471900NfeHaa','263079ixymMY','1020321mDOUlc','parse','2GCSibr','Invalid\x20JSON\x20in\x20file\x20\x27','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','\x27:\x20','File\x20not\x20found:\x20','803890XexFpa','PERMISSION_DENIED','utf-8','message','ENOENT','Permission\x20denied\x20reading\x20file:\x20','216559eeKpnP'];a65_0xa2ef=function(){return _0x53506e;};return a65_0xa2ef();}
1
+ (function(_0x3024c2,_0xbd231){const _0x3476fc=a65_0x5c16,_0x34649f=_0x3024c2();while(!![]){try{const _0x151c8f=parseInt(_0x3476fc(0x11a))/0x1+parseInt(_0x3476fc(0x115))/0x2+parseInt(_0x3476fc(0x119))/0x3*(parseInt(_0x3476fc(0x11c))/0x4)+parseInt(_0x3476fc(0x117))/0x5+-parseInt(_0x3476fc(0x11d))/0x6+parseInt(_0x3476fc(0x123))/0x7*(-parseInt(_0x3476fc(0x12a))/0x8)+-parseInt(_0x3476fc(0x127))/0x9;if(_0x151c8f===_0xbd231)break;else _0x34649f['push'](_0x34649f['shift']());}catch(_0x42bcd4){_0x34649f['push'](_0x34649f['shift']());}}}(a65_0x1ef4,0xe30b5));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a65_0x1ef4(){const _0x29c30d=['Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','1382715sYUOnh','1634984vZWqeK','message','12mBuihX','8646834mvGgKE','NOT_FOUND','Failed\x20to\x20load\x20JSON:\x20','\x27:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','PERMISSION_DENIED','1260OzoujV','parse','code','Invalid\x20JSON\x20string:\x20','24410151LFenOo','EACCES','INVALID_ARGUMENT','5440oDyIlZ','utf-8','INTERNAL','2334018UzQEdh','ENOENT','5105215OEmsZB'];a65_0x1ef4=function(){return _0x29c30d;};return a65_0x1ef4();}function a65_0x5c16(_0x207a47,_0xa65516){const _0x1ef4f3=a65_0x1ef4();return a65_0x5c16=function(_0x5c1610,_0x53338c){_0x5c1610=_0x5c1610-0x114;let _0x4c7669=_0x1ef4f3[_0x5c1610];return _0x4c7669;},a65_0x5c16(_0x207a47,_0xa65516);}export async function loadJSON(_0x10ae4a,_0x495470){const _0x5307b2=a65_0x5c16;try{if(_0x495470){const _0x41f7d1=await readFile(_0x10ae4a,_0x5307b2(0x12b));try{return JSON[_0x5307b2(0x124)](_0x41f7d1);}catch(_0x31ea1f){throw new SDKError(ErrorCode[_0x5307b2(0x129)],_0x5307b2(0x121)+_0x10ae4a+_0x5307b2(0x120)+(_0x31ea1f instanceof Error?_0x31ea1f[_0x5307b2(0x11b)]:String(_0x31ea1f)));}}else try{return JSON[_0x5307b2(0x124)](_0x10ae4a);}catch(_0xc16d29){throw new SDKError(ErrorCode[_0x5307b2(0x129)],_0x5307b2(0x126)+(_0xc16d29 instanceof Error?_0xc16d29[_0x5307b2(0x11b)]:String(_0xc16d29)));}}catch(_0x36cc5b){if(_0x36cc5b instanceof SDKError)throw _0x36cc5b;if(_0x36cc5b instanceof Error&&_0x5307b2(0x125)in _0x36cc5b){const _0x591265=_0x36cc5b;if(_0x591265[_0x5307b2(0x125)]===_0x5307b2(0x116))throw new SDKError(ErrorCode[_0x5307b2(0x11e)],'File\x20not\x20found:\x20'+_0x10ae4a);else{if(_0x591265['code']===_0x5307b2(0x128))throw new SDKError(ErrorCode[_0x5307b2(0x122)],'Permission\x20denied\x20reading\x20file:\x20'+_0x10ae4a);}}throw new SDKError(ErrorCode[_0x5307b2(0x114)],_0x5307b2(0x11f)+(_0x36cc5b instanceof Error?_0x36cc5b[_0x5307b2(0x11b)]:String(_0x36cc5b)));}}export async function loadJSONFromOptions(_0x55e8ad,_0x41ae74){const _0x4d82cd=a65_0x5c16;if(_0x55e8ad&&_0x41ae74)throw new SDKError(ErrorCode[_0x4d82cd(0x129)],_0x4d82cd(0x118));if(_0x55e8ad)return await loadJSON(_0x55e8ad,![]);if(_0x41ae74)return await loadJSON(_0x41ae74,!![]);return undefined;}
@@ -1 +1 @@
1
- const a66_0x2358ba=a66_0x5d5c;(function(_0x546cbc,_0x12d632){const _0x4f0320=a66_0x5d5c,_0x5886e3=_0x546cbc();while(!![]){try{const _0x226802=-parseInt(_0x4f0320(0x156))/0x1+parseInt(_0x4f0320(0x155))/0x2*(-parseInt(_0x4f0320(0x14f))/0x3)+-parseInt(_0x4f0320(0x15b))/0x4+-parseInt(_0x4f0320(0x14e))/0x5*(parseInt(_0x4f0320(0x152))/0x6)+parseInt(_0x4f0320(0x14d))/0x7*(-parseInt(_0x4f0320(0x150))/0x8)+-parseInt(_0x4f0320(0x157))/0x9*(parseInt(_0x4f0320(0x15a))/0xa)+-parseInt(_0x4f0320(0x154))/0xb*(-parseInt(_0x4f0320(0x159))/0xc);if(_0x226802===_0x12d632)break;else _0x5886e3['push'](_0x5886e3['shift']());}catch(_0x448ab7){_0x5886e3['push'](_0x5886e3['shift']());}}}(a66_0x4a00,0x43d87));const MODEL_ALIASES={'haiku':a66_0x2358ba(0x158),'sonnet':a66_0x2358ba(0x153)};function a66_0x5d5c(_0x179943,_0x3d16e4){const _0x4a0011=a66_0x4a00();return a66_0x5d5c=function(_0x5d5ca4,_0x4a779d){_0x5d5ca4=_0x5d5ca4-0x14d;let _0xb6ead8=_0x4a0011[_0x5d5ca4];return _0xb6ead8;},a66_0x5d5c(_0x179943,_0x3d16e4);}export function resolveModelAlias(_0x3c6e78){const _0x5b1b9c=a66_0x2358ba;return MODEL_ALIASES[_0x3c6e78[_0x5b1b9c(0x151)]()]||_0x3c6e78;}function a66_0x4a00(){const _0x11c812=['23191LSxZeW','13370vmMGGo','3DywnVA','80PKbulg','toLowerCase','522NYoDWH','claude-4.5-sonnet','2730926larIdS','1101366hpmUgD','94329HhNOoC','9azAefn','claude-4.5-haiku','96AmZSxS','2816470OxgZUY','2063224ybuhtE'];a66_0x4a00=function(){return _0x11c812;};return a66_0x4a00();}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a66_0x4a825b=a66_0x2844;(function(_0x49a7cb,_0x3654d0){const _0x1b531f=a66_0x2844,_0x1fd4a3=_0x49a7cb();while(!![]){try{const _0x283693=-parseInt(_0x1b531f(0x186))/0x1+-parseInt(_0x1b531f(0x187))/0x2*(-parseInt(_0x1b531f(0x188))/0x3)+-parseInt(_0x1b531f(0x189))/0x4+-parseInt(_0x1b531f(0x181))/0x5*(-parseInt(_0x1b531f(0x184))/0x6)+-parseInt(_0x1b531f(0x185))/0x7+parseInt(_0x1b531f(0x18c))/0x8*(parseInt(_0x1b531f(0x18a))/0x9)+-parseInt(_0x1b531f(0x18b))/0xa;if(_0x283693===_0x3654d0)break;else _0x1fd4a3['push'](_0x1fd4a3['shift']());}catch(_0x438e7e){_0x1fd4a3['push'](_0x1fd4a3['shift']());}}}(a66_0x4e70,0x895d6));const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':a66_0x4a825b(0x182)};function a66_0x2844(_0x462f54,_0x5c70b7){const _0x4e70b6=a66_0x4e70();return a66_0x2844=function(_0x28443f,_0x343553){_0x28443f=_0x28443f-0x181;let _0x43052b=_0x4e70b6[_0x28443f];return _0x43052b;},a66_0x2844(_0x462f54,_0x5c70b7);}export function resolveModelAlias(_0x5de7a5){const _0x22204d=a66_0x4a825b;return MODEL_ALIASES[_0x5de7a5[_0x22204d(0x183)]()]||_0x5de7a5;}function a66_0x4e70(){const _0x4f54f6=['9aGETAa','1313440awOAuo','6593736DpguDX','25wAukXp','claude-4.5-sonnet','toLowerCase','630384rkAiRO','4090912EOhbfx','130817poOkSt','1917298HmwDkg','3dMVFjl','3595852MqOqIz'];a66_0x4e70=function(){return _0x4f54f6;};return a66_0x4e70();}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x590937,_0x5894c3){const _0x13faf8=a67_0x12c7,_0x244a67=_0x590937();while(!![]){try{const _0x5dbc85=parseInt(_0x13faf8(0x119))/0x1*(parseInt(_0x13faf8(0x125))/0x2)+-parseInt(_0x13faf8(0x11c))/0x3+-parseInt(_0x13faf8(0x11b))/0x4+parseInt(_0x13faf8(0x11a))/0x5*(parseInt(_0x13faf8(0x11f))/0x6)+-parseInt(_0x13faf8(0x121))/0x7+-parseInt(_0x13faf8(0x120))/0x8+-parseInt(_0x13faf8(0x122))/0x9*(-parseInt(_0x13faf8(0x11e))/0xa);if(_0x5dbc85===_0x5894c3)break;else _0x244a67['push'](_0x244a67['shift']());}catch(_0x376720){_0x244a67['push'](_0x244a67['shift']());}}}(a67_0x5bf1,0x5240e));export function validateLimitOption(_0x3c5174){const _0x3b99ac=a67_0x12c7;if(!Number['isInteger'](_0x3c5174))return{'isValid':![],'error':_0x3b99ac(0x11d)+_0x3c5174+_0x3b99ac(0x127)};if(_0x3c5174<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3c5174+_0x3b99ac(0x124)};return{'isValid':!![],'value':_0x3c5174};}function a67_0x5bf1(){const _0x344cdf=['Invalid\x20limit\x20value:\x20','30RDOSLj','3685296LbcwJV','1954752sieNik','2778650ONcFuZ','432261jVQFbc','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20positive\x20integer.','386NkNzQE','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','.\x20Must\x20be\x20a\x20number.','number','2454MKavKX','5maHpgB','322880CAucbQ','519003wEfIuV'];a67_0x5bf1=function(){return _0x344cdf;};return a67_0x5bf1();}function a67_0x12c7(_0x22aeca,_0x236c59){const _0x5bf17d=a67_0x5bf1();return a67_0x12c7=function(_0x12c77d,_0x2084cf){_0x12c77d=_0x12c77d-0x119;let _0x22a2fc=_0x5bf17d[_0x12c77d];return _0x22a2fc;},a67_0x12c7(_0x22aeca,_0x236c59);}export function validateTimeoutOption(_0x3a8ee2,_0x3a6a6d=0x1e){const _0x5b2443=a67_0x12c7;if(_0x3a8ee2===undefined)return{'isValid':!![],'value':_0x3a6a6d};const _0x18bcd7=typeof _0x3a8ee2===_0x5b2443(0x129)?_0x3a8ee2:parseFloat(_0x3a8ee2);if(isNaN(_0x18bcd7))return{'isValid':![],'error':_0x5b2443(0x126)+_0x3a8ee2+_0x5b2443(0x128)};if(_0x18bcd7<=0x0)return{'isValid':![],'error':_0x5b2443(0x126)+_0x18bcd7+_0x5b2443(0x123)};return{'isValid':!![],'value':_0x18bcd7};}
1
+ function a67_0x1962(){const _0x46f129=['6BVMlNo','Invalid\x20timeout\x20value:\x20','isInteger','2550438RclDJG','2025020FLynnp','4240415EjpLpl','134788iOsiiP','.\x20Must\x20be\x20an\x20integer.','number','.\x20Must\x20be\x20a\x20number.','.\x20Must\x20be\x20a\x20positive\x20integer.','627870kNJevN','24oTqhNo','8129310RefOjE','541596xJdsKH'];a67_0x1962=function(){return _0x46f129;};return a67_0x1962();}(function(_0x460ec4,_0x1745fa){const _0x59063f=a67_0x269b,_0x1dc915=_0x460ec4();while(!![]){try{const _0x326c98=-parseInt(_0x59063f(0x90))/0x1+-parseInt(_0x59063f(0x95))/0x2*(-parseInt(_0x59063f(0x99))/0x3)+-parseInt(_0x59063f(0x8e))/0x4+parseInt(_0x59063f(0x8f))/0x5+parseInt(_0x59063f(0x98))/0x6+-parseInt(_0x59063f(0x97))/0x7+-parseInt(_0x59063f(0x96))/0x8*(-parseInt(_0x59063f(0x9c))/0x9);if(_0x326c98===_0x1745fa)break;else _0x1dc915['push'](_0x1dc915['shift']());}catch(_0x3c0e4f){_0x1dc915['push'](_0x1dc915['shift']());}}}(a67_0x1962,0x95e68));function a67_0x269b(_0x375bed,_0x1a2a97){const _0x196215=a67_0x1962();return a67_0x269b=function(_0x269b4d,_0x20a6e6){_0x269b4d=_0x269b4d-0x8e;let _0x42348d=_0x196215[_0x269b4d];return _0x42348d;},a67_0x269b(_0x375bed,_0x1a2a97);}export function validateLimitOption(_0x47572e){const _0x3b20bd=a67_0x269b;if(!Number[_0x3b20bd(0x9b)](_0x47572e))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x47572e+_0x3b20bd(0x91)};if(_0x47572e<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x47572e+_0x3b20bd(0x94)};return{'isValid':!![],'value':_0x47572e};}export function validateTimeoutOption(_0x5aaca2,_0x166500=0x1e){const _0x1f2373=a67_0x269b;if(_0x5aaca2===undefined)return{'isValid':!![],'value':_0x166500};const _0x1dcfab=typeof _0x5aaca2===_0x1f2373(0x92)?_0x5aaca2:parseFloat(_0x5aaca2);if(isNaN(_0x1dcfab))return{'isValid':![],'error':_0x1f2373(0x9a)+_0x5aaca2+_0x1f2373(0x93)};if(_0x1dcfab<=0x0)return{'isValid':![],'error':_0x1f2373(0x9a)+_0x1dcfab+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x1dcfab};}
@@ -1 +1 @@
1
- (function(_0x58f645,_0x2831b8){const _0x9b1897=a68_0x22aa,_0x37c644=_0x58f645();while(!![]){try{const _0x38d57e=-parseInt(_0x9b1897(0x1df))/0x1*(parseInt(_0x9b1897(0x1ea))/0x2)+parseInt(_0x9b1897(0x1dc))/0x3*(-parseInt(_0x9b1897(0x1e2))/0x4)+parseInt(_0x9b1897(0x1d9))/0x5+parseInt(_0x9b1897(0x1e4))/0x6+-parseInt(_0x9b1897(0x1e8))/0x7+-parseInt(_0x9b1897(0x1dd))/0x8+parseInt(_0x9b1897(0x1e0))/0x9*(parseInt(_0x9b1897(0x1e1))/0xa);if(_0x38d57e===_0x2831b8)break;else _0x37c644['push'](_0x37c644['shift']());}catch(_0xb821b3){_0x37c644['push'](_0x37c644['shift']());}}}(a68_0x4ddc,0x2f443));function a68_0x4ddc(){const _0x191dcf=['1OJadcl','2070XidjCN','2730ufVAin','30412jQPGCz','0.0.0.0','1518324ETDopo','once','EADDRINUSE','error','541163lPhcDT','code','367730KdqTbB','listening','1242460wlHvHL','\x20and\x20','No\x20available\x20port\x20found\x20between\x20','39MgGimG','85760noobYD','close'];a68_0x4ddc=function(){return _0x191dcf;};return a68_0x4ddc();}import{createServer}from'node:net';function a68_0x22aa(_0x371fa5,_0x372811){const _0x4ddcc6=a68_0x4ddc();return a68_0x22aa=function(_0x22aad9,_0xa5354d){_0x22aad9=_0x22aad9-0x1d9;let _0x584ba5=_0x4ddcc6[_0x22aad9];return _0x584ba5;},a68_0x22aa(_0x371fa5,_0x372811);}export async function isPortAvailable(_0x3f07c5){return new Promise(_0x3cd63c=>{const _0x2b61e8=a68_0x22aa,_0x3d358d=createServer();_0x3d358d['once'](_0x2b61e8(0x1e7),_0x21d1dc=>{const _0x21473c=_0x2b61e8;_0x21d1dc[_0x21473c(0x1e9)]===_0x21473c(0x1e6)?_0x3cd63c(![]):_0x3cd63c(![]);}),_0x3d358d[_0x2b61e8(0x1e5)](_0x2b61e8(0x1eb),()=>{const _0x387784=_0x2b61e8;_0x3d358d[_0x387784(0x1de)](),_0x3cd63c(!![]);}),_0x3d358d['listen'](_0x3f07c5,_0x2b61e8(0x1e3));});}export async function findAvailablePort(_0x1288e9=0xfa0,_0x5db9e3=0x64){const _0x153aee=a68_0x22aa;for(let _0x6277bf=0x0;_0x6277bf<_0x5db9e3;_0x6277bf++){const _0x5b3a76=_0x1288e9+_0x6277bf;if(await isPortAvailable(_0x5b3a76))return _0x5b3a76;}throw new Error(_0x153aee(0x1db)+_0x1288e9+_0x153aee(0x1da)+(_0x1288e9+_0x5db9e3-0x1));}
1
+ function a68_0xb82e(_0x1005ae,_0x201919){const _0x3702dc=a68_0x3702();return a68_0xb82e=function(_0xb82e76,_0x4d8bb6){_0xb82e76=_0xb82e76-0x1b6;let _0x26718a=_0x3702dc[_0xb82e76];return _0x26718a;},a68_0xb82e(_0x1005ae,_0x201919);}function a68_0x3702(){const _0x9db4c6=['286HXRfyO','6jWSuKz','1983046oOGftP','error','once','listen','77394difbwi','10stqdDg','\x20and\x20','10792jKXAcQ','370oLoniC','2653232ayHfSu','1777EBqLGI','No\x20available\x20port\x20found\x20between\x20','1662507IIhEKW','listening','8721anTbTj','code','156PDGfnN','0.0.0.0','9193562vTWyZl'];a68_0x3702=function(){return _0x9db4c6;};return a68_0x3702();}(function(_0x54b530,_0x1081f8){const _0x5cb74b=a68_0xb82e,_0x4daafc=_0x54b530();while(!![]){try{const _0x2edd7e=parseInt(_0x5cb74b(0x1c6))/0x1*(parseInt(_0x5cb74b(0x1ba))/0x2)+parseInt(_0x5cb74b(0x1bb))/0x3*(-parseInt(_0x5cb74b(0x1c5))/0x4)+parseInt(_0x5cb74b(0x1c4))/0x5*(parseInt(_0x5cb74b(0x1c0))/0x6)+parseInt(_0x5cb74b(0x1b9))/0x7+-parseInt(_0x5cb74b(0x1c3))/0x8*(-parseInt(_0x5cb74b(0x1ca))/0x9)+-parseInt(_0x5cb74b(0x1c1))/0xa*(-parseInt(_0x5cb74b(0x1c8))/0xb)+-parseInt(_0x5cb74b(0x1b7))/0xc*(parseInt(_0x5cb74b(0x1bc))/0xd);if(_0x2edd7e===_0x1081f8)break;else _0x4daafc['push'](_0x4daafc['shift']());}catch(_0x2967fe){_0x4daafc['push'](_0x4daafc['shift']());}}}(a68_0x3702,0xa3bc3));import{createServer}from'node:net';export async function isPortAvailable(_0x554152){return new Promise(_0x466a5c=>{const _0x18b04c=a68_0xb82e,_0x586382=createServer();_0x586382[_0x18b04c(0x1be)](_0x18b04c(0x1bd),_0x1909cc=>{const _0x4b106c=_0x18b04c;_0x1909cc[_0x4b106c(0x1b6)]==='EADDRINUSE'?_0x466a5c(![]):_0x466a5c(![]);}),_0x586382[_0x18b04c(0x1be)](_0x18b04c(0x1c9),()=>{_0x586382['close'](),_0x466a5c(!![]);}),_0x586382[_0x18b04c(0x1bf)](_0x554152,_0x18b04c(0x1b8));});}export async function findAvailablePort(_0x56a7ba=0xfa0,_0x2286a9=0x64){const _0x4bd47f=a68_0xb82e;for(let _0x2d6f92=0x0;_0x2d6f92<_0x2286a9;_0x2d6f92++){const _0x5c4da1=_0x56a7ba+_0x2d6f92;if(await isPortAvailable(_0x5c4da1))return _0x5c4da1;}throw new Error(_0x4bd47f(0x1c7)+_0x56a7ba+_0x4bd47f(0x1c2)+(_0x56a7ba+_0x2286a9-0x1));}
@@ -1 +1 @@
1
- const a69_0x1d9f56=a69_0x223f;function a69_0x2e35(){const _0x469552=['Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','utf-8','fish','replace','trim','comm','ppid','csh','730dhBPKg','9504702nAaTPv','pop','35KhEijP','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','5wxOThR','DEBUG','length','pid','powershell','bash','140254OtlBpg','has','60731uzMAAC','elvish','\x20-o\x20ppid=,comm=','25wOORUK','dash','11332896Ycnbsu','filter','pwsh','split','1084cRHYWa','platform','win32',',\x20using\x20fallback','6033BgsWeM','855810fwDXvl','wmic\x20process\x20where\x20ProcessId=','zsh','kill','error','\x20on\x20POSIX:','ksh','join','614624RAvKuy','env'];a69_0x2e35=function(){return _0x469552;};return a69_0x2e35();}(function(_0x2a1047,_0x2670a8){const _0x268617=a69_0x223f,_0x88c75b=_0x2a1047();while(!![]){try{const _0x3c8a13=parseInt(_0x268617(0x84))/0x1*(parseInt(_0x268617(0x8a))/0x2)+-parseInt(_0x268617(0x99))/0x3*(parseInt(_0x268617(0x95))/0x4)+-parseInt(_0x268617(0x8f))/0x5*(-parseInt(_0x268617(0x9a))/0x6)+-parseInt(_0x268617(0x82))/0x7*(parseInt(_0x268617(0xa2))/0x8)+parseInt(_0x268617(0x80))/0x9+-parseInt(_0x268617(0xac))/0xa*(-parseInt(_0x268617(0x8c))/0xb)+-parseInt(_0x268617(0x91))/0xc;if(_0x3c8a13===_0x2670a8)break;else _0x88c75b['push'](_0x88c75b['shift']());}catch(_0xe92e31){_0x88c75b['push'](_0x88c75b['shift']());}}}(a69_0x2e35,0x9e8b0));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a69_0x1d9f56(0x89),a69_0x1d9f56(0x9c),'sh',a69_0x1d9f56(0xa6),a69_0x1d9f56(0xa0),'tcsh',a69_0x1d9f56(0xab),a69_0x1d9f56(0x90),a69_0x1d9f56(0x93),a69_0x1d9f56(0x88),'nu','ion',a69_0x1d9f56(0x8d),'xonsh']);function getProcessInfoWindows(_0x4ce5cf){const _0x1575c3=a69_0x1d9f56;try{const _0x428144=execSync(_0x1575c3(0x9b)+_0x4ce5cf+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x1575c3(0xa5),'windowsHide':!![]})[_0x1575c3(0xa8)](),_0x4c47ed=_0x428144[_0x1575c3(0x94)]('\x0a')[_0x1575c3(0x92)](_0x1c2a81=>_0x1c2a81[_0x1575c3(0xa8)]());if(_0x4c47ed[_0x1575c3(0x86)]<0x2)return null;const _0x1019f8=_0x4c47ed[_0x4c47ed[_0x1575c3(0x86)]-0x1]['split'](',');if(_0x1019f8[_0x1575c3(0x86)]<0x3)return null;const _0x3249a3=_0x1019f8[0x1]?.[_0x1575c3(0xa8)]()||'',_0x1c9f24=parseInt(_0x1019f8[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x1c9f24)||!_0x3249a3)return null;return{'pid':_0x4ce5cf,'ppid':_0x1c9f24,'comm':_0x3249a3[_0x1575c3(0xa7)](/\.exe$/i,'')};}catch(_0x390c21){return process['env'][_0x1575c3(0x85)]&&console['error']('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x4ce5cf+'\x20on\x20Windows:',_0x390c21),null;}}function getProcessInfoPosix(_0x276d86){const _0x37817d=a69_0x1d9f56;try{const _0x4690de=execSync('ps\x20-p\x20'+_0x276d86+_0x37817d(0x8e),{'encoding':_0x37817d(0xa5)})[_0x37817d(0xa8)](),[_0x2f6b85,..._0x32282d]=_0x4690de['split'](/\s+/),_0x59c7a7=parseInt(_0x2f6b85,0xa),_0x2f094f=_0x32282d[_0x37817d(0xa1)]('\x20');if(isNaN(_0x59c7a7))return null;return{'pid':_0x276d86,'ppid':_0x59c7a7,'comm':_0x2f094f};}catch(_0x3616a5){return process[_0x37817d(0xa3)][_0x37817d(0x85)]&&console[_0x37817d(0x9e)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x276d86+_0x37817d(0x9f),_0x3616a5),null;}}function getProcessInfo(_0x3a7d40){const _0x26acc1=a69_0x1d9f56;if(process[_0x26acc1(0x96)]===_0x26acc1(0x97))return getProcessInfoWindows(_0x3a7d40);return getProcessInfoPosix(_0x3a7d40);}function isShell(_0x3e85ec){const _0x56cfad=a69_0x1d9f56,_0x135c04=_0x3e85ec[_0x56cfad(0xa7)](/^-/,'')[_0x56cfad(0x94)]('/')[_0x56cfad(0x81)]()||'';return SHELL_NAMES[_0x56cfad(0x8b)](_0x135c04['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x2eddc5=a69_0x1d9f56;let _0x3613fd=process['ppid'];const _0x5674e6=0xa;let _0x3cae39=0x0;while(_0x3cae39<_0x5674e6){const _0xe561eb=getProcessInfo(_0x3613fd);if(!_0xe561eb){process['env'][_0x2eddc5(0x85)]&&console[_0x2eddc5(0x9e)](_0x2eddc5(0xa4)+_0x3613fd+_0x2eddc5(0x98));break;}if(isShell(_0xe561eb[_0x2eddc5(0xa9)]))return _0xe561eb[_0x2eddc5(0x87)];if(_0xe561eb['ppid']===0x0||_0xe561eb[_0x2eddc5(0xaa)]===0x1){if(isShell(_0xe561eb[_0x2eddc5(0xa9)]))return _0xe561eb[_0x2eddc5(0x87)];break;}_0x3613fd=_0xe561eb[_0x2eddc5(0xaa)],_0x3cae39++;}return process[_0x2eddc5(0xa3)][_0x2eddc5(0x85)]&&console[_0x2eddc5(0x9e)](_0x2eddc5(0x83)),process[_0x2eddc5(0xaa)];}function a69_0x223f(_0x236494,_0x264299){const _0x2e35ad=a69_0x2e35();return a69_0x223f=function(_0x223f93,_0x1ec415){_0x223f93=_0x223f93-0x80;let _0x4115fd=_0x2e35ad[_0x223f93];return _0x4115fd;},a69_0x223f(_0x236494,_0x264299);}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x5b81c6){const _0x11ec70=a69_0x1d9f56;try{return process[_0x11ec70(0x9d)](_0x5b81c6,0x0),!![];}catch{return![];}}
1
+ const a69_0xf3868a=a69_0x2995;(function(_0x40b48b,_0x2a69bd){const _0x151b0a=a69_0x2995,_0x3a6e92=_0x40b48b();while(!![]){try{const _0x17aaf8=parseInt(_0x151b0a(0xac))/0x1*(parseInt(_0x151b0a(0xc8))/0x2)+parseInt(_0x151b0a(0xb1))/0x3*(parseInt(_0x151b0a(0xd2))/0x4)+parseInt(_0x151b0a(0xb3))/0x5+parseInt(_0x151b0a(0xb7))/0x6+-parseInt(_0x151b0a(0xc7))/0x7*(parseInt(_0x151b0a(0xce))/0x8)+parseInt(_0x151b0a(0xd1))/0x9*(-parseInt(_0x151b0a(0xb2))/0xa)+-parseInt(_0x151b0a(0xbd))/0xb;if(_0x17aaf8===_0x2a69bd)break;else _0x3a6e92['push'](_0x3a6e92['shift']());}catch(_0x13e5bc){_0x3a6e92['push'](_0x3a6e92['shift']());}}}(a69_0x5878,0x1a212));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a69_0xf3868a(0xb9),a69_0xf3868a(0xb8),'sh',a69_0xf3868a(0xad),a69_0xf3868a(0xab),a69_0xf3868a(0xc5),a69_0xf3868a(0xb5),a69_0xf3868a(0xa9),a69_0xf3868a(0xaf),'powershell','nu',a69_0xf3868a(0xa8),a69_0xf3868a(0xc6),'xonsh']);function getProcessInfoWindows(_0x589ed2){const _0x107959=a69_0xf3868a;try{const _0x38a98f=execSync(_0x107959(0xcd)+_0x589ed2+_0x107959(0xc1),{'encoding':'utf-8','windowsHide':!![]})[_0x107959(0xbb)](),_0x3c957c=_0x38a98f[_0x107959(0xcc)]('\x0a')[_0x107959(0xaa)](_0x8ae3e2=>_0x8ae3e2[_0x107959(0xbb)]());if(_0x3c957c[_0x107959(0xb4)]<0x2)return null;const _0x1be342=_0x3c957c[_0x3c957c[_0x107959(0xb4)]-0x1][_0x107959(0xcc)](',');if(_0x1be342[_0x107959(0xb4)]<0x3)return null;const _0x90fb68=_0x1be342[0x1]?.['trim']()||'',_0x4b5743=parseInt(_0x1be342[0x2]?.[_0x107959(0xbb)]()||'0',0xa);if(isNaN(_0x4b5743)||!_0x90fb68)return null;return{'pid':_0x589ed2,'ppid':_0x4b5743,'comm':_0x90fb68[_0x107959(0xc0)](/\.exe$/i,'')};}catch(_0x2015de){return process['env'][_0x107959(0xc9)]&&console[_0x107959(0xcb)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x589ed2+'\x20on\x20Windows:',_0x2015de),null;}}function getProcessInfoPosix(_0x3f6da6){const _0x1049c3=a69_0xf3868a;try{const _0x33d23e=execSync(_0x1049c3(0xbe)+_0x3f6da6+'\x20-o\x20ppid=,comm=',{'encoding':_0x1049c3(0xa7)})[_0x1049c3(0xbb)](),[_0x3d46b3,..._0x3f8d9b]=_0x33d23e[_0x1049c3(0xcc)](/\s+/),_0xfaf782=parseInt(_0x3d46b3,0xa),_0x319f93=_0x3f8d9b[_0x1049c3(0xca)]('\x20');if(isNaN(_0xfaf782))return null;return{'pid':_0x3f6da6,'ppid':_0xfaf782,'comm':_0x319f93};}catch(_0x1ff37b){return process[_0x1049c3(0xbc)][_0x1049c3(0xc9)]&&console[_0x1049c3(0xcb)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x3f6da6+'\x20on\x20POSIX:',_0x1ff37b),null;}}function getProcessInfo(_0xc6faa3){const _0x4d84b6=a69_0xf3868a;if(process[_0x4d84b6(0xae)]==='win32')return getProcessInfoWindows(_0xc6faa3);return getProcessInfoPosix(_0xc6faa3);}function isShell(_0x1d1d9e){const _0x379a99=a69_0xf3868a,_0x4a5f10=_0x1d1d9e[_0x379a99(0xc0)](/^-/,'')['split']('/')['pop']()||'';return SHELL_NAMES[_0x379a99(0xc4)](_0x4a5f10[_0x379a99(0xba)]());}function a69_0x2995(_0x4e0d1b,_0x364259){const _0x58781c=a69_0x5878();return a69_0x2995=function(_0x2995ff,_0x57f1ad){_0x2995ff=_0x2995ff-0xa7;let _0x1a984c=_0x58781c[_0x2995ff];return _0x1a984c;},a69_0x2995(_0x4e0d1b,_0x364259);}let cachedShellPID;function findShellPID(){const _0x29483c=a69_0xf3868a;let _0x59ac70=process[_0x29483c(0xd0)];const _0xd19dd6=0xa;let _0xf0309b=0x0;while(_0xf0309b<_0xd19dd6){const _0x95d915=getProcessInfo(_0x59ac70);if(!_0x95d915){process[_0x29483c(0xbc)][_0x29483c(0xc9)]&&console['error'](_0x29483c(0xb0)+_0x59ac70+_0x29483c(0xbf));break;}if(isShell(_0x95d915[_0x29483c(0xcf)]))return _0x95d915[_0x29483c(0xc2)];if(_0x95d915[_0x29483c(0xd0)]===0x0||_0x95d915['ppid']===0x1){if(isShell(_0x95d915[_0x29483c(0xcf)]))return _0x95d915[_0x29483c(0xc2)];break;}_0x59ac70=_0x95d915[_0x29483c(0xd0)],_0xf0309b++;}return process[_0x29483c(0xbc)][_0x29483c(0xc9)]&&console[_0x29483c(0xcb)](_0x29483c(0xb6)),process[_0x29483c(0xd0)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x592437){const _0x21d311=a69_0xf3868a;try{return process[_0x21d311(0xc3)](_0x592437,0x0),!![];}catch{return![];}}function a69_0x5878(){const _0x4aefa1=['elvish','23296tPvoSr','8vjjsLP','DEBUG','join','error','split','wmic\x20process\x20where\x20ProcessId=','136IETuFj','comm','ppid','9ctkLsN','8184TjCyXB','utf-8','ion','dash','filter','ksh','15814uacwLq','fish','platform','pwsh','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','9uUoROM','456180MwVLVj','913945ZGOwAh','length','csh','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','502206MNICLj','zsh','bash','toLowerCase','trim','env','1393304WpkqqP','ps\x20-p\x20',',\x20using\x20fallback','replace','\x20get\x20ParentProcessId,Name\x20/format:csv','pid','kill','has','tcsh'];a69_0x5878=function(){return _0x4aefa1;};return a69_0x5878();}
@@ -1 +1 @@
1
- function a70_0x2dda(_0x45fea0,_0x59897c){const _0x224e8b=a70_0x224e();return a70_0x2dda=function(_0x2dda12,_0x585493){_0x2dda12=_0x2dda12-0x1e1;let _0x59ec1c=_0x224e8b[_0x2dda12];return _0x59ec1c;},a70_0x2dda(_0x45fea0,_0x59897c);}(function(_0x30760a,_0x1a319a){const _0x224dee=a70_0x2dda,_0x52bd58=_0x30760a();while(!![]){try{const _0x2e5aff=parseInt(_0x224dee(0x1ed))/0x1*(parseInt(_0x224dee(0x1e8))/0x2)+-parseInt(_0x224dee(0x1e3))/0x3+parseInt(_0x224dee(0x1e2))/0x4+-parseInt(_0x224dee(0x1e1))/0x5+-parseInt(_0x224dee(0x1e4))/0x6*(-parseInt(_0x224dee(0x1eb))/0x7)+parseInt(_0x224dee(0x1e5))/0x8+parseInt(_0x224dee(0x1e9))/0x9*(-parseInt(_0x224dee(0x1ea))/0xa);if(_0x2e5aff===_0x1a319a)break;else _0x52bd58['push'](_0x52bd58['shift']());}catch(_0x58cee2){_0x52bd58['push'](_0x52bd58['shift']());}}}(a70_0x224e,0x6f0ab));import*as a70_0x575b38 from'readline';function a70_0x224e(){const _0x32af68=['54101sCzKcT','toLowerCase','2908100dSdxCP','783292bSpons','2201676QNQIHB','1994676bIuphg','7241712thbhjj','question','yes','16INQuAv','863568ILzyFJ','10FmIqjU','7uPvUHJ','stdout'];a70_0x224e=function(){return _0x32af68;};return a70_0x224e();}export async function confirm(_0x53a520){const _0x250cd5=a70_0x2dda,_0x340f9a=a70_0x575b38['createInterface']({'input':process['stdin'],'output':process[_0x250cd5(0x1ec)]});return new Promise(_0x34b04b=>{const _0x1e7f00=_0x250cd5;_0x340f9a[_0x1e7f00(0x1e6)](_0x53a520+'\x20(y/N):\x20',_0x6e58dc=>{const _0x54492f=_0x1e7f00;_0x340f9a['close'](),_0x34b04b(_0x6e58dc[_0x54492f(0x1ee)]()==='y'||_0x6e58dc[_0x54492f(0x1ee)]()===_0x54492f(0x1e7));});});}
1
+ (function(_0x3f1db4,_0x26afaf){const _0x58b56e=a70_0x3184,_0x17c2fc=_0x3f1db4();while(!![]){try{const _0x526573=parseInt(_0x58b56e(0x142))/0x1+-parseInt(_0x58b56e(0x139))/0x2+-parseInt(_0x58b56e(0x146))/0x3*(parseInt(_0x58b56e(0x147))/0x4)+parseInt(_0x58b56e(0x140))/0x5+-parseInt(_0x58b56e(0x13a))/0x6+-parseInt(_0x58b56e(0x137))/0x7+parseInt(_0x58b56e(0x13c))/0x8*(parseInt(_0x58b56e(0x13f))/0x9);if(_0x526573===_0x26afaf)break;else _0x17c2fc['push'](_0x17c2fc['shift']());}catch(_0x548e75){_0x17c2fc['push'](_0x17c2fc['shift']());}}}(a70_0x3476,0x43557));import*as a70_0x1697df from'readline';export async function confirm(_0xbc6cba){const _0x53609f=a70_0x3184,_0x13a475=a70_0x1697df[_0x53609f(0x138)]({'input':process[_0x53609f(0x144)],'output':process[_0x53609f(0x13d)]});return new Promise(_0x34cb48=>{const _0xc57712=_0x53609f;_0x13a475[_0xc57712(0x141)](_0xbc6cba+_0xc57712(0x143),_0x26fbac=>{const _0x3e6817=_0xc57712;_0x13a475[_0x3e6817(0x13e)](),_0x34cb48(_0x26fbac[_0x3e6817(0x145)]()==='y'||_0x26fbac['toLowerCase']()===_0x3e6817(0x13b));});});}function a70_0x3184(_0x1a88a,_0x2b5eef){const _0x347656=a70_0x3476();return a70_0x3184=function(_0x3184e2,_0x2fecb7){_0x3184e2=_0x3184e2-0x137;let _0xcf6653=_0x347656[_0x3184e2];return _0xcf6653;},a70_0x3184(_0x1a88a,_0x2b5eef);}function a70_0x3476(){const _0x17e06c=['\x20(y/N):\x20','stdin','toLowerCase','15AVPtAO','133316KVTnTq','3070242tkxWrH','createInterface','698154wHQuPE','2404554EHYShI','yes','7974752WIIPsp','stdout','close','9FNzvGb','1592145FvlRdq','question','315613yZxdxm'];a70_0x3476=function(){return _0x17e06c;};return a70_0x3476();}
@@ -1 +1 @@
1
- function a71_0x19cd(_0xd201cb,_0x32f908){const _0x388630=a71_0x3886();return a71_0x19cd=function(_0x19cdd5,_0x2b88c0){_0x19cdd5=_0x19cdd5-0x11d;let _0x1598fe=_0x388630[_0x19cdd5];return _0x1598fe;},a71_0x19cd(_0xd201cb,_0x32f908);}(function(_0x1e5353,_0x2fc290){const _0x1c590d=a71_0x19cd,_0x4aca7a=_0x1e5353();while(!![]){try{const _0x1678da=parseInt(_0x1c590d(0x123))/0x1*(-parseInt(_0x1c590d(0x134))/0x2)+parseInt(_0x1c590d(0x121))/0x3+-parseInt(_0x1c590d(0x12b))/0x4+-parseInt(_0x1c590d(0x11d))/0x5*(parseInt(_0x1c590d(0x131))/0x6)+-parseInt(_0x1c590d(0x12e))/0x7+-parseInt(_0x1c590d(0x132))/0x8+parseInt(_0x1c590d(0x12f))/0x9;if(_0x1678da===_0x2fc290)break;else _0x4aca7a['push'](_0x4aca7a['shift']());}catch(_0x2fcb3b){_0x4aca7a['push'](_0x4aca7a['shift']());}}}(a71_0x3886,0xe6ebb));export function parsePath(_0x3c264b){const _0x57b0b7=a71_0x19cd;if(!_0x3c264b||_0x3c264b[_0x57b0b7(0x137)]()==='')throw new Error(_0x57b0b7(0x125));const _0x42fd92=_0x3c264b[_0x57b0b7(0x137)]();if(_0x42fd92==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x3c264b};const _0x4197ec=_0x42fd92[_0x57b0b7(0x136)]('/')?_0x42fd92['substring'](0x1):_0x42fd92,_0x461ed1=_0x4197ec[_0x57b0b7(0x12a)]('/')['filter'](_0xa6559c=>_0xa6559c!=='');if(_0x461ed1[_0x57b0b7(0x128)]===0x0)throw new Error(_0x57b0b7(0x11f));const _0x2e0615=_0x42fd92[_0x57b0b7(0x136)]('/')||!isRelativePathSegment(_0x461ed1[0x0]);for(const _0x770bce of _0x461ed1){validatePathSegment(_0x770bce);}return{'segments':_0x461ed1,'isAbsolute':_0x2e0615,'raw':_0x3c264b};}function isRelativePathSegment(_0x1eb992){return _0x1eb992==='.'||_0x1eb992==='..';}function validatePathSegment(_0x200083){const _0x22744f=a71_0x19cd;if(_0x200083==='')throw new Error(_0x22744f(0x12d));if(_0x200083==='.'||_0x200083==='..')return;if(/[\x00-\x1F\x7F]/[_0x22744f(0x124)](_0x200083))throw new Error(_0x22744f(0x12c)+_0x200083);if(_0x200083!==_0x200083[_0x22744f(0x137)]()){}}export function validatePath(_0x5da5e3){const _0x144676=a71_0x19cd;if(_0x5da5e3[_0x144676(0x129)][_0x144676(0x128)]===0x0&&!_0x5da5e3['isAbsolute'])throw new Error(_0x144676(0x130));if(_0x5da5e3[_0x144676(0x11e)]){if(_0x5da5e3[_0x144676(0x129)][0x0]==='..')throw new Error(_0x144676(0x138));let _0x5a56cd=0x0;for(const _0x98d03d of _0x5da5e3[_0x144676(0x129)]){if(_0x98d03d==='..'){if(_0x5a56cd===0x0)throw new Error(_0x144676(0x122));_0x5a56cd--;}else _0x98d03d!=='.'&&_0x5a56cd++;}}}export function joinPaths(_0x5ed61b,_0x16603b){const _0x569995=a71_0x19cd;if(!_0x5ed61b||_0x5ed61b==='/')return _0x16603b;if(!_0x16603b||_0x16603b==='.')return _0x5ed61b;if(_0x16603b[_0x569995(0x136)]('/'))return _0x16603b;const _0x4cbdaf=parsePath(_0x5ed61b),_0x5b7359=parsePath(_0x16603b),_0x3da55d=[..._0x4cbdaf[_0x569995(0x129)]];for(const _0x54e8fb of _0x5b7359[_0x569995(0x129)]){if(_0x54e8fb==='.')continue;else{if(_0x54e8fb==='..'){if(_0x3da55d['length']===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x3da55d[_0x569995(0x127)]();}else _0x3da55d[_0x569995(0x120)](_0x54e8fb);}}const _0x332b1e=_0x3da55d[_0x569995(0x126)]('/');return _0x4cbdaf['raw']['startsWith']('/')?'/'+_0x332b1e:_0x332b1e;}export function normalizePath(_0x1eae60){const _0xaf8b3b=a71_0x19cd,_0x4db3a7=parsePath(_0x1eae60),_0x4f96f6=[];for(const _0x4a1a94 of _0x4db3a7['segments']){if(_0x4a1a94==='.')continue;else{if(_0x4a1a94==='..'){if(_0x4f96f6[_0xaf8b3b(0x128)]===0x0){if(_0x4db3a7[_0xaf8b3b(0x11e)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x4f96f6[_0xaf8b3b(0x120)]('..');}else _0x4f96f6[_0x4f96f6[_0xaf8b3b(0x128)]-0x1]==='..'?_0x4f96f6[_0xaf8b3b(0x120)]('..'):_0x4f96f6['pop']();}else _0x4f96f6[_0xaf8b3b(0x120)](_0x4a1a94);}}if(_0x4f96f6[_0xaf8b3b(0x128)]===0x0)return _0x4db3a7[_0xaf8b3b(0x11e)]?'/':'.';const _0x5c10ff=_0x4f96f6['join']('/');return _0x4db3a7[_0xaf8b3b(0x133)][_0xaf8b3b(0x136)]('/')?'/'+_0x5c10ff:_0x5c10ff;}function a71_0x3886(){const _0x55d792=['66mlDGgF','12465856bwEJvt','raw','2OTUJKR','slice','startsWith','trim','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20split\x20empty\x20path','31450TBXWKZ','isAbsolute','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','push','5610879JKrvRR','Path\x20attempts\x20to\x20navigate\x20above\x20root','227455CElAlV','test','Path\x20cannot\x20be\x20empty','join','pop','length','segments','split','4486692hIkAFs','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Path\x20segment\x20cannot\x20be\x20empty','1649284qSQKum','20589480ILMgYF','Relative\x20path\x20cannot\x20be\x20empty'];a71_0x3886=function(){return _0x55d792;};return a71_0x3886();}export function getParentPath(_0x1e650a){const _0x58f2cd=a71_0x19cd,_0x547769=parsePath(_0x1e650a);if(_0x547769[_0x58f2cd(0x129)][_0x58f2cd(0x128)]<=0x1)return'/';const _0x2063d1=_0x547769['segments']['slice'](0x0,-0x1)[_0x58f2cd(0x126)]('/');return _0x547769[_0x58f2cd(0x133)][_0x58f2cd(0x136)]('/')?'/'+_0x2063d1:_0x2063d1;}export function getBaseName(_0x447862){const _0x46462d=a71_0x19cd,_0x417ee3=parsePath(_0x447862);return _0x417ee3[_0x46462d(0x129)][_0x417ee3[_0x46462d(0x129)][_0x46462d(0x128)]-0x1]||'';}export function isChildPath(_0x12ec09,_0x41d911){const _0xa58e2b=a71_0x19cd,_0x40b303=parsePath(_0x12ec09),_0x118e2d=parsePath(_0x41d911);if(_0x40b303[_0xa58e2b(0x129)][_0xa58e2b(0x128)]<=_0x118e2d['segments'][_0xa58e2b(0x128)])return![];for(let _0x39e5bb=0x0;_0x39e5bb<_0x118e2d[_0xa58e2b(0x129)][_0xa58e2b(0x128)];_0x39e5bb++){if(_0x40b303[_0xa58e2b(0x129)][_0x39e5bb]!==_0x118e2d[_0xa58e2b(0x129)][_0x39e5bb])return![];}return!![];}export function splitPath(_0x2ea0fd){const _0xe215e=a71_0x19cd,_0x5b9f72=parsePath(_0x2ea0fd);if(_0x5b9f72[_0xe215e(0x129)]['length']===0x0)throw new Error(_0xe215e(0x139));if(_0x5b9f72['segments'][_0xe215e(0x128)]===0x1)return{'parent':_0x5b9f72[_0xe215e(0x129)][0x0]};return{'parent':_0x5b9f72[_0xe215e(0x129)][0x0],'child':_0x5b9f72[_0xe215e(0x129)][_0xe215e(0x135)](0x1)[_0xe215e(0x126)]('/')};}
1
+ (function(_0x63eb1,_0xa81c72){const _0x114908=a71_0x5188,_0x3a950d=_0x63eb1();while(!![]){try{const _0x81a986=-parseInt(_0x114908(0xdf))/0x1+parseInt(_0x114908(0xe9))/0x2+-parseInt(_0x114908(0xe3))/0x3*(parseInt(_0x114908(0xdc))/0x4)+-parseInt(_0x114908(0xf2))/0x5*(parseInt(_0x114908(0xee))/0x6)+-parseInt(_0x114908(0xd9))/0x7+parseInt(_0x114908(0xf1))/0x8+parseInt(_0x114908(0xec))/0x9*(parseInt(_0x114908(0xe6))/0xa);if(_0x81a986===_0xa81c72)break;else _0x3a950d['push'](_0x3a950d['shift']());}catch(_0x4b6c1c){_0x3a950d['push'](_0x3a950d['shift']());}}}(a71_0x4c33,0x5eb7c));function a71_0x4c33(){const _0x262775=['421136RunKFN','5FYonaq','segments','815899orodCI','startsWith','pop','4wvhChV','trim','slice','740015uLacrE','test','raw','isAbsolute','985287MJquDd','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','6220140bUFZDD','substring','join','623740wQYTKc','Cannot\x20navigate\x20above\x20root','split','27uKczua','push','3945534GSjOva','Relative\x20path\x20cannot\x20be\x20empty','length'];a71_0x4c33=function(){return _0x262775;};return a71_0x4c33();}function a71_0x5188(_0x4b3066,_0x3d4a67){const _0x4c3340=a71_0x4c33();return a71_0x5188=function(_0x5188e5,_0x12e04e){_0x5188e5=_0x5188e5-0xd9;let _0x4b1659=_0x4c3340[_0x5188e5];return _0x4b1659;},a71_0x5188(_0x4b3066,_0x3d4a67);}export function parsePath(_0x23a05a){const _0x15074d=a71_0x5188;if(!_0x23a05a||_0x23a05a[_0x15074d(0xdd)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x9e9577=_0x23a05a[_0x15074d(0xdd)]();if(_0x9e9577==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x23a05a};const _0x4c49fb=_0x9e9577[_0x15074d(0xda)]('/')?_0x9e9577[_0x15074d(0xe7)](0x1):_0x9e9577,_0x457da4=_0x4c49fb[_0x15074d(0xeb)]('/')['filter'](_0x3ec5ba=>_0x3ec5ba!=='');if(_0x457da4[_0x15074d(0xf0)]===0x0)throw new Error(_0x15074d(0xe4));const _0x3a2f4d=_0x9e9577[_0x15074d(0xda)]('/')||!isRelativePathSegment(_0x457da4[0x0]);for(const _0x9e4a5d of _0x457da4){validatePathSegment(_0x9e4a5d);}return{'segments':_0x457da4,'isAbsolute':_0x3a2f4d,'raw':_0x23a05a};}function isRelativePathSegment(_0x2f39a7){return _0x2f39a7==='.'||_0x2f39a7==='..';}function validatePathSegment(_0x359208){const _0x1eaa3d=a71_0x5188;if(_0x359208==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x359208==='.'||_0x359208==='..')return;if(/[\x00-\x1F\x7F]/[_0x1eaa3d(0xe0)](_0x359208))throw new Error(_0x1eaa3d(0xe5)+_0x359208);if(_0x359208!==_0x359208[_0x1eaa3d(0xdd)]()){}}export function validatePath(_0x318781){const _0x5d8afe=a71_0x5188;if(_0x318781[_0x5d8afe(0xf3)][_0x5d8afe(0xf0)]===0x0&&!_0x318781[_0x5d8afe(0xe2)])throw new Error(_0x5d8afe(0xef));if(_0x318781[_0x5d8afe(0xe2)]){if(_0x318781[_0x5d8afe(0xf3)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x1473ac=0x0;for(const _0x266afa of _0x318781[_0x5d8afe(0xf3)]){if(_0x266afa==='..'){if(_0x1473ac===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x1473ac--;}else _0x266afa!=='.'&&_0x1473ac++;}}}export function joinPaths(_0x5659c1,_0x12eeb7){const _0x3ac4a3=a71_0x5188;if(!_0x5659c1||_0x5659c1==='/')return _0x12eeb7;if(!_0x12eeb7||_0x12eeb7==='.')return _0x5659c1;if(_0x12eeb7[_0x3ac4a3(0xda)]('/'))return _0x12eeb7;const _0x5c280d=parsePath(_0x5659c1),_0x41c362=parsePath(_0x12eeb7),_0x536c13=[..._0x5c280d['segments']];for(const _0x450f89 of _0x41c362['segments']){if(_0x450f89==='.')continue;else{if(_0x450f89==='..'){if(_0x536c13['length']===0x0)throw new Error(_0x3ac4a3(0xea));_0x536c13[_0x3ac4a3(0xdb)]();}else _0x536c13[_0x3ac4a3(0xed)](_0x450f89);}}const _0x4d04e7=_0x536c13[_0x3ac4a3(0xe8)]('/');return _0x5c280d['raw'][_0x3ac4a3(0xda)]('/')?'/'+_0x4d04e7:_0x4d04e7;}export function normalizePath(_0x1a895f){const _0x4a8bfe=a71_0x5188,_0x5bc233=parsePath(_0x1a895f),_0x4a172c=[];for(const _0x5118fa of _0x5bc233[_0x4a8bfe(0xf3)]){if(_0x5118fa==='.')continue;else{if(_0x5118fa==='..'){if(_0x4a172c[_0x4a8bfe(0xf0)]===0x0){if(_0x5bc233[_0x4a8bfe(0xe2)])throw new Error(_0x4a8bfe(0xea));_0x4a172c[_0x4a8bfe(0xed)]('..');}else _0x4a172c[_0x4a172c[_0x4a8bfe(0xf0)]-0x1]==='..'?_0x4a172c[_0x4a8bfe(0xed)]('..'):_0x4a172c[_0x4a8bfe(0xdb)]();}else _0x4a172c[_0x4a8bfe(0xed)](_0x5118fa);}}if(_0x4a172c[_0x4a8bfe(0xf0)]===0x0)return _0x5bc233['isAbsolute']?'/':'.';const _0xe8bda=_0x4a172c[_0x4a8bfe(0xe8)]('/');return _0x5bc233[_0x4a8bfe(0xe1)]['startsWith']('/')?'/'+_0xe8bda:_0xe8bda;}export function getParentPath(_0xf6b56b){const _0x2edc91=a71_0x5188,_0x3a13c8=parsePath(_0xf6b56b);if(_0x3a13c8[_0x2edc91(0xf3)][_0x2edc91(0xf0)]<=0x1)return'/';const _0x4b44e7=_0x3a13c8[_0x2edc91(0xf3)][_0x2edc91(0xde)](0x0,-0x1)[_0x2edc91(0xe8)]('/');return _0x3a13c8[_0x2edc91(0xe1)][_0x2edc91(0xda)]('/')?'/'+_0x4b44e7:_0x4b44e7;}export function getBaseName(_0x45131e){const _0x1c93d8=a71_0x5188,_0x16388e=parsePath(_0x45131e);return _0x16388e['segments'][_0x16388e[_0x1c93d8(0xf3)][_0x1c93d8(0xf0)]-0x1]||'';}export function isChildPath(_0x31132f,_0x254ccf){const _0x3571db=a71_0x5188,_0x30278b=parsePath(_0x31132f),_0x33ef5d=parsePath(_0x254ccf);if(_0x30278b['segments'][_0x3571db(0xf0)]<=_0x33ef5d[_0x3571db(0xf3)][_0x3571db(0xf0)])return![];for(let _0x11e6ef=0x0;_0x11e6ef<_0x33ef5d['segments']['length'];_0x11e6ef++){if(_0x30278b[_0x3571db(0xf3)][_0x11e6ef]!==_0x33ef5d[_0x3571db(0xf3)][_0x11e6ef])return![];}return!![];}export function splitPath(_0x3d81a0){const _0x454cfc=a71_0x5188,_0x5f1d21=parsePath(_0x3d81a0);if(_0x5f1d21[_0x454cfc(0xf3)][_0x454cfc(0xf0)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x5f1d21[_0x454cfc(0xf3)]['length']===0x1)return{'parent':_0x5f1d21[_0x454cfc(0xf3)][0x0]};return{'parent':_0x5f1d21[_0x454cfc(0xf3)][0x0],'child':_0x5f1d21['segments'][_0x454cfc(0xde)](0x1)[_0x454cfc(0xe8)]('/')};}
@@ -1 +1 @@
1
- function a72_0x1424(_0x284ecc,_0x65df83){const _0x2be138=a72_0x2be1();return a72_0x1424=function(_0x14241f,_0x193f1f){_0x14241f=_0x14241f-0x100;let _0x1aa110=_0x2be138[_0x14241f];return _0x1aa110;},a72_0x1424(_0x284ecc,_0x65df83);}function a72_0x2be1(){const _0x422d72=['5164cEkiDL','49068znHIjb','365wXSwSD','14907013Faplbb','.\x20Parent\x20name\x20cannot\x20be\x20empty','4410240EKaclT','6043EpzusL','Invalid\x20segment\x20reference\x20format:\x20','substring','81GXSZAh','12LozcvG','523229LrAeBW','518800CNaYzz','42vKtkzT','102GmSViH','indexOf'];a72_0x2be1=function(){return _0x422d72;};return a72_0x2be1();}(function(_0x5db681,_0x533bbc){const _0x3d8079=a72_0x1424,_0x418d61=_0x5db681();while(!![]){try{const _0x38e93f=-parseInt(_0x3d8079(0x107))/0x1*(-parseInt(_0x3d8079(0x10f))/0x2)+parseInt(_0x3d8079(0x102))/0x3+parseInt(_0x3d8079(0x101))/0x4*(-parseInt(_0x3d8079(0x103))/0x5)+-parseInt(_0x3d8079(0x10e))/0x6*(-parseInt(_0x3d8079(0x10c))/0x7)+parseInt(_0x3d8079(0x106))/0x8+-parseInt(_0x3d8079(0x10a))/0x9*(-parseInt(_0x3d8079(0x10d))/0xa)+parseInt(_0x3d8079(0x104))/0xb*(-parseInt(_0x3d8079(0x10b))/0xc);if(_0x38e93f===_0x533bbc)break;else _0x418d61['push'](_0x418d61['shift']());}catch(_0x1322a5){_0x418d61['push'](_0x418d61['shift']());}}}(a72_0x2be1,0x65b28));export function parseSegmentRef(_0x2c6229){const _0x6faa22=a72_0x1424,_0x2f2513=_0x2c6229[_0x6faa22(0x100)]('/');if(_0x2f2513===-0x1)return{'parentId':_0x2c6229};if(_0x2f2513===0x0)throw new Error(_0x6faa22(0x108)+_0x2c6229+_0x6faa22(0x105));const _0x1e5e39=_0x2c6229[_0x6faa22(0x109)](0x0,_0x2f2513),_0xddf23f=_0x2c6229['substring'](_0x2f2513+0x1);if(_0xddf23f==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2c6229+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x1e5e39,'childId':_0xddf23f};}
1
+ (function(_0xddcb01,_0x54d2b4){const _0x1b5314=a72_0x3df3,_0x2ff3c5=_0xddcb01();while(!![]){try{const _0x341412=parseInt(_0x1b5314(0x15f))/0x1*(parseInt(_0x1b5314(0x157))/0x2)+-parseInt(_0x1b5314(0x150))/0x3*(parseInt(_0x1b5314(0x15e))/0x4)+-parseInt(_0x1b5314(0x151))/0x5*(-parseInt(_0x1b5314(0x159))/0x6)+-parseInt(_0x1b5314(0x15c))/0x7+-parseInt(_0x1b5314(0x154))/0x8+parseInt(_0x1b5314(0x158))/0x9*(-parseInt(_0x1b5314(0x155))/0xa)+parseInt(_0x1b5314(0x15a))/0xb;if(_0x341412===_0x54d2b4)break;else _0x2ff3c5['push'](_0x2ff3c5['shift']());}catch(_0x4d453f){_0x2ff3c5['push'](_0x2ff3c5['shift']());}}}(a72_0x4351,0x607a0));function a72_0x3df3(_0x2ac2e2,_0x5eb9bc){const _0x43513b=a72_0x4351();return a72_0x3df3=function(_0x3df382,_0xc51020){_0x3df382=_0x3df382-0x150;let _0x4caf5c=_0x43513b[_0x3df382];return _0x4caf5c;},a72_0x3df3(_0x2ac2e2,_0x5eb9bc);}function a72_0x4351(){const _0x431e1e=['substring','4574792RNjQtH','1539530Oiejfk','.\x20Child\x20name\x20cannot\x20be\x20empty','2qBiupR','18hPwkUj','6tnuySW','13764542tgOumk','indexOf','4279135pOPoYq','.\x20Parent\x20name\x20cannot\x20be\x20empty','93336vhFHQV','19707lnZIAv','12iPNVDK','3542675RWAYEg','Invalid\x20segment\x20reference\x20format:\x20'];a72_0x4351=function(){return _0x431e1e;};return a72_0x4351();}export function parseSegmentRef(_0x2c90d9){const _0x58ac70=a72_0x3df3,_0x4eb48e=_0x2c90d9[_0x58ac70(0x15b)]('/');if(_0x4eb48e===-0x1)return{'parentId':_0x2c90d9};if(_0x4eb48e===0x0)throw new Error(_0x58ac70(0x152)+_0x2c90d9+_0x58ac70(0x15d));const _0x126014=_0x2c90d9[_0x58ac70(0x153)](0x0,_0x4eb48e),_0x2275a6=_0x2c90d9[_0x58ac70(0x153)](_0x4eb48e+0x1);if(_0x2275a6==='')throw new Error(_0x58ac70(0x152)+_0x2c90d9+_0x58ac70(0x156));return{'parentId':_0x126014,'childId':_0x2275a6};}
@@ -1 +1 @@
1
- (function(_0x4fa166,_0xa104d9){const _0x552847=a73_0x281d,_0x540d62=_0x4fa166();while(!![]){try{const _0x18c460=parseInt(_0x552847(0x1a3))/0x1*(-parseInt(_0x552847(0x1ad))/0x2)+-parseInt(_0x552847(0x1a4))/0x3+parseInt(_0x552847(0x1a1))/0x4+parseInt(_0x552847(0x1a5))/0x5*(-parseInt(_0x552847(0x1a7))/0x6)+-parseInt(_0x552847(0x1ae))/0x7*(parseInt(_0x552847(0x1a8))/0x8)+-parseInt(_0x552847(0x19a))/0x9*(parseInt(_0x552847(0x1aa))/0xa)+parseInt(_0x552847(0x19c))/0xb;if(_0x18c460===_0xa104d9)break;else _0x540d62['push'](_0x540d62['shift']());}catch(_0x1a1d23){_0x540d62['push'](_0x540d62['shift']());}}}(a73_0x533a,0x781e4));import a73_0x3bf353 from'ora';export function createCommandSpinner(_0x3f1926,_0x13e9cd={}){const _0x5e1d23=a73_0x281d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x13e9cd;return a73_0x3bf353({'text':_0x3f1926,'color':'cyan','isEnabled':forceEnabled||process['stdout'][_0x5e1d23(0x1a9)]&&!verbose});}function a73_0x281d(_0x3e225f,_0x2eb175){const _0x533ae0=a73_0x533a();return a73_0x281d=function(_0x281d78,_0x14e497){_0x281d78=_0x281d78-0x199;let _0x510df4=_0x533ae0[_0x281d78];return _0x510df4;},a73_0x281d(_0x3e225f,_0x2eb175);}export async function withSpinner(_0x51cf4c,_0x1bdae4,_0x2ca2eb={}){const _0x5d70a4=a73_0x281d,_0x50f9f0=_0x2ca2eb[_0x5d70a4(0x1af)]??(()=>Date[_0x5d70a4(0x1b1)]()),_0x2d906d=createCommandSpinner(_0x51cf4c,_0x2ca2eb);_0x2d906d['start']();const _0x18c71=_0x50f9f0();try{const _0x188223=await _0x1bdae4(),_0x3694bc=_0x50f9f0()-_0x18c71;return _0x2d906d[_0x5d70a4(0x1a2)](),{'data':_0x188223,'elapsedMs':_0x3694bc};}catch(_0x238794){_0x2d906d['stop']();throw _0x238794;}}function a73_0x533a(){const _0xe34ff1=['\x20[Job\x20ID:\x20','64yXHaIK','139419eIPfjV','clock','isSpinning','now','jobId','9bCYbyg','intervalFactory','23558579LsysFW','phase','...','extra','start','23952fDxxtx','stop','1789vvjbJO','2553660fpChqn','253545fZgtSW','replace','48SkRByq','120TDfLyS','isTTY','427780OBhkCX','text'];a73_0x533a=function(){return _0xe34ff1;};return a73_0x533a();}export async function withQuerySpinner(_0xe84c75,_0x2116d8,_0x1d53f8={}){const _0x391a93=a73_0x281d,_0x4dcf36=_0x1d53f8['clock']??(()=>Date['now']()),_0x5efd50=_0x1d53f8[_0x391a93(0x19b)]??setInterval,_0x1bb3cd=createCommandSpinner(_0xe84c75,_0x1d53f8);_0x1bb3cd[_0x391a93(0x1a0)]();const _0x2453e0=_0x4dcf36(),_0x177b45=_0xe84c75[_0x391a93(0x1a6)](_0x391a93(0x19e),''),_0x250483={},_0x225f6f=()=>{const _0x56bfe9=_0x391a93;if(!_0x1bb3cd[_0x56bfe9(0x1b0)])return;const _0x52ff00=_0x4dcf36()-_0x2453e0,_0x197d8a=formatElapsed(_0x52ff00),_0x215dab=_0x250483[_0x56bfe9(0x19d)]??_0x177b45,_0x54cf97=_0x250483[_0x56bfe9(0x199)]?_0x56bfe9(0x1ac)+_0x250483[_0x56bfe9(0x199)]+']':'',_0x4f1964=_0x250483[_0x56bfe9(0x19f)]?'\x20'+_0x250483[_0x56bfe9(0x19f)]:'';_0x1bb3cd[_0x56bfe9(0x1ab)]=_0x215dab+'\x20'+_0x197d8a+_0x4f1964+_0x54cf97;},_0xd82f5d=_0x5efd50(()=>{_0x225f6f();},0x3e8),_0x45e3d6={'setPhase':_0x224a18=>{_0x250483['phase']=_0x224a18,_0x225f6f();},'setJobId':_0xe7f55=>{_0x250483['jobId']=_0xe7f55,_0x225f6f();},'setExtra':_0x3186c9=>{const _0x305394=_0x391a93;_0x250483[_0x305394(0x19f)]=_0x3186c9,_0x225f6f();}};_0x225f6f();try{const _0x5e36ed=await _0x2116d8(_0x45e3d6),_0x2506e3=_0x4dcf36()-_0x2453e0;return{'data':_0x5e36ed,'elapsedMs':_0x2506e3};}finally{clearInterval(_0xd82f5d),_0x1bb3cd[_0x391a93(0x1a2)]();}}export function formatElapsed(_0x2f11b6){const _0x1c2e9e=Math['floor'](_0x2f11b6/0x3e8);if(_0x1c2e9e<0x3c)return(_0x2f11b6/0x3e8)['toFixed'](0x1)+'s';const _0x3113c0=Math['floor'](_0x1c2e9e/0x3c),_0x32d611=_0x1c2e9e%0x3c;if(_0x3113c0<0x3c)return _0x3113c0+'m\x20'+_0x32d611+'s';const _0x18b5d2=Math['floor'](_0x3113c0/0x3c),_0x51ed26=_0x3113c0%0x3c;return _0x18b5d2+'h\x20'+_0x51ed26+'m';}
1
+ function a73_0x5338(_0x31228c,_0x2853b0){const _0x31247c=a73_0x3124();return a73_0x5338=function(_0x53388e,_0x9de2a4){_0x53388e=_0x53388e-0xd4;let _0x15acda=_0x31247c[_0x53388e];return _0x15acda;},a73_0x5338(_0x31228c,_0x2853b0);}(function(_0x354992,_0x21b2c5){const _0xf5b652=a73_0x5338,_0x5930b7=_0x354992();while(!![]){try{const _0x1adca3=-parseInt(_0xf5b652(0xda))/0x1*(-parseInt(_0xf5b652(0xe5))/0x2)+parseInt(_0xf5b652(0xe0))/0x3+parseInt(_0xf5b652(0xe3))/0x4+-parseInt(_0xf5b652(0xe2))/0x5*(-parseInt(_0xf5b652(0xd4))/0x6)+parseInt(_0xf5b652(0xd8))/0x7*(parseInt(_0xf5b652(0xd6))/0x8)+-parseInt(_0xf5b652(0xeb))/0x9*(-parseInt(_0xf5b652(0xe6))/0xa)+-parseInt(_0xf5b652(0xe7))/0xb;if(_0x1adca3===_0x21b2c5)break;else _0x5930b7['push'](_0x5930b7['shift']());}catch(_0x14853e){_0x5930b7['push'](_0x5930b7['shift']());}}}(a73_0x3124,0xa406d));function a73_0x3124(){const _0x5efcdc=['clock','14583HQTGkM','isSpinning','text','phase','toFixed','stop','2859894SSzUvX','cyan','5585725wKaTNx','4199328guWqLt','\x20[Job\x20ID:\x20','160kgXUzA','3530XKDqZJ','57632938xxKMIR','extra','jobId','intervalFactory','9351MMkKJZ','6OSniWU','stdout','8vbpJbR','now','8802703NCaDCx'];a73_0x3124=function(){return _0x5efcdc;};return a73_0x3124();}import a73_0xb509c from'ora';export function createCommandSpinner(_0x4b3b43,_0x522def={}){const _0x323a92=a73_0x5338,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x522def;return a73_0xb509c({'text':_0x4b3b43,'color':_0x323a92(0xe1),'isEnabled':forceEnabled||process[_0x323a92(0xd5)]['isTTY']&&!verbose});}export async function withSpinner(_0x225c35,_0x655832,_0x3b7c23={}){const _0x3394c2=a73_0x5338,_0x5198cb=_0x3b7c23[_0x3394c2(0xd9)]??(()=>Date['now']()),_0x55919b=createCommandSpinner(_0x225c35,_0x3b7c23);_0x55919b['start']();const _0x56f9cc=_0x5198cb();try{const _0xff1a9f=await _0x655832(),_0x478774=_0x5198cb()-_0x56f9cc;return _0x55919b[_0x3394c2(0xdf)](),{'data':_0xff1a9f,'elapsedMs':_0x478774};}catch(_0x583257){_0x55919b[_0x3394c2(0xdf)]();throw _0x583257;}}export async function withQuerySpinner(_0x493fd1,_0x1ef56d,_0x543f6d={}){const _0x152de2=a73_0x5338,_0x481bea=_0x543f6d[_0x152de2(0xd9)]??(()=>Date[_0x152de2(0xd7)]()),_0x4f0354=_0x543f6d[_0x152de2(0xea)]??setInterval,_0x4c6019=createCommandSpinner(_0x493fd1,_0x543f6d);_0x4c6019['start']();const _0x233a27=_0x481bea(),_0x39b7cd=_0x493fd1['replace']('...',''),_0x75c72={},_0x3dfa85=()=>{const _0x1264be=_0x152de2;if(!_0x4c6019[_0x1264be(0xdb)])return;const _0x5d1b81=_0x481bea()-_0x233a27,_0x185739=formatElapsed(_0x5d1b81),_0x9bc3a6=_0x75c72[_0x1264be(0xdd)]??_0x39b7cd,_0x1f95ee=_0x75c72[_0x1264be(0xe9)]?_0x1264be(0xe4)+_0x75c72[_0x1264be(0xe9)]+']':'',_0x5051d0=_0x75c72[_0x1264be(0xe8)]?'\x20'+_0x75c72[_0x1264be(0xe8)]:'';_0x4c6019[_0x1264be(0xdc)]=_0x9bc3a6+'\x20'+_0x185739+_0x5051d0+_0x1f95ee;},_0x5909af=_0x4f0354(()=>{_0x3dfa85();},0x3e8),_0x3a4679={'setPhase':_0x35dc83=>{const _0x39f39a=_0x152de2;_0x75c72[_0x39f39a(0xdd)]=_0x35dc83,_0x3dfa85();},'setJobId':_0x2cd82a=>{const _0xc3f571=_0x152de2;_0x75c72[_0xc3f571(0xe9)]=_0x2cd82a,_0x3dfa85();},'setExtra':_0x4d0824=>{const _0x1e5a25=_0x152de2;_0x75c72[_0x1e5a25(0xe8)]=_0x4d0824,_0x3dfa85();}};_0x3dfa85();try{const _0x52afea=await _0x1ef56d(_0x3a4679),_0x66f2da=_0x481bea()-_0x233a27;return{'data':_0x52afea,'elapsedMs':_0x66f2da};}finally{clearInterval(_0x5909af),_0x4c6019[_0x152de2(0xdf)]();}}export function formatElapsed(_0x4fc7c6){const _0x2e6d6d=a73_0x5338,_0x516f28=Math['floor'](_0x4fc7c6/0x3e8);if(_0x516f28<0x3c)return(_0x4fc7c6/0x3e8)[_0x2e6d6d(0xde)](0x1)+'s';const _0x1521bd=Math['floor'](_0x516f28/0x3c),_0xfc0767=_0x516f28%0x3c;if(_0x1521bd<0x3c)return _0x1521bd+'m\x20'+_0xfc0767+'s';const _0x5273bc=Math['floor'](_0x1521bd/0x3c),_0x232448=_0x1521bd%0x3c;return _0x5273bc+'h\x20'+_0x232448+'m';}
@@ -1 +1 @@
1
- (function(_0x72603b,_0x53ab75){const _0x2de0a5=a74_0x17b0,_0x102a56=_0x72603b();while(!![]){try{const _0x38f0d3=-parseInt(_0x2de0a5(0x90))/0x1+parseInt(_0x2de0a5(0x8d))/0x2*(-parseInt(_0x2de0a5(0xa2))/0x3)+parseInt(_0x2de0a5(0x92))/0x4+parseInt(_0x2de0a5(0x9e))/0x5+-parseInt(_0x2de0a5(0x9b))/0x6+parseInt(_0x2de0a5(0x91))/0x7*(parseInt(_0x2de0a5(0x99))/0x8)+-parseInt(_0x2de0a5(0x97))/0x9*(-parseInt(_0x2de0a5(0x96))/0xa);if(_0x38f0d3===_0x53ab75)break;else _0x102a56['push'](_0x102a56['shift']());}catch(_0x314037){_0x102a56['push'](_0x102a56['shift']());}}}(a74_0x5f44,0x506ad));import{readFileSync}from'fs';export function stripSqlComments(_0x1984c8){const _0x33a2cb=a74_0x17b0;let _0x395396=_0x1984c8[_0x33a2cb(0x8f)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x395396=_0x395396[_0x33a2cb(0x8f)](/--.*$/gm,''),_0x395396[_0x33a2cb(0x9d)]();}function a74_0x17b0(_0x5787ff,_0x2e13a4){const _0x5f4448=a74_0x5f44();return a74_0x17b0=function(_0x17b0ae,_0x228e59){_0x17b0ae=_0x17b0ae-0x8d;let _0x6bbe55=_0x5f4448[_0x17b0ae];return _0x6bbe55;},a74_0x17b0(_0x5787ff,_0x2e13a4);}function isEscaped(_0x514829,_0x7ab48c){let _0x2caba9=0x0;for(let _0x195f9d=_0x7ab48c-0x1;_0x195f9d>=0x0&&_0x514829[_0x195f9d]==='\x5c';_0x195f9d--){_0x2caba9++;}return _0x2caba9%0x2===0x1;}export function splitSqlStatements(_0x4b7190){const _0x500a29=a74_0x17b0,_0x2130d9=stripSqlComments(_0x4b7190);if(!_0x2130d9)throw new Error(_0x500a29(0xa0));const _0x597cb6=[];let _0x2b5a5c='',_0x58ef50=![],_0x24178c=![],_0xec828b=![];for(let _0xc24383=0x0;_0xc24383<_0x4b7190['length'];_0xc24383++){const _0x38293a=_0x4b7190[_0xc24383];if(_0x38293a==='\x27'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x24178c&&!_0xec828b)_0x58ef50=!_0x58ef50;else{if(_0x38293a==='\x22'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x58ef50&&!_0xec828b)_0x24178c=!_0x24178c;else _0x38293a==='`'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x58ef50&&!_0x24178c&&(_0xec828b=!_0xec828b);}if(_0x38293a===';'&&!_0x58ef50&&!_0x24178c&&!_0xec828b){const _0x211b75=_0x2b5a5c[_0x500a29(0x9d)]();_0x211b75&&_0x597cb6[_0x500a29(0x93)](_0x211b75),_0x2b5a5c='';}else _0x2b5a5c+=_0x38293a;}const _0x11d258=_0x2b5a5c['trim']();_0x11d258&&_0x597cb6[_0x500a29(0x93)](_0x11d258);const _0x4ef8a0=_0x597cb6[_0x500a29(0x9c)](_0x4a4b0e=>_0x4a4b0e[_0x500a29(0x9d)]())['filter'](_0x38a8c5=>{const _0x473495=_0x500a29,_0x203949=stripSqlComments(_0x38a8c5);return _0x203949[_0x473495(0x98)]>0x0;});if(_0x4ef8a0[_0x500a29(0x98)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x4ef8a0;}export function readFileContent(_0x5ab878){const _0x46c3a0=a74_0x17b0;try{return readFileSync(_0x5ab878,_0x46c3a0(0x8e));}catch(_0x18a332){const _0x5396ff=_0x18a332[_0x46c3a0(0xa1)];if(_0x5396ff==='ENOENT')throw new Error(_0x46c3a0(0xa3)+_0x5ab878+_0x46c3a0(0x9f));else{if(_0x5396ff==='EACCES')throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x5ab878+'\x27');else throw new Error(_0x46c3a0(0x94)+_0x5ab878+_0x46c3a0(0xa4)+_0x18a332['message']);}}}export function readSqlStatementsFromFile(_0x835051){const _0x402a01=a74_0x17b0,_0x4c03ee=readFileContent(_0x835051);try{return splitSqlStatements(_0x4c03ee);}catch(_0x186ad9){throw new Error(_0x402a01(0xa3)+_0x835051+'\x27\x20'+_0x186ad9[_0x402a01(0x95)][_0x402a01(0x9a)]());}}function a74_0x5f44(){const _0x379cc8=['625221tJgVdH','2123359zLwhWU','403684ILocVy','push','Error\x20reading\x20file\x20\x27','message','470rRIaPH','115110YPLuKj','length','8nzRhBU','toLowerCase','584268qLGUTo','map','trim','1347645wAGBku','\x27\x20not\x20found','Content\x20contains\x20no\x20SQL\x20statements','code','3SoiqWJ','File\x20\x27','\x27:\x20','445858RSmxaa','utf-8','replace'];a74_0x5f44=function(){return _0x379cc8;};return a74_0x5f44();}
1
+ (function(_0x480a55,_0x358a0d){const _0x2280bc=a74_0x5181,_0x31d1e2=_0x480a55();while(!![]){try{const _0x4461cb=-parseInt(_0x2280bc(0x1a7))/0x1*(parseInt(_0x2280bc(0x1ab))/0x2)+parseInt(_0x2280bc(0x1b8))/0x3+-parseInt(_0x2280bc(0x1ad))/0x4+parseInt(_0x2280bc(0x1b9))/0x5+parseInt(_0x2280bc(0x1a8))/0x6*(parseInt(_0x2280bc(0x1b0))/0x7)+parseInt(_0x2280bc(0x1b7))/0x8+-parseInt(_0x2280bc(0x1aa))/0x9;if(_0x4461cb===_0x358a0d)break;else _0x31d1e2['push'](_0x31d1e2['shift']());}catch(_0x51e856){_0x31d1e2['push'](_0x31d1e2['shift']());}}}(a74_0x1c89,0xc9888));function a74_0x1c89(){const _0x212319=['toLowerCase','map','Permission\x20denied\x20reading\x20file\x20\x27','191081zCCEzV','14340pVzSHS','push','12795948XSOJHZ','2kIQUGG','replace','3184004RzUIUn','File\x20\x27','Error\x20reading\x20file\x20\x27','2555oAckIb','utf-8','message','EACCES','Content\x20contains\x20no\x20SQL\x20statements','code','trim','11043152aXDOeF','416796dLTutc','4213290AXOPDz','filter','\x27:\x20','length'];a74_0x1c89=function(){return _0x212319;};return a74_0x1c89();}function a74_0x5181(_0x47c61b,_0x368c60){const _0x1c897b=a74_0x1c89();return a74_0x5181=function(_0x5181d5,_0x58d421){_0x5181d5=_0x5181d5-0x1a5;let _0x495efc=_0x1c897b[_0x5181d5];return _0x495efc;},a74_0x5181(_0x47c61b,_0x368c60);}import{readFileSync}from'fs';export function stripSqlComments(_0x171006){const _0x460938=a74_0x5181;let _0x39567b=_0x171006[_0x460938(0x1ac)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x39567b=_0x39567b[_0x460938(0x1ac)](/--.*$/gm,''),_0x39567b[_0x460938(0x1b6)]();}function isEscaped(_0x21b9e5,_0x4d3904){let _0x203674=0x0;for(let _0xd00336=_0x4d3904-0x1;_0xd00336>=0x0&&_0x21b9e5[_0xd00336]==='\x5c';_0xd00336--){_0x203674++;}return _0x203674%0x2===0x1;}export function splitSqlStatements(_0x3b5001){const _0x461c7b=a74_0x5181,_0x454c56=stripSqlComments(_0x3b5001);if(!_0x454c56)throw new Error(_0x461c7b(0x1b4));const _0x111f05=[];let _0x2b8f32='',_0x5869de=![],_0x42a39b=![],_0x487d5b=![];for(let _0x191858=0x0;_0x191858<_0x3b5001['length'];_0x191858++){const _0x246014=_0x3b5001[_0x191858];if(_0x246014==='\x27'&&!isEscaped(_0x3b5001,_0x191858)&&!_0x42a39b&&!_0x487d5b)_0x5869de=!_0x5869de;else{if(_0x246014==='\x22'&&!isEscaped(_0x3b5001,_0x191858)&&!_0x5869de&&!_0x487d5b)_0x42a39b=!_0x42a39b;else _0x246014==='`'&&!isEscaped(_0x3b5001,_0x191858)&&!_0x5869de&&!_0x42a39b&&(_0x487d5b=!_0x487d5b);}if(_0x246014===';'&&!_0x5869de&&!_0x42a39b&&!_0x487d5b){const _0x47f729=_0x2b8f32['trim']();_0x47f729&&_0x111f05[_0x461c7b(0x1a9)](_0x47f729),_0x2b8f32='';}else _0x2b8f32+=_0x246014;}const _0x3d7887=_0x2b8f32['trim']();_0x3d7887&&_0x111f05[_0x461c7b(0x1a9)](_0x3d7887);const _0x250fe3=_0x111f05[_0x461c7b(0x1a5)](_0xd3c957=>_0xd3c957['trim']())[_0x461c7b(0x1ba)](_0x5bf4bd=>{const _0x32cf34=_0x461c7b,_0x39fe74=stripSqlComments(_0x5bf4bd);return _0x39fe74[_0x32cf34(0x1bc)]>0x0;});if(_0x250fe3[_0x461c7b(0x1bc)]===0x0)throw new Error(_0x461c7b(0x1b4));return _0x250fe3;}export function readFileContent(_0x49362e){const _0x2df2f4=a74_0x5181;try{return readFileSync(_0x49362e,_0x2df2f4(0x1b1));}catch(_0x530b48){const _0x2eaeef=_0x530b48[_0x2df2f4(0x1b5)];if(_0x2eaeef==='ENOENT')throw new Error(_0x2df2f4(0x1ae)+_0x49362e+'\x27\x20not\x20found');else{if(_0x2eaeef===_0x2df2f4(0x1b3))throw new Error(_0x2df2f4(0x1a6)+_0x49362e+'\x27');else throw new Error(_0x2df2f4(0x1af)+_0x49362e+_0x2df2f4(0x1bb)+_0x530b48[_0x2df2f4(0x1b2)]);}}}export function readSqlStatementsFromFile(_0xcaccd1){const _0x3094aa=a74_0x5181,_0x1b0ad4=readFileContent(_0xcaccd1);try{return splitSqlStatements(_0x1b0ad4);}catch(_0xe334a8){throw new Error(_0x3094aa(0x1ae)+_0xcaccd1+'\x27\x20'+_0xe334a8['message'][_0x3094aa(0x1bd)]());}}
@@ -1 +1 @@
1
- function a75_0x2801(){const _0x2ec243=['slice','event','264332aFSkTO','3252520oSsTvj','10WMifZs','12681DYtddr','getReader','read','releaseLock','data','body','startsWith','indexOf','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','decode','2250612BqGzXd','2395180WJmnsk','1074927nhPKns','parse','Response\x20body\x20is\x20null','2053296KFbJqm','6Gjfmak'];a75_0x2801=function(){return _0x2ec243;};return a75_0x2801();}(function(_0x46beee,_0x4f363c){const _0x313deb=a75_0x5974,_0x353d49=_0x46beee();while(!![]){try{const _0x33ae4f=parseInt(_0x313deb(0xa1))/0x1*(-parseInt(_0x313deb(0xa0))/0x2)+parseInt(_0x313deb(0xad))/0x3+parseInt(_0x313deb(0x9e))/0x4+-parseInt(_0x313deb(0xac))/0x5*(parseInt(_0x313deb(0x9b))/0x6)+parseInt(_0x313deb(0xab))/0x7+parseInt(_0x313deb(0x9f))/0x8+-parseInt(_0x313deb(0x9a))/0x9;if(_0x33ae4f===_0x4f363c)break;else _0x353d49['push'](_0x353d49['shift']());}catch(_0x248f80){_0x353d49['push'](_0x353d49['shift']());}}}(a75_0x2801,0x5d3c0));export async function*parseSSEStream(_0x58fe56){const _0x5f20da=a75_0x5974;if(!_0x58fe56[_0x5f20da(0xa6)])throw new Error(_0x5f20da(0x99));const _0x535b83=_0x58fe56[_0x5f20da(0xa6)][_0x5f20da(0xa2)](),_0x4bf576=new TextDecoder();let _0x6bed1e='',_0x5da539={};try{while(!![]){const {done:_0x1b3258,value:_0x3f6fa7}=await _0x535b83[_0x5f20da(0xa3)]();if(_0x1b3258){_0x5da539[_0x5f20da(0xa5)]&&(yield parseSSEData(_0x5da539[_0x5f20da(0xa5)]));break;}_0x6bed1e+=_0x4bf576[_0x5f20da(0xaa)](_0x3f6fa7,{'stream':!![]});const _0x4b2dd7=_0x6bed1e['split']('\x0a');_0x6bed1e=_0x4b2dd7['pop']()||'';for(const _0xf018e5 of _0x4b2dd7){if(_0xf018e5['trim']()===''){_0x5da539[_0x5f20da(0xa5)]&&(yield parseSSEData(_0x5da539[_0x5f20da(0xa5)]),_0x5da539={});continue;}if(_0xf018e5[_0x5f20da(0xa7)](':'))continue;const _0x4664fb=_0xf018e5[_0x5f20da(0xa8)](':');if(_0x4664fb===-0x1)continue;const _0x2e45a8=_0xf018e5['slice'](0x0,_0x4664fb);let _0xe33076=_0xf018e5[_0x5f20da(0x9c)](_0x4664fb+0x1);_0xe33076[_0x5f20da(0xa7)]('\x20')&&(_0xe33076=_0xe33076['slice'](0x1));switch(_0x2e45a8){case _0x5f20da(0x9d):_0x5da539[_0x5f20da(0x9d)]=_0xe33076;break;case _0x5f20da(0xa5):_0x5da539[_0x5f20da(0xa5)]=_0x5da539[_0x5f20da(0xa5)]?_0x5da539[_0x5f20da(0xa5)]+'\x0a'+_0xe33076:_0xe33076;break;case'id':_0x5da539['id']=_0xe33076;break;}}}}finally{_0x535b83[_0x5f20da(0xa4)]();}}function a75_0x5974(_0x488679,_0x28ebed){const _0x2801c3=a75_0x2801();return a75_0x5974=function(_0x59742f,_0x1d2957){_0x59742f=_0x59742f-0x98;let _0xb507e8=_0x2801c3[_0x59742f];return _0xb507e8;},a75_0x5974(_0x488679,_0x28ebed);}function parseSSEData(_0x361dd5){const _0x59f568=a75_0x5974;try{return JSON[_0x59f568(0x98)](_0x361dd5);}catch(_0x45999){throw new Error(_0x59f568(0xa9)+_0x361dd5,{'cause':_0x45999});}}
1
+ (function(_0x53c0ff,_0x414e8d){const _0x535237=a75_0x9fb1,_0x4d9ca3=_0x53c0ff();while(!![]){try{const _0x5f2ab5=parseInt(_0x535237(0x1b9))/0x1*(-parseInt(_0x535237(0x1af))/0x2)+parseInt(_0x535237(0x1b8))/0x3*(-parseInt(_0x535237(0x1b1))/0x4)+parseInt(_0x535237(0x1a7))/0x5*(parseInt(_0x535237(0x1b4))/0x6)+-parseInt(_0x535237(0x1a5))/0x7*(-parseInt(_0x535237(0x1a6))/0x8)+-parseInt(_0x535237(0x1ab))/0x9+parseInt(_0x535237(0x1ae))/0xa*(parseInt(_0x535237(0x1b6))/0xb)+-parseInt(_0x535237(0x1b3))/0xc;if(_0x5f2ab5===_0x414e8d)break;else _0x4d9ca3['push'](_0x4d9ca3['shift']());}catch(_0x4486b9){_0x4d9ca3['push'](_0x4d9ca3['shift']());}}}(a75_0x521d,0x9c1de));function a75_0x521d(){const _0x3aed2b=['260827ePdtHT','136DqJCqY','330580HMSPpN','body','slice','getReader','2748906OjRZXf','Response\x20body\x20is\x20null','data','10wKtlpH','4hMhYVh','pop','25332xAxsTY','read','6134544abtcqt','42utAIwY','trim','11449878HBjCKT','decode','93OfJISN','242362HzkafD','startsWith','event','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'];a75_0x521d=function(){return _0x3aed2b;};return a75_0x521d();}export async function*parseSSEStream(_0xc028b4){const _0x189e80=a75_0x9fb1;if(!_0xc028b4[_0x189e80(0x1a8)])throw new Error(_0x189e80(0x1ac));const _0x2e7c8d=_0xc028b4[_0x189e80(0x1a8)][_0x189e80(0x1aa)](),_0x89d49f=new TextDecoder();let _0x46f22d='',_0xe46fbd={};try{while(!![]){const {done:_0x1b221d,value:_0x3df5ba}=await _0x2e7c8d[_0x189e80(0x1b2)]();if(_0x1b221d){_0xe46fbd[_0x189e80(0x1ad)]&&(yield parseSSEData(_0xe46fbd[_0x189e80(0x1ad)]));break;}_0x46f22d+=_0x89d49f[_0x189e80(0x1b7)](_0x3df5ba,{'stream':!![]});const _0x4a87b0=_0x46f22d['split']('\x0a');_0x46f22d=_0x4a87b0[_0x189e80(0x1b0)]()||'';for(const _0xe87a93 of _0x4a87b0){if(_0xe87a93[_0x189e80(0x1b5)]()===''){_0xe46fbd[_0x189e80(0x1ad)]&&(yield parseSSEData(_0xe46fbd['data']),_0xe46fbd={});continue;}if(_0xe87a93[_0x189e80(0x1ba)](':'))continue;const _0x386e35=_0xe87a93['indexOf'](':');if(_0x386e35===-0x1)continue;const _0x2ed685=_0xe87a93[_0x189e80(0x1a9)](0x0,_0x386e35);let _0x2a3132=_0xe87a93['slice'](_0x386e35+0x1);_0x2a3132[_0x189e80(0x1ba)]('\x20')&&(_0x2a3132=_0x2a3132[_0x189e80(0x1a9)](0x1));switch(_0x2ed685){case _0x189e80(0x1a3):_0xe46fbd[_0x189e80(0x1a3)]=_0x2a3132;break;case'data':_0xe46fbd[_0x189e80(0x1ad)]=_0xe46fbd[_0x189e80(0x1ad)]?_0xe46fbd[_0x189e80(0x1ad)]+'\x0a'+_0x2a3132:_0x2a3132;break;case'id':_0xe46fbd['id']=_0x2a3132;break;}}}}finally{_0x2e7c8d['releaseLock']();}}function a75_0x9fb1(_0x528844,_0x143dcb){const _0x521d68=a75_0x521d();return a75_0x9fb1=function(_0x9fb1b3,_0x3157f7){_0x9fb1b3=_0x9fb1b3-0x1a3;let _0x453c1d=_0x521d68[_0x9fb1b3];return _0x453c1d;},a75_0x9fb1(_0x528844,_0x143dcb);}function parseSSEData(_0x1c8379){const _0x53f298=a75_0x9fb1;try{return JSON['parse'](_0x1c8379);}catch(_0x18304e){throw new Error(_0x53f298(0x1a4)+_0x1c8379,{'cause':_0x18304e});}}
@@ -1 +1 @@
1
- (function(_0x4109e0,_0x3ce034){const _0x1ee8de=a76_0x422a,_0x4196f7=_0x4109e0();while(!![]){try{const _0x4ed8f3=-parseInt(_0x1ee8de(0x112))/0x1*(parseInt(_0x1ee8de(0x116))/0x2)+-parseInt(_0x1ee8de(0x10e))/0x3*(parseInt(_0x1ee8de(0x11f))/0x4)+parseInt(_0x1ee8de(0x11d))/0x5+-parseInt(_0x1ee8de(0x118))/0x6*(-parseInt(_0x1ee8de(0x10c))/0x7)+parseInt(_0x1ee8de(0x120))/0x8+parseInt(_0x1ee8de(0x119))/0x9+-parseInt(_0x1ee8de(0x111))/0xa*(-parseInt(_0x1ee8de(0x108))/0xb);if(_0x4ed8f3===_0x3ce034)break;else _0x4196f7['push'](_0x4196f7['shift']());}catch(_0xaac8f1){_0x4196f7['push'](_0x4196f7['shift']());}}}(a76_0x2a1a,0xd5204));function a76_0x2a1a(){const _0x68b356=['env','1000AeOZvT','6825768Kzxxxx','repeat','1702349MQjbZv','toString','floor','USERNAME','91ohRAnv','length','16671kczfqy','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','random','10sewAsD','2lmzPNH','padStart','toLowerCase','substring','863428HfgAHi','trim','318558nxiNcO','5487174aiAqVB','test','replace','\x5c$&','4088835DFlAZU'];a76_0x2a1a=function(){return _0x68b356;};return a76_0x2a1a();}import a76_0x34001c from'string-width';export function stringWidth(_0x309ff6){return a76_0x34001c(_0x309ff6);}export function padEnd(_0x2bb11b,_0x1eb57d){const _0x19ea94=a76_0x422a,_0x587204=stringWidth(_0x2bb11b);if(_0x587204>=_0x1eb57d)return _0x2bb11b;return _0x2bb11b+'\x20'[_0x19ea94(0x107)](_0x1eb57d-_0x587204);}export function padStart(_0xf9dfb3,_0x3b0b73){const _0x1682e6=stringWidth(_0xf9dfb3);if(_0x1682e6>=_0x3b0b73)return _0xf9dfb3;return'\x20'['repeat'](_0x3b0b73-_0x1682e6)+_0xf9dfb3;}export function centerAlign(_0xc69202,_0x8f8996){const _0x420c6e=a76_0x422a,_0x151d1a=stringWidth(_0xc69202);if(_0x151d1a>_0x8f8996){if(_0x8f8996<=0x1)return'…'[_0x420c6e(0x115)](0x0,_0x8f8996);let _0x1a013e=_0xc69202;while(stringWidth(_0x1a013e+'…')>_0x8f8996){_0x1a013e=_0x1a013e['slice'](0x0,-0x1);}return _0x1a013e+'…';}if(_0x151d1a===_0x8f8996)return _0xc69202;const _0x57135c=_0x8f8996-_0x151d1a,_0x45e6e6=Math[_0x420c6e(0x10a)](_0x57135c/0x2),_0x5793b3=_0x57135c-_0x45e6e6;return'\x20'[_0x420c6e(0x107)](_0x45e6e6)+_0xc69202+'\x20'[_0x420c6e(0x107)](_0x5793b3);}export function escapeStringLiteral(_0x542abb){const _0x437c85=a76_0x422a;if(!_0x542abb||_0x542abb[_0x437c85(0x117)]()[_0x437c85(0x10d)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x487216=_0x542abb[_0x437c85(0x11b)](/'/g,'\x27\x27');return'\x27'+_0x487216+'\x27';}export function globToLike(_0xe2fae2){const _0x8d2fbe=a76_0x422a;let _0x8319b4=_0xe2fae2[_0x8d2fbe(0x11b)](/\\/g,'\x5c\x5c')[_0x8d2fbe(0x11b)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x8319b4=_0x8319b4['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x8319b4;}export function buildLikePattern(_0x325b36){const _0x20963c=a76_0x422a;if(!_0x325b36||_0x325b36['trim']()[_0x20963c(0x10d)]===0x0)throw new Error(_0x20963c(0x10f));const _0x498866=globToLike(_0x325b36),_0x20a3c8=_0x498866[_0x20963c(0x11b)](/'/g,'\x27\x27');return'\x27'+_0x20a3c8+'\x27';}export function matchGlobPattern(_0x65e2e0,_0x407caf){const _0x28ed75=a76_0x422a,_0x443641=_0x407caf[_0x28ed75(0x11b)](/[.+^${}()|[\]\\]/g,_0x28ed75(0x11c))[_0x28ed75(0x11b)](/\*/g,'.*')[_0x28ed75(0x11b)](/\?/g,'.'),_0x16f520=new RegExp('^'+_0x443641+'$');return _0x16f520[_0x28ed75(0x11a)](_0x65e2e0);}export function getSanitizedUsername(){const _0x327363=a76_0x422a,_0x310ab9=process['env']['USER']||process[_0x327363(0x11e)][_0x327363(0x10b)]||'unknown';return _0x310ab9[_0x327363(0x11b)](/[^a-zA-Z0-9]/g,'')[_0x327363(0x114)]();}function a76_0x422a(_0xc8d17e,_0x19573a){const _0x2a1a31=a76_0x2a1a();return a76_0x422a=function(_0x422aba,_0x2fd3e0){_0x422aba=_0x422aba-0x107;let _0x4d5d32=_0x2a1a31[_0x422aba];return _0x4d5d32;},a76_0x422a(_0xc8d17e,_0x19573a);}export function generateRandomHex(){const _0x51d0d6=a76_0x422a,_0x149b20=Math[_0x51d0d6(0x10a)](Math[_0x51d0d6(0x110)]()*0xfffff);return _0x149b20[_0x51d0d6(0x109)](0x10)[_0x51d0d6(0x113)](0x5,'0');}
1
+ (function(_0x59f5d0,_0xb992ef){const _0x4757d1=a76_0x1adf,_0x539427=_0x59f5d0();while(!![]){try{const _0x3cb4e9=-parseInt(_0x4757d1(0x16c))/0x1+-parseInt(_0x4757d1(0x166))/0x2*(-parseInt(_0x4757d1(0x171))/0x3)+-parseInt(_0x4757d1(0x16a))/0x4*(-parseInt(_0x4757d1(0x160))/0x5)+parseInt(_0x4757d1(0x162))/0x6+parseInt(_0x4757d1(0x163))/0x7+parseInt(_0x4757d1(0x172))/0x8*(-parseInt(_0x4757d1(0x16b))/0x9)+parseInt(_0x4757d1(0x169))/0xa;if(_0x3cb4e9===_0xb992ef)break;else _0x539427['push'](_0x539427['shift']());}catch(_0x339187){_0x539427['push'](_0x539427['shift']());}}}(a76_0x360c,0xd0a63));import a76_0x69a1b2 from'string-width';function a76_0x360c(){const _0x7630ad=['1067343TSaZrr','539120NRqkWD','floor','env','substring','repeat','padStart','length','10UZGFLF','unknown','3471684ukyaxL','10882893zPlqEX','trim','random','2CycvcB','replace','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','188470FtzrzC','414516sCbKPE','207nqJgtr','310602cHUhtX','toLowerCase','Cannot\x20escape\x20empty\x20string\x20literal','toString','test'];a76_0x360c=function(){return _0x7630ad;};return a76_0x360c();}export function stringWidth(_0x2b5ee7){return a76_0x69a1b2(_0x2b5ee7);}export function padEnd(_0x201cb9,_0x254de3){const _0x3c2719=a76_0x1adf,_0x3f1db3=stringWidth(_0x201cb9);if(_0x3f1db3>=_0x254de3)return _0x201cb9;return _0x201cb9+'\x20'[_0x3c2719(0x15d)](_0x254de3-_0x3f1db3);}export function padStart(_0x3d5eb8,_0x88d52b){const _0x400c3f=a76_0x1adf,_0x3bdb80=stringWidth(_0x3d5eb8);if(_0x3bdb80>=_0x88d52b)return _0x3d5eb8;return'\x20'[_0x400c3f(0x15d)](_0x88d52b-_0x3bdb80)+_0x3d5eb8;}export function centerAlign(_0x38fc7b,_0x487154){const _0x5c6b09=a76_0x1adf,_0x340e0d=stringWidth(_0x38fc7b);if(_0x340e0d>_0x487154){if(_0x487154<=0x1)return'…'[_0x5c6b09(0x15c)](0x0,_0x487154);let _0x2dd8ed=_0x38fc7b;while(stringWidth(_0x2dd8ed+'…')>_0x487154){_0x2dd8ed=_0x2dd8ed['slice'](0x0,-0x1);}return _0x2dd8ed+'…';}if(_0x340e0d===_0x487154)return _0x38fc7b;const _0x1b314a=_0x487154-_0x340e0d,_0x505d82=Math['floor'](_0x1b314a/0x2),_0x3c6ca2=_0x1b314a-_0x505d82;return'\x20'[_0x5c6b09(0x15d)](_0x505d82)+_0x38fc7b+'\x20'['repeat'](_0x3c6ca2);}export function escapeStringLiteral(_0x5a40ff){const _0x29440d=a76_0x1adf;if(!_0x5a40ff||_0x5a40ff[_0x29440d(0x164)]()[_0x29440d(0x15f)]===0x0)throw new Error(_0x29440d(0x16e));const _0x99133=_0x5a40ff[_0x29440d(0x167)](/'/g,'\x27\x27');return'\x27'+_0x99133+'\x27';}function a76_0x1adf(_0x10c9b7,_0x5c104d){const _0x360cc2=a76_0x360c();return a76_0x1adf=function(_0x1adf51,_0x1f74a2){_0x1adf51=_0x1adf51-0x15a;let _0x2f9818=_0x360cc2[_0x1adf51];return _0x2f9818;},a76_0x1adf(_0x10c9b7,_0x5c104d);}export function globToLike(_0x3a8561){const _0x8e826d=a76_0x1adf;let _0xa2e828=_0x3a8561['replace'](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x8e826d(0x167)](/_/g,'\x5c_');return _0xa2e828=_0xa2e828[_0x8e826d(0x167)](/\*/g,'%')[_0x8e826d(0x167)](/\?/g,'_'),_0xa2e828;}export function buildLikePattern(_0x59ead7){const _0x169c75=a76_0x1adf;if(!_0x59ead7||_0x59ead7[_0x169c75(0x164)]()[_0x169c75(0x15f)]===0x0)throw new Error(_0x169c75(0x168));const _0xac8354=globToLike(_0x59ead7),_0x9f215f=_0xac8354[_0x169c75(0x167)](/'/g,'\x27\x27');return'\x27'+_0x9f215f+'\x27';}export function matchGlobPattern(_0x576a2c,_0x2791c7){const _0x12d62e=a76_0x1adf,_0x599dd0=_0x2791c7[_0x12d62e(0x167)](/[.+^${}()|[\]\\]/g,'\x5c$&')['replace'](/\*/g,'.*')[_0x12d62e(0x167)](/\?/g,'.'),_0x31cae3=new RegExp('^'+_0x599dd0+'$');return _0x31cae3[_0x12d62e(0x170)](_0x576a2c);}export function getSanitizedUsername(){const _0x15a84a=a76_0x1adf,_0x54f5f8=process[_0x15a84a(0x15b)]['USER']||process[_0x15a84a(0x15b)]['USERNAME']||_0x15a84a(0x161);return _0x54f5f8[_0x15a84a(0x167)](/[^a-zA-Z0-9]/g,'')[_0x15a84a(0x16d)]();}export function generateRandomHex(){const _0x2c3b31=a76_0x1adf,_0x2c9d92=Math[_0x2c3b31(0x15a)](Math[_0x2c3b31(0x165)]()*0xfffff);return _0x2c9d92[_0x2c3b31(0x16f)](0x10)[_0x2c3b31(0x15e)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x24e119,_0x259a04){const _0x4b28e5=a77_0x2618,_0x49b05d=_0x24e119();while(!![]){try{const _0x3e4c56=parseInt(_0x4b28e5(0x1da))/0x1+-parseInt(_0x4b28e5(0x1d6))/0x2+-parseInt(_0x4b28e5(0x1cd))/0x3+-parseInt(_0x4b28e5(0x1d9))/0x4+-parseInt(_0x4b28e5(0x1c6))/0x5+parseInt(_0x4b28e5(0x1d1))/0x6*(parseInt(_0x4b28e5(0x1d3))/0x7)+parseInt(_0x4b28e5(0x1db))/0x8;if(_0x3e4c56===_0x259a04)break;else _0x49b05d['push'](_0x49b05d['shift']());}catch(_0x1dbbfe){_0x49b05d['push'](_0x49b05d['shift']());}}}(a77_0x4ef6,0x8de94));function a77_0x2618(_0x109300,_0x28101d){const _0x4ef6d9=a77_0x4ef6();return a77_0x2618=function(_0x261877,_0x5c7c61){_0x261877=_0x261877-0x1c6;let _0x5cf673=_0x4ef6d9[_0x261877];return _0x5cf673;},a77_0x2618(_0x109300,_0x28101d);}function hasWildcard(_0x3f0b95){const _0x2cd9fa=a77_0x2618;return _0x3f0b95[_0x2cd9fa(0x1d0)]('*')||_0x3f0b95[_0x2cd9fa(0x1d0)]('?');}function a77_0x4ef6(){const _0x4725c5=['includes','1617162tQVZJW','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','28tuSiSP','catalog','length','504790skecgz','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','190508qOFUIn','823664MAOZuI','3388112HjoxGF','5375225SAOQWj','database','split','table','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','trim','join','1106853TUFkPQ','Pattern\x20cannot\x20be\x20just\x20a\x20dot','push'];a77_0x4ef6=function(){return _0x4725c5;};return a77_0x4ef6();}export function parseTableReference(_0x39cf8a){const _0x40efea=a77_0x2618;if(!_0x39cf8a||_0x39cf8a[_0x40efea(0x1cb)]()[_0x40efea(0x1d5)]===0x0)throw new Error(_0x40efea(0x1ca));const _0x525e22=_0x39cf8a[_0x40efea(0x1cb)](),_0x262682={'original':_0x525e22},_0x807536=_0x525e22[_0x40efea(0x1c8)]('.');if(_0x807536[_0x40efea(0x1d5)]===0x1){const _0x5eb69b=_0x807536[0x0];if(!_0x5eb69b)throw new Error(_0x40efea(0x1ce));_0x262682[_0x40efea(0x1c9)]=_0x5eb69b;}else{if(_0x807536[_0x40efea(0x1d5)]===0x2){const [_0x4ba7ab,_0x328f0a]=_0x807536;if(!_0x4ba7ab)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x328f0a)throw new Error(_0x40efea(0x1d8));_0x262682[_0x40efea(0x1c7)]=_0x4ba7ab,_0x262682[_0x40efea(0x1c9)]=_0x328f0a;}else{if(_0x807536['length']===0x3){const [_0x4045e5,_0x2d5fb9,_0x51eb87]=_0x807536;if(!_0x4045e5||!_0x2d5fb9||!_0x51eb87)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x262682[_0x40efea(0x1d4)]=_0x4045e5,_0x262682[_0x40efea(0x1c7)]=_0x2d5fb9,_0x262682[_0x40efea(0x1c9)]=_0x51eb87;}else throw new Error(_0x40efea(0x1d7));}}return _0x262682;}export function formatTableReference(_0x4899f6){const _0x2d94f2=a77_0x2618,_0x52e122=[];return _0x4899f6['catalog']&&_0x52e122['push'](_0x4899f6[_0x2d94f2(0x1d4)]),_0x4899f6[_0x2d94f2(0x1c7)]&&_0x52e122[_0x2d94f2(0x1cf)](_0x4899f6[_0x2d94f2(0x1c7)]),_0x4899f6[_0x2d94f2(0x1c9)]&&_0x52e122['push'](_0x4899f6[_0x2d94f2(0x1c9)]),_0x52e122[_0x2d94f2(0x1cc)]('.');}export function validateTableListReference(_0x406e2){return undefined;}export function validateTableDescribeReference(_0x39a6a2){const _0x5a2d0f=a77_0x2618;if(!_0x39a6a2[_0x5a2d0f(0x1c9)])return _0x5a2d0f(0x1d2);if(_0x39a6a2[_0x5a2d0f(0x1c7)]&&hasWildcard(_0x39a6a2['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x39a6a2['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
1
+ function a77_0x86f4(_0x1e10f1,_0x359447){const _0x2494b7=a77_0x2494();return a77_0x86f4=function(_0x86f416,_0x1f2bac){_0x86f416=_0x86f416-0x128;let _0x19e76e=_0x2494b7[_0x86f416];return _0x19e76e;},a77_0x86f4(_0x1e10f1,_0x359447);}(function(_0x3a95d2,_0x5ca6cb){const _0x4b6ba8=a77_0x86f4,_0x46b24a=_0x3a95d2();while(!![]){try{const _0x12805e=-parseInt(_0x4b6ba8(0x137))/0x1*(parseInt(_0x4b6ba8(0x134))/0x2)+parseInt(_0x4b6ba8(0x12c))/0x3*(-parseInt(_0x4b6ba8(0x12d))/0x4)+-parseInt(_0x4b6ba8(0x129))/0x5*(-parseInt(_0x4b6ba8(0x136))/0x6)+parseInt(_0x4b6ba8(0x142))/0x7+-parseInt(_0x4b6ba8(0x132))/0x8*(parseInt(_0x4b6ba8(0x12e))/0x9)+parseInt(_0x4b6ba8(0x13d))/0xa*(parseInt(_0x4b6ba8(0x13b))/0xb)+parseInt(_0x4b6ba8(0x13a))/0xc;if(_0x12805e===_0x5ca6cb)break;else _0x46b24a['push'](_0x46b24a['shift']());}catch(_0x40e9d4){_0x46b24a['push'](_0x46b24a['shift']());}}}(a77_0x2494,0xdde70));function hasWildcard(_0x4215b6){const _0xe62a90=a77_0x86f4;return _0x4215b6[_0xe62a90(0x139)]('*')||_0x4215b6['includes']('?');}function a77_0x2494(){const _0x1eb9e9=['Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','183930mAbwOr','630698AIQUAx','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','includes','853392YNeoCX','4147fPkPBT','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','21330ylLhqm','split','push','Pattern\x20cannot\x20be\x20just\x20a\x20dot','database','9556295jrIfvm','trim','250VyXxIG','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','catalog','3TaUmaL','2242292NGVHMF','117lvURsU','table','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','1029544KfeQji','length','2DRTkwh'];a77_0x2494=function(){return _0x1eb9e9;};return a77_0x2494();}export function parseTableReference(_0x570544){const _0x1bbc7a=a77_0x86f4;if(!_0x570544||_0x570544[_0x1bbc7a(0x128)]()[_0x1bbc7a(0x133)]===0x0)throw new Error(_0x1bbc7a(0x138));const _0x5c1caa=_0x570544['trim'](),_0x7413ef={'original':_0x5c1caa},_0x4be9e9=_0x5c1caa[_0x1bbc7a(0x13e)]('.');if(_0x4be9e9['length']===0x1){const _0x1faa1e=_0x4be9e9[0x0];if(!_0x1faa1e)throw new Error(_0x1bbc7a(0x140));_0x7413ef[_0x1bbc7a(0x12f)]=_0x1faa1e;}else{if(_0x4be9e9[_0x1bbc7a(0x133)]===0x2){const [_0x2993ba,_0x2e8cf4]=_0x4be9e9;if(!_0x2993ba)throw new Error(_0x1bbc7a(0x130));if(!_0x2e8cf4)throw new Error(_0x1bbc7a(0x12a));_0x7413ef[_0x1bbc7a(0x141)]=_0x2993ba,_0x7413ef['table']=_0x2e8cf4;}else{if(_0x4be9e9[_0x1bbc7a(0x133)]===0x3){const [_0x13cb55,_0x13e3a3,_0x545a4d]=_0x4be9e9;if(!_0x13cb55||!_0x13e3a3||!_0x545a4d)throw new Error(_0x1bbc7a(0x13c));_0x7413ef[_0x1bbc7a(0x12b)]=_0x13cb55,_0x7413ef[_0x1bbc7a(0x141)]=_0x13e3a3,_0x7413ef[_0x1bbc7a(0x12f)]=_0x545a4d;}else throw new Error(_0x1bbc7a(0x135));}}return _0x7413ef;}export function formatTableReference(_0x4fda14){const _0x1fb088=a77_0x86f4,_0x56df20=[];return _0x4fda14[_0x1fb088(0x12b)]&&_0x56df20[_0x1fb088(0x13f)](_0x4fda14[_0x1fb088(0x12b)]),_0x4fda14[_0x1fb088(0x141)]&&_0x56df20['push'](_0x4fda14[_0x1fb088(0x141)]),_0x4fda14['table']&&_0x56df20['push'](_0x4fda14['table']),_0x56df20['join']('.');}export function validateTableListReference(_0x8f7230){return undefined;}export function validateTableDescribeReference(_0x393c32){const _0x1687a0=a77_0x86f4;if(!_0x393c32['table'])return _0x1687a0(0x131);if(_0x393c32[_0x1687a0(0x141)]&&hasWildcard(_0x393c32['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x393c32[_0x1687a0(0x12f)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- function a78_0x2019(_0x4b5c87,_0x2404b0){const _0x35ac25=a78_0x35ac();return a78_0x2019=function(_0x201999,_0x42fd53){_0x201999=_0x201999-0xd8;let _0x44f20e=_0x35ac25[_0x201999];return _0x44f20e;},a78_0x2019(_0x4b5c87,_0x2404b0);}(function(_0x129435,_0x388bb6){const _0x12483e=a78_0x2019,_0x387999=_0x129435();while(!![]){try{const _0x87eef8=-parseInt(_0x12483e(0xdb))/0x1*(-parseInt(_0x12483e(0xf6))/0x2)+-parseInt(_0x12483e(0xd8))/0x3*(-parseInt(_0x12483e(0xe9))/0x4)+parseInt(_0x12483e(0xfb))/0x5*(-parseInt(_0x12483e(0xe0))/0x6)+parseInt(_0x12483e(0xf1))/0x7+parseInt(_0x12483e(0xd9))/0x8*(parseInt(_0x12483e(0xf0))/0x9)+parseInt(_0x12483e(0xf9))/0xa*(parseInt(_0x12483e(0xed))/0xb)+parseInt(_0x12483e(0xdc))/0xc*(-parseInt(_0x12483e(0xda))/0xd);if(_0x87eef8===_0x388bb6)break;else _0x387999['push'](_0x387999['shift']());}catch(_0x3a1fb8){_0x387999['push'](_0x387999['shift']());}}}(a78_0x35ac,0x806b1));import{formatRows}from'./formatters.js';import a78_0x59f03f from'chalk';function a78_0x35ac(){const _0x4beb85=['localeCompare','40zugAok','join','7235ztpHCr','type','124017ZzRGzB','1240vfMteD','3354htfWdX','178zlYsHj','76020sHZcVh','segmentCount','showTreeLines','sort','1740gxVzFt','📁\x20','(empty)','icon','🎯\x20','name','folder','length','children','68QZiHUJ','\x20folder','showIcons','folderCount','1246608zMoTZD','\x20\x20\x20','map','13869gexUUA','1486527hbJmza','population','push','indent','dim','10930pNjTiv','metadata'];a78_0x35ac=function(){return _0x4beb85;};return a78_0x35ac();}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x1d7e60,_0x545200={},_0x4a42d1=0x0,_0x49f7e7=''){const _0x16328f=a78_0x2019,_0x35f23d={...DEFAULT_OPTIONS,..._0x545200},_0x546dc9=[],_0x4a4681=[..._0x1d7e60][_0x16328f(0xdf)]((_0x430fe1,_0x5011c3)=>_0x430fe1[_0x16328f(0xe5)][_0x16328f(0xf8)](_0x5011c3[_0x16328f(0xe5)]));for(let _0x30e9c6=0x0;_0x30e9c6<_0x4a4681['length'];_0x30e9c6++){const _0x3da823=_0x4a4681[_0x30e9c6],_0x102be5=_0x30e9c6===_0x4a4681[_0x16328f(0xe7)]-0x1;let _0x395cc4='';_0x4a42d1>0x0&&(_0x395cc4+=_0x49f7e7);_0x35f23d['showTreeLines']&&_0x4a42d1>0x0&&(_0x395cc4+=a78_0x59f03f['dim'](_0x102be5?'└──\x20':'├──\x20'));_0x35f23d[_0x16328f(0xeb)]&&(_0x395cc4+=_0x3da823[_0x16328f(0xfc)]==='folder'?_0x16328f(0xe1):_0x16328f(0xe4));_0x395cc4+=_0x3da823[_0x16328f(0xe5)];if(_0x35f23d['showMetadata']){if(_0x3da823[_0x16328f(0xfc)]===_0x16328f(0xe6)){const _0x4d5d96=[];_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]&&_0x4d5d96[_0x16328f(0xf3)](_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]+'\x20segment'+(_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]!==0x1?'s':'')),_0x3da823['metadata'][_0x16328f(0xec)]&&_0x4d5d96[_0x16328f(0xf3)](_0x3da823[_0x16328f(0xf7)]['folderCount']+_0x16328f(0xea)+(_0x3da823[_0x16328f(0xf7)][_0x16328f(0xec)]!==0x1?'s':'')),_0x4d5d96[_0x16328f(0xe7)]>0x0&&(_0x395cc4+=a78_0x59f03f['dim']('\x20('+_0x4d5d96[_0x16328f(0xfa)](',\x20')+')'));}else _0x3da823[_0x16328f(0xfc)]==='segment'&&_0x3da823[_0x16328f(0xf2)]!==undefined&&(_0x395cc4+=a78_0x59f03f[_0x16328f(0xf5)]('\x20('+formatRows(_0x3da823['population'])+')'));}_0x546dc9[_0x16328f(0xf3)](_0x395cc4);if(_0x3da823[_0x16328f(0xe8)]&&_0x3da823[_0x16328f(0xe8)][_0x16328f(0xe7)]>0x0){let _0x338a83;if(_0x4a42d1===0x0)_0x338a83='';else _0x35f23d[_0x16328f(0xde)]?_0x338a83=_0x49f7e7+(_0x102be5?'\x20\x20\x20\x20':a78_0x59f03f['dim']('│')+_0x16328f(0xee)):_0x338a83=_0x49f7e7+_0x35f23d[_0x16328f(0xf4)];const _0x593eb3=formatTree(_0x3da823[_0x16328f(0xe8)],_0x35f23d,_0x4a42d1+0x1,_0x338a83);_0x546dc9[_0x16328f(0xf3)](_0x593eb3);}}return _0x546dc9[_0x16328f(0xfa)]('\x0a');}export function formatFlatList(_0x50f851,_0x4e23f9,_0x2a7a6b={}){const _0x6f7812=a78_0x2019,_0x13b56e={...DEFAULT_OPTIONS,..._0x2a7a6b},_0x1967c1=[];for(const _0x1c7e32 of _0x50f851){_0x1967c1[_0x6f7812(0xf3)]({'name':_0x1c7e32['name'],'icon':_0x13b56e[_0x6f7812(0xeb)]?'📁':'','metadata':undefined});}for(const _0x490a90 of _0x4e23f9){const _0x2c62d6=_0x13b56e['showMetadata']&&_0x490a90['population']!==undefined?a78_0x59f03f[_0x6f7812(0xf5)]('\x20('+formatRows(_0x490a90[_0x6f7812(0xf2)])+')'):'';_0x1967c1[_0x6f7812(0xf3)]({'name':_0x490a90['name'],'icon':_0x13b56e['showIcons']?'🎯':'','metadata':_0x2c62d6});}_0x1967c1[_0x6f7812(0xdf)]((_0x7bc476,_0x47cfa3)=>_0x7bc476[_0x6f7812(0xe5)]['localeCompare'](_0x47cfa3[_0x6f7812(0xe5)]));if(_0x1967c1[_0x6f7812(0xe7)]===0x0)return _0x6f7812(0xe2);const _0x2b9176=_0x1967c1[_0x6f7812(0xef)](_0x20f41d=>{const _0x565847=_0x6f7812,_0x76c425=_0x20f41d[_0x565847(0xe3)]?_0x20f41d['icon']+'\x20':'',_0x1de8f6=_0x20f41d[_0x565847(0xf7)]||'';return''+_0x76c425+_0x20f41d[_0x565847(0xe5)]+_0x1de8f6;});return _0x2b9176[_0x6f7812(0xfa)]('\x0a');}
1
+ function a78_0x300b(){const _0x37448a=['name','29470rvRwfV','segmentCount','type','🎯\x20','\x20folder','showIcons','15917RvcNrc','push','sort','12089nUmUsx','children','79858RzfvNH','population','localeCompare','folder','showTreeLines','\x20\x20\x20\x20','1234380aZvwNE','114592NkMAzT','length','folderCount','dim','join','718992VKloTB','📁\x20','segment','3mfOQAf','showMetadata','1570KrEAon','\x20segment','36NKqyKc','├──\x20','174hyIdro','\x20\x20\x20','metadata'];a78_0x300b=function(){return _0x37448a;};return a78_0x300b();}(function(_0x55de6a,_0x12a807){const _0x4bee2b=a78_0x36c5,_0x508789=_0x55de6a();while(!![]){try{const _0x3f1038=parseInt(_0x4bee2b(0x113))/0x1+parseInt(_0x4bee2b(0x118))/0x2*(-parseInt(_0x4bee2b(0x103))/0x3)+-parseInt(_0x4bee2b(0x124))/0x4+parseInt(_0x4bee2b(0x11e))/0x5+parseInt(_0x4bee2b(0x109))/0x6*(-parseInt(_0x4bee2b(0x10d))/0x7)+-parseInt(_0x4bee2b(0x11f))/0x8*(-parseInt(_0x4bee2b(0x107))/0x9)+-parseInt(_0x4bee2b(0x105))/0xa*(-parseInt(_0x4bee2b(0x116))/0xb);if(_0x3f1038===_0x12a807)break;else _0x508789['push'](_0x508789['shift']());}catch(_0x3c81aa){_0x508789['push'](_0x508789['shift']());}}}(a78_0x300b,0x24d51));import{formatRows}from'./formatters.js';import a78_0x128f27 from'chalk';function a78_0x36c5(_0x1ed55f,_0x1d6b87){const _0x300b52=a78_0x300b();return a78_0x36c5=function(_0x36c555,_0x400447){_0x36c555=_0x36c555-0x101;let _0x2cd4fb=_0x300b52[_0x36c555];return _0x2cd4fb;},a78_0x36c5(_0x1ed55f,_0x1d6b87);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x3982fb,_0x316bcd={},_0x5cd9a8=0x0,_0x563482=''){const _0x3a07f7=a78_0x36c5,_0xf7fc2d={...DEFAULT_OPTIONS,..._0x316bcd},_0x3c5bbe=[],_0x2acd47=[..._0x3982fb][_0x3a07f7(0x115)]((_0x3b28e9,_0x24a331)=>_0x3b28e9[_0x3a07f7(0x10c)][_0x3a07f7(0x11a)](_0x24a331[_0x3a07f7(0x10c)]));for(let _0x23275c=0x0;_0x23275c<_0x2acd47[_0x3a07f7(0x120)];_0x23275c++){const _0x38a96d=_0x2acd47[_0x23275c],_0x4523d0=_0x23275c===_0x2acd47[_0x3a07f7(0x120)]-0x1;let _0x22bd28='';_0x5cd9a8>0x0&&(_0x22bd28+=_0x563482);_0xf7fc2d['showTreeLines']&&_0x5cd9a8>0x0&&(_0x22bd28+=a78_0x128f27[_0x3a07f7(0x122)](_0x4523d0?'└──\x20':_0x3a07f7(0x108)));_0xf7fc2d['showIcons']&&(_0x22bd28+=_0x38a96d['type']===_0x3a07f7(0x11b)?_0x3a07f7(0x101):_0x3a07f7(0x110));_0x22bd28+=_0x38a96d[_0x3a07f7(0x10c)];if(_0xf7fc2d['showMetadata']){if(_0x38a96d[_0x3a07f7(0x10f)]===_0x3a07f7(0x11b)){const _0x44f1c5=[];_0x38a96d[_0x3a07f7(0x10b)][_0x3a07f7(0x10e)]&&_0x44f1c5['push'](_0x38a96d[_0x3a07f7(0x10b)][_0x3a07f7(0x10e)]+_0x3a07f7(0x106)+(_0x38a96d[_0x3a07f7(0x10b)][_0x3a07f7(0x10e)]!==0x1?'s':'')),_0x38a96d['metadata'][_0x3a07f7(0x121)]&&_0x44f1c5[_0x3a07f7(0x114)](_0x38a96d[_0x3a07f7(0x10b)][_0x3a07f7(0x121)]+_0x3a07f7(0x111)+(_0x38a96d[_0x3a07f7(0x10b)][_0x3a07f7(0x121)]!==0x1?'s':'')),_0x44f1c5[_0x3a07f7(0x120)]>0x0&&(_0x22bd28+=a78_0x128f27[_0x3a07f7(0x122)]('\x20('+_0x44f1c5['join'](',\x20')+')'));}else _0x38a96d['type']===_0x3a07f7(0x102)&&_0x38a96d[_0x3a07f7(0x119)]!==undefined&&(_0x22bd28+=a78_0x128f27[_0x3a07f7(0x122)]('\x20('+formatRows(_0x38a96d[_0x3a07f7(0x119)])+')'));}_0x3c5bbe[_0x3a07f7(0x114)](_0x22bd28);if(_0x38a96d[_0x3a07f7(0x117)]&&_0x38a96d[_0x3a07f7(0x117)][_0x3a07f7(0x120)]>0x0){let _0x99ee0a;if(_0x5cd9a8===0x0)_0x99ee0a='';else _0xf7fc2d[_0x3a07f7(0x11c)]?_0x99ee0a=_0x563482+(_0x4523d0?_0x3a07f7(0x11d):a78_0x128f27[_0x3a07f7(0x122)]('│')+_0x3a07f7(0x10a)):_0x99ee0a=_0x563482+_0xf7fc2d['indent'];const _0x386356=formatTree(_0x38a96d['children'],_0xf7fc2d,_0x5cd9a8+0x1,_0x99ee0a);_0x3c5bbe[_0x3a07f7(0x114)](_0x386356);}}return _0x3c5bbe[_0x3a07f7(0x123)]('\x0a');}export function formatFlatList(_0x39a642,_0x5abb39,_0x4da2e5={}){const _0x1f8e02=a78_0x36c5,_0x1402b7={...DEFAULT_OPTIONS,..._0x4da2e5},_0x522014=[];for(const _0x6f4ecb of _0x39a642){_0x522014['push']({'name':_0x6f4ecb[_0x1f8e02(0x10c)],'icon':_0x1402b7[_0x1f8e02(0x112)]?'📁':'','metadata':undefined});}for(const _0x53579b of _0x5abb39){const _0x4b43d1=_0x1402b7[_0x1f8e02(0x104)]&&_0x53579b['population']!==undefined?a78_0x128f27[_0x1f8e02(0x122)]('\x20('+formatRows(_0x53579b['population'])+')'):'';_0x522014[_0x1f8e02(0x114)]({'name':_0x53579b[_0x1f8e02(0x10c)],'icon':_0x1402b7[_0x1f8e02(0x112)]?'🎯':'','metadata':_0x4b43d1});}_0x522014[_0x1f8e02(0x115)]((_0x5b714f,_0x5f52dd)=>_0x5b714f[_0x1f8e02(0x10c)][_0x1f8e02(0x11a)](_0x5f52dd[_0x1f8e02(0x10c)]));if(_0x522014['length']===0x0)return'(empty)';const _0x1aaeea=_0x522014['map'](_0x422c61=>{const _0x7438af=_0x1f8e02,_0x107711=_0x422c61['icon']?_0x422c61['icon']+'\x20':'',_0xdd301=_0x422c61[_0x7438af(0x10b)]||'';return''+_0x107711+_0x422c61[_0x7438af(0x10c)]+_0xdd301;});return _0x1aaeea[_0x1f8e02(0x123)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1d6479,_0x151628){const _0x241ec1=a79_0x2afc,_0x5c9924=_0x1d6479();while(!![]){try{const _0x450834=-parseInt(_0x241ec1(0xf9))/0x1*(parseInt(_0x241ec1(0xfc))/0x2)+parseInt(_0x241ec1(0xfb))/0x3+parseInt(_0x241ec1(0xff))/0x4+parseInt(_0x241ec1(0x102))/0x5*(parseInt(_0x241ec1(0xfe))/0x6)+-parseInt(_0x241ec1(0xf8))/0x7*(-parseInt(_0x241ec1(0x101))/0x8)+-parseInt(_0x241ec1(0xfa))/0x9*(parseInt(_0x241ec1(0x103))/0xa)+parseInt(_0x241ec1(0x100))/0xb;if(_0x450834===_0x151628)break;else _0x5c9924['push'](_0x5c9924['shift']());}catch(_0x5cb4dc){_0x5c9924['push'](_0x5c9924['shift']());}}}(a79_0x23ce,0x9751a));function a79_0x2afc(_0xc3dd,_0x425024){const _0x23ce1c=a79_0x23ce();return a79_0x2afc=function(_0x2afc83,_0x2f2eb7){_0x2afc83=_0x2afc83-0xf8;let _0x317cdf=_0x23ce1c[_0x2afc83];return _0x317cdf;},a79_0x2afc(_0xc3dd,_0x425024);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x172411){const _0x3be1c8=a79_0x2afc;if(_0x172411==='.digdag')return!![];if(_0x172411[_0x3be1c8(0xfd)]('.'))return![];return!![];}function a79_0x23ce(){const _0x67a0b=['22833ltPnkv','992397PAhZVi','19508MREObq','startsWith','502134aCeNxg','1714060tWurZF','58828EPUgGM','128RFVukM','55lMAaGM','2990ucJCmb','62041LLubpl','46DjYcLl'];a79_0x23ce=function(){return _0x67a0b;};return a79_0x23ce();}
1
+ (function(_0x2e9709,_0x113169){const _0x245ec4=a79_0xd060,_0x377946=_0x2e9709();while(!![]){try{const _0xc4fbd0=parseInt(_0x245ec4(0x19d))/0x1*(-parseInt(_0x245ec4(0x1a2))/0x2)+-parseInt(_0x245ec4(0x19c))/0x3+-parseInt(_0x245ec4(0x19b))/0x4+parseInt(_0x245ec4(0x19f))/0x5*(-parseInt(_0x245ec4(0x1a1))/0x6)+parseInt(_0x245ec4(0x19e))/0x7*(parseInt(_0x245ec4(0x198))/0x8)+-parseInt(_0x245ec4(0x1a3))/0x9+parseInt(_0x245ec4(0x19a))/0xa;if(_0xc4fbd0===_0x113169)break;else _0x377946['push'](_0x377946['shift']());}catch(_0x1fbd8d){_0x377946['push'](_0x377946['shift']());}}}(a79_0x358c,0xd5620));function a79_0x358c(){const _0x4b3a78=['55227210HedIdd','5329936lHaqUT','5076810UVmebN','1131QloGkO','21BiGLpI','6908465XeoURw','.digdag','6tORyXr','1782GUZMBr','3262536NbKsNZ','3007912kDveOy','startsWith'];a79_0x358c=function(){return _0x4b3a78;};return a79_0x358c();}export const WORKFLOW_FILE_EXTENSION='.dig';function a79_0xd060(_0x3364a3,_0x4a5162){const _0x358c2d=a79_0x358c();return a79_0xd060=function(_0xd06068,_0x4c56e5){_0xd06068=_0xd06068-0x198;let _0x1edea0=_0x358c2d[_0xd06068];return _0x1edea0;},a79_0xd060(_0x3364a3,_0x4a5162);}export function shouldIncludeInArchive(_0x31257b){const _0x145a83=a79_0xd060;if(_0x31257b===_0x145a83(0x1a0))return!![];if(_0x31257b[_0x145a83(0x199)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
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": {