@treasuredata/tdx 0.7.3 → 0.7.4

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 (108) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.d.ts +20 -1
  6. package/dist/client/cdp-api-client.d.ts.map +1 -1
  7. package/dist/client/cdp-api-client.js +1 -1
  8. package/dist/client/cdp-api-client.js.map +1 -1
  9. package/dist/client/engage-api-client.js +1 -1
  10. package/dist/client/http-client.js +1 -1
  11. package/dist/client/llm-api-client.js +1 -1
  12. package/dist/client/rate-limiter.js +1 -1
  13. package/dist/client/td-api-client.js +1 -1
  14. package/dist/client/trino-api-client.js +1 -1
  15. package/dist/client/workflow-client.js +1 -1
  16. package/dist/commands/activations.js +1 -1
  17. package/dist/commands/api-command.js +1 -1
  18. package/dist/commands/auth-command.js +1 -1
  19. package/dist/commands/chat-command.js +1 -1
  20. package/dist/commands/claude-command.js +1 -1
  21. package/dist/commands/claude-statusline-command.js +1 -1
  22. package/dist/commands/claude-usage-command.js +1 -1
  23. package/dist/commands/command.js +1 -1
  24. package/dist/commands/context-command.js +1 -1
  25. package/dist/commands/databases.js +1 -1
  26. package/dist/commands/describe.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/llm-command.js +1 -1
  30. package/dist/commands/llm-proxy.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profiles-command.js +1 -1
  33. package/dist/commands/query-command.js +1 -1
  34. package/dist/commands/segment-command.js +1 -1
  35. package/dist/commands/segment-create-command.js +1 -1
  36. package/dist/commands/segment-fields-command.js +1 -1
  37. package/dist/commands/segment-pwd-command.js +1 -1
  38. package/dist/commands/segment-update-command.js +1 -1
  39. package/dist/commands/segment-use-command.js +1 -1
  40. package/dist/commands/segments.js +1 -1
  41. package/dist/commands/show.js +1 -1
  42. package/dist/commands/tables.js +1 -1
  43. package/dist/commands/use-command.js +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/config.js +1 -1
  47. package/dist/core/credential-cache.js +1 -1
  48. package/dist/core/global-context.js +1 -1
  49. package/dist/core/keychain.js +1 -1
  50. package/dist/core/profile.js +1 -1
  51. package/dist/core/project-config.js +1 -1
  52. package/dist/core/session.js +1 -1
  53. package/dist/index.js +1 -1
  54. package/dist/proxy/anthropic-adapter.js +1 -1
  55. package/dist/proxy/claude-usage-tracker.js +1 -1
  56. package/dist/proxy/context-signature.js +1 -1
  57. package/dist/proxy/conversation-utils.js +1 -1
  58. package/dist/proxy/server.js +1 -1
  59. package/dist/proxy/session-cache.js +1 -1
  60. package/dist/sdk/api.js +1 -1
  61. package/dist/sdk/engage.js +1 -1
  62. package/dist/sdk/errors.js +1 -1
  63. package/dist/sdk/index.js +1 -1
  64. package/dist/sdk/job.js +1 -1
  65. package/dist/sdk/llm.js +1 -1
  66. package/dist/sdk/query.js +1 -1
  67. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  68. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  69. package/dist/sdk/segment.d.ts.map +1 -1
  70. package/dist/sdk/segment.js +1 -1
  71. package/dist/sdk/segment.js.map +1 -1
  72. package/dist/sdk/workflow.js +1 -1
  73. package/dist/types/cdp.d.ts +58 -0
  74. package/dist/types/cdp.d.ts.map +1 -1
  75. package/dist/types/endpoints.js +1 -1
  76. package/dist/types/index.d.ts +1 -1
  77. package/dist/types/index.d.ts.map +1 -1
  78. package/dist/types/index.js +1 -1
  79. package/dist/utils/agent-ref-parser.js +1 -1
  80. package/dist/utils/chat-cache.js +1 -1
  81. package/dist/utils/colors.js +1 -1
  82. package/dist/utils/command-output.js +1 -1
  83. package/dist/utils/constants.js +1 -1
  84. package/dist/utils/diff.js +1 -1
  85. package/dist/utils/fields-display.js +1 -1
  86. package/dist/utils/file-permissions.js +1 -1
  87. package/dist/utils/format-detector.js +1 -1
  88. package/dist/utils/formatters.js +1 -1
  89. package/dist/utils/json-loader.js +1 -1
  90. package/dist/utils/llm-backup-utils.js +1 -1
  91. package/dist/utils/model-aliases.js +1 -1
  92. package/dist/utils/model-factors.js +1 -1
  93. package/dist/utils/option-validation.js +1 -1
  94. package/dist/utils/port.js +1 -1
  95. package/dist/utils/process.js +1 -1
  96. package/dist/utils/prompt.js +1 -1
  97. package/dist/utils/segment-path-parser.js +1 -1
  98. package/dist/utils/segment-ref-parser.js +1 -1
  99. package/dist/utils/spinner.js +1 -1
  100. package/dist/utils/sql-parser.js +1 -1
  101. package/dist/utils/sse-parser.js +1 -1
  102. package/dist/utils/string-utils.js +1 -1
  103. package/dist/utils/table-ref-parser.js +1 -1
  104. package/dist/utils/tdx-logger.js +1 -1
  105. package/dist/utils/tree-formatter.js +1 -1
  106. package/dist/utils/version-check.js +1 -1
  107. package/dist/utils/workflow-utils.js +1 -1
  108. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0xc37603,_0x34a80b){const _0x5e8b0e=a79_0x1e28,_0x5aa410=_0xc37603();while(!![]){try{const _0x4a843b=-parseInt(_0x5e8b0e(0x95))/0x1*(-parseInt(_0x5e8b0e(0xa4))/0x2)+-parseInt(_0x5e8b0e(0x8b))/0x3*(parseInt(_0x5e8b0e(0x88))/0x4)+parseInt(_0x5e8b0e(0x90))/0x5+-parseInt(_0x5e8b0e(0x74))/0x6*(-parseInt(_0x5e8b0e(0x82))/0x7)+-parseInt(_0x5e8b0e(0xa3))/0x8*(-parseInt(_0x5e8b0e(0xa8))/0x9)+parseInt(_0x5e8b0e(0x7b))/0xa+-parseInt(_0x5e8b0e(0x80))/0xb;if(_0x4a843b===_0x34a80b)break;else _0x5aa410['push'](_0x5aa410['shift']());}catch(_0x203e6b){_0x5aa410['push'](_0x5aa410['shift']());}}}(a79_0xfa7f,0xbe208));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a79_0x186b85 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x458ecc){const _0x16e8fa=a79_0x1e28;return{'format':_0x458ecc[_0x16e8fa(0x93)]||'table','output':_0x458ecc['output']||'','limit':_0x458ecc[_0x16e8fa(0x7a)],'color':_0x458ecc[_0x16e8fa(0x9f)],'noColor':_0x458ecc[_0x16e8fa(0x67)]};}function convertSDKResultToQueryResult(_0xc2e2c5){const _0x35a67f=a79_0x1e28,_0x28537d=[];if(_0xc2e2c5['length']>0x0){const _0x1fdf43=_0xc2e2c5[0x0];for(const [_0x24c559,_0x385618]of Object[_0x35a67f(0x8e)](_0x1fdf43)){let _0x3f7304='varchar';if(typeof _0x385618===_0x35a67f(0x87))_0x3f7304=Number[_0x35a67f(0xab)](_0x385618)?_0x35a67f(0x70):_0x35a67f(0x69);else{if(typeof _0x385618===_0x35a67f(0xa7))_0x3f7304=_0x35a67f(0xa7);else _0x385618===null&&(_0x3f7304=_0x35a67f(0x75));}_0x28537d[_0x35a67f(0xa5)]({'name':_0x24c559,'type':_0x3f7304});}}return{'queryId':_0x35a67f(0x8c),'columns':_0x28537d,'data':_0xc2e2c5,'stats':{'state':_0x35a67f(0x66),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0xc2e2c5['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}function a79_0xfa7f(){const _0x1a28e0=['isTTY','stderr','trim','write','rule','bold','[error]','map','─┴─','color','max','debug','[params]','736TbNxSX','3616wUDvsv','push','output','boolean','30852QFWZZo','blue','red','isInteger','object','stdin','FINISHED','noColor','stringify','double','[logs]','cyan','[Object]','magenta','less','length','bigint','cmdout','forEach','inherit','60jIskaB','varchar','string','filter','json','keys','limit','11161580nNpUGb','pipe','close','table','spawn','32902221jgBCJP','repeat','861868IwaTQV','query','join','error','split','number','160656jUBdXs','log','─┬─','21aejpIE','sdk-result','padEnd','entries','params','1291225whGenU','yellow','No\x20data','format','resolve','625WmFGXT'];a79_0xfa7f=function(){return _0x1a28e0;};return a79_0xfa7f();}export async function formatSDKOutput(_0x107966,_0x19c5e4){const _0x4d1fec=convertSDKResultToQueryResult(_0x107966);return formatQueryOutput(_0x4d1fec,_0x19c5e4);}export async function formatQueryOutput(_0x897034,_0x3c19f0){const _0x25daa4=a79_0x1e28,{format:_0x137c5d,limit:_0x39a698,output:_0x5a8ca2,color:_0x253a6c,noColor:_0x264298}=_0x3c19f0,_0x40e919=Boolean(_0x5a8ca2)&&!_0x253a6c,_0x501fa0={'color':_0x253a6c,'noColor':_0x264298||_0x40e919};if(_0x137c5d===_0x25daa4(0x7e)){const _0x312a9e=shouldUseLess(_0x137c5d,_0x5a8ca2);return formatAsTable(_0x897034,_0x39a698,_0x312a9e,_0x501fa0);}else{if(_0x137c5d===_0x25daa4(0x78))return formatAsJSON(_0x897034,_0x501fa0);else return _0x137c5d==='jsonl'?formatAsJSONL(_0x897034,_0x501fa0):formatQueryResult(_0x897034,_0x137c5d);}}function shouldUseLess(_0x197f44,_0x4b1562){const _0x3e5b79=a79_0x1e28;return _0x197f44===_0x3e5b79(0x7e)&&process['stdout'][_0x3e5b79(0x96)]&&!_0x4b1562;}export function resolveOutputOptions(_0x56f2b3){const _0x42043b=a79_0x1e28,_0x2a9107=resolveOutputFormat(_0x56f2b3[_0x42043b(0x93)],_0x56f2b3['output'],_0x42043b(0x7e));let _0x167671=typeof _0x56f2b3[_0x42043b(0x7a)]===_0x42043b(0x87)?_0x56f2b3['limit']:parseInt(_0x56f2b3[_0x42043b(0x7a)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x12e254=_0x56f2b3[_0x42043b(0xa6)]||'';return shouldUseLess(_0x2a9107,_0x12e254)&&(_0x167671=Infinity),{'format':_0x2a9107,'output':_0x12e254,'limit':_0x167671,'color':_0x56f2b3[_0x42043b(0x9f)],'noColor':_0x56f2b3[_0x42043b(0x67)]};}export function writeOutput(_0xb1a252,_0x3aac82,_0x980981){const _0x2e9aef=a79_0x1e28;return _0x3aac82?(writeFileSync(_0x3aac82,_0xb1a252),console['error']('Results\x20saved\x20to\x20'+_0x3aac82),Promise[_0x2e9aef(0x94)]()):shouldUseLess(_0x980981||'','')?new Promise(_0x140331=>{const _0x1e39ad=_0x2e9aef,_0xe89120=spawn(_0x1e39ad(0x6e),['-FXRSn'],{'stdio':[_0x1e39ad(0x7c),_0x1e39ad(0x73),_0x1e39ad(0x73)]});let _0xfeb39a=![];_0xe89120['on'](_0x1e39ad(0x85),()=>{const _0x1acaf2=_0x1e39ad;!_0xfeb39a&&(_0xfeb39a=!![],console[_0x1acaf2(0x89)](_0xb1a252),_0x140331());}),_0xe89120['on'](_0x1e39ad(0x7d),()=>{!_0xfeb39a&&(_0xfeb39a=!![],_0x140331());}),_0xe89120['on'](_0x1e39ad(0x7f),()=>{const _0x3ff65b=_0x1e39ad;!_0xfeb39a&&_0xe89120[_0x3ff65b(0x65)]&&(_0xe89120['stdin']['on'](_0x3ff65b(0x85),()=>{}),_0xe89120[_0x3ff65b(0x65)][_0x3ff65b(0x99)](_0xb1a252),_0xe89120[_0x3ff65b(0x65)]['end']());}),!_0xe89120[_0x1e39ad(0x65)]&&(!_0xfeb39a&&(_0xfeb39a=!![],console[_0x1e39ad(0x89)](_0xb1a252),_0x140331()));}):(console[_0x2e9aef(0x89)](_0xb1a252),Promise[_0x2e9aef(0x94)]());}export async function handleSDKOutput(_0x4aec11,_0x1c66d5){const _0x5cfbb0=a79_0x1e28,_0x4912f3=resolveOutputOptions(_0x1c66d5),_0x4e856f=await formatSDKOutput(_0x4aec11,_0x4912f3);await writeOutput(_0x4e856f,_0x4912f3[_0x5cfbb0(0xa6)]||undefined,_0x4912f3[_0x5cfbb0(0x93)]);}export async function handleQueryOutput(_0x2dca0c,_0x2cdfc3){const _0x32fdcf=a79_0x1e28,_0x4ce242=resolveOutputOptions(_0x2cdfc3),_0x2984ee=await formatQueryOutput(_0x2dca0c,_0x4ce242);await writeOutput(_0x2984ee,_0x4ce242[_0x32fdcf(0xa6)]||undefined,_0x4ce242[_0x32fdcf(0x93)]);}async function formatSingleObject(_0x2b535e,_0x26f5e8){const _0x22ec38=a79_0x1e28,{format:_0x557c4b,color:_0x32a573,noColor:_0x596d0a}=_0x26f5e8,_0x46cfbb={'color':_0x32a573,'noColor':_0x596d0a};if(_0x557c4b===_0x22ec38(0x78)){if(shouldUseColor(_0x46cfbb))return colorizeJSON(_0x2b535e,_0x46cfbb);return JSON['stringify'](_0x2b535e,null,0x2);}else{if(_0x557c4b==='jsonl'){if(shouldUseColor(_0x46cfbb))return colorizeJSONCompact(_0x2b535e,_0x46cfbb);return JSON[_0x22ec38(0x68)](_0x2b535e);}else{if(_0x557c4b==='tsv')return Object[_0x22ec38(0x8e)](_0x2b535e)[_0x22ec38(0x9d)](([_0x9a4f32,_0xd66acd])=>_0x9a4f32+'\x09'+_0xd66acd)[_0x22ec38(0x84)]('\x0a');else{const _0x1b076e=Object[_0x22ec38(0x8e)](_0x2b535e);if(_0x1b076e[_0x22ec38(0x6f)]===0x0)return _0x22ec38(0x92);const _0xa633d4=_0x2b535e['debug'],_0x2234f5=_0x2b535e[_0x22ec38(0x83)],_0x37eaaf=_0x2b535e[_0x22ec38(0x8f)],_0x3bf9d9=_0x2b535e['rule'],_0x427802=_0x2234f5?typeof _0x2234f5===_0x22ec38(0x76)?_0x2234f5:JSON[_0x22ec38(0x68)](_0x2234f5,null,0x2):undefined,_0x2e7b9b=_0x37eaaf&&Object[_0x22ec38(0x79)](_0x37eaaf)[_0x22ec38(0x6f)]>0x0?JSON[_0x22ec38(0x68)](_0x37eaaf,null,0x2):undefined,_0x4f7d29=_0x3bf9d9&&Object[_0x22ec38(0x79)](_0x3bf9d9)['length']>0x0?JSON[_0x22ec38(0x68)](_0x3bf9d9,null,0x2):undefined,_0xd7a622=_0x1b076e[_0x22ec38(0x77)](([_0x42b0d4])=>_0x42b0d4!==_0x22ec38(0xa1)&&_0x42b0d4!==_0x22ec38(0x83)&&_0x42b0d4!==_0x22ec38(0x8f)&&_0x42b0d4!==_0x22ec38(0x9a)),_0x53e855=Math['max'](..._0xd7a622[_0x22ec38(0x9d)](([_0x9c60a2])=>_0x9c60a2[_0x22ec38(0x6f)])),_0x26d9db=Math['max'](..._0xd7a622['map'](([,_0x19a84c])=>{const _0x1659af=_0x22ec38;try{const _0x21377e=_0x19a84c===null||_0x19a84c===undefined?'':typeof _0x19a84c===_0x1659af(0xac)?JSON[_0x1659af(0x68)](_0x19a84c):String(_0x19a84c),_0x5d3d50=_0x21377e['split']('\x0a');return Math[_0x1659af(0xa0)](..._0x5d3d50['map'](_0x43a07d=>_0x43a07d['length']),0x0);}catch{return 0x0;}}),0x14),_0x1806ce=[];_0x1806ce[_0x22ec38(0xa5)](colorBorder('┌─'+'─'['repeat'](_0x53e855)+_0x22ec38(0x8a)+'─'['repeat'](_0x26d9db)+'─┐',_0x46cfbb)),_0xd7a622[_0x22ec38(0x72)](([_0x4a49ca,_0x565dfe])=>{const _0x10db94=_0x22ec38;let _0xcf7c4d;try{_0xcf7c4d=_0x565dfe===null||_0x565dfe===undefined?'':typeof _0x565dfe==='object'?JSON[_0x10db94(0x68)](_0x565dfe):String(_0x565dfe);}catch{_0xcf7c4d=_0x10db94(0x6c);}const _0xf8563=_0x4a49ca[_0x10db94(0x8d)](_0x53e855),_0x49a7c4=_0xcf7c4d[_0x10db94(0x86)]('\x0a');_0x49a7c4[_0x10db94(0x72)]((_0x44136c,_0x310828)=>{const _0x53e637=_0x10db94,_0x313ce6=colorBorder('│',_0x46cfbb);_0x310828===0x0?_0x1806ce[_0x53e637(0xa5)](_0x313ce6+'\x20'+_0xf8563+'\x20'+_0x313ce6+'\x20'+_0x44136c[_0x53e637(0x8d)](_0x26d9db)+'\x20'+_0x313ce6):_0x1806ce[_0x53e637(0xa5)](_0x313ce6+'\x20'+'\x20'[_0x53e637(0x81)](_0x53e855)+'\x20'+_0x313ce6+'\x20'+_0x44136c[_0x53e637(0x8d)](_0x26d9db)+'\x20'+_0x313ce6);});}),_0x1806ce['push'](colorBorder('└─'+'─'[_0x22ec38(0x81)](_0x53e855)+_0x22ec38(0x9e)+'─'[_0x22ec38(0x81)](_0x26d9db)+'─┘',_0x46cfbb));_0x427802&&(_0x1806ce[_0x22ec38(0xa5)](''),_0x1806ce[_0x22ec38(0xa5)](String(a79_0x186b85[_0x22ec38(0x91)][_0x22ec38(0x9b)]('[query]'))),_0x1806ce[_0x22ec38(0xa5)](_0x427802));_0x2e7b9b&&(_0x1806ce['push'](''),_0x1806ce['push'](String(a79_0x186b85[_0x22ec38(0xa9)]['bold'](_0x22ec38(0xa2)))),_0x1806ce['push'](_0x2e7b9b));_0x4f7d29&&(_0x1806ce['push'](''),_0x1806ce[_0x22ec38(0xa5)](String(a79_0x186b85[_0x22ec38(0x6d)][_0x22ec38(0x9b)]('[rule]'))),_0x1806ce['push'](_0x4f7d29));if(_0xa633d4){if(_0xa633d4[_0x22ec38(0x97)]){_0x1806ce[_0x22ec38(0xa5)](''),_0x1806ce[_0x22ec38(0xa5)](String(a79_0x186b85[_0x22ec38(0xaa)][_0x22ec38(0x9b)](_0x22ec38(0x9c))));const _0x31f739=_0xa633d4[_0x22ec38(0x97)][_0x22ec38(0x86)]('\x0a');_0x31f739[_0x22ec38(0x72)](_0x4d1aa0=>{const _0x467086=_0x22ec38;_0x4d1aa0[_0x467086(0x98)]()&&_0x1806ce[_0x467086(0xa5)](_0x4d1aa0);});}if(_0xa633d4[_0x22ec38(0x71)]){_0x1806ce[_0x22ec38(0xa5)](''),_0x1806ce[_0x22ec38(0xa5)](String(a79_0x186b85[_0x22ec38(0x6b)][_0x22ec38(0x9b)](_0x22ec38(0x6a))));const _0x2645d9=_0xa633d4[_0x22ec38(0x71)][_0x22ec38(0x86)]('\x0a');_0x2645d9[_0x22ec38(0x72)](_0x38aa74=>{const _0x2cc382=_0x22ec38;_0x38aa74[_0x2cc382(0x98)]()&&_0x1806ce[_0x2cc382(0xa5)](_0x38aa74);});}}return _0x1806ce[_0x22ec38(0x84)]('\x0a');}}}}function a79_0x1e28(_0x4cc44f,_0x499cee){const _0xfa7f8=a79_0xfa7f();return a79_0x1e28=function(_0x1e28f0,_0x1a3b62){_0x1e28f0=_0x1e28f0-0x65;let _0x722dad=_0xfa7f8[_0x1e28f0];return _0x722dad;},a79_0x1e28(_0x4cc44f,_0x499cee);}export async function handleSingleObjectOutput(_0x205500,_0x3f3a9f){const _0xfd6c78=a79_0x1e28,_0x11961=resolveOutputOptions(_0x3f3a9f),_0xb1ab9a=await formatSingleObject(_0x205500,_0x11961);await writeOutput(_0xb1ab9a,_0x11961[_0xfd6c78(0xa6)]||undefined,_0x11961[_0xfd6c78(0x93)]);}
1
+ (function(_0x2b6e14,_0x1a7aca){const _0x3419fd=a79_0x376b,_0x3f605b=_0x2b6e14();while(!![]){try{const _0x4776f9=parseInt(_0x3419fd(0x189))/0x1*(parseInt(_0x3419fd(0x17b))/0x2)+parseInt(_0x3419fd(0x16f))/0x3+-parseInt(_0x3419fd(0x185))/0x4+parseInt(_0x3419fd(0x19c))/0x5+-parseInt(_0x3419fd(0x168))/0x6+-parseInt(_0x3419fd(0x178))/0x7+parseInt(_0x3419fd(0x160))/0x8;if(_0x4776f9===_0x1a7aca)break;else _0x3f605b['push'](_0x3f605b['shift']());}catch(_0x5cd878){_0x3f605b['push'](_0x3f605b['shift']());}}}(a79_0x3f40,0xb7451));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a79_0x307cd2 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x45505d){const _0x25ee2e=a79_0x376b;return{'format':_0x45505d['format']||_0x25ee2e(0x192),'output':_0x45505d['output']||'','limit':_0x45505d[_0x25ee2e(0x19a)],'color':_0x45505d[_0x25ee2e(0x180)],'noColor':_0x45505d[_0x25ee2e(0x182)]};}function convertSDKResultToQueryResult(_0x307bd5){const _0x36d9d2=a79_0x376b,_0x1dfbfc=[];if(_0x307bd5[_0x36d9d2(0x17d)]>0x0){const _0x46b8e4=_0x307bd5[0x0];for(const [_0x367a8a,_0x4132ea]of Object[_0x36d9d2(0x184)](_0x46b8e4)){let _0xe225fe=_0x36d9d2(0x17c);if(typeof _0x4132ea===_0x36d9d2(0x19b))_0xe225fe=Number[_0x36d9d2(0x176)](_0x4132ea)?_0x36d9d2(0x190):'double';else{if(typeof _0x4132ea===_0x36d9d2(0x16e))_0xe225fe=_0x36d9d2(0x16e);else _0x4132ea===null&&(_0xe225fe='varchar');}_0x1dfbfc[_0x36d9d2(0x196)]({'name':_0x367a8a,'type':_0xe225fe});}}return{'queryId':_0x36d9d2(0x188),'columns':_0x1dfbfc,'data':_0x307bd5,'stats':{'state':_0x36d9d2(0x172),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x307bd5[_0x36d9d2(0x17d)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x5c7c00,_0x1de814){const _0x496dbd=convertSDKResultToQueryResult(_0x5c7c00);return formatQueryOutput(_0x496dbd,_0x1de814);}export async function formatQueryOutput(_0xda44e7,_0x542178){const _0x50043f=a79_0x376b,{format:_0x4a3535,limit:_0x45267b,output:_0x5773c1,color:_0x2db603,noColor:_0x557035}=_0x542178,_0xaa5ff1=Boolean(_0x5773c1)&&!_0x2db603,_0x5c97d3={'color':_0x2db603,'noColor':_0x557035||_0xaa5ff1};if(_0x4a3535===_0x50043f(0x192)){const _0x46d991=shouldUseLess(_0x4a3535,_0x5773c1);return formatAsTable(_0xda44e7,_0x45267b,_0x46d991,_0x5c97d3);}else{if(_0x4a3535===_0x50043f(0x18b))return formatAsJSON(_0xda44e7,_0x5c97d3);else return _0x4a3535===_0x50043f(0x17f)?formatAsJSONL(_0xda44e7,_0x5c97d3):formatQueryResult(_0xda44e7,_0x4a3535);}}function shouldUseLess(_0x5263c4,_0x1e04d7){const _0x4d37a3=a79_0x376b;return _0x5263c4===_0x4d37a3(0x192)&&process[_0x4d37a3(0x179)][_0x4d37a3(0x15f)]&&!_0x1e04d7;}export function resolveOutputOptions(_0x4e8683){const _0x11387a=a79_0x376b,_0x53a1e7=resolveOutputFormat(_0x4e8683['format'],_0x4e8683[_0x11387a(0x174)],_0x11387a(0x192));let _0x2682ba=typeof _0x4e8683[_0x11387a(0x19a)]===_0x11387a(0x19b)?_0x4e8683[_0x11387a(0x19a)]:parseInt(_0x4e8683[_0x11387a(0x19a)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x48cff6=_0x4e8683[_0x11387a(0x174)]||'';return shouldUseLess(_0x53a1e7,_0x48cff6)&&(_0x2682ba=Infinity),{'format':_0x53a1e7,'output':_0x48cff6,'limit':_0x2682ba,'color':_0x4e8683[_0x11387a(0x180)],'noColor':_0x4e8683['noColor']};}function a79_0x3f40(){const _0x2646c9=['limit','number','2348270PPlPiH','error','object','[rule]','query','[query]','string','isTTY','9771080MBVHxN','magenta','trim','yellow','stringify','less','write','bold','4962168TntquZ','repeat','debug','inherit','keys','log','boolean','3723468WiqNYt','No\x20data','filter','FINISHED','params','output','padEnd','isInteger','rule','10486378cXOFBN','stdout','stdin','624724TXKgLm','varchar','length','cyan','jsonl','color','map','noColor','[Object]','entries','675208azCRdW','resolve','forEach','sdk-result','1uAqgrz','max','json','blue','split','─┬─','format','bigint','stderr','table','spawn','cmdout','join','push','─┴─','[logs]','pipe'];a79_0x3f40=function(){return _0x2646c9;};return a79_0x3f40();}export function writeOutput(_0x4e98a9,_0x573ef2,_0xc603b4){const _0x4f58d2=a79_0x376b;return _0x573ef2?(writeFileSync(_0x573ef2,_0x4e98a9),console[_0x4f58d2(0x19d)]('Results\x20saved\x20to\x20'+_0x573ef2),Promise[_0x4f58d2(0x186)]()):shouldUseLess(_0xc603b4||'','')?new Promise(_0xdb3279=>{const _0x131f16=_0x4f58d2,_0x1f36ad=spawn(_0x131f16(0x165),['-FXRSn'],{'stdio':[_0x131f16(0x199),'inherit',_0x131f16(0x16b)]});let _0x3d4d0e=![];_0x1f36ad['on'](_0x131f16(0x19d),()=>{!_0x3d4d0e&&(_0x3d4d0e=!![],console['log'](_0x4e98a9),_0xdb3279());}),_0x1f36ad['on']('close',()=>{!_0x3d4d0e&&(_0x3d4d0e=!![],_0xdb3279());}),_0x1f36ad['on'](_0x131f16(0x193),()=>{const _0x4cc6d5=_0x131f16;!_0x3d4d0e&&_0x1f36ad[_0x4cc6d5(0x17a)]&&(_0x1f36ad[_0x4cc6d5(0x17a)]['on']('error',()=>{}),_0x1f36ad[_0x4cc6d5(0x17a)][_0x4cc6d5(0x166)](_0x4e98a9),_0x1f36ad[_0x4cc6d5(0x17a)]['end']());}),!_0x1f36ad['stdin']&&(!_0x3d4d0e&&(_0x3d4d0e=!![],console['log'](_0x4e98a9),_0xdb3279()));}):(console[_0x4f58d2(0x16d)](_0x4e98a9),Promise[_0x4f58d2(0x186)]());}function a79_0x376b(_0x441117,_0x488c8c){const _0x3f40c7=a79_0x3f40();return a79_0x376b=function(_0x376bac,_0xc118cf){_0x376bac=_0x376bac-0x15f;let _0x1c7f38=_0x3f40c7[_0x376bac];return _0x1c7f38;},a79_0x376b(_0x441117,_0x488c8c);}export async function handleSDKOutput(_0x54fd26,_0x143183){const _0x627180=resolveOutputOptions(_0x143183),_0x40601d=await formatSDKOutput(_0x54fd26,_0x627180);await writeOutput(_0x40601d,_0x627180['output']||undefined,_0x627180['format']);}export async function handleQueryOutput(_0x4e1666,_0x5c095c){const _0x1ee79f=a79_0x376b,_0xf1f22e=resolveOutputOptions(_0x5c095c),_0xc4be5a=await formatQueryOutput(_0x4e1666,_0xf1f22e);await writeOutput(_0xc4be5a,_0xf1f22e[_0x1ee79f(0x174)]||undefined,_0xf1f22e[_0x1ee79f(0x18f)]);}async function formatSingleObject(_0x4c653e,_0x1ec2f2){const _0x3cac28=a79_0x376b,{format:_0x465ea4,color:_0x3f257d,noColor:_0x2811dd}=_0x1ec2f2,_0x5119be={'color':_0x3f257d,'noColor':_0x2811dd};if(_0x465ea4===_0x3cac28(0x18b)){if(shouldUseColor(_0x5119be))return colorizeJSON(_0x4c653e,_0x5119be);return JSON[_0x3cac28(0x164)](_0x4c653e,null,0x2);}else{if(_0x465ea4===_0x3cac28(0x17f)){if(shouldUseColor(_0x5119be))return colorizeJSONCompact(_0x4c653e,_0x5119be);return JSON['stringify'](_0x4c653e);}else{if(_0x465ea4==='tsv')return Object[_0x3cac28(0x184)](_0x4c653e)[_0x3cac28(0x181)](([_0x414f15,_0x5daf00])=>_0x414f15+'\x09'+_0x5daf00)['join']('\x0a');else{const _0x4a8951=Object['entries'](_0x4c653e);if(_0x4a8951[_0x3cac28(0x17d)]===0x0)return _0x3cac28(0x170);const _0x360c6c=_0x4c653e[_0x3cac28(0x16a)],_0x51a152=_0x4c653e[_0x3cac28(0x1a0)],_0x5955a1=_0x4c653e[_0x3cac28(0x173)],_0x5f2649=_0x4c653e[_0x3cac28(0x177)],_0x2a564c=_0x51a152?typeof _0x51a152===_0x3cac28(0x1a2)?_0x51a152:JSON[_0x3cac28(0x164)](_0x51a152,null,0x2):undefined,_0x41a525=_0x5955a1&&Object['keys'](_0x5955a1)[_0x3cac28(0x17d)]>0x0?JSON[_0x3cac28(0x164)](_0x5955a1,null,0x2):undefined,_0x5de3ac=_0x5f2649&&Object[_0x3cac28(0x16c)](_0x5f2649)[_0x3cac28(0x17d)]>0x0?JSON[_0x3cac28(0x164)](_0x5f2649,null,0x2):undefined,_0x3a3665=_0x4a8951[_0x3cac28(0x171)](([_0xa0329e])=>_0xa0329e!==_0x3cac28(0x16a)&&_0xa0329e!=='query'&&_0xa0329e!==_0x3cac28(0x173)&&_0xa0329e!=='rule'),_0x207c6d=Math[_0x3cac28(0x18a)](..._0x3a3665[_0x3cac28(0x181)](([_0x4c0d4e])=>_0x4c0d4e[_0x3cac28(0x17d)])),_0x448375=Math[_0x3cac28(0x18a)](..._0x3a3665[_0x3cac28(0x181)](([,_0x4c4db9])=>{const _0x58a9ae=_0x3cac28;try{const _0x5c4b8e=_0x4c4db9===null||_0x4c4db9===undefined?'':typeof _0x4c4db9===_0x58a9ae(0x19e)?JSON['stringify'](_0x4c4db9):String(_0x4c4db9),_0x16e564=_0x5c4b8e['split']('\x0a');return Math['max'](..._0x16e564[_0x58a9ae(0x181)](_0x46c29a=>_0x46c29a[_0x58a9ae(0x17d)]),0x0);}catch{return 0x0;}}),0x14),_0x33dfe3=[];_0x33dfe3[_0x3cac28(0x196)](colorBorder('┌─'+'─'[_0x3cac28(0x169)](_0x207c6d)+_0x3cac28(0x18e)+'─'[_0x3cac28(0x169)](_0x448375)+'─┐',_0x5119be)),_0x3a3665['forEach'](([_0x2132d9,_0x5d1eb9])=>{const _0x4c9738=_0x3cac28;let _0x1c4fdd;try{_0x1c4fdd=_0x5d1eb9===null||_0x5d1eb9===undefined?'':typeof _0x5d1eb9===_0x4c9738(0x19e)?JSON[_0x4c9738(0x164)](_0x5d1eb9):String(_0x5d1eb9);}catch{_0x1c4fdd=_0x4c9738(0x183);}const _0x47ca84=_0x2132d9['padEnd'](_0x207c6d),_0x2f0213=_0x1c4fdd[_0x4c9738(0x18d)]('\x0a');_0x2f0213[_0x4c9738(0x187)]((_0x2e949d,_0x3e49bd)=>{const _0x18acfe=_0x4c9738,_0x1efd78=colorBorder('│',_0x5119be);_0x3e49bd===0x0?_0x33dfe3['push'](_0x1efd78+'\x20'+_0x47ca84+'\x20'+_0x1efd78+'\x20'+_0x2e949d[_0x18acfe(0x175)](_0x448375)+'\x20'+_0x1efd78):_0x33dfe3[_0x18acfe(0x196)](_0x1efd78+'\x20'+'\x20'[_0x18acfe(0x169)](_0x207c6d)+'\x20'+_0x1efd78+'\x20'+_0x2e949d['padEnd'](_0x448375)+'\x20'+_0x1efd78);});}),_0x33dfe3[_0x3cac28(0x196)](colorBorder('└─'+'─'[_0x3cac28(0x169)](_0x207c6d)+_0x3cac28(0x197)+'─'[_0x3cac28(0x169)](_0x448375)+'─┘',_0x5119be));_0x2a564c&&(_0x33dfe3[_0x3cac28(0x196)](''),_0x33dfe3[_0x3cac28(0x196)](String(a79_0x307cd2[_0x3cac28(0x163)]['bold'](_0x3cac28(0x1a1)))),_0x33dfe3[_0x3cac28(0x196)](_0x2a564c));_0x41a525&&(_0x33dfe3[_0x3cac28(0x196)](''),_0x33dfe3[_0x3cac28(0x196)](String(a79_0x307cd2[_0x3cac28(0x18c)][_0x3cac28(0x167)]('[params]'))),_0x33dfe3[_0x3cac28(0x196)](_0x41a525));_0x5de3ac&&(_0x33dfe3[_0x3cac28(0x196)](''),_0x33dfe3[_0x3cac28(0x196)](String(a79_0x307cd2[_0x3cac28(0x161)]['bold'](_0x3cac28(0x19f)))),_0x33dfe3[_0x3cac28(0x196)](_0x5de3ac));if(_0x360c6c){if(_0x360c6c[_0x3cac28(0x191)]){_0x33dfe3['push'](''),_0x33dfe3[_0x3cac28(0x196)](String(a79_0x307cd2['red'][_0x3cac28(0x167)]('[error]')));const _0x2a80ae=_0x360c6c['stderr'][_0x3cac28(0x18d)]('\x0a');_0x2a80ae[_0x3cac28(0x187)](_0x33aa48=>{const _0x18bfad=_0x3cac28;_0x33aa48[_0x18bfad(0x162)]()&&_0x33dfe3[_0x18bfad(0x196)](_0x33aa48);});}if(_0x360c6c[_0x3cac28(0x194)]){_0x33dfe3[_0x3cac28(0x196)](''),_0x33dfe3[_0x3cac28(0x196)](String(a79_0x307cd2[_0x3cac28(0x17e)]['bold'](_0x3cac28(0x198))));const _0x4eccb2=_0x360c6c[_0x3cac28(0x194)][_0x3cac28(0x18d)]('\x0a');_0x4eccb2['forEach'](_0x4aec5d=>{const _0x1c35a3=_0x3cac28;_0x4aec5d['trim']()&&_0x33dfe3[_0x1c35a3(0x196)](_0x4aec5d);});}}return _0x33dfe3[_0x3cac28(0x195)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x2cf232,_0x180197){const _0x3fdc72=a79_0x376b,_0x1d5e9f=resolveOutputOptions(_0x180197),_0x459e4b=await formatSingleObject(_0x2cf232,_0x1d5e9f);await writeOutput(_0x459e4b,_0x1d5e9f[_0x3fdc72(0x174)]||undefined,_0x1d5e9f[_0x3fdc72(0x18f)]);}
@@ -1 +1 @@
1
- function a80_0x2136(_0xf831db,_0xcccfb8){const _0x820200=a80_0x8202();return a80_0x2136=function(_0x21367b,_0x591ba7){_0x21367b=_0x21367b-0x6e;let _0x3ef518=_0x820200[_0x21367b];return _0x3ef518;},a80_0x2136(_0xf831db,_0xcccfb8);}(function(_0x48bb18,_0x4efb99){const _0x2d2eeb=a80_0x2136,_0xc61b1a=_0x48bb18();while(!![]){try{const _0x32ff85=parseInt(_0x2d2eeb(0x73))/0x1+-parseInt(_0x2d2eeb(0x79))/0x2+-parseInt(_0x2d2eeb(0x78))/0x3*(parseInt(_0x2d2eeb(0x75))/0x4)+parseInt(_0x2d2eeb(0x71))/0x5*(-parseInt(_0x2d2eeb(0x70))/0x6)+parseInt(_0x2d2eeb(0x6f))/0x7*(parseInt(_0x2d2eeb(0x72))/0x8)+-parseInt(_0x2d2eeb(0x6e))/0x9*(parseInt(_0x2d2eeb(0x74))/0xa)+parseInt(_0x2d2eeb(0x77))/0xb;if(_0x32ff85===_0x4efb99)break;else _0xc61b1a['push'](_0xc61b1a['shift']());}catch(_0x596705){_0xc61b1a['push'](_0xc61b1a['shift']());}}}(a80_0x8202,0x1df2c));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;function a80_0x8202(){const _0xf43546=['61914YvLhVa','11943yOaSme','294HSEgMF','6eAYDTU','892820WneKRa','7944kbnEWQ','98649hjFlkc','1250cRRTmZ','408740cvVScD','number','6182869RVUUOd','6ZmeJuU'];a80_0x8202=function(){return _0xf43546;};return a80_0x8202();}export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x5439ef,_0x2e4b10){const _0x4ba3a1=a80_0x2136;if(_0x5439ef===undefined)return _0x2e4b10;if(typeof _0x5439ef===_0x4ba3a1(0x76))return _0x5439ef;return parseInt(_0x5439ef,0xa);}
1
+ (function(_0x254e16,_0x3fe5d3){const _0x1dc9b3=a80_0x4637,_0x9f9d8d=_0x254e16();while(!![]){try{const _0x1672e8=parseInt(_0x1dc9b3(0x184))/0x1+-parseInt(_0x1dc9b3(0x180))/0x2*(-parseInt(_0x1dc9b3(0x183))/0x3)+parseInt(_0x1dc9b3(0x17f))/0x4+parseInt(_0x1dc9b3(0x182))/0x5+-parseInt(_0x1dc9b3(0x186))/0x6+parseInt(_0x1dc9b3(0x181))/0x7+parseInt(_0x1dc9b3(0x187))/0x8*(-parseInt(_0x1dc9b3(0x188))/0x9);if(_0x1672e8===_0x3fe5d3)break;else _0x9f9d8d['push'](_0x9f9d8d['shift']());}catch(_0x4ac311){_0x9f9d8d['push'](_0x9f9d8d['shift']());}}}(a80_0x2764,0x1cad0));export const DEFAULT_DISPLAY_LIMIT=0x28;function a80_0x2764(){const _0x57d8f7=['2EHoBPb','406273GVNdiY','919750mwDIis','270633tvDzZJ','214001XDOsbe','number','1291380yUfQdR','56avzghA','436851drrOXW','505032iPFoUK'];a80_0x2764=function(){return _0x57d8f7;};return a80_0x2764();}function a80_0x4637(_0x533416,_0x499dab){const _0x27645c=a80_0x2764();return a80_0x4637=function(_0x4637b9,_0x3c8021){_0x4637b9=_0x4637b9-0x17f;let _0x401106=_0x27645c[_0x4637b9];return _0x401106;},a80_0x4637(_0x533416,_0x499dab);}export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x16d566,_0x52d278){const _0x1e708a=a80_0x4637;if(_0x16d566===undefined)return _0x52d278;if(typeof _0x16d566===_0x1e708a(0x185))return _0x16d566;return parseInt(_0x16d566,0xa);}
@@ -1 +1 @@
1
- (function(_0x3b5caf,_0x270124){const _0x454e8b=a81_0x4470,_0x4f7a57=_0x3b5caf();while(!![]){try{const _0x4b60fa=-parseInt(_0x454e8b(0x9c))/0x1*(-parseInt(_0x454e8b(0x9e))/0x2)+parseInt(_0x454e8b(0xb6))/0x3+parseInt(_0x454e8b(0x97))/0x4+parseInt(_0x454e8b(0xae))/0x5+parseInt(_0x454e8b(0x9f))/0x6*(parseInt(_0x454e8b(0xa6))/0x7)+parseInt(_0x454e8b(0x9d))/0x8*(parseInt(_0x454e8b(0xa4))/0x9)+-parseInt(_0x454e8b(0xa5))/0xa*(parseInt(_0x454e8b(0xb3))/0xb);if(_0x4b60fa===_0x270124)break;else _0x4f7a57['push'](_0x4f7a57['shift']());}catch(_0x4d42c7){_0x4f7a57['push'](_0x4f7a57['shift']());}}}(a81_0x2788,0xd72bb));import a81_0x37c475 from'chalk';export function generateDiff(_0x4ea1ec,_0x9101af){const _0x54e057=a81_0x4470,_0x2dbd40=_0x4ea1ec[_0x54e057(0x93)]('\x0a'),_0x4095f4=_0x9101af['split']('\x0a'),_0x24ebf6=[],_0x3c2f34=computeLCS(_0x2dbd40,_0x4095f4);let _0xe49ccf=0x0,_0x4d3694=0x0,_0x1cdc7=0x0;while(_0xe49ccf<_0x2dbd40['length']||_0x4d3694<_0x4095f4[_0x54e057(0x94)]){if(_0x1cdc7<_0x3c2f34[_0x54e057(0x94)]&&_0xe49ccf<_0x2dbd40[_0x54e057(0x94)]&&_0x2dbd40[_0xe49ccf]===_0x3c2f34[_0x1cdc7])_0x4d3694<_0x4095f4[_0x54e057(0x94)]&&_0x4095f4[_0x4d3694]===_0x3c2f34[_0x1cdc7]?(_0x24ebf6[_0x54e057(0xad)]({'type':'unchanged','content':_0x2dbd40[_0xe49ccf]}),_0xe49ccf++,_0x4d3694++,_0x1cdc7++):(_0x24ebf6[_0x54e057(0xad)]({'type':_0x54e057(0x98),'content':_0x4095f4[_0x4d3694]}),_0x4d3694++);else{if(_0x1cdc7<_0x3c2f34[_0x54e057(0x94)]&&_0x4d3694<_0x4095f4[_0x54e057(0x94)]&&_0x4095f4[_0x4d3694]===_0x3c2f34[_0x1cdc7])_0x24ebf6[_0x54e057(0xad)]({'type':'removed','content':_0x2dbd40[_0xe49ccf]}),_0xe49ccf++;else{if(_0xe49ccf<_0x2dbd40[_0x54e057(0x94)]&&(_0x1cdc7>=_0x3c2f34[_0x54e057(0x94)]||_0x2dbd40[_0xe49ccf]!==_0x3c2f34[_0x1cdc7]))_0x24ebf6[_0x54e057(0xad)]({'type':_0x54e057(0x95),'content':_0x2dbd40[_0xe49ccf]}),_0xe49ccf++;else _0x4d3694<_0x4095f4[_0x54e057(0x94)]&&(_0x24ebf6['push']({'type':_0x54e057(0x98),'content':_0x4095f4[_0x4d3694]}),_0x4d3694++);}}}return _0x24ebf6;}function a81_0x2788(){const _0xb2630c=['type','2738538tvhhAj','fill','split','length','removed','content','4990060bQXOff','added','\x20+\x20','padStart','has','4zhRuOr','16CSKfBT','568646NBqNnT','97122nXpMgV','repeat','max','add','size','1897713snabOk','117680Yvmfkv','511EpTjHi','dim','new','map','red','\x20\x20...','unchanged','push','5967725emDTyn','some','green','forEach','old','4873zpELqC','join'];a81_0x2788=function(){return _0xb2630c;};return a81_0x2788();}function a81_0x4470(_0x304b40,_0x54cad1){const _0x27886b=a81_0x2788();return a81_0x4470=function(_0x4470ae,_0xc4093f){_0x4470ae=_0x4470ae-0x93;let _0x36bcf0=_0x27886b[_0x4470ae];return _0x36bcf0;},a81_0x4470(_0x304b40,_0x54cad1);}function computeLCS(_0x23cc6b,_0x4d1d3c){const _0x1dfe19=a81_0x4470,_0x18e1c8=_0x23cc6b[_0x1dfe19(0x94)],_0x5403c8=_0x4d1d3c[_0x1dfe19(0x94)],_0x339f82=Array(_0x18e1c8+0x1)[_0x1dfe19(0xb7)](null)[_0x1dfe19(0xa9)](()=>Array(_0x5403c8+0x1)[_0x1dfe19(0xb7)](0x0));for(let _0x182928=0x1;_0x182928<=_0x18e1c8;_0x182928++){for(let _0x304b46=0x1;_0x304b46<=_0x5403c8;_0x304b46++){_0x23cc6b[_0x182928-0x1]===_0x4d1d3c[_0x304b46-0x1]?_0x339f82[_0x182928][_0x304b46]=_0x339f82[_0x182928-0x1][_0x304b46-0x1]+0x1:_0x339f82[_0x182928][_0x304b46]=Math[_0x1dfe19(0xa1)](_0x339f82[_0x182928-0x1][_0x304b46],_0x339f82[_0x182928][_0x304b46-0x1]);}}const _0x432f35=[];let _0x38fe8f=_0x18e1c8,_0x571f53=_0x5403c8;while(_0x38fe8f>0x0&&_0x571f53>0x0){if(_0x23cc6b[_0x38fe8f-0x1]===_0x4d1d3c[_0x571f53-0x1])_0x432f35['unshift'](_0x23cc6b[_0x38fe8f-0x1]),_0x38fe8f--,_0x571f53--;else _0x339f82[_0x38fe8f-0x1][_0x571f53]>_0x339f82[_0x38fe8f][_0x571f53-0x1]?_0x38fe8f--:_0x571f53--;}return _0x432f35;}export function formatDiffWithColors(_0x34336a,_0x2ad7e6=0x3){const _0x43b2d4=a81_0x4470,_0x56c465=new Set();_0x34336a[_0x43b2d4(0xb1)]((_0x4bad02,_0x37f41b)=>{const _0x5974f4=_0x43b2d4;_0x4bad02[_0x5974f4(0xb5)]!==_0x5974f4(0xac)&&_0x56c465[_0x5974f4(0xa2)](_0x37f41b);});if(_0x56c465[_0x43b2d4(0xa3)]===0x0)return'';const _0x4acefa=new Set();for(const _0x5d173b of _0x56c465){for(let _0x324535=Math['max'](0x0,_0x5d173b-_0x2ad7e6);_0x324535<=Math['min'](_0x34336a[_0x43b2d4(0x94)]-0x1,_0x5d173b+_0x2ad7e6);_0x324535++){_0x4acefa[_0x43b2d4(0xa2)](_0x324535);}}const _0x5306fa=[];let _0x42dd25=-0x1;const _0x398aec=_0x34336a['length'],_0x8ab49a=Math['max'](0x3,String(_0x398aec)[_0x43b2d4(0x94)]),_0x2eb64e=[];let _0x15e438=0x0,_0x1eb64d=0x0;for(const _0x3934fb of _0x34336a){if(_0x3934fb[_0x43b2d4(0xb5)]===_0x43b2d4(0x95))_0x15e438++,_0x2eb64e[_0x43b2d4(0xad)]({'old':_0x15e438,'new':0x0});else _0x3934fb[_0x43b2d4(0xb5)]===_0x43b2d4(0x98)?(_0x1eb64d++,_0x2eb64e[_0x43b2d4(0xad)]({'old':0x0,'new':_0x1eb64d})):(_0x15e438++,_0x1eb64d++,_0x2eb64e[_0x43b2d4(0xad)]({'old':_0x15e438,'new':_0x1eb64d}));}for(let _0x3e8b0f=0x0;_0x3e8b0f<_0x34336a[_0x43b2d4(0x94)];_0x3e8b0f++){if(!_0x4acefa[_0x43b2d4(0x9b)](_0x3e8b0f))continue;_0x42dd25!==-0x1&&_0x3e8b0f>_0x42dd25+0x1&&_0x5306fa[_0x43b2d4(0xad)](a81_0x37c475['cyan'](_0x43b2d4(0xab)));_0x42dd25=_0x3e8b0f;const _0x5f2aa0=_0x34336a[_0x3e8b0f],_0x392f4d=_0x2eb64e[_0x3e8b0f],_0x569587=_0x392f4d[_0x43b2d4(0xb2)]>0x0?String(_0x392f4d[_0x43b2d4(0xb2)])[_0x43b2d4(0x9a)](_0x8ab49a):'\x20'['repeat'](_0x8ab49a),_0x493c9e=_0x392f4d['new']>0x0?String(_0x392f4d[_0x43b2d4(0xa8)])[_0x43b2d4(0x9a)](_0x8ab49a):'\x20'[_0x43b2d4(0xa0)](_0x8ab49a);switch(_0x5f2aa0['type']){case _0x43b2d4(0x95):_0x5306fa[_0x43b2d4(0xad)](a81_0x37c475[_0x43b2d4(0xaa)](_0x569587+'\x20'+_0x493c9e+'\x20-\x20'+_0x5f2aa0[_0x43b2d4(0x96)]));break;case'added':_0x5306fa[_0x43b2d4(0xad)](a81_0x37c475[_0x43b2d4(0xb0)](_0x569587+'\x20'+_0x493c9e+_0x43b2d4(0x99)+_0x5f2aa0[_0x43b2d4(0x96)]));break;default:_0x5306fa[_0x43b2d4(0xad)](a81_0x37c475[_0x43b2d4(0xa7)](_0x569587+'\x20'+_0x493c9e+'\x20\x20\x20'+_0x5f2aa0[_0x43b2d4(0x96)]));break;}}return _0x5306fa[_0x43b2d4(0xb4)]('\x0a');}export function hasChanges(_0x3a5032){const _0xe54aea=a81_0x4470;return _0x3a5032[_0xe54aea(0xaf)](_0x46dd27=>_0x46dd27[_0xe54aea(0xb5)]!==_0xe54aea(0xac));}
1
+ function a81_0x19c7(_0x162fe5,_0x3f7140){const _0x3b35b6=a81_0x3b35();return a81_0x19c7=function(_0x19c77e,_0x551ffc){_0x19c77e=_0x19c77e-0x9f;let _0x1cd3d0=_0x3b35b6[_0x19c77e];return _0x1cd3d0;},a81_0x19c7(_0x162fe5,_0x3f7140);}(function(_0x45abad,_0x5ed57a){const _0x94a41e=a81_0x19c7,_0x2a39e4=_0x45abad();while(!![]){try{const _0x3fea1f=parseInt(_0x94a41e(0xb7))/0x1*(-parseInt(_0x94a41e(0xb9))/0x2)+-parseInt(_0x94a41e(0xbf))/0x3+parseInt(_0x94a41e(0xc4))/0x4*(parseInt(_0x94a41e(0xa8))/0x5)+-parseInt(_0x94a41e(0xaf))/0x6*(-parseInt(_0x94a41e(0xa5))/0x7)+-parseInt(_0x94a41e(0xb2))/0x8*(parseInt(_0x94a41e(0xa9))/0x9)+-parseInt(_0x94a41e(0xa7))/0xa+parseInt(_0x94a41e(0xc6))/0xb*(parseInt(_0x94a41e(0xb4))/0xc);if(_0x3fea1f===_0x5ed57a)break;else _0x2a39e4['push'](_0x2a39e4['shift']());}catch(_0x2215fc){_0x2a39e4['push'](_0x2a39e4['shift']());}}}(a81_0x3b35,0x59a5c));import a81_0xd10a93 from'chalk';function a81_0x3b35(){const _0x4c7852=['type','green','old','1762710XwJMkq','added','map','fill','push','2368VkMWkU','join','11yppUJg','content','size','add','\x20+\x20','split','unshift','3127845fRbjbP','dim','1955860vwsfRV','6050ozYidd','96462eteZHG','has','cyan','removed','some','max','6JOwvmo','red','\x20-\x20','176RDWFil','length','10076844xmrxWu','new','unchanged','2Jonuqw','padStart','616744akFkCV','repeat','min'];a81_0x3b35=function(){return _0x4c7852;};return a81_0x3b35();}export function generateDiff(_0x1f7cd6,_0x1bbd30){const _0x5d51c8=a81_0x19c7,_0x4250ae=_0x1f7cd6[_0x5d51c8(0xa3)]('\x0a'),_0x3a8906=_0x1bbd30[_0x5d51c8(0xa3)]('\x0a'),_0x5e6224=[],_0x209da4=computeLCS(_0x4250ae,_0x3a8906);let _0x619d7=0x0,_0x2c7ef0=0x0,_0x56e37d=0x0;while(_0x619d7<_0x4250ae['length']||_0x2c7ef0<_0x3a8906[_0x5d51c8(0xb3)]){if(_0x56e37d<_0x209da4[_0x5d51c8(0xb3)]&&_0x619d7<_0x4250ae[_0x5d51c8(0xb3)]&&_0x4250ae[_0x619d7]===_0x209da4[_0x56e37d])_0x2c7ef0<_0x3a8906['length']&&_0x3a8906[_0x2c7ef0]===_0x209da4[_0x56e37d]?(_0x5e6224['push']({'type':_0x5d51c8(0xb6),'content':_0x4250ae[_0x619d7]}),_0x619d7++,_0x2c7ef0++,_0x56e37d++):(_0x5e6224[_0x5d51c8(0xc3)]({'type':_0x5d51c8(0xc0),'content':_0x3a8906[_0x2c7ef0]}),_0x2c7ef0++);else{if(_0x56e37d<_0x209da4['length']&&_0x2c7ef0<_0x3a8906[_0x5d51c8(0xb3)]&&_0x3a8906[_0x2c7ef0]===_0x209da4[_0x56e37d])_0x5e6224['push']({'type':_0x5d51c8(0xac),'content':_0x4250ae[_0x619d7]}),_0x619d7++;else{if(_0x619d7<_0x4250ae['length']&&(_0x56e37d>=_0x209da4['length']||_0x4250ae[_0x619d7]!==_0x209da4[_0x56e37d]))_0x5e6224[_0x5d51c8(0xc3)]({'type':_0x5d51c8(0xac),'content':_0x4250ae[_0x619d7]}),_0x619d7++;else _0x2c7ef0<_0x3a8906[_0x5d51c8(0xb3)]&&(_0x5e6224[_0x5d51c8(0xc3)]({'type':'added','content':_0x3a8906[_0x2c7ef0]}),_0x2c7ef0++);}}}return _0x5e6224;}function computeLCS(_0x433f14,_0x49be62){const _0x3ee163=a81_0x19c7,_0x285af8=_0x433f14[_0x3ee163(0xb3)],_0x4fa4c6=_0x49be62[_0x3ee163(0xb3)],_0x1937b0=Array(_0x285af8+0x1)[_0x3ee163(0xc2)](null)[_0x3ee163(0xc1)](()=>Array(_0x4fa4c6+0x1)[_0x3ee163(0xc2)](0x0));for(let _0x3962c8=0x1;_0x3962c8<=_0x285af8;_0x3962c8++){for(let _0x142751=0x1;_0x142751<=_0x4fa4c6;_0x142751++){_0x433f14[_0x3962c8-0x1]===_0x49be62[_0x142751-0x1]?_0x1937b0[_0x3962c8][_0x142751]=_0x1937b0[_0x3962c8-0x1][_0x142751-0x1]+0x1:_0x1937b0[_0x3962c8][_0x142751]=Math[_0x3ee163(0xae)](_0x1937b0[_0x3962c8-0x1][_0x142751],_0x1937b0[_0x3962c8][_0x142751-0x1]);}}const _0x1649ff=[];let _0x31680a=_0x285af8,_0x4c4bdf=_0x4fa4c6;while(_0x31680a>0x0&&_0x4c4bdf>0x0){if(_0x433f14[_0x31680a-0x1]===_0x49be62[_0x4c4bdf-0x1])_0x1649ff[_0x3ee163(0xa4)](_0x433f14[_0x31680a-0x1]),_0x31680a--,_0x4c4bdf--;else _0x1937b0[_0x31680a-0x1][_0x4c4bdf]>_0x1937b0[_0x31680a][_0x4c4bdf-0x1]?_0x31680a--:_0x4c4bdf--;}return _0x1649ff;}export function formatDiffWithColors(_0x390414,_0x24c831=0x3){const _0x3bfda4=a81_0x19c7,_0x9a2cd7=new Set();_0x390414['forEach']((_0x2b9713,_0x5e456e)=>{const _0x493075=a81_0x19c7;_0x2b9713[_0x493075(0xbc)]!==_0x493075(0xb6)&&_0x9a2cd7[_0x493075(0xa1)](_0x5e456e);});if(_0x9a2cd7[_0x3bfda4(0xa0)]===0x0)return'';const _0x41673c=new Set();for(const _0x3d68fe of _0x9a2cd7){for(let _0x3472e1=Math[_0x3bfda4(0xae)](0x0,_0x3d68fe-_0x24c831);_0x3472e1<=Math[_0x3bfda4(0xbb)](_0x390414[_0x3bfda4(0xb3)]-0x1,_0x3d68fe+_0x24c831);_0x3472e1++){_0x41673c['add'](_0x3472e1);}}const _0x54b86e=[];let _0x1cb488=-0x1;const _0xbf217e=_0x390414[_0x3bfda4(0xb3)],_0x4c453b=Math[_0x3bfda4(0xae)](0x3,String(_0xbf217e)[_0x3bfda4(0xb3)]),_0xeeef7=[];let _0x45704f=0x0,_0x335e66=0x0;for(const _0x27ff21 of _0x390414){if(_0x27ff21[_0x3bfda4(0xbc)]===_0x3bfda4(0xac))_0x45704f++,_0xeeef7[_0x3bfda4(0xc3)]({'old':_0x45704f,'new':0x0});else _0x27ff21[_0x3bfda4(0xbc)]===_0x3bfda4(0xc0)?(_0x335e66++,_0xeeef7[_0x3bfda4(0xc3)]({'old':0x0,'new':_0x335e66})):(_0x45704f++,_0x335e66++,_0xeeef7[_0x3bfda4(0xc3)]({'old':_0x45704f,'new':_0x335e66}));}for(let _0xe9de1e=0x0;_0xe9de1e<_0x390414['length'];_0xe9de1e++){if(!_0x41673c[_0x3bfda4(0xaa)](_0xe9de1e))continue;_0x1cb488!==-0x1&&_0xe9de1e>_0x1cb488+0x1&&_0x54b86e[_0x3bfda4(0xc3)](a81_0xd10a93[_0x3bfda4(0xab)]('\x20\x20...'));_0x1cb488=_0xe9de1e;const _0x12d71f=_0x390414[_0xe9de1e],_0xcccc1=_0xeeef7[_0xe9de1e],_0x25a26d=_0xcccc1[_0x3bfda4(0xbe)]>0x0?String(_0xcccc1[_0x3bfda4(0xbe)])[_0x3bfda4(0xb8)](_0x4c453b):'\x20'[_0x3bfda4(0xba)](_0x4c453b),_0x3a36cf=_0xcccc1[_0x3bfda4(0xb5)]>0x0?String(_0xcccc1[_0x3bfda4(0xb5)])[_0x3bfda4(0xb8)](_0x4c453b):'\x20'['repeat'](_0x4c453b);switch(_0x12d71f[_0x3bfda4(0xbc)]){case'removed':_0x54b86e['push'](a81_0xd10a93[_0x3bfda4(0xb0)](_0x25a26d+'\x20'+_0x3a36cf+_0x3bfda4(0xb1)+_0x12d71f[_0x3bfda4(0x9f)]));break;case _0x3bfda4(0xc0):_0x54b86e[_0x3bfda4(0xc3)](a81_0xd10a93[_0x3bfda4(0xbd)](_0x25a26d+'\x20'+_0x3a36cf+_0x3bfda4(0xa2)+_0x12d71f['content']));break;default:_0x54b86e[_0x3bfda4(0xc3)](a81_0xd10a93[_0x3bfda4(0xa6)](_0x25a26d+'\x20'+_0x3a36cf+'\x20\x20\x20'+_0x12d71f['content']));break;}}return _0x54b86e[_0x3bfda4(0xc5)]('\x0a');}export function hasChanges(_0x12e7f4){const _0xa662a5=a81_0x19c7;return _0x12e7f4[_0xa662a5(0xad)](_0x558220=>_0x558220['type']!==_0xa662a5(0xb6));}
@@ -1 +1 @@
1
- (function(_0x5b6174,_0x5385fd){const _0x98dd79=a82_0x51f2,_0x340092=_0x5b6174();while(!![]){try{const _0x2ce64e=parseInt(_0x98dd79(0x145))/0x1+-parseInt(_0x98dd79(0x131))/0x2+parseInt(_0x98dd79(0x14e))/0x3+parseInt(_0x98dd79(0x151))/0x4*(parseInt(_0x98dd79(0x14f))/0x5)+parseInt(_0x98dd79(0x141))/0x6+-parseInt(_0x98dd79(0x154))/0x7+-parseInt(_0x98dd79(0x136))/0x8*(parseInt(_0x98dd79(0x142))/0x9);if(_0x2ce64e===_0x5385fd)break;else _0x340092['push'](_0x340092['shift']());}catch(_0x1c8b93){_0x340092['push'](_0x340092['shift']());}}}(a82_0x204a,0x353db));import a82_0x120e3d from'chalk';function a82_0x204a(){const _0x39b899=['8tFZGyA','attribute','localeCompare','execute','displayName','dim','source','Unknown','query','parentColumn','sort','169122czsiuG','2017611wjjjyE','behaviorName','parentTableName','168234JZyHMq','\x20\x20\x20\x20','tableName','columns','error','verbose','push','cyan','get','794883AxrWCx','71105gLGmjh','startsWith','52ZjTGFp','entries','extra','648921fQwcgr','varchar','trim','type','key','column_name','information_schema','filter','bold','set','replace','map','Attributes','length','size','name','222596ZtUklF','YES','null','groupingName','default'];a82_0x204a=function(){return _0x39b899;};return a82_0x204a();}function a82_0x51f2(_0x5988f5,_0x1300bb){const _0x204a1d=a82_0x204a();return a82_0x51f2=function(_0x51f273,_0x4dd4b8){_0x51f273=_0x51f273-0x12b;let _0x42d5b6=_0x204a1d[_0x51f273];return _0x42d5b6;},a82_0x51f2(_0x5988f5,_0x1300bb);}import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x3d24ac){const _0x503eb3=a82_0x51f2,_0x6526af=_0x3d24ac[_0x503eb3(0x148)][_0x503eb3(0x12c)](_0x104abe=>({'column_name':_0x104abe[_0x503eb3(0x130)],'column_type':_0x104abe[_0x503eb3(0x157)],'null':_0x503eb3(0x132),'key':null,'default':null,'extra':null}));return{..._0x3d24ac,'columns':[{'name':_0x503eb3(0x159),'type':_0x503eb3(0x155)},{'name':'column_type','type':_0x503eb3(0x155)},{'name':_0x503eb3(0x133),'type':'varchar'},{'name':_0x503eb3(0x158),'type':'varchar'},{'name':_0x503eb3(0x135),'type':_0x503eb3(0x155)},{'name':_0x503eb3(0x153),'type':_0x503eb3(0x155)}],'data':_0x6526af};}export async function executeSchemaQuery(_0x314876,_0xc43095,_0x2a54b5){const _0x52d124=a82_0x51f2,_0x270719=_0x314876[_0x52d124(0x156)]()[_0x52d124(0x12b)](/;+$/,''),_0xc4da50='SELECT\x20*\x20FROM\x20(\x0a'+_0x270719+'\x0a)\x20AS\x20segment_query\x20LIMIT\x200';_0x2a54b5[_0x52d124(0x14a)]&&console[_0x52d124(0x149)]('Schema\x20query:\x0a'+_0xc4da50);const _0xb8b3f9=await withQuerySpinner('Fetching\x20schema...',async _0xa13195=>{const _0x2494e1=_0x52d124,_0x5566db=await _0xc43095[_0x2494e1(0x13e)][_0x2494e1(0x139)](_0xc4da50,{'catalog':'td','schema':_0x2494e1(0x15a),'onJobId':_0x515a38=>{_0xa13195['setJobId'](_0x515a38);}});return _0x5566db;},{'verbose':_0x2a54b5[_0x52d124(0x14a)]});return buildSchemaResult(_0xb8b3f9['data']);}export function displayFieldsHumanReadable(_0x7ede8,_0x48d6d3){const _0x3683f2=a82_0x51f2,_0x5f0be2=_0x7ede8[_0x3683f2(0x15b)](_0x5dfbed=>_0x5dfbed[_0x3683f2(0x13c)]===_0x3683f2(0x137)),_0x31bec6=_0x7ede8[_0x3683f2(0x15b)](_0xb855c1=>_0xb855c1[_0x3683f2(0x13c)]==='behavior'),_0xe993fa=new Map();for(const _0x30e5ac of _0x5f0be2){const _0x302d54=_0x30e5ac[_0x3683f2(0x134)]||_0x30e5ac[_0x3683f2(0x144)]||_0x3683f2(0x13d),_0x1b7482=_0xe993fa['get'](_0x302d54);_0x1b7482?_0x1b7482['fields'][_0x3683f2(0x14b)](_0x30e5ac):_0xe993fa[_0x3683f2(0x15d)](_0x302d54,{'displayName':_0x302d54,'tableName':_0x30e5ac[_0x3683f2(0x144)],'fields':[_0x30e5ac]});}const _0x4bf3cc=new Map();for(const _0x348f4d of _0x31bec6){const _0x14bcda=_0x348f4d[_0x3683f2(0x143)]||'Unknown',_0x266fd1=_0x4bf3cc[_0x3683f2(0x14d)](_0x14bcda)||[];_0x266fd1[_0x3683f2(0x14b)](_0x348f4d),_0x4bf3cc[_0x3683f2(0x15d)](_0x14bcda,_0x266fd1);}console[_0x3683f2(0x149)]('\x0a'+a82_0x120e3d['bold'](_0x48d6d3));if(_0xe993fa[_0x3683f2(0x12f)]>0x0){console[_0x3683f2(0x149)]('\x0a'+a82_0x120e3d[_0x3683f2(0x13b)](_0x3683f2(0x12d)));const _0x2d3e9d=[..._0xe993fa[_0x3683f2(0x152)]()][_0x3683f2(0x140)]((_0x699187,_0x164b64)=>_0x699187[0x0][_0x3683f2(0x138)](_0x164b64[0x0]));for(const [,_0x51170f]of _0x2d3e9d){const _0x3d49e1=_0x51170f[_0x3683f2(0x147)]&&_0x51170f['tableName']!==_0x51170f[_0x3683f2(0x13a)]?'\x20'+a82_0x120e3d['dim']('('+_0x51170f[_0x3683f2(0x147)]+')'):'';console[_0x3683f2(0x149)]('\x20\x20'+a82_0x120e3d[_0x3683f2(0x15c)](_0x51170f[_0x3683f2(0x13a)])+_0x3d49e1);const _0x5bcb05=[..._0x51170f['fields']][_0x3683f2(0x140)]((_0x4126d1,_0x166f94)=>_0x4126d1['name'][_0x3683f2(0x138)](_0x166f94['name']));for(const _0x38a55b of _0x5bcb05){const _0x8d457=_0x38a55b[_0x3683f2(0x13f)]&&_0x38a55b[_0x3683f2(0x13f)]!==_0x38a55b[_0x3683f2(0x130)]?'\x20'+a82_0x120e3d[_0x3683f2(0x13b)]('('+_0x38a55b['parentColumn']+')'):'';console[_0x3683f2(0x149)](_0x3683f2(0x146)+_0x38a55b[_0x3683f2(0x130)]+_0x8d457+':\x20'+a82_0x120e3d[_0x3683f2(0x14c)](_0x38a55b[_0x3683f2(0x157)]));}}}if(_0x4bf3cc[_0x3683f2(0x12f)]>0x0){console[_0x3683f2(0x149)]('\x0a'+a82_0x120e3d[_0x3683f2(0x13b)]('Behaviors'));const _0x187d64=[..._0x4bf3cc[_0x3683f2(0x152)]()][_0x3683f2(0x140)]((_0x811fd8,_0x2b2702)=>_0x811fd8[0x0]['localeCompare'](_0x2b2702[0x0]));for(const [_0x4915e7,_0x12595d]of _0x187d64){const _0xaf5c4b=_0x12595d[0x0],_0x11980b=_0xaf5c4b?.[_0x3683f2(0x144)]||'';console['error']('\x20\x20'+a82_0x120e3d[_0x3683f2(0x15c)](_0x4915e7)+(_0x11980b?'\x20'+a82_0x120e3d[_0x3683f2(0x13b)]('('+_0x11980b+')'):''));const _0x2255ba=[..._0x12595d][_0x3683f2(0x140)]((_0x464596,_0x46d9b9)=>_0x464596['name'][_0x3683f2(0x138)](_0x46d9b9['name']));for(const _0x4153 of _0x2255ba){const _0xe60ced=_0x4153[_0x3683f2(0x130)][_0x3683f2(0x150)](_0x4915e7+'.')?_0x4153[_0x3683f2(0x130)]['slice'](_0x4915e7[_0x3683f2(0x12e)]+0x1):_0x4153[_0x3683f2(0x130)],_0x18d63c=_0x4153['parentColumn']&&_0x4153[_0x3683f2(0x13f)]!==_0xe60ced?'\x20'+a82_0x120e3d[_0x3683f2(0x13b)]('('+_0x4153[_0x3683f2(0x13f)]+')'):'';console[_0x3683f2(0x149)](_0x3683f2(0x146)+_0xe60ced+_0x18d63c+':\x20'+a82_0x120e3d[_0x3683f2(0x14c)](_0x4153['type']));}}}console[_0x3683f2(0x149)]('');}
1
+ (function(_0x5665d2,_0x3b25b8){const _0x42efde=a82_0x4f69,_0x2c7a20=_0x5665d2();while(!![]){try{const _0x14a94=parseInt(_0x42efde(0xa3))/0x1+parseInt(_0x42efde(0xa0))/0x2+parseInt(_0x42efde(0x9e))/0x3+parseInt(_0x42efde(0x9a))/0x4*(-parseInt(_0x42efde(0x87))/0x5)+parseInt(_0x42efde(0x9c))/0x6*(-parseInt(_0x42efde(0x99))/0x7)+-parseInt(_0x42efde(0x9f))/0x8+-parseInt(_0x42efde(0x8d))/0x9*(-parseInt(_0x42efde(0x8e))/0xa);if(_0x14a94===_0x3b25b8)break;else _0x2c7a20['push'](_0x2c7a20['shift']());}catch(_0x3d4d67){_0x2c7a20['push'](_0x2c7a20['shift']());}}}(a82_0x5d0b,0xaca09));import a82_0x228448 from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x31c0ba){const _0x261b03=a82_0x4f69,_0xdf7a56=_0x31c0ba[_0x261b03(0x9b)][_0x261b03(0x92)](_0xa35d1e=>({'column_name':_0xa35d1e[_0x261b03(0xad)],'column_type':_0xa35d1e[_0x261b03(0x86)],'null':_0x261b03(0xb1),'key':null,'default':null,'extra':null}));return{..._0x31c0ba,'columns':[{'name':_0x261b03(0xaf),'type':'varchar'},{'name':_0x261b03(0xae),'type':_0x261b03(0x85)},{'name':_0x261b03(0x8b),'type':_0x261b03(0x85)},{'name':'key','type':_0x261b03(0x85)},{'name':'default','type':'varchar'},{'name':'extra','type':'varchar'}],'data':_0xdf7a56};}export async function executeSchemaQuery(_0x3790f1,_0x2390bf,_0x20a224){const _0x2c53c2=a82_0x4f69,_0x5097e7=_0x3790f1['trim']()['replace'](/;+$/,''),_0x293ba0=_0x2c53c2(0xa6)+_0x5097e7+_0x2c53c2(0xaa);_0x20a224[_0x2c53c2(0x93)]&&console[_0x2c53c2(0x96)](_0x2c53c2(0x95)+_0x293ba0);const _0x39ae34=await withQuerySpinner('Fetching\x20schema...',async _0x3e9e3a=>{const _0x5c944c=_0x2c53c2,_0x91e52d=await _0x2390bf[_0x5c944c(0xa9)][_0x5c944c(0x8c)](_0x293ba0,{'catalog':'td','schema':_0x5c944c(0x83),'onJobId':_0x384e77=>{const _0x215aef=_0x5c944c;_0x3e9e3a[_0x215aef(0x90)](_0x384e77);}});return _0x91e52d;},{'verbose':_0x20a224[_0x2c53c2(0x93)]});return buildSchemaResult(_0x39ae34[_0x2c53c2(0x84)]);}export function displayFieldsHumanReadable(_0x5bc354,_0x573152){const _0x37fbfc=a82_0x4f69,_0x5aff36=_0x5bc354['filter'](_0x1c3bf3=>_0x1c3bf3[_0x37fbfc(0x91)]==='attribute'),_0x29fabf=_0x5bc354[_0x37fbfc(0xac)](_0x4d522a=>_0x4d522a['source']===_0x37fbfc(0xa1)),_0x4d7a02=new Map();for(const _0x526196 of _0x5aff36){const _0x16cdb0=_0x526196[_0x37fbfc(0x8a)]||_0x526196[_0x37fbfc(0xa7)]||_0x37fbfc(0x98),_0x29900f=_0x4d7a02[_0x37fbfc(0xa2)](_0x16cdb0);_0x29900f?_0x29900f[_0x37fbfc(0xb2)][_0x37fbfc(0x94)](_0x526196):_0x4d7a02['set'](_0x16cdb0,{'displayName':_0x16cdb0,'tableName':_0x526196[_0x37fbfc(0xa7)],'fields':[_0x526196]});}const _0x13231f=new Map();for(const _0x28c4ed of _0x29fabf){const _0x561e75=_0x28c4ed[_0x37fbfc(0xa8)]||_0x37fbfc(0x98),_0x38a4c8=_0x13231f['get'](_0x561e75)||[];_0x38a4c8[_0x37fbfc(0x94)](_0x28c4ed),_0x13231f[_0x37fbfc(0x89)](_0x561e75,_0x38a4c8);}console[_0x37fbfc(0x96)]('\x0a'+a82_0x228448['bold'](_0x573152));if(_0x4d7a02[_0x37fbfc(0xab)]>0x0){console[_0x37fbfc(0x96)]('\x0a'+a82_0x228448['dim'](_0x37fbfc(0xa5)));const _0x2ebe56=[..._0x4d7a02[_0x37fbfc(0xa4)]()]['sort']((_0x185b3d,_0x34e51c)=>_0x185b3d[0x0][_0x37fbfc(0x8f)](_0x34e51c[0x0]));for(const [,_0x85375a]of _0x2ebe56){const _0x228230=_0x85375a[_0x37fbfc(0x97)]&&_0x85375a[_0x37fbfc(0x97)]!==_0x85375a['displayName']?'\x20'+a82_0x228448['dim']('('+_0x85375a[_0x37fbfc(0x97)]+')'):'';console['error']('\x20\x20'+a82_0x228448[_0x37fbfc(0x9d)](_0x85375a[_0x37fbfc(0xb5)])+_0x228230);const _0x90a6ef=[..._0x85375a[_0x37fbfc(0xb2)]][_0x37fbfc(0xb0)]((_0x4d8fe6,_0x1f711d)=>_0x4d8fe6[_0x37fbfc(0xad)][_0x37fbfc(0x8f)](_0x1f711d[_0x37fbfc(0xad)]));for(const _0x2c917e of _0x90a6ef){const _0x163698=_0x2c917e[_0x37fbfc(0x88)]&&_0x2c917e['parentColumn']!==_0x2c917e['name']?'\x20'+a82_0x228448['dim']('('+_0x2c917e[_0x37fbfc(0x88)]+')'):'';console[_0x37fbfc(0x96)]('\x20\x20\x20\x20'+_0x2c917e[_0x37fbfc(0xad)]+_0x163698+':\x20'+a82_0x228448[_0x37fbfc(0x81)](_0x2c917e['type']));}}}if(_0x13231f[_0x37fbfc(0xab)]>0x0){console[_0x37fbfc(0x96)]('\x0a'+a82_0x228448[_0x37fbfc(0xb3)]('Behaviors'));const _0x2085a7=[..._0x13231f[_0x37fbfc(0xa4)]()]['sort']((_0x5ebc38,_0xed9bb5)=>_0x5ebc38[0x0][_0x37fbfc(0x8f)](_0xed9bb5[0x0]));for(const [_0x49dc44,_0x40c477]of _0x2085a7){const _0x4ab01f=_0x40c477[0x0],_0x51d037=_0x4ab01f?.['parentTableName']||'';console['error']('\x20\x20'+a82_0x228448[_0x37fbfc(0x9d)](_0x49dc44)+(_0x51d037?'\x20'+a82_0x228448[_0x37fbfc(0xb3)]('('+_0x51d037+')'):''));const _0x649881=[..._0x40c477][_0x37fbfc(0xb0)]((_0x1b84ce,_0x5e9a5d)=>_0x1b84ce[_0x37fbfc(0xad)][_0x37fbfc(0x8f)](_0x5e9a5d[_0x37fbfc(0xad)]));for(const _0x201d6f of _0x649881){const _0x1df2b1=_0x201d6f[_0x37fbfc(0xad)][_0x37fbfc(0xb4)](_0x49dc44+'.')?_0x201d6f[_0x37fbfc(0xad)]['slice'](_0x49dc44[_0x37fbfc(0x82)]+0x1):_0x201d6f[_0x37fbfc(0xad)],_0x206825=_0x201d6f[_0x37fbfc(0x88)]&&_0x201d6f[_0x37fbfc(0x88)]!==_0x1df2b1?'\x20'+a82_0x228448[_0x37fbfc(0xb3)]('('+_0x201d6f['parentColumn']+')'):'';console[_0x37fbfc(0x96)]('\x20\x20\x20\x20'+_0x1df2b1+_0x206825+':\x20'+a82_0x228448[_0x37fbfc(0x81)](_0x201d6f[_0x37fbfc(0x86)]));}}}console['error']('');}function a82_0x4f69(_0x7b5bca,_0xcd92fe){const _0x5d0bfe=a82_0x5d0b();return a82_0x4f69=function(_0x4f694c,_0x5a92f8){_0x4f694c=_0x4f694c-0x81;let _0x125388=_0x5d0bfe[_0x4f694c];return _0x125388;},a82_0x4f69(_0x7b5bca,_0xcd92fe);}function a82_0x5d0b(){const _0x4bbbe5=['information_schema','data','varchar','type','25PJrWRs','parentColumn','set','groupingName','null','execute','15750LGaVXW','3640PkORzZ','localeCompare','setJobId','source','map','verbose','push','Schema\x20query:\x0a','error','tableName','Unknown','4879Nvwupv','617444mSZIBI','columns','5952TBBiHL','bold','1664589pLCfXG','2475840YlDLfa','2032748bqbbUw','behavior','get','271553sOUaik','entries','Attributes','SELECT\x20*\x20FROM\x20(\x0a','parentTableName','behaviorName','query','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','size','filter','name','column_type','column_name','sort','YES','fields','dim','startsWith','displayName','cyan','length'];a82_0x5d0b=function(){return _0x4bbbe5;};return a82_0x5d0b();}
@@ -1 +1 @@
1
- (function(_0x4a9c2c,_0x55aa9f){const _0x124b3c=a83_0x21fa,_0x4a69c6=_0x4a9c2c();while(!![]){try{const _0x420a9f=parseInt(_0x124b3c(0x173))/0x1*(parseInt(_0x124b3c(0x182))/0x2)+-parseInt(_0x124b3c(0x181))/0x3+parseInt(_0x124b3c(0x17d))/0x4*(parseInt(_0x124b3c(0x184))/0x5)+-parseInt(_0x124b3c(0x175))/0x6+-parseInt(_0x124b3c(0x17a))/0x7*(parseInt(_0x124b3c(0x179))/0x8)+parseInt(_0x124b3c(0x177))/0x9*(parseInt(_0x124b3c(0x180))/0xa)+parseInt(_0x124b3c(0x17f))/0xb;if(_0x420a9f===_0x55aa9f)break;else _0x4a69c6['push'](_0x4a69c6['shift']());}catch(_0x495b2a){_0x4a69c6['push'](_0x4a69c6['shift']());}}}(a83_0x3760,0xaa5fd));import*as a83_0x5cdb97 from'node:fs';import*as a83_0xd6947b from'node:path';export function setSecureFilePermissions(_0x24e46e){const _0xeeda57=a83_0x21fa;try{a83_0x5cdb97['chmodSync'](_0x24e46e,0x180);}catch{console[_0xeeda57(0x178)](_0xeeda57(0x171)+_0x24e46e);}}function a83_0x21fa(_0x2a09e1,_0x434ad5){const _0x376041=a83_0x3760();return a83_0x21fa=function(_0x21fa24,_0x274387){_0x21fa24=_0x21fa24-0x170;let _0x7fb9f3=_0x376041[_0x21fa24];return _0x7fb9f3;},a83_0x21fa(_0x2a09e1,_0x434ad5);}export function setSecureDirectoryPermissions(_0x199814){const _0x3113a2=a83_0x21fa;try{a83_0x5cdb97['chmodSync'](_0x199814,0x1c0);}catch{console[_0x3113a2(0x178)](_0x3113a2(0x171)+_0x199814);}}function a83_0x3760(){const _0x10ecb1=['Should\x20be\x200600\x20or\x20more\x20restrictive.','4azVdYy',').\x20','602454oVuHRi','dirname','3465PEjUnN','warn','26304elXUmH','329LCDGrX','statSync','mkdirSync','456860sICSij','toString','4236914ezLTcv','3310VKRfcq','3285783QHWOuk','653510BRRAtq','writeFileSync','10qOXdlb','mode','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'];a83_0x3760=function(){return _0x10ecb1;};return a83_0x3760();}export function createSecureDirectory(_0x29f30a){const _0x85bc4f=a83_0x21fa;!a83_0x5cdb97['existsSync'](_0x29f30a)&&(a83_0x5cdb97[_0x85bc4f(0x17c)](_0x29f30a,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x29f30a));}export function validateSecureFilePermissions(_0x1eca46){const _0xb1650a=a83_0x21fa;try{const _0x48a114=a83_0x5cdb97[_0xb1650a(0x17b)](_0x1eca46),_0x335ede=_0x48a114[_0xb1650a(0x170)]&0x1ff,_0x2bc4c8=(_0x335ede&0x3f)!==0x0;if(_0x2bc4c8)return console['warn']('Warning:\x20'+_0x1eca46+'\x20has\x20insecure\x20permissions\x20('+_0x335ede[_0xb1650a(0x17e)](0x8)+_0xb1650a(0x174)+_0xb1650a(0x172)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x36aa79,_0x9b8a7d){const _0x4bf7be=a83_0x21fa,_0x555420=a83_0xd6947b[_0x4bf7be(0x176)](_0x36aa79);createSecureDirectory(_0x555420),a83_0x5cdb97[_0x4bf7be(0x183)](_0x36aa79,_0x9b8a7d,{'mode':0x180}),setSecureFilePermissions(_0x36aa79);}
1
+ (function(_0x420a38,_0x4dc049){const _0x2bdcc5=a83_0x4c30,_0x2cc1ce=_0x420a38();while(!![]){try{const _0x59a877=parseInt(_0x2bdcc5(0x193))/0x1+parseInt(_0x2bdcc5(0x183))/0x2+parseInt(_0x2bdcc5(0x18f))/0x3+parseInt(_0x2bdcc5(0x18c))/0x4+-parseInt(_0x2bdcc5(0x18e))/0x5*(parseInt(_0x2bdcc5(0x187))/0x6)+parseInt(_0x2bdcc5(0x181))/0x7+-parseInt(_0x2bdcc5(0x192))/0x8*(parseInt(_0x2bdcc5(0x186))/0x9);if(_0x59a877===_0x4dc049)break;else _0x2cc1ce['push'](_0x2cc1ce['shift']());}catch(_0x540461){_0x2cc1ce['push'](_0x2cc1ce['shift']());}}}(a83_0x57f8,0xe3f6f));import*as a83_0xaaf060 from'node:fs';import*as a83_0x135b49 from'node:path';function a83_0x4c30(_0x3dbd2d,_0x3eede6){const _0x57f86f=a83_0x57f8();return a83_0x4c30=function(_0x4c302c,_0x559544){_0x4c302c=_0x4c302c-0x181;let _0x4edcba=_0x57f86f[_0x4c302c];return _0x4edcba;},a83_0x4c30(_0x3dbd2d,_0x3eede6);}export function setSecureFilePermissions(_0x5003d7){const _0x554bae=a83_0x4c30;try{a83_0xaaf060[_0x554bae(0x188)](_0x5003d7,0x180);}catch{console[_0x554bae(0x184)](_0x554bae(0x18b)+_0x5003d7);}}export function setSecureDirectoryPermissions(_0xdd1a72){const _0x453157=a83_0x4c30;try{a83_0xaaf060[_0x453157(0x188)](_0xdd1a72,0x1c0);}catch{console[_0x453157(0x184)](_0x453157(0x18b)+_0xdd1a72);}}function a83_0x57f8(){const _0x1e87be=['toString','Should\x20be\x200600\x20or\x20more\x20restrictive.','16ArberV','365863QwZJPM','458115efLYye','writeFileSync','1166212rcafUd','warn','statSync','2757933obgTPs','7587948oSTDvM','chmodSync','mode','\x20has\x20insecure\x20permissions\x20(','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','6449152sPyaXl',').\x20','5XCICVu','553719PXFdiJ'];a83_0x57f8=function(){return _0x1e87be;};return a83_0x57f8();}export function createSecureDirectory(_0xb654cb){!a83_0xaaf060['existsSync'](_0xb654cb)&&(a83_0xaaf060['mkdirSync'](_0xb654cb,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xb654cb));}export function validateSecureFilePermissions(_0x4328fd){const _0x44f0e3=a83_0x4c30;try{const _0x21a7f2=a83_0xaaf060[_0x44f0e3(0x185)](_0x4328fd),_0x5772ca=_0x21a7f2[_0x44f0e3(0x189)]&0x1ff,_0x1f7bd7=(_0x5772ca&0x3f)!==0x0;if(_0x1f7bd7)return console[_0x44f0e3(0x184)]('Warning:\x20'+_0x4328fd+_0x44f0e3(0x18a)+_0x5772ca[_0x44f0e3(0x190)](0x8)+_0x44f0e3(0x18d)+_0x44f0e3(0x191)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x29d3f7,_0x251d46){const _0x6ee2ad=a83_0x4c30,_0x56625a=a83_0x135b49['dirname'](_0x29d3f7);createSecureDirectory(_0x56625a),a83_0xaaf060[_0x6ee2ad(0x182)](_0x29d3f7,_0x251d46,{'mode':0x180}),setSecureFilePermissions(_0x29d3f7);}
@@ -1 +1 @@
1
- (function(_0x3bbdab,_0x33a957){const _0x1bc697=a84_0x5df4,_0x33ffbd=_0x3bbdab();while(!![]){try{const _0x2391a5=parseInt(_0x1bc697(0x194))/0x1*(parseInt(_0x1bc697(0x18f))/0x2)+parseInt(_0x1bc697(0x18b))/0x3*(-parseInt(_0x1bc697(0x192))/0x4)+parseInt(_0x1bc697(0x196))/0x5+parseInt(_0x1bc697(0x195))/0x6+-parseInt(_0x1bc697(0x188))/0x7+parseInt(_0x1bc697(0x191))/0x8+parseInt(_0x1bc697(0x198))/0x9;if(_0x2391a5===_0x33a957)break;else _0x33ffbd['push'](_0x33ffbd['shift']());}catch(_0x1ea904){_0x33ffbd['push'](_0x33ffbd['shift']());}}}(a84_0x5416,0x5096b));function a84_0x5416(){const _0x100a05=['text','3168952ewDNKR','592EUXkNI','pop','445012DGrNab','967956eGECHC','173160ddqBRH','tsv','954126yQIgyw','split','txt','3522736TqqIGC','json','tab','6279ALMHFm','jsonl','toLowerCase','table','2eLCrax'];a84_0x5416=function(){return _0x100a05;};return a84_0x5416();}function a84_0x5df4(_0x27d5fb,_0x3cfea5){const _0x541642=a84_0x5416();return a84_0x5df4=function(_0x5df467,_0x5926ae){_0x5df467=_0x5df467-0x188;let _0x1acb8a=_0x541642[_0x5df467];return _0x1acb8a;},a84_0x5df4(_0x27d5fb,_0x3cfea5);}export function detectFormatFromExtension(_0x4a867a){const _0x3ca0f1=a84_0x5df4,_0x406799=_0x4a867a[_0x3ca0f1(0x18d)]()[_0x3ca0f1(0x199)]('.')[_0x3ca0f1(0x193)]();switch(_0x406799){case'json':return _0x3ca0f1(0x189);case'jsonl':return _0x3ca0f1(0x18c);case _0x3ca0f1(0x197):case _0x3ca0f1(0x18a):return _0x3ca0f1(0x197);case _0x3ca0f1(0x19a):case _0x3ca0f1(0x190):return _0x3ca0f1(0x18e);default:return undefined;}}export function resolveOutputFormat(_0x2f5b12,_0x24efd1,_0x5418c9){if(_0x2f5b12)return _0x2f5b12;if(_0x24efd1){const _0x28ad9e=detectFormatFromExtension(_0x24efd1);if(_0x28ad9e)return _0x28ad9e;}return _0x5418c9;}
1
+ function a84_0x12a7(_0x20c877,_0x1abf80){const _0x146992=a84_0x1469();return a84_0x12a7=function(_0x12a790,_0xb437eb){_0x12a790=_0x12a790-0x9e;let _0x2c56a0=_0x146992[_0x12a790];return _0x2c56a0;},a84_0x12a7(_0x20c877,_0x1abf80);}(function(_0xed04d8,_0x1f3a63){const _0x4e2398=a84_0x12a7,_0x564517=_0xed04d8();while(!![]){try{const _0x397d75=parseInt(_0x4e2398(0xad))/0x1*(parseInt(_0x4e2398(0xa0))/0x2)+-parseInt(_0x4e2398(0xae))/0x3*(parseInt(_0x4e2398(0xa6))/0x4)+-parseInt(_0x4e2398(0xa4))/0x5+-parseInt(_0x4e2398(0xaa))/0x6+parseInt(_0x4e2398(0xb0))/0x7+-parseInt(_0x4e2398(0xa2))/0x8*(-parseInt(_0x4e2398(0xac))/0x9)+parseInt(_0x4e2398(0xaf))/0xa;if(_0x397d75===_0x1f3a63)break;else _0x564517['push'](_0x564517['shift']());}catch(_0x5b7ade){_0x564517['push'](_0x564517['shift']());}}}(a84_0x1469,0xcde67));export function detectFormatFromExtension(_0x5ec5ad){const _0x182450=a84_0x12a7,_0x1f7822=_0x5ec5ad[_0x182450(0xa9)]()[_0x182450(0xa7)]('.')[_0x182450(0x9f)]();switch(_0x1f7822){case _0x182450(0xa3):return _0x182450(0xa3);case _0x182450(0xa1):return _0x182450(0xa1);case _0x182450(0xa5):case _0x182450(0xab):return _0x182450(0xa5);case _0x182450(0xa8):case'text':return _0x182450(0x9e);default:return undefined;}}function a84_0x1469(){const _0x1469c2=['txt','toLowerCase','3312276cQdzZQ','tab','43695NkgfNh','472159hTfZeH','4659933yHjQUQ','14105270wFxlxT','2113538lULhSu','table','pop','6jTbCeX','jsonl','304aPPCIu','json','1823520OrnmIH','tsv','4ygnBOM','split'];a84_0x1469=function(){return _0x1469c2;};return a84_0x1469();}export function resolveOutputFormat(_0x2525d2,_0x4b5a0c,_0xcba76d){if(_0x2525d2)return _0x2525d2;if(_0x4b5a0c){const _0x548c14=detectFormatFromExtension(_0x4b5a0c);if(_0x548c14)return _0x548c14;}return _0xcba76d;}
@@ -1 +1 @@
1
- (function(_0xfcd1b7,_0x4432ab){const _0x23e166=a85_0x2fe6,_0x253f02=_0xfcd1b7();while(!![]){try{const _0x2bfbe0=parseInt(_0x23e166(0x15f))/0x1*(-parseInt(_0x23e166(0x162))/0x2)+parseInt(_0x23e166(0x176))/0x3+parseInt(_0x23e166(0x187))/0x4+-parseInt(_0x23e166(0x17e))/0x5+parseInt(_0x23e166(0x158))/0x6+-parseInt(_0x23e166(0x15e))/0x7*(-parseInt(_0x23e166(0x174))/0x8)+-parseInt(_0x23e166(0x163))/0x9*(-parseInt(_0x23e166(0x15a))/0xa);if(_0x2bfbe0===_0x4432ab)break;else _0x253f02['push'](_0x253f02['shift']());}catch(_0x52ed58){_0x253f02['push'](_0x253f02['shift']());}}}(a85_0xfcf0,0xcae5f));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 _0x1d55f0=a85_0x2fe6;return process[_0x1d55f0(0x17a)][_0x1d55f0(0x172)]||Infinity;}export function formatAsTable(_0x2bda73,_0x18a3df=DEFAULT_MAX_DISPLAY_ROWS,_0x49cb14=![],_0x45983c={}){const _0x5a2a38=a85_0x2fe6;if(_0x2bda73[_0x5a2a38(0x157)][_0x5a2a38(0x15c)]===0x0)return _0x5a2a38(0x182);const _0x16f968=_0x2bda73[_0x5a2a38(0x172)][_0x5a2a38(0x179)](_0x168c64=>_0x168c64['name']),_0x565139=_0x2bda73['columns'][_0x5a2a38(0x179)](_0x2c65d6=>simplifyType(_0x2c65d6[_0x5a2a38(0x161)])),_0x25ab34=_0x2bda73[_0x5a2a38(0x157)]['slice'](0x0,_0x18a3df),_0x4137bb=_0x2bda73['data'][_0x5a2a38(0x15c)],_0x2ef410=_0x4137bb>_0x18a3df,_0x5e3fbd=[],_0x406011=getTerminalWidth(),_0x5097ac=_0x406011!==Infinity,_0x588e8d=0x32;let _0x539e6f=_0x16f968[_0x5a2a38(0x179)]((_0x58583e,_0x39b1be)=>{const _0x4f696b=_0x5a2a38,_0x1e177a=stringWidth(_0x565139[_0x39b1be]),_0x3ae5e8=Math['max'](..._0x25ab34[_0x4f696b(0x179)](_0xd6aa7d=>{const _0x5e4105=_0xd6aa7d[_0x58583e];return stringWidth(formatValue(_0x5e4105));})),_0x2c9ba0=Math[_0x4f696b(0x175)](stringWidth(_0x58583e),_0x1e177a,_0x3ae5e8);return _0x49cb14?_0x2c9ba0:Math[_0x4f696b(0x15b)](_0x2c9ba0,_0x588e8d);});if(_0x5097ac&&!_0x49cb14&&_0x16f968[_0x5a2a38(0x15c)]>0x0){const _0x139163=_0x2fdc3f=>{let _0x7f05dd=0x1;for(const _0x2e2776 of _0x2fdc3f){_0x7f05dd+=_0x2e2776+0x3;}return _0x7f05dd+0x1;};let _0x4f0d0d=_0x139163(_0x539e6f);if(_0x4f0d0d>_0x406011){const _0x3d1e22=0x3;for(let _0x19561e=_0x539e6f['length']-0x1;_0x19561e>=0x0;_0x19561e--){_0x4f0d0d=_0x139163(_0x539e6f);if(_0x4f0d0d<=_0x406011)break;const _0x28496a=_0x539e6f[_0x19561e],_0x223bae=_0x4f0d0d-_0x406011,_0x4974f2=_0x28496a-_0x3d1e22,_0xeeb74f=Math[_0x5a2a38(0x15b)](_0x223bae,_0x4974f2);_0xeeb74f>0x0&&(_0x539e6f[_0x19561e]=_0x28496a-_0xeeb74f);}}}const _0x2ad53c=_0x16f968,_0x249dd3=_0x565139,_0x3ccd09=_0x539e6f,_0x3ca754=_0x539e6f;_0x5e3fbd[_0x5a2a38(0x189)](colorBorder('┌'+_0x3ca754[_0x5a2a38(0x179)](_0x428bdf=>'─'[_0x5a2a38(0x166)](_0x428bdf+0x2))[_0x5a2a38(0x185)]('┬')+'┐',_0x45983c));const _0x27b61f=_0x2ad53c[_0x5a2a38(0x179)]((_0x1e7154,_0x26e11e)=>centerAlign(_0x1e7154,_0x3ccd09[_0x26e11e]));_0x5e3fbd['push'](colorBorder('│',_0x45983c)+'\x20'+_0x27b61f[_0x5a2a38(0x185)]('\x20'+colorBorder('│',_0x45983c)+'\x20')+'\x20'+colorBorder('│',_0x45983c));const _0x154a9e=_0x249dd3[_0x5a2a38(0x179)]((_0xe5c72a,_0x10dc52)=>colorType(centerAlign(_0xe5c72a,_0x3ccd09[_0x10dc52]),_0x45983c));_0x5e3fbd['push'](colorBorder('│',_0x45983c)+'\x20'+_0x154a9e[_0x5a2a38(0x185)]('\x20'+colorBorder('│',_0x45983c)+'\x20')+'\x20'+colorBorder('│',_0x45983c)),_0x5e3fbd['push'](colorBorder('├'+_0x3ca754[_0x5a2a38(0x179)](_0x58dcbb=>'─'[_0x5a2a38(0x166)](_0x58dcbb+0x2))[_0x5a2a38(0x185)]('┼')+'┤',_0x45983c));const _0x11cb8d=(_0x66db84,_0x2bf798)=>{const _0x24c5fd=_0x5a2a38,_0x397269=stringWidth(_0x66db84);if(_0x397269<=_0x2bf798)return _0x66db84;let _0x50ff15=_0x66db84;while(stringWidth(_0x50ff15+'…')>_0x2bf798&&_0x50ff15['length']>0x0){_0x50ff15=_0x50ff15[_0x24c5fd(0x170)](0x0,-0x1);}return _0x50ff15+'…';};_0x25ab34[_0x5a2a38(0x17f)](_0x578579=>{const _0x27b2fa=_0x5a2a38,_0x46ddea=_0x16f968[_0x27b2fa(0x179)]((_0xdc4677,_0x30493f)=>{const _0x16a600=_0x27b2fa,_0x1463f8=_0x578579[_0xdc4677],_0x74124f=formatValue(_0x1463f8),_0x1d729c=_0x3ccd09[_0x30493f],_0x1a0bc4=_0x11cb8d(_0x74124f,_0x1d729c),_0x3533da=typeof _0x1463f8===_0x16a600(0x160)||typeof _0x1463f8==='string'&&/^-?\d+$/[_0x16a600(0x16a)](_0x1463f8);return _0x3533da?padStart(_0x1a0bc4,_0x1d729c):padEnd(_0x1a0bc4,_0x1d729c);});_0x5e3fbd['push'](colorBorder('│',_0x45983c)+'\x20'+_0x46ddea['join']('\x20'+colorBorder('│',_0x45983c)+'\x20')+'\x20'+colorBorder('│',_0x45983c));});const _0x23935a=_0x3ca754[_0x5a2a38(0x165)]((_0x1fd7cc,_0x4a6e7e)=>_0x1fd7cc+_0x4a6e7e+0x3,-0x1);_0x5e3fbd[_0x5a2a38(0x189)](colorBorder('├'+_0x3ca754[_0x5a2a38(0x179)](_0x2cd98a=>'─'['repeat'](_0x2cd98a+0x2))[_0x5a2a38(0x185)]('┴')+'┤',_0x45983c));let _0x47fc53;_0x2ef410?_0x47fc53=_0x4137bb+_0x5a2a38(0x173)+_0x18a3df+_0x5a2a38(0x18b):_0x47fc53=_0x4137bb+_0x5a2a38(0x16f)+(_0x4137bb===0x1?'':'s');const _0x19722a=_0x47fc53[_0x5a2a38(0x16c)](_0x23935a-0x2);return _0x5e3fbd['push'](colorBorder('│',_0x45983c)+'\x20'+_0x19722a+'\x20'+colorBorder('│',_0x45983c)),_0x5e3fbd['push'](colorBorder('└'+'─'[_0x5a2a38(0x166)](_0x23935a)+'┘',_0x45983c)),_0x5e3fbd[_0x5a2a38(0x185)]('\x0a');}function a85_0x2fe6(_0x31b267,_0x9e0301){const _0xfcf02b=a85_0xfcf0();return a85_0x2fe6=function(_0x2fe674,_0x13c3f0){_0x2fe674=_0x2fe674-0x156;let _0x5c38d1=_0xfcf02b[_0x2fe674];return _0x5c38d1;},a85_0x2fe6(_0x31b267,_0x9e0301);}function simplifyType(_0x2d663f){const _0xb3d926=a85_0x2fe6,_0x3a2ed4={'varchar':'string','bigint':_0xb3d926(0x18a),'integer':_0xb3d926(0x169),'double':_0xb3d926(0x186),'boolean':'bool','date':'date','timestamp':_0xb3d926(0x17b),'array':_0xb3d926(0x156),'map':_0xb3d926(0x179),'row':'row'},_0x4daec0=_0x2d663f[_0xb3d926(0x188)]();for(const [_0x1f3945,_0x1a3eb7]of Object[_0xb3d926(0x168)](_0x3a2ed4)){if(_0x4daec0[_0xb3d926(0x159)](_0x1f3945))return _0x1a3eb7;}return _0x2d663f[_0xb3d926(0x15c)]>0xa?_0x2d663f[_0xb3d926(0x167)](0x0,0xa):_0x2d663f;}export function formatAsJSON(_0x5a681c,_0x21421a={}){const _0x30a05d=a85_0x2fe6;if(_0x5a681c[_0x30a05d(0x157)][_0x30a05d(0x15c)]===0x0)return'[]';if(shouldUseColor(_0x21421a))return colorizeJSON(_0x5a681c[_0x30a05d(0x157)],_0x21421a);const _0x2aa82a=_0x5a681c[_0x30a05d(0x157)][_0x30a05d(0x179)](_0x2fc05d=>'\x20\x20'+JSON[_0x30a05d(0x181)](_0x2fc05d));return'[\x0a'+_0x2aa82a[_0x30a05d(0x185)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x2233da,_0x2be3cb={}){const _0x29ef45=a85_0x2fe6;if(_0x2233da['data'][_0x29ef45(0x15c)]===0x0)return'';if(shouldUseColor(_0x2be3cb))return _0x2233da[_0x29ef45(0x157)][_0x29ef45(0x179)](_0x361e3f=>colorizeJSONCompact(_0x361e3f,_0x2be3cb))[_0x29ef45(0x185)]('\x0a');return _0x2233da[_0x29ef45(0x157)]['map'](_0x1b261c=>JSON['stringify'](_0x1b261c))[_0x29ef45(0x185)]('\x0a');}export function formatAsTSV(_0x3011e6){const _0x131f2a=a85_0x2fe6;if(_0x3011e6[_0x131f2a(0x157)][_0x131f2a(0x15c)]===0x0)return'';const _0x5428d3=[],_0x466a95=_0x3011e6['columns']['map'](_0x243de6=>_0x243de6[_0x131f2a(0x164)]);return _0x5428d3[_0x131f2a(0x189)](_0x466a95[_0x131f2a(0x185)]('\x09')),_0x3011e6[_0x131f2a(0x157)][_0x131f2a(0x17f)](_0x85a6d7=>{const _0x4f90bb=_0x131f2a,_0xe019cf=_0x466a95[_0x4f90bb(0x179)](_0x56e842=>{const _0xb25e29=_0x85a6d7[_0x56e842];return formatValueForTSV(_0xb25e29);});_0x5428d3[_0x4f90bb(0x189)](_0xe019cf[_0x4f90bb(0x185)]('\x09'));}),_0x5428d3['join']('\x0a');}function formatValue(_0x504d85){const _0x1b2e8a=a85_0x2fe6;if(_0x504d85===null||_0x504d85===undefined)return'';if(typeof _0x504d85===_0x1b2e8a(0x177)){const _0x284ec4=_0x504d85[_0x1b2e8a(0x17c)](/\n/g,'\x5cn')[_0x1b2e8a(0x17c)](/\r/g,'\x5cr')[_0x1b2e8a(0x17c)](/\t/g,'\x5ct');return _0x284ec4;}if(typeof _0x504d85===_0x1b2e8a(0x160))return String(_0x504d85);if(typeof _0x504d85===_0x1b2e8a(0x180))return _0x504d85?_0x1b2e8a(0x171):'false';if(_0x504d85 instanceof Date)return _0x504d85[_0x1b2e8a(0x15d)]();if(typeof _0x504d85===_0x1b2e8a(0x16b))return JSON[_0x1b2e8a(0x181)](_0x504d85);return String(_0x504d85);}function a85_0xfcf0(){const _0x21fd0f=['2627100UQhhpk','toLowerCase','push','long','\x20shown)','array','data','203052mMXzZk','startsWith','1683970neFqcB','min','length','toISOString','2766085mXtMgN','606097BBjIkK','number','type','2BryNwd','9hVLNNP','name','reduce','repeat','substring','entries','int','test','object','padEnd','log','pow','\x20row','slice','true','columns','\x20rows\x20(','16TilJIw','max','2322888VlUdeY','string','table','map','stdout','timestamp','replace','json','4932260iigyeS','forEach','boolean','stringify','No\x20rows\x20returned','toFixed','toString','join','double'];a85_0xfcf0=function(){return _0x21fd0f;};return a85_0xfcf0();}function formatValueForTSV(_0x2b1fc1){const _0x58c26a=a85_0x2fe6;if(_0x2b1fc1===null||_0x2b1fc1===undefined)return'';if(typeof _0x2b1fc1===_0x58c26a(0x177))return _0x2b1fc1[_0x58c26a(0x17c)](/\t/g,'\x5ct')[_0x58c26a(0x17c)](/\n/g,'\x5cn');if(typeof _0x2b1fc1===_0x58c26a(0x160)||typeof _0x2b1fc1===_0x58c26a(0x180))return String(_0x2b1fc1);if(_0x2b1fc1 instanceof Date)return _0x2b1fc1[_0x58c26a(0x15d)]();if(typeof _0x2b1fc1===_0x58c26a(0x16b))return JSON[_0x58c26a(0x181)](_0x2b1fc1);return String(_0x2b1fc1);}export function formatQueryResult(_0x384663,_0x1adc58){const _0x2a1b85=a85_0x2fe6;switch(_0x1adc58){case _0x2a1b85(0x178):return formatAsTable(_0x384663);case _0x2a1b85(0x17d):return formatAsJSON(_0x384663);case'jsonl':return formatAsJSONL(_0x384663);case'tsv':return formatAsTSV(_0x384663);default:return formatAsJSON(_0x384663);}}export function formatBytes(_0x434cde){const _0x51cbda=a85_0x2fe6;if(_0x434cde===0x0)return'0\x20B';const _0xbdca67=['B','KB','MB','GB','TB'],_0x46e7a6=0x400,_0x47e72f=Math['floor'](Math['log'](_0x434cde)/Math[_0x51cbda(0x16d)](_0x46e7a6)),_0x4d4b89=_0x434cde/Math[_0x51cbda(0x16e)](_0x46e7a6,_0x47e72f),_0x1c9d68=_0x4d4b89>=0xa?0x1:0x2;return _0x4d4b89[_0x51cbda(0x183)](_0x1c9d68)+'\x20'+_0xbdca67[_0x47e72f];}export function formatRows(_0x18cdf9){const _0x1e98c2=a85_0x2fe6;if(_0x18cdf9==null)return'-';if(_0x18cdf9===0x0)return'0';if(_0x18cdf9<0x3e8)return _0x18cdf9[_0x1e98c2(0x184)]();const _0x38b678=['','K','M','B','T'],_0x547fb1=0x3e8,_0x19f59e=Math['floor'](Math[_0x1e98c2(0x16d)](_0x18cdf9)/Math['log'](_0x547fb1)),_0x128c00=_0x18cdf9/Math[_0x1e98c2(0x16e)](_0x547fb1,_0x19f59e),_0x2f79a2=_0x128c00>=0xa?0x1:0x2;return''+_0x128c00[_0x1e98c2(0x183)](_0x2f79a2)+_0x38b678[_0x19f59e];}
1
+ (function(_0x389c18,_0x5cb324){const _0x2bb74a=a85_0x2f90,_0x27df42=_0x389c18();while(!![]){try{const _0x2ad98a=parseInt(_0x2bb74a(0x1a6))/0x1+parseInt(_0x2bb74a(0x191))/0x2+parseInt(_0x2bb74a(0x1b6))/0x3*(parseInt(_0x2bb74a(0x19d))/0x4)+-parseInt(_0x2bb74a(0x1ad))/0x5*(-parseInt(_0x2bb74a(0x196))/0x6)+parseInt(_0x2bb74a(0x1b0))/0x7*(-parseInt(_0x2bb74a(0x1bc))/0x8)+parseInt(_0x2bb74a(0x19f))/0x9+-parseInt(_0x2bb74a(0x1b1))/0xa*(parseInt(_0x2bb74a(0x1a4))/0xb);if(_0x2ad98a===_0x5cb324)break;else _0x27df42['push'](_0x27df42['shift']());}catch(_0x3fa201){_0x27df42['push'](_0x27df42['shift']());}}}(a85_0x2966,0x3f8e1));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 _0x4b43a7=a85_0x2f90;return process['stdout'][_0x4b43a7(0x19b)]||Infinity;}export function formatAsTable(_0xbe4a88,_0x31a577=DEFAULT_MAX_DISPLAY_ROWS,_0x3b60ed=![],_0x352256={}){const _0x5a1c0a=a85_0x2f90;if(_0xbe4a88[_0x5a1c0a(0x1c5)]['length']===0x0)return _0x5a1c0a(0x1a2);const _0x88a09b=_0xbe4a88[_0x5a1c0a(0x19b)][_0x5a1c0a(0x1c6)](_0x27382f=>_0x27382f[_0x5a1c0a(0x1b5)]),_0x3b0419=_0xbe4a88[_0x5a1c0a(0x19b)][_0x5a1c0a(0x1c6)](_0x2271f4=>simplifyType(_0x2271f4[_0x5a1c0a(0x1a5)])),_0x261045=_0xbe4a88['data'][_0x5a1c0a(0x193)](0x0,_0x31a577),_0x3a0934=_0xbe4a88['data'][_0x5a1c0a(0x1c2)],_0x3e1d68=_0x3a0934>_0x31a577,_0x29d311=[],_0x11fef6=getTerminalWidth(),_0xb044af=_0x11fef6!==Infinity,_0x54bf22=0x32;let _0x160c0a=_0x88a09b[_0x5a1c0a(0x1c6)]((_0x24e307,_0x74f4af)=>{const _0x269bd8=_0x5a1c0a,_0x24df90=stringWidth(_0x3b0419[_0x74f4af]),_0x2800e4=Math['max'](..._0x261045[_0x269bd8(0x1c6)](_0x5c71e3=>{const _0x38bae6=_0x5c71e3[_0x24e307];return stringWidth(formatValue(_0x38bae6));})),_0x3f3c4e=Math[_0x269bd8(0x1be)](stringWidth(_0x24e307),_0x24df90,_0x2800e4);return _0x3b60ed?_0x3f3c4e:Math[_0x269bd8(0x1a9)](_0x3f3c4e,_0x54bf22);});if(_0xb044af&&!_0x3b60ed&&_0x88a09b[_0x5a1c0a(0x1c2)]>0x0){const _0x578c08=_0x30476d=>{let _0x1023b3=0x1;for(const _0x526540 of _0x30476d){_0x1023b3+=_0x526540+0x3;}return _0x1023b3+0x1;};let _0x345a18=_0x578c08(_0x160c0a);if(_0x345a18>_0x11fef6){const _0x35a60e=0x3;for(let _0x2f3015=_0x160c0a['length']-0x1;_0x2f3015>=0x0;_0x2f3015--){_0x345a18=_0x578c08(_0x160c0a);if(_0x345a18<=_0x11fef6)break;const _0x25fbde=_0x160c0a[_0x2f3015],_0x277c21=_0x345a18-_0x11fef6,_0x20f53c=_0x25fbde-_0x35a60e,_0x6223f8=Math['min'](_0x277c21,_0x20f53c);_0x6223f8>0x0&&(_0x160c0a[_0x2f3015]=_0x25fbde-_0x6223f8);}}}const _0x47aa74=_0x88a09b,_0x65c1fb=_0x3b0419,_0x1a2767=_0x160c0a,_0xbdf30c=_0x160c0a;_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('┌'+_0xbdf30c[_0x5a1c0a(0x1c6)](_0x366413=>'─'[_0x5a1c0a(0x1a7)](_0x366413+0x2))['join']('┬')+'┐',_0x352256));const _0x173457=_0x47aa74[_0x5a1c0a(0x1c6)]((_0x2aafc2,_0x19d49b)=>centerAlign(_0x2aafc2,_0x1a2767[_0x19d49b]));_0x29d311['push'](colorBorder('│',_0x352256)+'\x20'+_0x173457[_0x5a1c0a(0x1bb)]('\x20'+colorBorder('│',_0x352256)+'\x20')+'\x20'+colorBorder('│',_0x352256));const _0x56ee23=_0x65c1fb[_0x5a1c0a(0x1c6)]((_0x3b8832,_0x1b0f7c)=>colorType(centerAlign(_0x3b8832,_0x1a2767[_0x1b0f7c]),_0x352256));_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('│',_0x352256)+'\x20'+_0x56ee23[_0x5a1c0a(0x1bb)]('\x20'+colorBorder('│',_0x352256)+'\x20')+'\x20'+colorBorder('│',_0x352256)),_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('├'+_0xbdf30c[_0x5a1c0a(0x1c6)](_0x1ba2b5=>'─'[_0x5a1c0a(0x1a7)](_0x1ba2b5+0x2))[_0x5a1c0a(0x1bb)]('┼')+'┤',_0x352256));const _0x50f6b5=(_0x176dac,_0x57c636)=>{const _0x5129ba=_0x5a1c0a,_0x540d2b=stringWidth(_0x176dac);if(_0x540d2b<=_0x57c636)return _0x176dac;let _0x30a3ca=_0x176dac;while(stringWidth(_0x30a3ca+'…')>_0x57c636&&_0x30a3ca['length']>0x0){_0x30a3ca=_0x30a3ca[_0x5129ba(0x193)](0x0,-0x1);}return _0x30a3ca+'…';};_0x261045[_0x5a1c0a(0x190)](_0x121c5f=>{const _0x31d0db=_0x5a1c0a,_0x58c637=_0x88a09b['map']((_0x1359d5,_0x30783c)=>{const _0x259595=a85_0x2f90,_0x1c82b6=_0x121c5f[_0x1359d5],_0x38624f=formatValue(_0x1c82b6),_0x39da9c=_0x1a2767[_0x30783c],_0x164e13=_0x50f6b5(_0x38624f,_0x39da9c),_0x15a483=typeof _0x1c82b6===_0x259595(0x194)||typeof _0x1c82b6===_0x259595(0x197)&&/^-?\d+$/[_0x259595(0x1ba)](_0x1c82b6);return _0x15a483?padStart(_0x164e13,_0x39da9c):padEnd(_0x164e13,_0x39da9c);});_0x29d311[_0x31d0db(0x1c3)](colorBorder('│',_0x352256)+'\x20'+_0x58c637[_0x31d0db(0x1bb)]('\x20'+colorBorder('│',_0x352256)+'\x20')+'\x20'+colorBorder('│',_0x352256));});const _0x5f43b5=_0xbdf30c[_0x5a1c0a(0x1a0)]((_0x24af2e,_0x45fd75)=>_0x24af2e+_0x45fd75+0x3,-0x1);_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('├'+_0xbdf30c[_0x5a1c0a(0x1c6)](_0x374b8f=>'─'[_0x5a1c0a(0x1a7)](_0x374b8f+0x2))['join']('┴')+'┤',_0x352256));let _0x3f53ea;_0x3e1d68?_0x3f53ea=_0x3a0934+_0x5a1c0a(0x1c0)+_0x31a577+_0x5a1c0a(0x1b8):_0x3f53ea=_0x3a0934+_0x5a1c0a(0x199)+(_0x3a0934===0x1?'':'s');const _0x16d3c2=_0x3f53ea['padEnd'](_0x5f43b5-0x2);return _0x29d311[_0x5a1c0a(0x1c3)](colorBorder('│',_0x352256)+'\x20'+_0x16d3c2+'\x20'+colorBorder('│',_0x352256)),_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('└'+'─'[_0x5a1c0a(0x1a7)](_0x5f43b5)+'┘',_0x352256)),_0x29d311[_0x5a1c0a(0x1bb)]('\x0a');}function simplifyType(_0x6b94b0){const _0x584868=a85_0x2f90,_0x39f705={'varchar':'string','bigint':'long','integer':'int','double':_0x584868(0x1bd),'boolean':_0x584868(0x1c4),'date':_0x584868(0x1ac),'timestamp':'timestamp','array':_0x584868(0x198),'map':_0x584868(0x1c6),'row':_0x584868(0x1a8)},_0x1130d0=_0x6b94b0['toLowerCase']();for(const [_0x454801,_0x5bc532]of Object['entries'](_0x39f705)){if(_0x1130d0[_0x584868(0x192)](_0x454801))return _0x5bc532;}return _0x6b94b0[_0x584868(0x1c2)]>0xa?_0x6b94b0[_0x584868(0x1a1)](0x0,0xa):_0x6b94b0;}export function formatAsJSON(_0x54bd39,_0x31c6c5={}){const _0x4239e7=a85_0x2f90;if(_0x54bd39[_0x4239e7(0x1c5)][_0x4239e7(0x1c2)]===0x0)return'[]';if(shouldUseColor(_0x31c6c5))return colorizeJSON(_0x54bd39[_0x4239e7(0x1c5)],_0x31c6c5);const _0x102ade=_0x54bd39[_0x4239e7(0x1c5)]['map'](_0x3d9e37=>'\x20\x20'+JSON[_0x4239e7(0x19c)](_0x3d9e37));return'[\x0a'+_0x102ade['join'](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x515de3,_0x15824c={}){const _0x3be6f6=a85_0x2f90;if(_0x515de3[_0x3be6f6(0x1c5)]['length']===0x0)return'';if(shouldUseColor(_0x15824c))return _0x515de3[_0x3be6f6(0x1c5)]['map'](_0x3f63f4=>colorizeJSONCompact(_0x3f63f4,_0x15824c))[_0x3be6f6(0x1bb)]('\x0a');return _0x515de3[_0x3be6f6(0x1c5)][_0x3be6f6(0x1c6)](_0x4546c4=>JSON['stringify'](_0x4546c4))[_0x3be6f6(0x1bb)]('\x0a');}export function formatAsTSV(_0x3ac93f){const _0x302a63=a85_0x2f90;if(_0x3ac93f[_0x302a63(0x1c5)][_0x302a63(0x1c2)]===0x0)return'';const _0x16ecda=[],_0x1781b4=_0x3ac93f[_0x302a63(0x19b)][_0x302a63(0x1c6)](_0x58620c=>_0x58620c[_0x302a63(0x1b5)]);return _0x16ecda[_0x302a63(0x1c3)](_0x1781b4[_0x302a63(0x1bb)]('\x09')),_0x3ac93f['data'][_0x302a63(0x190)](_0x33fcbf=>{const _0x1462fa=_0x302a63,_0x1ab61f=_0x1781b4[_0x1462fa(0x1c6)](_0x81e850=>{const _0x4cb84e=_0x33fcbf[_0x81e850];return formatValueForTSV(_0x4cb84e);});_0x16ecda['push'](_0x1ab61f[_0x1462fa(0x1bb)]('\x09'));}),_0x16ecda[_0x302a63(0x1bb)]('\x0a');}function a85_0x2966(){const _0x4d04d=['toString','name','167490VVuFDf','jsonl','\x20shown)','json','test','join','826912jCUNFD','double','max','true','\x20rows\x20(','floor','length','push','bool','data','map','forEach','802488ThigeJ','startsWith','slice','number','false','1885950HVXLhQ','string','array','\x20row','log','columns','stringify','4mGSAVy','tsv','886851JOUoLP','reduce','substring','No\x20rows\x20returned','object','2038993LtQfkT','type','92566XIGPDf','repeat','row','min','0\x20B','toFixed','date','5iMiBke','replace','toISOString','35aoCVgF','10TnzNDh','pow','boolean'];a85_0x2966=function(){return _0x4d04d;};return a85_0x2966();}function formatValue(_0xccf945){const _0x4fd248=a85_0x2f90;if(_0xccf945===null||_0xccf945===undefined)return'';if(typeof _0xccf945===_0x4fd248(0x197)){const _0x39faf3=_0xccf945[_0x4fd248(0x1ae)](/\n/g,'\x5cn')[_0x4fd248(0x1ae)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x39faf3;}if(typeof _0xccf945===_0x4fd248(0x194))return String(_0xccf945);if(typeof _0xccf945===_0x4fd248(0x1b3))return _0xccf945?_0x4fd248(0x1bf):_0x4fd248(0x195);if(_0xccf945 instanceof Date)return _0xccf945[_0x4fd248(0x1af)]();if(typeof _0xccf945===_0x4fd248(0x1a3))return JSON[_0x4fd248(0x19c)](_0xccf945);return String(_0xccf945);}function formatValueForTSV(_0x223b38){const _0x2c2cfe=a85_0x2f90;if(_0x223b38===null||_0x223b38===undefined)return'';if(typeof _0x223b38===_0x2c2cfe(0x197))return _0x223b38[_0x2c2cfe(0x1ae)](/\t/g,'\x5ct')[_0x2c2cfe(0x1ae)](/\n/g,'\x5cn');if(typeof _0x223b38===_0x2c2cfe(0x194)||typeof _0x223b38===_0x2c2cfe(0x1b3))return String(_0x223b38);if(_0x223b38 instanceof Date)return _0x223b38['toISOString']();if(typeof _0x223b38==='object')return JSON[_0x2c2cfe(0x19c)](_0x223b38);return String(_0x223b38);}export function formatQueryResult(_0x2f3fec,_0x30ff53){const _0x27bd63=a85_0x2f90;switch(_0x30ff53){case'table':return formatAsTable(_0x2f3fec);case _0x27bd63(0x1b9):return formatAsJSON(_0x2f3fec);case _0x27bd63(0x1b7):return formatAsJSONL(_0x2f3fec);case _0x27bd63(0x19e):return formatAsTSV(_0x2f3fec);default:return formatAsJSON(_0x2f3fec);}}export function formatBytes(_0x40808b){const _0x22023c=a85_0x2f90;if(_0x40808b===0x0)return _0x22023c(0x1aa);const _0x1bab01=['B','KB','MB','GB','TB'],_0x21e6df=0x400,_0x24b8e7=Math[_0x22023c(0x1c1)](Math[_0x22023c(0x19a)](_0x40808b)/Math[_0x22023c(0x19a)](_0x21e6df)),_0x279e8a=_0x40808b/Math['pow'](_0x21e6df,_0x24b8e7),_0x5670b2=_0x279e8a>=0xa?0x1:0x2;return _0x279e8a[_0x22023c(0x1ab)](_0x5670b2)+'\x20'+_0x1bab01[_0x24b8e7];}function a85_0x2f90(_0x57ef93,_0x313800){const _0x296612=a85_0x2966();return a85_0x2f90=function(_0x2f9016,_0x7fcf0c){_0x2f9016=_0x2f9016-0x190;let _0x240e4f=_0x296612[_0x2f9016];return _0x240e4f;},a85_0x2f90(_0x57ef93,_0x313800);}export function formatRows(_0x4a17a3){const _0xa8ef05=a85_0x2f90;if(_0x4a17a3==null)return'-';if(_0x4a17a3===0x0)return'0';if(_0x4a17a3<0x3e8)return _0x4a17a3[_0xa8ef05(0x1b4)]();const _0x1036a1=['','K','M','B','T'],_0x4b7d90=0x3e8,_0x42aa01=Math['floor'](Math[_0xa8ef05(0x19a)](_0x4a17a3)/Math[_0xa8ef05(0x19a)](_0x4b7d90)),_0x5f44fe=_0x4a17a3/Math[_0xa8ef05(0x1b2)](_0x4b7d90,_0x42aa01),_0x42f843=_0x5f44fe>=0xa?0x1:0x2;return''+_0x5f44fe[_0xa8ef05(0x1ab)](_0x42f843)+_0x1036a1[_0x42aa01];}
@@ -1 +1 @@
1
- (function(_0x43ae68,_0x369c71){const _0x30d8f1=a86_0x1453,_0x3074df=_0x43ae68();while(!![]){try{const _0x54fe9f=parseInt(_0x30d8f1(0x1e4))/0x1+parseInt(_0x30d8f1(0x1db))/0x2+parseInt(_0x30d8f1(0x1d8))/0x3+parseInt(_0x30d8f1(0x1d1))/0x4+parseInt(_0x30d8f1(0x1e5))/0x5+parseInt(_0x30d8f1(0x1e1))/0x6*(-parseInt(_0x30d8f1(0x1df))/0x7)+-parseInt(_0x30d8f1(0x1de))/0x8;if(_0x54fe9f===_0x369c71)break;else _0x3074df['push'](_0x3074df['shift']());}catch(_0x43a7d4){_0x3074df['push'](_0x3074df['shift']());}}}(a86_0x1958,0xbbaf3));import{readFile}from'fs/promises';function a86_0x1958(){const _0x2b7823=['parse','Invalid\x20JSON\x20in\x20file\x20\x27','2383106JFlUwH','Permission\x20denied\x20reading\x20file:\x20','PERMISSION_DENIED','28001568qzUwAJ','3773CwhDGP','Invalid\x20JSON\x20string:\x20','3930IBmCVW','Failed\x20to\x20load\x20JSON:\x20','ENOENT','626871rXTEGB','730825IsHjBv','4558092yJYlzN','code','utf-8','message','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INVALID_ARGUMENT','INTERNAL','4553652IePVzT'];a86_0x1958=function(){return _0x2b7823;};return a86_0x1958();}import{SDKError,ErrorCode}from'../sdk/errors.js';function a86_0x1453(_0x23d71a,_0x19359d){const _0x1958df=a86_0x1958();return a86_0x1453=function(_0x14530f,_0x1b1adf){_0x14530f=_0x14530f-0x1d1;let _0x575de5=_0x1958df[_0x14530f];return _0x575de5;},a86_0x1453(_0x23d71a,_0x19359d);}export async function loadJSON(_0x3d7d2b,_0x288ff5){const _0x3e3599=a86_0x1453;try{if(_0x288ff5){const _0x294a1a=await readFile(_0x3d7d2b,_0x3e3599(0x1d3));try{return JSON['parse'](_0x294a1a);}catch(_0x28ea29){throw new SDKError(ErrorCode[_0x3e3599(0x1d6)],_0x3e3599(0x1da)+_0x3d7d2b+'\x27:\x20'+(_0x28ea29 instanceof Error?_0x28ea29[_0x3e3599(0x1d4)]:String(_0x28ea29)));}}else try{return JSON[_0x3e3599(0x1d9)](_0x3d7d2b);}catch(_0x226b3c){throw new SDKError(ErrorCode[_0x3e3599(0x1d6)],_0x3e3599(0x1e0)+(_0x226b3c instanceof Error?_0x226b3c[_0x3e3599(0x1d4)]:String(_0x226b3c)));}}catch(_0x25df0b){if(_0x25df0b instanceof SDKError)throw _0x25df0b;if(_0x25df0b instanceof Error&&_0x3e3599(0x1d2)in _0x25df0b){const _0xbf7fbd=_0x25df0b;if(_0xbf7fbd[_0x3e3599(0x1d2)]===_0x3e3599(0x1e3))throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x3d7d2b);else{if(_0xbf7fbd[_0x3e3599(0x1d2)]==='EACCES')throw new SDKError(ErrorCode[_0x3e3599(0x1dd)],_0x3e3599(0x1dc)+_0x3d7d2b);}}throw new SDKError(ErrorCode[_0x3e3599(0x1d7)],_0x3e3599(0x1e2)+(_0x25df0b instanceof Error?_0x25df0b[_0x3e3599(0x1d4)]:String(_0x25df0b)));}}export async function loadJSONFromOptions(_0x5d8bda,_0x21b2fc){const _0x1e7ea0=a86_0x1453;if(_0x5d8bda&&_0x21b2fc)throw new SDKError(ErrorCode[_0x1e7ea0(0x1d6)],_0x1e7ea0(0x1d5));if(_0x5d8bda)return await loadJSON(_0x5d8bda,![]);if(_0x21b2fc)return await loadJSON(_0x21b2fc,!![]);return undefined;}
1
+ function a86_0x47c8(){const _0x46f84a=['7343760WAjpiz','ENOENT','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','10KgUEzd','File\x20not\x20found:\x20','940toKePg','8622680jiDKsE','2LSOAnE','\x27:\x20','4150445xaQnES','761193rjEdac','NOT_FOUND','INVALID_ARGUMENT','Invalid\x20JSON\x20string:\x20','parse','utf-8','6ltrFHe','code','Permission\x20denied\x20reading\x20file:\x20','3565345DIYQDn','951662PQHlXk','4359hiyjKk','message','PERMISSION_DENIED'];a86_0x47c8=function(){return _0x46f84a;};return a86_0x47c8();}(function(_0x143f6a,_0x4c4b38){const _0x5a6748=a86_0x2090,_0x227a11=_0x143f6a();while(!![]){try{const _0x16f6a4=-parseInt(_0x5a6748(0x1e5))/0x1*(parseInt(_0x5a6748(0x1d8))/0x2)+-parseInt(_0x5a6748(0x1d9))/0x3*(-parseInt(_0x5a6748(0x1e3))/0x4)+parseInt(_0x5a6748(0x1e7))/0x5*(parseInt(_0x5a6748(0x1d4))/0x6)+parseInt(_0x5a6748(0x1d7))/0x7+-parseInt(_0x5a6748(0x1dc))/0x8+-parseInt(_0x5a6748(0x1e8))/0x9+parseInt(_0x5a6748(0x1e1))/0xa*(parseInt(_0x5a6748(0x1e4))/0xb);if(_0x16f6a4===_0x4c4b38)break;else _0x227a11['push'](_0x227a11['shift']());}catch(_0x22ecc3){_0x227a11['push'](_0x227a11['shift']());}}}(a86_0x47c8,0x7ca56));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a86_0x2090(_0x57f714,_0x448278){const _0x47c855=a86_0x47c8();return a86_0x2090=function(_0x209058,_0x397dad){_0x209058=_0x209058-0x1d0;let _0x201c00=_0x47c855[_0x209058];return _0x201c00;},a86_0x2090(_0x57f714,_0x448278);}export async function loadJSON(_0x23c968,_0x46c8a5){const _0x2ae553=a86_0x2090;try{if(_0x46c8a5){const _0x5b2744=await readFile(_0x23c968,_0x2ae553(0x1d3));try{return JSON['parse'](_0x5b2744);}catch(_0x190b18){throw new SDKError(ErrorCode[_0x2ae553(0x1d0)],_0x2ae553(0x1df)+_0x23c968+_0x2ae553(0x1e6)+(_0x190b18 instanceof Error?_0x190b18['message']:String(_0x190b18)));}}else try{return JSON[_0x2ae553(0x1d2)](_0x23c968);}catch(_0x497391){throw new SDKError(ErrorCode[_0x2ae553(0x1d0)],_0x2ae553(0x1d1)+(_0x497391 instanceof Error?_0x497391[_0x2ae553(0x1da)]:String(_0x497391)));}}catch(_0x46c324){if(_0x46c324 instanceof SDKError)throw _0x46c324;if(_0x46c324 instanceof Error&&'code'in _0x46c324){const _0x3beeef=_0x46c324;if(_0x3beeef[_0x2ae553(0x1d5)]===_0x2ae553(0x1dd))throw new SDKError(ErrorCode[_0x2ae553(0x1e9)],_0x2ae553(0x1e2)+_0x23c968);else{if(_0x3beeef[_0x2ae553(0x1d5)]==='EACCES')throw new SDKError(ErrorCode[_0x2ae553(0x1db)],_0x2ae553(0x1d6)+_0x23c968);}}throw new SDKError(ErrorCode['INTERNAL'],_0x2ae553(0x1de)+(_0x46c324 instanceof Error?_0x46c324['message']:String(_0x46c324)));}}export async function loadJSONFromOptions(_0x2f0c9e,_0x4445a2){const _0x522a01=a86_0x2090;if(_0x2f0c9e&&_0x4445a2)throw new SDKError(ErrorCode[_0x522a01(0x1d0)],_0x522a01(0x1e0));if(_0x2f0c9e)return await loadJSON(_0x2f0c9e,![]);if(_0x4445a2)return await loadJSON(_0x4445a2,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x450ec7,_0x2c75f8){const _0x4b7677=a87_0x3a41,_0x2d1a25=_0x450ec7();while(!![]){try{const _0x1952fd=-parseInt(_0x4b7677(0x13c))/0x1+parseInt(_0x4b7677(0x137))/0x2*(parseInt(_0x4b7677(0x132))/0x3)+-parseInt(_0x4b7677(0x138))/0x4+-parseInt(_0x4b7677(0x12f))/0x5+parseInt(_0x4b7677(0x133))/0x6*(-parseInt(_0x4b7677(0x136))/0x7)+-parseInt(_0x4b7677(0x131))/0x8+parseInt(_0x4b7677(0x13b))/0x9;if(_0x1952fd===_0x2c75f8)break;else _0x2d1a25['push'](_0x2d1a25['shift']());}catch(_0x581765){_0x2d1a25['push'](_0x2d1a25['shift']());}}}(a87_0x1cf8,0xb5048));export function canCreateAgent(_0x2e000c,_0x5eb2f9){const _0x4b0bc7=a87_0x3a41;for(const _0x175f9c of _0x2e000c['attributes'][_0x4b0bc7(0x130)]){if(_0x175f9c[_0x4b0bc7(0x13d)]&&!_0x5eb2f9[_0x4b0bc7(0x134)](_0x175f9c[_0x4b0bc7(0x13d)]))return![];}return!![];}export function remapToolIds(_0xf28abe,_0x4764ac,_0x4eb92c){const _0x1386d1=a87_0x3a41;return _0xf28abe[_0x1386d1(0x13a)](_0x4d4566=>({..._0x4d4566,'targetKnowledgeBaseId':_0x4d4566[_0x1386d1(0x13e)]?_0x4764ac[_0x1386d1(0x139)](_0x4d4566[_0x1386d1(0x13e)])||_0x4d4566['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x4d4566[_0x1386d1(0x13d)]?_0x4eb92c[_0x1386d1(0x139)](_0x4d4566[_0x1386d1(0x13d)])||_0x4d4566['targetAgentId']:undefined}));}export function remapVariableIds(_0x4a55ef,_0x3f1ec2){const _0x2b52e1=a87_0x3a41;return _0x4a55ef[_0x2b52e1(0x13a)](_0x26b0a9=>({..._0x26b0a9,'targetKnowledgeBaseId':_0x3f1ec2[_0x2b52e1(0x139)](_0x26b0a9[_0x2b52e1(0x13e)])||_0x26b0a9['targetKnowledgeBaseId']}));}function a87_0x3a41(_0xc7a9bf,_0x21c566){const _0x1cf83c=a87_0x1cf8();return a87_0x3a41=function(_0x3a415d,_0x385cd5){_0x3a415d=_0x3a415d-0x12f;let _0xdc1c85=_0x1cf83c[_0x3a415d];return _0xdc1c85;},a87_0x3a41(_0xc7a9bf,_0x21c566);}export function isSupportedBackupVersion(_0x3c3665){const _0x78f45a=a87_0x3a41;return _0x3c3665===_0x78f45a(0x135);}function a87_0x1cf8(){const _0x18cb36=['3vOcjTb','125010uAZJGj','has','1.0','7esQucw','1580182ZqsjHJ','3671232YjtKrV','get','map','28260414tEPKXY','1422138LAviuW','targetAgentId','targetKnowledgeBaseId','3913805pTWbxC','tools','361176fWuQel'];a87_0x1cf8=function(){return _0x18cb36;};return a87_0x1cf8();}
1
+ (function(_0x16ee38,_0x1277ef){const _0x15172a=a87_0x5e7e,_0x4f81ff=_0x16ee38();while(!![]){try{const _0x43f348=-parseInt(_0x15172a(0x114))/0x1+-parseInt(_0x15172a(0x110))/0x2*(parseInt(_0x15172a(0x11b))/0x3)+-parseInt(_0x15172a(0x117))/0x4*(parseInt(_0x15172a(0x10e))/0x5)+-parseInt(_0x15172a(0x11e))/0x6+parseInt(_0x15172a(0x10f))/0x7+parseInt(_0x15172a(0x119))/0x8+parseInt(_0x15172a(0x118))/0x9*(parseInt(_0x15172a(0x113))/0xa);if(_0x43f348===_0x1277ef)break;else _0x4f81ff['push'](_0x4f81ff['shift']());}catch(_0x59e7d0){_0x4f81ff['push'](_0x4f81ff['shift']());}}}(a87_0x4110,0x52d72));export function canCreateAgent(_0x3670e2,_0x409d76){const _0x22264e=a87_0x5e7e;for(const _0xc4a01f of _0x3670e2[_0x22264e(0x11a)]['tools']){if(_0xc4a01f[_0x22264e(0x11c)]&&!_0x409d76[_0x22264e(0x116)](_0xc4a01f[_0x22264e(0x11c)]))return![];}return!![];}function a87_0x5e7e(_0x33663b,_0x2f7eaa){const _0x411026=a87_0x4110();return a87_0x5e7e=function(_0x5e7e48,_0x2f2b6e){_0x5e7e48=_0x5e7e48-0x10e;let _0x200d00=_0x411026[_0x5e7e48];return _0x200d00;},a87_0x5e7e(_0x33663b,_0x2f7eaa);}function a87_0x4110(){const _0x2cc68c=['1062939hldgxP','targetAgentId','map','1636728oTaDNu','992135vUuwYU','1205533KQdSiX','2uDTFNZ','targetKnowledgeBaseId','1.0','10iRvOeB','82569LisUAs','get','has','12KRVTiU','12602241yozMjO','574376HAujog','attributes'];a87_0x4110=function(){return _0x2cc68c;};return a87_0x4110();}export function remapToolIds(_0x1387a2,_0x1d3bc5,_0x1e92df){const _0x3b9e12=a87_0x5e7e;return _0x1387a2[_0x3b9e12(0x11d)](_0x4611b3=>({..._0x4611b3,'targetKnowledgeBaseId':_0x4611b3[_0x3b9e12(0x111)]?_0x1d3bc5[_0x3b9e12(0x115)](_0x4611b3[_0x3b9e12(0x111)])||_0x4611b3[_0x3b9e12(0x111)]:undefined,'targetAgentId':_0x4611b3['targetAgentId']?_0x1e92df[_0x3b9e12(0x115)](_0x4611b3[_0x3b9e12(0x11c)])||_0x4611b3['targetAgentId']:undefined}));}export function remapVariableIds(_0x39449d,_0x486924){const _0xbce2d9=a87_0x5e7e;return _0x39449d[_0xbce2d9(0x11d)](_0x5002d8=>({..._0x5002d8,'targetKnowledgeBaseId':_0x486924[_0xbce2d9(0x115)](_0x5002d8[_0xbce2d9(0x111)])||_0x5002d8[_0xbce2d9(0x111)]}));}export function isSupportedBackupVersion(_0x115587){const _0x24811a=a87_0x5e7e;return _0x115587===_0x24811a(0x112);}
@@ -1 +1 @@
1
- const a88_0xe3beb3=a88_0x83a4;(function(_0x1a3ee1,_0x9e77c9){const _0x5f4142=a88_0x83a4,_0x1ae023=_0x1a3ee1();while(!![]){try{const _0x4c9744=-parseInt(_0x5f4142(0x1ea))/0x1+parseInt(_0x5f4142(0x1eb))/0x2+parseInt(_0x5f4142(0x1ee))/0x3+-parseInt(_0x5f4142(0x1e8))/0x4*(parseInt(_0x5f4142(0x1e4))/0x5)+-parseInt(_0x5f4142(0x1e7))/0x6+-parseInt(_0x5f4142(0x1e5))/0x7*(parseInt(_0x5f4142(0x1e9))/0x8)+-parseInt(_0x5f4142(0x1e3))/0x9*(-parseInt(_0x5f4142(0x1ec))/0xa);if(_0x4c9744===_0x9e77c9)break;else _0x1ae023['push'](_0x1ae023['shift']());}catch(_0x5d29cc){_0x1ae023['push'](_0x1ae023['shift']());}}}(a88_0x3a8c,0xe5e37));const MODEL_ALIASES={'haiku':a88_0xe3beb3(0x1ef),'sonnet':a88_0xe3beb3(0x1ed)};function a88_0x83a4(_0x100973,_0x23b545){const _0x3a8ce=a88_0x3a8c();return a88_0x83a4=function(_0x83a4d2,_0x4bd1f5){_0x83a4d2=_0x83a4d2-0x1e3;let _0xcbbaa2=_0x3a8ce[_0x83a4d2];return _0xcbbaa2;},a88_0x83a4(_0x100973,_0x23b545);}export function extractModelAlias(_0x50f457){const _0x22bc76=a88_0xe3beb3,_0x46f1fa=_0x50f457[_0x22bc76(0x1e6)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x46f1fa)return _0x46f1fa[0x1]['toLowerCase']();return _0x50f457;}export function resolveModelAlias(_0x184f1c){return MODEL_ALIASES[_0x184f1c['toLowerCase']()]||_0x184f1c;}function a88_0x3a8c(){const _0x36620e=['36SRoJKL','8qmATap','1115629CysUeQ','3288980fgnyfN','30ZLgzTz','claude-4.5-sonnet','848190oVQsDg','claude-4.5-haiku','10373481fBYlqr','647255GLaIlU','8363215IKIGHO','match','5807946exSryg'];a88_0x3a8c=function(){return _0x36620e;};return a88_0x3a8c();}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a88_0x23dbfb=a88_0x48bd;function a88_0x48bd(_0x1c89d2,_0x20d775){const _0xed981e=a88_0xed98();return a88_0x48bd=function(_0x48bda8,_0xa9fdf){_0x48bda8=_0x48bda8-0x6e;let _0x37d218=_0xed981e[_0x48bda8];return _0x37d218;},a88_0x48bd(_0x1c89d2,_0x20d775);}(function(_0x4e5082,_0x131d6e){const _0x4f3c5d=a88_0x48bd,_0x116454=_0x4e5082();while(!![]){try{const _0x1885c8=parseInt(_0x4f3c5d(0x77))/0x1+-parseInt(_0x4f3c5d(0x6f))/0x2*(parseInt(_0x4f3c5d(0x70))/0x3)+-parseInt(_0x4f3c5d(0x79))/0x4*(parseInt(_0x4f3c5d(0x78))/0x5)+-parseInt(_0x4f3c5d(0x75))/0x6*(-parseInt(_0x4f3c5d(0x71))/0x7)+parseInt(_0x4f3c5d(0x76))/0x8+-parseInt(_0x4f3c5d(0x74))/0x9+parseInt(_0x4f3c5d(0x6e))/0xa;if(_0x1885c8===_0x131d6e)break;else _0x116454['push'](_0x116454['shift']());}catch(_0x38e447){_0x116454['push'](_0x116454['shift']());}}}(a88_0xed98,0x8d28c));const MODEL_ALIASES={'haiku':a88_0x23dbfb(0x7b),'sonnet':a88_0x23dbfb(0x7a)};function a88_0xed98(){const _0x565f3a=['14951860yFuVRH','398QsSQYt','13383JVgVzF','21HHdMRN','toLowerCase','match','2482002lsuExj','230994BCzGab','2848928lFeqnv','9094ZYeRsx','9220ATvvAJ','508mRuWOZ','claude-4.5-sonnet','claude-4.5-haiku'];a88_0xed98=function(){return _0x565f3a;};return a88_0xed98();}export function extractModelAlias(_0x39d007){const _0x2e899a=a88_0x23dbfb,_0x383532=_0x39d007[_0x2e899a(0x73)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x383532)return _0x383532[0x1][_0x2e899a(0x72)]();return _0x39d007;}export function resolveModelAlias(_0x4d449a){const _0x4b7277=a88_0x23dbfb;return MODEL_ALIASES[_0x4d449a[_0x4b7277(0x72)]()]||_0x4d449a;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x2aef6a,_0x9527f5){const _0x343b8b=a89_0x2c0d,_0x4ce280=_0x2aef6a();while(!![]){try{const _0x1de80c=parseInt(_0x343b8b(0x13d))/0x1+parseInt(_0x343b8b(0x13f))/0x2+-parseInt(_0x343b8b(0x134))/0x3+-parseInt(_0x343b8b(0x138))/0x4*(parseInt(_0x343b8b(0x13b))/0x5)+-parseInt(_0x343b8b(0x140))/0x6+parseInt(_0x343b8b(0x137))/0x7*(-parseInt(_0x343b8b(0x142))/0x8)+parseInt(_0x343b8b(0x12f))/0x9;if(_0x1de80c===_0x9527f5)break;else _0x4ce280['push'](_0x4ce280['shift']());}catch(_0x4734a5){_0x4ce280['push'](_0x4ce280['shift']());}}}(a89_0x4669,0x32531));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x2b7fdb){const _0x313d8d=a89_0x2c0d,_0x2bd510=_0x2b7fdb['toLowerCase']();if(MODEL_FACTORS[_0x2bd510])return MODEL_FACTORS[_0x2bd510];if(_0x2bd510[_0x313d8d(0x13c)](_0x313d8d(0x13a)))return MODEL_FACTORS[_0x313d8d(0x13a)];if(_0x2bd510[_0x313d8d(0x13c)](_0x313d8d(0x13e)))return MODEL_FACTORS[_0x313d8d(0x13e)];if(_0x2bd510[_0x313d8d(0x13c)](_0x313d8d(0x139)))return MODEL_FACTORS[_0x313d8d(0x139)];return MODEL_FACTORS[_0x313d8d(0x13a)];}export function getContextLimit(_0xe53652){const _0x38cd56=a89_0x2c0d,_0x571199=_0xe53652[_0x38cd56(0x12e)]();if(_0x571199[_0x38cd56(0x13c)]('sonnet'))return CONTEXT_LIMITS[_0x38cd56(0x13a)];if(_0x571199[_0x38cd56(0x13c)](_0x38cd56(0x13e)))return CONTEXT_LIMITS[_0x38cd56(0x13e)];if(_0x571199[_0x38cd56(0x13c)](_0x38cd56(0x139)))return CONTEXT_LIMITS[_0x38cd56(0x139)];return CONTEXT_LIMITS[_0x38cd56(0x136)];}function a89_0x2c0d(_0x383412,_0x292f8b){const _0x4669a5=a89_0x4669();return a89_0x2c0d=function(_0x2c0dba,_0x147c51){_0x2c0dba=_0x2c0dba-0x12d;let _0xdfe1fb=_0x4669a5[_0x2c0dba];return _0xdfe1fb;},a89_0x2c0d(_0x383412,_0x292f8b);}export function calculateChatUnit(_0xd7751f,_0x4d7034,_0x152cfc){return(_0xd7751f+_0x4d7034)/0x1388*_0x152cfc;}export function calculateCredits(_0x16e6b0){return _0x16e6b0/0x2904;}function a89_0x4669(){const _0x493d49=['151708ekFJfg','1918686NdrQDS','Haiku\x204.5','8lPOQcY','en-US','Claude','Sonnet\x204.5','toLowerCase','5198769nIhLkV','round','Sonnet\x204','4-5','4.5','275658pEYExh','Opus\x204.5','default','429086VlXdRQ','4EgknmP','opus','sonnet','1609145kAoMMI','includes','347428BjjCcP','haiku'];a89_0x4669=function(){return _0x493d49;};return a89_0x4669();}export function getModelDisplayName(_0xbc738){const _0x1d56e4=a89_0x2c0d,_0x498f99=_0xbc738['toLowerCase']();if(_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x13a))){if(_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x132))||_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x133)))return _0x1d56e4(0x12d);return _0x1d56e4(0x131);}if(_0x498f99['includes'](_0x1d56e4(0x13e))){if(_0x498f99['includes']('4-5')||_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x133)))return _0x1d56e4(0x141);return'Haiku\x204';}if(_0x498f99[_0x1d56e4(0x13c)]('opus')){if(_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x132))||_0x498f99[_0x1d56e4(0x13c)]('4.5'))return _0x1d56e4(0x135);return'Opus\x204';}return _0x1d56e4(0x144);}export function formatTokenCount(_0x3fdeb2){const _0x3affd3=a89_0x2c0d;return _0x3fdeb2['toLocaleString'](_0x3affd3(0x143));}export function calculateContextPercentage(_0x4dbee9,_0x329c0c){const _0x486f6f=a89_0x2c0d,_0x57af0e=getContextLimit(_0x329c0c);return Math[_0x486f6f(0x130)](_0x4dbee9/_0x57af0e*0x64);}
1
+ (function(_0x20154c,_0x3d7c0b){const _0x570d38=a89_0x4de7,_0x31801f=_0x20154c();while(!![]){try{const _0x53114f=parseInt(_0x570d38(0x16e))/0x1*(parseInt(_0x570d38(0x160))/0x2)+parseInt(_0x570d38(0x167))/0x3*(-parseInt(_0x570d38(0x176))/0x4)+parseInt(_0x570d38(0x171))/0x5+-parseInt(_0x570d38(0x170))/0x6+parseInt(_0x570d38(0x168))/0x7*(parseInt(_0x570d38(0x164))/0x8)+parseInt(_0x570d38(0x16a))/0x9+parseInt(_0x570d38(0x163))/0xa;if(_0x53114f===_0x3d7c0b)break;else _0x31801f['push'](_0x31801f['shift']());}catch(_0x160b82){_0x31801f['push'](_0x31801f['shift']());}}}(a89_0x1139,0xe92cd));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};function a89_0x4de7(_0x356be2,_0x1f5e32){const _0x113921=a89_0x1139();return a89_0x4de7=function(_0x4de72e,_0x518e50){_0x4de72e=_0x4de72e-0x15e;let _0x427c86=_0x113921[_0x4de72e];return _0x427c86;},a89_0x4de7(_0x356be2,_0x1f5e32);}export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x1dc585){const _0x469b98=a89_0x4de7,_0x19ff98=_0x1dc585['toLowerCase']();if(MODEL_FACTORS[_0x19ff98])return MODEL_FACTORS[_0x19ff98];if(_0x19ff98[_0x469b98(0x165)](_0x469b98(0x16b)))return MODEL_FACTORS[_0x469b98(0x16b)];if(_0x19ff98[_0x469b98(0x165)](_0x469b98(0x16d)))return MODEL_FACTORS[_0x469b98(0x16d)];if(_0x19ff98[_0x469b98(0x165)](_0x469b98(0x15e)))return MODEL_FACTORS[_0x469b98(0x15e)];return MODEL_FACTORS[_0x469b98(0x16b)];}export function getContextLimit(_0xaff797){const _0x24ff66=a89_0x4de7,_0x265f76=_0xaff797['toLowerCase']();if(_0x265f76[_0x24ff66(0x165)](_0x24ff66(0x16b)))return CONTEXT_LIMITS['sonnet'];if(_0x265f76[_0x24ff66(0x165)](_0x24ff66(0x16d)))return CONTEXT_LIMITS[_0x24ff66(0x16d)];if(_0x265f76[_0x24ff66(0x165)](_0x24ff66(0x15e)))return CONTEXT_LIMITS[_0x24ff66(0x15e)];return CONTEXT_LIMITS[_0x24ff66(0x174)];}function a89_0x1139(){const _0x124baa=['sonnet','Sonnet\x204.5','haiku','198802rYAvkl','toLowerCase','7971450CSJqhI','2742300CmLpqu','Sonnet\x204','Haiku\x204','default','toLocaleString','934220KcqIgd','opus','4.5','6hEZHne','en-US','4-5','16048820vAjBzA','22840EjlcSb','includes','Haiku\x204.5','24vQvUeJ','1260cfXyTT','Claude','7996068tQicoH'];a89_0x1139=function(){return _0x124baa;};return a89_0x1139();}export function calculateChatUnit(_0x38e2fb,_0x12e758,_0x1923c0){return(_0x38e2fb+_0x12e758)/0x1388*_0x1923c0;}export function calculateCredits(_0x398581){return _0x398581/0x2904;}export function getModelDisplayName(_0x3f8462){const _0x5b3182=a89_0x4de7,_0x1096e9=_0x3f8462[_0x5b3182(0x16f)]();if(_0x1096e9[_0x5b3182(0x165)](_0x5b3182(0x16b))){if(_0x1096e9['includes'](_0x5b3182(0x162))||_0x1096e9[_0x5b3182(0x165)]('4.5'))return _0x5b3182(0x16c);return _0x5b3182(0x172);}if(_0x1096e9['includes']('haiku')){if(_0x1096e9[_0x5b3182(0x165)](_0x5b3182(0x162))||_0x1096e9[_0x5b3182(0x165)](_0x5b3182(0x15f)))return _0x5b3182(0x166);return _0x5b3182(0x173);}if(_0x1096e9[_0x5b3182(0x165)]('opus')){if(_0x1096e9[_0x5b3182(0x165)](_0x5b3182(0x162))||_0x1096e9['includes'](_0x5b3182(0x15f)))return'Opus\x204.5';return'Opus\x204';}return _0x5b3182(0x169);}export function formatTokenCount(_0x5106a2){const _0xe2ea1c=a89_0x4de7;return _0x5106a2[_0xe2ea1c(0x175)](_0xe2ea1c(0x161));}export function calculateContextPercentage(_0x46b1ff,_0x4a015a){const _0x23e922=getContextLimit(_0x4a015a);return Math['round'](_0x46b1ff/_0x23e922*0x64);}
@@ -1 +1 @@
1
- function a90_0x32a1(_0x478299,_0x1c2c8e){const _0x4f7147=a90_0x4f71();return a90_0x32a1=function(_0x32a193,_0x2507c2){_0x32a193=_0x32a193-0xb0;let _0xc617b3=_0x4f7147[_0x32a193];return _0xc617b3;},a90_0x32a1(_0x478299,_0x1c2c8e);}function a90_0x4f71(){const _0x544ff4=['45016RbSflF','48061ZHMaGh','1668VZjdOe','.\x20Must\x20be\x20a\x20number.','3956COJdwx','672890RvofXV','742445jmWGTK','.\x20Must\x20be\x20an\x20integer.','1732929sNNRXo','19845qoZQnY','isInteger','99jjMRrz','number','Invalid\x20timeout\x20value:\x20','592nsglZs','25XOyQfu','138KGmPoV','6rNMPNw','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20limit\x20value:\x20'];a90_0x4f71=function(){return _0x544ff4;};return a90_0x4f71();}(function(_0xa71762,_0x2509ba){const _0x2118fa=a90_0x32a1,_0x7f5147=_0xa71762();while(!![]){try{const _0x16e520=-parseInt(_0x2118fa(0xc3))/0x1*(-parseInt(_0x2118fa(0xb8))/0x2)+-parseInt(_0x2118fa(0xb0))/0x3*(-parseInt(_0x2118fa(0xb4))/0x4)+-parseInt(_0x2118fa(0xba))/0x5*(-parseInt(_0x2118fa(0xb1))/0x6)+parseInt(_0x2118fa(0xbd))/0x7*(-parseInt(_0x2118fa(0xc2))/0x8)+-parseInt(_0x2118fa(0xbf))/0x9*(parseInt(_0x2118fa(0xb9))/0xa)+parseInt(_0x2118fa(0xbc))/0xb+parseInt(_0x2118fa(0xb6))/0xc*(parseInt(_0x2118fa(0xb5))/0xd);if(_0x16e520===_0x2509ba)break;else _0x7f5147['push'](_0x7f5147['shift']());}catch(_0x3e161d){_0x7f5147['push'](_0x7f5147['shift']());}}}(a90_0x4f71,0x6ab54));export function validateLimitOption(_0x46f1cc){const _0x2cb1f3=a90_0x32a1;if(!Number[_0x2cb1f3(0xbe)](_0x46f1cc))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x46f1cc+_0x2cb1f3(0xbb)};if(_0x46f1cc<=0x0)return{'isValid':![],'error':_0x2cb1f3(0xb3)+_0x46f1cc+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x46f1cc};}export function validateTimeoutOption(_0xb08602,_0x5db99b=0x1e){const _0x24822d=a90_0x32a1;if(_0xb08602===undefined)return{'isValid':!![],'value':_0x5db99b};const _0x2658fc=typeof _0xb08602===_0x24822d(0xc0)?_0xb08602:parseFloat(_0xb08602);if(isNaN(_0x2658fc))return{'isValid':![],'error':_0x24822d(0xc1)+_0xb08602+_0x24822d(0xb7)};if(_0x2658fc<=0x0)return{'isValid':![],'error':_0x24822d(0xc1)+_0x2658fc+_0x24822d(0xb2)};return{'isValid':!![],'value':_0x2658fc};}
1
+ function a90_0x2088(){const _0x64be53=['number','328782OmpGAf','.\x20Must\x20be\x20a\x20positive\x20number.','864505xeOyqK','1994536RguoZb','324720zYGQQO','.\x20Must\x20be\x20an\x20integer.','Invalid\x20limit\x20value:\x20','2uCAJAg','.\x20Must\x20be\x20a\x20number.','8fqFGYA','Invalid\x20timeout\x20value:\x20','724690KljZjB','isInteger','14mCHsGf','2386464zUWFSW','5970EVCPfw','.\x20Must\x20be\x20a\x20positive\x20integer.','33ZivBOK'];a90_0x2088=function(){return _0x64be53;};return a90_0x2088();}function a90_0xee5c(_0x493616,_0x269e7c){const _0x208832=a90_0x2088();return a90_0xee5c=function(_0xee5c2e,_0x10f8c7){_0xee5c2e=_0xee5c2e-0x19b;let _0x4c30d8=_0x208832[_0xee5c2e];return _0x4c30d8;},a90_0xee5c(_0x493616,_0x269e7c);}(function(_0x269238,_0x3752d4){const _0x21a236=a90_0xee5c,_0x16042f=_0x269238();while(!![]){try{const _0x2f78d0=parseInt(_0x21a236(0x1ac))/0x1*(parseInt(_0x21a236(0x1a1))/0x2)+parseInt(_0x21a236(0x1a5))/0x3+parseInt(_0x21a236(0x19b))/0x4*(parseInt(_0x21a236(0x1a7))/0x5)+-parseInt(_0x21a236(0x1a0))/0x6+-parseInt(_0x21a236(0x19f))/0x7*(-parseInt(_0x21a236(0x1a8))/0x8)+-parseInt(_0x21a236(0x1a9))/0x9+-parseInt(_0x21a236(0x19d))/0xa*(parseInt(_0x21a236(0x1a3))/0xb);if(_0x2f78d0===_0x3752d4)break;else _0x16042f['push'](_0x16042f['shift']());}catch(_0x4a37db){_0x16042f['push'](_0x16042f['shift']());}}}(a90_0x2088,0x4b621));export function validateLimitOption(_0x1237c4){const _0x341a54=a90_0xee5c;if(!Number[_0x341a54(0x19e)](_0x1237c4))return{'isValid':![],'error':_0x341a54(0x1ab)+_0x1237c4+_0x341a54(0x1aa)};if(_0x1237c4<=0x0)return{'isValid':![],'error':_0x341a54(0x1ab)+_0x1237c4+_0x341a54(0x1a2)};return{'isValid':!![],'value':_0x1237c4};}export function validateTimeoutOption(_0x5c70ec,_0x4d4ac8=0x1e){const _0x3d4427=a90_0xee5c;if(_0x5c70ec===undefined)return{'isValid':!![],'value':_0x4d4ac8};const _0x21a607=typeof _0x5c70ec===_0x3d4427(0x1a4)?_0x5c70ec:parseFloat(_0x5c70ec);if(isNaN(_0x21a607))return{'isValid':![],'error':_0x3d4427(0x19c)+_0x5c70ec+_0x3d4427(0x1ad)};if(_0x21a607<=0x0)return{'isValid':![],'error':_0x3d4427(0x19c)+_0x21a607+_0x3d4427(0x1a6)};return{'isValid':!![],'value':_0x21a607};}
@@ -1 +1 @@
1
- (function(_0x416cee,_0x13ff54){const _0xee090e=a91_0x4619,_0x86a7e1=_0x416cee();while(!![]){try{const _0x45b1c5=parseInt(_0xee090e(0x163))/0x1+parseInt(_0xee090e(0x169))/0x2+-parseInt(_0xee090e(0x161))/0x3*(-parseInt(_0xee090e(0x167))/0x4)+-parseInt(_0xee090e(0x168))/0x5*(-parseInt(_0xee090e(0x160))/0x6)+-parseInt(_0xee090e(0x16b))/0x7+parseInt(_0xee090e(0x16c))/0x8+-parseInt(_0xee090e(0x166))/0x9*(parseInt(_0xee090e(0x162))/0xa);if(_0x45b1c5===_0x13ff54)break;else _0x86a7e1['push'](_0x86a7e1['shift']());}catch(_0x2b62ff){_0x86a7e1['push'](_0x86a7e1['shift']());}}}(a91_0x1bb4,0x9f6df));import{createServer}from'node:net';function a91_0x1bb4(){const _0x29a66a=['9SBtumV','10940GebUHA','5mNaboX','1513644MgPqCQ','close','3088407QOElNi','10285536KBSmYN','once','\x20and\x20','No\x20available\x20port\x20found\x20between\x20','2658102wXlIbH','237UPABHV','20768390qvrxrx','469467ejCAne','listen','code'];a91_0x1bb4=function(){return _0x29a66a;};return a91_0x1bb4();}function a91_0x4619(_0x5f068a,_0x1f1f3d){const _0x1bb4f8=a91_0x1bb4();return a91_0x4619=function(_0x461970,_0x99bac4){_0x461970=_0x461970-0x160;let _0xd32c96=_0x1bb4f8[_0x461970];return _0xd32c96;},a91_0x4619(_0x5f068a,_0x1f1f3d);}export async function isPortAvailable(_0x1033c8){return new Promise(_0x5114ff=>{const _0x105a2b=a91_0x4619,_0x3e71ba=createServer();_0x3e71ba[_0x105a2b(0x16d)]('error',_0x58f5e3=>{const _0x2e5a0e=_0x105a2b;_0x58f5e3[_0x2e5a0e(0x165)]==='EADDRINUSE'?_0x5114ff(![]):_0x5114ff(![]);}),_0x3e71ba[_0x105a2b(0x16d)]('listening',()=>{const _0x43018e=_0x105a2b;_0x3e71ba[_0x43018e(0x16a)](),_0x5114ff(!![]);}),_0x3e71ba[_0x105a2b(0x164)](_0x1033c8,'0.0.0.0');});}export async function findAvailablePort(_0x5b525e=0xfa0,_0x3faa9c=0x64){const _0xf00c9e=a91_0x4619;for(let _0x2b4aa5=0x0;_0x2b4aa5<_0x3faa9c;_0x2b4aa5++){const _0x2c9288=_0x5b525e+_0x2b4aa5;if(await isPortAvailable(_0x2c9288))return _0x2c9288;}throw new Error(_0xf00c9e(0x16f)+_0x5b525e+_0xf00c9e(0x16e)+(_0x5b525e+_0x3faa9c-0x1));}
1
+ (function(_0x4757bf,_0x4c39f6){const _0x1af5d1=a91_0xda0e,_0x16b317=_0x4757bf();while(!![]){try{const _0x491959=-parseInt(_0x1af5d1(0x1cb))/0x1*(parseInt(_0x1af5d1(0x1ca))/0x2)+parseInt(_0x1af5d1(0x1cc))/0x3*(-parseInt(_0x1af5d1(0x1cf))/0x4)+parseInt(_0x1af5d1(0x1cd))/0x5+parseInt(_0x1af5d1(0x1d6))/0x6+parseInt(_0x1af5d1(0x1d1))/0x7*(-parseInt(_0x1af5d1(0x1da))/0x8)+parseInt(_0x1af5d1(0x1d0))/0x9*(parseInt(_0x1af5d1(0x1d9))/0xa)+parseInt(_0x1af5d1(0x1d4))/0xb;if(_0x491959===_0x4c39f6)break;else _0x16b317['push'](_0x16b317['shift']());}catch(_0x1964bc){_0x16b317['push'](_0x16b317['shift']());}}}(a91_0x2a5e,0x583f7));import{createServer}from'node:net';export async function isPortAvailable(_0xd31087){return new Promise(_0x100d28=>{const _0x293c61=a91_0xda0e,_0x515338=createServer();_0x515338[_0x293c61(0x1c9)](_0x293c61(0x1d8),_0x485da3=>{const _0x29b4ac=_0x293c61;_0x485da3['code']===_0x29b4ac(0x1db)?_0x100d28(![]):_0x100d28(![]);}),_0x515338['once'](_0x293c61(0x1d2),()=>{const _0xaba8f1=_0x293c61;_0x515338[_0xaba8f1(0x1ce)](),_0x100d28(!![]);}),_0x515338[_0x293c61(0x1d3)](_0xd31087,_0x293c61(0x1d7));});}export async function findAvailablePort(_0xcf9018=0xfa0,_0x5eb060=0x64){const _0x5e2fe1=a91_0xda0e;for(let _0xb19034=0x0;_0xb19034<_0x5eb060;_0xb19034++){const _0x3f5f41=_0xcf9018+_0xb19034;if(await isPortAvailable(_0x3f5f41))return _0x3f5f41;}throw new Error(_0x5e2fe1(0x1d5)+_0xcf9018+'\x20and\x20'+(_0xcf9018+_0x5eb060-0x1));}function a91_0xda0e(_0x833030,_0x34ffe0){const _0x2a5e2b=a91_0x2a5e();return a91_0xda0e=function(_0xda0e22,_0x5ca7dd){_0xda0e22=_0xda0e22-0x1c9;let _0x40e3e1=_0x2a5e2b[_0xda0e22];return _0x40e3e1;},a91_0xda0e(_0x833030,_0x34ffe0);}function a91_0x2a5e(){const _0x286524=['10pjCEaO','232RmuPRn','EADDRINUSE','once','7946WLIuEW','16gBmftZ','6oRIIfa','2579390sNMcBN','close','1154852LodhFp','1893492zzPDXf','67739lgaWqK','listening','listen','308759YfZYXW','No\x20available\x20port\x20found\x20between\x20','3172530LpjRAY','0.0.0.0','error'];a91_0x2a5e=function(){return _0x286524;};return a91_0x2a5e();}
@@ -1 +1 @@
1
- const a92_0x312f4f=a92_0x5ac4;(function(_0xefac87,_0xa2d936){const _0x5c7fea=a92_0x5ac4,_0x305b40=_0xefac87();while(!![]){try{const _0x4c1132=parseInt(_0x5c7fea(0xe5))/0x1+-parseInt(_0x5c7fea(0xd0))/0x2*(-parseInt(_0x5c7fea(0xd7))/0x3)+parseInt(_0x5c7fea(0xdf))/0x4*(-parseInt(_0x5c7fea(0xe6))/0x5)+parseInt(_0x5c7fea(0xe7))/0x6*(parseInt(_0x5c7fea(0xd2))/0x7)+-parseInt(_0x5c7fea(0xda))/0x8+parseInt(_0x5c7fea(0xed))/0x9+-parseInt(_0x5c7fea(0xe9))/0xa;if(_0x4c1132===_0xa2d936)break;else _0x305b40['push'](_0x305b40['shift']());}catch(_0x452a94){_0x305b40['push'](_0x305b40['shift']());}}}(a92_0xf2f6,0x206c3));import{execSync}from'node:child_process';function a92_0x5ac4(_0x225515,_0x565ac9){const _0xf2f6eb=a92_0xf2f6();return a92_0x5ac4=function(_0x5ac462,_0x58a107){_0x5ac462=_0x5ac462-0xcf;let _0x523d40=_0xf2f6eb[_0x5ac462];return _0x523d40;},a92_0x5ac4(_0x225515,_0x565ac9);}const SHELL_NAMES=new Set([a92_0x312f4f(0xcf),a92_0x312f4f(0xd8),'sh',a92_0x312f4f(0xfc),a92_0x312f4f(0xfa),a92_0x312f4f(0xef),'csh',a92_0x312f4f(0xf9),a92_0x312f4f(0xe8),a92_0x312f4f(0xdb),'nu',a92_0x312f4f(0xd3),'elvish',a92_0x312f4f(0xd1)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a92_0x312f4f(0xe1),a92_0x312f4f(0xf2)]);function getProcessInfoWindows(_0x5cc9d4){const _0x2b5b58=a92_0x312f4f;try{const _0x1d952e=execSync(_0x2b5b58(0xd5)+_0x5cc9d4+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x2b5b58(0xfb),'windowsHide':!![]})[_0x2b5b58(0xfe)](),_0x59f55b=_0x1d952e[_0x2b5b58(0xe2)]('\x0a')[_0x2b5b58(0xf8)](_0x1bf765=>_0x1bf765[_0x2b5b58(0xfe)]());if(_0x59f55b[_0x2b5b58(0xf6)]<0x2)return null;const _0x162e08=_0x59f55b[_0x59f55b[_0x2b5b58(0xf6)]-0x1][_0x2b5b58(0xe2)](',');if(_0x162e08['length']<0x3)return null;const _0x8648c5=_0x162e08[0x1]?.[_0x2b5b58(0xfe)]()||'',_0x51ee9b=parseInt(_0x162e08[0x2]?.[_0x2b5b58(0xfe)]()||'0',0xa);if(isNaN(_0x51ee9b)||!_0x8648c5)return null;return{'pid':_0x5cc9d4,'ppid':_0x51ee9b,'comm':_0x8648c5[_0x2b5b58(0xec)](/\.exe$/i,'')};}catch(_0x4d9637){return process[_0x2b5b58(0xd9)]['DEBUG']&&console['error'](_0x2b5b58(0xd6)+_0x5cc9d4+'\x20on\x20Windows:',_0x4d9637),null;}}function getProcessInfoPosix(_0x3ec2ab){const _0x35bbca=a92_0x312f4f;try{const _0x5c2bd3=execSync(_0x35bbca(0xf0)+_0x3ec2ab+_0x35bbca(0xdd),{'encoding':'utf-8'})['trim'](),[_0x14aa15,..._0x1e74e6]=_0x5c2bd3['split'](/\s+/),_0x564300=parseInt(_0x14aa15,0xa),_0x3ab415=_0x1e74e6[_0x35bbca(0xf4)]('\x20');if(isNaN(_0x564300))return null;return{'pid':_0x3ec2ab,'ppid':_0x564300,'comm':_0x3ab415};}catch(_0x350e97){return process[_0x35bbca(0xd9)][_0x35bbca(0xee)]&&console['error'](_0x35bbca(0xd6)+_0x3ec2ab+_0x35bbca(0xf7),_0x350e97),null;}}function getProcessInfo(_0x4ac7ee){if(process['platform']==='win32')return getProcessInfoWindows(_0x4ac7ee);return getProcessInfoPosix(_0x4ac7ee);}function getBasename(_0x3b110e){const _0xc6ee1c=a92_0x312f4f;return _0x3b110e[_0xc6ee1c(0xec)](/^-/,'')[_0xc6ee1c(0xe2)]('/')['pop']()?.[_0xc6ee1c(0xf3)]()||'';}function a92_0xf2f6(){const _0x541a58=['1658268CRDlNh','DEBUG','tcsh','ps\x20-p\x20','error','cursor','toLowerCase','join',',\x20using\x20fallback','length','\x20on\x20POSIX:','filter','dash','ksh','utf-8','fish',')\x20spawned\x20by\x20','trim','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','bash','34994TeiIyq','xonsh','382179hVMkhZ','ion','Found\x20ephemeral\x20shell\x20','wmic\x20process\x20where\x20ProcessId=','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','36JKVwUl','zsh','env','1696192kWHVJD','powershell','has','\x20-o\x20ppid=,comm=','ppid','4JvfFft',',\x20continuing\x20up','code','split','comm','pid','6248NsPEgP','848285jvjnum','18yeZHfP','pwsh','497710CfvYWF','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','kill','replace'];a92_0xf2f6=function(){return _0x541a58;};return a92_0xf2f6();}function isShell(_0x407aaf){const _0x3f80c4=a92_0x312f4f;return SHELL_NAMES[_0x3f80c4(0xdc)](getBasename(_0x407aaf));}function isEphemeralShellSpawner(_0x1cefc8){const _0x71fd61=a92_0x312f4f;return EPHEMERAL_SHELL_SPAWNERS[_0x71fd61(0xdc)](getBasename(_0x1cefc8));}let cachedShellPID;function findShellPID(){const _0x2c8eba=a92_0x312f4f;let _0x569aa3=process[_0x2c8eba(0xde)];const _0x213943=0xa;let _0x3b46af=0x0;while(_0x3b46af<_0x213943){const _0x31526b=getProcessInfo(_0x569aa3);if(!_0x31526b){process[_0x2c8eba(0xd9)]['DEBUG']&&console['error'](_0x2c8eba(0xea)+_0x569aa3+_0x2c8eba(0xf5));break;}if(isShell(_0x31526b['comm'])){const _0x5920bc=getProcessInfo(_0x31526b[_0x2c8eba(0xde)]);if(_0x5920bc&&isEphemeralShellSpawner(_0x5920bc[_0x2c8eba(0xe3)])){process['env'][_0x2c8eba(0xee)]&&console[_0x2c8eba(0xf1)](_0x2c8eba(0xd4)+_0x31526b['pid']+'\x20('+_0x31526b['comm']+_0x2c8eba(0xfd)+_0x5920bc[_0x2c8eba(0xe3)]+_0x2c8eba(0xe0));_0x569aa3=_0x31526b['ppid'],_0x3b46af++;continue;}return _0x31526b[_0x2c8eba(0xe4)];}if(_0x31526b['ppid']===0x0||_0x31526b[_0x2c8eba(0xde)]===0x1){if(isShell(_0x31526b[_0x2c8eba(0xe3)]))return _0x31526b[_0x2c8eba(0xe4)];break;}_0x569aa3=_0x31526b[_0x2c8eba(0xde)],_0x3b46af++;}return process[_0x2c8eba(0xd9)][_0x2c8eba(0xee)]&&console[_0x2c8eba(0xf1)](_0x2c8eba(0xff)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x1a7606){const _0x11ae7c=a92_0x312f4f;try{return process[_0x11ae7c(0xeb)](_0x1a7606,0x0),!![];}catch{return![];}}
1
+ const a92_0x23af8b=a92_0x50b6;(function(_0x4d419f,_0x361732){const _0x1b11f5=a92_0x50b6,_0x13b6a9=_0x4d419f();while(!![]){try{const _0x3833ce=-parseInt(_0x1b11f5(0x1d1))/0x1*(-parseInt(_0x1b11f5(0x1e6))/0x2)+-parseInt(_0x1b11f5(0x1c5))/0x3*(parseInt(_0x1b11f5(0x1ba))/0x4)+-parseInt(_0x1b11f5(0x1ce))/0x5*(-parseInt(_0x1b11f5(0x1b8))/0x6)+-parseInt(_0x1b11f5(0x1bb))/0x7*(parseInt(_0x1b11f5(0x1d4))/0x8)+parseInt(_0x1b11f5(0x1d6))/0x9*(parseInt(_0x1b11f5(0x1d8))/0xa)+parseInt(_0x1b11f5(0x1bf))/0xb*(-parseInt(_0x1b11f5(0x1c7))/0xc)+parseInt(_0x1b11f5(0x1d7))/0xd;if(_0x3833ce===_0x361732)break;else _0x13b6a9['push'](_0x13b6a9['shift']());}catch(_0x185aa6){_0x13b6a9['push'](_0x13b6a9['shift']());}}}(a92_0x2e5c,0xa94aa));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a92_0x23af8b(0x1c2),a92_0x23af8b(0x1cd),'sh',a92_0x23af8b(0x1c8),'ksh','tcsh','csh',a92_0x23af8b(0x1c9),'pwsh','powershell','nu',a92_0x23af8b(0x1b9),'elvish',a92_0x23af8b(0x1be)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a92_0x23af8b(0x1db),a92_0x23af8b(0x1e4)]);function getProcessInfoWindows(_0x452c9b){const _0x54b19b=a92_0x23af8b;try{const _0x2df535=execSync('wmic\x20process\x20where\x20ProcessId='+_0x452c9b+_0x54b19b(0x1d3),{'encoding':'utf-8','windowsHide':!![]})['trim'](),_0x1bfe30=_0x2df535[_0x54b19b(0x1dc)]('\x0a')['filter'](_0x451631=>_0x451631[_0x54b19b(0x1c0)]());if(_0x1bfe30[_0x54b19b(0x1dd)]<0x2)return null;const _0x59c5e6=_0x1bfe30[_0x1bfe30[_0x54b19b(0x1dd)]-0x1][_0x54b19b(0x1dc)](',');if(_0x59c5e6[_0x54b19b(0x1dd)]<0x3)return null;const _0x371f69=_0x59c5e6[0x1]?.['trim']()||'',_0x1f1960=parseInt(_0x59c5e6[0x2]?.[_0x54b19b(0x1c0)]()||'0',0xa);if(isNaN(_0x1f1960)||!_0x371f69)return null;return{'pid':_0x452c9b,'ppid':_0x1f1960,'comm':_0x371f69[_0x54b19b(0x1c4)](/\.exe$/i,'')};}catch(_0x1c4f28){return process[_0x54b19b(0x1bd)][_0x54b19b(0x1de)]&&console[_0x54b19b(0x1c6)](_0x54b19b(0x1c1)+_0x452c9b+_0x54b19b(0x1d0),_0x1c4f28),null;}}function getProcessInfoPosix(_0xc02130){const _0x10acf2=a92_0x23af8b;try{const _0x250bd7=execSync(_0x10acf2(0x1d5)+_0xc02130+'\x20-o\x20ppid=,comm=',{'encoding':_0x10acf2(0x1e0)})[_0x10acf2(0x1c0)](),[_0x35fb3e,..._0xc00237]=_0x250bd7[_0x10acf2(0x1dc)](/\s+/),_0x401d5f=parseInt(_0x35fb3e,0xa),_0xd19f40=_0xc00237[_0x10acf2(0x1e5)]('\x20');if(isNaN(_0x401d5f))return null;return{'pid':_0xc02130,'ppid':_0x401d5f,'comm':_0xd19f40};}catch(_0xbe60ad){return process['env'][_0x10acf2(0x1de)]&&console[_0x10acf2(0x1c6)](_0x10acf2(0x1c1)+_0xc02130+'\x20on\x20POSIX:',_0xbe60ad),null;}}function getProcessInfo(_0x833d5){const _0x3780bd=a92_0x23af8b;if(process[_0x3780bd(0x1c3)]===_0x3780bd(0x1da))return getProcessInfoWindows(_0x833d5);return getProcessInfoPosix(_0x833d5);}function getBasename(_0x2ab484){const _0x5f16f2=a92_0x23af8b;return _0x2ab484[_0x5f16f2(0x1c4)](/^-/,'')['split']('/')[_0x5f16f2(0x1ca)]()?.[_0x5f16f2(0x1d2)]()||'';}function isShell(_0x5720ae){const _0x29ce3a=a92_0x23af8b;return SHELL_NAMES[_0x29ce3a(0x1cb)](getBasename(_0x5720ae));}function a92_0x50b6(_0x366b6c,_0x2509d0){const _0x2e5c9d=a92_0x2e5c();return a92_0x50b6=function(_0x50b60b,_0x3c02fc){_0x50b60b=_0x50b60b-0x1b8;let _0x4e25bb=_0x2e5c9d[_0x50b60b];return _0x4e25bb;},a92_0x50b6(_0x366b6c,_0x2509d0);}function isEphemeralShellSpawner(_0x21af3d){const _0x22bd0e=a92_0x23af8b;return EPHEMERAL_SHELL_SPAWNERS[_0x22bd0e(0x1cb)](getBasename(_0x21af3d));}let cachedShellPID;function findShellPID(){const _0x2dfd43=a92_0x23af8b;let _0x3bc221=process[_0x2dfd43(0x1df)];const _0x25bfc3=0xa;let _0x57ce78=0x0;while(_0x57ce78<_0x25bfc3){const _0x194351=getProcessInfo(_0x3bc221);if(!_0x194351){process[_0x2dfd43(0x1bd)][_0x2dfd43(0x1de)]&&console[_0x2dfd43(0x1c6)](_0x2dfd43(0x1e3)+_0x3bc221+',\x20using\x20fallback');break;}if(isShell(_0x194351['comm'])){const _0xf4c520=getProcessInfo(_0x194351['ppid']);if(_0xf4c520&&isEphemeralShellSpawner(_0xf4c520[_0x2dfd43(0x1d9)])){process[_0x2dfd43(0x1bd)][_0x2dfd43(0x1de)]&&console[_0x2dfd43(0x1c6)](_0x2dfd43(0x1bc)+_0x194351['pid']+'\x20('+_0x194351[_0x2dfd43(0x1d9)]+_0x2dfd43(0x1e2)+_0xf4c520[_0x2dfd43(0x1d9)]+',\x20continuing\x20up');_0x3bc221=_0x194351[_0x2dfd43(0x1df)],_0x57ce78++;continue;}return _0x194351['pid'];}if(_0x194351[_0x2dfd43(0x1df)]===0x0||_0x194351[_0x2dfd43(0x1df)]===0x1){if(isShell(_0x194351[_0x2dfd43(0x1d9)]))return _0x194351[_0x2dfd43(0x1cc)];break;}_0x3bc221=_0x194351[_0x2dfd43(0x1df)],_0x57ce78++;}return process[_0x2dfd43(0x1bd)]['DEBUG']&&console[_0x2dfd43(0x1c6)](_0x2dfd43(0x1e1)),process[_0x2dfd43(0x1df)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}function a92_0x2e5c(){const _0x257156=['9757NaiZdW','trim','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','bash','platform','replace','813iIaqdp','error','4584nwnuND','fish','dash','pop','has','pid','zsh','70FLSzBa','kill','\x20on\x20Windows:','7vfEYFj','toLowerCase','\x20get\x20ParentProcessId,Name\x20/format:csv','7969448JkRqEl','ps\x20-p\x20','62640kQJYFP','9488934CvpAOc','90uRvrjn','comm','win32','code','split','length','DEBUG','ppid','utf-8','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid',')\x20spawned\x20by\x20','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','cursor','join','351602hZOTTV','457770jjUXHM','ion','15688AZhQwN','7wIdZpR','Found\x20ephemeral\x20shell\x20','env','xonsh'];a92_0x2e5c=function(){return _0x257156;};return a92_0x2e5c();}export function isProcessRunning(_0x4c3c12){const _0x2bdcb5=a92_0x23af8b;try{return process[_0x2bdcb5(0x1cf)](_0x4c3c12,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x335956,_0x2edcb6){const _0x2658d7=a93_0x1ab3,_0x21eb11=_0x335956();while(!![]){try{const _0x4f0440=-parseInt(_0x2658d7(0xda))/0x1*(parseInt(_0x2658d7(0xef))/0x2)+-parseInt(_0x2658d7(0xe4))/0x3*(-parseInt(_0x2658d7(0xec))/0x4)+-parseInt(_0x2658d7(0xe0))/0x5*(-parseInt(_0x2658d7(0xf4))/0x6)+parseInt(_0x2658d7(0xeb))/0x7+parseInt(_0x2658d7(0xed))/0x8+-parseInt(_0x2658d7(0xf2))/0x9*(parseInt(_0x2658d7(0xdd))/0xa)+-parseInt(_0x2658d7(0xf1))/0xb;if(_0x4f0440===_0x2edcb6)break;else _0x21eb11['push'](_0x21eb11['shift']());}catch(_0x35fc4b){_0x21eb11['push'](_0x21eb11['shift']());}}}(a93_0x514e,0xcbe30));function a93_0x1ab3(_0x5dbeee,_0x2330b8){const _0x514e33=a93_0x514e();return a93_0x1ab3=function(_0x1ab3ea,_0x5deb3a){_0x1ab3ea=_0x1ab3ea-0xda;let _0x54ee9b=_0x514e33[_0x1ab3ea];return _0x54ee9b;},a93_0x1ab3(_0x5dbeee,_0x2330b8);}function a93_0x514e(){const _0x52dd13=['stdout','402995bErrlY','close','\x20[y/N]\x20','data','102xpmYUA','stdin','setEncoding','yes','\x20(y/N):\x20','utf8','toLowerCase','897148sTUjTN','77060WgrRER','11000608Dwihkn','setRawMode','2SdIkqN','isTTY','14670007svAllC','9981vlGBaj','removeListener','78MiykYm','createInterface','pause','question','384079ApBJhQ','write','stderr','5890LHngpP','resume'];a93_0x514e=function(){return _0x52dd13;};return a93_0x514e();}import*as a93_0x2b45f1 from'readline';export async function confirm(_0x505788){const _0x278284=a93_0x1ab3,_0x4f069a=a93_0x2b45f1[_0x278284(0xf5)]({'input':process['stdin'],'output':process[_0x278284(0xdf)]});return new Promise(_0x3013ce=>{const _0x3ad719=_0x278284;_0x4f069a[_0x3ad719(0xf7)](_0x505788+_0x3ad719(0xe8),_0x10ea45=>{const _0x16cf9c=_0x3ad719;_0x4f069a[_0x16cf9c(0xe1)](),_0x3013ce(_0x10ea45[_0x16cf9c(0xea)]()==='y'||_0x10ea45[_0x16cf9c(0xea)]()===_0x16cf9c(0xe7));});});}export async function confirmKey(_0x12c600){const _0x80fc07=a93_0x1ab3;if(!process['stdin'][_0x80fc07(0xf0)])return![];return process[_0x80fc07(0xdc)][_0x80fc07(0xdb)](_0x12c600+_0x80fc07(0xe2)),new Promise(_0x54890c=>{const _0x1f51e1=_0x80fc07,_0x1647c8=process[_0x1f51e1(0xe5)];_0x1647c8[_0x1f51e1(0xee)](!![]),_0x1647c8[_0x1f51e1(0xde)](),_0x1647c8[_0x1f51e1(0xe6)](_0x1f51e1(0xe9));const _0x53ece7=_0x54618d=>{const _0x1624a6=_0x1f51e1;_0x1647c8[_0x1624a6(0xee)](![]),_0x1647c8[_0x1624a6(0xf6)](),_0x1647c8[_0x1624a6(0xf3)](_0x1624a6(0xe3),_0x53ece7);if(_0x54618d==='\x1b'){process[_0x1624a6(0xdc)][_0x1624a6(0xdb)]('\x0a'),_0x54890c(![]);return;}_0x54618d==='\x03'&&(process['stderr'][_0x1624a6(0xdb)]('\x0a'),process['exit'](0x82));if(_0x54618d[_0x1624a6(0xea)]()==='y'){process[_0x1624a6(0xdc)][_0x1624a6(0xdb)]('y\x0a'),_0x54890c(!![]);return;}process[_0x1624a6(0xdc)]['write']('\x0a'),_0x54890c(![]);};_0x1647c8['on'](_0x1f51e1(0xe3),_0x53ece7);});}
1
+ (function(_0x4c2dc5,_0x3383a0){const _0x298adb=a93_0x40eb,_0x30f0e3=_0x4c2dc5();while(!![]){try{const _0x870da0=-parseInt(_0x298adb(0xda))/0x1+parseInt(_0x298adb(0xe2))/0x2+parseInt(_0x298adb(0xdb))/0x3*(parseInt(_0x298adb(0xf0))/0x4)+parseInt(_0x298adb(0xf1))/0x5+-parseInt(_0x298adb(0xea))/0x6*(-parseInt(_0x298adb(0xef))/0x7)+-parseInt(_0x298adb(0xe9))/0x8*(-parseInt(_0x298adb(0xe3))/0x9)+-parseInt(_0x298adb(0xec))/0xa;if(_0x870da0===_0x3383a0)break;else _0x30f0e3['push'](_0x30f0e3['shift']());}catch(_0x59901d){_0x30f0e3['push'](_0x30f0e3['shift']());}}}(a93_0x1ab0,0x80068));import*as a93_0x369219 from'readline';export async function confirm(_0x1c036b){const _0xa94c0c=a93_0x40eb,_0x38cbe8=a93_0x369219[_0xa94c0c(0xee)]({'input':process['stdin'],'output':process[_0xa94c0c(0xe8)]});return new Promise(_0x4d57f1=>{const _0x35de32=_0xa94c0c;_0x38cbe8[_0x35de32(0xe5)](_0x1c036b+_0x35de32(0xe1),_0x1d5cd5=>{const _0x17c387=_0x35de32;_0x38cbe8[_0x17c387(0xde)](),_0x4d57f1(_0x1d5cd5[_0x17c387(0xdc)]()==='y'||_0x1d5cd5[_0x17c387(0xdc)]()===_0x17c387(0xd9));});});}export async function confirmKey(_0x3f5de1){const _0x34100a=a93_0x40eb;if(!process[_0x34100a(0xe6)][_0x34100a(0xdf)])return![];return process[_0x34100a(0xe7)]['write'](_0x3f5de1+'\x20[y/N]\x20'),new Promise(_0x3c38f2=>{const _0x1c1167=_0x34100a,_0x5e52a5=process[_0x1c1167(0xe6)];_0x5e52a5['setRawMode'](!![]),_0x5e52a5['resume'](),_0x5e52a5[_0x1c1167(0xd8)](_0x1c1167(0xe4));const _0x3bf21c=_0x45515b=>{const _0x3ea699=_0x1c1167;_0x5e52a5[_0x3ea699(0xdd)](![]),_0x5e52a5[_0x3ea699(0xeb)](),_0x5e52a5[_0x3ea699(0xd6)]('data',_0x3bf21c);if(_0x45515b==='\x1b'){process[_0x3ea699(0xe7)][_0x3ea699(0xd7)]('\x0a'),_0x3c38f2(![]);return;}_0x45515b==='\x03'&&(process[_0x3ea699(0xe7)][_0x3ea699(0xd7)]('\x0a'),process[_0x3ea699(0xe0)](0x82));if(_0x45515b[_0x3ea699(0xdc)]()==='y'){process[_0x3ea699(0xe7)][_0x3ea699(0xd7)]('y\x0a'),_0x3c38f2(!![]);return;}process['stderr'][_0x3ea699(0xd7)]('\x0a'),_0x3c38f2(![]);};_0x5e52a5['on'](_0x1c1167(0xed),_0x3bf21c);});}function a93_0x40eb(_0x38f08d,_0x1991f4){const _0x1ab036=a93_0x1ab0();return a93_0x40eb=function(_0x40ebb0,_0x24ed6d){_0x40ebb0=_0x40ebb0-0xd6;let _0x504c97=_0x1ab036[_0x40ebb0];return _0x504c97;},a93_0x40eb(_0x38f08d,_0x1991f4);}function a93_0x1ab0(){const _0xd10357=['data','createInterface','385upgGlQ','16vncyGc','3619685SSBfvp','removeListener','write','setEncoding','yes','779896siDYBO','505227tDduru','toLowerCase','setRawMode','close','isTTY','exit','\x20(y/N):\x20','1284574jnjkhy','441SIFJoX','utf8','question','stdin','stderr','stdout','128776vOboHT','15384Iisoxj','pause','16653450OpbBkI'];a93_0x1ab0=function(){return _0xd10357;};return a93_0x1ab0();}
@@ -1 +1 @@
1
- (function(_0x4fa72d,_0x232a0a){const _0x2583c9=a94_0x2cfc,_0x3aebff=_0x4fa72d();while(!![]){try{const _0x281b4d=parseInt(_0x2583c9(0xa0))/0x1+-parseInt(_0x2583c9(0x99))/0x2+parseInt(_0x2583c9(0x93))/0x3+-parseInt(_0x2583c9(0x9b))/0x4*(parseInt(_0x2583c9(0xa7))/0x5)+-parseInt(_0x2583c9(0xa4))/0x6*(-parseInt(_0x2583c9(0x94))/0x7)+parseInt(_0x2583c9(0xaa))/0x8*(parseInt(_0x2583c9(0x9e))/0x9)+-parseInt(_0x2583c9(0x92))/0xa*(parseInt(_0x2583c9(0xac))/0xb);if(_0x281b4d===_0x232a0a)break;else _0x3aebff['push'](_0x3aebff['shift']());}catch(_0x4bb7e6){_0x3aebff['push'](_0x3aebff['shift']());}}}(a94_0x2457,0xdbea9));export function parsePath(_0x39483b){const _0x490f70=a94_0x2cfc;if(!_0x39483b||_0x39483b[_0x490f70(0x95)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x28b853=_0x39483b[_0x490f70(0x95)]();if(_0x28b853==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x39483b};const _0x56f52a=_0x28b853['startsWith']('/')?_0x28b853['substring'](0x1):_0x28b853,_0x965736=_0x56f52a[_0x490f70(0xa9)]('/')[_0x490f70(0x9f)](_0xe6432c=>_0xe6432c!=='');if(_0x965736[_0x490f70(0xa2)]===0x0)throw new Error(_0x490f70(0x9d));const _0x5543a1=_0x28b853[_0x490f70(0xab)]('/')||!isRelativePathSegment(_0x965736[0x0]);for(const _0x2efdb1 of _0x965736){validatePathSegment(_0x2efdb1);}return{'segments':_0x965736,'isAbsolute':_0x5543a1,'raw':_0x39483b};}function isRelativePathSegment(_0x20afd9){return _0x20afd9==='.'||_0x20afd9==='..';}function a94_0x2457(){const _0x2cf4af=['join','5BKhJDS','isAbsolute','split','4048ieqUtY','startsWith','233442hRoYjK','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','segments','slice','160ecFygv','4939341bipzwX','21JzYlQF','trim','test','pop','Path\x20segment\x20cannot\x20be\x20empty','3372022nkzQpW','push','3494916VcoOrc','Cannot\x20split\x20empty\x20path','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','3906tEzijG','filter','1399169ZACJfB','raw','length','Relative\x20path\x20cannot\x20be\x20empty','1069698ufNNnv','Cannot\x20navigate\x20above\x20root'];a94_0x2457=function(){return _0x2cf4af;};return a94_0x2457();}function validatePathSegment(_0x3bff5b){const _0x4b0839=a94_0x2cfc;if(_0x3bff5b==='')throw new Error(_0x4b0839(0x98));if(_0x3bff5b==='.'||_0x3bff5b==='..')return;if(/[\x00-\x1F\x7F]/[_0x4b0839(0x96)](_0x3bff5b))throw new Error(_0x4b0839(0xad)+_0x3bff5b);if(_0x3bff5b!==_0x3bff5b[_0x4b0839(0x95)]()){}}export function validatePath(_0x3469af){const _0x2e9836=a94_0x2cfc;if(_0x3469af[_0x2e9836(0xae)][_0x2e9836(0xa2)]===0x0&&!_0x3469af[_0x2e9836(0xa8)])throw new Error(_0x2e9836(0xa3));if(_0x3469af['isAbsolute']){if(_0x3469af['segments'][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x3273b4=0x0;for(const _0x55769b of _0x3469af[_0x2e9836(0xae)]){if(_0x55769b==='..'){if(_0x3273b4===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x3273b4--;}else _0x55769b!=='.'&&_0x3273b4++;}}}export function joinPaths(_0x12f2a6,_0x22557b){const _0x15b29b=a94_0x2cfc;if(!_0x12f2a6||_0x12f2a6==='/')return _0x22557b;if(!_0x22557b||_0x22557b==='.')return _0x12f2a6;if(_0x22557b[_0x15b29b(0xab)]('/'))return _0x22557b;const _0x464568=parsePath(_0x12f2a6),_0x275c43=parsePath(_0x22557b),_0x17e61b=[..._0x464568[_0x15b29b(0xae)]];for(const _0xdcd304 of _0x275c43[_0x15b29b(0xae)]){if(_0xdcd304==='.')continue;else{if(_0xdcd304==='..'){if(_0x17e61b[_0x15b29b(0xa2)]===0x0)throw new Error(_0x15b29b(0xa5));_0x17e61b[_0x15b29b(0x97)]();}else _0x17e61b['push'](_0xdcd304);}}const _0x43de77=_0x17e61b['join']('/');return _0x464568[_0x15b29b(0xa1)][_0x15b29b(0xab)]('/')?'/'+_0x43de77:_0x43de77;}export function normalizePath(_0x3bcc60){const _0x247fa9=a94_0x2cfc,_0x21a7cf=parsePath(_0x3bcc60),_0x301390=[];for(const _0x15e4ab of _0x21a7cf[_0x247fa9(0xae)]){if(_0x15e4ab==='.')continue;else{if(_0x15e4ab==='..'){if(_0x301390[_0x247fa9(0xa2)]===0x0){if(_0x21a7cf[_0x247fa9(0xa8)])throw new Error(_0x247fa9(0xa5));_0x301390['push']('..');}else _0x301390[_0x301390[_0x247fa9(0xa2)]-0x1]==='..'?_0x301390['push']('..'):_0x301390['pop']();}else _0x301390[_0x247fa9(0x9a)](_0x15e4ab);}}if(_0x301390[_0x247fa9(0xa2)]===0x0)return _0x21a7cf[_0x247fa9(0xa8)]?'/':'.';const _0xedee4e=_0x301390[_0x247fa9(0xa6)]('/');return _0x21a7cf['raw'][_0x247fa9(0xab)]('/')?'/'+_0xedee4e:_0xedee4e;}function a94_0x2cfc(_0x2bf3cf,_0x24a755){const _0x2457d7=a94_0x2457();return a94_0x2cfc=function(_0x2cfc42,_0x25c08d){_0x2cfc42=_0x2cfc42-0x91;let _0x502248=_0x2457d7[_0x2cfc42];return _0x502248;},a94_0x2cfc(_0x2bf3cf,_0x24a755);}export function getParentPath(_0x377556){const _0x594196=a94_0x2cfc,_0x30283e=parsePath(_0x377556);if(_0x30283e[_0x594196(0xae)][_0x594196(0xa2)]<=0x1)return'/';const _0x4d8c2c=_0x30283e['segments'][_0x594196(0x91)](0x0,-0x1)['join']('/');return _0x30283e['raw'][_0x594196(0xab)]('/')?'/'+_0x4d8c2c:_0x4d8c2c;}export function getBaseName(_0x5c4915){const _0x1f8930=a94_0x2cfc,_0xa7f722=parsePath(_0x5c4915);return _0xa7f722[_0x1f8930(0xae)][_0xa7f722[_0x1f8930(0xae)][_0x1f8930(0xa2)]-0x1]||'';}export function isChildPath(_0x3188aa,_0x50be29){const _0x3c416c=a94_0x2cfc,_0x1dc114=parsePath(_0x3188aa),_0x526cdd=parsePath(_0x50be29);if(_0x1dc114[_0x3c416c(0xae)][_0x3c416c(0xa2)]<=_0x526cdd[_0x3c416c(0xae)]['length'])return![];for(let _0x4be506=0x0;_0x4be506<_0x526cdd['segments']['length'];_0x4be506++){if(_0x1dc114[_0x3c416c(0xae)][_0x4be506]!==_0x526cdd['segments'][_0x4be506])return![];}return!![];}export function splitPath(_0x39395e){const _0xe12787=a94_0x2cfc,_0x1e97f3=parsePath(_0x39395e);if(_0x1e97f3[_0xe12787(0xae)][_0xe12787(0xa2)]===0x0)throw new Error(_0xe12787(0x9c));if(_0x1e97f3[_0xe12787(0xae)][_0xe12787(0xa2)]===0x1)return{'parent':_0x1e97f3['segments'][0x0]};return{'parent':_0x1e97f3[_0xe12787(0xae)][0x0],'child':_0x1e97f3['segments'][_0xe12787(0x91)](0x1)['join']('/')};}
1
+ (function(_0x574af3,_0x459c44){const _0x41001a=a94_0x11f0,_0x544e7c=_0x574af3();while(!![]){try{const _0x5b96ff=-parseInt(_0x41001a(0xf5))/0x1+parseInt(_0x41001a(0xf2))/0x2+parseInt(_0x41001a(0x105))/0x3*(-parseInt(_0x41001a(0x107))/0x4)+-parseInt(_0x41001a(0xf3))/0x5*(parseInt(_0x41001a(0xfa))/0x6)+parseInt(_0x41001a(0x103))/0x7*(-parseInt(_0x41001a(0xf7))/0x8)+-parseInt(_0x41001a(0xef))/0x9+parseInt(_0x41001a(0xf1))/0xa;if(_0x5b96ff===_0x459c44)break;else _0x544e7c['push'](_0x544e7c['shift']());}catch(_0x2af539){_0x544e7c['push'](_0x544e7c['shift']());}}}(a94_0x30ff,0x38a0a));export function parsePath(_0x49a0d6){const _0x521611=a94_0x11f0;if(!_0x49a0d6||_0x49a0d6[_0x521611(0x101)]()==='')throw new Error(_0x521611(0xf6));const _0x229dc2=_0x49a0d6['trim']();if(_0x229dc2==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x49a0d6};const _0x34947c=_0x229dc2[_0x521611(0xff)]('/')?_0x229dc2[_0x521611(0x104)](0x1):_0x229dc2,_0x402d51=_0x34947c[_0x521611(0xf8)]('/')['filter'](_0x10f5fc=>_0x10f5fc!=='');if(_0x402d51[_0x521611(0xfc)]===0x0)throw new Error(_0x521611(0x100));const _0x5051c0=_0x229dc2[_0x521611(0xff)]('/')||!isRelativePathSegment(_0x402d51[0x0]);for(const _0x1a0a0c of _0x402d51){validatePathSegment(_0x1a0a0c);}return{'segments':_0x402d51,'isAbsolute':_0x5051c0,'raw':_0x49a0d6};}function isRelativePathSegment(_0x2d8c5f){return _0x2d8c5f==='.'||_0x2d8c5f==='..';}function validatePathSegment(_0x324818){const _0x3708c1=a94_0x11f0;if(_0x324818==='')throw new Error(_0x3708c1(0xec));if(_0x324818==='.'||_0x324818==='..')return;if(/[\x00-\x1F\x7F]/[_0x3708c1(0xf4)](_0x324818))throw new Error(_0x3708c1(0xfd)+_0x324818);if(_0x324818!==_0x324818['trim']()){}}export function validatePath(_0x322d72){const _0x136b3e=a94_0x11f0;if(_0x322d72['segments'][_0x136b3e(0xfc)]===0x0&&!_0x322d72[_0x136b3e(0xed)])throw new Error(_0x136b3e(0x106));if(_0x322d72[_0x136b3e(0xed)]){if(_0x322d72[_0x136b3e(0xe9)][0x0]==='..')throw new Error(_0x136b3e(0xea));let _0x405872=0x0;for(const _0x2e756d of _0x322d72['segments']){if(_0x2e756d==='..'){if(_0x405872===0x0)throw new Error(_0x136b3e(0xeb));_0x405872--;}else _0x2e756d!=='.'&&_0x405872++;}}}export function joinPaths(_0x1c3e21,_0x3788ac){const _0x1facf3=a94_0x11f0;if(!_0x1c3e21||_0x1c3e21==='/')return _0x3788ac;if(!_0x3788ac||_0x3788ac==='.')return _0x1c3e21;if(_0x3788ac['startsWith']('/'))return _0x3788ac;const _0x17bb3d=parsePath(_0x1c3e21),_0x57d2d8=parsePath(_0x3788ac),_0x416d78=[..._0x17bb3d[_0x1facf3(0xe9)]];for(const _0x3a4255 of _0x57d2d8['segments']){if(_0x3a4255==='.')continue;else{if(_0x3a4255==='..'){if(_0x416d78[_0x1facf3(0xfc)]===0x0)throw new Error(_0x1facf3(0x102));_0x416d78[_0x1facf3(0xf9)]();}else _0x416d78[_0x1facf3(0xfb)](_0x3a4255);}}const _0x19fea7=_0x416d78[_0x1facf3(0xee)]('/');return _0x17bb3d[_0x1facf3(0xf0)][_0x1facf3(0xff)]('/')?'/'+_0x19fea7:_0x19fea7;}function a94_0x30ff(){const _0x20ef3d=['trim','Cannot\x20navigate\x20above\x20root','183211yLOfJx','substring','9ejyzTs','Relative\x20path\x20cannot\x20be\x20empty','203244LocozE','Cannot\x20split\x20empty\x20path','segments','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Path\x20attempts\x20to\x20navigate\x20above\x20root','Path\x20segment\x20cannot\x20be\x20empty','isAbsolute','join','89325jlTJHw','raw','10215070sdtUwp','377878EZvVMp','5bnehqK','test','256510lyMdpK','Path\x20cannot\x20be\x20empty','136LHtZOU','split','pop','688146kHVVqL','push','length','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','slice','startsWith','Path\x20must\x20contain\x20at\x20least\x20one\x20segment'];a94_0x30ff=function(){return _0x20ef3d;};return a94_0x30ff();}function a94_0x11f0(_0x21b753,_0x5d6803){const _0x30ff85=a94_0x30ff();return a94_0x11f0=function(_0x11f095,_0x2bd361){_0x11f095=_0x11f095-0xe8;let _0x4bb6a9=_0x30ff85[_0x11f095];return _0x4bb6a9;},a94_0x11f0(_0x21b753,_0x5d6803);}export function normalizePath(_0x99428f){const _0x43ea5a=a94_0x11f0,_0x12093f=parsePath(_0x99428f),_0x493f63=[];for(const _0x211425 of _0x12093f['segments']){if(_0x211425==='.')continue;else{if(_0x211425==='..'){if(_0x493f63[_0x43ea5a(0xfc)]===0x0){if(_0x12093f[_0x43ea5a(0xed)])throw new Error(_0x43ea5a(0x102));_0x493f63['push']('..');}else _0x493f63[_0x493f63[_0x43ea5a(0xfc)]-0x1]==='..'?_0x493f63[_0x43ea5a(0xfb)]('..'):_0x493f63[_0x43ea5a(0xf9)]();}else _0x493f63[_0x43ea5a(0xfb)](_0x211425);}}if(_0x493f63[_0x43ea5a(0xfc)]===0x0)return _0x12093f[_0x43ea5a(0xed)]?'/':'.';const _0x236644=_0x493f63[_0x43ea5a(0xee)]('/');return _0x12093f[_0x43ea5a(0xf0)][_0x43ea5a(0xff)]('/')?'/'+_0x236644:_0x236644;}export function getParentPath(_0x249348){const _0xd2d66d=a94_0x11f0,_0x7600d6=parsePath(_0x249348);if(_0x7600d6[_0xd2d66d(0xe9)][_0xd2d66d(0xfc)]<=0x1)return'/';const _0x73d328=_0x7600d6[_0xd2d66d(0xe9)][_0xd2d66d(0xfe)](0x0,-0x1)[_0xd2d66d(0xee)]('/');return _0x7600d6[_0xd2d66d(0xf0)][_0xd2d66d(0xff)]('/')?'/'+_0x73d328:_0x73d328;}export function getBaseName(_0x25fda2){const _0x4845b2=a94_0x11f0,_0x54a2c6=parsePath(_0x25fda2);return _0x54a2c6[_0x4845b2(0xe9)][_0x54a2c6[_0x4845b2(0xe9)]['length']-0x1]||'';}export function isChildPath(_0x43707e,_0x10d9be){const _0x4c6639=a94_0x11f0,_0x4014c6=parsePath(_0x43707e),_0x180c80=parsePath(_0x10d9be);if(_0x4014c6[_0x4c6639(0xe9)][_0x4c6639(0xfc)]<=_0x180c80[_0x4c6639(0xe9)][_0x4c6639(0xfc)])return![];for(let _0x2f7dac=0x0;_0x2f7dac<_0x180c80['segments'][_0x4c6639(0xfc)];_0x2f7dac++){if(_0x4014c6[_0x4c6639(0xe9)][_0x2f7dac]!==_0x180c80[_0x4c6639(0xe9)][_0x2f7dac])return![];}return!![];}export function splitPath(_0x15ab4d){const _0xc13f18=a94_0x11f0,_0x4356d6=parsePath(_0x15ab4d);if(_0x4356d6[_0xc13f18(0xe9)][_0xc13f18(0xfc)]===0x0)throw new Error(_0xc13f18(0xe8));if(_0x4356d6[_0xc13f18(0xe9)][_0xc13f18(0xfc)]===0x1)return{'parent':_0x4356d6[_0xc13f18(0xe9)][0x0]};return{'parent':_0x4356d6[_0xc13f18(0xe9)][0x0],'child':_0x4356d6['segments'][_0xc13f18(0xfe)](0x1)['join']('/')};}
@@ -1 +1 @@
1
- (function(_0x3da4df,_0x47834f){const _0x2ec738=a95_0x1a0e,_0x590d57=_0x3da4df();while(!![]){try{const _0x1375ac=-parseInt(_0x2ec738(0xd6))/0x1+-parseInt(_0x2ec738(0xd7))/0x2*(-parseInt(_0x2ec738(0xdc))/0x3)+-parseInt(_0x2ec738(0xde))/0x4+parseInt(_0x2ec738(0xd9))/0x5+-parseInt(_0x2ec738(0xd8))/0x6+parseInt(_0x2ec738(0xda))/0x7*(parseInt(_0x2ec738(0xe0))/0x8)+parseInt(_0x2ec738(0xdd))/0x9*(parseInt(_0x2ec738(0xdb))/0xa);if(_0x1375ac===_0x47834f)break;else _0x590d57['push'](_0x590d57['shift']());}catch(_0x5c6794){_0x590d57['push'](_0x590d57['shift']());}}}(a95_0x2fdc,0x9ae62));function a95_0x1a0e(_0x13fdde,_0x1b9788){const _0x2fdc65=a95_0x2fdc();return a95_0x1a0e=function(_0x1a0eb4,_0x58619a){_0x1a0eb4=_0x1a0eb4-0xd6;let _0x401d6e=_0x2fdc65[_0x1a0eb4];return _0x401d6e;},a95_0x1a0e(_0x13fdde,_0x1b9788);}function a95_0x2fdc(){const _0x1c745=['Invalid\x20segment\x20reference\x20format:\x20','828131CFZAym','2QBxzMU','4508778wTnWyA','850245xZmOCL','504294EeMqeB','42110OyASvt','645501PzwLVW','2493jYSVoZ','1672932WqssyC','substring','120qDWMCr','.\x20Parent\x20name\x20cannot\x20be\x20empty'];a95_0x2fdc=function(){return _0x1c745;};return a95_0x2fdc();}export function parseSegmentRef(_0x5f53db){const _0x56a10b=a95_0x1a0e,_0x4a72b8=_0x5f53db['indexOf']('/');if(_0x4a72b8===-0x1)return{'parentId':_0x5f53db};if(_0x4a72b8===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x5f53db+_0x56a10b(0xe1));const _0x1fb3dd=_0x5f53db[_0x56a10b(0xdf)](0x0,_0x4a72b8),_0x2e3ea=_0x5f53db[_0x56a10b(0xdf)](_0x4a72b8+0x1);if(_0x2e3ea==='')throw new Error(_0x56a10b(0xe2)+_0x5f53db+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x1fb3dd,'childId':_0x2e3ea};}
1
+ function a95_0x48c5(){const _0x2952f1=['substring','8GAxdUm','.\x20Parent\x20name\x20cannot\x20be\x20empty','49184jGXymH','5461BtTnYj','54JfCouv','11200140pJMxEb','720585KjLKbm','6666090RwNAFU','indexOf','3179070DLAGIO','.\x20Child\x20name\x20cannot\x20be\x20empty','6400541vzjnpH','4oQoifC','Invalid\x20segment\x20reference\x20format:\x20'];a95_0x48c5=function(){return _0x2952f1;};return a95_0x48c5();}(function(_0x4e64a3,_0x47c996){const _0x25319e=a95_0x1347,_0x1b56ac=_0x4e64a3();while(!![]){try{const _0x1d1e16=-parseInt(_0x25319e(0xe4))/0x1*(-parseInt(_0x25319e(0xde))/0x2)+parseInt(_0x25319e(0xdb))/0x3+parseInt(_0x25319e(0xe3))/0x4+-parseInt(_0x25319e(0xe7))/0x5*(parseInt(_0x25319e(0xe5))/0x6)+parseInt(_0x25319e(0xdd))/0x7*(-parseInt(_0x25319e(0xe1))/0x8)+parseInt(_0x25319e(0xe6))/0x9+parseInt(_0x25319e(0xe8))/0xa;if(_0x1d1e16===_0x47c996)break;else _0x1b56ac['push'](_0x1b56ac['shift']());}catch(_0x1f3155){_0x1b56ac['push'](_0x1b56ac['shift']());}}}(a95_0x48c5,0xbf0e1));function a95_0x1347(_0x368ae5,_0x5b5a53){const _0x48c535=a95_0x48c5();return a95_0x1347=function(_0x134716,_0x25c0d3){_0x134716=_0x134716-0xda;let _0x46aded=_0x48c535[_0x134716];return _0x46aded;},a95_0x1347(_0x368ae5,_0x5b5a53);}export function parseSegmentRef(_0x23429c){const _0x10f101=a95_0x1347,_0x20552c=_0x23429c[_0x10f101(0xda)]('/');if(_0x20552c===-0x1)return{'parentId':_0x23429c};if(_0x20552c===0x0)throw new Error(_0x10f101(0xdf)+_0x23429c+_0x10f101(0xe2));const _0x5df1cd=_0x23429c[_0x10f101(0xe0)](0x0,_0x20552c),_0x16e8ba=_0x23429c[_0x10f101(0xe0)](_0x20552c+0x1);if(_0x16e8ba==='')throw new Error(_0x10f101(0xdf)+_0x23429c+_0x10f101(0xdc));return{'parentId':_0x5df1cd,'childId':_0x16e8ba};}