@treasuredata/tdx 0.1.8 → 0.1.9

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 (69) hide show
  1. package/README.md +14 -1
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-client.js +1 -1
  6. package/dist/client/rate-limiter.js +1 -1
  7. package/dist/client/td-client.js +1 -1
  8. package/dist/client/trino-client.js +1 -1
  9. package/dist/client/workflow-client.js +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/api-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/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/llm-command.js +1 -1
  18. package/dist/commands/llm-proxy.js +1 -1
  19. package/dist/commands/profiles-command.js +1 -1
  20. package/dist/commands/query-command.js +1 -1
  21. package/dist/commands/segment-command.js +1 -1
  22. package/dist/commands/segments.js +1 -1
  23. package/dist/commands/show.js +1 -1
  24. package/dist/commands/tables.js +1 -1
  25. package/dist/commands/use-command.js +1 -1
  26. package/dist/commands/workflow-command.js +1 -1
  27. package/dist/core/auth.js +1 -1
  28. package/dist/core/config.js +1 -1
  29. package/dist/core/global-context.js +1 -1
  30. package/dist/core/profile.js +1 -1
  31. package/dist/core/project-config.js +1 -1
  32. package/dist/core/session.js +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/proxy/anthropic-adapter.d.ts +36 -1
  35. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  36. package/dist/proxy/anthropic-adapter.js +1 -1
  37. package/dist/proxy/anthropic-adapter.js.map +1 -1
  38. package/dist/proxy/server.d.ts.map +1 -1
  39. package/dist/proxy/server.js +1 -1
  40. package/dist/proxy/server.js.map +1 -1
  41. package/dist/sdk/api.js +1 -1
  42. package/dist/sdk/database.js +1 -1
  43. package/dist/sdk/errors.js +1 -1
  44. package/dist/sdk/index.js +1 -1
  45. package/dist/sdk/llm.js +1 -1
  46. package/dist/sdk/query.js +1 -1
  47. package/dist/sdk/segment.js +1 -1
  48. package/dist/sdk/table.js +1 -1
  49. package/dist/sdk/workflow.js +1 -1
  50. package/dist/types/endpoints.js +1 -1
  51. package/dist/types/index.js +1 -1
  52. package/dist/utils/agent-ref-parser.js +1 -1
  53. package/dist/utils/chat-cache.js +1 -1
  54. package/dist/utils/colors.js +1 -1
  55. package/dist/utils/command-output.js +1 -1
  56. package/dist/utils/file-permissions.js +1 -1
  57. package/dist/utils/format-detector.js +1 -1
  58. package/dist/utils/formatters.js +1 -1
  59. package/dist/utils/model-aliases.js +1 -1
  60. package/dist/utils/option-validation.js +1 -1
  61. package/dist/utils/process.js +1 -1
  62. package/dist/utils/segment-ref-parser.js +1 -1
  63. package/dist/utils/spinner.js +1 -1
  64. package/dist/utils/sql-parser.js +1 -1
  65. package/dist/utils/sse-parser.js +1 -1
  66. package/dist/utils/string-utils.js +1 -1
  67. package/dist/utils/table-ref-parser.js +1 -1
  68. package/dist/utils/workflow-utils.js +1 -1
  69. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1c2c12,_0x129f0e){const _0x2289e7=a54_0x6a4f,_0x44d700=_0x1c2c12();while(!![]){try{const _0x258de8=parseInt(_0x2289e7(0x177))/0x1+parseInt(_0x2289e7(0x180))/0x2+parseInt(_0x2289e7(0x176))/0x3+parseInt(_0x2289e7(0x196))/0x4*(parseInt(_0x2289e7(0x199))/0x5)+-parseInt(_0x2289e7(0x18f))/0x6+parseInt(_0x2289e7(0x187))/0x7+-parseInt(_0x2289e7(0x188))/0x8;if(_0x258de8===_0x129f0e)break;else _0x44d700['push'](_0x44d700['shift']());}catch(_0x12d137){_0x44d700['push'](_0x44d700['shift']());}}}(a54_0x431c,0x815da));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x2998ba=a54_0x6a4f;return process[_0x2998ba(0x16f)][_0x2998ba(0x193)]||Infinity;}export function formatAsTable(_0x25cfd5,_0x23195f=DEFAULT_MAX_DISPLAY_ROWS,_0x2dfdd9=![],_0x142e12={}){const _0xd8ed14=a54_0x6a4f;if(_0x25cfd5[_0xd8ed14(0x183)][_0xd8ed14(0x197)]===0x0)return _0xd8ed14(0x18a);const _0x4d004c=_0x25cfd5[_0xd8ed14(0x193)][_0xd8ed14(0x17a)](_0x5ce35c=>_0x5ce35c[_0xd8ed14(0x18c)]),_0x5f4404=_0x25cfd5[_0xd8ed14(0x193)][_0xd8ed14(0x17a)](_0x4093be=>simplifyType(_0x4093be[_0xd8ed14(0x170)])),_0x127dd3=_0x25cfd5[_0xd8ed14(0x183)][_0xd8ed14(0x190)](0x0,_0x23195f),_0x494275=_0x25cfd5['data'][_0xd8ed14(0x197)],_0x5694aa=_0x494275>_0x23195f,_0x5b56a5=[],_0x60c26c=getTerminalWidth(),_0x5bad11=_0x60c26c!==Infinity,_0x9b37cd=0x32;let _0x52dc6d=_0x4d004c[_0xd8ed14(0x17a)]((_0x4bcf5a,_0x5992e3)=>{const _0x1030e5=_0xd8ed14,_0x1f9dc7=stringWidth(_0x5f4404[_0x5992e3]),_0x5e4f38=Math['max'](..._0x127dd3[_0x1030e5(0x17a)](_0x2d84fa=>{const _0x38011c=_0x2d84fa[_0x4bcf5a];return stringWidth(formatValue(_0x38011c));})),_0x5a2d40=Math[_0x1030e5(0x195)](stringWidth(_0x4bcf5a),_0x1f9dc7,_0x5e4f38);return _0x2dfdd9?_0x5a2d40:Math[_0x1030e5(0x198)](_0x5a2d40,_0x9b37cd);});if(_0x5bad11&&!_0x2dfdd9&&_0x4d004c[_0xd8ed14(0x197)]>0x0){const _0x299e1e=_0x595737=>{let _0x182542=0x1;for(const _0x2f9d98 of _0x595737){_0x182542+=_0x2f9d98+0x3;}return _0x182542+0x1;};let _0x312e37=_0x299e1e(_0x52dc6d);if(_0x312e37>_0x60c26c){const _0x7e8006=0x3;for(let _0x2a4975=_0x52dc6d[_0xd8ed14(0x197)]-0x1;_0x2a4975>=0x0;_0x2a4975--){_0x312e37=_0x299e1e(_0x52dc6d);if(_0x312e37<=_0x60c26c)break;const _0x338be1=_0x52dc6d[_0x2a4975],_0x2e8b2d=_0x312e37-_0x60c26c,_0x4100e4=_0x338be1-_0x7e8006,_0x170308=Math[_0xd8ed14(0x198)](_0x2e8b2d,_0x4100e4);_0x170308>0x0&&(_0x52dc6d[_0x2a4975]=_0x338be1-_0x170308);}}}const _0x2f7d21=_0x4d004c,_0x3b2864=_0x5f4404,_0x8f8b40=_0x52dc6d,_0x1c39f3=_0x52dc6d;_0x5b56a5['push'](colorBorder('┌'+_0x1c39f3[_0xd8ed14(0x17a)](_0x51601d=>'─'[_0xd8ed14(0x175)](_0x51601d+0x2))['join']('┬')+'┐',_0x142e12));const _0xf83bc=_0x2f7d21['map']((_0x484e59,_0x47feda)=>centerAlign(_0x484e59,_0x8f8b40[_0x47feda]));_0x5b56a5[_0xd8ed14(0x184)](colorBorder('│',_0x142e12)+'\x20'+_0xf83bc[_0xd8ed14(0x185)]('\x20'+colorBorder('│',_0x142e12)+'\x20')+'\x20'+colorBorder('│',_0x142e12));const _0x1a6c4d=_0x3b2864[_0xd8ed14(0x17a)]((_0x22595e,_0x533014)=>colorType(centerAlign(_0x22595e,_0x8f8b40[_0x533014]),_0x142e12));_0x5b56a5[_0xd8ed14(0x184)](colorBorder('│',_0x142e12)+'\x20'+_0x1a6c4d[_0xd8ed14(0x185)]('\x20'+colorBorder('│',_0x142e12)+'\x20')+'\x20'+colorBorder('│',_0x142e12)),_0x5b56a5[_0xd8ed14(0x184)](colorBorder('├'+_0x1c39f3[_0xd8ed14(0x17a)](_0x5bc864=>'─'['repeat'](_0x5bc864+0x2))[_0xd8ed14(0x185)]('┼')+'┤',_0x142e12));const _0x1bcc9b=(_0x10f598,_0xf05ee7)=>{const _0x4e220c=_0xd8ed14,_0x154274=stringWidth(_0x10f598);if(_0x154274<=_0xf05ee7)return _0x10f598;let _0x991998=_0x10f598;while(stringWidth(_0x991998+'…')>_0xf05ee7&&_0x991998['length']>0x0){_0x991998=_0x991998[_0x4e220c(0x190)](0x0,-0x1);}return _0x991998+'…';};_0x127dd3[_0xd8ed14(0x181)](_0x2d655d=>{const _0x31d4d3=_0xd8ed14,_0x33a0ad=_0x4d004c[_0x31d4d3(0x17a)]((_0x20c915,_0x15fd50)=>{const _0x1d14eb=_0x31d4d3,_0x2189b7=_0x2d655d[_0x20c915],_0x2e9d69=formatValue(_0x2189b7),_0x4c1b41=_0x8f8b40[_0x15fd50],_0x277f78=_0x1bcc9b(_0x2e9d69,_0x4c1b41),_0x19f4bb=typeof _0x2189b7===_0x1d14eb(0x186)||typeof _0x2189b7===_0x1d14eb(0x18e)&&/^-?\d+$/['test'](_0x2189b7);return _0x19f4bb?padStart(_0x277f78,_0x4c1b41):padEnd(_0x277f78,_0x4c1b41);});_0x5b56a5[_0x31d4d3(0x184)](colorBorder('│',_0x142e12)+'\x20'+_0x33a0ad[_0x31d4d3(0x185)]('\x20'+colorBorder('│',_0x142e12)+'\x20')+'\x20'+colorBorder('│',_0x142e12));});const _0xd88683=_0x1c39f3['reduce']((_0x580eed,_0x248249)=>_0x580eed+_0x248249+0x3,-0x1);_0x5b56a5['push'](colorBorder('├'+_0x1c39f3[_0xd8ed14(0x17a)](_0x4717a4=>'─'[_0xd8ed14(0x175)](_0x4717a4+0x2))[_0xd8ed14(0x185)]('┴')+'┤',_0x142e12));let _0x12799;_0x5694aa?_0x12799=_0x494275+_0xd8ed14(0x173)+_0x23195f+_0xd8ed14(0x171):_0x12799=_0x494275+_0xd8ed14(0x17b)+(_0x494275===0x1?'':'s');const _0x3abe8b=_0x12799[_0xd8ed14(0x18d)](_0xd88683-0x2);return _0x5b56a5['push'](colorBorder('│',_0x142e12)+'\x20'+_0x3abe8b+'\x20'+colorBorder('│',_0x142e12)),_0x5b56a5[_0xd8ed14(0x184)](colorBorder('└'+'─'[_0xd8ed14(0x175)](_0xd88683)+'┘',_0x142e12)),_0x5b56a5[_0xd8ed14(0x185)]('\x0a');}function simplifyType(_0x3376f0){const _0x5d59a2=a54_0x6a4f,_0x5074a3={'varchar':_0x5d59a2(0x18e),'bigint':_0x5d59a2(0x174),'integer':'int','double':_0x5d59a2(0x191),'boolean':_0x5d59a2(0x16d),'date':'date','timestamp':_0x5d59a2(0x178),'array':_0x5d59a2(0x16c),'map':_0x5d59a2(0x17a),'row':_0x5d59a2(0x194)},_0x397923=_0x3376f0[_0x5d59a2(0x17f)]();for(const [_0x1251ed,_0x31c99a]of Object['entries'](_0x5074a3)){if(_0x397923['startsWith'](_0x1251ed))return _0x31c99a;}return _0x3376f0[_0x5d59a2(0x197)]>0xa?_0x3376f0[_0x5d59a2(0x189)](0x0,0xa):_0x3376f0;}export function formatAsJSON(_0x281008,_0x262b0d={}){const _0x5ce748=a54_0x6a4f;if(_0x281008[_0x5ce748(0x183)][_0x5ce748(0x197)]===0x0)return'[]';if(shouldUseColor(_0x262b0d))return colorizeJSON(_0x281008[_0x5ce748(0x183)],_0x262b0d);const _0x16562a=_0x281008['data'][_0x5ce748(0x17a)](_0x344c05=>'\x20\x20'+JSON['stringify'](_0x344c05));return'[\x0a'+_0x16562a[_0x5ce748(0x185)](',\x0a')+'\x0a]';}function a54_0x431c(){const _0x11d11f=['replace','data','push','join','number','5945338bzxnnZ','16386688khiCsX','substring','No\x20rows\x20returned','jsonl','name','padEnd','string','804420ILSecu','slice','double','object','columns','row','max','1355596iidmuN','length','min','15AtlnwO','array','bool','table','stdout','type','\x20shown)','boolean','\x20rows\x20(','long','repeat','2092317vSbgwZ','115080qXIIaF','timestamp','json','map','\x20row','false','stringify','toISOString','toLowerCase','67476bbmkIi','forEach'];a54_0x431c=function(){return _0x11d11f;};return a54_0x431c();}export function formatAsJSONL(_0x50fd63,_0xc7f8d1={}){const _0x46a2ce=a54_0x6a4f;if(_0x50fd63[_0x46a2ce(0x183)][_0x46a2ce(0x197)]===0x0)return'';if(shouldUseColor(_0xc7f8d1))return _0x50fd63[_0x46a2ce(0x183)]['map'](_0x1d0ee1=>colorizeJSONCompact(_0x1d0ee1,_0xc7f8d1))[_0x46a2ce(0x185)]('\x0a');return _0x50fd63[_0x46a2ce(0x183)]['map'](_0xfaf1cf=>JSON[_0x46a2ce(0x17d)](_0xfaf1cf))[_0x46a2ce(0x185)]('\x0a');}function a54_0x6a4f(_0x12387d,_0x57f29d){const _0x431c0a=a54_0x431c();return a54_0x6a4f=function(_0x6a4f3f,_0x53583c){_0x6a4f3f=_0x6a4f3f-0x16c;let _0x2ef5cc=_0x431c0a[_0x6a4f3f];return _0x2ef5cc;},a54_0x6a4f(_0x12387d,_0x57f29d);}export function formatAsTSV(_0x187102){const _0xd2e7a5=a54_0x6a4f;if(_0x187102[_0xd2e7a5(0x183)][_0xd2e7a5(0x197)]===0x0)return'';const _0x330ec2=[],_0x50389d=_0x187102[_0xd2e7a5(0x193)][_0xd2e7a5(0x17a)](_0x443d6a=>_0x443d6a[_0xd2e7a5(0x18c)]);return _0x330ec2[_0xd2e7a5(0x184)](_0x50389d['join']('\x09')),_0x187102[_0xd2e7a5(0x183)][_0xd2e7a5(0x181)](_0x2ed5e2=>{const _0x2ec8c8=_0xd2e7a5,_0x1b0c9c=_0x50389d[_0x2ec8c8(0x17a)](_0x13ed9b=>{const _0x36bf3c=_0x2ed5e2[_0x13ed9b];return formatValueForTSV(_0x36bf3c);});_0x330ec2[_0x2ec8c8(0x184)](_0x1b0c9c[_0x2ec8c8(0x185)]('\x09'));}),_0x330ec2['join']('\x0a');}function formatValue(_0x226a1b){const _0x11a836=a54_0x6a4f;if(_0x226a1b===null||_0x226a1b===undefined)return'';if(typeof _0x226a1b==='string'){const _0x17f4aa=_0x226a1b['replace'](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x11a836(0x182)](/\t/g,'\x5ct');return _0x17f4aa;}if(typeof _0x226a1b===_0x11a836(0x186))return String(_0x226a1b);if(typeof _0x226a1b==='boolean')return _0x226a1b?'true':_0x11a836(0x17c);if(_0x226a1b instanceof Date)return _0x226a1b[_0x11a836(0x17e)]();if(typeof _0x226a1b==='object')return JSON[_0x11a836(0x17d)](_0x226a1b);return String(_0x226a1b);}function formatValueForTSV(_0x2cbf6e){const _0x48dbfd=a54_0x6a4f;if(_0x2cbf6e===null||_0x2cbf6e===undefined)return'';if(typeof _0x2cbf6e===_0x48dbfd(0x18e))return _0x2cbf6e[_0x48dbfd(0x182)](/\t/g,'\x5ct')[_0x48dbfd(0x182)](/\n/g,'\x5cn');if(typeof _0x2cbf6e===_0x48dbfd(0x186)||typeof _0x2cbf6e===_0x48dbfd(0x172))return String(_0x2cbf6e);if(_0x2cbf6e instanceof Date)return _0x2cbf6e[_0x48dbfd(0x17e)]();if(typeof _0x2cbf6e===_0x48dbfd(0x192))return JSON[_0x48dbfd(0x17d)](_0x2cbf6e);return String(_0x2cbf6e);}export function formatQueryResult(_0x1fa4b1,_0x599b3a){const _0x32c847=a54_0x6a4f;switch(_0x599b3a){case _0x32c847(0x16e):return formatAsTable(_0x1fa4b1);case _0x32c847(0x179):return formatAsJSON(_0x1fa4b1);case _0x32c847(0x18b):return formatAsJSONL(_0x1fa4b1);case'tsv':return formatAsTSV(_0x1fa4b1);default:return formatAsJSON(_0x1fa4b1);}}
