@treasuredata/tdx 0.2.4 → 0.2.6

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 (84) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-client.js +1 -1
  6. package/dist/client/rate-limiter.js +1 -1
  7. package/dist/client/td-client.js +1 -1
  8. package/dist/client/trino-client.js +1 -1
  9. package/dist/client/workflow-client.js +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/api-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/context-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/job-command.js +1 -1
  19. package/dist/commands/llm-command.js +1 -1
  20. package/dist/commands/llm-proxy.js +1 -1
  21. package/dist/commands/parent-segment-command.js +1 -1
  22. package/dist/commands/profiles-command.js +1 -1
  23. package/dist/commands/query-command.js +1 -1
  24. package/dist/commands/segment-command.js +1 -1
  25. package/dist/commands/segment-create-command.js +1 -1
  26. package/dist/commands/segment-fields-command.js +1 -1
  27. package/dist/commands/segment-pwd-command.js +1 -1
  28. package/dist/commands/segment-update-command.js +1 -1
  29. package/dist/commands/segment-use-command.js +1 -1
  30. package/dist/commands/segments.js +1 -1
  31. package/dist/commands/show.js +1 -1
  32. package/dist/commands/tables.js +1 -1
  33. package/dist/commands/use-command.js +1 -1
  34. package/dist/commands/workflow-command.js +1 -1
  35. package/dist/core/auth.js +1 -1
  36. package/dist/core/config.js +1 -1
  37. package/dist/core/global-context.js +1 -1
  38. package/dist/core/profile.js +1 -1
  39. package/dist/core/project-config.js +1 -1
  40. package/dist/core/session.js +1 -1
  41. package/dist/index.js +1 -1
  42. package/dist/proxy/anthropic-adapter.js +1 -1
  43. package/dist/proxy/server.d.ts.map +1 -1
  44. package/dist/proxy/server.js +1 -1
  45. package/dist/proxy/server.js.map +1 -1
  46. package/dist/proxy/session-cache.js +1 -1
  47. package/dist/sdk/api.js +1 -1
  48. package/dist/sdk/database.js +1 -1
  49. package/dist/sdk/errors.js +1 -1
  50. package/dist/sdk/index.js +1 -1
  51. package/dist/sdk/job.js +1 -1
  52. package/dist/sdk/llm.js +1 -1
  53. package/dist/sdk/query.js +1 -1
  54. package/dist/sdk/segment.js +1 -1
  55. package/dist/sdk/table.js +1 -1
  56. package/dist/sdk/workflow.js +1 -1
  57. package/dist/types/endpoints.js +1 -1
  58. package/dist/types/index.js +1 -1
  59. package/dist/utils/agent-ref-parser.js +1 -1
  60. package/dist/utils/chat-cache.js +1 -1
  61. package/dist/utils/colors.js +1 -1
  62. package/dist/utils/command-output.js +1 -1
  63. package/dist/utils/constants.js +1 -1
  64. package/dist/utils/file-permissions.js +1 -1
  65. package/dist/utils/format-detector.js +1 -1
  66. package/dist/utils/formatters.js +1 -1
  67. package/dist/utils/json-loader.js +1 -1
  68. package/dist/utils/model-aliases.js +1 -1
  69. package/dist/utils/option-validation.js +1 -1
  70. package/dist/utils/port.js +1 -1
  71. package/dist/utils/process.js +1 -1
  72. package/dist/utils/prompt.js +1 -1
  73. package/dist/utils/segment-path-parser.js +1 -1
  74. package/dist/utils/segment-ref-parser.js +1 -1
  75. package/dist/utils/spinner.js +1 -1
  76. package/dist/utils/sql-parser.js +1 -1
  77. package/dist/utils/sse-parser.js +1 -1
  78. package/dist/utils/string-utils.js +1 -1
  79. package/dist/utils/table-ref-parser.js +1 -1
  80. package/dist/utils/tdx-logger.js +1 -1
  81. package/dist/utils/tree-formatter.js +1 -1
  82. package/dist/utils/version-check.js +1 -1
  83. package/dist/utils/workflow-utils.js +1 -1
  84. package/package.json +1 -1