1
+ (function(_0x4e9616,_0x417cba){const _0x4115bd=a54_0x5480,_0x5738b0=_0x4e9616();while(!![]){try{const _0x4067d9=-parseInt(_0x4115bd(0x12d))/0x1*(-parseInt(_0x4115bd(0x136))/0x2)+-parseInt(_0x4115bd(0x11b))/0x3+parseInt(_0x4115bd(0x13a))/0x4+-parseInt(_0x4115bd(0x12e))/0x5*(parseInt(_0x4115bd(0x128))/0x6)+-parseInt(_0x4115bd(0x10f))/0x7*(parseInt(_0x4115bd(0x126))/0x8)+parseInt(_0x4115bd(0x139))/0x9*(-parseInt(_0x4115bd(0x11a))/0xa)+-parseInt(_0x4115bd(0x11f))/0xb*(-parseInt(_0x4115bd(0x131))/0xc);if(_0x4067d9===_0x417cba)break;else _0x5738b0['push'](_0x5738b0['shift']());}catch(_0x50e21c){_0x5738b0['push'](_0x5738b0['shift']());}}}(a54_0x4c24,0x3d75f));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a54_0x5480(_0x467486,_0x169b29){const _0x4c24f0=a54_0x4c24();return a54_0x5480=function(_0x5480e1,_0x1841de){_0x5480e1=_0x5480e1-0x10a;let _0x61e365=_0x4c24f0[_0x5480e1];return _0x61e365;},a54_0x5480(_0x467486,_0x169b29);}const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x1c9fa7=a54_0x5480;return process[_0x1c9fa7(0x13b)][_0x1c9fa7(0x137)]||Infinity;}export function formatAsTable(_0x34d96e,_0x46a868=DEFAULT_MAX_DISPLAY_ROWS,_0x37dce5=![],_0x49f831={}){const _0x355f64=a54_0x5480;if(_0x34d96e[_0x355f64(0x119)][_0x355f64(0x130)]===0x0)return _0x355f64(0x13c);const _0x4edf38=_0x34d96e[_0x355f64(0x137)]['map'](_0x39c810=>_0x39c810[_0x355f64(0x13d)]),_0x2018f8=_0x34d96e[_0x355f64(0x137)][_0x355f64(0x121)](_0x170390=>simplifyType(_0x170390[_0x355f64(0x123)])),_0x33475c=_0x34d96e[_0x355f64(0x119)][_0x355f64(0x129)](0x0,_0x46a868),_0x6ed9b8=_0x34d96e[_0x355f64(0x119)]['length'],_0x131454=_0x6ed9b8>_0x46a868,_0x31f47d=[],_0x5efc21=getTerminalWidth(),_0x5f1ee7=_0x5efc21!==Infinity,_0x48e313=0x32;let _0x8b9390=_0x4edf38[_0x355f64(0x121)]((_0xb4f692,_0x318b4a)=>{const _0x45a2ec=_0x355f64,_0x2980ca=stringWidth(_0x2018f8[_0x318b4a]),_0x292254=Math[_0x45a2ec(0x113)](..._0x33475c['map'](_0x177eb5=>{const _0x307c5c=_0x177eb5[_0xb4f692];return stringWidth(formatValue(_0x307c5c));})),_0x2ca79d=Math[_0x45a2ec(0x113)](stringWidth(_0xb4f692),_0x2980ca,_0x292254);return _0x37dce5?_0x2ca79d:Math[_0x45a2ec(0x133)](_0x2ca79d,_0x48e313);});if(_0x5f1ee7&&!_0x37dce5&&_0x4edf38[_0x355f64(0x130)]>0x0){const _0x47cb7d=_0x5185dd=>{let _0xfe24c9=0x1;for(const _0x4d9783 of _0x5185dd){_0xfe24c9+=_0x4d9783+0x3;}return _0xfe24c9+0x1;};let _0x55ff7c=_0x47cb7d(_0x8b9390);if(_0x55ff7c>_0x5efc21){const _0x5a330b=0x3;for(let _0x42373f=_0x8b9390[_0x355f64(0x130)]-0x1;_0x42373f>=0x0;_0x42373f--){_0x55ff7c=_0x47cb7d(_0x8b9390);if(_0x55ff7c<=_0x5efc21)break;const _0x3090b4=_0x8b9390[_0x42373f],_0x3aae40=_0x55ff7c-_0x5efc21,_0xff3e44=_0x3090b4-_0x5a330b,_0x219a29=Math[_0x355f64(0x133)](_0x3aae40,_0xff3e44);_0x219a29>0x0&&(_0x8b9390[_0x42373f]=_0x3090b4-_0x219a29);}}}const _0x426903=_0x4edf38,_0x5f2b97=_0x2018f8,_0x20f6a6=_0x8b9390,_0x1f86ba=_0x8b9390;_0x31f47d[_0x355f64(0x12c)](colorBorder('┌'+_0x1f86ba['map'](_0x577ebf=>'─'[_0x355f64(0x11d)](_0x577ebf+0x2))[_0x355f64(0x110)]('┬')+'┐',_0x49f831));const _0xc8c1e0=_0x426903[_0x355f64(0x121)]((_0x4ec0d7,_0x4613b6)=>centerAlign(_0x4ec0d7,_0x20f6a6[_0x4613b6]));_0x31f47d[_0x355f64(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0xc8c1e0[_0x355f64(0x110)]('\x20'+colorBorder('│',_0x49f831)+'\x20')+'\x20'+colorBorder('│',_0x49f831));const _0x237ebd=_0x5f2b97['map']((_0x13a316,_0x23ed04)=>colorType(centerAlign(_0x13a316,_0x20f6a6[_0x23ed04]),_0x49f831));_0x31f47d[_0x355f64(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0x237ebd[_0x355f64(0x110)]('\x20'+colorBorder('│',_0x49f831)+'\x20')+'\x20'+colorBorder('│',_0x49f831)),_0x31f47d[_0x355f64(0x12c)](colorBorder('├'+_0x1f86ba[_0x355f64(0x121)](_0x177dba=>'─'[_0x355f64(0x11d)](_0x177dba+0x2))[_0x355f64(0x110)]('┼')+'┤',_0x49f831));const _0x386fdc=(_0x4e0e73,_0x53b344)=>{const _0x484602=_0x355f64,_0x60b2cc=stringWidth(_0x4e0e73);if(_0x60b2cc<=_0x53b344)return _0x4e0e73;let _0x8b5c7e=_0x4e0e73;while(stringWidth(_0x8b5c7e+'…')>_0x53b344&&_0x8b5c7e[_0x484602(0x130)]>0x0){_0x8b5c7e=_0x8b5c7e[_0x484602(0x129)](0x0,-0x1);}return _0x8b5c7e+'…';};_0x33475c[_0x355f64(0x11c)](_0x5e11e1=>{const _0x35eca8=_0x355f64,_0x54ccbd=_0x4edf38[_0x35eca8(0x121)]((_0x1d0124,_0x3e1a7d)=>{const _0x36936f=_0x35eca8,_0x2717a8=_0x5e11e1[_0x1d0124],_0x2937eb=formatValue(_0x2717a8),_0x32671c=_0x20f6a6[_0x3e1a7d],_0x4dc2e7=_0x386fdc(_0x2937eb,_0x32671c),_0x40613=typeof _0x2717a8==='number'||typeof _0x2717a8===_0x36936f(0x127)&&/^-?\d+$/[_0x36936f(0x111)](_0x2717a8);return _0x40613?padStart(_0x4dc2e7,_0x32671c):padEnd(_0x4dc2e7,_0x32671c);});_0x31f47d[_0x35eca8(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0x54ccbd[_0x35eca8(0x110)]('\x20'+colorBorder('│',_0x49f831)+'\x20')+'\x20'+colorBorder('│',_0x49f831));});const _0x8c159d=_0x1f86ba[_0x355f64(0x10e)]((_0x4246a6,_0x104e4c)=>_0x4246a6+_0x104e4c+0x3,-0x1);_0x31f47d[_0x355f64(0x12c)](colorBorder('├'+_0x1f86ba[_0x355f64(0x121)](_0x258aa4=>'─'['repeat'](_0x258aa4+0x2))[_0x355f64(0x110)]('┴')+'┤',_0x49f831));let _0x405072;_0x131454?_0x405072=_0x6ed9b8+_0x355f64(0x135)+_0x46a868+_0x355f64(0x10d):_0x405072=_0x6ed9b8+_0x355f64(0x10b)+(_0x6ed9b8===0x1?'':'s');const _0x8c0712=_0x405072[_0x355f64(0x132)](_0x8c159d-0x2);return _0x31f47d[_0x355f64(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0x8c0712+'\x20'+colorBorder('│',_0x49f831)),_0x31f47d[_0x355f64(0x12c)](colorBorder('└'+'─'[_0x355f64(0x11d)](_0x8c159d)+'┘',_0x49f831)),_0x31f47d['join']('\x0a');}function a54_0x4c24(){const _0x2798b7=['stringify','toISOString','object','data','1450lsRoja','215682LGPIMN','forEach','repeat','startsWith','3338819GEbhcf','false','map','bool','type','tsv','number','1672PQktTU','string','29586IncjLn','slice','true','double','push','3WynYBH','285IdqQoP','timestamp','length','12CtFgQx','padEnd','min','substring','\x20rows\x20(','222962jswKck','columns','toLowerCase','810htBaXv','655644dvWONu','stdout','No\x20rows\x20returned','name','date','\x20row','replace','\x20shown)','reduce','6167ttGuWY','join','test','int','max','long','boolean'];a54_0x4c24=function(){return _0x2798b7;};return a54_0x4c24();}function simplifyType(_0x2d09c6){const _0x262eda=a54_0x5480,_0x51e001={'varchar':_0x262eda(0x127),'bigint':_0x262eda(0x114),'integer':_0x262eda(0x112),'double':_0x262eda(0x12b),'boolean':_0x262eda(0x122),'date':_0x262eda(0x10a),'timestamp':_0x262eda(0x12f),'array':'array','map':_0x262eda(0x121),'row':'row'},_0x6adbdb=_0x2d09c6[_0x262eda(0x138)]();for(const [_0x5edb9f,_0xa7e302]of Object['entries'](_0x51e001)){if(_0x6adbdb[_0x262eda(0x11e)](_0x5edb9f))return _0xa7e302;}return _0x2d09c6[_0x262eda(0x130)]>0xa?_0x2d09c6[_0x262eda(0x134)](0x0,0xa):_0x2d09c6;}export function formatAsJSON(_0x47d712,_0x4539a8={}){const _0x35eb4e=a54_0x5480;if(_0x47d712[_0x35eb4e(0x119)]['length']===0x0)return'[]';if(shouldUseColor(_0x4539a8))return colorizeJSON(_0x47d712['data'],_0x4539a8);const _0x572c66=_0x47d712[_0x35eb4e(0x119)][_0x35eb4e(0x121)](_0x26e435=>'\x20\x20'+JSON[_0x35eb4e(0x116)](_0x26e435));return'[\x0a'+_0x572c66[_0x35eb4e(0x110)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x3efae0,_0x4088cd={}){const _0x49500a=a54_0x5480;if(_0x3efae0['data'][_0x49500a(0x130)]===0x0)return'';if(shouldUseColor(_0x4088cd))return _0x3efae0[_0x49500a(0x119)][_0x49500a(0x121)](_0x206766=>colorizeJSONCompact(_0x206766,_0x4088cd))['join']('\x0a');return _0x3efae0[_0x49500a(0x119)][_0x49500a(0x121)](_0x156914=>JSON[_0x49500a(0x116)](_0x156914))[_0x49500a(0x110)]('\x0a');}export function formatAsTSV(_0x4120ae){const _0x170661=a54_0x5480;if(_0x4120ae['data']['length']===0x0)return'';const _0x26845=[],_0x3e1348=_0x4120ae['columns'][_0x170661(0x121)](_0x1d1f5f=>_0x1d1f5f[_0x170661(0x13d)]);return _0x26845['push'](_0x3e1348['join']('\x09')),_0x4120ae[_0x170661(0x119)][_0x170661(0x11c)](_0x1b052d=>{const _0x32078f=_0x170661,_0x1bb7ef=_0x3e1348[_0x32078f(0x121)](_0x1419fa=>{const _0x5673c9=_0x1b052d[_0x1419fa];return formatValueForTSV(_0x5673c9);});_0x26845[_0x32078f(0x12c)](_0x1bb7ef[_0x32078f(0x110)]('\x09'));}),_0x26845['join']('\x0a');}function formatValue(_0x2b6434){const _0x1263d9=a54_0x5480;if(_0x2b6434===null||_0x2b6434===undefined)return'';if(typeof _0x2b6434===_0x1263d9(0x127)){const _0x4d0d09=_0x2b6434['replace'](/\n/g,'\x5cn')[_0x1263d9(0x10c)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x4d0d09;}if(typeof _0x2b6434===_0x1263d9(0x125))return String(_0x2b6434);if(typeof _0x2b6434===_0x1263d9(0x115))return _0x2b6434?_0x1263d9(0x12a):_0x1263d9(0x120);if(_0x2b6434 instanceof Date)return _0x2b6434['toISOString']();if(typeof _0x2b6434===_0x1263d9(0x118))return JSON[_0x1263d9(0x116)](_0x2b6434);return String(_0x2b6434);}function formatValueForTSV(_0x3a5e80){const _0x4c558e=a54_0x5480;if(_0x3a5e80===null||_0x3a5e80===undefined)return'';if(typeof _0x3a5e80==='string')return _0x3a5e80[_0x4c558e(0x10c)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x3a5e80===_0x4c558e(0x125)||typeof _0x3a5e80===_0x4c558e(0x115))return String(_0x3a5e80);if(_0x3a5e80 instanceof Date)return _0x3a5e80[_0x4c558e(0x117)]();if(typeof _0x3a5e80===_0x4c558e(0x118))return JSON[_0x4c558e(0x116)](_0x3a5e80);return String(_0x3a5e80);}export function formatQueryResult(_0x464596,_0x28b287){const _0x131f5=a54_0x5480;switch(_0x28b287){case'table':return formatAsTable(_0x464596);case'json':return formatAsJSON(_0x464596);case'jsonl':return formatAsJSONL(_0x464596);case _0x131f5(0x124):return formatAsTSV(_0x464596);default:return formatAsJSON(_0x464596);}}
@@ -1 +1 @@
1
- const a55_0x11f5fc=a55_0x5661;(function(_0x18fed3,_0x4c7ee8){const _0x31e68d=a55_0x5661,_0x547be1=_0x18fed3();while(!![]){try{const _0xecf659=-parseInt(_0x31e68d(0xec))/0x1*(parseInt(_0x31e68d(0xe8))/0x2)+-parseInt(_0x31e68d(0xeb))/0x3+-parseInt(_0x31e68d(0xed))/0x4+parseInt(_0x31e68d(0xf0))/0x5+-parseInt(_0x31e68d(0xea))/0x6*(parseInt(_0x31e68d(0xf2))/0x7)+-parseInt(_0x31e68d(0xe7))/0x8*(-parseInt(_0x31e68d(0xe9))/0x9)+parseInt(_0x31e68d(0xef))/0xa;if(_0xecf659===_0x4c7ee8)break;else _0x547be1['push'](_0x547be1['shift']());}catch(_0x1c323e){_0x547be1['push'](_0x547be1['shift']());}}}(a55_0x2100,0x8836b));function a55_0x5661(_0x474125,_0x3df88b){const _0x2100c1=a55_0x2100();return a55_0x5661=function(_0x566126,_0x3c4668){_0x566126=_0x566126-0xe7;let _0x185bf1=_0x2100c1[_0x566126];return _0x185bf1;},a55_0x5661(_0x474125,_0x3df88b);}const MODEL_ALIASES={'haiku':a55_0x11f5fc(0xf1),'sonnet':'claude-4.5-sonnet'};function a55_0x2100(){const _0x862aca=['claude-4.5-haiku','112bSsxQh','8lhLtYT','26lXwOCd','3167109fYzTMd','295206hKvSTz','2923020zBlYHI','61045drHuwZ','256328pjRmCb','toLowerCase','19633930aEVjMQ','4309300fHCuhx'];a55_0x2100=function(){return _0x862aca;};return a55_0x2100();}export function resolveModelAlias(_0x4d8d49){const _0x4207f1=a55_0x11f5fc;return MODEL_ALIASES[_0x4d8d49[_0x4207f1(0xee)]()]||_0x4d8d49;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a55_0x159b4b=a55_0x11b3;(function(_0x8f0f8a,_0x8c8107){const _0x5ccecb=a55_0x11b3,_0x16f38b=_0x8f0f8a();while(!![]){try{const _0x2707ba=parseInt(_0x5ccecb(0xea))/0x1+-parseInt(_0x5ccecb(0xe6))/0x2*(-parseInt(_0x5ccecb(0xe7))/0x3)+-parseInt(_0x5ccecb(0xe0))/0x4*(-parseInt(_0x5ccecb(0xe8))/0x5)+parseInt(_0x5ccecb(0xe9))/0x6+parseInt(_0x5ccecb(0xe5))/0x7+parseInt(_0x5ccecb(0xe1))/0x8+-parseInt(_0x5ccecb(0xe4))/0x9;if(_0x2707ba===_0x8c8107)break;else _0x16f38b['push'](_0x16f38b['shift']());}catch(_0x4a6194){_0x16f38b['push'](_0x16f38b['shift']());}}}(a55_0xc152,0x3d8f8));function a55_0xc152(){const _0x13ab48=['22ydpwSg','100923OuTaKg','1563585Cpkfiq','1274586uxgfWy','308095gqxsfW','4TbKbPU','3083600KLMwXy','toLowerCase','claude-4.5-haiku','13697712LosXYH','1297632ZkCmZu'];a55_0xc152=function(){return _0x13ab48;};return a55_0xc152();}const MODEL_ALIASES={'haiku':a55_0x159b4b(0xe3),'sonnet':'claude-4.5-sonnet'};function a55_0x11b3(_0x5e055f,_0x46707b){const _0xc1523c=a55_0xc152();return a55_0x11b3=function(_0x11b382,_0x41dc8e){_0x11b382=_0x11b382-0xe0;let _0x1259e9=_0xc1523c[_0x11b382];return _0x1259e9;},a55_0x11b3(_0x5e055f,_0x46707b);}export function resolveModelAlias(_0x1d041c){const _0x3b9b98=a55_0x159b4b;return MODEL_ALIASES[_0x1d041c[_0x3b9b98(0xe2)]()]||_0x1d041c;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- function a56_0x3ca6(_0x33556e,_0x584593){const _0x3dc242=a56_0x3dc2();return a56_0x3ca6=function(_0x3ca6d3,_0x2c7fdd){_0x3ca6d3=_0x3ca6d3-0xd2;let _0x3a1dd6=_0x3dc242[_0x3ca6d3];return _0x3a1dd6;},a56_0x3ca6(_0x33556e,_0x584593);}(function(_0x49dd6d,_0xfd4eec){const _0x183a42=a56_0x3ca6,_0x34d4ab=_0x49dd6d();while(!![]){try{const _0x4daab5=parseInt(_0x183a42(0xdb))/0x1+-parseInt(_0x183a42(0xd3))/0x2+parseInt(_0x183a42(0xd7))/0x3*(-parseInt(_0x183a42(0xe0))/0x4)+-parseInt(_0x183a42(0xd4))/0x5*(-parseInt(_0x183a42(0xdf))/0x6)+-parseInt(_0x183a42(0xd6))/0x7+-parseInt(_0x183a42(0xe2))/0x8*(-parseInt(_0x183a42(0xd2))/0x9)+parseInt(_0x183a42(0xd9))/0xa*(parseInt(_0x183a42(0xdd))/0xb);if(_0x4daab5===_0xfd4eec)break;else _0x34d4ab['push'](_0x34d4ab['shift']());}catch(_0xd83f91){_0x34d4ab['push'](_0x34d4ab['shift']());}}}(a56_0x3dc2,0x6507e));export function validateLimitOption(_0x18a062){const _0x2402bd=a56_0x3ca6;if(!Number[_0x2402bd(0xda)](_0x18a062))return{'isValid':![],'error':_0x2402bd(0xd5)+_0x18a062+_0x2402bd(0xd8)};if(_0x18a062<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x18a062+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x18a062};}function a56_0x3dc2(){const _0x1dc77c=['.\x20Must\x20be\x20a\x20number.','7576BHsVGq','1467YVNQGr','727082mDFmkQ','18985VoOJNH','Invalid\x20limit\x20value:\x20','5294772wnZxFl','27coqEEV','.\x20Must\x20be\x20an\x20integer.','105670bToIZy','isInteger','806740bYIkbj','number','572CEagZh','Invalid\x20timeout\x20value:\x20','924KfciaC','249584rqLlNc'];a56_0x3dc2=function(){return _0x1dc77c;};return a56_0x3dc2();}export function validateTimeoutOption(_0x2b357f,_0x4f6f7a=0x1e){const _0x4b5354=a56_0x3ca6;if(_0x2b357f===undefined)return{'isValid':!![],'value':_0x4f6f7a};const _0x323a77=typeof _0x2b357f===_0x4b5354(0xdc)?_0x2b357f:parseFloat(_0x2b357f);if(isNaN(_0x323a77))return{'isValid':![],'error':_0x4b5354(0xde)+_0x2b357f+_0x4b5354(0xe1)};if(_0x323a77<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x323a77+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x323a77};}
1
+ (function(_0x1c310d,_0x83f2f2){const _0x4a991f=a56_0x7851,_0x3c90aa=_0x1c310d();while(!![]){try{const _0x4454f2=-parseInt(_0x4a991f(0x1d1))/0x1*(parseInt(_0x4a991f(0x1cd))/0x2)+parseInt(_0x4a991f(0x1c1))/0x3*(parseInt(_0x4a991f(0x1d0))/0x4)+-parseInt(_0x4a991f(0x1c3))/0x5+-parseInt(_0x4a991f(0x1c8))/0x6*(-parseInt(_0x4a991f(0x1c7))/0x7)+parseInt(_0x4a991f(0x1ce))/0x8*(parseInt(_0x4a991f(0x1c2))/0x9)+-parseInt(_0x4a991f(0x1cb))/0xa*(parseInt(_0x4a991f(0x1c4))/0xb)+parseInt(_0x4a991f(0x1c6))/0xc*(-parseInt(_0x4a991f(0x1c5))/0xd);if(_0x4454f2===_0x83f2f2)break;else _0x3c90aa['push'](_0x3c90aa['shift']());}catch(_0x135af6){_0x3c90aa['push'](_0x3c90aa['shift']());}}}(a56_0xb6d1,0xb4f3d));function a56_0x7851(_0xa6603a,_0x46891d){const _0xb6d11f=a56_0xb6d1();return a56_0x7851=function(_0x78511c,_0x24c3ad){_0x78511c=_0x78511c-0x1c1;let _0x3fa8be=_0xb6d11f[_0x78511c];return _0x3fa8be;},a56_0x7851(_0xa6603a,_0x46891d);}export function validateLimitOption(_0x606f9e){const _0x14647b=a56_0x7851;if(!Number['isInteger'](_0x606f9e))return{'isValid':![],'error':_0x14647b(0x1ca)+_0x606f9e+'.\x20Must\x20be\x20an\x20integer.'};if(_0x606f9e<=0x0)return{'isValid':![],'error':_0x14647b(0x1ca)+_0x606f9e+_0x14647b(0x1cf)};return{'isValid':!![],'value':_0x606f9e};}function a56_0xb6d1(){const _0x1d6782=['1628235SbAczL','18oPhFxv','.\x20Must\x20be\x20a\x20number.','Invalid\x20limit\x20value:\x20','13862550FbqgFk','Invalid\x20timeout\x20value:\x20','92014WsOxqF','8SSfipJ','.\x20Must\x20be\x20a\x20positive\x20integer.','1716PUQqvX','7kXPSXs','4401TfYDJh','11763963sDFVKj','223805BTRJtd','11wxqbcy','13hZynLa','1680228pdxsLl'];a56_0xb6d1=function(){return _0x1d6782;};return a56_0xb6d1();}export function validateTimeoutOption(_0x126a93,_0x25cf31=0x1e){const _0x529fab=a56_0x7851;if(_0x126a93===undefined)return{'isValid':!![],'value':_0x25cf31};const _0x135029=typeof _0x126a93==='number'?_0x126a93:parseFloat(_0x126a93);if(isNaN(_0x135029))return{'isValid':![],'error':_0x529fab(0x1cc)+_0x126a93+_0x529fab(0x1c9)};if(_0x135029<=0x0)return{'isValid':![],'error':_0x529fab(0x1cc)+_0x135029+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x135029};}
@@ -1 +1 @@
1
- (function(_0x37ab28,_0x4fcbd3){var _0x5979cc=a57_0x43e0,_0x1d6488=_0x37ab28();while(!![]){try{var _0x51e6d3=-parseInt(_0x5979cc(0x1ef))/0x1+-parseInt(_0x5979cc(0x1ed))/0x2+parseInt(_0x5979cc(0x1e9))/0x3*(-parseInt(_0x5979cc(0x1e7))/0x4)+parseInt(_0x5979cc(0x1e5))/0x5+parseInt(_0x5979cc(0x1e6))/0x6*(parseInt(_0x5979cc(0x1ec))/0x7)+parseInt(_0x5979cc(0x1e8))/0x8+parseInt(_0x5979cc(0x1eb))/0x9;if(_0x51e6d3===_0x4fcbd3)break;else _0x1d6488['push'](_0x1d6488['shift']());}catch(_0x311eef){_0x1d6488['push'](_0x1d6488['shift']());}}}(a57_0x5efa,0xd7967));export function getPPID(){var _0x511cd5=a57_0x43e0;return process[_0x511cd5(0x1ea)];}export function isProcessRunning(_0x4939d7){var _0x285922=a57_0x43e0;try{return process[_0x285922(0x1ee)](_0x4939d7,0x0),!![];}catch{return![];}}function a57_0x43e0(_0x10e6c3,_0x5ad347){var _0x5efa95=a57_0x5efa();return a57_0x43e0=function(_0x43e0c9,_0x73e389){_0x43e0c9=_0x43e0c9-0x1e5;var _0x1d12ef=_0x5efa95[_0x43e0c9];return _0x1d12ef;},a57_0x43e0(_0x10e6c3,_0x5ad347);}function a57_0x5efa(){var _0x51b53a=['kill','1562924OeweSS','2320755UaCCRj','3143388XUxqGc','8zCsMES','2306600RZjxle','1804812kGUcBE','ppid','30642435GwaQgm','7aNDNNZ','2063820CYCHsO'];a57_0x5efa=function(){return _0x51b53a;};return a57_0x5efa();}
1
+ function a57_0x280b(){var _0x4f8ccc=['7612LbMVeF','kill','137796eokLks','2429523DePLeW','ppid','778425gGbwbj','301554PPuxRh','329TlylNb','40557sbIzWW','8320USEmDe','6CiVXnR','1095BoLJDM','8IQvjSa'];a57_0x280b=function(){return _0x4f8ccc;};return a57_0x280b();}function a57_0x5d8d(_0x5d6e5,_0x2a624f){var _0x280b9a=a57_0x280b();return a57_0x5d8d=function(_0x5d8da7,_0x5cd4ab){_0x5d8da7=_0x5d8da7-0xe0;var _0x55406c=_0x280b9a[_0x5d8da7];return _0x55406c;},a57_0x5d8d(_0x5d6e5,_0x2a624f);}(function(_0x3da64c,_0x49d36c){var _0x238ff1=a57_0x5d8d,_0x44d68a=_0x3da64c();while(!![]){try{var _0x332836=-parseInt(_0x238ff1(0xe2))/0x1*(parseInt(_0x238ff1(0xeb))/0x2)+-parseInt(_0x238ff1(0xea))/0x3+-parseInt(_0x238ff1(0xe5))/0x4*(-parseInt(_0x238ff1(0xe3))/0x5)+parseInt(_0x238ff1(0xe7))/0x6*(parseInt(_0x238ff1(0xec))/0x7)+-parseInt(_0x238ff1(0xe4))/0x8*(-parseInt(_0x238ff1(0xe8))/0x9)+-parseInt(_0x238ff1(0xe1))/0xa+-parseInt(_0x238ff1(0xe0))/0xb;if(_0x332836===_0x49d36c)break;else _0x44d68a['push'](_0x44d68a['shift']());}catch(_0x318f1c){_0x44d68a['push'](_0x44d68a['shift']());}}}(a57_0x280b,0x91dca));export function getPPID(){var _0x2fc782=a57_0x5d8d;return process[_0x2fc782(0xe9)];}export function isProcessRunning(_0x5eaa22){var _0x11ecfd=a57_0x5d8d;try{return process[_0x11ecfd(0xe6)](_0x5eaa22,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a58_0x1865(){const _0x24ada7=['indexOf','38031niFSMv','26OXNvbq','Invalid\x20segment\x20reference\x20format:\x20','substring','2723390YUuqbs','125539uEZzvY','57486ceKsSG','.\x20Child\x20name\x20cannot\x20be\x20empty','3479370upMtGg','.\x20Parent\x20name\x20cannot\x20be\x20empty','3815680nRpecE','19660833juQDPT','784oyXJgn'];a58_0x1865=function(){return _0x24ada7;};return a58_0x1865();}function a58_0x5360(_0x3bab24,_0xffee03){const _0x1865ab=a58_0x1865();return a58_0x5360=function(_0x5360ad,_0x13e87c){_0x5360ad=_0x5360ad-0xb3;let _0x5973d3=_0x1865ab[_0x5360ad];return _0x5973d3;},a58_0x5360(_0x3bab24,_0xffee03);}(function(_0x4a90f9,_0x1c7635){const _0x3c2324=a58_0x5360,_0x5c0167=_0x4a90f9();while(!![]){try{const _0x27976e=-parseInt(_0x3c2324(0xb5))/0x1+-parseInt(_0x3c2324(0xbf))/0x2*(-parseInt(_0x3c2324(0xb6))/0x3)+-parseInt(_0x3c2324(0xba))/0x4+parseInt(_0x3c2324(0xb4))/0x5+-parseInt(_0x3c2324(0xb8))/0x6+parseInt(_0x3c2324(0xbe))/0x7*(-parseInt(_0x3c2324(0xbc))/0x8)+parseInt(_0x3c2324(0xbb))/0x9;if(_0x27976e===_0x1c7635)break;else _0x5c0167['push'](_0x5c0167['shift']());}catch(_0x1ab046){_0x5c0167['push'](_0x5c0167['shift']());}}}(a58_0x1865,0xc0065));export function parseSegmentRef(_0x322ed6){const _0x32ae7f=a58_0x5360,_0x2b0a39=_0x322ed6[_0x32ae7f(0xbd)]('/');if(_0x2b0a39===-0x1)return{'parentId':_0x322ed6};if(_0x2b0a39===0x0)throw new Error(_0x32ae7f(0xc0)+_0x322ed6+_0x32ae7f(0xb9));const _0x1bd103=_0x322ed6[_0x32ae7f(0xb3)](0x0,_0x2b0a39),_0x4f2428=_0x322ed6['substring'](_0x2b0a39+0x1);if(_0x4f2428==='')throw new Error(_0x32ae7f(0xc0)+_0x322ed6+_0x32ae7f(0xb7));return{'parentId':_0x1bd103,'childId':_0x4f2428};}
1
+ function a58_0x4565(_0x5af9ed,_0x3211f4){const _0x1fd33b=a58_0x1fd3();return a58_0x4565=function(_0x456564,_0x1848fa){_0x456564=_0x456564-0xf6;let _0x2d4dd7=_0x1fd33b[_0x456564];return _0x2d4dd7;},a58_0x4565(_0x5af9ed,_0x3211f4);}(function(_0x4fe5d2,_0x294dfc){const _0x49f719=a58_0x4565,_0x430165=_0x4fe5d2();while(!![]){try{const _0x1da186=-parseInt(_0x49f719(0xf8))/0x1+-parseInt(_0x49f719(0xfb))/0x2*(parseInt(_0x49f719(0xf7))/0x3)+-parseInt(_0x49f719(0x100))/0x4+-parseInt(_0x49f719(0xfa))/0x5*(parseInt(_0x49f719(0xfe))/0x6)+parseInt(_0x49f719(0xfd))/0x7+parseInt(_0x49f719(0xff))/0x8+-parseInt(_0x49f719(0x103))/0x9*(-parseInt(_0x49f719(0x102))/0xa);if(_0x1da186===_0x294dfc)break;else _0x430165['push'](_0x430165['shift']());}catch(_0x3612f2){_0x430165['push'](_0x430165['shift']());}}}(a58_0x1fd3,0x9de74));function a58_0x1fd3(){const _0x1011f7=['366LwlXGW','indexOf','2915318vnFcXj','23862MgztAc','2575264Hcdrrl','3638824UEkjIv','substring','30GUypHX','9761571QZCggq','Invalid\x20segment\x20reference\x20format:\x20','9264fdTark','625856fuEvOh','.\x20Parent\x20name\x20cannot\x20be\x20empty','1565ESQXBc'];a58_0x1fd3=function(){return _0x1011f7;};return a58_0x1fd3();}export function parseSegmentRef(_0x2ffcfd){const _0x538201=a58_0x4565,_0xcde3d1=_0x2ffcfd[_0x538201(0xfc)]('/');if(_0xcde3d1===-0x1)return{'parentId':_0x2ffcfd};if(_0xcde3d1===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2ffcfd+_0x538201(0xf9));const _0x424451=_0x2ffcfd[_0x538201(0x101)](0x0,_0xcde3d1),_0x595477=_0x2ffcfd[_0x538201(0x101)](_0xcde3d1+0x1);if(_0x595477==='')throw new Error(_0x538201(0xf6)+_0x2ffcfd+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x424451,'childId':_0x595477};}
@@ -1 +1 @@
1
- (function(_0x3df7d4,_0x420b1f){const _0x288914=a59_0x3c82,_0x4c2183=_0x3df7d4();while(!![]){try{const _0x78bcd0=parseInt(_0x288914(0xf2))/0x1+parseInt(_0x288914(0xf5))/0x2+-parseInt(_0x288914(0xe9))/0x3+-parseInt(_0x288914(0xe8))/0x4+parseInt(_0x288914(0xf6))/0x5+parseInt(_0x288914(0xf0))/0x6*(-parseInt(_0x288914(0xf9))/0x7)+parseInt(_0x288914(0xe7))/0x8*(parseInt(_0x288914(0xfe))/0x9);if(_0x78bcd0===_0x420b1f)break;else _0x4c2183['push'](_0x4c2183['shift']());}catch(_0x22f190){_0x4c2183['push'](_0x4c2183['shift']());}}}(a59_0x58da,0x5fd56));import a59_0x50aa43 from'ora';function a59_0x3c82(_0x555c2e,_0x32144c){const _0x58da5f=a59_0x58da();return a59_0x3c82=function(_0x3c8251,_0x1713ba){_0x3c8251=_0x3c8251-0xe6;let _0x4d66f6=_0x58da5f[_0x3c8251];return _0x4d66f6;},a59_0x3c82(_0x555c2e,_0x32144c);}export function createCommandSpinner(_0x2c3fed,_0x2aaae9={}){const _0x309368=a59_0x3c82,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x2aaae9;return a59_0x50aa43({'text':_0x2c3fed,'color':_0x309368(0xfb),'isEnabled':forceEnabled||process[_0x309368(0xeb)][_0x309368(0xf7)]&&!verbose});}function a59_0x58da(){const _0x44e26e=['now','550056JYbtOu','2643460yZjBoD','289617RykrRg','jobId','stdout','intervalFactory','clock','toFixed','text','6qkpRhm','\x20[Job\x20ID:\x20','45458eTmKKd','extra','replace','1207234DXElWj','3220725KsdjsA','isTTY','phase','3409469IeEikL','stop','cyan','start','isSpinning','45AgRlUl'];a59_0x58da=function(){return _0x44e26e;};return a59_0x58da();}export async function withSpinner(_0xee77dc,_0x3693b9,_0x421a39={}){const _0x5f1664=a59_0x3c82,_0x56819c=_0x421a39[_0x5f1664(0xed)]??(()=>Date[_0x5f1664(0xe6)]()),_0x5515d6=createCommandSpinner(_0xee77dc,_0x421a39);_0x5515d6['start']();const _0x3f04a5=_0x56819c();try{const _0x27f32b=await _0x3693b9(),_0x14094f=_0x56819c()-_0x3f04a5;return _0x5515d6[_0x5f1664(0xfa)](),{'data':_0x27f32b,'elapsedMs':_0x14094f};}catch(_0x50c3d3){_0x5515d6[_0x5f1664(0xfa)]();throw _0x50c3d3;}}export async function withQuerySpinner(_0x1722d3,_0x184985,_0x380f1e={}){const _0x55e926=a59_0x3c82,_0x1e4256=_0x380f1e[_0x55e926(0xed)]??(()=>Date[_0x55e926(0xe6)]()),_0x4523da=_0x380f1e[_0x55e926(0xec)]??setInterval,_0x5740c3=createCommandSpinner(_0x1722d3,_0x380f1e);_0x5740c3[_0x55e926(0xfc)]();const _0x296bd9=_0x1e4256(),_0x6acf91=_0x1722d3[_0x55e926(0xf4)]('...',''),_0x33af8f={},_0x33ccbb=()=>{const _0x4c4a01=_0x55e926;if(!_0x5740c3[_0x4c4a01(0xfd)])return;const _0x77247f=((_0x1e4256()-_0x296bd9)/0x3e8)[_0x4c4a01(0xee)](0x1),_0x31fcfd=_0x33af8f[_0x4c4a01(0xf8)]??_0x6acf91,_0x54341e=_0x33af8f[_0x4c4a01(0xea)]?_0x4c4a01(0xf1)+_0x33af8f[_0x4c4a01(0xea)]+']':'',_0x65d045=_0x33af8f[_0x4c4a01(0xf3)]?'\x20'+_0x33af8f[_0x4c4a01(0xf3)]:'';_0x5740c3[_0x4c4a01(0xef)]=_0x31fcfd+'\x20('+_0x77247f+'s)'+_0x65d045+_0x54341e;},_0x195da1=_0x4523da(()=>{_0x33ccbb();},0x3e8),_0x32fd15={'setPhase':_0x3adffa=>{const _0x441824=_0x55e926;_0x33af8f[_0x441824(0xf8)]=_0x3adffa,_0x33ccbb();},'setJobId':_0x4658aa=>{const _0x39aa96=_0x55e926;_0x33af8f[_0x39aa96(0xea)]=_0x4658aa,_0x33ccbb();},'setExtra':_0x4b3931=>{_0x33af8f['extra']=_0x4b3931,_0x33ccbb();}};_0x33ccbb();try{const _0x4b5bf1=await _0x184985(_0x32fd15),_0x2015de=_0x1e4256()-_0x296bd9;return{'data':_0x4b5bf1,'elapsedMs':_0x2015de};}finally{clearInterval(_0x195da1),_0x5740c3[_0x55e926(0xfa)]();}}export function formatElapsed(_0x4414d6){const _0x11d34f=a59_0x3c82;return(_0x4414d6/0x3e8)[_0x11d34f(0xee)](0x2)+'s';}
1
+ (function(_0x2a431b,_0x59b3da){const _0x1d926e=a59_0x1b56,_0x4fd608=_0x2a431b();while(!![]){try{const _0x24334d=-parseInt(_0x1d926e(0x1a5))/0x1+-parseInt(_0x1d926e(0x194))/0x2+-parseInt(_0x1d926e(0x192))/0x3*(-parseInt(_0x1d926e(0x19f))/0x4)+parseInt(_0x1d926e(0x199))/0x5+-parseInt(_0x1d926e(0x1a0))/0x6*(parseInt(_0x1d926e(0x1a6))/0x7)+parseInt(_0x1d926e(0x197))/0x8*(-parseInt(_0x1d926e(0x1a2))/0x9)+parseInt(_0x1d926e(0x193))/0xa*(parseInt(_0x1d926e(0x18c))/0xb);if(_0x24334d===_0x59b3da)break;else _0x4fd608['push'](_0x4fd608['shift']());}catch(_0x3d0346){_0x4fd608['push'](_0x4fd608['shift']());}}}(a59_0x5a4b,0xa90a2));function a59_0x1b56(_0x2864a8,_0xdb57cc){const _0x5a4b00=a59_0x5a4b();return a59_0x1b56=function(_0x1b5644,_0x5e3cab){_0x1b5644=_0x1b5644-0x18b;let _0x597a18=_0x5a4b00[_0x1b5644];return _0x597a18;},a59_0x1b56(_0x2864a8,_0xdb57cc);}import a59_0x5116f1 from'ora';export function createCommandSpinner(_0x45f07b,_0x3affbf={}){const _0x40c494=a59_0x1b56,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3affbf;return a59_0x5116f1({'text':_0x45f07b,'color':_0x40c494(0x18e),'isEnabled':forceEnabled||process[_0x40c494(0x190)][_0x40c494(0x18f)]&&!verbose});}export async function withSpinner(_0x4c23c1,_0x11eb29,_0x392b2e={}){const _0x179de5=a59_0x1b56,_0x4a0176=_0x392b2e[_0x179de5(0x19e)]??(()=>Date['now']()),_0x2420ad=createCommandSpinner(_0x4c23c1,_0x392b2e);_0x2420ad[_0x179de5(0x195)]();const _0x5922eb=_0x4a0176();try{const _0x1e4344=await _0x11eb29(),_0x55f468=_0x4a0176()-_0x5922eb;return _0x2420ad[_0x179de5(0x1a4)](),{'data':_0x1e4344,'elapsedMs':_0x55f468};}catch(_0x2ee475){_0x2420ad[_0x179de5(0x1a4)]();throw _0x2ee475;}}function a59_0x5a4b(){const _0x5352d0=['jobId','cyan','isTTY','stdout','\x20[Job\x20ID:\x20','3MLDMCa','190qBCSzh','1153856KXfuLm','start','intervalFactory','4461432AGaVgs','now','5138450poptuA','extra','text','phase','...','clock','419412uXwKDx','237696eVoxpY','toFixed','9Wglway','isSpinning','stop','674770NGUNTU','105rpFcHQ','replace','1136740KPGIjD'];a59_0x5a4b=function(){return _0x5352d0;};return a59_0x5a4b();}export async function withQuerySpinner(_0x3c8c3d,_0x88e47c,_0x50d8e9={}){const _0x4557d9=a59_0x1b56,_0x526dd7=_0x50d8e9[_0x4557d9(0x19e)]??(()=>Date[_0x4557d9(0x198)]()),_0x42accb=_0x50d8e9[_0x4557d9(0x196)]??setInterval,_0x831097=createCommandSpinner(_0x3c8c3d,_0x50d8e9);_0x831097[_0x4557d9(0x195)]();const _0x33af03=_0x526dd7(),_0x139cb6=_0x3c8c3d[_0x4557d9(0x18b)](_0x4557d9(0x19d),''),_0x5e5a85={},_0x2954cc=()=>{const _0x30c8d5=_0x4557d9;if(!_0x831097[_0x30c8d5(0x1a3)])return;const _0x283973=((_0x526dd7()-_0x33af03)/0x3e8)[_0x30c8d5(0x1a1)](0x1),_0x3f1297=_0x5e5a85[_0x30c8d5(0x19c)]??_0x139cb6,_0x1635ea=_0x5e5a85[_0x30c8d5(0x18d)]?_0x30c8d5(0x191)+_0x5e5a85[_0x30c8d5(0x18d)]+']':'',_0x5e8b62=_0x5e5a85['extra']?'\x20'+_0x5e5a85['extra']:'';_0x831097[_0x30c8d5(0x19b)]=_0x3f1297+'\x20('+_0x283973+'s)'+_0x5e8b62+_0x1635ea;},_0x37cab1=_0x42accb(()=>{_0x2954cc();},0x3e8),_0x1473c7={'setPhase':_0xcce038=>{_0x5e5a85['phase']=_0xcce038,_0x2954cc();},'setJobId':_0x328d0e=>{const _0x1682af=_0x4557d9;_0x5e5a85[_0x1682af(0x18d)]=_0x328d0e,_0x2954cc();},'setExtra':_0xe7c03b=>{const _0x2d661e=_0x4557d9;_0x5e5a85[_0x2d661e(0x19a)]=_0xe7c03b,_0x2954cc();}};_0x2954cc();try{const _0x53aa8b=await _0x88e47c(_0x1473c7),_0x3926b9=_0x526dd7()-_0x33af03;return{'data':_0x53aa8b,'elapsedMs':_0x3926b9};}finally{clearInterval(_0x37cab1),_0x831097[_0x4557d9(0x1a4)]();}}export function formatElapsed(_0xbcaaf2){const _0xe4b4eb=a59_0x1b56;return(_0xbcaaf2/0x3e8)[_0xe4b4eb(0x1a1)](0x2)+'s';}
@@ -1 +1 @@
1
- function a60_0x38b3(_0x4a3b61,_0x45ae35){const _0x1fc520=a60_0x1fc5();return a60_0x38b3=function(_0x38b377,_0x5bbcef){_0x38b377=_0x38b377-0xa0;let _0x5c5d66=_0x1fc520[_0x38b377];return _0x5c5d66;},a60_0x38b3(_0x4a3b61,_0x45ae35);}(function(_0x53d056,_0x1c257b){const _0x30076f=a60_0x38b3,_0x44a122=_0x53d056();while(!![]){try{const _0x85e0d4=-parseInt(_0x30076f(0xa0))/0x1+-parseInt(_0x30076f(0xa4))/0x2*(-parseInt(_0x30076f(0xb0))/0x3)+-parseInt(_0x30076f(0xa3))/0x4+-parseInt(_0x30076f(0xaa))/0x5*(-parseInt(_0x30076f(0xa2))/0x6)+parseInt(_0x30076f(0xb8))/0x7*(parseInt(_0x30076f(0xa7))/0x8)+-parseInt(_0x30076f(0xb7))/0x9*(-parseInt(_0x30076f(0xaf))/0xa)+-parseInt(_0x30076f(0xa9))/0xb;if(_0x85e0d4===_0x1c257b)break;else _0x44a122['push'](_0x44a122['shift']());}catch(_0x4d6472){_0x44a122['push'](_0x44a122['shift']());}}}(a60_0x1fc5,0x33953));import{readFileSync}from'fs';export function stripSqlComments(_0x1371ae){const _0x217164=a60_0x38b3;let _0x167ef0=_0x1371ae[_0x217164(0xad)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x167ef0=_0x167ef0[_0x217164(0xad)](/--.*$/gm,''),_0x167ef0[_0x217164(0xa6)]();}function isEscaped(_0x5b5944,_0x14540f){let _0x6aac4c=0x0;for(let _0x2e48e1=_0x14540f-0x1;_0x2e48e1>=0x0&&_0x5b5944[_0x2e48e1]==='\x5c';_0x2e48e1--){_0x6aac4c++;}return _0x6aac4c%0x2===0x1;}export function splitSqlStatements(_0x23aceb){const _0x36ce3d=a60_0x38b3,_0x4bcff3=stripSqlComments(_0x23aceb);if(!_0x4bcff3)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x1829a8=[];let _0x5514b5='',_0x42cc31=![],_0x4228b6=![],_0x23462f=![];for(let _0x230ba2=0x0;_0x230ba2<_0x23aceb[_0x36ce3d(0xac)];_0x230ba2++){const _0x36e909=_0x23aceb[_0x230ba2];if(_0x36e909==='\x27'&&!isEscaped(_0x23aceb,_0x230ba2)&&!_0x4228b6&&!_0x23462f)_0x42cc31=!_0x42cc31;else{if(_0x36e909==='\x22'&&!isEscaped(_0x23aceb,_0x230ba2)&&!_0x42cc31&&!_0x23462f)_0x4228b6=!_0x4228b6;else _0x36e909==='`'&&!isEscaped(_0x23aceb,_0x230ba2)&&!_0x42cc31&&!_0x4228b6&&(_0x23462f=!_0x23462f);}if(_0x36e909===';'&&!_0x42cc31&&!_0x4228b6&&!_0x23462f){const _0x2a1ed7=_0x5514b5[_0x36ce3d(0xa6)]();_0x2a1ed7&&_0x1829a8[_0x36ce3d(0xb4)](_0x2a1ed7),_0x5514b5='';}else _0x5514b5+=_0x36e909;}const _0x36dd55=_0x5514b5[_0x36ce3d(0xa6)]();_0x36dd55&&_0x1829a8[_0x36ce3d(0xb4)](_0x36dd55);const _0x2c8398=_0x1829a8[_0x36ce3d(0xbb)](_0x5c6e8f=>_0x5c6e8f[_0x36ce3d(0xa6)]())[_0x36ce3d(0xb9)](_0x446e76=>{const _0x5d2369=_0x36ce3d,_0x4fe8c2=stripSqlComments(_0x446e76);return _0x4fe8c2[_0x5d2369(0xac)]>0x0;});if(_0x2c8398['length']===0x0)throw new Error(_0x36ce3d(0xa1));return _0x2c8398;}export function readFileContent(_0x2bac6b){const _0x202d0b=a60_0x38b3;try{return readFileSync(_0x2bac6b,_0x202d0b(0xb1));}catch(_0xbe338e){const _0x29fa1e=_0xbe338e[_0x202d0b(0xae)];if(_0x29fa1e===_0x202d0b(0xb6))throw new Error(_0x202d0b(0xb5)+_0x2bac6b+_0x202d0b(0xb2));else{if(_0x29fa1e===_0x202d0b(0xba))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x2bac6b+'\x27');else throw new Error(_0x202d0b(0xab)+_0x2bac6b+_0x202d0b(0xb3)+_0xbe338e[_0x202d0b(0xa8)]);}}}function a60_0x1fc5(){const _0x7d0002=['EACCES','map','328600IKZGKk','Content\x20contains\x20no\x20SQL\x20statements','2694bZrXuC','1208420DxHiVv','807914SengkQ','toLowerCase','trim','76136WDwCym','message','2998754ScXiVC','115CDIwLa','Error\x20reading\x20file\x20\x27','length','replace','code','20halgHw','3czbWJe','utf-8','\x27\x20not\x20found','\x27:\x20','push','File\x20\x27','ENOENT','1609677JNFkfW','252NSrWly','filter'];a60_0x1fc5=function(){return _0x7d0002;};return a60_0x1fc5();}export function readSqlStatementsFromFile(_0x3d2939){const _0x3de367=a60_0x38b3,_0x1dfeaf=readFileContent(_0x3d2939);try{return splitSqlStatements(_0x1dfeaf);}catch(_0x4067f0){throw new Error('File\x20\x27'+_0x3d2939+'\x27\x20'+_0x4067f0[_0x3de367(0xa8)][_0x3de367(0xa5)]());}}
1
+ (function(_0x469505,_0x10a05f){const _0x126a2c=a60_0xecd0,_0x5023f5=_0x469505();while(!![]){try{const _0x9cf169=parseInt(_0x126a2c(0x126))/0x1*(-parseInt(_0x126a2c(0x12e))/0x2)+-parseInt(_0x126a2c(0x131))/0x3+-parseInt(_0x126a2c(0x11d))/0x4+parseInt(_0x126a2c(0x122))/0x5+parseInt(_0x126a2c(0x127))/0x6+parseInt(_0x126a2c(0x123))/0x7+parseInt(_0x126a2c(0x130))/0x8*(parseInt(_0x126a2c(0x129))/0x9);if(_0x9cf169===_0x10a05f)break;else _0x5023f5['push'](_0x5023f5['shift']());}catch(_0x106914){_0x5023f5['push'](_0x5023f5['shift']());}}}(a60_0x19c6,0x5f15e));import{readFileSync}from'fs';export function stripSqlComments(_0x34a677){const _0x4930c3=a60_0xecd0;let _0x907b27=_0x34a677[_0x4930c3(0x12b)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x907b27=_0x907b27[_0x4930c3(0x12b)](/--.*$/gm,''),_0x907b27['trim']();}function a60_0xecd0(_0x5cebe5,_0x59fd10){const _0x19c61b=a60_0x19c6();return a60_0xecd0=function(_0xecd082,_0x3210d9){_0xecd082=_0xecd082-0x11d;let _0x5f3d57=_0x19c61b[_0xecd082];return _0x5f3d57;},a60_0xecd0(_0x5cebe5,_0x59fd10);}function a60_0x19c6(){const _0x43805a=['map','filter','EACCES','Error\x20reading\x20file\x20\x27','804535TGOKbU','2658271ElnQqe','ENOENT','length','1OFmpFj','2883774NfgyVx','trim','3290499EJdMHO','code','replace','Content\x20contains\x20no\x20SQL\x20statements','toLowerCase','52124irWRpp','message','8VUFrfA','820986YrBQxJ','push','File\x20\x27','2790824PwPEiE'];a60_0x19c6=function(){return _0x43805a;};return a60_0x19c6();}function isEscaped(_0x103404,_0x1e2e09){let _0xb5c536=0x0;for(let _0x435fe9=_0x1e2e09-0x1;_0x435fe9>=0x0&&_0x103404[_0x435fe9]==='\x5c';_0x435fe9--){_0xb5c536++;}return _0xb5c536%0x2===0x1;}export function splitSqlStatements(_0x30aaea){const _0x3b4394=a60_0xecd0,_0x1f094f=stripSqlComments(_0x30aaea);if(!_0x1f094f)throw new Error(_0x3b4394(0x12c));const _0x364596=[];let _0x31e3e2='',_0x4c83b7=![],_0x1835ad=![],_0x3cdb49=![];for(let _0x5e2e5b=0x0;_0x5e2e5b<_0x30aaea[_0x3b4394(0x125)];_0x5e2e5b++){const _0x1d5681=_0x30aaea[_0x5e2e5b];if(_0x1d5681==='\x27'&&!isEscaped(_0x30aaea,_0x5e2e5b)&&!_0x1835ad&&!_0x3cdb49)_0x4c83b7=!_0x4c83b7;else{if(_0x1d5681==='\x22'&&!isEscaped(_0x30aaea,_0x5e2e5b)&&!_0x4c83b7&&!_0x3cdb49)_0x1835ad=!_0x1835ad;else _0x1d5681==='`'&&!isEscaped(_0x30aaea,_0x5e2e5b)&&!_0x4c83b7&&!_0x1835ad&&(_0x3cdb49=!_0x3cdb49);}if(_0x1d5681===';'&&!_0x4c83b7&&!_0x1835ad&&!_0x3cdb49){const _0x3bc139=_0x31e3e2[_0x3b4394(0x128)]();_0x3bc139&&_0x364596[_0x3b4394(0x132)](_0x3bc139),_0x31e3e2='';}else _0x31e3e2+=_0x1d5681;}const _0xc33c28=_0x31e3e2[_0x3b4394(0x128)]();_0xc33c28&&_0x364596[_0x3b4394(0x132)](_0xc33c28);const _0xbaf54f=_0x364596[_0x3b4394(0x11e)](_0x3e8f75=>_0x3e8f75[_0x3b4394(0x128)]())[_0x3b4394(0x11f)](_0x3ca78c=>{const _0x5e68bc=_0x3b4394,_0x5e6ac3=stripSqlComments(_0x3ca78c);return _0x5e6ac3[_0x5e68bc(0x125)]>0x0;});if(_0xbaf54f[_0x3b4394(0x125)]===0x0)throw new Error(_0x3b4394(0x12c));return _0xbaf54f;}export function readFileContent(_0x236120){const _0x29a986=a60_0xecd0;try{return readFileSync(_0x236120,'utf-8');}catch(_0x4b1f0e){const _0x463cb3=_0x4b1f0e[_0x29a986(0x12a)];if(_0x463cb3===_0x29a986(0x124))throw new Error('File\x20\x27'+_0x236120+'\x27\x20not\x20found');else{if(_0x463cb3===_0x29a986(0x120))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x236120+'\x27');else throw new Error(_0x29a986(0x121)+_0x236120+'\x27:\x20'+_0x4b1f0e[_0x29a986(0x12f)]);}}}export function readSqlStatementsFromFile(_0x395cc7){const _0x3ae8b7=a60_0xecd0,_0x3b12de=readFileContent(_0x395cc7);try{return splitSqlStatements(_0x3b12de);}catch(_0x3b9a75){throw new Error(_0x3ae8b7(0x133)+_0x395cc7+'\x27\x20'+_0x3b9a75['message'][_0x3ae8b7(0x12d)]());}}
@@ -1 +1 @@
1
- (function(_0x116566,_0x45900b){const _0x1533e2=a61_0x1b4c,_0x430dd8=_0x116566();while(!![]){try{const _0x5db1eb=parseInt(_0x1533e2(0x125))/0x1+parseInt(_0x1533e2(0x12e))/0x2*(-parseInt(_0x1533e2(0x134))/0x3)+-parseInt(_0x1533e2(0x127))/0x4+parseInt(_0x1533e2(0x122))/0x5+parseInt(_0x1533e2(0x12c))/0x6+parseInt(_0x1533e2(0x12b))/0x7*(parseInt(_0x1533e2(0x11d))/0x8)+-parseInt(_0x1533e2(0x128))/0x9*(parseInt(_0x1533e2(0x129))/0xa);if(_0x5db1eb===_0x45900b)break;else _0x430dd8['push'](_0x430dd8['shift']());}catch(_0x5bb23){_0x430dd8['push'](_0x430dd8['shift']());}}}(a61_0x1d79,0x196d5));export async function*parseSSEStream(_0x5d12d2){const _0x5bd227=a61_0x1b4c;if(!_0x5d12d2[_0x5bd227(0x12d)])throw new Error(_0x5bd227(0x132));const _0x343309=_0x5d12d2[_0x5bd227(0x12d)][_0x5bd227(0x130)](),_0x32a8bf=new TextDecoder();let _0x5957bb='',_0x25f8e7={};try{while(!![]){const {done:_0x3ed859,value:_0xac373a}=await _0x343309[_0x5bd227(0x120)]();if(_0x3ed859){_0x25f8e7[_0x5bd227(0x123)]&&(yield parseSSEData(_0x25f8e7[_0x5bd227(0x123)]));break;}_0x5957bb+=_0x32a8bf[_0x5bd227(0x124)](_0xac373a,{'stream':!![]});const _0x55cee4=_0x5957bb[_0x5bd227(0x121)]('\x0a');_0x5957bb=_0x55cee4[_0x5bd227(0x11c)]()||'';for(const _0x129bd9 of _0x55cee4){if(_0x129bd9[_0x5bd227(0x131)]()===''){_0x25f8e7['data']&&(yield parseSSEData(_0x25f8e7[_0x5bd227(0x123)]),_0x25f8e7={});continue;}if(_0x129bd9['startsWith'](':'))continue;const _0x41970c=_0x129bd9[_0x5bd227(0x11f)](':');if(_0x41970c===-0x1)continue;const _0x58ee06=_0x129bd9[_0x5bd227(0x11e)](0x0,_0x41970c);let _0x24e99d=_0x129bd9[_0x5bd227(0x11e)](_0x41970c+0x1);_0x24e99d['startsWith']('\x20')&&(_0x24e99d=_0x24e99d[_0x5bd227(0x11e)](0x1));switch(_0x58ee06){case _0x5bd227(0x12a):_0x25f8e7['event']=_0x24e99d;break;case'data':_0x25f8e7[_0x5bd227(0x123)]=_0x25f8e7[_0x5bd227(0x123)]?_0x25f8e7['data']+'\x0a'+_0x24e99d:_0x24e99d;break;case'id':_0x25f8e7['id']=_0x24e99d;break;}}}}finally{_0x343309[_0x5bd227(0x133)]();}}function a61_0x1b4c(_0x9231c3,_0x2e13bb){const _0x1d798c=a61_0x1d79();return a61_0x1b4c=function(_0x1b4ccb,_0x1f49e4){_0x1b4ccb=_0x1b4ccb-0x11c;let _0x530c30=_0x1d798c[_0x1b4ccb];return _0x530c30;},a61_0x1b4c(_0x9231c3,_0x2e13bb);}function parseSSEData(_0x3b8e76){const _0x4f3e41=a61_0x1b4c;try{return JSON[_0x4f3e41(0x12f)](_0x3b8e76);}catch(_0x360c78){throw new Error(_0x4f3e41(0x126)+_0x3b8e76,{'cause':_0x360c78});}}function a61_0x1d79(){const _0x18cd6c=['339888KACFes','slice','indexOf','read','split','1012565stSDVL','data','decode','40940UreEmV','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','366128LgmMIh','483282EOVVQc','60utVKHe','event','28jPuPac','764370fdbEkU','body','2gLyvKr','parse','getReader','trim','Response\x20body\x20is\x20null','releaseLock','68769oKbrMV','pop'];a61_0x1d79=function(){return _0x18cd6c;};return a61_0x1d79();}
1
+ function a61_0x26aa(_0x2641fb,_0x461441){const _0x50b49d=a61_0x50b4();return a61_0x26aa=function(_0x26aa2a,_0x6e8d3e){_0x26aa2a=_0x26aa2a-0x16f;let _0x67d39=_0x50b49d[_0x26aa2a];return _0x67d39;},a61_0x26aa(_0x2641fb,_0x461441);}(function(_0x380389,_0x4efd93){const _0x17499a=a61_0x26aa,_0x4f07ea=_0x380389();while(!![]){try{const _0x576fb3=-parseInt(_0x17499a(0x16f))/0x1*(parseInt(_0x17499a(0x171))/0x2)+-parseInt(_0x17499a(0x173))/0x3*(-parseInt(_0x17499a(0x175))/0x4)+parseInt(_0x17499a(0x17f))/0x5*(-parseInt(_0x17499a(0x17c))/0x6)+-parseInt(_0x17499a(0x17d))/0x7*(parseInt(_0x17499a(0x184))/0x8)+parseInt(_0x17499a(0x188))/0x9*(parseInt(_0x17499a(0x182))/0xa)+-parseInt(_0x17499a(0x183))/0xb*(-parseInt(_0x17499a(0x187))/0xc)+-parseInt(_0x17499a(0x181))/0xd*(-parseInt(_0x17499a(0x180))/0xe);if(_0x576fb3===_0x4efd93)break;else _0x4f07ea['push'](_0x4f07ea['shift']());}catch(_0x42c6bc){_0x4f07ea['push'](_0x4f07ea['shift']());}}}(a61_0x50b4,0x9000c));export async function*parseSSEStream(_0x4de63b){const _0x4bf671=a61_0x26aa;if(!_0x4de63b['body'])throw new Error(_0x4bf671(0x176));const _0x263a10=_0x4de63b[_0x4bf671(0x185)][_0x4bf671(0x17e)](),_0x288a0a=new TextDecoder();let _0x1486fc='',_0x34ef03={};try{while(!![]){const {done:_0x895ee2,value:_0x92a730}=await _0x263a10[_0x4bf671(0x179)]();if(_0x895ee2){_0x34ef03['data']&&(yield parseSSEData(_0x34ef03[_0x4bf671(0x186)]));break;}_0x1486fc+=_0x288a0a[_0x4bf671(0x189)](_0x92a730,{'stream':!![]});const _0x2092d1=_0x1486fc[_0x4bf671(0x177)]('\x0a');_0x1486fc=_0x2092d1['pop']()||'';for(const _0x3ca3b9 of _0x2092d1){if(_0x3ca3b9[_0x4bf671(0x172)]()===''){_0x34ef03['data']&&(yield parseSSEData(_0x34ef03[_0x4bf671(0x186)]),_0x34ef03={});continue;}if(_0x3ca3b9['startsWith'](':'))continue;const _0x10d230=_0x3ca3b9[_0x4bf671(0x17a)](':');if(_0x10d230===-0x1)continue;const _0x10484d=_0x3ca3b9[_0x4bf671(0x170)](0x0,_0x10d230);let _0x4b9705=_0x3ca3b9[_0x4bf671(0x170)](_0x10d230+0x1);_0x4b9705['startsWith']('\x20')&&(_0x4b9705=_0x4b9705['slice'](0x1));switch(_0x10484d){case'event':_0x34ef03['event']=_0x4b9705;break;case _0x4bf671(0x186):_0x34ef03[_0x4bf671(0x186)]=_0x34ef03[_0x4bf671(0x186)]?_0x34ef03['data']+'\x0a'+_0x4b9705:_0x4b9705;break;case'id':_0x34ef03['id']=_0x4b9705;break;}}}}finally{_0x263a10[_0x4bf671(0x174)]();}}function parseSSEData(_0x2637d3){const _0x469775=a61_0x26aa;try{return JSON[_0x469775(0x178)](_0x2637d3);}catch(_0x519bfd){throw new Error(_0x469775(0x17b)+_0x2637d3,{'cause':_0x519bfd});}}function a61_0x50b4(){const _0x4d518e=['74583YXVBUm','decode','2jOrCKi','slice','1012492rgtsle','trim','1176krhwag','releaseLock','288CgaVtB','Response\x20body\x20is\x20null','split','parse','read','indexOf','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','12QZDRLd','1673kYogeU','getReader','930130Nxuulj','1940918KvYUPf','156LaAndf','520lUlQXE','77WmXOgx','33080RUIeEH','body','data','1439748INOKSM'];a61_0x50b4=function(){return _0x4d518e;};return a61_0x50b4();}
@@ -1 +1 @@
1
- function a62_0x58f5(){const _0x4839f1=['length','5758836HjpvlN','8838641wmbvem','964640xSqqCC','random','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','slice','test','30iccCUI','15104650fvXbGV','20WSGHTx','138324yQGeke','USER','USERNAME','replace','3EhFnCG','floor','env','trim','toString','repeat','padStart','substring','3560gLBffr','unknown','13905FWThaU','1133DcXezw','82024CWGDyz'];a62_0x58f5=function(){return _0x4839f1;};return a62_0x58f5();}(function(_0xe00dce,_0x40f216){const _0xccfa09=a62_0x3081,_0x549539=_0xe00dce();while(!![]){try{const _0x5a9848=-parseInt(_0xccfa09(0x6e))/0x1*(parseInt(_0xccfa09(0x79))/0x2)+parseInt(_0xccfa09(0x7e))/0x3*(-parseInt(_0xccfa09(0x70))/0x4)+-parseInt(_0xccfa09(0x72))/0x5*(-parseInt(_0xccfa09(0x77))/0x6)+-parseInt(_0xccfa09(0x71))/0x7+-parseInt(_0xccfa09(0x6a))/0x8*(-parseInt(_0xccfa09(0x6c))/0x9)+parseInt(_0xccfa09(0x78))/0xa+-parseInt(_0xccfa09(0x6d))/0xb*(-parseInt(_0xccfa09(0x7a))/0xc);if(_0x5a9848===_0x40f216)break;else _0x549539['push'](_0x549539['shift']());}catch(_0x4597f2){_0x549539['push'](_0x549539['shift']());}}}(a62_0x58f5,0xc9fa3));import a62_0x5dd38a from'string-width';function a62_0x3081(_0xb73807,_0x35db38){const _0x58f517=a62_0x58f5();return a62_0x3081=function(_0x3081d5,_0x31d076){_0x3081d5=_0x3081d5-0x69;let _0x87eaee=_0x58f517[_0x3081d5];return _0x87eaee;},a62_0x3081(_0xb73807,_0x35db38);}export function stringWidth(_0x4f9c7c){return a62_0x5dd38a(_0x4f9c7c);}export function padEnd(_0x3316b0,_0x308db7){const _0x365b16=a62_0x3081,_0x47c0e9=stringWidth(_0x3316b0);if(_0x47c0e9>=_0x308db7)return _0x3316b0;return _0x3316b0+'\x20'[_0x365b16(0x83)](_0x308db7-_0x47c0e9);}export function padStart(_0x2bf237,_0x23d473){const _0x19bc52=stringWidth(_0x2bf237);if(_0x19bc52>=_0x23d473)return _0x2bf237;return'\x20'['repeat'](_0x23d473-_0x19bc52)+_0x2bf237;}export function centerAlign(_0xcb6e70,_0x1f71c1){const _0x537188=a62_0x3081,_0x3092f1=stringWidth(_0xcb6e70);if(_0x3092f1>_0x1f71c1){if(_0x1f71c1<=0x1)return'…'[_0x537188(0x69)](0x0,_0x1f71c1);let _0x280f03=_0xcb6e70;while(stringWidth(_0x280f03+'…')>_0x1f71c1){_0x280f03=_0x280f03[_0x537188(0x75)](0x0,-0x1);}return _0x280f03+'…';}if(_0x3092f1===_0x1f71c1)return _0xcb6e70;const _0x27d9ee=_0x1f71c1-_0x3092f1,_0x53cc4d=Math[_0x537188(0x7f)](_0x27d9ee/0x2),_0x4ed1a2=_0x27d9ee-_0x53cc4d;return'\x20'[_0x537188(0x83)](_0x53cc4d)+_0xcb6e70+'\x20'[_0x537188(0x83)](_0x4ed1a2);}export function escapeStringLiteral(_0x49f6ef){const _0x47e125=a62_0x3081;if(!_0x49f6ef||_0x49f6ef[_0x47e125(0x81)]()[_0x47e125(0x6f)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x5359cf=_0x49f6ef['replace'](/'/g,'\x27\x27');return'\x27'+_0x5359cf+'\x27';}export function globToLike(_0x5d9600){const _0x579cc7=a62_0x3081;let _0x56baf5=_0x5d9600['replace'](/\\/g,'\x5c\x5c')[_0x579cc7(0x7d)](/%/g,'\x5c%')[_0x579cc7(0x7d)](/_/g,'\x5c_');return _0x56baf5=_0x56baf5[_0x579cc7(0x7d)](/\*/g,'%')[_0x579cc7(0x7d)](/\?/g,'_'),_0x56baf5;}export function buildLikePattern(_0x3699ef){const _0x445ddd=a62_0x3081;if(!_0x3699ef||_0x3699ef[_0x445ddd(0x81)]()[_0x445ddd(0x6f)]===0x0)throw new Error(_0x445ddd(0x74));const _0x124598=globToLike(_0x3699ef),_0x1d7266=_0x124598[_0x445ddd(0x7d)](/'/g,'\x27\x27');return'\x27'+_0x1d7266+'\x27';}export function matchGlobPattern(_0x2e50d1,_0x468466){const _0x12b481=a62_0x3081,_0x202290=_0x468466[_0x12b481(0x7d)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x12b481(0x7d)](/\*/g,'.*')[_0x12b481(0x7d)](/\?/g,'.'),_0x13d2c1=new RegExp('^'+_0x202290+'$');return _0x13d2c1[_0x12b481(0x76)](_0x2e50d1);}export function getSanitizedUsername(){const _0x66a7ae=a62_0x3081,_0x38c447=process[_0x66a7ae(0x80)][_0x66a7ae(0x7b)]||process['env'][_0x66a7ae(0x7c)]||_0x66a7ae(0x6b);return _0x38c447[_0x66a7ae(0x7d)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x2f859d=a62_0x3081,_0x4b7060=Math['floor'](Math[_0x2f859d(0x73)]()*0xfffff);return _0x4b7060[_0x2f859d(0x82)](0x10)[_0x2f859d(0x84)](0x5,'0');}
1
+ (function(_0x6ba05a,_0x11b35d){const _0x4aa59b=a62_0x3d98,_0x178b2f=_0x6ba05a();while(!![]){try{const _0x5b8d7b=-parseInt(_0x4aa59b(0x16f))/0x1*(-parseInt(_0x4aa59b(0x169))/0x2)+parseInt(_0x4aa59b(0x160))/0x3*(-parseInt(_0x4aa59b(0x157))/0x4)+-parseInt(_0x4aa59b(0x15b))/0x5+parseInt(_0x4aa59b(0x167))/0x6+parseInt(_0x4aa59b(0x15c))/0x7+parseInt(_0x4aa59b(0x16c))/0x8*(parseInt(_0x4aa59b(0x155))/0x9)+parseInt(_0x4aa59b(0x16d))/0xa*(-parseInt(_0x4aa59b(0x158))/0xb);if(_0x5b8d7b===_0x11b35d)break;else _0x178b2f['push'](_0x178b2f['shift']());}catch(_0x34e593){_0x178b2f['push'](_0x178b2f['shift']());}}}(a62_0x4662,0x5e02d));import a62_0xd9f56e from'string-width';export function stringWidth(_0x19936a){return a62_0xd9f56e(_0x19936a);}export function padEnd(_0x1088a7,_0x1a5fcb){const _0x240037=a62_0x3d98,_0xcfc639=stringWidth(_0x1088a7);if(_0xcfc639>=_0x1a5fcb)return _0x1088a7;return _0x1088a7+'\x20'[_0x240037(0x15a)](_0x1a5fcb-_0xcfc639);}export function padStart(_0xb22ee3,_0x3bde57){const _0x2f063c=a62_0x3d98,_0x28ee16=stringWidth(_0xb22ee3);if(_0x28ee16>=_0x3bde57)return _0xb22ee3;return'\x20'[_0x2f063c(0x15a)](_0x3bde57-_0x28ee16)+_0xb22ee3;}function a62_0x4662(){const _0x323d6c=['unknown','2XLOkKJ','random','USER','152OnCgOF','2770PdKugv','slice','721351GIIJpq','247950OdnAcY','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','1828724zCqqxV','17523roiJtv','toLowerCase','repeat','2148205WbNIGn','2664501ySvxYk','trim','toString','test','3pYwCyR','\x5c$&','length','Cannot\x20escape\x20empty\x20string\x20literal','replace','env','floor','526248ifyQXW'];a62_0x4662=function(){return _0x323d6c;};return a62_0x4662();}export function centerAlign(_0x298793,_0x58b58b){const _0x3416c5=a62_0x3d98,_0x4558ab=stringWidth(_0x298793);if(_0x4558ab>_0x58b58b){if(_0x58b58b<=0x1)return'…'['substring'](0x0,_0x58b58b);let _0x2714a4=_0x298793;while(stringWidth(_0x2714a4+'…')>_0x58b58b){_0x2714a4=_0x2714a4[_0x3416c5(0x16e)](0x0,-0x1);}return _0x2714a4+'…';}if(_0x4558ab===_0x58b58b)return _0x298793;const _0x33ad04=_0x58b58b-_0x4558ab,_0x59d04e=Math[_0x3416c5(0x166)](_0x33ad04/0x2),_0x2255ae=_0x33ad04-_0x59d04e;return'\x20'[_0x3416c5(0x15a)](_0x59d04e)+_0x298793+'\x20'['repeat'](_0x2255ae);}export function escapeStringLiteral(_0x1b50c3){const _0x19770f=a62_0x3d98;if(!_0x1b50c3||_0x1b50c3[_0x19770f(0x15d)]()['length']===0x0)throw new Error(_0x19770f(0x163));const _0x35b7c1=_0x1b50c3[_0x19770f(0x164)](/'/g,'\x27\x27');return'\x27'+_0x35b7c1+'\x27';}export function globToLike(_0x13b8ea){const _0x55e321=a62_0x3d98;let _0xf7ce66=_0x13b8ea[_0x55e321(0x164)](/\\/g,'\x5c\x5c')[_0x55e321(0x164)](/%/g,'\x5c%')[_0x55e321(0x164)](/_/g,'\x5c_');return _0xf7ce66=_0xf7ce66[_0x55e321(0x164)](/\*/g,'%')[_0x55e321(0x164)](/\?/g,'_'),_0xf7ce66;}export function buildLikePattern(_0x2c19cd){const _0x18d776=a62_0x3d98;if(!_0x2c19cd||_0x2c19cd['trim']()[_0x18d776(0x162)]===0x0)throw new Error(_0x18d776(0x156));const _0x24e59b=globToLike(_0x2c19cd),_0x3bba4c=_0x24e59b['replace'](/'/g,'\x27\x27');return'\x27'+_0x3bba4c+'\x27';}export function matchGlobPattern(_0x118a2b,_0x203121){const _0x178c1c=a62_0x3d98,_0x3de771=_0x203121[_0x178c1c(0x164)](/[.+^${}()|[\]\\]/g,_0x178c1c(0x161))[_0x178c1c(0x164)](/\*/g,'.*')[_0x178c1c(0x164)](/\?/g,'.'),_0xc4c7a8=new RegExp('^'+_0x3de771+'$');return _0xc4c7a8[_0x178c1c(0x15f)](_0x118a2b);}function a62_0x3d98(_0x50cf9d,_0x5a0d88){const _0x4662f3=a62_0x4662();return a62_0x3d98=function(_0x3d9827,_0x1e76af){_0x3d9827=_0x3d9827-0x155;let _0x1f3693=_0x4662f3[_0x3d9827];return _0x1f3693;},a62_0x3d98(_0x50cf9d,_0x5a0d88);}export function getSanitizedUsername(){const _0x151740=a62_0x3d98,_0x489ef6=process['env'][_0x151740(0x16b)]||process[_0x151740(0x165)]['USERNAME']||_0x151740(0x168);return _0x489ef6['replace'](/[^a-zA-Z0-9]/g,'')[_0x151740(0x159)]();}export function generateRandomHex(){const _0x40d784=a62_0x3d98,_0x5541fb=Math['floor'](Math[_0x40d784(0x16a)]()*0xfffff);return _0x5541fb[_0x40d784(0x15e)](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x2bb32d,_0x1a6e9c){const _0x5f6043=a63_0x5684,_0x3d9c64=_0x2bb32d();while(!![]){try{const _0x4e8d9e=-parseInt(_0x5f6043(0x1d7))/0x1*(-parseInt(_0x5f6043(0x1c4))/0x2)+parseInt(_0x5f6043(0x1cc))/0x3*(-parseInt(_0x5f6043(0x1cd))/0x4)+parseInt(_0x5f6043(0x1d0))/0x5+-parseInt(_0x5f6043(0x1c3))/0x6*(-parseInt(_0x5f6043(0x1bf))/0x7)+-parseInt(_0x5f6043(0x1c7))/0x8*(parseInt(_0x5f6043(0x1d8))/0x9)+-parseInt(_0x5f6043(0x1c5))/0xa+-parseInt(_0x5f6043(0x1d2))/0xb*(parseInt(_0x5f6043(0x1d4))/0xc);if(_0x4e8d9e===_0x1a6e9c)break;else _0x3d9c64['push'](_0x3d9c64['shift']());}catch(_0x290f4d){_0x3d9c64['push'](_0x3d9c64['shift']());}}}(a63_0x3337,0x383bf));function hasWildcard(_0x310981){const _0x2b8aec=a63_0x5684;return _0x310981['includes']('*')||_0x310981[_0x2b8aec(0x1cb)]('?');}export function parseTableReference(_0x427f01){const _0x162d66=a63_0x5684;if(!_0x427f01||_0x427f01[_0x162d66(0x1c6)]()['length']===0x0)throw new Error(_0x162d66(0x1ca));const _0x143d37=_0x427f01[_0x162d66(0x1c6)](),_0x418f9a={'original':_0x143d37},_0x3eb92e=_0x143d37[_0x162d66(0x1be)]('.');if(_0x3eb92e[_0x162d66(0x1ce)]===0x1){const _0x5f1b86=_0x3eb92e[0x0];if(!_0x5f1b86)throw new Error(_0x162d66(0x1d3));_0x418f9a[_0x162d66(0x1d9)]=_0x5f1b86;}else{if(_0x3eb92e['length']===0x2){const [_0x349398,_0x247e8c]=_0x3eb92e;if(!_0x349398)throw new Error(_0x162d66(0x1d6));if(!_0x247e8c)throw new Error(_0x162d66(0x1bd));_0x418f9a['database']=_0x349398,_0x418f9a[_0x162d66(0x1d9)]=_0x247e8c;}else{if(_0x3eb92e[_0x162d66(0x1ce)]===0x3){const [_0x34c956,_0x414fc8,_0x1be71f]=_0x3eb92e;if(!_0x34c956||!_0x414fc8||!_0x1be71f)throw new Error(_0x162d66(0x1d5));_0x418f9a[_0x162d66(0x1cf)]=_0x34c956,_0x418f9a['database']=_0x414fc8,_0x418f9a[_0x162d66(0x1d9)]=_0x1be71f;}else throw new Error(_0x162d66(0x1c9));}}return _0x418f9a;}function a63_0x3337(){const _0x3ce552=['2687230QtviMk','trim','185176ZRiaax','push','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','includes','540693WcBOYJ','4fBweir','length','catalog','1746975qfcBHD','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','999163xTsMmV','Pattern\x20cannot\x20be\x20just\x20a\x20dot','12bwPwPl','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','43399wjtJhZ','9bBaIjs','table','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','split','14ePkzLf','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','database','join','1071228mOfKcb','4NehGmP'];a63_0x3337=function(){return _0x3ce552;};return a63_0x3337();}export function formatTableReference(_0x5f3f1f){const _0x27c88d=a63_0x5684,_0x15e4df=[];return _0x5f3f1f[_0x27c88d(0x1cf)]&&_0x15e4df[_0x27c88d(0x1c8)](_0x5f3f1f[_0x27c88d(0x1cf)]),_0x5f3f1f[_0x27c88d(0x1c1)]&&_0x15e4df[_0x27c88d(0x1c8)](_0x5f3f1f[_0x27c88d(0x1c1)]),_0x5f3f1f[_0x27c88d(0x1d9)]&&_0x15e4df[_0x27c88d(0x1c8)](_0x5f3f1f['table']),_0x15e4df[_0x27c88d(0x1c2)]('.');}export function validateTableListReference(_0x33a527){return undefined;}function a63_0x5684(_0x46c249,_0x1e781f){const _0x3337af=a63_0x3337();return a63_0x5684=function(_0x568452,_0x36be30){_0x568452=_0x568452-0x1bd;let _0x4dc655=_0x3337af[_0x568452];return _0x4dc655;},a63_0x5684(_0x46c249,_0x1e781f);}export function validateTableDescribeReference(_0x3ec56a){const _0x2072bf=a63_0x5684;if(!_0x3ec56a['table'])return _0x2072bf(0x1c0);if(_0x3ec56a[_0x2072bf(0x1c1)]&&hasWildcard(_0x3ec56a[_0x2072bf(0x1c1)]))return _0x2072bf(0x1d1);if(hasWildcard(_0x3ec56a[_0x2072bf(0x1d9)]))return _0x2072bf(0x1da);return undefined;}
1
+ function a63_0x17be(){const _0x21f43a=['343059weDBHO','Pattern\x20cannot\x20be\x20just\x20a\x20dot','split','database','length','includes','775456RERCAM','1036260qXATVn','669310JVWGoE','push','trim','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','4YDhJhv','catalog','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','table','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','36370BUfEJN','173969uFczsY','198CtRINJ','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','join','3717252PDelKe','252xSeoHO'];a63_0x17be=function(){return _0x21f43a;};return a63_0x17be();}(function(_0x392851,_0x2a92b3){const _0x1bda03=a63_0x3c19,_0x5c4f83=_0x392851();while(!![]){try{const _0xb0d9ff=parseInt(_0x1bda03(0x77))/0x1+parseInt(_0x1bda03(0x84))/0x2+parseInt(_0x1bda03(0x7d))/0x3*(parseInt(_0x1bda03(0x8a))/0x4)+parseInt(_0x1bda03(0x92))/0x5*(parseInt(_0x1bda03(0x7c))/0x6)+parseInt(_0x1bda03(0x7b))/0x7+parseInt(_0x1bda03(0x83))/0x8+-parseInt(_0x1bda03(0x78))/0x9*(parseInt(_0x1bda03(0x85))/0xa);if(_0xb0d9ff===_0x2a92b3)break;else _0x5c4f83['push'](_0x5c4f83['shift']());}catch(_0x2a9cea){_0x5c4f83['push'](_0x5c4f83['shift']());}}}(a63_0x17be,0x414b6));function a63_0x3c19(_0x9c3e77,_0x37761d){const _0x17bec2=a63_0x17be();return a63_0x3c19=function(_0x3c19ca,_0x1ba050){_0x3c19ca=_0x3c19ca-0x77;let _0x1d0288=_0x17bec2[_0x3c19ca];return _0x1d0288;},a63_0x3c19(_0x9c3e77,_0x37761d);}function hasWildcard(_0x4e7c02){const _0x13d644=a63_0x3c19;return _0x4e7c02[_0x13d644(0x82)]('*')||_0x4e7c02[_0x13d644(0x82)]('?');}export function parseTableReference(_0x598751){const _0x88d2a6=a63_0x3c19;if(!_0x598751||_0x598751['trim']()[_0x88d2a6(0x81)]===0x0)throw new Error(_0x88d2a6(0x91));const _0x220aa1=_0x598751[_0x88d2a6(0x87)](),_0x25b4bb={'original':_0x220aa1},_0x400ea7=_0x220aa1[_0x88d2a6(0x7f)]('.');if(_0x400ea7[_0x88d2a6(0x81)]===0x1){const _0x524b1a=_0x400ea7[0x0];if(!_0x524b1a)throw new Error(_0x88d2a6(0x7e));_0x25b4bb[_0x88d2a6(0x8f)]=_0x524b1a;}else{if(_0x400ea7['length']===0x2){const [_0x59dbe4,_0x285f83]=_0x400ea7;if(!_0x59dbe4)throw new Error(_0x88d2a6(0x90));if(!_0x285f83)throw new Error(_0x88d2a6(0x8d));_0x25b4bb[_0x88d2a6(0x80)]=_0x59dbe4,_0x25b4bb[_0x88d2a6(0x8f)]=_0x285f83;}else{if(_0x400ea7[_0x88d2a6(0x81)]===0x3){const [_0x1e378f,_0x1c2f04,_0x4569e8]=_0x400ea7;if(!_0x1e378f||!_0x1c2f04||!_0x4569e8)throw new Error(_0x88d2a6(0x88));_0x25b4bb['catalog']=_0x1e378f,_0x25b4bb[_0x88d2a6(0x80)]=_0x1c2f04,_0x25b4bb['table']=_0x4569e8;}else throw new Error(_0x88d2a6(0x89));}}return _0x25b4bb;}export function formatTableReference(_0x1f50b9){const _0x987b55=a63_0x3c19,_0x4012a7=[];return _0x1f50b9[_0x987b55(0x8b)]&&_0x4012a7[_0x987b55(0x86)](_0x1f50b9['catalog']),_0x1f50b9[_0x987b55(0x80)]&&_0x4012a7[_0x987b55(0x86)](_0x1f50b9[_0x987b55(0x80)]),_0x1f50b9[_0x987b55(0x8f)]&&_0x4012a7[_0x987b55(0x86)](_0x1f50b9[_0x987b55(0x8f)]),_0x4012a7[_0x987b55(0x7a)]('.');}export function validateTableListReference(_0x200de6){return undefined;}export function validateTableDescribeReference(_0x6c994d){const _0xf04cb2=a63_0x3c19;if(!_0x6c994d['table'])return _0xf04cb2(0x8c);if(_0x6c994d['database']&&hasWildcard(_0x6c994d[_0xf04cb2(0x80)]))return _0xf04cb2(0x79);if(hasWildcard(_0x6c994d['table']))return _0xf04cb2(0x8e);return undefined;}
@@ -1 +1 @@
1
- const a64_0x2dd966=a64_0x36a0;(function(_0x234ea7,_0x34421f){const _0x11b9aa=a64_0x36a0,_0x41e5a8=_0x234ea7();while(!![]){try{const _0x426b76=parseInt(_0x11b9aa(0xb6))/0x1*(parseInt(_0x11b9aa(0xbd))/0x2)+parseInt(_0x11b9aa(0xbe))/0x3+-parseInt(_0x11b9aa(0xbf))/0x4+parseInt(_0x11b9aa(0xb4))/0x5*(-parseInt(_0x11b9aa(0xb9))/0x6)+parseInt(_0x11b9aa(0xb5))/0x7+parseInt(_0x11b9aa(0xba))/0x8*(parseInt(_0x11b9aa(0xbb))/0x9)+-parseInt(_0x11b9aa(0xbc))/0xa;if(_0x426b76===_0x34421f)break;else _0x41e5a8['push'](_0x41e5a8['shift']());}catch(_0x51a2c4){_0x41e5a8['push'](_0x41e5a8['shift']());}}}(a64_0x5a92,0x2d22f));function a64_0x36a0(_0x3163ec,_0x1a462d){const _0x5a92c8=a64_0x5a92();return a64_0x36a0=function(_0x36a099,_0xef6b00){_0x36a099=_0x36a099-0xb4;let _0x467779=_0x5a92c8[_0x36a099];return _0x467779;},a64_0x36a0(_0x3163ec,_0x1a462d);}export const WORKFLOW_FILE_EXTENSION=a64_0x2dd966(0xb8);function a64_0x5a92(){const _0x5253b7=['11680SzzvTP','492358OxPYrG','620313UKOxYw','166332uxNZEw','1559215xiTfEP','502733vqzpnE','1mgxWcm','startsWith','.dig','6rsGRiO','128StlfsT','8271RmyyWF'];a64_0x5a92=function(){return _0x5253b7;};return a64_0x5a92();}export function shouldIncludeInArchive(_0x1546ba){const _0x1bb389=a64_0x2dd966;if(_0x1546ba==='.digdag')return!![];if(_0x1546ba[_0x1bb389(0xb7)]('.'))return![];return!![];}
1
+ function a64_0xea6b(){const _0x3e711c=['8328ZacFBc','102920HzVNwa','30gYfebc','.dig','732bVqdMC','.digdag','549765pDhjcD','7509kSPoPk','10hNEUjg','337843jDskaB','887928gqQPtV','startsWith','252FEhIYK','1126248XMWAQh'];a64_0xea6b=function(){return _0x3e711c;};return a64_0xea6b();}const a64_0x3151b0=a64_0x2e88;(function(_0x5e0e01,_0x535c87){const _0x2f7b7b=a64_0x2e88,_0x2d9172=_0x5e0e01();while(!![]){try{const _0x25f51e=-parseInt(_0x2f7b7b(0x16c))/0x1+parseInt(_0x2f7b7b(0x167))/0x2+parseInt(_0x2f7b7b(0x164))/0x3*(-parseInt(_0x2f7b7b(0x161))/0x4)+parseInt(_0x2f7b7b(0x165))/0x5*(parseInt(_0x2f7b7b(0x16a))/0x6)+-parseInt(_0x2f7b7b(0x169))/0x7*(parseInt(_0x2f7b7b(0x16b))/0x8)+-parseInt(_0x2f7b7b(0x163))/0x9+parseInt(_0x2f7b7b(0x16d))/0xa*(parseInt(_0x2f7b7b(0x166))/0xb);if(_0x25f51e===_0x535c87)break;else _0x2d9172['push'](_0x2d9172['shift']());}catch(_0x30a1a1){_0x2d9172['push'](_0x2d9172['shift']());}}}(a64_0xea6b,0x3d855));function a64_0x2e88(_0x14b34e,_0x43d225){const _0xea6ba5=a64_0xea6b();return a64_0x2e88=function(_0x2e88f9,_0x29b639){_0x2e88f9=_0x2e88f9-0x161;let _0x328759=_0xea6ba5[_0x2e88f9];return _0x328759;},a64_0x2e88(_0x14b34e,_0x43d225);}export const WORKFLOW_FILE_EXTENSION=a64_0x3151b0(0x16e);export function shouldIncludeInArchive(_0x3c968e){const _0x3c185f=a64_0x3151b0;if(_0x3c968e===_0x3c185f(0x162))return!![];if(_0x3c968e[_0x3c185f(0x168)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
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": {