@@ -1 +1 @@
1
- function a52_0x36ae(){const _0x55eb45=['1225OrFGKI','Project\x20directory\x20not\x20found:\x20','clearSchedule','length','message','clearScheduleAll','lastAttempt','resumeFrom','parentId','listSessions','readdir','unlink','index','210LnCOPq','tdx-workflow-push-','timezone','scheduleFrom','5633496MLqZqT','retryAttemptName','Project\x20not\x20found:\x20','create','.tar.gz','fromTask','listProjects','now','isGroup','225hjROFZ','access','last_id','retrySession','join','upstreams','data','34446USeIpZ','status','includeRetried','basename','sessions','retryAttempt','listWorkflows','sessionUuid','config','replace','tdx-workflow-','kill','force','workflow','mkdir','storeParams','sessionTime','projectName','8097488GxbXWD','lastId','latest','NUMERIC_ID_PATTERN','cancelRequested','Cannot\x20read\x20workflow\x20file:\x20','attempt','tmpdir','delete','5164jOxkEt','extract','find','2550Hpfvqp','exportParams','push','killAttempt','toISOString','isDirectory','map','2934wFzzLu','retryParams','retryAt','sessionId','isFile','test','fullName','stateParams','startedAt','uploadProjectArchive','path','downloadProjectArchive','limit','getAttemptTasks','workflowName','toTime','client','params','20494CwxtSd','tasks','name','createdAt','fromTime','getAttempt','project','tar','revision','download','652338yTSpKJ','resolveProjectId','deleteProject','workflows'];a52_0x36ae=function(){return _0x55eb45;};return a52_0x36ae();}const a52_0x2f778d=a52_0x4ad9;(function(_0x477f86,_0x44cb33){const _0x59f3d2=a52_0x4ad9,_0x4e126d=_0x477f86();while(!![]){try{const _0x5c7602=parseInt(_0x59f3d2(0x1b9))/0x1+parseInt(_0x59f3d2(0x1af))/0x2*(parseInt(_0x59f3d2(0x1d7))/0x3)+-parseInt(_0x59f3d2(0x1f9))/0x4*(parseInt(_0x59f3d2(0x1bd))/0x5)+-parseInt(_0x59f3d2(0x1de))/0x6*(parseInt(_0x59f3d2(0x1ca))/0x7)+-parseInt(_0x59f3d2(0x1f0))/0x8+parseInt(_0x59f3d2(0x19d))/0x9*(parseInt(_0x59f3d2(0x1fc))/0xa)+parseInt(_0x59f3d2(0x1ce))/0xb;if(_0x5c7602===_0x44cb33)break;else _0x4e126d['push'](_0x4e126d['shift']());}catch(_0x49ee71){_0x4e126d['push'](_0x4e126d['shift']());}}}(a52_0x36ae,0x7dd5a));function a52_0x4ad9(_0x30cd43,_0x9e8c70){const _0x36aeee=a52_0x36ae();return a52_0x4ad9=function(_0x4ad942,_0xa3c2d0){_0x4ad942=_0x4ad942-0x199;let _0xd970d=_0x36aeee[_0x4ad942];return _0xd970d;},a52_0x4ad9(_0x30cd43,_0x9e8c70);}import{shouldIncludeInArchive,WORKFLOW_FILE_EXTENSION}from'../utils/workflow-utils.js';export class WorkflowAPI{[a52_0x2f778d(0x1ad)];static [a52_0x2f778d(0x1f3)]=/^\d+$/;constructor(_0x32fafe){const _0x127ef1=a52_0x2f778d;this[_0x127ef1(0x1ad)]=_0x32fafe;}async[a52_0x2f778d(0x1ba)](_0x3c6f42){const _0x4e42e1=a52_0x2f778d;if(WorkflowAPI['NUMERIC_ID_PATTERN'][_0x4e42e1(0x1a2)](_0x3c6f42))return{'id':_0x3c6f42,'name':_0x3c6f42};const _0x284740=await this[_0x4e42e1(0x1ad)]['listProjects']({'name_pattern':_0x3c6f42}),_0x3ebd2e=_0x284740[_0x4e42e1(0x1dd)][_0x4e42e1(0x1fb)](_0x1bd6cb=>_0x1bd6cb[_0x4e42e1(0x1b1)]===_0x3c6f42);if(!_0x3ebd2e)throw new Error(_0x4e42e1(0x1d0)+_0x3c6f42);return{'id':_0x3ebd2e['id'],'name':_0x3ebd2e[_0x4e42e1(0x1b1)]};}async['projects'](_0x16c0ed,_0x27310d){const _0x278261=a52_0x2f778d,_0x20c290=await this[_0x278261(0x1ad)]['listProjects']({'name_pattern':_0x16c0ed,..._0x27310d});return _0x20c290[_0x278261(0x1dd)][_0x278261(0x19c)](_0x3ff811=>({..._0x3ff811,'project_id':_0x3ff811['id'],'project_name':_0x3ff811[_0x278261(0x1b1)]}));}async[a52_0x2f778d(0x1bc)](_0x5b8eee,_0x490c09){const _0x566e41=a52_0x2f778d,_0x598360=await this[_0x566e41(0x1ad)][_0x566e41(0x1e4)]({'project_name':_0x5b8eee,..._0x490c09});return _0x598360[_0x566e41(0x1dd)][_0x566e41(0x19c)](_0x1151f0=>({'project_id':_0x1151f0[_0x566e41(0x1b5)]?.['id'],'project_name':_0x1151f0[_0x566e41(0x1b5)]?.[_0x566e41(0x1b1)],'workflow_id':_0x1151f0['id'],'workflow_name':_0x1151f0[_0x566e41(0x1b1)],'revision':_0x1151f0['revision'],'timezone':_0x1151f0[_0x566e41(0x1cc)],'config':_0x1151f0['config'],'id':_0x1151f0['id'],'name':_0x1151f0[_0x566e41(0x1b1)],'project':_0x1151f0[_0x566e41(0x1b5)]}));}async[a52_0x2f778d(0x1e2)](_0x174ae7){const _0x1e22f8=a52_0x2f778d;let _0x1e5f39;if(_0x174ae7?.['projectName']){let _0x3432b,_0x2cabb7=![];while(!_0x2cabb7){const _0x4b40de=await this[_0x1e22f8(0x1ad)][_0x1e22f8(0x1d4)]({'limit':0x64,'last_id':_0x3432b}),_0x1aa1e2=_0x4b40de['data'][_0x1e22f8(0x1fb)](_0x28ca5b=>_0x28ca5b['name']===_0x174ae7[_0x1e22f8(0x1ef)]);if(_0x1aa1e2){_0x1e5f39=_0x1aa1e2['id'],_0x2cabb7=!![];break;}if(!_0x4b40de[_0x1e22f8(0x1f1)]||_0x4b40de[_0x1e22f8(0x1dd)][_0x1e22f8(0x1c0)]===0x0)break;_0x3432b=_0x4b40de[_0x1e22f8(0x1f1)];}if(!_0x1e5f39)throw new Error('Project\x20not\x20found:\x20'+_0x174ae7['projectName']);}const _0xa83c0a=await this['client'][_0x1e22f8(0x1c6)]({'project_id':_0x1e5f39,'project_name':_0x174ae7?.[_0x1e22f8(0x1ef)],'workflow_name':_0x174ae7?.[_0x1e22f8(0x1ab)],'status':_0x174ae7?.[_0x1e22f8(0x1df)],'from_time':_0x174ae7?.[_0x1e22f8(0x1b3)],'to_time':_0x174ae7?.[_0x1e22f8(0x1ac)],'limit':_0x174ae7?.[_0x1e22f8(0x1a9)],'last_id':_0x174ae7?.[_0x1e22f8(0x1d9)]});return _0xa83c0a[_0x1e22f8(0x1dd)][_0x1e22f8(0x19c)](_0x4c4123=>({'project_id':_0x4c4123['project']?.['id'],'project_name':_0x4c4123['project']?.['name'],'workflow_id':_0x4c4123['workflow']?.['id'],'workflow_name':_0x4c4123['workflow']?.[_0x1e22f8(0x1b1)],'session_id':_0x4c4123['id'],'sessionUuid':_0x4c4123[_0x1e22f8(0x1e5)],'sessionTime':_0x4c4123[_0x1e22f8(0x1ee)],'lastAttempt':_0x4c4123[_0x1e22f8(0x1c3)],'id':_0x4c4123['id'],'project':_0x4c4123[_0x1e22f8(0x1b5)],'workflow':_0x4c4123[_0x1e22f8(0x1eb)]}));}async['attempts'](_0xe79d1e){const _0x29417c=a52_0x2f778d,_0x276631=await this[_0x29417c(0x1ad)]['listAttempts']({'project_name':_0xe79d1e?.[_0x29417c(0x1ef)],'workflow_name':_0xe79d1e?.['workflowName'],'include_retried':_0xe79d1e?.[_0x29417c(0x1e0)],'limit':_0xe79d1e?.[_0x29417c(0x1a9)],'last_id':_0xe79d1e?.[_0x29417c(0x1d9)]});return _0x276631[_0x29417c(0x1dd)][_0x29417c(0x19c)](_0x148f16=>({'project_id':_0x148f16['project']?.['id'],'project_name':_0x148f16['project']?.['name'],'workflow_id':_0x148f16[_0x29417c(0x1eb)]?.['id'],'workflow_name':_0x148f16[_0x29417c(0x1eb)]?.['name'],'session_id':_0x148f16[_0x29417c(0x1a0)],'sessionUuid':_0x148f16[_0x29417c(0x1e5)],'sessionTime':_0x148f16['sessionTime'],'attempt_id':_0x148f16['id'],'attempt_index':_0x148f16[_0x29417c(0x1c9)],'retryAttemptName':_0x148f16[_0x29417c(0x1cf)],'done':_0x148f16['done'],'success':_0x148f16['success'],'cancelRequested':_0x148f16[_0x29417c(0x1f4)],'params':_0x148f16[_0x29417c(0x1ae)],'createdAt':_0x148f16[_0x29417c(0x1b2)],'finishedAt':_0x148f16['finishedAt'],'id':_0x148f16['id'],'index':_0x148f16['index'],'project':_0x148f16[_0x29417c(0x1b5)],'workflow':_0x148f16[_0x29417c(0x1eb)]}));}async[a52_0x2f778d(0x1f6)](_0x3985af){const _0x2b121e=a52_0x2f778d,_0x3ff103=await this['client'][_0x2b121e(0x1b4)](_0x3985af);return _0x3ff103;}async[a52_0x2f778d(0x1b0)](_0x2cecb1,_0x2a7437=![]){const _0x38a74d=a52_0x2f778d,_0x2fa7d3=await this['client'][_0x38a74d(0x1aa)](_0x2cecb1,_0x2a7437);return _0x2fa7d3[_0x38a74d(0x19c)](_0xa5f5f6=>({'task_id':_0xa5f5f6['id'],'task_name':_0xa5f5f6[_0x38a74d(0x1a3)],'parentId':_0xa5f5f6[_0x38a74d(0x1c5)],'config':_0xa5f5f6[_0x38a74d(0x1e6)],'upstreams':_0xa5f5f6[_0x38a74d(0x1dc)],'state':_0xa5f5f6['state'],'exportParams':_0xa5f5f6[_0x38a74d(0x1fd)],'storeParams':_0xa5f5f6[_0x38a74d(0x1ed)],'stateParams':_0xa5f5f6[_0x38a74d(0x1a4)],'updatedAt':_0xa5f5f6['updatedAt'],'retryAt':_0xa5f5f6[_0x38a74d(0x19f)],'startedAt':_0xa5f5f6[_0x38a74d(0x1a5)],'error':_0xa5f5f6['error'],'isGroup':_0xa5f5f6[_0x38a74d(0x1d6)],'id':_0xa5f5f6['id'],'fullName':_0xa5f5f6['fullName']}));}async['logs'](_0x301dce,_0x52fc93,_0x4c3a4c){const _0xc0ff19=a52_0x2f778d;return await this[_0xc0ff19(0x1ad)]['getTaskLogs'](_0x301dce,_0x52fc93,_0x4c3a4c);}async[a52_0x2f778d(0x1e9)](_0x1df74f,_0xed63e3){const _0x358ce2=a52_0x2f778d,_0x45dbb6=await this[_0x358ce2(0x1ad)][_0x358ce2(0x199)](_0x1df74f,_0xed63e3);return _0x45dbb6[_0x358ce2(0x1c1)];}async[a52_0x2f778d(0x1da)](_0x1d59a4,_0x3c5bbf){const _0x283c48=a52_0x2f778d,_0x10c97b=await this['client'][_0x283c48(0x1da)](_0x1d59a4,{'from_task':_0x3c5bbf?.[_0x283c48(0x1d3)],'retry_params':_0x3c5bbf?.['retryParams']});return{'attemptId':_0x10c97b['id'],'sessionId':_0x10c97b['sessionId']};}async['retryAttempt'](_0x51e09c,_0x583995){const _0xecda8=a52_0x2f778d,_0x4881a8=await this[_0xecda8(0x1ad)][_0xecda8(0x1e3)](_0x51e09c,{'resume_from':_0x583995?.[_0xecda8(0x1c4)],'retry_params':_0x583995?.[_0xecda8(0x19e)],'force':_0x583995?.[_0xecda8(0x1ea)]});return{'attemptId':_0x4881a8['id'],'sessionId':_0x4881a8['sessionId']};}async[a52_0x2f778d(0x1b8)](_0x5bbf2f,_0x3119ff,_0x42ffdc){const _0x22a4a4=a52_0x2f778d,{promises:_0x412081}=await import('fs'),_0x423ba4=await import(_0x22a4a4(0x1a7)),_0x1a1c70=await import('os'),_0x3ff9bd=await import(_0x22a4a4(0x1b6)),{id:_0x1e1d67,name:_0x248db1}=await this[_0x22a4a4(0x1ba)](_0x5bbf2f),_0x2ef64a=_0x1a1c70[_0x22a4a4(0x1f7)](),_0x15cc5a=_0x423ba4[_0x22a4a4(0x1db)](_0x2ef64a,_0x22a4a4(0x1e8)+_0x1e1d67+'-'+Date[_0x22a4a4(0x1d5)]()+'.tar.gz');try{await this[_0x22a4a4(0x1ad)][_0x22a4a4(0x1a8)](_0x1e1d67,_0x15cc5a,_0x42ffdc?.[_0x22a4a4(0x1b7)]);const _0x214215=_0x423ba4[_0x22a4a4(0x1db)](_0x3119ff,_0x248db1);await _0x412081[_0x22a4a4(0x1ec)](_0x214215,{'recursive':!![]}),await _0x3ff9bd[_0x22a4a4(0x1fa)]({'file':_0x15cc5a,'cwd':_0x214215,'gzip':!![]});const _0x4fb87d=async _0x223632=>{const _0x52328b=_0x22a4a4;let _0x28c975=0x0;const _0xc1d474=await _0x412081[_0x52328b(0x1c7)](_0x223632,{'withFileTypes':!![]});for(const _0x5c9b52 of _0xc1d474){const _0x204cc7=_0x423ba4[_0x52328b(0x1db)](_0x223632,_0x5c9b52[_0x52328b(0x1b1)]);if(_0x5c9b52[_0x52328b(0x1a1)]())_0x28c975++;else _0x5c9b52[_0x52328b(0x19b)]()&&(_0x28c975+=await _0x4fb87d(_0x204cc7));}return _0x28c975;},_0x30b5bb=await _0x4fb87d(_0x214215);return{'projectName':_0x248db1,'revision':_0x42ffdc?.[_0x22a4a4(0x1b7)]||_0x22a4a4(0x1f2),'filesExtracted':_0x30b5bb};}finally{try{await _0x412081['unlink'](_0x15cc5a);}catch{}}}async[a52_0x2f778d(0x1fe)](_0x1e96c1,_0x179173){const _0x5cac5f=a52_0x2f778d,{promises:_0x4dc6c9}=await import('fs'),_0x5cd91c=await import(_0x5cac5f(0x1a7)),_0x2744e7=await import(_0x5cac5f(0x1b6)),_0x4e6ed3=_0x179173?.[_0x5cac5f(0x1ef)]||_0x5cd91c[_0x5cac5f(0x1e1)](_0x1e96c1),_0x1c542b=_0x179173?.[_0x5cac5f(0x1b7)]||new Date()[_0x5cac5f(0x19a)]()[_0x5cac5f(0x1e7)](/[:.]/g,'-');try{await _0x4dc6c9[_0x5cac5f(0x1d8)](_0x1e96c1);}catch{throw new Error(_0x5cac5f(0x1be)+_0x1e96c1);}if(!_0x179173?.['skipValidation']){const _0x4ef3fc=await _0x4dc6c9['readdir'](_0x1e96c1),_0x68a68c=_0x4ef3fc['filter'](_0x5b5320=>_0x5b5320['endsWith'](WORKFLOW_FILE_EXTENSION));if(_0x68a68c['length']===0x0)throw new Error('No\x20'+WORKFLOW_FILE_EXTENSION+'\x20workflow\x20files\x20found\x20in\x20project\x20directory');for(const _0x285f3c of _0x68a68c){const _0x1bd0f4=_0x5cd91c[_0x5cac5f(0x1db)](_0x1e96c1,_0x285f3c);try{await _0x4dc6c9[_0x5cac5f(0x1d8)](_0x1bd0f4);}catch{throw new Error(_0x5cac5f(0x1f5)+_0x285f3c);}}}const _0x101722=async(_0x2b979a,_0x2165c5='')=>{const _0x33ce88=_0x5cac5f,_0x513cbb=await _0x4dc6c9[_0x33ce88(0x1c7)](_0x2b979a,{'withFileTypes':!![]}),_0x3a20b7=[];for(const _0x446e42 of _0x513cbb){const _0x188a49=_0x5cd91c[_0x33ce88(0x1db)](_0x2165c5,_0x446e42[_0x33ce88(0x1b1)]),_0x1c38ec=_0x5cd91c[_0x33ce88(0x1db)](_0x2b979a,_0x446e42[_0x33ce88(0x1b1)]);if(!shouldIncludeInArchive(_0x446e42['name']))continue;_0x446e42[_0x33ce88(0x19b)]()?_0x3a20b7[_0x33ce88(0x1fe)](...await _0x101722(_0x1c38ec,_0x188a49)):_0x3a20b7['push'](_0x188a49);}return _0x3a20b7;},_0x1021e8=await _0x101722(_0x1e96c1),_0x44738e=await import('os'),_0x2a706f=_0x44738e['tmpdir'](),_0x23ef59=_0x5cd91c[_0x5cac5f(0x1db)](_0x2a706f,_0x5cac5f(0x1cb)+Date[_0x5cac5f(0x1d5)]()+_0x5cac5f(0x1d2));try{await _0x2744e7[_0x5cac5f(0x1d1)]({'file':_0x23ef59,'gzip':!![],'cwd':_0x1e96c1,'portable':!![]},_0x1021e8);const _0x166e1b=await this[_0x5cac5f(0x1ad)][_0x5cac5f(0x1a6)](_0x4e6ed3,_0x1c542b,_0x23ef59,{'scheduleFrom':_0x179173?.[_0x5cac5f(0x1cd)],'clearSchedule':_0x179173?.[_0x5cac5f(0x1bf)],'clearScheduleAll':_0x179173?.[_0x5cac5f(0x1c2)]});return{'projectId':_0x166e1b['id'],'projectName':_0x166e1b[_0x5cac5f(0x1b1)],'revision':_0x166e1b[_0x5cac5f(0x1b7)]};}finally{try{await _0x4dc6c9[_0x5cac5f(0x1c8)](_0x23ef59);}catch{}}}async[a52_0x2f778d(0x1f8)](_0x33289f){const _0x5d7c63=a52_0x2f778d,{id:_0x239424}=await this[_0x5d7c63(0x1ba)](_0x33289f),_0x515b84=await this[_0x5d7c63(0x1ad)][_0x5d7c63(0x1bb)](_0x239424);return{'projectId':_0x515b84['id'],'projectName':_0x515b84[_0x5d7c63(0x1b1)]};}}
1
+ const a52_0x1018ca=a52_0x5d20;(function(_0x2e6554,_0x56d9ed){const _0x17e896=a52_0x5d20,_0x31e5b8=_0x2e6554();while(!![]){try{const _0x461236=-parseInt(_0x17e896(0x145))/0x1+parseInt(_0x17e896(0x118))/0x2+-parseInt(_0x17e896(0x165))/0x3*(-parseInt(_0x17e896(0x15c))/0x4)+-parseInt(_0x17e896(0x125))/0x5+-parseInt(_0x17e896(0x11d))/0x6+parseInt(_0x17e896(0x123))/0x7*(parseInt(_0x17e896(0x153))/0x8)+parseInt(_0x17e896(0x121))/0x9;if(_0x461236===_0x56d9ed)break;else _0x31e5b8['push'](_0x31e5b8['shift']());}catch(_0x39e142){_0x31e5b8['push'](_0x31e5b8['shift']());}}}(a52_0x3ba8,0x49b65));function a52_0x5d20(_0x1d8180,_0x38ea05){const _0x3ba873=a52_0x3ba8();return a52_0x5d20=function(_0x5d20bf,_0x37865e){_0x5d20bf=_0x5d20bf-0x117;let _0x1e6a84=_0x3ba873[_0x5d20bf];return _0x1e6a84;},a52_0x5d20(_0x1d8180,_0x38ea05);}import{shouldIncludeInArchive,WORKFLOW_FILE_EXTENSION}from'../utils/workflow-utils.js';function a52_0x3ba8(){const _0x24065b=['5532QclzrB','NUMERIC_ID_PATTERN','Project\x20not\x20found:\x20','join','download','resolveProjectId','tar','basename','isDirectory','756vkvPhV','includeRetried','path','workflowName','getAttempt','retrySession','cancelRequested','readdir','listProjects','retryAttempt','createdAt','create','done','lastId','sessionTime','807398wzuSaW','sessionId','isGroup','client','getTaskLogs','1968468tyWGCd','unlink','extract','last_id','4567860SeIdPf','push','440279GuhWGu','toISOString','499850XPZeKj','error','revision','index','latest','access','.tar.gz','workflow','config','listWorkflows','uploadProjectArchive','attempts','fromTask','isFile','params','toTime','getAttemptTasks','Project\x20directory\x20not\x20found:\x20','clearSchedule','mkdir','name','data','clearScheduleAll','downloadProjectArchive','listSessions','finishedAt','length','timezone','retryParams','tdx-workflow-push-','parentId','now','592679kAVuBZ','tmpdir','\x20workflow\x20files\x20found\x20in\x20project\x20directory','retryAttemptName','replace','projects','listAttempts','limit','map','projectName','find','sessionUuid','message','No\x20','8MTdtxd','attempt','fromTime','tasks','project','workflows','test','startedAt','lastAttempt'];a52_0x3ba8=function(){return _0x24065b;};return a52_0x3ba8();}export class WorkflowAPI{[a52_0x1018ca(0x11b)];static [a52_0x1018ca(0x15d)]=/^\d+$/;constructor(_0x40a373){const _0x11152f=a52_0x1018ca;this[_0x11152f(0x11b)]=_0x40a373;}async['resolveProjectId'](_0x419bba){const _0x56ec7c=a52_0x1018ca;if(WorkflowAPI['NUMERIC_ID_PATTERN'][_0x56ec7c(0x159)](_0x419bba))return{'id':_0x419bba,'name':_0x419bba};const _0x49f731=await this[_0x56ec7c(0x11b)][_0x56ec7c(0x16d)]({'name_pattern':_0x419bba}),_0x337c4e=_0x49f731['data']['find'](_0x1d3a86=>_0x1d3a86['name']===_0x419bba);if(!_0x337c4e)throw new Error(_0x56ec7c(0x15e)+_0x419bba);return{'id':_0x337c4e['id'],'name':_0x337c4e[_0x56ec7c(0x139)]};}async[a52_0x1018ca(0x14a)](_0x542cc0,_0x12bf9c){const _0x2c4ed0=a52_0x1018ca,_0x48343a=await this[_0x2c4ed0(0x11b)][_0x2c4ed0(0x16d)]({'name_pattern':_0x542cc0,..._0x12bf9c});return _0x48343a['data'][_0x2c4ed0(0x14d)](_0x27c5ed=>({..._0x27c5ed,'project_id':_0x27c5ed['id'],'project_name':_0x27c5ed[_0x2c4ed0(0x139)]}));}async[a52_0x1018ca(0x158)](_0x51df3c,_0x139c63){const _0x2c2c63=a52_0x1018ca,_0x4d7038=await this['client'][_0x2c2c63(0x12e)]({'project_name':_0x51df3c,..._0x139c63});return _0x4d7038[_0x2c2c63(0x13a)][_0x2c2c63(0x14d)](_0x691d1e=>({'project_id':_0x691d1e[_0x2c2c63(0x157)]?.['id'],'project_name':_0x691d1e[_0x2c2c63(0x157)]?.['name'],'workflow_id':_0x691d1e['id'],'workflow_name':_0x691d1e['name'],'revision':_0x691d1e[_0x2c2c63(0x127)],'timezone':_0x691d1e[_0x2c2c63(0x140)],'config':_0x691d1e['config'],'id':_0x691d1e['id'],'name':_0x691d1e[_0x2c2c63(0x139)],'project':_0x691d1e[_0x2c2c63(0x157)]}));}async['sessions'](_0x3ba5d1){const _0x1e210f=a52_0x1018ca;let _0x962177;if(_0x3ba5d1?.['projectName']){let _0x2ecde8,_0x571979=![];while(!_0x571979){const _0x52027b=await this[_0x1e210f(0x11b)]['listProjects']({'limit':0x64,'last_id':_0x2ecde8}),_0x30888d=_0x52027b[_0x1e210f(0x13a)][_0x1e210f(0x14f)](_0x4dddbf=>_0x4dddbf[_0x1e210f(0x139)]===_0x3ba5d1[_0x1e210f(0x14e)]);if(_0x30888d){_0x962177=_0x30888d['id'],_0x571979=!![];break;}if(!_0x52027b[_0x1e210f(0x172)]||_0x52027b[_0x1e210f(0x13a)][_0x1e210f(0x13f)]===0x0)break;_0x2ecde8=_0x52027b[_0x1e210f(0x172)];}if(!_0x962177)throw new Error('Project\x20not\x20found:\x20'+_0x3ba5d1[_0x1e210f(0x14e)]);}const _0x26c560=await this[_0x1e210f(0x11b)][_0x1e210f(0x13d)]({'project_id':_0x962177,'project_name':_0x3ba5d1?.[_0x1e210f(0x14e)],'workflow_name':_0x3ba5d1?.[_0x1e210f(0x168)],'status':_0x3ba5d1?.['status'],'from_time':_0x3ba5d1?.[_0x1e210f(0x155)],'to_time':_0x3ba5d1?.[_0x1e210f(0x134)],'limit':_0x3ba5d1?.[_0x1e210f(0x14c)],'last_id':_0x3ba5d1?.[_0x1e210f(0x120)]});return _0x26c560['data'][_0x1e210f(0x14d)](_0x251b93=>({'project_id':_0x251b93[_0x1e210f(0x157)]?.['id'],'project_name':_0x251b93['project']?.[_0x1e210f(0x139)],'workflow_id':_0x251b93[_0x1e210f(0x12c)]?.['id'],'workflow_name':_0x251b93['workflow']?.[_0x1e210f(0x139)],'session_id':_0x251b93['id'],'sessionUuid':_0x251b93[_0x1e210f(0x150)],'sessionTime':_0x251b93[_0x1e210f(0x117)],'lastAttempt':_0x251b93[_0x1e210f(0x15b)],'id':_0x251b93['id'],'project':_0x251b93['project'],'workflow':_0x251b93[_0x1e210f(0x12c)]}));}async[a52_0x1018ca(0x130)](_0xd897bd){const _0x4a0c13=a52_0x1018ca,_0x58d46f=await this[_0x4a0c13(0x11b)][_0x4a0c13(0x14b)]({'project_name':_0xd897bd?.[_0x4a0c13(0x14e)],'workflow_name':_0xd897bd?.['workflowName'],'include_retried':_0xd897bd?.[_0x4a0c13(0x166)],'limit':_0xd897bd?.[_0x4a0c13(0x14c)],'last_id':_0xd897bd?.['last_id']});return _0x58d46f[_0x4a0c13(0x13a)]['map'](_0x3fce42=>({'project_id':_0x3fce42[_0x4a0c13(0x157)]?.['id'],'project_name':_0x3fce42['project']?.[_0x4a0c13(0x139)],'workflow_id':_0x3fce42['workflow']?.['id'],'workflow_name':_0x3fce42[_0x4a0c13(0x12c)]?.['name'],'session_id':_0x3fce42['sessionId'],'sessionUuid':_0x3fce42[_0x4a0c13(0x150)],'sessionTime':_0x3fce42['sessionTime'],'attempt_id':_0x3fce42['id'],'attempt_index':_0x3fce42[_0x4a0c13(0x128)],'retryAttemptName':_0x3fce42[_0x4a0c13(0x148)],'done':_0x3fce42[_0x4a0c13(0x171)],'success':_0x3fce42['success'],'cancelRequested':_0x3fce42[_0x4a0c13(0x16b)],'params':_0x3fce42[_0x4a0c13(0x133)],'createdAt':_0x3fce42[_0x4a0c13(0x16f)],'finishedAt':_0x3fce42[_0x4a0c13(0x13e)],'id':_0x3fce42['id'],'index':_0x3fce42[_0x4a0c13(0x128)],'project':_0x3fce42[_0x4a0c13(0x157)],'workflow':_0x3fce42['workflow']}));}async[a52_0x1018ca(0x154)](_0x44cda4){const _0x1e2322=a52_0x1018ca,_0x4df66e=await this['client'][_0x1e2322(0x169)](_0x44cda4);return _0x4df66e;}async[a52_0x1018ca(0x156)](_0x59427f,_0x4927fb=![]){const _0x46ec2e=a52_0x1018ca,_0x1796d2=await this[_0x46ec2e(0x11b)][_0x46ec2e(0x135)](_0x59427f,_0x4927fb);return _0x1796d2[_0x46ec2e(0x14d)](_0x41930b=>({'task_id':_0x41930b['id'],'task_name':_0x41930b['fullName'],'parentId':_0x41930b[_0x46ec2e(0x143)],'config':_0x41930b[_0x46ec2e(0x12d)],'upstreams':_0x41930b['upstreams'],'state':_0x41930b['state'],'exportParams':_0x41930b['exportParams'],'storeParams':_0x41930b['storeParams'],'stateParams':_0x41930b['stateParams'],'updatedAt':_0x41930b['updatedAt'],'retryAt':_0x41930b['retryAt'],'startedAt':_0x41930b[_0x46ec2e(0x15a)],'error':_0x41930b[_0x46ec2e(0x126)],'isGroup':_0x41930b[_0x46ec2e(0x11a)],'id':_0x41930b['id'],'fullName':_0x41930b['fullName']}));}async['logs'](_0x2aaeaf,_0x2eafbc,_0x4fe759){const _0x10fca4=a52_0x1018ca;return await this[_0x10fca4(0x11b)][_0x10fca4(0x11c)](_0x2aaeaf,_0x2eafbc,_0x4fe759);}async['kill'](_0x26453d,_0x9c1ac7){const _0x233adc=a52_0x1018ca,_0x19037d=await this['client']['killAttempt'](_0x26453d,_0x9c1ac7);return _0x19037d[_0x233adc(0x151)];}async[a52_0x1018ca(0x16a)](_0x571baa,_0x2c3735){const _0x59917b=a52_0x1018ca,_0x21e219=await this['client'][_0x59917b(0x16a)](_0x571baa,{'from_task':_0x2c3735?.[_0x59917b(0x131)],'retry_params':_0x2c3735?.[_0x59917b(0x141)]});return{'attemptId':_0x21e219['id'],'sessionId':_0x21e219[_0x59917b(0x119)]};}async[a52_0x1018ca(0x16e)](_0x1bc72d,_0x2b9b54){const _0x30a303=a52_0x1018ca,_0x328d8c=await this[_0x30a303(0x11b)][_0x30a303(0x16e)](_0x1bc72d,{'resume_from':_0x2b9b54?.['resumeFrom'],'retry_params':_0x2b9b54?.[_0x30a303(0x141)],'force':_0x2b9b54?.['force']});return{'attemptId':_0x328d8c['id'],'sessionId':_0x328d8c[_0x30a303(0x119)]};}async[a52_0x1018ca(0x160)](_0x4bb803,_0x1f9eb4,_0x25e323){const _0x44c69f=a52_0x1018ca,{promises:_0x5dc25d}=await import('fs'),_0x3a3459=await import(_0x44c69f(0x167)),_0x456b0f=await import('os'),_0x49794a=await import(_0x44c69f(0x162)),{id:_0x557e8c,name:_0x59d3e0}=await this[_0x44c69f(0x161)](_0x4bb803),_0x4f4bd6=_0x456b0f[_0x44c69f(0x146)](),_0x4c1fbe=_0x3a3459['join'](_0x4f4bd6,'tdx-workflow-'+_0x557e8c+'-'+Date[_0x44c69f(0x144)]()+_0x44c69f(0x12b));try{await this[_0x44c69f(0x11b)][_0x44c69f(0x13c)](_0x557e8c,_0x4c1fbe,_0x25e323?.['revision']);const _0x3b65f1=_0x3a3459[_0x44c69f(0x15f)](_0x1f9eb4,_0x59d3e0);await _0x5dc25d[_0x44c69f(0x138)](_0x3b65f1,{'recursive':!![]}),await _0x49794a[_0x44c69f(0x11f)]({'file':_0x4c1fbe,'cwd':_0x3b65f1,'gzip':!![]});const _0x13b4bf=async _0xcff23=>{const _0x20d80e=_0x44c69f;let _0x57fb9c=0x0;const _0x51148c=await _0x5dc25d[_0x20d80e(0x16c)](_0xcff23,{'withFileTypes':!![]});for(const _0x1c906c of _0x51148c){const _0x2eec30=_0x3a3459[_0x20d80e(0x15f)](_0xcff23,_0x1c906c[_0x20d80e(0x139)]);if(_0x1c906c[_0x20d80e(0x132)]())_0x57fb9c++;else _0x1c906c[_0x20d80e(0x164)]()&&(_0x57fb9c+=await _0x13b4bf(_0x2eec30));}return _0x57fb9c;},_0x21c75b=await _0x13b4bf(_0x3b65f1);return{'projectName':_0x59d3e0,'revision':_0x25e323?.[_0x44c69f(0x127)]||_0x44c69f(0x129),'filesExtracted':_0x21c75b};}finally{try{await _0x5dc25d[_0x44c69f(0x11e)](_0x4c1fbe);}catch{}}}async['push'](_0x2c19ba,_0x5bdbe9){const _0xd6c3eb=a52_0x1018ca,{promises:_0xe7e0fa}=await import('fs'),_0x17c1ff=await import(_0xd6c3eb(0x167)),_0x4cbb40=await import(_0xd6c3eb(0x162)),_0xb01d3a=_0x5bdbe9?.[_0xd6c3eb(0x14e)]||_0x17c1ff[_0xd6c3eb(0x163)](_0x2c19ba),_0x1b103c=_0x5bdbe9?.[_0xd6c3eb(0x127)]||new Date()[_0xd6c3eb(0x124)]()[_0xd6c3eb(0x149)](/[:.]/g,'-');try{await _0xe7e0fa[_0xd6c3eb(0x12a)](_0x2c19ba);}catch{throw new Error(_0xd6c3eb(0x136)+_0x2c19ba);}if(!_0x5bdbe9?.['skipValidation']){const _0x50dddf=await _0xe7e0fa[_0xd6c3eb(0x16c)](_0x2c19ba),_0x18549c=_0x50dddf['filter'](_0x48b3c9=>_0x48b3c9['endsWith'](WORKFLOW_FILE_EXTENSION));if(_0x18549c['length']===0x0)throw new Error(_0xd6c3eb(0x152)+WORKFLOW_FILE_EXTENSION+_0xd6c3eb(0x147));for(const _0x4dcf66 of _0x18549c){const _0x3d2378=_0x17c1ff[_0xd6c3eb(0x15f)](_0x2c19ba,_0x4dcf66);try{await _0xe7e0fa['access'](_0x3d2378);}catch{throw new Error('Cannot\x20read\x20workflow\x20file:\x20'+_0x4dcf66);}}}const _0xd4790a=async(_0x13bfbe,_0x4185a9='')=>{const _0xd9bb5c=_0xd6c3eb,_0xcc7cf1=await _0xe7e0fa[_0xd9bb5c(0x16c)](_0x13bfbe,{'withFileTypes':!![]}),_0x269c73=[];for(const _0x59b511 of _0xcc7cf1){const _0x126190=_0x17c1ff[_0xd9bb5c(0x15f)](_0x4185a9,_0x59b511[_0xd9bb5c(0x139)]),_0x2615f8=_0x17c1ff[_0xd9bb5c(0x15f)](_0x13bfbe,_0x59b511['name']);if(!shouldIncludeInArchive(_0x59b511[_0xd9bb5c(0x139)]))continue;_0x59b511['isDirectory']()?_0x269c73[_0xd9bb5c(0x122)](...await _0xd4790a(_0x2615f8,_0x126190)):_0x269c73['push'](_0x126190);}return _0x269c73;},_0x2c7221=await _0xd4790a(_0x2c19ba),_0x5cc9ad=await import('os'),_0x4945ff=_0x5cc9ad[_0xd6c3eb(0x146)](),_0x1c9aee=_0x17c1ff[_0xd6c3eb(0x15f)](_0x4945ff,_0xd6c3eb(0x142)+Date[_0xd6c3eb(0x144)]()+_0xd6c3eb(0x12b));try{await _0x4cbb40[_0xd6c3eb(0x170)]({'file':_0x1c9aee,'gzip':!![],'cwd':_0x2c19ba,'portable':!![]},_0x2c7221);const _0x2efdaf=await this[_0xd6c3eb(0x11b)][_0xd6c3eb(0x12f)](_0xb01d3a,_0x1b103c,_0x1c9aee,{'scheduleFrom':_0x5bdbe9?.['scheduleFrom'],'clearSchedule':_0x5bdbe9?.[_0xd6c3eb(0x137)],'clearScheduleAll':_0x5bdbe9?.[_0xd6c3eb(0x13b)]});return{'projectId':_0x2efdaf['id'],'projectName':_0x2efdaf[_0xd6c3eb(0x139)],'revision':_0x2efdaf['revision']};}finally{try{await _0xe7e0fa[_0xd6c3eb(0x11e)](_0x1c9aee);}catch{}}}async['delete'](_0x34a843){const _0x4cedad=a52_0x1018ca,{id:_0x40dbfe}=await this['resolveProjectId'](_0x34a843),_0x256150=await this[_0x4cedad(0x11b)]['deleteProject'](_0x40dbfe);return{'projectId':_0x256150['id'],'projectName':_0x256150[_0x4cedad(0x139)]};}}
@@ -1 +1 @@
1
- const a55_0x48ccbd=a55_0x527d;(function(_0x459e6f,_0x427906){const _0x1d85a7=a55_0x527d,_0x58f71d=_0x459e6f();while(!![]){try{const _0x33f341=parseInt(_0x1d85a7(0x9e))/0x1+-parseInt(_0x1d85a7(0x8e))/0x2+-parseInt(_0x1d85a7(0xb8))/0x3*(parseInt(_0x1d85a7(0xad))/0x4)+parseInt(_0x1d85a7(0xa4))/0x5*(parseInt(_0x1d85a7(0xae))/0x6)+-parseInt(_0x1d85a7(0x9d))/0x7*(parseInt(_0x1d85a7(0xa3))/0x8)+-parseInt(_0x1d85a7(0xb9))/0x9+parseInt(_0x1d85a7(0xbd))/0xa;if(_0x33f341===_0x427906)break;else _0x58f71d['push'](_0x58f71d['shift']());}catch(_0x3d9230){_0x58f71d['push'](_0x58f71d['shift']());}}}(a55_0x43a9,0xe3005));function a55_0x527d(_0x3e8d96,_0x48f120){const _0x43a9ad=a55_0x43a9();return a55_0x527d=function(_0x527deb,_0x48f371){_0x527deb=_0x527deb-0x8c;let _0x1403a7=_0x43a9ad[_0x527deb];return _0x1403a7;},a55_0x527d(_0x3e8d96,_0x48f120);}function a55_0x43a9(){const _0x3f5251=['https://api-presto.ap02.treasuredata.com','https://api-cdp.ap03.treasuredata.com','https://api-development-workflow.eu01.treasuredata.com','https://api-staging-presto.treasuredata.com','https://api.treasuredata.com','https://api-development-presto.eu01.treasuredata.com','https://api-staging.us01.treasuredata.com','1344164oiEkun','642CuviYT','https://api-staging.ap03.treasuredata.com','https://api-staging-cdp.treasuredata.co.jp','https://api-development.us01.treasuredata.com','https://api-cdp.treasuredata.com','No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27','https://api-staging-cdp.ap03.treasuredata.com','https://llm-api.treasuredata.com','https://api.ap02.treasuredata.com','https://llm-api-development.us01.treasuredata.com','15GuNbkh','2491155MZWyRz','https://api-development-cdp.us01.treasuredata.com','\x27\x20and\x20site\x20\x27','https://api-staging-cdp.us01.treasuredata.com','31816640iwcrcK','https://api-staging-presto.ap03.treasuredata.com','https://api-presto.treasuredata.co.jp','3131122adKcQo','https://api-staging-workflow.treasuredata.co.jp','https://api-workflow.treasuredata.com','https://api-development-cdp.eu01.treasuredata.com','https://api-development.eu01.treasuredata.com','https://api.ap03.treasuredata.com','https://llm-api-staging.treasuredata.co.jp','https://api.treasuredata.co.jp','https://api-staging.treasuredata.co.jp','https://api.eu01.treasuredata.com','https://llm-api.ap03.treasuredata.com','https://llm-api-staging.ap03.treasuredata.com','https://llm-api.treasuredata.co.jp','https://llm-api.ap02.treasuredata.com','https://api-presto.treasuredata.com','9856jsEZzv','679763wFJYMe','https://api-workflow.ap03.treasuredata.com','https://api-cdp.eu01.treasuredata.com','https://llm-api-development.eu01.treasuredata.com','https://api-staging-workflow.ap03.treasuredata.com','3136SGOEUQ','53405XqQahf','https://api-workflow.treasuredata.co.jp'];a55_0x43a9=function(){return _0x3f5251;};return a55_0x43a9();}export const TD_ENDPOINTS={'us01':a55_0x48ccbd(0xaa),'jp01':a55_0x48ccbd(0x95),'eu01':a55_0x48ccbd(0x97),'ap02':a55_0x48ccbd(0xb6),'ap03':a55_0x48ccbd(0x93),'dev-us01':a55_0x48ccbd(0xb1),'dev-eu01':a55_0x48ccbd(0x92),'stg-us01':a55_0x48ccbd(0xac),'stg-jp01':a55_0x48ccbd(0x96),'stg-ap03':a55_0x48ccbd(0xaf)};export const CDP_ENDPOINTS={'us01':a55_0x48ccbd(0xb2),'jp01':'https://api-cdp.treasuredata.co.jp','eu01':a55_0x48ccbd(0xa0),'ap02':'https://api-cdp.ap02.treasuredata.com','ap03':a55_0x48ccbd(0xa7),'dev-us01':a55_0x48ccbd(0xba),'dev-eu01':a55_0x48ccbd(0x91),'stg-us01':a55_0x48ccbd(0xbc),'stg-jp01':a55_0x48ccbd(0xb0),'stg-ap03':a55_0x48ccbd(0xb4)};export const WORKFLOW_ENDPOINTS={'us01':a55_0x48ccbd(0x90),'jp01':a55_0x48ccbd(0xa5),'eu01':'https://api-workflow.eu01.treasuredata.com','ap02':'https://api-workflow.ap02.treasuredata.com','ap03':a55_0x48ccbd(0x9f),'dev-us01':'https://api-development-workflow.us01.treasuredata.com','dev-eu01':a55_0x48ccbd(0xa8),'stg-us01':'https://api-staging-workflow.us01.treasuredata.com','stg-jp01':a55_0x48ccbd(0x8f),'stg-ap03':a55_0x48ccbd(0xa2)};export const TRINO_ENDPOINTS={'us01':a55_0x48ccbd(0x9c),'jp01':a55_0x48ccbd(0x8d),'eu01':'https://api-presto.eu01.treasuredata.com','ap02':a55_0x48ccbd(0xa6),'ap03':'https://api-presto.ap03.treasuredata.com','dev-us01':'https://api-development-presto.treasuredata.com','dev-eu01':a55_0x48ccbd(0xab),'stg-us01':a55_0x48ccbd(0xa9),'stg-jp01':'https://api-staging-presto.treasuredata.co.jp','stg-ap03':a55_0x48ccbd(0x8c)};export const LLM_ENDPOINTS={'us01':a55_0x48ccbd(0xb5),'jp01':a55_0x48ccbd(0x9a),'eu01':'https://llm-api.eu01.treasuredata.com','ap02':a55_0x48ccbd(0x9b),'ap03':a55_0x48ccbd(0x98),'dev-us01':a55_0x48ccbd(0xb7),'dev-eu01':a55_0x48ccbd(0xa1),'stg-us01':'https://llm-api-staging.us01.treasuredata.com','stg-jp01':a55_0x48ccbd(0x94),'stg-ap03':a55_0x48ccbd(0x99)};export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS};export function getEndpoint(_0x4d2ea4,_0x2e712e='td'){const _0x42f869=a55_0x48ccbd,_0x41ed80=API_ENDPOINTS[_0x2e712e]?.[_0x4d2ea4];if(!_0x41ed80)throw new Error(_0x42f869(0xb3)+_0x2e712e+_0x42f869(0xbb)+_0x4d2ea4+'\x27');return _0x41ed80;}
1
+ function a55_0x7c72(){const _0x15a30c=['https://llm-api.treasuredata.com','https://api-staging-workflow.ap03.treasuredata.com','https://api-development-presto.eu01.treasuredata.com','https://api.treasuredata.com','3269775FMNsUf','https://llm-api-development.us01.treasuredata.com','https://api-workflow.ap03.treasuredata.com','https://api-workflow.ap02.treasuredata.com','https://api-staging-workflow.us01.treasuredata.com','https://api-development-presto.treasuredata.com','https://api-presto.ap03.treasuredata.com','https://llm-api-development.eu01.treasuredata.com','\x27\x20and\x20site\x20\x27','https://api-staging-cdp.treasuredata.co.jp','https://llm-api-staging.us01.treasuredata.com','6pfgCyA','https://api-development.us01.treasuredata.com','https://api-staging-cdp.us01.treasuredata.com','https://llm-api-staging.treasuredata.co.jp','https://api.ap02.treasuredata.com','https://llm-api-staging.ap03.treasuredata.com','https://api-cdp.ap03.treasuredata.com','https://api-staging.treasuredata.co.jp','https://api.treasuredata.co.jp','https://api-development-workflow.us01.treasuredata.com','18eniuOR','https://api-cdp.treasuredata.com','https://api-cdp.eu01.treasuredata.com','https://api-workflow.eu01.treasuredata.com','https://api-presto.ap02.treasuredata.com','https://llm-api.ap02.treasuredata.com','https://llm-api.ap03.treasuredata.com','1014772VGIsnz','https://llm-api.treasuredata.co.jp','https://api-presto.treasuredata.com','https://api-development.eu01.treasuredata.com','https://api-staging-cdp.ap03.treasuredata.com','https://api-development-cdp.us01.treasuredata.com','11623384wEMXFU','6302702ALFyfx','https://llm-api.eu01.treasuredata.com','https://api-development-cdp.eu01.treasuredata.com','49531xmKeeH','https://api.ap03.treasuredata.com','3002760wMLKZQ','https://api-staging.ap03.treasuredata.com','1488165ThaQQL','https://api-workflow.treasuredata.co.jp','https://api-presto.treasuredata.co.jp','https://api-staging-presto.ap03.treasuredata.com','https://api-presto.eu01.treasuredata.com'];a55_0x7c72=function(){return _0x15a30c;};return a55_0x7c72();}function a55_0x20b5(_0x4dfe5b,_0x243c3c){const _0x7c7243=a55_0x7c72();return a55_0x20b5=function(_0x20b511,_0x3e9564){_0x20b511=_0x20b511-0xf2;let _0x5431e7=_0x7c7243[_0x20b511];return _0x5431e7;},a55_0x20b5(_0x4dfe5b,_0x243c3c);}const a55_0x177e0d=a55_0x20b5;(function(_0x1a3d8b,_0x521146){const _0x2a924b=a55_0x20b5,_0x589e69=_0x1a3d8b();while(!![]){try{const _0x2c1d7f=parseInt(_0x2a924b(0xf6))/0x1*(parseInt(_0x2a924b(0x10e))/0x2)+parseInt(_0x2a924b(0x103))/0x3+-parseInt(_0x2a924b(0x11f))/0x4+-parseInt(_0x2a924b(0xfa))/0x5*(-parseInt(_0x2a924b(0x118))/0x6)+parseInt(_0x2a924b(0xf3))/0x7+-parseInt(_0x2a924b(0xf2))/0x8+-parseInt(_0x2a924b(0xf8))/0x9;if(_0x2c1d7f===_0x521146)break;else _0x589e69['push'](_0x589e69['shift']());}catch(_0x4ece3a){_0x589e69['push'](_0x589e69['shift']());}}}(a55_0x7c72,0xf213b));export const TD_ENDPOINTS={'us01':a55_0x177e0d(0x102),'jp01':a55_0x177e0d(0x116),'eu01':'https://api.eu01.treasuredata.com','ap02':a55_0x177e0d(0x112),'ap03':a55_0x177e0d(0xf7),'dev-us01':a55_0x177e0d(0x10f),'dev-eu01':a55_0x177e0d(0x122),'stg-us01':'https://api-staging.us01.treasuredata.com','stg-jp01':a55_0x177e0d(0x115),'stg-ap03':a55_0x177e0d(0xf9)};export const CDP_ENDPOINTS={'us01':a55_0x177e0d(0x119),'jp01':'https://api-cdp.treasuredata.co.jp','eu01':a55_0x177e0d(0x11a),'ap02':'https://api-cdp.ap02.treasuredata.com','ap03':a55_0x177e0d(0x114),'dev-us01':a55_0x177e0d(0x124),'dev-eu01':a55_0x177e0d(0xf5),'stg-us01':a55_0x177e0d(0x110),'stg-jp01':a55_0x177e0d(0x10c),'stg-ap03':a55_0x177e0d(0x123)};export const WORKFLOW_ENDPOINTS={'us01':'https://api-workflow.treasuredata.com','jp01':a55_0x177e0d(0xfb),'eu01':a55_0x177e0d(0x11b),'ap02':a55_0x177e0d(0x106),'ap03':a55_0x177e0d(0x105),'dev-us01':a55_0x177e0d(0x117),'dev-eu01':'https://api-development-workflow.eu01.treasuredata.com','stg-us01':a55_0x177e0d(0x107),'stg-jp01':'https://api-staging-workflow.treasuredata.co.jp','stg-ap03':a55_0x177e0d(0x100)};export const TRINO_ENDPOINTS={'us01':a55_0x177e0d(0x121),'jp01':a55_0x177e0d(0xfc),'eu01':a55_0x177e0d(0xfe),'ap02':a55_0x177e0d(0x11c),'ap03':a55_0x177e0d(0x109),'dev-us01':a55_0x177e0d(0x108),'dev-eu01':a55_0x177e0d(0x101),'stg-us01':'https://api-staging-presto.treasuredata.com','stg-jp01':'https://api-staging-presto.treasuredata.co.jp','stg-ap03':a55_0x177e0d(0xfd)};export const LLM_ENDPOINTS={'us01':a55_0x177e0d(0xff),'jp01':a55_0x177e0d(0x120),'eu01':a55_0x177e0d(0xf4),'ap02':a55_0x177e0d(0x11d),'ap03':a55_0x177e0d(0x11e),'dev-us01':a55_0x177e0d(0x104),'dev-eu01':a55_0x177e0d(0x10a),'stg-us01':a55_0x177e0d(0x10d),'stg-jp01':a55_0x177e0d(0x111),'stg-ap03':a55_0x177e0d(0x113)};export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS};export function getEndpoint(_0x5755a9,_0x1c870a='td'){const _0x390f4a=a55_0x177e0d,_0x1b5c7a=API_ENDPOINTS[_0x1c870a]?.[_0x5755a9];if(!_0x1b5c7a)throw new Error('No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27'+_0x1c870a+_0x390f4a(0x10b)+_0x5755a9+'\x27');return _0x1b5c7a;}
@@ -1 +1 @@
1
- const a56_0x213b51=a56_0x5dd9;(function(_0x1829b2,_0x57cad0){const _0x189023=a56_0x5dd9,_0x2f7240=_0x1829b2();while(!![]){try{const _0x2bd662=parseInt(_0x189023(0x141))/0x1*(parseInt(_0x189023(0x150))/0x2)+parseInt(_0x189023(0x143))/0x3+parseInt(_0x189023(0x14e))/0x4*(parseInt(_0x189023(0x151))/0x5)+parseInt(_0x189023(0x144))/0x6*(parseInt(_0x189023(0x14b))/0x7)+parseInt(_0x189023(0x14d))/0x8*(-parseInt(_0x189023(0x147))/0x9)+parseInt(_0x189023(0x148))/0xa*(-parseInt(_0x189023(0x146))/0xb)+-parseInt(_0x189023(0x14f))/0xc*(-parseInt(_0x189023(0x14c))/0xd);if(_0x2bd662===_0x57cad0)break;else _0x2f7240['push'](_0x2f7240['shift']());}catch(_0x4ae523){_0x2f7240['push'](_0x2f7240['shift']());}}}(a56_0x4fa5,0x99cb8));export const SITE_ALIASES={'us':a56_0x213b51(0x145),'aws':'us01','jp':a56_0x213b51(0x149),'aws-tokyo':a56_0x213b51(0x149),'dev':a56_0x213b51(0x14a),'stg':a56_0x213b51(0x142)};function a56_0x5dd9(_0x244da4,_0x3c733a){const _0x4fa5ab=a56_0x4fa5();return a56_0x5dd9=function(_0x5dd9b2,_0x3d138e){_0x5dd9b2=_0x5dd9b2-0x141;let _0x2c86bf=_0x4fa5ab[_0x5dd9b2];return _0x2c86bf;},a56_0x5dd9(_0x244da4,_0x3c733a);}export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';function a56_0x4fa5(){const _0x1acb6e=['4450bYxBxI','1BbePCZ','stg-us01','2538009DsRwov','108ITgsUn','us01','11205293JDnLgL','2367ApnwGq','10LFqzOY','jp01','dev-us01','32914iOjAve','78BlwtMB','34184oPxtaa','232hzWABR','1671852aSjWCT','1908442UxqEzC'];a56_0x4fa5=function(){return _0x1acb6e;};return a56_0x4fa5();}
1
+ const a56_0x3becd3=a56_0x3214;function a56_0x3214(_0x54aa91,_0x5297c5){const _0x594eae=a56_0x594e();return a56_0x3214=function(_0x321474,_0x57a498){_0x321474=_0x321474-0xf6;let _0x182c5e=_0x594eae[_0x321474];return _0x182c5e;},a56_0x3214(_0x54aa91,_0x5297c5);}function a56_0x594e(){const _0x54a5f2=['9093708pjuIji','8705490Gdyvbu','2234806DBszWV','4WHOFRU','stg-us01','732274itRycV','826656vLJaPS','jp01','dev-us01','9862592rPBCUi','us01','980KzHwLz','8121PMJeuh'];a56_0x594e=function(){return _0x54a5f2;};return a56_0x594e();}(function(_0x540f5b,_0x155058){const _0x1dbbe4=a56_0x3214,_0x17bde7=_0x540f5b();while(!![]){try{const _0x750f7b=-parseInt(_0x1dbbe4(0x102))/0x1*(parseInt(_0x1dbbe4(0xf7))/0x2)+-parseInt(_0x1dbbe4(0xfe))/0x3*(-parseInt(_0x1dbbe4(0xfd))/0x4)+parseInt(_0x1dbbe4(0x100))/0x5+parseInt(_0x1dbbe4(0xf8))/0x6+-parseInt(_0x1dbbe4(0x101))/0x7+parseInt(_0x1dbbe4(0xfb))/0x8+-parseInt(_0x1dbbe4(0xff))/0x9;if(_0x750f7b===_0x155058)break;else _0x17bde7['push'](_0x17bde7['shift']());}catch(_0x380056){_0x17bde7['push'](_0x17bde7['shift']());}}}(a56_0x594e,0xef6d7));export const SITE_ALIASES={'us':a56_0x3becd3(0xfc),'aws':a56_0x3becd3(0xfc),'jp':a56_0x3becd3(0xf9),'aws-tokyo':a56_0x3becd3(0xf9),'dev':a56_0x3becd3(0xfa),'stg':a56_0x3becd3(0xf6)};export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';
@@ -1 +1 @@
1
- function a59_0x1421(){const _0x1e0e74=['.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22','291355xamXFQ','1743664FpSUwY','371406jKARWk','Agent\x20name\x20cannot\x20be\x20empty','152988qdicsf','trim','6507ACvpxR','700830LOBbYm','11OhTcJV','length','25930wulYLZ','Project\x20name\x20cannot\x20be\x20empty','Invalid\x20agent\x20reference\x20format:\x20','2710vQzFRL','24azEpLd','split'];a59_0x1421=function(){return _0x1e0e74;};return a59_0x1421();}function a59_0x3a1f(_0x242857,_0x1e9e92){const _0x142163=a59_0x1421();return a59_0x3a1f=function(_0x3a1f09,_0x5cd880){_0x3a1f09=_0x3a1f09-0xa1;let _0x5a2b1f=_0x142163[_0x3a1f09];return _0x5a2b1f;},a59_0x3a1f(_0x242857,_0x1e9e92);}(function(_0x3309e0,_0x1cd723){const _0x2dfd8f=a59_0x3a1f,_0xe9d713=_0x3309e0();while(!![]){try{const _0x72bf2d=parseInt(_0x2dfd8f(0xa4))/0x1*(parseInt(_0x2dfd8f(0xa6))/0x2)+-parseInt(_0x2dfd8f(0xa3))/0x3+parseInt(_0x2dfd8f(0xb1))/0x4+parseInt(_0x2dfd8f(0xad))/0x5*(parseInt(_0x2dfd8f(0xaa))/0x6)+-parseInt(_0x2dfd8f(0xaf))/0x7+parseInt(_0x2dfd8f(0xae))/0x8+-parseInt(_0x2dfd8f(0xa2))/0x9*(parseInt(_0x2dfd8f(0xa9))/0xa);if(_0x72bf2d===_0x1cd723)break;else _0xe9d713['push'](_0xe9d713['shift']());}catch(_0x5c46ba){_0xe9d713['push'](_0xe9d713['shift']());}}}(a59_0x1421,0x24737));export function parseAgentRef(_0x224ade){const _0x16ef1f=a59_0x3a1f;if(!_0x224ade||_0x224ade[_0x16ef1f(0xa1)]()==='')throw new Error('Agent\x20reference\x20cannot\x20be\x20empty');const _0xdb53a4=_0x224ade['trim'](),_0x275149=_0xdb53a4[_0x16ef1f(0xab)]('/');if(_0x275149[_0x16ef1f(0xa5)]===0x1)return{'projectName':_0x275149[0x0],'agentName':undefined};else{if(_0x275149[_0x16ef1f(0xa5)]===0x2){const [_0x42afd9,_0x22bde2]=_0x275149;if(!_0x42afd9||_0x42afd9[_0x16ef1f(0xa1)]()==='')throw new Error(_0x16ef1f(0xa7));if(!_0x22bde2||_0x22bde2['trim']()==='')throw new Error(_0x16ef1f(0xb0));return{'projectName':_0x42afd9[_0x16ef1f(0xa1)](),'agentName':_0x22bde2[_0x16ef1f(0xa1)]()};}else throw new Error(_0x16ef1f(0xa8)+_0x224ade+_0x16ef1f(0xac));}}
1
+ (function(_0x256280,_0xddcf40){const _0x42ce07=a59_0x3ef3,_0x231c7e=_0x256280();while(!![]){try{const _0x5f05fb=-parseInt(_0x42ce07(0xfc))/0x1+parseInt(_0x42ce07(0xf1))/0x2+-parseInt(_0x42ce07(0xfd))/0x3+parseInt(_0x42ce07(0xfa))/0x4*(-parseInt(_0x42ce07(0xf2))/0x5)+parseInt(_0x42ce07(0xfb))/0x6+-parseInt(_0x42ce07(0xf4))/0x7+parseInt(_0x42ce07(0xf9))/0x8;if(_0x5f05fb===_0xddcf40)break;else _0x231c7e['push'](_0x231c7e['shift']());}catch(_0x4caede){_0x231c7e['push'](_0x231c7e['shift']());}}}(a59_0x55a0,0x799a4));export function parseAgentRef(_0x4cf1d0){const _0x598f27=a59_0x3ef3;if(!_0x4cf1d0||_0x4cf1d0[_0x598f27(0xf3)]()==='')throw new Error(_0x598f27(0xf6));const _0x3164f3=_0x4cf1d0[_0x598f27(0xf3)](),_0x444737=_0x3164f3['split']('/');if(_0x444737[_0x598f27(0xf5)]===0x1)return{'projectName':_0x444737[0x0],'agentName':undefined};else{if(_0x444737[_0x598f27(0xf5)]===0x2){const [_0x35d0f4,_0x487b7f]=_0x444737;if(!_0x35d0f4||_0x35d0f4['trim']()==='')throw new Error(_0x598f27(0xf8));if(!_0x487b7f||_0x487b7f[_0x598f27(0xf3)]()==='')throw new Error(_0x598f27(0xf7));return{'projectName':_0x35d0f4['trim'](),'agentName':_0x487b7f['trim']()};}else throw new Error(_0x598f27(0xfe)+_0x4cf1d0+'.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22');}}function a59_0x3ef3(_0x33408a,_0x23433c){const _0x55a0a0=a59_0x55a0();return a59_0x3ef3=function(_0x3ef343,_0x361f7a){_0x3ef343=_0x3ef343-0xf1;let _0x2f8df6=_0x55a0a0[_0x3ef343];return _0x2f8df6;},a59_0x3ef3(_0x33408a,_0x23433c);}function a59_0x55a0(){const _0x10e533=['Project\x20name\x20cannot\x20be\x20empty','14471408MZLnJE','1084808DjgEWZ','319368yXLvjX','312107NxzxmP','1345515KcbtXL','Invalid\x20agent\x20reference\x20format:\x20','964484Ttpcug','5CBUAeD','trim','5701486nvLJNV','length','Agent\x20reference\x20cannot\x20be\x20empty','Agent\x20name\x20cannot\x20be\x20empty'];a59_0x55a0=function(){return _0x10e533;};return a59_0x55a0();}
@@ -1 +1 @@
1
- (function(_0x24a80b,_0x341dd8){const _0x559f26=a60_0x278b,_0x163498=_0x24a80b();while(!![]){try{const _0x410dfa=parseInt(_0x559f26(0x6b))/0x1*(-parseInt(_0x559f26(0x77))/0x2)+-parseInt(_0x559f26(0x74))/0x3*(-parseInt(_0x559f26(0x6e))/0x4)+-parseInt(_0x559f26(0x79))/0x5+parseInt(_0x559f26(0x72))/0x6+-parseInt(_0x559f26(0x6c))/0x7*(parseInt(_0x559f26(0x73))/0x8)+parseInt(_0x559f26(0x6d))/0x9+parseInt(_0x559f26(0x78))/0xa*(-parseInt(_0x559f26(0x76))/0xb);if(_0x410dfa===_0x341dd8)break;else _0x163498['push'](_0x163498['shift']());}catch(_0x565c27){_0x163498['push'](_0x163498['shift']());}}}(a60_0x3a9c,0xef4b4));function a60_0x3a9c(){const _0x18de8a=['36519QgiWBA','trim','1225477ZBfKMR','6lsHwxq','80oxTxEy','5993725rPCBLF','last_chat_id','.cache','22749qlAvlH','7ovFZLH','17332893imaZZS','12eqgAtt','utf-8','tdx','cwd','11501238IahKby','5926984jivSpr'];a60_0x3a9c=function(){return _0x18de8a;};return a60_0x3a9c();}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0x4126d5=a60_0x278b;return join(process[_0x4126d5(0x71)](),_0x4126d5(0x7b),_0x4126d5(0x70));}function getLastChatIdPath(){const _0x1e5053=a60_0x278b;return join(getCacheDir(),_0x1e5053(0x7a));}function a60_0x278b(_0xf9d34d,_0x2333a3){const _0x3a9c9c=a60_0x3a9c();return a60_0x278b=function(_0x278b5f,_0x296741){_0x278b5f=_0x278b5f-0x6b;let _0x3ddf78=_0x3a9c9c[_0x278b5f];return _0x3ddf78;},a60_0x278b(_0xf9d34d,_0x2333a3);}function ensureCacheDir(){const _0x9dc23f=getCacheDir();!existsSync(_0x9dc23f)&&mkdirSync(_0x9dc23f,{'recursive':!![]});}export function saveLastChatId(_0x41df4b){const _0x395bf3=a60_0x278b;ensureCacheDir();const _0x25455c=getLastChatIdPath();writeFileSync(_0x25455c,_0x41df4b,_0x395bf3(0x6f));}export function loadLastChatId(){const _0x2b45e1=a60_0x278b,_0x5db267=getLastChatIdPath();if(!existsSync(_0x5db267))return undefined;try{const _0x27eafa=readFileSync(_0x5db267,_0x2b45e1(0x6f))[_0x2b45e1(0x75)]();return _0x27eafa||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x5aa61e=a60_0x278b,_0x52021c=getLastChatIdPath();if(existsSync(_0x52021c))try{writeFileSync(_0x52021c,'',_0x5aa61e(0x6f));}catch{}}
1
+ (function(_0x564f97,_0x2c6c79){const _0x10b921=a60_0x1559,_0x4b84c3=_0x564f97();while(!![]){try{const _0x3e86c2=-parseInt(_0x10b921(0x11f))/0x1+parseInt(_0x10b921(0x115))/0x2*(-parseInt(_0x10b921(0x112))/0x3)+parseInt(_0x10b921(0x11a))/0x4*(-parseInt(_0x10b921(0x11e))/0x5)+parseInt(_0x10b921(0x111))/0x6+-parseInt(_0x10b921(0x11d))/0x7*(parseInt(_0x10b921(0x113))/0x8)+-parseInt(_0x10b921(0x11c))/0x9+parseInt(_0x10b921(0x118))/0xa;if(_0x3e86c2===_0x2c6c79)break;else _0x4b84c3['push'](_0x4b84c3['shift']());}catch(_0x524762){_0x4b84c3['push'](_0x4b84c3['shift']());}}}(a60_0xeeb8,0xba930));function a60_0xeeb8(){const _0x27539e=['tdx','34727910vBIrJR','trim','5924dVvUEB','cwd','10207728oHRnOP','1393rToBvV','2715DJOaYi','1088849aJbEHz','6513636ylcFAM','38028icWxeG','29304aTDTOy','utf-8','6EeGnFf','last_chat_id'];a60_0xeeb8=function(){return _0x27539e;};return a60_0xeeb8();}function a60_0x1559(_0x1daa8b,_0x3f7fd1){const _0xeeb8fa=a60_0xeeb8();return a60_0x1559=function(_0x1559bb,_0x2d0166){_0x1559bb=_0x1559bb-0x111;let _0x3524d7=_0xeeb8fa[_0x1559bb];return _0x3524d7;},a60_0x1559(_0x1daa8b,_0x3f7fd1);}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0xad9e26=a60_0x1559;return join(process[_0xad9e26(0x11b)](),'.cache',_0xad9e26(0x117));}function getLastChatIdPath(){const _0x4f45b9=a60_0x1559;return join(getCacheDir(),_0x4f45b9(0x116));}function ensureCacheDir(){const _0x4db15e=getCacheDir();!existsSync(_0x4db15e)&&mkdirSync(_0x4db15e,{'recursive':!![]});}export function saveLastChatId(_0x43ff88){const _0x5f21fa=a60_0x1559;ensureCacheDir();const _0x224084=getLastChatIdPath();writeFileSync(_0x224084,_0x43ff88,_0x5f21fa(0x114));}export function loadLastChatId(){const _0x27fab2=a60_0x1559,_0x58876c=getLastChatIdPath();if(!existsSync(_0x58876c))return undefined;try{const _0x3c0b9a=readFileSync(_0x58876c,_0x27fab2(0x114))[_0x27fab2(0x119)]();return _0x3c0b9a||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x2c6091=a60_0x1559,_0x129353=getLastChatIdPath();if(existsSync(_0x129353))try{writeFileSync(_0x129353,'',_0x2c6091(0x114));}catch{}}
@@ -1 +1 @@
1
- (function(_0x59e2aa,_0xe6f5b4){const _0x103b52=a61_0x2d7a,_0x58c89d=_0x59e2aa();while(!![]){try{const _0x11e73f=-parseInt(_0x103b52(0x79))/0x1+-parseInt(_0x103b52(0x83))/0x2*(-parseInt(_0x103b52(0x80))/0x3)+-parseInt(_0x103b52(0x82))/0x4*(-parseInt(_0x103b52(0x7c))/0x5)+-parseInt(_0x103b52(0x84))/0x6+-parseInt(_0x103b52(0x87))/0x7+parseInt(_0x103b52(0x7e))/0x8+parseInt(_0x103b52(0x72))/0x9*(parseInt(_0x103b52(0x77))/0xa);if(_0x11e73f===_0xe6f5b4)break;else _0x58c89d['push'](_0x58c89d['shift']());}catch(_0x29280e){_0x58c89d['push'](_0x58c89d['shift']());}}}(a61_0x2946,0xb0928));import{Chalk}from'chalk';export function shouldUseColor(_0x4803b0={}){const _0x1b01dc=a61_0x2d7a;if(_0x4803b0[_0x1b01dc(0x88)]===!![])return![];if(_0x4803b0[_0x1b01dc(0x78)]===!![])return!![];if(process['env'][_0x1b01dc(0x8c)]!==undefined)return![];return process[_0x1b01dc(0x85)][_0x1b01dc(0x7a)]??![];}function a61_0x2946(){const _0x5992cd=['isArray','3ECnYLv','map','908uwUiAb','2138504PuzcWb','4692708KTTTdW','stdout','string','3661483euMmTb','noColor','number','cyan','entries','NO_COLOR','boolean','length','stringify','green','216quAzuW','blue','object','join','dim','121600kJktFA','color','580226WwzrMT','isTTY','repeat','9475FfTWEP','null','6539168jwIxXJ'];a61_0x2946=function(){return _0x5992cd;};return a61_0x2946();}export function getChalk(_0x49f6dc={}){if(shouldUseColor(_0x49f6dc))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x27038f,_0x30e667={}){const _0x2fdc25=a61_0x2d7a;return getChalk(_0x30e667)[_0x2fdc25(0x76)](_0x27038f);}export function colorHeader(_0x12df4b,_0x346515={}){const _0x472179=a61_0x2d7a;return getChalk(_0x346515)[_0x472179(0x8a)](_0x12df4b);}export function colorType(_0x441426,_0x52006e={}){const _0x43fb47=a61_0x2d7a;return getChalk(_0x52006e)[_0x43fb47(0x76)](_0x441426);}function a61_0x2d7a(_0x559e33,_0x2822ea){const _0x2946e5=a61_0x2946();return a61_0x2d7a=function(_0x2d7a8c,_0x18f01a){_0x2d7a8c=_0x2d7a8c-0x70;let _0x3f377d=_0x2946e5[_0x2d7a8c];return _0x3f377d;},a61_0x2d7a(_0x559e33,_0x2822ea);}export function colorJSONKey(_0x1148ce,_0xb222ce={}){const _0x5556b4=a61_0x2d7a;return getChalk(_0xb222ce)[_0x5556b4(0x73)](_0x1148ce);}export function colorJSONString(_0x4b822f,_0x11609d={}){const _0x5ae93d=a61_0x2d7a;return getChalk(_0x11609d)[_0x5ae93d(0x71)](_0x4b822f);}export function colorJSONNumber(_0x2fa42d,_0x25aa17={}){const _0x370c40=a61_0x2d7a;return getChalk(_0x25aa17)[_0x370c40(0x8a)](_0x2fa42d);}export function colorJSONBoolean(_0x2aeb59,_0x29c341={}){return getChalk(_0x29c341)['yellow'](_0x2aeb59);}export function colorJSONNull(_0x5dd6bd,_0x9adc5c={}){const _0x384541=a61_0x2d7a;return getChalk(_0x9adc5c)[_0x384541(0x76)](_0x5dd6bd);}export function colorizeJSONCompact(_0x683aa7,_0x102476={}){const _0x3a0601=a61_0x2d7a;if(!shouldUseColor(_0x102476))return JSON[_0x3a0601(0x70)](_0x683aa7);if(_0x683aa7===null)return colorJSONNull(_0x3a0601(0x7d),_0x102476);if(typeof _0x683aa7===_0x3a0601(0x8d))return colorJSONBoolean(String(_0x683aa7),_0x102476);if(typeof _0x683aa7===_0x3a0601(0x89))return colorJSONNumber(String(_0x683aa7),_0x102476);if(typeof _0x683aa7===_0x3a0601(0x86))return colorJSONString(JSON['stringify'](_0x683aa7),_0x102476);if(Array[_0x3a0601(0x7f)](_0x683aa7)){if(_0x683aa7[_0x3a0601(0x8e)]===0x0)return'[]';const _0xb131f0=_0x683aa7[_0x3a0601(0x81)](_0x3c2b80=>colorizeJSONCompact(_0x3c2b80,_0x102476));return'['+_0xb131f0[_0x3a0601(0x75)](',')+']';}if(typeof _0x683aa7==='object'){const _0x3e4cf6=Object[_0x3a0601(0x8b)](_0x683aa7);if(_0x3e4cf6[_0x3a0601(0x8e)]===0x0)return'{}';const _0x231cf6=_0x3e4cf6[_0x3a0601(0x81)](([_0x5422e4,_0x53612c])=>{const _0x2ecb8d=_0x3a0601,_0x2b36cf=colorJSONKey(JSON[_0x2ecb8d(0x70)](_0x5422e4),_0x102476),_0x1fb533=colorizeJSONCompact(_0x53612c,_0x102476);return _0x2b36cf+':'+_0x1fb533;});return'{'+_0x231cf6[_0x3a0601(0x75)](',')+'}';}return String(_0x683aa7);}export function colorizeJSON(_0x20c8f7,_0x3061c0={},_0x3999ee=0x0){const _0x219492=a61_0x2d7a;if(!shouldUseColor(_0x3061c0))return JSON[_0x219492(0x70)](_0x20c8f7,null,0x2);const _0x404168='\x20'[_0x219492(0x7b)](_0x3999ee),_0x5f078f=_0x3999ee+0x2;if(_0x20c8f7===null)return colorJSONNull(_0x219492(0x7d),_0x3061c0);if(typeof _0x20c8f7===_0x219492(0x8d))return colorJSONBoolean(String(_0x20c8f7),_0x3061c0);if(typeof _0x20c8f7===_0x219492(0x89))return colorJSONNumber(String(_0x20c8f7),_0x3061c0);if(typeof _0x20c8f7==='string')return colorJSONString(JSON[_0x219492(0x70)](_0x20c8f7),_0x3061c0);if(Array[_0x219492(0x7f)](_0x20c8f7)){if(_0x20c8f7[_0x219492(0x8e)]===0x0)return'[]';const _0x1d6dba=_0x20c8f7[_0x219492(0x81)](_0x5494d3=>{const _0x490b93=_0x219492,_0x1f787c=colorizeJSON(_0x5494d3,_0x3061c0,_0x5f078f);return''+'\x20'[_0x490b93(0x7b)](_0x5f078f)+_0x1f787c;});return'[\x0a'+_0x1d6dba[_0x219492(0x75)](',\x0a')+('\x0a'+_0x404168+']');}if(typeof _0x20c8f7===_0x219492(0x74)){const _0x55cce7=Object[_0x219492(0x8b)](_0x20c8f7);if(_0x55cce7[_0x219492(0x8e)]===0x0)return'{}';const _0x3c634e=_0x55cce7[_0x219492(0x81)](([_0x7bcd4f,_0x2110b4])=>{const _0x26a49a=_0x219492,_0x2e0920=colorJSONKey(JSON[_0x26a49a(0x70)](_0x7bcd4f),_0x3061c0),_0xe89c2=colorizeJSON(_0x2110b4,_0x3061c0,_0x5f078f);return''+'\x20'[_0x26a49a(0x7b)](_0x5f078f)+_0x2e0920+':\x20'+_0xe89c2;});return'{\x0a'+_0x3c634e[_0x219492(0x75)](',\x0a')+('\x0a'+_0x404168+'}');}return String(_0x20c8f7);}
1
+ (function(_0x3299cb,_0x59ef76){const _0x422fe4=a61_0x152c,_0x4b511b=_0x3299cb();while(!![]){try{const _0x322b47=-parseInt(_0x422fe4(0xab))/0x1*(parseInt(_0x422fe4(0xa1))/0x2)+-parseInt(_0x422fe4(0x94))/0x3+parseInt(_0x422fe4(0xa8))/0x4+-parseInt(_0x422fe4(0x9f))/0x5*(parseInt(_0x422fe4(0xa6))/0x6)+parseInt(_0x422fe4(0xa4))/0x7+parseInt(_0x422fe4(0x92))/0x8+parseInt(_0x422fe4(0x93))/0x9*(parseInt(_0x422fe4(0xa2))/0xa);if(_0x322b47===_0x59ef76)break;else _0x4b511b['push'](_0x4b511b['shift']());}catch(_0xb03acf){_0x4b511b['push'](_0x4b511b['shift']());}}}(a61_0x2ee9,0xc106d));import{Chalk}from'chalk';export function shouldUseColor(_0x2cdcfc={}){const _0x13ae18=a61_0x152c;if(_0x2cdcfc[_0x13ae18(0x9c)]===!![])return![];if(_0x2cdcfc['color']===!![])return!![];if(process['env'][_0x13ae18(0xa5)]!==undefined)return![];return process[_0x13ae18(0xa3)][_0x13ae18(0x9d)]??![];}export function getChalk(_0x45ae7b={}){if(shouldUseColor(_0x45ae7b))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x3c5142,_0x1c73dc={}){return getChalk(_0x1c73dc)['dim'](_0x3c5142);}function a61_0x2ee9(){const _0x99169a=['repeat','length','number','cyan','noColor','isTTY','entries','5074635qXRuxR','isArray','316yTslcE','680MyieIm','stdout','10504039xbKwoE','NO_COLOR','6UKdrTq','map','743144LcjoSk','dim','blue','1444apKfIM','null','join','yellow','1121232jUAOYG','190395lOqDiX','3694023JPIXnr','boolean','stringify','object'];a61_0x2ee9=function(){return _0x99169a;};return a61_0x2ee9();}function a61_0x152c(_0x2f31f0,_0x497cb6){const _0x2ee90e=a61_0x2ee9();return a61_0x152c=function(_0x152c6e,_0x3babc8){_0x152c6e=_0x152c6e-0x90;let _0x51ce4c=_0x2ee90e[_0x152c6e];return _0x51ce4c;},a61_0x152c(_0x2f31f0,_0x497cb6);}export function colorHeader(_0x567696,_0x3371c8={}){const _0x53f4c1=a61_0x152c;return getChalk(_0x3371c8)[_0x53f4c1(0x9b)](_0x567696);}export function colorType(_0x1900e1,_0xe4a546={}){const _0x2d97f8=a61_0x152c;return getChalk(_0xe4a546)[_0x2d97f8(0xa9)](_0x1900e1);}export function colorJSONKey(_0xbabc32,_0x114f00={}){const _0x499c06=a61_0x152c;return getChalk(_0x114f00)[_0x499c06(0xaa)](_0xbabc32);}export function colorJSONString(_0x83d2fe,_0x43f6ec={}){return getChalk(_0x43f6ec)['green'](_0x83d2fe);}export function colorJSONNumber(_0x3ef85a,_0x196d89={}){const _0x5f2c47=a61_0x152c;return getChalk(_0x196d89)[_0x5f2c47(0x9b)](_0x3ef85a);}export function colorJSONBoolean(_0x5bfb1d,_0x45da05={}){const _0x127f52=a61_0x152c;return getChalk(_0x45da05)[_0x127f52(0x91)](_0x5bfb1d);}export function colorJSONNull(_0x4cb780,_0x1fdb91={}){return getChalk(_0x1fdb91)['dim'](_0x4cb780);}export function colorizeJSONCompact(_0x2f9ddc,_0x546191={}){const _0x59e477=a61_0x152c;if(!shouldUseColor(_0x546191))return JSON[_0x59e477(0x96)](_0x2f9ddc);if(_0x2f9ddc===null)return colorJSONNull(_0x59e477(0xac),_0x546191);if(typeof _0x2f9ddc===_0x59e477(0x95))return colorJSONBoolean(String(_0x2f9ddc),_0x546191);if(typeof _0x2f9ddc===_0x59e477(0x9a))return colorJSONNumber(String(_0x2f9ddc),_0x546191);if(typeof _0x2f9ddc==='string')return colorJSONString(JSON[_0x59e477(0x96)](_0x2f9ddc),_0x546191);if(Array[_0x59e477(0xa0)](_0x2f9ddc)){if(_0x2f9ddc[_0x59e477(0x99)]===0x0)return'[]';const _0x3c2209=_0x2f9ddc[_0x59e477(0xa7)](_0x2201e6=>colorizeJSONCompact(_0x2201e6,_0x546191));return'['+_0x3c2209[_0x59e477(0x90)](',')+']';}if(typeof _0x2f9ddc===_0x59e477(0x97)){const _0x3605d3=Object['entries'](_0x2f9ddc);if(_0x3605d3[_0x59e477(0x99)]===0x0)return'{}';const _0x27e0be=_0x3605d3[_0x59e477(0xa7)](([_0x34eb82,_0x5552d7])=>{const _0x5eb596=_0x59e477,_0xd5a42=colorJSONKey(JSON[_0x5eb596(0x96)](_0x34eb82),_0x546191),_0x296b77=colorizeJSONCompact(_0x5552d7,_0x546191);return _0xd5a42+':'+_0x296b77;});return'{'+_0x27e0be[_0x59e477(0x90)](',')+'}';}return String(_0x2f9ddc);}export function colorizeJSON(_0x39bf97,_0x38404e={},_0x15cea8=0x0){const _0x4b2095=a61_0x152c;if(!shouldUseColor(_0x38404e))return JSON[_0x4b2095(0x96)](_0x39bf97,null,0x2);const _0x498a45='\x20'[_0x4b2095(0x98)](_0x15cea8),_0x575954=_0x15cea8+0x2;if(_0x39bf97===null)return colorJSONNull(_0x4b2095(0xac),_0x38404e);if(typeof _0x39bf97==='boolean')return colorJSONBoolean(String(_0x39bf97),_0x38404e);if(typeof _0x39bf97==='number')return colorJSONNumber(String(_0x39bf97),_0x38404e);if(typeof _0x39bf97==='string')return colorJSONString(JSON[_0x4b2095(0x96)](_0x39bf97),_0x38404e);if(Array[_0x4b2095(0xa0)](_0x39bf97)){if(_0x39bf97[_0x4b2095(0x99)]===0x0)return'[]';const _0x1922a3=_0x39bf97[_0x4b2095(0xa7)](_0x35c317=>{const _0x561623=colorizeJSON(_0x35c317,_0x38404e,_0x575954);return''+'\x20'['repeat'](_0x575954)+_0x561623;});return'[\x0a'+_0x1922a3[_0x4b2095(0x90)](',\x0a')+('\x0a'+_0x498a45+']');}if(typeof _0x39bf97==='object'){const _0x14963e=Object[_0x4b2095(0x9e)](_0x39bf97);if(_0x14963e[_0x4b2095(0x99)]===0x0)return'{}';const _0x2b38bf=_0x14963e[_0x4b2095(0xa7)](([_0x2d60f,_0x30064f])=>{const _0x5a6629=_0x4b2095,_0x2d9415=colorJSONKey(JSON[_0x5a6629(0x96)](_0x2d60f),_0x38404e),_0x3d86e2=colorizeJSON(_0x30064f,_0x38404e,_0x575954);return''+'\x20'[_0x5a6629(0x98)](_0x575954)+_0x2d9415+':\x20'+_0x3d86e2;});return'{\x0a'+_0x2b38bf[_0x4b2095(0x90)](',\x0a')+('\x0a'+_0x498a45+'}');}return String(_0x39bf97);}
@@ -1 +1 @@
1
- (function(_0x475375,_0x54f9d6){const _0xd88d2d=a62_0x1b9d,_0xc5aab=_0x475375();while(!![]){try{const _0x283dba=-parseInt(_0xd88d2d(0xb5))/0x1*(-parseInt(_0xd88d2d(0x9e))/0x2)+-parseInt(_0xd88d2d(0x8f))/0x3*(parseInt(_0xd88d2d(0x97))/0x4)+parseInt(_0xd88d2d(0xa6))/0x5+parseInt(_0xd88d2d(0xa7))/0x6+parseInt(_0xd88d2d(0xb1))/0x7*(-parseInt(_0xd88d2d(0x95))/0x8)+-parseInt(_0xd88d2d(0x92))/0x9*(parseInt(_0xd88d2d(0xb4))/0xa)+parseInt(_0xd88d2d(0xb3))/0xb*(parseInt(_0xd88d2d(0xad))/0xc);if(_0x283dba===_0x54f9d6)break;else _0xc5aab['push'](_0xc5aab['shift']());}catch(_0x152f1d){_0xc5aab['push'](_0xc5aab['shift']());}}}(a62_0x2d63,0x7da35));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a62_0x2f1be1 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';function a62_0x1b9d(_0x1c72c1,_0x2d4a95){const _0x2d636b=a62_0x2d63();return a62_0x1b9d=function(_0x1b9de1,_0x25762f){_0x1b9de1=_0x1b9de1-0x7e;let _0x1d4a15=_0x2d636b[_0x1b9de1];return _0x1d4a15;},a62_0x1b9d(_0x1c72c1,_0x2d4a95);}function a62_0x2d63(){const _0x140d7d=['end','[logs]','FINISHED','push','object','max','stringify','length','json','log','[error]','varchar','close','sdk-result','jsonl','double','991086gtQiaV','write','isInteger','7182207tJZAxn','format','isTTY','79696DbjekI','resolve','4IVyTPd','bigint','limit','noColor','color','padEnd','error','18VxhkvN','query','inherit','cmdout','number','tsv','less','table','3572260OWRxbj','1692732PrGcPm','stdin','boolean','stderr','forEach','─┬─','12tUHITl','spawn','split','bold','98kVcAhl','string','3346431VRYBJR','10ckOpVt','53519YfJUVB','filter','cyan','-FXRSn','entries','output','map','repeat','trim','No\x20data'];a62_0x2d63=function(){return _0x140d7d;};return a62_0x2d63();}import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x38a4fb){const _0x55e79c=a62_0x1b9d;return{'format':_0x38a4fb[_0x55e79c(0x93)]||_0x55e79c(0xa5),'output':_0x38a4fb[_0x55e79c(0xba)]||'','limit':_0x38a4fb[_0x55e79c(0x99)],'color':_0x38a4fb[_0x55e79c(0x9b)],'noColor':_0x38a4fb[_0x55e79c(0x9a)]};}function convertSDKResultToQueryResult(_0x4abad1){const _0x13940a=a62_0x1b9d,_0x10d0ec=[];if(_0x4abad1[_0x13940a(0x86)]>0x0){const _0x18c7d3=_0x4abad1[0x0];for(const [_0x32040c,_0x4e8237]of Object[_0x13940a(0xb9)](_0x18c7d3)){let _0x28a07b=_0x13940a(0x8a);if(typeof _0x4e8237===_0x13940a(0xa2))_0x28a07b=Number[_0x13940a(0x91)](_0x4e8237)?_0x13940a(0x98):_0x13940a(0x8e);else{if(typeof _0x4e8237==='boolean')_0x28a07b=_0x13940a(0xa9);else _0x4e8237===null&&(_0x28a07b='varchar');}_0x10d0ec[_0x13940a(0x82)]({'name':_0x32040c,'type':_0x28a07b});}}return{'queryId':_0x13940a(0x8c),'columns':_0x10d0ec,'data':_0x4abad1,'stats':{'state':_0x13940a(0x81),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x4abad1[_0x13940a(0x86)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0xfaf12b,_0x38a45a){const _0x56076a=convertSDKResultToQueryResult(_0xfaf12b);return formatQueryOutput(_0x56076a,_0x38a45a);}export async function formatQueryOutput(_0x232fe3,_0x2e01f7){const _0x2ea776=a62_0x1b9d,{format:_0x306779,limit:_0x25ee30,output:_0x589d21,color:_0x297179,noColor:_0x3442c6}=_0x2e01f7,_0x4d3644=Boolean(_0x589d21)&&!_0x297179,_0x42db31={'color':_0x297179,'noColor':_0x3442c6||_0x4d3644};if(_0x306779===_0x2ea776(0xa5)){const _0x2fc622=shouldUseLess(_0x306779,_0x589d21);return formatAsTable(_0x232fe3,_0x25ee30,_0x2fc622,_0x42db31);}else{if(_0x306779==='json')return formatAsJSON(_0x232fe3,_0x42db31);else return _0x306779===_0x2ea776(0x8d)?formatAsJSONL(_0x232fe3,_0x42db31):formatQueryResult(_0x232fe3,_0x306779);}}function shouldUseLess(_0x21fa24,_0x1c107f){const _0x1bc8f3=a62_0x1b9d;return _0x21fa24===_0x1bc8f3(0xa5)&&process['stdout'][_0x1bc8f3(0x94)]&&!_0x1c107f;}export function resolveOutputOptions(_0x309986){const _0x4733c5=a62_0x1b9d,_0x639ea=resolveOutputFormat(_0x309986[_0x4733c5(0x93)],_0x309986['output'],_0x4733c5(0xa5));let _0x2170dd=typeof _0x309986[_0x4733c5(0x99)]===_0x4733c5(0xa2)?_0x309986[_0x4733c5(0x99)]:parseInt(_0x309986[_0x4733c5(0x99)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0xd5a636=_0x309986[_0x4733c5(0xba)]||'';return shouldUseLess(_0x639ea,_0xd5a636)&&(_0x2170dd=Infinity),{'format':_0x639ea,'output':_0xd5a636,'limit':_0x2170dd,'color':_0x309986[_0x4733c5(0x9b)],'noColor':_0x309986[_0x4733c5(0x9a)]};}export function writeOutput(_0x316cce,_0x40198f,_0x44f409){const _0x2b1770=a62_0x1b9d;return _0x40198f?(writeFileSync(_0x40198f,_0x316cce),console[_0x2b1770(0x9d)]('Results\x20saved\x20to\x20'+_0x40198f),Promise[_0x2b1770(0x96)]()):shouldUseLess(_0x44f409||'','')?new Promise(_0xfec5bb=>{const _0x40e6ed=_0x2b1770,_0x3f29e2=spawn(_0x40e6ed(0xa4),[_0x40e6ed(0xb8)],{'stdio':['pipe','inherit',_0x40e6ed(0xa0)]});let _0x4ad4df=![];_0x3f29e2['on']('error',()=>{const _0x1ed556=_0x40e6ed;!_0x4ad4df&&(_0x4ad4df=!![],console[_0x1ed556(0x88)](_0x316cce),_0xfec5bb());}),_0x3f29e2['on'](_0x40e6ed(0x8b),()=>{!_0x4ad4df&&(_0x4ad4df=!![],_0xfec5bb());}),_0x3f29e2['on'](_0x40e6ed(0xae),()=>{const _0x1a06ee=_0x40e6ed;!_0x4ad4df&&_0x3f29e2[_0x1a06ee(0xa8)]&&(_0x3f29e2[_0x1a06ee(0xa8)]['on']('error',()=>{}),_0x3f29e2[_0x1a06ee(0xa8)][_0x1a06ee(0x90)](_0x316cce),_0x3f29e2[_0x1a06ee(0xa8)][_0x1a06ee(0x7f)]());}),!_0x3f29e2[_0x40e6ed(0xa8)]&&(!_0x4ad4df&&(_0x4ad4df=!![],console['log'](_0x316cce),_0xfec5bb()));}):(console[_0x2b1770(0x88)](_0x316cce),Promise['resolve']());}export async function handleSDKOutput(_0x1ee51e,_0x4e02e9){const _0x55567e=a62_0x1b9d,_0x5edd54=resolveOutputOptions(_0x4e02e9),_0x408a6f=await formatSDKOutput(_0x1ee51e,_0x5edd54);await writeOutput(_0x408a6f,_0x5edd54[_0x55567e(0xba)]||undefined,_0x5edd54[_0x55567e(0x93)]);}export async function handleQueryOutput(_0x3e5e57,_0x1d92d4){const _0x4de977=a62_0x1b9d,_0x1d4893=resolveOutputOptions(_0x1d92d4),_0x408433=await formatQueryOutput(_0x3e5e57,_0x1d4893);await writeOutput(_0x408433,_0x1d4893[_0x4de977(0xba)]||undefined,_0x1d4893['format']);}async function formatSingleObject(_0x3a5281,_0x4e75b4){const _0x205c68=a62_0x1b9d,{format:_0x30cf45,color:_0x57391c,noColor:_0x74b801}=_0x4e75b4,_0x360217={'color':_0x57391c,'noColor':_0x74b801};if(_0x30cf45===_0x205c68(0x87)){if(shouldUseColor(_0x360217))return colorizeJSON(_0x3a5281,_0x360217);return JSON[_0x205c68(0x85)](_0x3a5281,null,0x2);}else{if(_0x30cf45===_0x205c68(0x8d)){if(shouldUseColor(_0x360217))return colorizeJSONCompact(_0x3a5281,_0x360217);return JSON['stringify'](_0x3a5281);}else{if(_0x30cf45===_0x205c68(0xa3))return Object[_0x205c68(0xb9)](_0x3a5281)[_0x205c68(0xbb)](([_0x318122,_0x2cfbd0])=>_0x318122+'\x09'+_0x2cfbd0)['join']('\x0a');else{const _0x40fe64=Object[_0x205c68(0xb9)](_0x3a5281);if(_0x40fe64[_0x205c68(0x86)]===0x0)return _0x205c68(0x7e);const _0x45abf4=_0x3a5281['debug'],_0x5e23bc=_0x3a5281[_0x205c68(0x9f)],_0x4c5e73=_0x5e23bc?typeof _0x5e23bc===_0x205c68(0xb2)?_0x5e23bc:JSON[_0x205c68(0x85)](_0x5e23bc,null,0x2):undefined,_0x10b598=_0x40fe64[_0x205c68(0xb6)](([_0x3658a1])=>_0x3658a1!=='debug'&&_0x3658a1!==_0x205c68(0x9f)),_0x42804f=Math[_0x205c68(0x84)](..._0x10b598['map'](([_0x446e9c])=>_0x446e9c['length'])),_0x36e600=Math[_0x205c68(0x84)](..._0x10b598[_0x205c68(0xbb)](([,_0x413987])=>{const _0xc9bd89=_0x205c68;try{const _0x57790a=_0x413987===null||_0x413987===undefined?'':typeof _0x413987===_0xc9bd89(0x83)?JSON[_0xc9bd89(0x85)](_0x413987):String(_0x413987),_0x57cb2f=_0x57790a[_0xc9bd89(0xaf)]('\x0a');return Math[_0xc9bd89(0x84)](..._0x57cb2f[_0xc9bd89(0xbb)](_0x554a6e=>_0x554a6e[_0xc9bd89(0x86)]),0x0);}catch{return 0x0;}}),0x14),_0x443061=[];_0x443061[_0x205c68(0x82)](colorBorder('┌─'+'─'['repeat'](_0x42804f)+_0x205c68(0xac)+'─'[_0x205c68(0xbc)](_0x36e600)+'─┐',_0x360217)),_0x10b598[_0x205c68(0xab)](([_0x3def0d,_0x2ec209])=>{const _0x48a1a8=_0x205c68;let _0x20030a;try{_0x20030a=_0x2ec209===null||_0x2ec209===undefined?'':typeof _0x2ec209==='object'?JSON[_0x48a1a8(0x85)](_0x2ec209):String(_0x2ec209);}catch{_0x20030a='[Object]';}const _0xcb5e9d=_0x3def0d['padEnd'](_0x42804f),_0x5db68d=_0x20030a[_0x48a1a8(0xaf)]('\x0a');_0x5db68d[_0x48a1a8(0xab)]((_0x2f8886,_0x6e16cf)=>{const _0x27d682=_0x48a1a8,_0x5937c6=colorBorder('│',_0x360217);_0x6e16cf===0x0?_0x443061[_0x27d682(0x82)](_0x5937c6+'\x20'+_0xcb5e9d+'\x20'+_0x5937c6+'\x20'+_0x2f8886[_0x27d682(0x9c)](_0x36e600)+'\x20'+_0x5937c6):_0x443061[_0x27d682(0x82)](_0x5937c6+'\x20'+'\x20'[_0x27d682(0xbc)](_0x42804f)+'\x20'+_0x5937c6+'\x20'+_0x2f8886['padEnd'](_0x36e600)+'\x20'+_0x5937c6);});}),_0x443061[_0x205c68(0x82)](colorBorder('└─'+'─'[_0x205c68(0xbc)](_0x42804f)+'─┴─'+'─'[_0x205c68(0xbc)](_0x36e600)+'─┘',_0x360217));_0x4c5e73&&(_0x443061['push'](''),_0x443061['push'](String(a62_0x2f1be1['yellow']['bold']('[query]'))),_0x443061[_0x205c68(0x82)](_0x4c5e73));if(_0x45abf4){if(_0x45abf4[_0x205c68(0xaa)]){_0x443061[_0x205c68(0x82)](''),_0x443061[_0x205c68(0x82)](String(a62_0x2f1be1['red'][_0x205c68(0xb0)](_0x205c68(0x89))));const _0x43df27=_0x45abf4[_0x205c68(0xaa)][_0x205c68(0xaf)]('\x0a');_0x43df27[_0x205c68(0xab)](_0xa978b8=>{const _0x548851=_0x205c68;_0xa978b8['trim']()&&_0x443061[_0x548851(0x82)](_0xa978b8);});}if(_0x45abf4['cmdout']){_0x443061['push'](''),_0x443061[_0x205c68(0x82)](String(a62_0x2f1be1[_0x205c68(0xb7)][_0x205c68(0xb0)](_0x205c68(0x80))));const _0x5e3733=_0x45abf4[_0x205c68(0xa1)][_0x205c68(0xaf)]('\x0a');_0x5e3733[_0x205c68(0xab)](_0x11b0b4=>{const _0x412704=_0x205c68;_0x11b0b4[_0x412704(0xbd)]()&&_0x443061[_0x412704(0x82)](_0x11b0b4);});}}return _0x443061['join']('\x0a');}}}}export async function handleSingleObjectOutput(_0x2b9a59,_0x102042){const _0xda2dc0=a62_0x1b9d,_0x4c5bfe=resolveOutputOptions(_0x102042),_0xe34d15=await formatSingleObject(_0x2b9a59,_0x4c5bfe);await writeOutput(_0xe34d15,_0x4c5bfe[_0xda2dc0(0xba)]||undefined,_0x4c5bfe['format']);}
1
+ (function(_0x504c3c,_0x5b0487){const _0x1d8db4=a62_0x4687,_0x5d336f=_0x504c3c();while(!![]){try{const _0x2f969a=parseInt(_0x1d8db4(0x131))/0x1+-parseInt(_0x1d8db4(0x145))/0x2*(-parseInt(_0x1d8db4(0x12c))/0x3)+parseInt(_0x1d8db4(0x139))/0x4*(parseInt(_0x1d8db4(0x137))/0x5)+parseInt(_0x1d8db4(0x146))/0x6+parseInt(_0x1d8db4(0x15c))/0x7*(parseInt(_0x1d8db4(0x12f))/0x8)+parseInt(_0x1d8db4(0x15a))/0x9+-parseInt(_0x1d8db4(0x14f))/0xa;if(_0x2f969a===_0x5b0487)break;else _0x5d336f['push'](_0x5d336f['shift']());}catch(_0x319a24){_0x5d336f['push'](_0x5d336f['shift']());}}}(a62_0x3de3,0xcfc2d));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a62_0x4687(_0x339a8f,_0x36f527){const _0x3de3ee=a62_0x3de3();return a62_0x4687=function(_0x4687d6,_0x1f0391){_0x4687d6=_0x4687d6-0x11e;let _0x2d2e35=_0x3de3ee[_0x4687d6];return _0x2d2e35;},a62_0x4687(_0x339a8f,_0x36f527);}import a62_0x260ecc from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x3af49e){const _0x5f1e40=a62_0x4687;return{'format':_0x3af49e[_0x5f1e40(0x141)]||_0x5f1e40(0x124),'output':_0x3af49e[_0x5f1e40(0x12d)]||'','limit':_0x3af49e[_0x5f1e40(0x154)],'color':_0x3af49e[_0x5f1e40(0x151)],'noColor':_0x3af49e[_0x5f1e40(0x126)]};}function convertSDKResultToQueryResult(_0x7a7b13){const _0x2b30f1=a62_0x4687,_0xc3e630=[];if(_0x7a7b13[_0x2b30f1(0x120)]>0x0){const _0x4e0ace=_0x7a7b13[0x0];for(const [_0xc05396,_0x43c7f3]of Object[_0x2b30f1(0x12a)](_0x4e0ace)){let _0x4de1dc=_0x2b30f1(0x142);if(typeof _0x43c7f3==='number')_0x4de1dc=Number['isInteger'](_0x43c7f3)?'bigint':_0x2b30f1(0x128);else{if(typeof _0x43c7f3===_0x2b30f1(0x138))_0x4de1dc=_0x2b30f1(0x138);else _0x43c7f3===null&&(_0x4de1dc=_0x2b30f1(0x142));}_0xc3e630[_0x2b30f1(0x12b)]({'name':_0xc05396,'type':_0x4de1dc});}}return{'queryId':'sdk-result','columns':_0xc3e630,'data':_0x7a7b13,'stats':{'state':_0x2b30f1(0x14e),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x7a7b13[_0x2b30f1(0x120)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x47195b,_0x2424ac){const _0x4d9a15=convertSDKResultToQueryResult(_0x47195b);return formatQueryOutput(_0x4d9a15,_0x2424ac);}export async function formatQueryOutput(_0x31cee9,_0x352799){const _0x49bd24=a62_0x4687,{format:_0x35228b,limit:_0x4d8bf0,output:_0x19d13d,color:_0x1b825a,noColor:_0x54b37d}=_0x352799,_0x57e66f=Boolean(_0x19d13d)&&!_0x1b825a,_0x3eb275={'color':_0x1b825a,'noColor':_0x54b37d||_0x57e66f};if(_0x35228b===_0x49bd24(0x124)){const _0x10b465=shouldUseLess(_0x35228b,_0x19d13d);return formatAsTable(_0x31cee9,_0x4d8bf0,_0x10b465,_0x3eb275);}else{if(_0x35228b===_0x49bd24(0x125))return formatAsJSON(_0x31cee9,_0x3eb275);else return _0x35228b===_0x49bd24(0x157)?formatAsJSONL(_0x31cee9,_0x3eb275):formatQueryResult(_0x31cee9,_0x35228b);}}function shouldUseLess(_0xab4fa,_0x11d1ca){const _0x4b216a=a62_0x4687;return _0xab4fa===_0x4b216a(0x124)&&process[_0x4b216a(0x123)][_0x4b216a(0x152)]&&!_0x11d1ca;}export function resolveOutputOptions(_0x4208b0){const _0x45b425=a62_0x4687,_0x382bee=resolveOutputFormat(_0x4208b0[_0x45b425(0x141)],_0x4208b0[_0x45b425(0x12d)],_0x45b425(0x124));let _0x3c83be=typeof _0x4208b0[_0x45b425(0x154)]==='number'?_0x4208b0[_0x45b425(0x154)]:parseInt(_0x4208b0[_0x45b425(0x154)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x4e485a=_0x4208b0[_0x45b425(0x12d)]||'';return shouldUseLess(_0x382bee,_0x4e485a)&&(_0x3c83be=Infinity),{'format':_0x382bee,'output':_0x4e485a,'limit':_0x3c83be,'color':_0x4208b0['color'],'noColor':_0x4208b0['noColor']};}function a62_0x3de3(){const _0x58292e=['error','FINISHED','40899720UArCJH','cyan','color','isTTY','end','limit','trim','forEach','jsonl','tsv','inherit','11898450wemxvg','[logs]','72366UBrtKR','log','join','length','pipe','repeat','stdout','table','json','noColor','max','double','query','entries','push','246nKtamQ','output','write','1016YzDvZQ','[query]','783076ippHhY','yellow','object','─┬─','spawn','cmdout','5uMbuXK','boolean','1675100BzIhcj','split','debug','resolve','-FXRSn','stringify','padEnd','bold','format','varchar','─┴─','map','942vylPRl','6393072uqdRmi','close','stderr','[error]','less','stdin','red'];a62_0x3de3=function(){return _0x58292e;};return a62_0x3de3();}export function writeOutput(_0x53f440,_0x40a66c,_0xa3bab2){const _0x50eb10=a62_0x4687;return _0x40a66c?(writeFileSync(_0x40a66c,_0x53f440),console[_0x50eb10(0x14d)]('Results\x20saved\x20to\x20'+_0x40a66c),Promise['resolve']()):shouldUseLess(_0xa3bab2||'','')?new Promise(_0x4d8e38=>{const _0x310dc9=_0x50eb10,_0x93041b=spawn(_0x310dc9(0x14a),[_0x310dc9(0x13d)],{'stdio':[_0x310dc9(0x121),_0x310dc9(0x159),_0x310dc9(0x159)]});let _0x487c5b=![];_0x93041b['on'](_0x310dc9(0x14d),()=>{const _0x24884e=_0x310dc9;!_0x487c5b&&(_0x487c5b=!![],console[_0x24884e(0x11e)](_0x53f440),_0x4d8e38());}),_0x93041b['on'](_0x310dc9(0x147),()=>{!_0x487c5b&&(_0x487c5b=!![],_0x4d8e38());}),_0x93041b['on'](_0x310dc9(0x135),()=>{const _0x3d8c2b=_0x310dc9;!_0x487c5b&&_0x93041b[_0x3d8c2b(0x14b)]&&(_0x93041b[_0x3d8c2b(0x14b)]['on'](_0x3d8c2b(0x14d),()=>{}),_0x93041b['stdin'][_0x3d8c2b(0x12e)](_0x53f440),_0x93041b[_0x3d8c2b(0x14b)][_0x3d8c2b(0x153)]());}),!_0x93041b[_0x310dc9(0x14b)]&&(!_0x487c5b&&(_0x487c5b=!![],console[_0x310dc9(0x11e)](_0x53f440),_0x4d8e38()));}):(console[_0x50eb10(0x11e)](_0x53f440),Promise[_0x50eb10(0x13c)]());}export async function handleSDKOutput(_0x5ac1fc,_0x2c3d78){const _0x2225ca=a62_0x4687,_0x5e1417=resolveOutputOptions(_0x2c3d78),_0x51c558=await formatSDKOutput(_0x5ac1fc,_0x5e1417);await writeOutput(_0x51c558,_0x5e1417[_0x2225ca(0x12d)]||undefined,_0x5e1417[_0x2225ca(0x141)]);}export async function handleQueryOutput(_0x579b7a,_0x1aed31){const _0x206d84=a62_0x4687,_0x36266b=resolveOutputOptions(_0x1aed31),_0x3d8474=await formatQueryOutput(_0x579b7a,_0x36266b);await writeOutput(_0x3d8474,_0x36266b[_0x206d84(0x12d)]||undefined,_0x36266b[_0x206d84(0x141)]);}async function formatSingleObject(_0x26939f,_0x3071a2){const _0x347e48=a62_0x4687,{format:_0xf207d0,color:_0x32f237,noColor:_0x359140}=_0x3071a2,_0x19f38f={'color':_0x32f237,'noColor':_0x359140};if(_0xf207d0===_0x347e48(0x125)){if(shouldUseColor(_0x19f38f))return colorizeJSON(_0x26939f,_0x19f38f);return JSON['stringify'](_0x26939f,null,0x2);}else{if(_0xf207d0===_0x347e48(0x157)){if(shouldUseColor(_0x19f38f))return colorizeJSONCompact(_0x26939f,_0x19f38f);return JSON[_0x347e48(0x13e)](_0x26939f);}else{if(_0xf207d0===_0x347e48(0x158))return Object['entries'](_0x26939f)['map'](([_0x5b862e,_0x29f294])=>_0x5b862e+'\x09'+_0x29f294)[_0x347e48(0x11f)]('\x0a');else{const _0x257fdc=Object[_0x347e48(0x12a)](_0x26939f);if(_0x257fdc[_0x347e48(0x120)]===0x0)return'No\x20data';const _0x4329d8=_0x26939f['debug'],_0x1e36b5=_0x26939f[_0x347e48(0x129)],_0xf241ad=_0x1e36b5?typeof _0x1e36b5==='string'?_0x1e36b5:JSON['stringify'](_0x1e36b5,null,0x2):undefined,_0x333a7d=_0x257fdc['filter'](([_0x1712ec])=>_0x1712ec!==_0x347e48(0x13b)&&_0x1712ec!==_0x347e48(0x129)),_0x43d344=Math[_0x347e48(0x127)](..._0x333a7d[_0x347e48(0x144)](([_0x2f5a30])=>_0x2f5a30[_0x347e48(0x120)])),_0x3a8e9b=Math[_0x347e48(0x127)](..._0x333a7d[_0x347e48(0x144)](([,_0x252f37])=>{const _0x507cae=_0x347e48;try{const _0x2144c0=_0x252f37===null||_0x252f37===undefined?'':typeof _0x252f37===_0x507cae(0x133)?JSON[_0x507cae(0x13e)](_0x252f37):String(_0x252f37),_0x319e45=_0x2144c0[_0x507cae(0x13a)]('\x0a');return Math['max'](..._0x319e45[_0x507cae(0x144)](_0x435a89=>_0x435a89[_0x507cae(0x120)]),0x0);}catch{return 0x0;}}),0x14),_0x3e070a=[];_0x3e070a[_0x347e48(0x12b)](colorBorder('┌─'+'─'[_0x347e48(0x122)](_0x43d344)+_0x347e48(0x134)+'─'['repeat'](_0x3a8e9b)+'─┐',_0x19f38f)),_0x333a7d[_0x347e48(0x156)](([_0x10b739,_0x1ae48b])=>{const _0x29ef3e=_0x347e48;let _0x526dae;try{_0x526dae=_0x1ae48b===null||_0x1ae48b===undefined?'':typeof _0x1ae48b===_0x29ef3e(0x133)?JSON[_0x29ef3e(0x13e)](_0x1ae48b):String(_0x1ae48b);}catch{_0x526dae='[Object]';}const _0x2dcb20=_0x10b739[_0x29ef3e(0x13f)](_0x43d344),_0x5ec1f1=_0x526dae[_0x29ef3e(0x13a)]('\x0a');_0x5ec1f1['forEach']((_0x3bc13d,_0x2426bb)=>{const _0x557b7f=_0x29ef3e,_0x117ec7=colorBorder('│',_0x19f38f);_0x2426bb===0x0?_0x3e070a[_0x557b7f(0x12b)](_0x117ec7+'\x20'+_0x2dcb20+'\x20'+_0x117ec7+'\x20'+_0x3bc13d['padEnd'](_0x3a8e9b)+'\x20'+_0x117ec7):_0x3e070a[_0x557b7f(0x12b)](_0x117ec7+'\x20'+'\x20'['repeat'](_0x43d344)+'\x20'+_0x117ec7+'\x20'+_0x3bc13d[_0x557b7f(0x13f)](_0x3a8e9b)+'\x20'+_0x117ec7);});}),_0x3e070a[_0x347e48(0x12b)](colorBorder('└─'+'─'['repeat'](_0x43d344)+_0x347e48(0x143)+'─'['repeat'](_0x3a8e9b)+'─┘',_0x19f38f));_0xf241ad&&(_0x3e070a[_0x347e48(0x12b)](''),_0x3e070a[_0x347e48(0x12b)](String(a62_0x260ecc[_0x347e48(0x132)][_0x347e48(0x140)](_0x347e48(0x130)))),_0x3e070a[_0x347e48(0x12b)](_0xf241ad));if(_0x4329d8){if(_0x4329d8[_0x347e48(0x148)]){_0x3e070a[_0x347e48(0x12b)](''),_0x3e070a[_0x347e48(0x12b)](String(a62_0x260ecc[_0x347e48(0x14c)][_0x347e48(0x140)](_0x347e48(0x149))));const _0x3a4673=_0x4329d8[_0x347e48(0x148)]['split']('\x0a');_0x3a4673[_0x347e48(0x156)](_0x509341=>{const _0x2135ad=_0x347e48;_0x509341[_0x2135ad(0x155)]()&&_0x3e070a[_0x2135ad(0x12b)](_0x509341);});}if(_0x4329d8['cmdout']){_0x3e070a[_0x347e48(0x12b)](''),_0x3e070a[_0x347e48(0x12b)](String(a62_0x260ecc[_0x347e48(0x150)][_0x347e48(0x140)](_0x347e48(0x15b))));const _0x95207c=_0x4329d8[_0x347e48(0x136)][_0x347e48(0x13a)]('\x0a');_0x95207c['forEach'](_0x4128bb=>{const _0x65b675=_0x347e48;_0x4128bb['trim']()&&_0x3e070a[_0x65b675(0x12b)](_0x4128bb);});}}return _0x3e070a[_0x347e48(0x11f)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x5a6dce,_0x30aa9c){const _0xf6f4b1=a62_0x4687,_0x134985=resolveOutputOptions(_0x30aa9c),_0x1e38e8=await formatSingleObject(_0x5a6dce,_0x134985);await writeOutput(_0x1e38e8,_0x134985[_0xf6f4b1(0x12d)]||undefined,_0x134985[_0xf6f4b1(0x141)]);}
@@ -1 +1 @@
1
- (function(_0xe23661,_0x2e80f2){const _0x2907b6=a63_0x24b2,_0x285ab3=_0xe23661();while(!![]){try{const _0x58f713=parseInt(_0x2907b6(0x144))/0x1+parseInt(_0x2907b6(0x149))/0x2+parseInt(_0x2907b6(0x143))/0x3+parseInt(_0x2907b6(0x145))/0x4+parseInt(_0x2907b6(0x148))/0x5*(parseInt(_0x2907b6(0x147))/0x6)+-parseInt(_0x2907b6(0x14b))/0x7+-parseInt(_0x2907b6(0x14a))/0x8;if(_0x58f713===_0x2e80f2)break;else _0x285ab3['push'](_0x285ab3['shift']());}catch(_0x4df305){_0x285ab3['push'](_0x285ab3['shift']());}}}(a63_0x1ad4,0x42c0b));export const DEFAULT_DISPLAY_LIMIT=0x28;function a63_0x1ad4(){const _0x47f10e=['6axicZg','798630vVKbMR','775442llLiAx','2219224oAObPG','2773575bpHuAP','976668jelLzT','53908EeBmoy','80544YwogvR','number'];a63_0x1ad4=function(){return _0x47f10e;};return a63_0x1ad4();}function a63_0x24b2(_0xb6a97c,_0x5161b9){const _0x1ad446=a63_0x1ad4();return a63_0x24b2=function(_0x24b2ca,_0x40205f){_0x24b2ca=_0x24b2ca-0x143;let _0x6d56ad=_0x1ad446[_0x24b2ca];return _0x6d56ad;},a63_0x24b2(_0xb6a97c,_0x5161b9);}export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x26f42d,_0x23fc59){const _0xff3931=a63_0x24b2;if(_0x26f42d===undefined)return _0x23fc59;if(typeof _0x26f42d===_0xff3931(0x146))return _0x26f42d;return parseInt(_0x26f42d,0xa);}
1
+ function a63_0x1fa4(_0x3db8c2,_0x28cf77){const _0x240963=a63_0x2409();return a63_0x1fa4=function(_0x1fa488,_0x20d0b7){_0x1fa488=_0x1fa488-0x152;let _0x421c99=_0x240963[_0x1fa488];return _0x421c99;},a63_0x1fa4(_0x3db8c2,_0x28cf77);}(function(_0xb260e5,_0x5de7f1){const _0x14b452=a63_0x1fa4,_0x5566f9=_0xb260e5();while(!![]){try{const _0x17c246=-parseInt(_0x14b452(0x15b))/0x1*(-parseInt(_0x14b452(0x159))/0x2)+-parseInt(_0x14b452(0x156))/0x3+-parseInt(_0x14b452(0x15d))/0x4*(parseInt(_0x14b452(0x152))/0x5)+parseInt(_0x14b452(0x158))/0x6+-parseInt(_0x14b452(0x154))/0x7+parseInt(_0x14b452(0x155))/0x8*(parseInt(_0x14b452(0x15c))/0x9)+parseInt(_0x14b452(0x153))/0xa*(parseInt(_0x14b452(0x15a))/0xb);if(_0x17c246===_0x5de7f1)break;else _0x5566f9['push'](_0x5566f9['shift']());}catch(_0x48c1cc){_0x5566f9['push'](_0x5566f9['shift']());}}}(a63_0x2409,0x88f1f));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x321fef,_0x613203){const _0xe0e996=a63_0x1fa4;if(_0x321fef===undefined)return _0x613203;if(typeof _0x321fef===_0xe0e996(0x157))return _0x321fef;return parseInt(_0x321fef,0xa);}function a63_0x2409(){const _0x4bca68=['24MCqsvK','1661415GgoIor','number','6424686RIlRHB','16034eVbyWI','1073149QQvnoX','14eMFQTV','2372373rkTyyO','8pXioCH','2412005LJKMjX','30cgZKOI','1308671xHAgPq'];a63_0x2409=function(){return _0x4bca68;};return a63_0x2409();}
@@ -1 +1 @@
1
- (function(_0x3b2cf0,_0x4b926e){const _0x5a387b=a64_0x5c5a,_0x30df17=_0x3b2cf0();while(!![]){try{const _0x21d623=parseInt(_0x5a387b(0x80))/0x1+parseInt(_0x5a387b(0x75))/0x2*(-parseInt(_0x5a387b(0x78))/0x3)+-parseInt(_0x5a387b(0x81))/0x4*(-parseInt(_0x5a387b(0x6d))/0x5)+parseInt(_0x5a387b(0x6c))/0x6*(parseInt(_0x5a387b(0x72))/0x7)+parseInt(_0x5a387b(0x76))/0x8*(parseInt(_0x5a387b(0x70))/0x9)+parseInt(_0x5a387b(0x6e))/0xa*(-parseInt(_0x5a387b(0x7d))/0xb)+parseInt(_0x5a387b(0x74))/0xc*(parseInt(_0x5a387b(0x7a))/0xd);if(_0x21d623===_0x4b926e)break;else _0x30df17['push'](_0x30df17['shift']());}catch(_0x7b4731){_0x30df17['push'](_0x30df17['shift']());}}}(a64_0x99b9,0x2626a));import*as a64_0x25331b from'node:fs';import*as a64_0x5dd5c5 from'node:path';export function setSecureFilePermissions(_0x1aabe1){const _0x173de1=a64_0x5c5a;try{a64_0x25331b[_0x173de1(0x71)](_0x1aabe1,0x180);}catch{console[_0x173de1(0x7b)](_0x173de1(0x82)+_0x1aabe1);}}export function setSecureDirectoryPermissions(_0x18345f){const _0x1e40e5=a64_0x5c5a;try{a64_0x25331b['chmodSync'](_0x18345f,0x1c0);}catch{console['warn'](_0x1e40e5(0x82)+_0x18345f);}}function a64_0x99b9(){const _0x37dfb8=['Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','Should\x20be\x200600\x20or\x20more\x20restrictive.','mkdirSync','222mtQyyl','19510bLCVHv','80zYRmqw','\x20has\x20insecure\x20permissions\x20(','45vFJuLr','chmodSync','12117qIWSwg','writeFileSync','60xlyVWc','226NCEotS','198352VZeAiA','mode','7629JroCOW','statSync','833027LjUvdp','warn','existsSync','334939VohGyX','Warning:\x20',').\x20','155393BFWLHs','24TQXWma'];a64_0x99b9=function(){return _0x37dfb8;};return a64_0x99b9();}export function createSecureDirectory(_0xfc4b54){const _0x2051c4=a64_0x5c5a;!a64_0x25331b[_0x2051c4(0x7c)](_0xfc4b54)&&(a64_0x25331b[_0x2051c4(0x6b)](_0xfc4b54,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xfc4b54));}function a64_0x5c5a(_0x35681c,_0x30f36a){const _0x99b974=a64_0x99b9();return a64_0x5c5a=function(_0x5c5a10,_0x421c7f){_0x5c5a10=_0x5c5a10-0x6a;let _0x35b00b=_0x99b974[_0x5c5a10];return _0x35b00b;},a64_0x5c5a(_0x35681c,_0x30f36a);}export function validateSecureFilePermissions(_0x367ed7){const _0x5b8192=a64_0x5c5a;try{const _0x3ad0d8=a64_0x25331b[_0x5b8192(0x79)](_0x367ed7),_0x27b57a=_0x3ad0d8[_0x5b8192(0x77)]&0x1ff,_0x24fe47=(_0x27b57a&0x3f)!==0x0;if(_0x24fe47)return console['warn'](_0x5b8192(0x7e)+_0x367ed7+_0x5b8192(0x6f)+_0x27b57a['toString'](0x8)+_0x5b8192(0x7f)+_0x5b8192(0x6a)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x85db60,_0x4c58ef){const _0x52de7c=a64_0x5c5a,_0x3a6450=a64_0x5dd5c5['dirname'](_0x85db60);createSecureDirectory(_0x3a6450),a64_0x25331b[_0x52de7c(0x73)](_0x85db60,_0x4c58ef,{'mode':0x180}),setSecureFilePermissions(_0x85db60);}
1
+ (function(_0x1d9c5d,_0x596c0d){const _0x1eacde=a64_0xcdab,_0x2136ac=_0x1d9c5d();while(!![]){try{const _0x43d8ca=-parseInt(_0x1eacde(0x1bd))/0x1+-parseInt(_0x1eacde(0x1c5))/0x2+parseInt(_0x1eacde(0x1c7))/0x3+parseInt(_0x1eacde(0x1ba))/0x4*(parseInt(_0x1eacde(0x1b8))/0x5)+-parseInt(_0x1eacde(0x1bb))/0x6*(parseInt(_0x1eacde(0x1c2))/0x7)+-parseInt(_0x1eacde(0x1bf))/0x8+parseInt(_0x1eacde(0x1c9))/0x9;if(_0x43d8ca===_0x596c0d)break;else _0x2136ac['push'](_0x2136ac['shift']());}catch(_0xe3ff35){_0x2136ac['push'](_0x2136ac['shift']());}}}(a64_0x3159,0xc5ff6));import*as a64_0x162db4 from'node:fs';import*as a64_0x598f3e from'node:path';export function setSecureFilePermissions(_0x22d0a5){const _0x3bf6fb=a64_0xcdab;try{a64_0x162db4[_0x3bf6fb(0x1c0)](_0x22d0a5,0x180);}catch{console[_0x3bf6fb(0x1c6)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x22d0a5);}}function a64_0xcdab(_0x558d15,_0x4c5fae){const _0x315997=a64_0x3159();return a64_0xcdab=function(_0xcdab5d,_0x223add){_0xcdab5d=_0xcdab5d-0x1b8;let _0x3cb5dd=_0x315997[_0xcdab5d];return _0x3cb5dd;},a64_0xcdab(_0x558d15,_0x4c5fae);}export function setSecureDirectoryPermissions(_0x2a4938){const _0x1b69e6=a64_0xcdab;try{a64_0x162db4[_0x1b69e6(0x1c0)](_0x2a4938,0x1c0);}catch{console[_0x1b69e6(0x1c6)](_0x1b69e6(0x1c1)+_0x2a4938);}}export function createSecureDirectory(_0x13e4b7){const _0x1691e2=a64_0xcdab;!a64_0x162db4[_0x1691e2(0x1c4)](_0x13e4b7)&&(a64_0x162db4['mkdirSync'](_0x13e4b7,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x13e4b7));}export function validateSecureFilePermissions(_0x3da820){const _0x236276=a64_0xcdab;try{const _0x5ee2b6=a64_0x162db4[_0x236276(0x1c3)](_0x3da820),_0x301173=_0x5ee2b6['mode']&0x1ff,_0x3dca97=(_0x301173&0x3f)!==0x0;if(_0x3dca97)return console[_0x236276(0x1c6)]('Warning:\x20'+_0x3da820+'\x20has\x20insecure\x20permissions\x20('+_0x301173[_0x236276(0x1c8)](0x8)+_0x236276(0x1b9)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x334a32,_0x6739b5){const _0x20455a=a64_0xcdab,_0x4d98aa=a64_0x598f3e[_0x20455a(0x1bc)](_0x334a32);createSecureDirectory(_0x4d98aa),a64_0x162db4[_0x20455a(0x1be)](_0x334a32,_0x6739b5,{'mode':0x180}),setSecureFilePermissions(_0x334a32);}function a64_0x3159(){const _0x3254f9=['1479862fsdpEq','warn','4206687jSQcrM','toString','25215255scxUkz','1565YFZaTv',').\x20','2312cYfGzg','91170eAODcg','dirname','1135101ENlJSC','writeFileSync','4473464uTDRyJ','chmodSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','525wCzjbx','statSync','existsSync'];a64_0x3159=function(){return _0x3254f9;};return a64_0x3159();}
@@ -1 +1 @@
1
- function a65_0x87a4(){const _0x13f8ef=['pop','7492059dXtobA','979104BXkQDH','toLowerCase','4248565AgwEFW','json','text','81894RmPrMX','table','txt','26007ZyegWl','10TVWuZQ','jsonl','316jFvUyC','2137182HSQRfg','301sUEGda','tsv','tab','115472fGPfos','split'];a65_0x87a4=function(){return _0x13f8ef;};return a65_0x87a4();}(function(_0x3ff225,_0x84d78e){const _0x125b38=a65_0x6a88,_0xdc8f6d=_0x3ff225();while(!![]){try{const _0x239a46=parseInt(_0x125b38(0x124))/0x1+-parseInt(_0x125b38(0x129))/0x2+parseInt(_0x125b38(0x12c))/0x3*(-parseInt(_0x125b38(0x12f))/0x4)+parseInt(_0x125b38(0x126))/0x5+-parseInt(_0x125b38(0x130))/0x6+-parseInt(_0x125b38(0x131))/0x7*(-parseInt(_0x125b38(0x134))/0x8)+-parseInt(_0x125b38(0x123))/0x9*(parseInt(_0x125b38(0x12d))/0xa);if(_0x239a46===_0x84d78e)break;else _0xdc8f6d['push'](_0xdc8f6d['shift']());}catch(_0xeb73bb){_0xdc8f6d['push'](_0xdc8f6d['shift']());}}}(a65_0x87a4,0x829f9));function a65_0x6a88(_0x12b46b,_0x5496b2){const _0x87a4cf=a65_0x87a4();return a65_0x6a88=function(_0x6a8807,_0x2b8601){_0x6a8807=_0x6a8807-0x123;let _0x501867=_0x87a4cf[_0x6a8807];return _0x501867;},a65_0x6a88(_0x12b46b,_0x5496b2);}export function detectFormatFromExtension(_0x33bf92){const _0x30c256=a65_0x6a88,_0x5712b4=_0x33bf92[_0x30c256(0x125)]()[_0x30c256(0x135)]('.')[_0x30c256(0x136)]();switch(_0x5712b4){case'json':return _0x30c256(0x127);case _0x30c256(0x12e):return _0x30c256(0x12e);case _0x30c256(0x132):case _0x30c256(0x133):return _0x30c256(0x132);case _0x30c256(0x12b):case _0x30c256(0x128):return _0x30c256(0x12a);default:return undefined;}}export function resolveOutputFormat(_0x7d708c,_0x36f7d9,_0x24d658){if(_0x7d708c)return _0x7d708c;if(_0x36f7d9){const _0xbcbc41=detectFormatFromExtension(_0x36f7d9);if(_0xbcbc41)return _0xbcbc41;}return _0x24d658;}
1
+ function a65_0x38e3(){const _0x1f5015=['114812VsGVzz','3765944Bngkal','json','split','table','29490kyESpw','tsv','4081764oeoVNt','8461680sExgcV','9AIHwzY','582vdSzDH','12874giyTQa','pop','jsonl','3407150DagLwn','528jbfOGZ'];a65_0x38e3=function(){return _0x1f5015;};return a65_0x38e3();}(function(_0x3af535,_0x8c5772){const _0x54814c=a65_0x40d1,_0x55dc90=_0x3af535();while(!![]){try{const _0x48e585=parseInt(_0x54814c(0x199))/0x1+parseInt(_0x54814c(0x194))/0x2*(parseInt(_0x54814c(0x198))/0x3)+-parseInt(_0x54814c(0x190))/0x4+parseInt(_0x54814c(0x19e))/0x5*(parseInt(_0x54814c(0x193))/0x6)+parseInt(_0x54814c(0x19a))/0x7+-parseInt(_0x54814c(0x191))/0x8+-parseInt(_0x54814c(0x192))/0x9*(-parseInt(_0x54814c(0x197))/0xa);if(_0x48e585===_0x8c5772)break;else _0x55dc90['push'](_0x55dc90['shift']());}catch(_0x35f8ab){_0x55dc90['push'](_0x55dc90['shift']());}}}(a65_0x38e3,0x97762));function a65_0x40d1(_0x338699,_0x507bd2){const _0x38e3d1=a65_0x38e3();return a65_0x40d1=function(_0x40d132,_0x2d281d){_0x40d132=_0x40d132-0x18f;let _0x15f480=_0x38e3d1[_0x40d132];return _0x15f480;},a65_0x40d1(_0x338699,_0x507bd2);}export function detectFormatFromExtension(_0xc5432b){const _0x3d0750=a65_0x40d1,_0x428946=_0xc5432b['toLowerCase']()[_0x3d0750(0x19c)]('.')[_0x3d0750(0x195)]();switch(_0x428946){case _0x3d0750(0x19b):return'json';case _0x3d0750(0x196):return _0x3d0750(0x196);case _0x3d0750(0x18f):case'tab':return _0x3d0750(0x18f);case'txt':case'text':return _0x3d0750(0x19d);default:return undefined;}}export function resolveOutputFormat(_0x2e9f78,_0x42061a,_0x419a49){if(_0x2e9f78)return _0x2e9f78;if(_0x42061a){const _0x4d1af0=detectFormatFromExtension(_0x42061a);if(_0x4d1af0)return _0x4d1af0;}return _0x419a49;}
@@ -1 +1 @@
1
- function a66_0x33f5(_0x51d8f4,_0x14d9a4){const _0x11dc0f=a66_0x11dc();return a66_0x33f5=function(_0x33f54f,_0x5edbb7){_0x33f54f=_0x33f54f-0xbb;let _0x523fb8=_0x11dc0f[_0x33f54f];return _0x523fb8;},a66_0x33f5(_0x51d8f4,_0x14d9a4);}(function(_0x1ff77a,_0x2a601c){const _0x35dd6a=a66_0x33f5,_0x4fe06a=_0x1ff77a();while(!![]){try{const _0x37bbc7=-parseInt(_0x35dd6a(0xce))/0x1+parseInt(_0x35dd6a(0xe3))/0x2+-parseInt(_0x35dd6a(0xc1))/0x3+parseInt(_0x35dd6a(0xd7))/0x4+-parseInt(_0x35dd6a(0xd6))/0x5*(-parseInt(_0x35dd6a(0xc4))/0x6)+parseInt(_0x35dd6a(0xdb))/0x7*(parseInt(_0x35dd6a(0xcb))/0x8)+parseInt(_0x35dd6a(0xe7))/0x9;if(_0x37bbc7===_0x2a601c)break;else _0x4fe06a['push'](_0x4fe06a['shift']());}catch(_0x26c3d4){_0x4fe06a['push'](_0x4fe06a['shift']());}}}(a66_0x11dc,0xa331a));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a66_0x11dc(){const _0x1685e0=['12lkVyQS','name','reduce','columns','table','data','test','1230824NqVwpj','slice','false','1299337FNVZCt','array','true','string','\x20rows\x20(','0\x20B','boolean','map','573565qcsBEC','1791728XIMkro','pow','stringify','bool','7SNWgKu','join','replace','log','No\x20rows\x20returned','length','toLowerCase','forEach','1625426GjIHpF','json','min','push','10910898EzmJjv','object','max','row','repeat','long','entries','timestamp','int','tsv','date','stdout','toFixed','floor','\x20shown)','jsonl','padEnd','toISOString','double','2665401WUWOeU','substring','number'];a66_0x11dc=function(){return _0x1685e0;};return a66_0x11dc();}const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x23ec11=a66_0x33f5;return process[_0x23ec11(0xf2)][_0x23ec11(0xc7)]||Infinity;}export function formatAsTable(_0x406d45,_0x3b580f=DEFAULT_MAX_DISPLAY_ROWS,_0x26bde7=![],_0x492ecf={}){const _0x22ab90=a66_0x33f5;if(_0x406d45[_0x22ab90(0xc9)][_0x22ab90(0xe0)]===0x0)return _0x22ab90(0xdf);const _0x1182b1=_0x406d45[_0x22ab90(0xc7)][_0x22ab90(0xd5)](_0x81fd2a=>_0x81fd2a['name']),_0x5049ff=_0x406d45['columns'][_0x22ab90(0xd5)](_0x23d410=>simplifyType(_0x23d410['type'])),_0x42e19b=_0x406d45[_0x22ab90(0xc9)][_0x22ab90(0xcc)](0x0,_0x3b580f),_0xb6ea6f=_0x406d45[_0x22ab90(0xc9)][_0x22ab90(0xe0)],_0x5ae3be=_0xb6ea6f>_0x3b580f,_0x13547e=[],_0x3f35fc=getTerminalWidth(),_0x2b94c4=_0x3f35fc!==Infinity,_0x1667f7=0x32;let _0x4d03da=_0x1182b1[_0x22ab90(0xd5)]((_0x4ed51c,_0x51b161)=>{const _0x5df76c=_0x22ab90,_0x3867cb=stringWidth(_0x5049ff[_0x51b161]),_0x342595=Math['max'](..._0x42e19b[_0x5df76c(0xd5)](_0x144ebd=>{const _0x282e37=_0x144ebd[_0x4ed51c];return stringWidth(formatValue(_0x282e37));})),_0xcc1f5f=Math[_0x5df76c(0xe9)](stringWidth(_0x4ed51c),_0x3867cb,_0x342595);return _0x26bde7?_0xcc1f5f:Math[_0x5df76c(0xe5)](_0xcc1f5f,_0x1667f7);});if(_0x2b94c4&&!_0x26bde7&&_0x1182b1['length']>0x0){const _0x312276=_0xd8b441=>{let _0x404b3c=0x1;for(const _0x42361a of _0xd8b441){_0x404b3c+=_0x42361a+0x3;}return _0x404b3c+0x1;};let _0x573bd7=_0x312276(_0x4d03da);if(_0x573bd7>_0x3f35fc){const _0x13d842=0x3;for(let _0x27e324=_0x4d03da[_0x22ab90(0xe0)]-0x1;_0x27e324>=0x0;_0x27e324--){_0x573bd7=_0x312276(_0x4d03da);if(_0x573bd7<=_0x3f35fc)break;const _0x5cde2d=_0x4d03da[_0x27e324],_0x3ba57f=_0x573bd7-_0x3f35fc,_0x1c8b56=_0x5cde2d-_0x13d842,_0x539c88=Math[_0x22ab90(0xe5)](_0x3ba57f,_0x1c8b56);_0x539c88>0x0&&(_0x4d03da[_0x27e324]=_0x5cde2d-_0x539c88);}}}const _0x853b5b=_0x1182b1,_0x173343=_0x5049ff,_0x2decb8=_0x4d03da,_0xc5bc9f=_0x4d03da;_0x13547e[_0x22ab90(0xe6)](colorBorder('┌'+_0xc5bc9f[_0x22ab90(0xd5)](_0x2b1824=>'─'[_0x22ab90(0xeb)](_0x2b1824+0x2))['join']('┬')+'┐',_0x492ecf));const _0x28bc9a=_0x853b5b['map']((_0x5c636f,_0x3d9250)=>centerAlign(_0x5c636f,_0x2decb8[_0x3d9250]));_0x13547e['push'](colorBorder('│',_0x492ecf)+'\x20'+_0x28bc9a[_0x22ab90(0xdc)]('\x20'+colorBorder('│',_0x492ecf)+'\x20')+'\x20'+colorBorder('│',_0x492ecf));const _0x57e9bd=_0x173343[_0x22ab90(0xd5)]((_0x36c4f3,_0x4335ba)=>colorType(centerAlign(_0x36c4f3,_0x2decb8[_0x4335ba]),_0x492ecf));_0x13547e[_0x22ab90(0xe6)](colorBorder('│',_0x492ecf)+'\x20'+_0x57e9bd[_0x22ab90(0xdc)]('\x20'+colorBorder('│',_0x492ecf)+'\x20')+'\x20'+colorBorder('│',_0x492ecf)),_0x13547e[_0x22ab90(0xe6)](colorBorder('├'+_0xc5bc9f[_0x22ab90(0xd5)](_0x4a6350=>'─'[_0x22ab90(0xeb)](_0x4a6350+0x2))[_0x22ab90(0xdc)]('┼')+'┤',_0x492ecf));const _0x4ae9fd=(_0x4f3df2,_0x1ce79f)=>{const _0x3256dd=_0x22ab90,_0x1556f2=stringWidth(_0x4f3df2);if(_0x1556f2<=_0x1ce79f)return _0x4f3df2;let _0x187968=_0x4f3df2;while(stringWidth(_0x187968+'…')>_0x1ce79f&&_0x187968[_0x3256dd(0xe0)]>0x0){_0x187968=_0x187968['slice'](0x0,-0x1);}return _0x187968+'…';};_0x42e19b['forEach'](_0x55f9d9=>{const _0x22ba42=_0x22ab90,_0x1c4113=_0x1182b1['map']((_0x586253,_0x5b0b91)=>{const _0x3b501f=a66_0x33f5,_0x204755=_0x55f9d9[_0x586253],_0x5f1bd4=formatValue(_0x204755),_0x4237e5=_0x2decb8[_0x5b0b91],_0x54cdc3=_0x4ae9fd(_0x5f1bd4,_0x4237e5),_0x3b305b=typeof _0x204755===_0x3b501f(0xc3)||typeof _0x204755==='string'&&/^-?\d+$/[_0x3b501f(0xca)](_0x204755);return _0x3b305b?padStart(_0x54cdc3,_0x4237e5):padEnd(_0x54cdc3,_0x4237e5);});_0x13547e[_0x22ba42(0xe6)](colorBorder('│',_0x492ecf)+'\x20'+_0x1c4113['join']('\x20'+colorBorder('│',_0x492ecf)+'\x20')+'\x20'+colorBorder('│',_0x492ecf));});const _0x366d01=_0xc5bc9f[_0x22ab90(0xc6)]((_0x3e37c1,_0x41616a)=>_0x3e37c1+_0x41616a+0x3,-0x1);_0x13547e[_0x22ab90(0xe6)](colorBorder('├'+_0xc5bc9f['map'](_0x3988eb=>'─'[_0x22ab90(0xeb)](_0x3988eb+0x2))[_0x22ab90(0xdc)]('┴')+'┤',_0x492ecf));let _0x789b88;_0x5ae3be?_0x789b88=_0xb6ea6f+_0x22ab90(0xd2)+_0x3b580f+_0x22ab90(0xbc):_0x789b88=_0xb6ea6f+'\x20row'+(_0xb6ea6f===0x1?'':'s');const _0x4878fb=_0x789b88[_0x22ab90(0xbe)](_0x366d01-0x2);return _0x13547e[_0x22ab90(0xe6)](colorBorder('│',_0x492ecf)+'\x20'+_0x4878fb+'\x20'+colorBorder('│',_0x492ecf)),_0x13547e['push'](colorBorder('└'+'─'[_0x22ab90(0xeb)](_0x366d01)+'┘',_0x492ecf)),_0x13547e[_0x22ab90(0xdc)]('\x0a');}function simplifyType(_0x3f5ca0){const _0x2f666d=a66_0x33f5,_0x33b455={'varchar':_0x2f666d(0xd1),'bigint':_0x2f666d(0xec),'integer':_0x2f666d(0xef),'double':_0x2f666d(0xc0),'boolean':_0x2f666d(0xda),'date':_0x2f666d(0xf1),'timestamp':_0x2f666d(0xee),'array':_0x2f666d(0xcf),'map':_0x2f666d(0xd5),'row':_0x2f666d(0xea)},_0x232b88=_0x3f5ca0[_0x2f666d(0xe1)]();for(const [_0x58a664,_0x5e990d]of Object[_0x2f666d(0xed)](_0x33b455)){if(_0x232b88['startsWith'](_0x58a664))return _0x5e990d;}return _0x3f5ca0[_0x2f666d(0xe0)]>0xa?_0x3f5ca0[_0x2f666d(0xc2)](0x0,0xa):_0x3f5ca0;}export function formatAsJSON(_0x29065b,_0x1e4b04={}){const _0x671fe3=a66_0x33f5;if(_0x29065b[_0x671fe3(0xc9)][_0x671fe3(0xe0)]===0x0)return'[]';if(shouldUseColor(_0x1e4b04))return colorizeJSON(_0x29065b[_0x671fe3(0xc9)],_0x1e4b04);const _0x17ec25=_0x29065b[_0x671fe3(0xc9)][_0x671fe3(0xd5)](_0x1bca5e=>'\x20\x20'+JSON['stringify'](_0x1bca5e));return'[\x0a'+_0x17ec25['join'](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x57f633,_0x44aedd={}){const _0x4bb032=a66_0x33f5;if(_0x57f633[_0x4bb032(0xc9)][_0x4bb032(0xe0)]===0x0)return'';if(shouldUseColor(_0x44aedd))return _0x57f633[_0x4bb032(0xc9)][_0x4bb032(0xd5)](_0x1cdf48=>colorizeJSONCompact(_0x1cdf48,_0x44aedd))['join']('\x0a');return _0x57f633[_0x4bb032(0xc9)][_0x4bb032(0xd5)](_0xb58e54=>JSON['stringify'](_0xb58e54))[_0x4bb032(0xdc)]('\x0a');}export function formatAsTSV(_0x14de10){const _0x51bb6c=a66_0x33f5;if(_0x14de10[_0x51bb6c(0xc9)][_0x51bb6c(0xe0)]===0x0)return'';const _0x2e52a1=[],_0x4eaa22=_0x14de10['columns'][_0x51bb6c(0xd5)](_0x2da10e=>_0x2da10e[_0x51bb6c(0xc5)]);return _0x2e52a1['push'](_0x4eaa22[_0x51bb6c(0xdc)]('\x09')),_0x14de10[_0x51bb6c(0xc9)][_0x51bb6c(0xe2)](_0x5d0fe7=>{const _0x23cc9c=_0x51bb6c,_0x1230fd=_0x4eaa22['map'](_0x2afcd3=>{const _0x1ac93a=_0x5d0fe7[_0x2afcd3];return formatValueForTSV(_0x1ac93a);});_0x2e52a1[_0x23cc9c(0xe6)](_0x1230fd[_0x23cc9c(0xdc)]('\x09'));}),_0x2e52a1[_0x51bb6c(0xdc)]('\x0a');}function formatValue(_0x5d2034){const _0x170c1a=a66_0x33f5;if(_0x5d2034===null||_0x5d2034===undefined)return'';if(typeof _0x5d2034===_0x170c1a(0xd1)){const _0x106163=_0x5d2034[_0x170c1a(0xdd)](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x170c1a(0xdd)](/\t/g,'\x5ct');return _0x106163;}if(typeof _0x5d2034==='number')return String(_0x5d2034);if(typeof _0x5d2034===_0x170c1a(0xd4))return _0x5d2034?_0x170c1a(0xd0):_0x170c1a(0xcd);if(_0x5d2034 instanceof Date)return _0x5d2034[_0x170c1a(0xbf)]();if(typeof _0x5d2034===_0x170c1a(0xe8))return JSON[_0x170c1a(0xd9)](_0x5d2034);return String(_0x5d2034);}function formatValueForTSV(_0x4e4a40){const _0x1e0945=a66_0x33f5;if(_0x4e4a40===null||_0x4e4a40===undefined)return'';if(typeof _0x4e4a40===_0x1e0945(0xd1))return _0x4e4a40['replace'](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x4e4a40===_0x1e0945(0xc3)||typeof _0x4e4a40===_0x1e0945(0xd4))return String(_0x4e4a40);if(_0x4e4a40 instanceof Date)return _0x4e4a40[_0x1e0945(0xbf)]();if(typeof _0x4e4a40==='object')return JSON['stringify'](_0x4e4a40);return String(_0x4e4a40);}export function formatQueryResult(_0x4a3d8c,_0x39d1a6){const _0x3f84d9=a66_0x33f5;switch(_0x39d1a6){case _0x3f84d9(0xc8):return formatAsTable(_0x4a3d8c);case _0x3f84d9(0xe4):return formatAsJSON(_0x4a3d8c);case _0x3f84d9(0xbd):return formatAsJSONL(_0x4a3d8c);case _0x3f84d9(0xf0):return formatAsTSV(_0x4a3d8c);default:return formatAsJSON(_0x4a3d8c);}}export function formatBytes(_0x15d163){const _0x2d3d3c=a66_0x33f5;if(_0x15d163===0x0)return _0x2d3d3c(0xd3);const _0x1e1322=['B','KB','MB','GB','TB'],_0x2bacac=0x400,_0x2c6ba3=Math[_0x2d3d3c(0xbb)](Math[_0x2d3d3c(0xde)](_0x15d163)/Math[_0x2d3d3c(0xde)](_0x2bacac)),_0x51a045=_0x15d163/Math[_0x2d3d3c(0xd8)](_0x2bacac,_0x2c6ba3),_0x2e71be=_0x51a045>=0xa?0x1:0x2;return _0x51a045['toFixed'](_0x2e71be)+'\x20'+_0x1e1322[_0x2c6ba3];}export function formatRows(_0x45ca5b){const _0x74c2d6=a66_0x33f5;if(_0x45ca5b==null)return'-';if(_0x45ca5b===0x0)return'0';if(_0x45ca5b<0x3e8)return _0x45ca5b['toString']();const _0x5a1c78=['','K','M','B','T'],_0x54d9b5=0x3e8,_0x5ab1f2=Math[_0x74c2d6(0xbb)](Math[_0x74c2d6(0xde)](_0x45ca5b)/Math[_0x74c2d6(0xde)](_0x54d9b5)),_0x475c2a=_0x45ca5b/Math[_0x74c2d6(0xd8)](_0x54d9b5,_0x5ab1f2),_0x1eea5a=_0x475c2a>=0xa?0x1:0x2;return''+_0x475c2a[_0x74c2d6(0xf3)](_0x1eea5a)+_0x5a1c78[_0x5ab1f2];}
1
+ (function(_0x2b8124,_0x29dd26){const _0x3230bd=a66_0x4b5c,_0x9b45db=_0x2b8124();while(!![]){try{const _0x560a2a=-parseInt(_0x3230bd(0xca))/0x1+parseInt(_0x3230bd(0xea))/0x2+parseInt(_0x3230bd(0xe8))/0x3+parseInt(_0x3230bd(0xcb))/0x4+-parseInt(_0x3230bd(0xc6))/0x5+-parseInt(_0x3230bd(0xd9))/0x6*(-parseInt(_0x3230bd(0xd1))/0x7)+-parseInt(_0x3230bd(0xf1))/0x8*(parseInt(_0x3230bd(0xed))/0x9);if(_0x560a2a===_0x29dd26)break;else _0x9b45db['push'](_0x9b45db['shift']());}catch(_0xe39fe8){_0x9b45db['push'](_0x9b45db['shift']());}}}(a66_0x402b,0x2cf87));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(){return process['stdout']['columns']||Infinity;}function a66_0x4b5c(_0x5d5734,_0x61a34){const _0x402bf2=a66_0x402b();return a66_0x4b5c=function(_0x4b5c3e,_0x372700){_0x4b5c3e=_0x4b5c3e-0xbf;let _0x1b9ddc=_0x402bf2[_0x4b5c3e];return _0x1b9ddc;},a66_0x4b5c(_0x5d5734,_0x61a34);}function a66_0x402b(){const _0x59a804=['\x20row','605280NhZOtW','type','replace','join','174868oYdytV','1447404KgAPXE','map','date','table','entries','json','84259tzyvwf','jsonl','true','floor','\x20shown)','toISOString','padEnd','long','30LUQAyH','int','bool','No\x20rows\x20returned','tsv','test','log','boolean','row','min','timestamp','\x20rows\x20(','length','0\x20B','max','142008dtYSYW','repeat','418916TzYfaY','toFixed','pow','9wQErgJ','substring','reduce','data','1589656oKKNgm','string','stringify','forEach','push','array','columns','toString','double','false'];a66_0x402b=function(){return _0x59a804;};return a66_0x402b();}export function formatAsTable(_0x27ca73,_0x150483=DEFAULT_MAX_DISPLAY_ROWS,_0x23d152=![],_0x39e0f0={}){const _0x341e4b=a66_0x4b5c;if(_0x27ca73[_0x341e4b(0xf0)]['length']===0x0)return _0x341e4b(0xdc);const _0x42c948=_0x27ca73[_0x341e4b(0xc1)][_0x341e4b(0xcc)](_0xa9d6ac=>_0xa9d6ac['name']),_0x45654a=_0x27ca73[_0x341e4b(0xc1)][_0x341e4b(0xcc)](_0x2fe0bc=>simplifyType(_0x2fe0bc[_0x341e4b(0xc7)])),_0x5677d3=_0x27ca73[_0x341e4b(0xf0)]['slice'](0x0,_0x150483),_0x30765b=_0x27ca73[_0x341e4b(0xf0)][_0x341e4b(0xe5)],_0xe967bb=_0x30765b>_0x150483,_0x14145d=[],_0x11e32e=getTerminalWidth(),_0x3ea038=_0x11e32e!==Infinity,_0x3e7995=0x32;let _0x4b025c=_0x42c948[_0x341e4b(0xcc)]((_0x1774db,_0x5199f3)=>{const _0x474069=_0x341e4b,_0x31e9b3=stringWidth(_0x45654a[_0x5199f3]),_0x502fba=Math[_0x474069(0xe7)](..._0x5677d3[_0x474069(0xcc)](_0x1b4e0d=>{const _0x4b52cb=_0x1b4e0d[_0x1774db];return stringWidth(formatValue(_0x4b52cb));})),_0x42d68d=Math[_0x474069(0xe7)](stringWidth(_0x1774db),_0x31e9b3,_0x502fba);return _0x23d152?_0x42d68d:Math[_0x474069(0xe2)](_0x42d68d,_0x3e7995);});if(_0x3ea038&&!_0x23d152&&_0x42c948[_0x341e4b(0xe5)]>0x0){const _0x52546b=_0x22dcec=>{let _0x386ab4=0x1;for(const _0xddc0a6 of _0x22dcec){_0x386ab4+=_0xddc0a6+0x3;}return _0x386ab4+0x1;};let _0x1d5650=_0x52546b(_0x4b025c);if(_0x1d5650>_0x11e32e){const _0x52a7a2=0x3;for(let _0x584168=_0x4b025c[_0x341e4b(0xe5)]-0x1;_0x584168>=0x0;_0x584168--){_0x1d5650=_0x52546b(_0x4b025c);if(_0x1d5650<=_0x11e32e)break;const _0x4c89f9=_0x4b025c[_0x584168],_0x41f2be=_0x1d5650-_0x11e32e,_0x117dab=_0x4c89f9-_0x52a7a2,_0x30d631=Math[_0x341e4b(0xe2)](_0x41f2be,_0x117dab);_0x30d631>0x0&&(_0x4b025c[_0x584168]=_0x4c89f9-_0x30d631);}}}const _0xa2ad4e=_0x42c948,_0xcb8095=_0x45654a,_0x4313aa=_0x4b025c,_0xd4c888=_0x4b025c;_0x14145d[_0x341e4b(0xbf)](colorBorder('┌'+_0xd4c888[_0x341e4b(0xcc)](_0x5c8e01=>'─'[_0x341e4b(0xe9)](_0x5c8e01+0x2))['join']('┬')+'┐',_0x39e0f0));const _0x10c390=_0xa2ad4e[_0x341e4b(0xcc)]((_0x169913,_0x30d27e)=>centerAlign(_0x169913,_0x4313aa[_0x30d27e]));_0x14145d[_0x341e4b(0xbf)](colorBorder('│',_0x39e0f0)+'\x20'+_0x10c390['join']('\x20'+colorBorder('│',_0x39e0f0)+'\x20')+'\x20'+colorBorder('│',_0x39e0f0));const _0x22d8f9=_0xcb8095[_0x341e4b(0xcc)]((_0x37f581,_0x3a0129)=>colorType(centerAlign(_0x37f581,_0x4313aa[_0x3a0129]),_0x39e0f0));_0x14145d[_0x341e4b(0xbf)](colorBorder('│',_0x39e0f0)+'\x20'+_0x22d8f9[_0x341e4b(0xc9)]('\x20'+colorBorder('│',_0x39e0f0)+'\x20')+'\x20'+colorBorder('│',_0x39e0f0)),_0x14145d['push'](colorBorder('├'+_0xd4c888['map'](_0x42b07e=>'─'[_0x341e4b(0xe9)](_0x42b07e+0x2))[_0x341e4b(0xc9)]('┼')+'┤',_0x39e0f0));const _0x1954bc=(_0x304b56,_0xc590cf)=>{const _0x47ea56=_0x341e4b,_0x31b51a=stringWidth(_0x304b56);if(_0x31b51a<=_0xc590cf)return _0x304b56;let _0x329e3a=_0x304b56;while(stringWidth(_0x329e3a+'…')>_0xc590cf&&_0x329e3a[_0x47ea56(0xe5)]>0x0){_0x329e3a=_0x329e3a['slice'](0x0,-0x1);}return _0x329e3a+'…';};_0x5677d3[_0x341e4b(0xf4)](_0x50e462=>{const _0x5c35e7=_0x341e4b,_0x16a395=_0x42c948[_0x5c35e7(0xcc)]((_0x27f800,_0x269f1b)=>{const _0x4bf6c9=_0x5c35e7,_0x44c9fd=_0x50e462[_0x27f800],_0x55c406=formatValue(_0x44c9fd),_0x56b804=_0x4313aa[_0x269f1b],_0x326a3f=_0x1954bc(_0x55c406,_0x56b804),_0x1892e5=typeof _0x44c9fd==='number'||typeof _0x44c9fd===_0x4bf6c9(0xf2)&&/^-?\d+$/[_0x4bf6c9(0xde)](_0x44c9fd);return _0x1892e5?padStart(_0x326a3f,_0x56b804):padEnd(_0x326a3f,_0x56b804);});_0x14145d[_0x5c35e7(0xbf)](colorBorder('│',_0x39e0f0)+'\x20'+_0x16a395[_0x5c35e7(0xc9)]('\x20'+colorBorder('│',_0x39e0f0)+'\x20')+'\x20'+colorBorder('│',_0x39e0f0));});const _0x541d4e=_0xd4c888[_0x341e4b(0xef)]((_0x573812,_0xf866f3)=>_0x573812+_0xf866f3+0x3,-0x1);_0x14145d[_0x341e4b(0xbf)](colorBorder('├'+_0xd4c888['map'](_0x4d1c1b=>'─'['repeat'](_0x4d1c1b+0x2))[_0x341e4b(0xc9)]('┴')+'┤',_0x39e0f0));let _0x3007b6;_0xe967bb?_0x3007b6=_0x30765b+_0x341e4b(0xe4)+_0x150483+_0x341e4b(0xd5):_0x3007b6=_0x30765b+_0x341e4b(0xc5)+(_0x30765b===0x1?'':'s');const _0x43e867=_0x3007b6[_0x341e4b(0xd7)](_0x541d4e-0x2);return _0x14145d['push'](colorBorder('│',_0x39e0f0)+'\x20'+_0x43e867+'\x20'+colorBorder('│',_0x39e0f0)),_0x14145d[_0x341e4b(0xbf)](colorBorder('└'+'─'[_0x341e4b(0xe9)](_0x541d4e)+'┘',_0x39e0f0)),_0x14145d[_0x341e4b(0xc9)]('\x0a');}function simplifyType(_0xe922bd){const _0xe8f755=a66_0x4b5c,_0x584a68={'varchar':_0xe8f755(0xf2),'bigint':_0xe8f755(0xd8),'integer':_0xe8f755(0xda),'double':_0xe8f755(0xc3),'boolean':_0xe8f755(0xdb),'date':_0xe8f755(0xcd),'timestamp':_0xe8f755(0xe3),'array':_0xe8f755(0xc0),'map':_0xe8f755(0xcc),'row':_0xe8f755(0xe1)},_0x427cf1=_0xe922bd['toLowerCase']();for(const [_0x5664b4,_0x2eb36e]of Object[_0xe8f755(0xcf)](_0x584a68)){if(_0x427cf1['startsWith'](_0x5664b4))return _0x2eb36e;}return _0xe922bd['length']>0xa?_0xe922bd[_0xe8f755(0xee)](0x0,0xa):_0xe922bd;}export function formatAsJSON(_0x2b597f,_0x45e588={}){const _0xa89566=a66_0x4b5c;if(_0x2b597f[_0xa89566(0xf0)]['length']===0x0)return'[]';if(shouldUseColor(_0x45e588))return colorizeJSON(_0x2b597f[_0xa89566(0xf0)],_0x45e588);const _0x4bf933=_0x2b597f[_0xa89566(0xf0)]['map'](_0x15f55e=>'\x20\x20'+JSON['stringify'](_0x15f55e));return'[\x0a'+_0x4bf933['join'](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x397ac7,_0x2d5ed8={}){const _0x1c683d=a66_0x4b5c;if(_0x397ac7[_0x1c683d(0xf0)][_0x1c683d(0xe5)]===0x0)return'';if(shouldUseColor(_0x2d5ed8))return _0x397ac7[_0x1c683d(0xf0)][_0x1c683d(0xcc)](_0x1f2805=>colorizeJSONCompact(_0x1f2805,_0x2d5ed8))[_0x1c683d(0xc9)]('\x0a');return _0x397ac7[_0x1c683d(0xf0)][_0x1c683d(0xcc)](_0xc80125=>JSON[_0x1c683d(0xf3)](_0xc80125))['join']('\x0a');}export function formatAsTSV(_0x46f65d){const _0x5e0149=a66_0x4b5c;if(_0x46f65d[_0x5e0149(0xf0)][_0x5e0149(0xe5)]===0x0)return'';const _0x54adda=[],_0x324dc6=_0x46f65d[_0x5e0149(0xc1)]['map'](_0x5812d3=>_0x5812d3['name']);return _0x54adda[_0x5e0149(0xbf)](_0x324dc6[_0x5e0149(0xc9)]('\x09')),_0x46f65d[_0x5e0149(0xf0)][_0x5e0149(0xf4)](_0x46a7f1=>{const _0x326de9=_0x5e0149,_0xf3a9b4=_0x324dc6[_0x326de9(0xcc)](_0x3cba24=>{const _0x1ed6d7=_0x46a7f1[_0x3cba24];return formatValueForTSV(_0x1ed6d7);});_0x54adda[_0x326de9(0xbf)](_0xf3a9b4[_0x326de9(0xc9)]('\x09'));}),_0x54adda['join']('\x0a');}function formatValue(_0xe4032e){const _0x25d061=a66_0x4b5c;if(_0xe4032e===null||_0xe4032e===undefined)return'';if(typeof _0xe4032e===_0x25d061(0xf2)){const _0x28385d=_0xe4032e['replace'](/\n/g,'\x5cn')[_0x25d061(0xc8)](/\r/g,'\x5cr')[_0x25d061(0xc8)](/\t/g,'\x5ct');return _0x28385d;}if(typeof _0xe4032e==='number')return String(_0xe4032e);if(typeof _0xe4032e===_0x25d061(0xe0))return _0xe4032e?_0x25d061(0xd3):_0x25d061(0xc4);if(_0xe4032e instanceof Date)return _0xe4032e[_0x25d061(0xd6)]();if(typeof _0xe4032e==='object')return JSON[_0x25d061(0xf3)](_0xe4032e);return String(_0xe4032e);}function formatValueForTSV(_0x37627c){const _0x570ce0=a66_0x4b5c;if(_0x37627c===null||_0x37627c===undefined)return'';if(typeof _0x37627c==='string')return _0x37627c[_0x570ce0(0xc8)](/\t/g,'\x5ct')[_0x570ce0(0xc8)](/\n/g,'\x5cn');if(typeof _0x37627c==='number'||typeof _0x37627c===_0x570ce0(0xe0))return String(_0x37627c);if(_0x37627c instanceof Date)return _0x37627c[_0x570ce0(0xd6)]();if(typeof _0x37627c==='object')return JSON['stringify'](_0x37627c);return String(_0x37627c);}export function formatQueryResult(_0x5d2176,_0x45dae9){const _0x488741=a66_0x4b5c;switch(_0x45dae9){case _0x488741(0xce):return formatAsTable(_0x5d2176);case _0x488741(0xd0):return formatAsJSON(_0x5d2176);case _0x488741(0xd2):return formatAsJSONL(_0x5d2176);case _0x488741(0xdd):return formatAsTSV(_0x5d2176);default:return formatAsJSON(_0x5d2176);}}export function formatBytes(_0x40715e){const _0x627ec=a66_0x4b5c;if(_0x40715e===0x0)return _0x627ec(0xe6);const _0x3ca535=['B','KB','MB','GB','TB'],_0x13e356=0x400,_0x3989c9=Math[_0x627ec(0xd4)](Math[_0x627ec(0xdf)](_0x40715e)/Math[_0x627ec(0xdf)](_0x13e356)),_0x3ba73e=_0x40715e/Math[_0x627ec(0xec)](_0x13e356,_0x3989c9),_0x5406d0=_0x3ba73e>=0xa?0x1:0x2;return _0x3ba73e[_0x627ec(0xeb)](_0x5406d0)+'\x20'+_0x3ca535[_0x3989c9];}export function formatRows(_0x25d8cc){const _0x14610d=a66_0x4b5c;if(_0x25d8cc==null)return'-';if(_0x25d8cc===0x0)return'0';if(_0x25d8cc<0x3e8)return _0x25d8cc[_0x14610d(0xc2)]();const _0x186b32=['','K','M','B','T'],_0x337787=0x3e8,_0x254f4e=Math[_0x14610d(0xd4)](Math[_0x14610d(0xdf)](_0x25d8cc)/Math[_0x14610d(0xdf)](_0x337787)),_0x1d4ce9=_0x25d8cc/Math[_0x14610d(0xec)](_0x337787,_0x254f4e),_0x27713c=_0x1d4ce9>=0xa?0x1:0x2;return''+_0x1d4ce9[_0x14610d(0xeb)](_0x27713c)+_0x186b32[_0x254f4e];}
@@ -1 +1 @@
1
- (function(_0x1a952e,_0x3b1881){const _0x459369=a67_0x55e4,_0x477a55=_0x1a952e();while(!![]){try{const _0xaaedbc=parseInt(_0x459369(0x7b))/0x1*(-parseInt(_0x459369(0x7f))/0x2)+-parseInt(_0x459369(0x74))/0x3+-parseInt(_0x459369(0x71))/0x4+parseInt(_0x459369(0x6d))/0x5*(parseInt(_0x459369(0x81))/0x6)+parseInt(_0x459369(0x80))/0x7+-parseInt(_0x459369(0x7a))/0x8+parseInt(_0x459369(0x7e))/0x9;if(_0xaaedbc===_0x3b1881)break;else _0x477a55['push'](_0x477a55['shift']());}catch(_0x5b1fe8){_0x477a55['push'](_0x477a55['shift']());}}}(a67_0x3e5c,0x1e467));import{readFile}from'fs/promises';function a67_0x3e5c(){const _0x5e4384=['INTERNAL','Failed\x20to\x20load\x20JSON:\x20','Permission\x20denied\x20reading\x20file:\x20','565RePMBU','File\x20not\x20found:\x20','Invalid\x20JSON\x20string:\x20','NOT_FOUND','337392hphWKu','Invalid\x20JSON\x20in\x20file\x20\x27','ENOENT','499554AwtLwc','code','utf-8','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INVALID_ARGUMENT','EACCES','1059928lXKzwh','165343KJKJXE','message','parse','4096242gQrrXb','2NendQj','709835mPCRFK','6168XCdQbY'];a67_0x3e5c=function(){return _0x5e4384;};return a67_0x3e5c();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x203435,_0x4974fa){const _0x4acd60=a67_0x55e4;try{if(_0x4974fa){const _0x58cea6=await readFile(_0x203435,_0x4acd60(0x76));try{return JSON[_0x4acd60(0x7d)](_0x58cea6);}catch(_0x5a545b){throw new SDKError(ErrorCode[_0x4acd60(0x78)],_0x4acd60(0x72)+_0x203435+'\x27:\x20'+(_0x5a545b instanceof Error?_0x5a545b['message']:String(_0x5a545b)));}}else try{return JSON[_0x4acd60(0x7d)](_0x203435);}catch(_0x3cbb16){throw new SDKError(ErrorCode[_0x4acd60(0x78)],_0x4acd60(0x6f)+(_0x3cbb16 instanceof Error?_0x3cbb16[_0x4acd60(0x7c)]:String(_0x3cbb16)));}}catch(_0x5ee554){if(_0x5ee554 instanceof SDKError)throw _0x5ee554;if(_0x5ee554 instanceof Error&&_0x4acd60(0x75)in _0x5ee554){const _0x457d78=_0x5ee554;if(_0x457d78['code']===_0x4acd60(0x73))throw new SDKError(ErrorCode[_0x4acd60(0x70)],_0x4acd60(0x6e)+_0x203435);else{if(_0x457d78['code']===_0x4acd60(0x79))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x4acd60(0x6c)+_0x203435);}}throw new SDKError(ErrorCode[_0x4acd60(0x6a)],_0x4acd60(0x6b)+(_0x5ee554 instanceof Error?_0x5ee554[_0x4acd60(0x7c)]:String(_0x5ee554)));}}function a67_0x55e4(_0x5e2933,_0x22d5cf){const _0x3e5ce0=a67_0x3e5c();return a67_0x55e4=function(_0x55e4c7,_0x367719){_0x55e4c7=_0x55e4c7-0x6a;let _0x206df7=_0x3e5ce0[_0x55e4c7];return _0x206df7;},a67_0x55e4(_0x5e2933,_0x22d5cf);}export async function loadJSONFromOptions(_0x5f37bb,_0x381ac5){const _0x340ae4=a67_0x55e4;if(_0x5f37bb&&_0x381ac5)throw new SDKError(ErrorCode[_0x340ae4(0x78)],_0x340ae4(0x77));if(_0x5f37bb)return await loadJSON(_0x5f37bb,![]);if(_0x381ac5)return await loadJSON(_0x381ac5,!![]);return undefined;}
1
+ (function(_0x59614b,_0x296cee){const _0x343e6e=a67_0x20ab,_0x4a5db8=_0x59614b();while(!![]){try{const _0x41871d=-parseInt(_0x343e6e(0x1c8))/0x1+parseInt(_0x343e6e(0x1d0))/0x2*(-parseInt(_0x343e6e(0x1d1))/0x3)+parseInt(_0x343e6e(0x1d7))/0x4*(-parseInt(_0x343e6e(0x1ce))/0x5)+-parseInt(_0x343e6e(0x1d3))/0x6*(parseInt(_0x343e6e(0x1c7))/0x7)+parseInt(_0x343e6e(0x1dc))/0x8+parseInt(_0x343e6e(0x1d9))/0x9*(-parseInt(_0x343e6e(0x1d2))/0xa)+-parseInt(_0x343e6e(0x1dd))/0xb*(-parseInt(_0x343e6e(0x1cd))/0xc);if(_0x41871d===_0x296cee)break;else _0x4a5db8['push'](_0x4a5db8['shift']());}catch(_0x1cfddc){_0x4a5db8['push'](_0x4a5db8['shift']());}}}(a67_0x5cd7,0xbaf6b));import{readFile}from'fs/promises';function a67_0x5cd7(){const _0xc38a96=['File\x20not\x20found:\x20','12135128NHFmkM','66ErkwwR','3114475BhDFQz','1066670tjbsFO','message','Permission\x20denied\x20reading\x20file:\x20','parse','EACCES','5097852puIzAq','9980oDUEvL','INTERNAL','138266IQDbBY','3tMrbzW','5556180SjJTUp','6kAZFwG','Invalid\x20JSON\x20string:\x20','ENOENT','\x27:\x20','2332xNpepC','code','9NYUEHr','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.'];a67_0x5cd7=function(){return _0xc38a96;};return a67_0x5cd7();}function a67_0x20ab(_0x49a51a,_0x5c298c){const _0x5cd717=a67_0x5cd7();return a67_0x20ab=function(_0x20abb1,_0x360e69){_0x20abb1=_0x20abb1-0x1c7;let _0x1ef4f1=_0x5cd717[_0x20abb1];return _0x1ef4f1;},a67_0x20ab(_0x49a51a,_0x5c298c);}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x130b83,_0x4b8e46){const _0x4419d3=a67_0x20ab;try{if(_0x4b8e46){const _0x246d49=await readFile(_0x130b83,'utf-8');try{return JSON['parse'](_0x246d49);}catch(_0x38a0fc){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x130b83+_0x4419d3(0x1d6)+(_0x38a0fc instanceof Error?_0x38a0fc[_0x4419d3(0x1c9)]:String(_0x38a0fc)));}}else try{return JSON[_0x4419d3(0x1cb)](_0x130b83);}catch(_0x159910){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4419d3(0x1d4)+(_0x159910 instanceof Error?_0x159910[_0x4419d3(0x1c9)]:String(_0x159910)));}}catch(_0x32f13b){if(_0x32f13b instanceof SDKError)throw _0x32f13b;if(_0x32f13b instanceof Error&&_0x4419d3(0x1d8)in _0x32f13b){const _0x5b6a55=_0x32f13b;if(_0x5b6a55[_0x4419d3(0x1d8)]===_0x4419d3(0x1d5))throw new SDKError(ErrorCode['NOT_FOUND'],_0x4419d3(0x1db)+_0x130b83);else{if(_0x5b6a55[_0x4419d3(0x1d8)]===_0x4419d3(0x1cc))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x4419d3(0x1ca)+_0x130b83);}}throw new SDKError(ErrorCode[_0x4419d3(0x1cf)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x32f13b instanceof Error?_0x32f13b[_0x4419d3(0x1c9)]:String(_0x32f13b)));}}export async function loadJSONFromOptions(_0x1dba99,_0x204135){const _0x3ff8d8=a67_0x20ab;if(_0x1dba99&&_0x204135)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x3ff8d8(0x1da));if(_0x1dba99)return await loadJSON(_0x1dba99,![]);if(_0x204135)return await loadJSON(_0x204135,!![]);return undefined;}
@@ -1 +1 @@
1
- const a68_0xc9e844=a68_0x289f;(function(_0xb93442,_0x3f0e61){const _0x545e43=a68_0x289f,_0x59692d=_0xb93442();while(!![]){try{const _0x352c26=parseInt(_0x545e43(0xd6))/0x1+-parseInt(_0x545e43(0xd3))/0x2+parseInt(_0x545e43(0xd1))/0x3*(-parseInt(_0x545e43(0xcf))/0x4)+-parseInt(_0x545e43(0xca))/0x5*(parseInt(_0x545e43(0xd0))/0x6)+-parseInt(_0x545e43(0xce))/0x7*(parseInt(_0x545e43(0xd5))/0x8)+parseInt(_0x545e43(0xcd))/0x9+parseInt(_0x545e43(0xd4))/0xa;if(_0x352c26===_0x3f0e61)break;else _0x59692d['push'](_0x59692d['shift']());}catch(_0x3f4700){_0x59692d['push'](_0x59692d['shift']());}}}(a68_0x1b0e,0xe0e97));const MODEL_ALIASES={'haiku':a68_0xc9e844(0xcb),'sonnet':a68_0xc9e844(0xcc)};function a68_0x1b0e(){const _0x9f690b=['match','15wumEyK','claude-4.5-haiku','claude-4.5-sonnet','6181083IpHcmf','35AFrgTa','26656eBsFyb','1807710bLVWjj','759mcJGjU','toLowerCase','2402070GFemBD','41512310lBCMyq','851432BaPEej','406248HnskqH'];a68_0x1b0e=function(){return _0x9f690b;};return a68_0x1b0e();}export function extractModelAlias(_0x1d8522){const _0x2ebafe=a68_0xc9e844,_0x41ef5b=_0x1d8522[_0x2ebafe(0xc9)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x41ef5b)return _0x41ef5b[0x1][_0x2ebafe(0xd2)]();return _0x1d8522;}export function resolveModelAlias(_0x29858b){const _0x33e20e=a68_0xc9e844;return MODEL_ALIASES[_0x29858b[_0x33e20e(0xd2)]()]||_0x29858b;}function a68_0x289f(_0x3724af,_0xbe65b5){const _0x1b0e70=a68_0x1b0e();return a68_0x289f=function(_0x289f50,_0xdb1fbc){_0x289f50=_0x289f50-0xc9;let _0x3fef17=_0x1b0e70[_0x289f50];return _0x3fef17;},a68_0x289f(_0x3724af,_0xbe65b5);}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a68_0x76dd68=a68_0x109d;(function(_0x1825d1,_0x5f55dd){const _0x3cdd9d=a68_0x109d,_0x4231aa=_0x1825d1();while(!![]){try{const _0x42b654=-parseInt(_0x3cdd9d(0x1bd))/0x1*(-parseInt(_0x3cdd9d(0x1c3))/0x2)+-parseInt(_0x3cdd9d(0x1bf))/0x3*(parseInt(_0x3cdd9d(0x1c0))/0x4)+parseInt(_0x3cdd9d(0x1be))/0x5+-parseInt(_0x3cdd9d(0x1bb))/0x6+parseInt(_0x3cdd9d(0x1c9))/0x7*(-parseInt(_0x3cdd9d(0x1c6))/0x8)+-parseInt(_0x3cdd9d(0x1c8))/0x9*(-parseInt(_0x3cdd9d(0x1c1))/0xa)+parseInt(_0x3cdd9d(0x1c7))/0xb;if(_0x42b654===_0x5f55dd)break;else _0x4231aa['push'](_0x4231aa['shift']());}catch(_0x1a5288){_0x4231aa['push'](_0x4231aa['shift']());}}}(a68_0x4147,0x3338d));function a68_0x109d(_0x357b6d,_0x1bbac7){const _0x414735=a68_0x4147();return a68_0x109d=function(_0x109d85,_0x45fd60){_0x109d85=_0x109d85-0x1bb;let _0x2df023=_0x414735[_0x109d85];return _0x2df023;},a68_0x109d(_0x357b6d,_0x1bbac7);}const MODEL_ALIASES={'haiku':a68_0x76dd68(0x1bc),'sonnet':a68_0x76dd68(0x1c5)};export function extractModelAlias(_0x16360){const _0x4723c1=a68_0x76dd68,_0x490dff=_0x16360[_0x4723c1(0x1c4)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x490dff)return _0x490dff[0x1][_0x4723c1(0x1c2)]();return _0x16360;}export function resolveModelAlias(_0x42cf6b){const _0x2f5651=a68_0x76dd68;return MODEL_ALIASES[_0x42cf6b[_0x2f5651(0x1c2)]()]||_0x42cf6b;}function a68_0x4147(){const _0x2309cc=['2775437xFzJkS','62418UGVAuL','claude-4.5-haiku','5806NRpWBM','1039090dBsCrR','3qGwisa','1362284OQYpId','40FgIZYQ','toLowerCase','26FYNbvs','match','claude-4.5-sonnet','8MXcMPT','3866522hlysFE','725562inVbRl'];a68_0x4147=function(){return _0x2309cc;};return a68_0x4147();}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- function a69_0x3c3e(_0x1424a0,_0x287b29){const _0x5499ac=a69_0x5499();return a69_0x3c3e=function(_0x3c3e2f,_0x31b496){_0x3c3e2f=_0x3c3e2f-0x16b;let _0x13a415=_0x5499ac[_0x3c3e2f];return _0x13a415;},a69_0x3c3e(_0x1424a0,_0x287b29);}(function(_0x29849e,_0x183ce6){const _0x189a5d=a69_0x3c3e,_0x36fb27=_0x29849e();while(!![]){try{const _0x4b0337=-parseInt(_0x189a5d(0x170))/0x1+-parseInt(_0x189a5d(0x173))/0x2*(parseInt(_0x189a5d(0x171))/0x3)+-parseInt(_0x189a5d(0x174))/0x4*(-parseInt(_0x189a5d(0x16f))/0x5)+-parseInt(_0x189a5d(0x178))/0x6*(-parseInt(_0x189a5d(0x175))/0x7)+-parseInt(_0x189a5d(0x16b))/0x8+parseInt(_0x189a5d(0x17b))/0x9+-parseInt(_0x189a5d(0x16d))/0xa*(-parseInt(_0x189a5d(0x16c))/0xb);if(_0x4b0337===_0x183ce6)break;else _0x36fb27['push'](_0x36fb27['shift']());}catch(_0x1320ee){_0x36fb27['push'](_0x36fb27['shift']());}}}(a69_0x5499,0x970ee));function a69_0x5499(){const _0x483111=['13620uFoZCy','100646dSiUXs','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','516tmDVKE','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20a\x20positive\x20number.','6653862Sepiby','5151512HsmGtr','11wnxTmC','2056690PnPiYp','number','675gdEVUO','858943lGsFwF','42126MUGuvk','.\x20Must\x20be\x20a\x20number.','74AnxMtY'];a69_0x5499=function(){return _0x483111;};return a69_0x5499();}export function validateLimitOption(_0x5f163f){const _0x537bdd=a69_0x3c3e;if(!Number['isInteger'](_0x5f163f))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5f163f+_0x537bdd(0x177)};if(_0x5f163f<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5f163f+_0x537bdd(0x179)};return{'isValid':!![],'value':_0x5f163f};}export function validateTimeoutOption(_0x52772c,_0x22a230=0x1e){const _0x468716=a69_0x3c3e;if(_0x52772c===undefined)return{'isValid':!![],'value':_0x22a230};const _0x3b2ce2=typeof _0x52772c===_0x468716(0x16e)?_0x52772c:parseFloat(_0x52772c);if(isNaN(_0x3b2ce2))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x52772c+_0x468716(0x172)};if(_0x3b2ce2<=0x0)return{'isValid':![],'error':_0x468716(0x176)+_0x3b2ce2+_0x468716(0x17a)};return{'isValid':!![],'value':_0x3b2ce2};}
1
+ function a69_0x2679(_0x7acdce,_0x2e37a4){const _0x43210f=a69_0x4321();return a69_0x2679=function(_0x267914,_0x1e583e){_0x267914=_0x267914-0x6d;let _0x1c2d77=_0x43210f[_0x267914];return _0x1c2d77;},a69_0x2679(_0x7acdce,_0x2e37a4);}(function(_0x53ab40,_0x520389){const _0x315447=a69_0x2679,_0x1a52c3=_0x53ab40();while(!![]){try{const _0x23aeef=-parseInt(_0x315447(0x72))/0x1+parseInt(_0x315447(0x7c))/0x2*(parseInt(_0x315447(0x76))/0x3)+-parseInt(_0x315447(0x7a))/0x4+-parseInt(_0x315447(0x77))/0x5+-parseInt(_0x315447(0x79))/0x6*(-parseInt(_0x315447(0x71))/0x7)+parseInt(_0x315447(0x75))/0x8*(-parseInt(_0x315447(0x73))/0x9)+parseInt(_0x315447(0x6f))/0xa*(parseInt(_0x315447(0x6d))/0xb);if(_0x23aeef===_0x520389)break;else _0x1a52c3['push'](_0x1a52c3['shift']());}catch(_0x4dba6f){_0x1a52c3['push'](_0x1a52c3['shift']());}}}(a69_0x4321,0x89b55));export function validateLimitOption(_0x14f50b){const _0x4c389e=a69_0x2679;if(!Number['isInteger'](_0x14f50b))return{'isValid':![],'error':_0x4c389e(0x7b)+_0x14f50b+'.\x20Must\x20be\x20an\x20integer.'};if(_0x14f50b<=0x0)return{'isValid':![],'error':_0x4c389e(0x7b)+_0x14f50b+_0x4c389e(0x78)};return{'isValid':!![],'value':_0x14f50b};}function a69_0x4321(){const _0x160c2e=['.\x20Must\x20be\x20a\x20number.','8RgFrpA','253263ZneuRi','4633770OaTiUM','.\x20Must\x20be\x20a\x20positive\x20integer.','168ButpHK','3000252hyINpB','Invalid\x20limit\x20value:\x20','10xTssLM','4037IlwazM','number','53110gVfwCk','Invalid\x20timeout\x20value:\x20','215467lxIcoW','593579JaAyrz','3587949wCKAft'];a69_0x4321=function(){return _0x160c2e;};return a69_0x4321();}export function validateTimeoutOption(_0x297ffe,_0x366269=0x1e){const _0x657efc=a69_0x2679;if(_0x297ffe===undefined)return{'isValid':!![],'value':_0x366269};const _0x4c304f=typeof _0x297ffe===_0x657efc(0x6e)?_0x297ffe:parseFloat(_0x297ffe);if(isNaN(_0x4c304f))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x297ffe+_0x657efc(0x74)};if(_0x4c304f<=0x0)return{'isValid':![],'error':_0x657efc(0x70)+_0x4c304f+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x4c304f};}
@@ -1 +1 @@
1
- function a70_0x29ba(){const _0x121047=['EADDRINUSE','\x20and\x20','10259253aXnUAu','listen','516105eOYvtE','0.0.0.0','code','122167wPRynh','once','2376591mfNBys','listening','12gZMhKs','1554772AzJTsf','1202463MuutuE','close','1135440tLFbIn','4NnDzfC'];a70_0x29ba=function(){return _0x121047;};return a70_0x29ba();}(function(_0x3bb59f,_0x44c393){const _0x1aea97=a70_0x572d,_0x174a06=_0x3bb59f();while(!![]){try{const _0x5157ae=-parseInt(_0x1aea97(0x184))/0x1*(parseInt(_0x1aea97(0x17c))/0x2)+parseInt(_0x1aea97(0x179))/0x3+-parseInt(_0x1aea97(0x178))/0x4+-parseInt(_0x1aea97(0x181))/0x5*(parseInt(_0x1aea97(0x177))/0x6)+-parseInt(_0x1aea97(0x175))/0x7+-parseInt(_0x1aea97(0x17b))/0x8+parseInt(_0x1aea97(0x17f))/0x9;if(_0x5157ae===_0x44c393)break;else _0x174a06['push'](_0x174a06['shift']());}catch(_0x18c76d){_0x174a06['push'](_0x174a06['shift']());}}}(a70_0x29ba,0x35ab2));function a70_0x572d(_0x21e261,_0x5e184d){const _0x29ba76=a70_0x29ba();return a70_0x572d=function(_0x572d6f,_0x38e9c2){_0x572d6f=_0x572d6f-0x174;let _0x1331ca=_0x29ba76[_0x572d6f];return _0x1331ca;},a70_0x572d(_0x21e261,_0x5e184d);}import{createServer}from'node:net';export async function isPortAvailable(_0x4b3258){return new Promise(_0x1b6ec6=>{const _0x5a6e21=a70_0x572d,_0x554c23=createServer();_0x554c23[_0x5a6e21(0x174)]('error',_0x2e4471=>{const _0x549795=_0x5a6e21;_0x2e4471[_0x549795(0x183)]===_0x549795(0x17d)?_0x1b6ec6(![]):_0x1b6ec6(![]);}),_0x554c23['once'](_0x5a6e21(0x176),()=>{const _0x18a15d=_0x5a6e21;_0x554c23[_0x18a15d(0x17a)](),_0x1b6ec6(!![]);}),_0x554c23[_0x5a6e21(0x180)](_0x4b3258,_0x5a6e21(0x182));});}export async function findAvailablePort(_0x24d94d=0xfa0,_0x2fece2=0x64){const _0x2cf609=a70_0x572d;for(let _0x235354=0x0;_0x235354<_0x2fece2;_0x235354++){const _0x535d6d=_0x24d94d+_0x235354;if(await isPortAvailable(_0x535d6d))return _0x535d6d;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x24d94d+_0x2cf609(0x17e)+(_0x24d94d+_0x2fece2-0x1));}
1
+ (function(_0x58878e,_0x54c951){const _0xb34335=a70_0x5102,_0x169cab=_0x58878e();while(!![]){try{const _0x58d3dd=parseInt(_0xb34335(0x90))/0x1+-parseInt(_0xb34335(0x93))/0x2*(parseInt(_0xb34335(0x94))/0x3)+-parseInt(_0xb34335(0x82))/0x4*(-parseInt(_0xb34335(0x85))/0x5)+-parseInt(_0xb34335(0x8c))/0x6*(parseInt(_0xb34335(0x86))/0x7)+parseInt(_0xb34335(0x8f))/0x8*(parseInt(_0xb34335(0x84))/0x9)+-parseInt(_0xb34335(0x92))/0xa+-parseInt(_0xb34335(0x8a))/0xb*(parseInt(_0xb34335(0x88))/0xc);if(_0x58d3dd===_0x54c951)break;else _0x169cab['push'](_0x169cab['shift']());}catch(_0x1a2f35){_0x169cab['push'](_0x169cab['shift']());}}}(a70_0x1e40,0x29eb6));import{createServer}from'node:net';export async function isPortAvailable(_0x546c86){return new Promise(_0x4cef77=>{const _0xdbccd8=a70_0x5102,_0x21ee41=createServer();_0x21ee41[_0xdbccd8(0x87)](_0xdbccd8(0x8e),_0x2fb817=>{const _0x12ccd9=_0xdbccd8;_0x2fb817[_0x12ccd9(0x8d)]==='EADDRINUSE'?_0x4cef77(![]):_0x4cef77(![]);}),_0x21ee41[_0xdbccd8(0x87)](_0xdbccd8(0x91),()=>{const _0x13b226=_0xdbccd8;_0x21ee41[_0x13b226(0x8b)](),_0x4cef77(!![]);}),_0x21ee41['listen'](_0x546c86,_0xdbccd8(0x83));});}function a70_0x5102(_0x5ea0cd,_0x469764){const _0x1e4065=a70_0x1e40();return a70_0x5102=function(_0x510257,_0x5a02bb){_0x510257=_0x510257-0x82;let _0x224c1f=_0x1e4065[_0x510257];return _0x224c1f;},a70_0x5102(_0x5ea0cd,_0x469764);}function a70_0x1e40(){const _0x3ebbec=['431130vggmlI','22YPgjvp','77619GHwqRD','124684XDZgZi','0.0.0.0','6093NyICOb','45PXqSFY','7namEFr','once','5544CCWKVN','No\x20available\x20port\x20found\x20between\x20','4114AsQxPf','close','180300EJpjwz','code','error','3832tyUaiH','97434UbmeHO','listening'];a70_0x1e40=function(){return _0x3ebbec;};return a70_0x1e40();}export async function findAvailablePort(_0x15fe1d=0xfa0,_0x539968=0x64){const _0x85303a=a70_0x5102;for(let _0x251272=0x0;_0x251272<_0x539968;_0x251272++){const _0x832e19=_0x15fe1d+_0x251272;if(await isPortAvailable(_0x832e19))return _0x832e19;}throw new Error(_0x85303a(0x89)+_0x15fe1d+'\x20and\x20'+(_0x15fe1d+_0x539968-0x1));}
@@ -1 +1 @@
1
- const a71_0x506108=a71_0x4e4d;(function(_0xd1b3f9,_0x316089){const _0x40cb4a=a71_0x4e4d,_0x22e6c9=_0xd1b3f9();while(!![]){try{const _0x8d2390=parseInt(_0x40cb4a(0x8e))/0x1+parseInt(_0x40cb4a(0x94))/0x2+-parseInt(_0x40cb4a(0x8a))/0x3*(parseInt(_0x40cb4a(0x81))/0x4)+-parseInt(_0x40cb4a(0x70))/0x5*(parseInt(_0x40cb4a(0x92))/0x6)+parseInt(_0x40cb4a(0x87))/0x7*(-parseInt(_0x40cb4a(0x78))/0x8)+parseInt(_0x40cb4a(0x75))/0x9*(-parseInt(_0x40cb4a(0x7d))/0xa)+parseInt(_0x40cb4a(0x6e))/0xb;if(_0x8d2390===_0x316089)break;else _0x22e6c9['push'](_0x22e6c9['shift']());}catch(_0x6a9b87){_0x22e6c9['push'](_0x22e6c9['shift']());}}}(a71_0x3edc,0x201d3));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a71_0x506108(0x6c),a71_0x506108(0x7a),'sh',a71_0x506108(0x80),a71_0x506108(0x79),a71_0x506108(0x72),'csh','dash',a71_0x506108(0x6f),'powershell','nu',a71_0x506108(0x8c),a71_0x506108(0x85),a71_0x506108(0x8d)]);function getProcessInfoWindows(_0x31d0a6){const _0x1ed43c=a71_0x506108;try{const _0x570452=execSync(_0x1ed43c(0x8f)+_0x31d0a6+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x1ed43c(0x7e),'windowsHide':!![]})[_0x1ed43c(0x7f)](),_0x175909=_0x570452[_0x1ed43c(0x73)]('\x0a')[_0x1ed43c(0x7b)](_0x5bc49f=>_0x5bc49f[_0x1ed43c(0x7f)]());if(_0x175909[_0x1ed43c(0x89)]<0x2)return null;const _0x16e0c3=_0x175909[_0x175909[_0x1ed43c(0x89)]-0x1][_0x1ed43c(0x73)](',');if(_0x16e0c3[_0x1ed43c(0x89)]<0x3)return null;const _0x94ba9=_0x16e0c3[0x1]?.[_0x1ed43c(0x7f)]()||'',_0x4c8037=parseInt(_0x16e0c3[0x2]?.[_0x1ed43c(0x7f)]()||'0',0xa);if(isNaN(_0x4c8037)||!_0x94ba9)return null;return{'pid':_0x31d0a6,'ppid':_0x4c8037,'comm':_0x94ba9[_0x1ed43c(0x76)](/\.exe$/i,'')};}catch(_0x546178){return process['env'][_0x1ed43c(0x84)]&&console[_0x1ed43c(0x74)](_0x1ed43c(0x83)+_0x31d0a6+_0x1ed43c(0x90),_0x546178),null;}}function getProcessInfoPosix(_0x4a7c85){const _0x3142cd=a71_0x506108;try{const _0x5146da=execSync('ps\x20-p\x20'+_0x4a7c85+'\x20-o\x20ppid=,comm=',{'encoding':_0x3142cd(0x7e)})[_0x3142cd(0x7f)](),[_0x331e3f,..._0x1ce93c]=_0x5146da[_0x3142cd(0x73)](/\s+/),_0x1c5f0b=parseInt(_0x331e3f,0xa),_0x321271=_0x1ce93c[_0x3142cd(0x71)]('\x20');if(isNaN(_0x1c5f0b))return null;return{'pid':_0x4a7c85,'ppid':_0x1c5f0b,'comm':_0x321271};}catch(_0x126c80){return process[_0x3142cd(0x86)][_0x3142cd(0x84)]&&console['error'](_0x3142cd(0x83)+_0x4a7c85+_0x3142cd(0x6a),_0x126c80),null;}}function getProcessInfo(_0x549ecb){const _0x4cafe6=a71_0x506108;if(process[_0x4cafe6(0x93)]===_0x4cafe6(0x82))return getProcessInfoWindows(_0x549ecb);return getProcessInfoPosix(_0x549ecb);}function isShell(_0x21b048){const _0x51f43d=a71_0x506108,_0x5620c3=_0x21b048[_0x51f43d(0x76)](/^-/,'')['split']('/')[_0x51f43d(0x88)]()||'';return SHELL_NAMES[_0x51f43d(0x6d)](_0x5620c3['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x4fbb41=a71_0x506108;let _0x1dbddc=process[_0x4fbb41(0x77)];const _0x2604d8=0xa;let _0x3737d8=0x0;while(_0x3737d8<_0x2604d8){const _0x3fdfd5=getProcessInfo(_0x1dbddc);if(!_0x3fdfd5){process[_0x4fbb41(0x86)][_0x4fbb41(0x84)]&&console[_0x4fbb41(0x74)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x1dbddc+_0x4fbb41(0x7c));break;}if(isShell(_0x3fdfd5[_0x4fbb41(0x91)]))return _0x3fdfd5[_0x4fbb41(0x8b)];if(_0x3fdfd5[_0x4fbb41(0x77)]===0x0||_0x3fdfd5[_0x4fbb41(0x77)]===0x1){if(isShell(_0x3fdfd5[_0x4fbb41(0x91)]))return _0x3fdfd5['pid'];break;}_0x1dbddc=_0x3fdfd5[_0x4fbb41(0x77)],_0x3737d8++;}return process['env']['DEBUG']&&console['error'](_0x4fbb41(0x6b)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x48a5d9){try{return process['kill'](_0x48a5d9,0x0),!![];}catch{return![];}}function a71_0x4e4d(_0x328766,_0x53915a){const _0x3edc44=a71_0x3edc();return a71_0x4e4d=function(_0x4e4d96,_0xc3614){_0x4e4d96=_0x4e4d96-0x6a;let _0x27cbde=_0x3edc44[_0x4e4d96];return _0x27cbde;},a71_0x4e4d(_0x328766,_0x53915a);}function a71_0x3edc(){const _0x35947f=['31880tbDsYh','wmic\x20process\x20where\x20ProcessId=','\x20on\x20Windows:','comm','254418PuqbeX','platform','236466sDaxow','\x20on\x20POSIX:','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','bash','has','6291384GUoKdq','pwsh','15nTOulZ','join','tcsh','split','error','445761hthzDt','replace','ppid','61816zVkxwh','ksh','zsh','filter',',\x20using\x20fallback','10ZpirIm','utf-8','trim','fish','232324OaiLdx','win32','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','DEBUG','elvish','env','217HFMNhT','pop','length','9SSgvqY','pid','ion','xonsh'];a71_0x3edc=function(){return _0x35947f;};return a71_0x3edc();}
1
+ function a71_0x1d65(_0x5d7f93,_0x1dfa0e){const _0x2f3641=a71_0x2f36();return a71_0x1d65=function(_0x1d65a1,_0x54694d){_0x1d65a1=_0x1d65a1-0x105;let _0x3d263e=_0x2f3641[_0x1d65a1];return _0x3d263e;},a71_0x1d65(_0x5d7f93,_0x1dfa0e);}const a71_0x1f283f=a71_0x1d65;(function(_0x4be267,_0x509dc3){const _0x4aae91=a71_0x1d65,_0x5071d7=_0x4be267();while(!![]){try{const _0x26b793=parseInt(_0x4aae91(0x130))/0x1+-parseInt(_0x4aae91(0x110))/0x2+-parseInt(_0x4aae91(0x111))/0x3+-parseInt(_0x4aae91(0x12b))/0x4+parseInt(_0x4aae91(0x126))/0x5*(-parseInt(_0x4aae91(0x12a))/0x6)+-parseInt(_0x4aae91(0x124))/0x7*(parseInt(_0x4aae91(0x128))/0x8)+-parseInt(_0x4aae91(0x123))/0x9*(-parseInt(_0x4aae91(0x11f))/0xa);if(_0x26b793===_0x509dc3)break;else _0x5071d7['push'](_0x5071d7['shift']());}catch(_0x37ecb7){_0x5071d7['push'](_0x5071d7['shift']());}}}(a71_0x2f36,0x466be));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a71_0x1f283f(0x116),a71_0x1f283f(0x127),'sh',a71_0x1f283f(0x10b),a71_0x1f283f(0x119),a71_0x1f283f(0x113),a71_0x1f283f(0x11b),'dash',a71_0x1f283f(0x10d),a71_0x1f283f(0x115),'nu','ion','elvish',a71_0x1f283f(0x12d)]);function getProcessInfoWindows(_0x57e34f){const _0xf5d634=a71_0x1f283f;try{const _0xe13e64=execSync(_0xf5d634(0x109)+_0x57e34f+_0xf5d634(0x118),{'encoding':_0xf5d634(0x129),'windowsHide':!![]})[_0xf5d634(0x10e)](),_0x79d87d=_0xe13e64[_0xf5d634(0x11c)]('\x0a')[_0xf5d634(0x105)](_0x2321f8=>_0x2321f8[_0xf5d634(0x10e)]());if(_0x79d87d[_0xf5d634(0x108)]<0x2)return null;const _0x511f7f=_0x79d87d[_0x79d87d['length']-0x1][_0xf5d634(0x11c)](',');if(_0x511f7f[_0xf5d634(0x108)]<0x3)return null;const _0x2e2db3=_0x511f7f[0x1]?.['trim']()||'',_0x38045a=parseInt(_0x511f7f[0x2]?.[_0xf5d634(0x10e)]()||'0',0xa);if(isNaN(_0x38045a)||!_0x2e2db3)return null;return{'pid':_0x57e34f,'ppid':_0x38045a,'comm':_0x2e2db3[_0xf5d634(0x121)](/\.exe$/i,'')};}catch(_0x536bf8){return process[_0xf5d634(0x112)][_0xf5d634(0x12c)]&&console['error'](_0xf5d634(0x131)+_0x57e34f+_0xf5d634(0x114),_0x536bf8),null;}}function getProcessInfoPosix(_0x3d197a){const _0x5239b7=a71_0x1f283f;try{const _0x422e73=execSync(_0x5239b7(0x107)+_0x3d197a+_0x5239b7(0x125),{'encoding':'utf-8'})[_0x5239b7(0x10e)](),[_0x1ece78,..._0x5e1cd7]=_0x422e73[_0x5239b7(0x11c)](/\s+/),_0x2fa734=parseInt(_0x1ece78,0xa),_0x52dae9=_0x5e1cd7[_0x5239b7(0x10a)]('\x20');if(isNaN(_0x2fa734))return null;return{'pid':_0x3d197a,'ppid':_0x2fa734,'comm':_0x52dae9};}catch(_0x20af87){return process[_0x5239b7(0x112)][_0x5239b7(0x12c)]&&console[_0x5239b7(0x106)](_0x5239b7(0x131)+_0x3d197a+_0x5239b7(0x11a),_0x20af87),null;}}function getProcessInfo(_0x81a3f0){const _0x27b138=a71_0x1f283f;if(process[_0x27b138(0x11d)]==='win32')return getProcessInfoWindows(_0x81a3f0);return getProcessInfoPosix(_0x81a3f0);}function isShell(_0xa587ca){const _0x554f8a=a71_0x1f283f,_0x363924=_0xa587ca[_0x554f8a(0x121)](/^-/,'')['split']('/')[_0x554f8a(0x10f)]()||'';return SHELL_NAMES[_0x554f8a(0x12e)](_0x363924['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x55d4b3=a71_0x1f283f;let _0x5bb8f6=process[_0x55d4b3(0x117)];const _0x2371d2=0xa;let _0x4b3bda=0x0;while(_0x4b3bda<_0x2371d2){const _0x5f3bf1=getProcessInfo(_0x5bb8f6);if(!_0x5f3bf1){process['env']['DEBUG']&&console[_0x55d4b3(0x106)](_0x55d4b3(0x11e)+_0x5bb8f6+',\x20using\x20fallback');break;}if(isShell(_0x5f3bf1['comm']))return _0x5f3bf1['pid'];if(_0x5f3bf1[_0x55d4b3(0x117)]===0x0||_0x5f3bf1[_0x55d4b3(0x117)]===0x1){if(isShell(_0x5f3bf1[_0x55d4b3(0x10c)]))return _0x5f3bf1[_0x55d4b3(0x120)];break;}_0x5bb8f6=_0x5f3bf1[_0x55d4b3(0x117)],_0x4b3bda++;}return process[_0x55d4b3(0x112)]['DEBUG']&&console[_0x55d4b3(0x106)](_0x55d4b3(0x12f)),process[_0x55d4b3(0x117)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}function a71_0x2f36(){const _0x4e4902=['kill','16045011zcghTJ','7qenleY','\x20-o\x20ppid=,comm=','95FSMiic','zsh','2001496XiCWyW','utf-8','82002rgzPxF','1836548csEoFk','DEBUG','xonsh','has','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','343177BLNaVG','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','filter','error','ps\x20-p\x20','length','wmic\x20process\x20where\x20ProcessId=','join','fish','comm','pwsh','trim','pop','782598XIfkKH','1431642ABHlIt','env','tcsh','\x20on\x20Windows:','powershell','bash','ppid','\x20get\x20ParentProcessId,Name\x20/format:csv','ksh','\x20on\x20POSIX:','csh','split','platform','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','10BdBdJV','pid','replace'];a71_0x2f36=function(){return _0x4e4902;};return a71_0x2f36();}export function isProcessRunning(_0x12d3da){const _0x5b4b01=a71_0x1f283f;try{return process[_0x5b4b01(0x122)](_0x12d3da,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x2978a6,_0x1466ba){const _0x4aa64b=a72_0x4faf,_0x5acd59=_0x2978a6();while(!![]){try{const _0x5cadd9=-parseInt(_0x4aa64b(0x98))/0x1*(-parseInt(_0x4aa64b(0x9b))/0x2)+parseInt(_0x4aa64b(0x91))/0x3*(parseInt(_0x4aa64b(0x92))/0x4)+-parseInt(_0x4aa64b(0x9a))/0x5+parseInt(_0x4aa64b(0x99))/0x6+-parseInt(_0x4aa64b(0x97))/0x7+parseInt(_0x4aa64b(0x90))/0x8+parseInt(_0x4aa64b(0x96))/0x9*(-parseInt(_0x4aa64b(0x8e))/0xa);if(_0x5cadd9===_0x1466ba)break;else _0x5acd59['push'](_0x5acd59['shift']());}catch(_0x5a376a){_0x5acd59['push'](_0x5acd59['shift']());}}}(a72_0x3289,0xc9cec));function a72_0x4faf(_0xb44861,_0x2247a8){const _0x32890f=a72_0x3289();return a72_0x4faf=function(_0x4faf07,_0x8dfc50){_0x4faf07=_0x4faf07-0x8e;let _0x4d4f88=_0x32890f[_0x4faf07];return _0x4d4f88;},a72_0x4faf(_0xb44861,_0x2247a8);}import*as a72_0x2d1431 from'readline';export async function confirm(_0x7dbf01){const _0x5b0623=a72_0x4faf,_0x74b553=a72_0x2d1431[_0x5b0623(0x94)]({'input':process[_0x5b0623(0x8f)],'output':process[_0x5b0623(0x9d)]});return new Promise(_0xe97291=>{const _0x4ba731=_0x5b0623;_0x74b553[_0x4ba731(0x93)](_0x7dbf01+_0x4ba731(0x9c),_0x598be8=>{const _0x17dac7=_0x4ba731;_0x74b553['close'](),_0xe97291(_0x598be8[_0x17dac7(0x95)]()==='y'||_0x598be8['toLowerCase']()===_0x17dac7(0x9e));});});}function a72_0x3289(){const _0x1fbb71=['2936439BBDSOg','5553100PGrocz','263401pHzhWL','8078292uXlGKj','1062555ziXEOZ','2lhSxBP','\x20(y/N):\x20','stdout','yes','40kLwJbz','stdin','11138256bxxBcx','203151bvyBwD','8noCvnZ','question','createInterface','toLowerCase'];a72_0x3289=function(){return _0x1fbb71;};return a72_0x3289();}
1
+ (function(_0x556544,_0x4cac6c){const _0x6bcc00=a72_0x5bae,_0x3a3cea=_0x556544();while(!![]){try{const _0x45bb1c=-parseInt(_0x6bcc00(0x1ca))/0x1*(parseInt(_0x6bcc00(0x1ba))/0x2)+parseInt(_0x6bcc00(0x1c9))/0x3*(-parseInt(_0x6bcc00(0x1c7))/0x4)+-parseInt(_0x6bcc00(0x1bf))/0x5*(parseInt(_0x6bcc00(0x1be))/0x6)+parseInt(_0x6bcc00(0x1c1))/0x7*(-parseInt(_0x6bcc00(0x1c6))/0x8)+parseInt(_0x6bcc00(0x1b8))/0x9*(parseInt(_0x6bcc00(0x1c3))/0xa)+parseInt(_0x6bcc00(0x1c5))/0xb+parseInt(_0x6bcc00(0x1b9))/0xc;if(_0x45bb1c===_0x4cac6c)break;else _0x3a3cea['push'](_0x3a3cea['shift']());}catch(_0x25be4e){_0x3a3cea['push'](_0x3a3cea['shift']());}}}(a72_0x274f,0x5f4d9));import*as a72_0x36af22 from'readline';function a72_0x5bae(_0x583352,_0x584204){const _0x274fee=a72_0x274f();return a72_0x5bae=function(_0x5bae22,_0x26fd84){_0x5bae22=_0x5bae22-0x1b8;let _0x3e3eff=_0x274fee[_0x5bae22];return _0x3e3eff;},a72_0x5bae(_0x583352,_0x584204);}export async function confirm(_0x4d01f8){const _0x27e067=a72_0x5bae,_0x32f6d5=a72_0x36af22[_0x27e067(0x1c0)]({'input':process['stdin'],'output':process[_0x27e067(0x1bc)]});return new Promise(_0x577458=>{const _0x281336=_0x27e067;_0x32f6d5[_0x281336(0x1bd)](_0x4d01f8+_0x281336(0x1c8),_0x559e98=>{const _0x56b66c=_0x281336;_0x32f6d5[_0x56b66c(0x1bb)](),_0x577458(_0x559e98[_0x56b66c(0x1c4)]()==='y'||_0x559e98['toLowerCase']()===_0x56b66c(0x1c2));});});}function a72_0x274f(){const _0xb0be30=['16346988yeuhMs','2LHlLJj','close','stdout','question','1353852wiXTEw','15uecciu','createInterface','1001588WBIzxD','yes','890410OZNojF','toLowerCase','6729206qODWjT','16HbYigd','399524myOuTg','\x20(y/N):\x20','3hJcMUp','698741KzNKkZ','18bWLOdQ'];a72_0x274f=function(){return _0xb0be30;};return a72_0x274f();}