@treasuredata/tdx 0.7.1 → 0.7.2

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 (104) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.js +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-api-client.js +1 -1
  11. package/dist/client/trino-api-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/api-command.js +1 -1
  15. package/dist/commands/auth-command.js +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.js +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-usage-command.js +1 -1
  20. package/dist/commands/command.js +1 -1
  21. package/dist/commands/context-command.js +1 -1
  22. package/dist/commands/databases.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/job-command.js +1 -1
  26. package/dist/commands/llm-command.js +1 -1
  27. package/dist/commands/llm-proxy.js +1 -1
  28. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  29. package/dist/commands/parent-segment-command.js +1 -1
  30. package/dist/commands/parent-segment-command.js.map +1 -1
  31. package/dist/commands/profiles-command.js +1 -1
  32. package/dist/commands/query-command.js +1 -1
  33. package/dist/commands/segment-command.js +1 -1
  34. package/dist/commands/segment-create-command.js +1 -1
  35. package/dist/commands/segment-fields-command.js +1 -1
  36. package/dist/commands/segment-pwd-command.js +1 -1
  37. package/dist/commands/segment-update-command.js +1 -1
  38. package/dist/commands/segment-use-command.js +1 -1
  39. package/dist/commands/segments.js +1 -1
  40. package/dist/commands/show.js +1 -1
  41. package/dist/commands/tables.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/workflow-command.js +1 -1
  44. package/dist/core/auth.js +1 -1
  45. package/dist/core/config.js +1 -1
  46. package/dist/core/credential-cache.js +1 -1
  47. package/dist/core/global-context.js +1 -1
  48. package/dist/core/keychain.js +1 -1
  49. package/dist/core/profile.js +1 -1
  50. package/dist/core/project-config.js +1 -1
  51. package/dist/core/session.js +1 -1
  52. package/dist/index.js +1 -1
  53. package/dist/proxy/anthropic-adapter.js +1 -1
  54. package/dist/proxy/claude-usage-tracker.js +1 -1
  55. package/dist/proxy/context-signature.js +1 -1
  56. package/dist/proxy/conversation-utils.js +1 -1
  57. package/dist/proxy/server.js +1 -1
  58. package/dist/proxy/session-cache.js +1 -1
  59. package/dist/sdk/api.js +1 -1
  60. package/dist/sdk/engage.js +1 -1
  61. package/dist/sdk/errors.js +1 -1
  62. package/dist/sdk/index.js +1 -1
  63. package/dist/sdk/job.js +1 -1
  64. package/dist/sdk/llm.js +1 -1
  65. package/dist/sdk/query.js +1 -1
  66. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  67. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  68. package/dist/sdk/segment.js +1 -1
  69. package/dist/sdk/workflow.js +1 -1
  70. package/dist/types/endpoints.d.ts +12 -0
  71. package/dist/types/endpoints.d.ts.map +1 -1
  72. package/dist/types/endpoints.js +1 -1
  73. package/dist/types/endpoints.js.map +1 -1
  74. package/dist/types/index.js +1 -1
  75. package/dist/utils/agent-ref-parser.js +1 -1
  76. package/dist/utils/chat-cache.js +1 -1
  77. package/dist/utils/colors.js +1 -1
  78. package/dist/utils/command-output.js +1 -1
  79. package/dist/utils/constants.js +1 -1
  80. package/dist/utils/diff.js +1 -1
  81. package/dist/utils/fields-display.js +1 -1
  82. package/dist/utils/file-permissions.js +1 -1
  83. package/dist/utils/format-detector.js +1 -1
  84. package/dist/utils/formatters.js +1 -1
  85. package/dist/utils/json-loader.js +1 -1
  86. package/dist/utils/llm-backup-utils.js +1 -1
  87. package/dist/utils/model-aliases.js +1 -1
  88. package/dist/utils/model-factors.js +1 -1
  89. package/dist/utils/option-validation.js +1 -1
  90. package/dist/utils/port.js +1 -1
  91. package/dist/utils/process.js +1 -1
  92. package/dist/utils/prompt.js +1 -1
  93. package/dist/utils/segment-path-parser.js +1 -1
  94. package/dist/utils/segment-ref-parser.js +1 -1
  95. package/dist/utils/spinner.js +1 -1
  96. package/dist/utils/sql-parser.js +1 -1
  97. package/dist/utils/sse-parser.js +1 -1
  98. package/dist/utils/string-utils.js +1 -1
  99. package/dist/utils/table-ref-parser.js +1 -1
  100. package/dist/utils/tdx-logger.js +1 -1
  101. package/dist/utils/tree-formatter.js +1 -1
  102. package/dist/utils/version-check.js +1 -1
  103. package/dist/utils/workflow-utils.js +1 -1
  104. package/package.json +1 -1
@@ -1 +1 @@
1
- function a82_0x59fe(_0x1f1833,_0x257668){const _0x3651c4=a82_0x3651();return a82_0x59fe=function(_0x59fe39,_0x2567a6){_0x59fe39=_0x59fe39-0xa6;let _0x29e983=_0x3651c4[_0x59fe39];return _0x29e983;},a82_0x59fe(_0x1f1833,_0x257668);}(function(_0x50b97b,_0x2d7e63){const _0x566864=a82_0x59fe,_0x4b88f6=_0x50b97b();while(!![]){try{const _0x4b6f4e=-parseInt(_0x566864(0xc5))/0x1*(-parseInt(_0x566864(0xb7))/0x2)+-parseInt(_0x566864(0xcd))/0x3*(-parseInt(_0x566864(0xcf))/0x4)+parseInt(_0x566864(0xd4))/0x5+parseInt(_0x566864(0xc2))/0x6+-parseInt(_0x566864(0xad))/0x7+parseInt(_0x566864(0xbe))/0x8*(parseInt(_0x566864(0xc4))/0x9)+-parseInt(_0x566864(0xcc))/0xa*(parseInt(_0x566864(0xbc))/0xb);if(_0x4b6f4e===_0x2d7e63)break;else _0x4b88f6['push'](_0x4b88f6['shift']());}catch(_0x1591e9){_0x4b88f6['push'](_0x4b88f6['shift']());}}}(a82_0x3651,0x4f31e));function a82_0x3651(){const _0x494897=['1320888aXqzkI','Attributes','27ZPjjJl','22241arAFjt','Behaviors','error','map','setJobId','entries','trim','10vteELa','6hiJRbq','behavior','512188GVOPgV','verbose','sort','length','columns','2458865pQJZZN','\x20\x20\x20\x20','size','localeCompare','type','behaviorName','get','data','dim','3918971bSdupB','Schema\x20query:\x0a','default','push','parentColumn','varchar','source','execute','name','column_name','12ljQXtD','attribute','parentTableName','YES','startsWith','8209399iUtTMc','information_schema','1410888gyBpDH','filter','key','\x0a)\x20AS\x20segment_query\x20LIMIT\x200'];a82_0x3651=function(){return _0x494897;};return a82_0x3651();}import a82_0x11d25d from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x536bff){const _0x2ef23a=a82_0x59fe,_0x2ed330=_0x536bff[_0x2ef23a(0xd3)][_0x2ef23a(0xc8)](_0x188987=>({'column_name':_0x188987[_0x2ef23a(0xb5)],'column_type':_0x188987[_0x2ef23a(0xa8)],'null':_0x2ef23a(0xba),'key':null,'default':null,'extra':null}));return{..._0x536bff,'columns':[{'name':_0x2ef23a(0xb6),'type':'varchar'},{'name':'column_type','type':'varchar'},{'name':'null','type':_0x2ef23a(0xb2)},{'name':_0x2ef23a(0xc0),'type':'varchar'},{'name':_0x2ef23a(0xaf),'type':'varchar'},{'name':'extra','type':'varchar'}],'data':_0x2ed330};}export async function executeSchemaQuery(_0x4a0ee9,_0xcf6852,_0x4896b9){const _0x2d1f77=a82_0x59fe,_0x3edc80=_0x4a0ee9[_0x2d1f77(0xcb)]()['replace'](/;+$/,''),_0x115c34='SELECT\x20*\x20FROM\x20(\x0a'+_0x3edc80+_0x2d1f77(0xc1);_0x4896b9[_0x2d1f77(0xd0)]&&console[_0x2d1f77(0xc7)](_0x2d1f77(0xae)+_0x115c34);const _0x4d0edb=await withQuerySpinner('Fetching\x20schema...',async _0x58d16a=>{const _0x3fced3=_0x2d1f77,_0x351fca=await _0xcf6852['query'][_0x3fced3(0xb4)](_0x115c34,{'catalog':'td','schema':_0x3fced3(0xbd),'onJobId':_0x1e00ac=>{const _0x22e180=_0x3fced3;_0x58d16a[_0x22e180(0xc9)](_0x1e00ac);}});return _0x351fca;},{'verbose':_0x4896b9[_0x2d1f77(0xd0)]});return buildSchemaResult(_0x4d0edb[_0x2d1f77(0xab)]);}export function displayFieldsHumanReadable(_0x33b8a6,_0x44373e){const _0xd5190a=a82_0x59fe,_0x272cf4=_0x33b8a6[_0xd5190a(0xbf)](_0xca9516=>_0xca9516[_0xd5190a(0xb3)]===_0xd5190a(0xb8)),_0x3c2158=_0x33b8a6['filter'](_0xd17fbf=>_0xd17fbf[_0xd5190a(0xb3)]===_0xd5190a(0xce)),_0x3a98f1=new Map();for(const _0x34d425 of _0x272cf4){const _0x1255e5=_0x34d425[_0xd5190a(0xb9)]||'Unknown',_0x34eebb=_0x3a98f1[_0xd5190a(0xaa)](_0x1255e5)||[];_0x34eebb[_0xd5190a(0xb0)](_0x34d425),_0x3a98f1['set'](_0x1255e5,_0x34eebb);}const _0x34040b=new Map();for(const _0x3a58a8 of _0x3c2158){const _0x1170b6=_0x3a58a8[_0xd5190a(0xa9)]||'Unknown',_0x5c27ff=_0x34040b[_0xd5190a(0xaa)](_0x1170b6)||[];_0x5c27ff[_0xd5190a(0xb0)](_0x3a58a8),_0x34040b['set'](_0x1170b6,_0x5c27ff);}console['error']('\x0a'+a82_0x11d25d['bold'](_0x44373e));if(_0x3a98f1['size']>0x0){console[_0xd5190a(0xc7)]('\x0a'+a82_0x11d25d[_0xd5190a(0xac)](_0xd5190a(0xc3)));const _0x207650=[..._0x3a98f1[_0xd5190a(0xca)]()][_0xd5190a(0xd1)]((_0x50389b,_0x5ee71b)=>_0x50389b[0x0]['localeCompare'](_0x5ee71b[0x0]));for(const [_0x1e7d0f,_0x3c1a47]of _0x207650){console[_0xd5190a(0xc7)]('\x20\x20'+a82_0x11d25d['bold'](_0x1e7d0f));const _0x11428c=[..._0x3c1a47][_0xd5190a(0xd1)]((_0x269361,_0x2d9bd0)=>_0x269361[_0xd5190a(0xb5)][_0xd5190a(0xa7)](_0x2d9bd0[_0xd5190a(0xb5)]));for(const _0x2a83a3 of _0x11428c){const _0x378cf9=_0x2a83a3[_0xd5190a(0xb1)]&&_0x2a83a3[_0xd5190a(0xb1)]!==_0x2a83a3['name']?'\x20'+a82_0x11d25d[_0xd5190a(0xac)]('('+_0x2a83a3['parentColumn']+')'):'';console[_0xd5190a(0xc7)](_0xd5190a(0xd5)+_0x2a83a3['name']+_0x378cf9+':\x20'+a82_0x11d25d['cyan'](_0x2a83a3[_0xd5190a(0xa8)]));}}}if(_0x34040b[_0xd5190a(0xa6)]>0x0){console['error']('\x0a'+a82_0x11d25d[_0xd5190a(0xac)](_0xd5190a(0xc6)));const _0x19283a=[..._0x34040b[_0xd5190a(0xca)]()][_0xd5190a(0xd1)]((_0x57067f,_0x3e82c2)=>_0x57067f[0x0]['localeCompare'](_0x3e82c2[0x0]));for(const [_0x50840f,_0x286960]of _0x19283a){const _0x27962f=_0x286960[0x0],_0x3df54b=_0x27962f?.[_0xd5190a(0xb9)]||'';console[_0xd5190a(0xc7)]('\x20\x20'+a82_0x11d25d['bold'](_0x50840f)+(_0x3df54b?'\x20'+a82_0x11d25d[_0xd5190a(0xac)]('('+_0x3df54b+')'):''));const _0x5f0a9e=[..._0x286960][_0xd5190a(0xd1)]((_0x1994e3,_0x1892e1)=>_0x1994e3[_0xd5190a(0xb5)][_0xd5190a(0xa7)](_0x1892e1[_0xd5190a(0xb5)]));for(const _0x2c64e7 of _0x5f0a9e){const _0x58e8dd=_0x2c64e7[_0xd5190a(0xb5)][_0xd5190a(0xbb)](_0x50840f+'.')?_0x2c64e7[_0xd5190a(0xb5)]['slice'](_0x50840f[_0xd5190a(0xd2)]+0x1):_0x2c64e7[_0xd5190a(0xb5)],_0xd1584d=_0x2c64e7[_0xd5190a(0xb1)]&&_0x2c64e7[_0xd5190a(0xb1)]!==_0x58e8dd?'\x20'+a82_0x11d25d[_0xd5190a(0xac)]('('+_0x2c64e7[_0xd5190a(0xb1)]+')'):'';console[_0xd5190a(0xc7)](_0xd5190a(0xd5)+_0x58e8dd+_0xd1584d+':\x20'+a82_0x11d25d['cyan'](_0x2c64e7[_0xd5190a(0xa8)]));}}}console[_0xd5190a(0xc7)]('');}
1
+ function a82_0xbe4e(_0x36b0a1,_0x5b0d00){const _0xa6294e=a82_0xa629();return a82_0xbe4e=function(_0xbe4e47,_0x366d35){_0xbe4e47=_0xbe4e47-0xbf;let _0xb85ccd=_0xa6294e[_0xbe4e47];return _0xb85ccd;},a82_0xbe4e(_0x36b0a1,_0x5b0d00);}(function(_0x47b4cb,_0x38ae00){const _0x299817=a82_0xbe4e,_0x8e74df=_0x47b4cb();while(!![]){try{const _0x4f2d81=-parseInt(_0x299817(0xc7))/0x1+parseInt(_0x299817(0xc5))/0x2*(-parseInt(_0x299817(0xe5))/0x3)+-parseInt(_0x299817(0xc6))/0x4+parseInt(_0x299817(0xca))/0x5*(-parseInt(_0x299817(0xcf))/0x6)+parseInt(_0x299817(0xd9))/0x7+-parseInt(_0x299817(0xcb))/0x8+parseInt(_0x299817(0xda))/0x9;if(_0x4f2d81===_0x38ae00)break;else _0x8e74df['push'](_0x8e74df['shift']());}catch(_0x4efb00){_0x8e74df['push'](_0x8e74df['shift']());}}}(a82_0xa629,0x9d2a8));import a82_0x5a46b from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x50d54e){const _0x2768d4=a82_0xbe4e,_0x44105b=_0x50d54e['columns'][_0x2768d4(0xe1)](_0x28598b=>({'column_name':_0x28598b[_0x2768d4(0xdc)],'column_type':_0x28598b[_0x2768d4(0xde)],'null':_0x2768d4(0xd5),'key':null,'default':null,'extra':null}));return{..._0x50d54e,'columns':[{'name':_0x2768d4(0xd1),'type':_0x2768d4(0xc9)},{'name':'column_type','type':_0x2768d4(0xc9)},{'name':'null','type':_0x2768d4(0xc9)},{'name':'key','type':_0x2768d4(0xc9)},{'name':_0x2768d4(0xd4),'type':_0x2768d4(0xc9)},{'name':_0x2768d4(0xf0),'type':_0x2768d4(0xc9)}],'data':_0x44105b};}export async function executeSchemaQuery(_0x2acd60,_0x111c83,_0x20153b){const _0x1b937b=a82_0xbe4e,_0xb908e1=_0x2acd60[_0x1b937b(0xf2)]()[_0x1b937b(0xeb)](/;+$/,''),_0x4b470e=_0x1b937b(0xc3)+_0xb908e1+_0x1b937b(0xdf);_0x20153b[_0x1b937b(0xd6)]&&console[_0x1b937b(0xe6)](_0x1b937b(0xdd)+_0x4b470e);const _0x465667=await withQuerySpinner(_0x1b937b(0xc0),async _0x3d1c0d=>{const _0x1d7dc1=_0x1b937b,_0x4ea001=await _0x111c83[_0x1d7dc1(0xcd)][_0x1d7dc1(0xd3)](_0x4b470e,{'catalog':'td','schema':_0x1d7dc1(0xe9),'onJobId':_0x235657=>{const _0x178d5d=_0x1d7dc1;_0x3d1c0d[_0x178d5d(0xc4)](_0x235657);}});return _0x4ea001;},{'verbose':_0x20153b[_0x1b937b(0xd6)]});return buildSchemaResult(_0x465667[_0x1b937b(0xe3)]);}export function displayFieldsHumanReadable(_0x535e0d,_0xc955be){const _0x17425f=a82_0xbe4e,_0x5b0f26=_0x535e0d['filter'](_0x5e13aa=>_0x5e13aa[_0x17425f(0xea)]==='attribute'),_0x5bfbf9=_0x535e0d[_0x17425f(0xce)](_0x5232f2=>_0x5232f2[_0x17425f(0xea)]===_0x17425f(0xe8)),_0x359006=new Map();for(const _0x38e779 of _0x5b0f26){const _0x5723eb=_0x38e779[_0x17425f(0xf1)]||_0x17425f(0xe0),_0xcf4dbb=_0x359006[_0x17425f(0xee)](_0x5723eb)||[];_0xcf4dbb[_0x17425f(0xe2)](_0x38e779),_0x359006[_0x17425f(0xe4)](_0x5723eb,_0xcf4dbb);}const _0x277fbd=new Map();for(const _0x2e9056 of _0x5bfbf9){const _0x4aaa29=_0x2e9056[_0x17425f(0xec)]||_0x17425f(0xe0),_0x2449d0=_0x277fbd[_0x17425f(0xee)](_0x4aaa29)||[];_0x2449d0[_0x17425f(0xe2)](_0x2e9056),_0x277fbd[_0x17425f(0xe4)](_0x4aaa29,_0x2449d0);}console['error']('\x0a'+a82_0x5a46b['bold'](_0xc955be));if(_0x359006[_0x17425f(0xef)]>0x0){console[_0x17425f(0xe6)]('\x0a'+a82_0x5a46b[_0x17425f(0xbf)](_0x17425f(0xd2)));const _0x49759c=[..._0x359006[_0x17425f(0xd8)]()]['sort']((_0x51fca8,_0x5a3506)=>_0x51fca8[0x0]['localeCompare'](_0x5a3506[0x0]));for(const [_0x1617fc,_0x13c265]of _0x49759c){console[_0x17425f(0xe6)]('\x20\x20'+a82_0x5a46b[_0x17425f(0xdb)](_0x1617fc));const _0x29272b=[..._0x13c265]['sort']((_0x327241,_0x52a624)=>_0x327241['name'][_0x17425f(0xcc)](_0x52a624['name']));for(const _0x487d09 of _0x29272b){const _0x5a70be=_0x487d09[_0x17425f(0xd7)]&&_0x487d09[_0x17425f(0xd7)]!==_0x487d09[_0x17425f(0xdc)]?'\x20'+a82_0x5a46b['dim']('('+_0x487d09[_0x17425f(0xd7)]+')'):'';console[_0x17425f(0xe6)]('\x20\x20\x20\x20'+_0x487d09['name']+_0x5a70be+':\x20'+a82_0x5a46b[_0x17425f(0xc1)](_0x487d09['type']));}}}if(_0x277fbd[_0x17425f(0xef)]>0x0){console[_0x17425f(0xe6)]('\x0a'+a82_0x5a46b[_0x17425f(0xbf)](_0x17425f(0xc2)));const _0x4b0792=[..._0x277fbd[_0x17425f(0xd8)]()][_0x17425f(0xe7)]((_0x4082a5,_0x4e20f1)=>_0x4082a5[0x0][_0x17425f(0xcc)](_0x4e20f1[0x0]));for(const [_0x7cf8cf,_0x53eea0]of _0x4b0792){const _0x9cf54d=_0x53eea0[0x0],_0x1428c5=_0x9cf54d?.['parentTableName']||'';console[_0x17425f(0xe6)]('\x20\x20'+a82_0x5a46b[_0x17425f(0xdb)](_0x7cf8cf)+(_0x1428c5?'\x20'+a82_0x5a46b[_0x17425f(0xbf)]('('+_0x1428c5+')'):''));const _0x2c83b4=[..._0x53eea0][_0x17425f(0xe7)]((_0x4fddb4,_0x2045a4)=>_0x4fddb4['name'][_0x17425f(0xcc)](_0x2045a4['name']));for(const _0x19b870 of _0x2c83b4){const _0x91f637=_0x19b870[_0x17425f(0xdc)][_0x17425f(0xed)](_0x7cf8cf+'.')?_0x19b870[_0x17425f(0xdc)][_0x17425f(0xf3)](_0x7cf8cf[_0x17425f(0xd0)]+0x1):_0x19b870[_0x17425f(0xdc)],_0x4249c4=_0x19b870[_0x17425f(0xd7)]&&_0x19b870[_0x17425f(0xd7)]!==_0x91f637?'\x20'+a82_0x5a46b['dim']('('+_0x19b870[_0x17425f(0xd7)]+')'):'';console['error'](_0x17425f(0xc8)+_0x91f637+_0x4249c4+':\x20'+a82_0x5a46b['cyan'](_0x19b870[_0x17425f(0xde)]));}}}console[_0x17425f(0xe6)]('');}function a82_0xa629(){const _0x3666b0=['localeCompare','query','filter','22242lZFwMu','length','column_name','Attributes','execute','default','YES','verbose','parentColumn','entries','4662182FDoyWT','28239102lGQdgK','bold','name','Schema\x20query:\x0a','type','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','Unknown','map','push','data','set','7689mhAtGz','error','sort','behavior','information_schema','source','replace','behaviorName','startsWith','get','size','extra','parentTableName','trim','slice','dim','Fetching\x20schema...','cyan','Behaviors','SELECT\x20*\x20FROM\x20(\x0a','setJobId','226qEouxf','4450608kzvPEw','369508sFqgyW','\x20\x20\x20\x20','varchar','1120kJPdOf','4462440RYcdtW'];a82_0xa629=function(){return _0x3666b0;};return a82_0xa629();}
@@ -1 +1 @@
1
- function a83_0x31ab(){const _0x2146ca=['toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1977387tGwNcB','343125NovUGj','dirname','3480WmxBxP','12355oBbFtA','mode','2aCigLc','writeFileSync','warn','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.',').\x20','statSync','2399864vZIkQG','existsSync','4247040fNtEdo','Warning:\x20','2220273FlDsNH','550170asyJdW','chmodSync','60tgXnst'];a83_0x31ab=function(){return _0x2146ca;};return a83_0x31ab();}(function(_0x1836c6,_0x1f0886){const _0x298c5f=a83_0x1a8b,_0x42702b=_0x1836c6();while(!![]){try{const _0x3e8194=-parseInt(_0x298c5f(0x116))/0x1+parseInt(_0x298c5f(0x121))/0x2*(parseInt(_0x298c5f(0x11b))/0x3)+parseInt(_0x298c5f(0x128))/0x4+parseInt(_0x298c5f(0x11c))/0x5*(parseInt(_0x298c5f(0x118))/0x6)+-parseInt(_0x298c5f(0x11f))/0x7*(parseInt(_0x298c5f(0x11e))/0x8)+parseInt(_0x298c5f(0x115))/0x9+-parseInt(_0x298c5f(0x113))/0xa;if(_0x3e8194===_0x1f0886)break;else _0x42702b['push'](_0x42702b['shift']());}catch(_0x5174c2){_0x42702b['push'](_0x42702b['shift']());}}}(a83_0x31ab,0x6db71));import*as a83_0x12a4a2 from'node:fs';import*as a83_0x40af7a from'node:path';function a83_0x1a8b(_0xc32a89,_0x14f9a2){const _0x31ab79=a83_0x31ab();return a83_0x1a8b=function(_0x1a8bfe,_0x521982){_0x1a8bfe=_0x1a8bfe-0x112;let _0x11df67=_0x31ab79[_0x1a8bfe];return _0x11df67;},a83_0x1a8b(_0xc32a89,_0x14f9a2);}export function setSecureFilePermissions(_0x416408){const _0x2c60e3=a83_0x1a8b;try{a83_0x12a4a2[_0x2c60e3(0x117)](_0x416408,0x180);}catch{console[_0x2c60e3(0x123)](_0x2c60e3(0x11a)+_0x416408);}}export function setSecureDirectoryPermissions(_0x3265ab){const _0x252004=a83_0x1a8b;try{a83_0x12a4a2[_0x252004(0x117)](_0x3265ab,0x1c0);}catch{console[_0x252004(0x123)](_0x252004(0x11a)+_0x3265ab);}}export function createSecureDirectory(_0x52e9c9){const _0x46fad5=a83_0x1a8b;!a83_0x12a4a2[_0x46fad5(0x112)](_0x52e9c9)&&(a83_0x12a4a2[_0x46fad5(0x124)](_0x52e9c9,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x52e9c9));}export function validateSecureFilePermissions(_0xb51c69){const _0x403aa3=a83_0x1a8b;try{const _0x153878=a83_0x12a4a2[_0x403aa3(0x127)](_0xb51c69),_0x59fe7e=_0x153878[_0x403aa3(0x120)]&0x1ff,_0x3fe803=(_0x59fe7e&0x3f)!==0x0;if(_0x3fe803)return console[_0x403aa3(0x123)](_0x403aa3(0x114)+_0xb51c69+'\x20has\x20insecure\x20permissions\x20('+_0x59fe7e[_0x403aa3(0x119)](0x8)+_0x403aa3(0x126)+_0x403aa3(0x125)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x491f58,_0x4e08d4){const _0x3fca61=a83_0x1a8b,_0x39ef45=a83_0x40af7a[_0x3fca61(0x11d)](_0x491f58);createSecureDirectory(_0x39ef45),a83_0x12a4a2[_0x3fca61(0x122)](_0x491f58,_0x4e08d4,{'mode':0x180}),setSecureFilePermissions(_0x491f58);}
1
+ (function(_0x23e4ed,_0x57471b){const _0xe5f6aa=a83_0x2e35,_0x51222c=_0x23e4ed();while(!![]){try{const _0xbcedc0=-parseInt(_0xe5f6aa(0x1a7))/0x1+-parseInt(_0xe5f6aa(0x1aa))/0x2*(-parseInt(_0xe5f6aa(0x1ac))/0x3)+-parseInt(_0xe5f6aa(0x1a8))/0x4+-parseInt(_0xe5f6aa(0x1a3))/0x5+-parseInt(_0xe5f6aa(0x19e))/0x6*(-parseInt(_0xe5f6aa(0x19a))/0x7)+-parseInt(_0xe5f6aa(0x1a5))/0x8*(-parseInt(_0xe5f6aa(0x1ab))/0x9)+parseInt(_0xe5f6aa(0x19b))/0xa*(parseInt(_0xe5f6aa(0x19f))/0xb);if(_0xbcedc0===_0x57471b)break;else _0x51222c['push'](_0x51222c['shift']());}catch(_0x3aafb5){_0x51222c['push'](_0x51222c['shift']());}}}(a83_0x1488,0xae9c6));function a83_0x1488(){const _0x2af5f0=['7216bgljyb','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','749513ehLUUA','4555848cYlnwy','Should\x20be\x200600\x20or\x20more\x20restrictive.','104582ragwnk','11322xqpszW','57zNJhRU','dirname','statSync','mkdirSync','63RbPElS','755630mHvAlr','mode','toString','309486CGaiyn','11clGlkL','existsSync','writeFileSync','chmodSync','321780FLIcKY','warn'];a83_0x1488=function(){return _0x2af5f0;};return a83_0x1488();}import*as a83_0x5df5a9 from'node:fs';import*as a83_0x21b374 from'node:path';export function setSecureFilePermissions(_0x4d6353){const _0xd4fd06=a83_0x2e35;try{a83_0x5df5a9[_0xd4fd06(0x1a2)](_0x4d6353,0x180);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x4d6353);}}export function setSecureDirectoryPermissions(_0x5e6f67){const _0x51936b=a83_0x2e35;try{a83_0x5df5a9[_0x51936b(0x1a2)](_0x5e6f67,0x1c0);}catch{console[_0x51936b(0x1a4)](_0x51936b(0x1a6)+_0x5e6f67);}}export function createSecureDirectory(_0x62f084){const _0x32527e=a83_0x2e35;!a83_0x5df5a9[_0x32527e(0x1a0)](_0x62f084)&&(a83_0x5df5a9[_0x32527e(0x199)](_0x62f084,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x62f084));}function a83_0x2e35(_0x5f2e2a,_0x35816b){const _0x148822=a83_0x1488();return a83_0x2e35=function(_0x2e352e,_0x1a8447){_0x2e352e=_0x2e352e-0x198;let _0x1edda1=_0x148822[_0x2e352e];return _0x1edda1;},a83_0x2e35(_0x5f2e2a,_0x35816b);}export function validateSecureFilePermissions(_0x20c220){const _0x3e6871=a83_0x2e35;try{const _0x1779e7=a83_0x5df5a9[_0x3e6871(0x198)](_0x20c220),_0x55f02d=_0x1779e7[_0x3e6871(0x19c)]&0x1ff,_0xbb1a03=(_0x55f02d&0x3f)!==0x0;if(_0xbb1a03)return console[_0x3e6871(0x1a4)]('Warning:\x20'+_0x20c220+'\x20has\x20insecure\x20permissions\x20('+_0x55f02d[_0x3e6871(0x19d)](0x8)+').\x20'+_0x3e6871(0x1a9)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3c61af,_0x316a56){const _0x1dca9e=a83_0x2e35,_0x17261b=a83_0x21b374[_0x1dca9e(0x1ad)](_0x3c61af);createSecureDirectory(_0x17261b),a83_0x5df5a9[_0x1dca9e(0x1a1)](_0x3c61af,_0x316a56,{'mode':0x180}),setSecureFilePermissions(_0x3c61af);}
@@ -1 +1 @@
1
- (function(_0x317d27,_0x3a39fa){const _0xbc631f=a84_0x1ae5,_0x40492a=_0x317d27();while(!![]){try{const _0x4a2176=parseInt(_0xbc631f(0x1e0))/0x1+parseInt(_0xbc631f(0x1e3))/0x2*(-parseInt(_0xbc631f(0x1e1))/0x3)+parseInt(_0xbc631f(0x1ee))/0x4*(-parseInt(_0xbc631f(0x1e6))/0x5)+parseInt(_0xbc631f(0x1df))/0x6+parseInt(_0xbc631f(0x1e2))/0x7*(-parseInt(_0xbc631f(0x1ed))/0x8)+parseInt(_0xbc631f(0x1e5))/0x9*(parseInt(_0xbc631f(0x1eb))/0xa)+parseInt(_0xbc631f(0x1e8))/0xb;if(_0x4a2176===_0x3a39fa)break;else _0x40492a['push'](_0x40492a['shift']());}catch(_0x28ffb8){_0x40492a['push'](_0x40492a['shift']());}}}(a84_0x267f,0xb49a1));export function detectFormatFromExtension(_0x19b880){const _0x503af0=a84_0x1ae5,_0x36ea14=_0x19b880[_0x503af0(0x1e7)]()['split']('.')['pop']();switch(_0x36ea14){case _0x503af0(0x1e4):return _0x503af0(0x1e4);case _0x503af0(0x1ef):return _0x503af0(0x1ef);case _0x503af0(0x1ec):case _0x503af0(0x1e9):return _0x503af0(0x1ec);case _0x503af0(0x1f0):case'text':return _0x503af0(0x1ea);default:return undefined;}}function a84_0x267f(){const _0x21d479=['626hgklLK','json','9fuhXDJ','50980mfxkuN','toLowerCase','13368839bPYHMG','tab','table','10078230adCEsJ','tsv','812872FYwsrK','324IhBbpk','jsonl','txt','2469858GBhjbN','676569CBHuie','12837GGcFeA','28wRrKZW'];a84_0x267f=function(){return _0x21d479;};return a84_0x267f();}function a84_0x1ae5(_0x2825ae,_0x52c163){const _0x267f39=a84_0x267f();return a84_0x1ae5=function(_0x1ae52c,_0x5129f9){_0x1ae52c=_0x1ae52c-0x1df;let _0x47b113=_0x267f39[_0x1ae52c];return _0x47b113;},a84_0x1ae5(_0x2825ae,_0x52c163);}export function resolveOutputFormat(_0x1a8444,_0x5146c8,_0x113ad9){if(_0x1a8444)return _0x1a8444;if(_0x5146c8){const _0xe2ac65=detectFormatFromExtension(_0x5146c8);if(_0xe2ac65)return _0xe2ac65;}return _0x113ad9;}
1
+ (function(_0xb7ea0e,_0x5c768e){const _0x1721a7=a84_0x338f,_0x2cd746=_0xb7ea0e();while(!![]){try{const _0x312ff3=parseInt(_0x1721a7(0x125))/0x1+-parseInt(_0x1721a7(0x132))/0x2*(-parseInt(_0x1721a7(0x12d))/0x3)+-parseInt(_0x1721a7(0x131))/0x4+-parseInt(_0x1721a7(0x133))/0x5*(-parseInt(_0x1721a7(0x12e))/0x6)+parseInt(_0x1721a7(0x126))/0x7+-parseInt(_0x1721a7(0x12a))/0x8+-parseInt(_0x1721a7(0x12f))/0x9;if(_0x312ff3===_0x5c768e)break;else _0x2cd746['push'](_0x2cd746['shift']());}catch(_0x402fba){_0x2cd746['push'](_0x2cd746['shift']());}}}(a84_0x1545,0x7cc90));function a84_0x1545(){const _0x2066d3=['5081472TOTCkD','jsonl','json','36QFFCcw','32718GtNAfo','16737516hLSAXq','split','760096KhZNyh','98944ZVzQxt','780NWliml','pop','854053PJDCFI','6283669KTnLtJ','tsv','text','table'];a84_0x1545=function(){return _0x2066d3;};return a84_0x1545();}function a84_0x338f(_0x544d21,_0x547364){const _0x1545d8=a84_0x1545();return a84_0x338f=function(_0x338ff5,_0x16deb5){_0x338ff5=_0x338ff5-0x125;let _0x55eae2=_0x1545d8[_0x338ff5];return _0x55eae2;},a84_0x338f(_0x544d21,_0x547364);}export function detectFormatFromExtension(_0x28da45){const _0x9eb1fc=a84_0x338f,_0x102750=_0x28da45['toLowerCase']()[_0x9eb1fc(0x130)]('.')[_0x9eb1fc(0x134)]();switch(_0x102750){case _0x9eb1fc(0x12c):return _0x9eb1fc(0x12c);case _0x9eb1fc(0x12b):return _0x9eb1fc(0x12b);case _0x9eb1fc(0x127):case'tab':return'tsv';case'txt':case _0x9eb1fc(0x128):return _0x9eb1fc(0x129);default:return undefined;}}export function resolveOutputFormat(_0x49d922,_0x19aecd,_0x5484bf){if(_0x49d922)return _0x49d922;if(_0x19aecd){const _0x3ec0e1=detectFormatFromExtension(_0x19aecd);if(_0x3ec0e1)return _0x3ec0e1;}return _0x5484bf;}
@@ -1 +1 @@
1
- (function(_0x3da911,_0x373687){const _0xde121e=a85_0x229f,_0x56d224=_0x3da911();while(!![]){try{const _0x4850a8=-parseInt(_0xde121e(0x189))/0x1*(parseInt(_0xde121e(0x17e))/0x2)+parseInt(_0xde121e(0x18f))/0x3+-parseInt(_0xde121e(0x174))/0x4*(-parseInt(_0xde121e(0x18c))/0x5)+-parseInt(_0xde121e(0x18b))/0x6*(parseInt(_0xde121e(0x178))/0x7)+parseInt(_0xde121e(0x16b))/0x8+parseInt(_0xde121e(0x17f))/0x9+-parseInt(_0xde121e(0x18e))/0xa*(parseInt(_0xde121e(0x16c))/0xb);if(_0x4850a8===_0x373687)break;else _0x56d224['push'](_0x56d224['shift']());}catch(_0x54cdaf){_0x56d224['push'](_0x56d224['shift']());}}}(a85_0x3d7c,0x717ff));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';function a85_0x3d7c(){const _0x39e62a=['replace','substring','forEach','\x20rows\x20(','370692XUypXw','5133339zVjOVK','object','columns','pow','\x20row','No\x20rows\x20returned','array','\x20shown)','repeat','slice','2GDSXeV','boolean','6rNYMMH','5ZJmwaB','tsv','30vLmDQd','407862mRVoWC','data','table','0\x20B','startsWith','jsonl','row','length','date','false','min','stringify','number','7034144SwsdjL','2499112oYBRGM','toString','stdout','map','push','toFixed','join','entries','456004SsmeIA','max','floor','long','1277017DyeIPK','log'];a85_0x3d7c=function(){return _0x39e62a;};return a85_0x3d7c();}import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x6df167=a85_0x229f;return process[_0x6df167(0x16e)][_0x6df167(0x181)]||Infinity;}export function formatAsTable(_0x39dcf9,_0x46d90b=DEFAULT_MAX_DISPLAY_ROWS,_0x2f66c0=![],_0x379a1a={}){const _0x5bdadf=a85_0x229f;if(_0x39dcf9[_0x5bdadf(0x190)][_0x5bdadf(0x165)]===0x0)return _0x5bdadf(0x184);const _0x54eb17=_0x39dcf9[_0x5bdadf(0x181)][_0x5bdadf(0x16f)](_0x4b4e8e=>_0x4b4e8e['name']),_0x55cbc4=_0x39dcf9['columns'][_0x5bdadf(0x16f)](_0x380c11=>simplifyType(_0x380c11['type'])),_0x68aadd=_0x39dcf9['data'][_0x5bdadf(0x188)](0x0,_0x46d90b),_0x481bd2=_0x39dcf9[_0x5bdadf(0x190)][_0x5bdadf(0x165)],_0x28582c=_0x481bd2>_0x46d90b,_0x1d23ac=[],_0x39599f=getTerminalWidth(),_0x59e5e1=_0x39599f!==Infinity,_0x1f245d=0x32;let _0x16b7ab=_0x54eb17[_0x5bdadf(0x16f)]((_0x24ba34,_0x25eda3)=>{const _0x5759a6=_0x5bdadf,_0x4e8e1a=stringWidth(_0x55cbc4[_0x25eda3]),_0x1b4e17=Math[_0x5759a6(0x175)](..._0x68aadd['map'](_0x5dc4c7=>{const _0x50552d=_0x5dc4c7[_0x24ba34];return stringWidth(formatValue(_0x50552d));})),_0x2070dd=Math[_0x5759a6(0x175)](stringWidth(_0x24ba34),_0x4e8e1a,_0x1b4e17);return _0x2f66c0?_0x2070dd:Math['min'](_0x2070dd,_0x1f245d);});if(_0x59e5e1&&!_0x2f66c0&&_0x54eb17[_0x5bdadf(0x165)]>0x0){const _0x22b912=_0xc2feeb=>{let _0x8db591=0x1;for(const _0x376721 of _0xc2feeb){_0x8db591+=_0x376721+0x3;}return _0x8db591+0x1;};let _0x5f3bc2=_0x22b912(_0x16b7ab);if(_0x5f3bc2>_0x39599f){const _0x2ec735=0x3;for(let _0x87798e=_0x16b7ab[_0x5bdadf(0x165)]-0x1;_0x87798e>=0x0;_0x87798e--){_0x5f3bc2=_0x22b912(_0x16b7ab);if(_0x5f3bc2<=_0x39599f)break;const _0x4bd31f=_0x16b7ab[_0x87798e],_0x3ec83b=_0x5f3bc2-_0x39599f,_0x222e40=_0x4bd31f-_0x2ec735,_0x397cbb=Math[_0x5bdadf(0x168)](_0x3ec83b,_0x222e40);_0x397cbb>0x0&&(_0x16b7ab[_0x87798e]=_0x4bd31f-_0x397cbb);}}}const _0x23ad12=_0x54eb17,_0x5a1f13=_0x55cbc4,_0x579e8c=_0x16b7ab,_0x5fafd2=_0x16b7ab;_0x1d23ac['push'](colorBorder('┌'+_0x5fafd2[_0x5bdadf(0x16f)](_0x12bfbf=>'─'['repeat'](_0x12bfbf+0x2))[_0x5bdadf(0x172)]('┬')+'┐',_0x379a1a));const _0x5ced88=_0x23ad12[_0x5bdadf(0x16f)]((_0xcb870b,_0x1df1fc)=>centerAlign(_0xcb870b,_0x579e8c[_0x1df1fc]));_0x1d23ac[_0x5bdadf(0x170)](colorBorder('│',_0x379a1a)+'\x20'+_0x5ced88[_0x5bdadf(0x172)]('\x20'+colorBorder('│',_0x379a1a)+'\x20')+'\x20'+colorBorder('│',_0x379a1a));const _0x2878ec=_0x5a1f13[_0x5bdadf(0x16f)]((_0x266a1f,_0x85775)=>colorType(centerAlign(_0x266a1f,_0x579e8c[_0x85775]),_0x379a1a));_0x1d23ac[_0x5bdadf(0x170)](colorBorder('│',_0x379a1a)+'\x20'+_0x2878ec['join']('\x20'+colorBorder('│',_0x379a1a)+'\x20')+'\x20'+colorBorder('│',_0x379a1a)),_0x1d23ac['push'](colorBorder('├'+_0x5fafd2[_0x5bdadf(0x16f)](_0x49522e=>'─'[_0x5bdadf(0x187)](_0x49522e+0x2))[_0x5bdadf(0x172)]('┼')+'┤',_0x379a1a));const _0x8750da=(_0x17362f,_0x131793)=>{const _0x5aa453=_0x5bdadf,_0x5ab06f=stringWidth(_0x17362f);if(_0x5ab06f<=_0x131793)return _0x17362f;let _0x3026aa=_0x17362f;while(stringWidth(_0x3026aa+'…')>_0x131793&&_0x3026aa[_0x5aa453(0x165)]>0x0){_0x3026aa=_0x3026aa[_0x5aa453(0x188)](0x0,-0x1);}return _0x3026aa+'…';};_0x68aadd[_0x5bdadf(0x17c)](_0x337455=>{const _0xa85bd5=_0x5bdadf,_0x51d0ce=_0x54eb17['map']((_0x51b9d9,_0x51e701)=>{const _0x251650=a85_0x229f,_0x59c9b3=_0x337455[_0x51b9d9],_0x36cbdb=formatValue(_0x59c9b3),_0x10c5bc=_0x579e8c[_0x51e701],_0x1b0f8c=_0x8750da(_0x36cbdb,_0x10c5bc),_0x397ea1=typeof _0x59c9b3===_0x251650(0x16a)||typeof _0x59c9b3==='string'&&/^-?\d+$/['test'](_0x59c9b3);return _0x397ea1?padStart(_0x1b0f8c,_0x10c5bc):padEnd(_0x1b0f8c,_0x10c5bc);});_0x1d23ac['push'](colorBorder('│',_0x379a1a)+'\x20'+_0x51d0ce[_0xa85bd5(0x172)]('\x20'+colorBorder('│',_0x379a1a)+'\x20')+'\x20'+colorBorder('│',_0x379a1a));});const _0x19f5fd=_0x5fafd2['reduce']((_0x12a3d9,_0x2c2216)=>_0x12a3d9+_0x2c2216+0x3,-0x1);_0x1d23ac[_0x5bdadf(0x170)](colorBorder('├'+_0x5fafd2[_0x5bdadf(0x16f)](_0x2d6f28=>'─'[_0x5bdadf(0x187)](_0x2d6f28+0x2))[_0x5bdadf(0x172)]('┴')+'┤',_0x379a1a));let _0x4773d6;_0x28582c?_0x4773d6=_0x481bd2+_0x5bdadf(0x17d)+_0x46d90b+_0x5bdadf(0x186):_0x4773d6=_0x481bd2+_0x5bdadf(0x183)+(_0x481bd2===0x1?'':'s');const _0x1ab273=_0x4773d6['padEnd'](_0x19f5fd-0x2);return _0x1d23ac[_0x5bdadf(0x170)](colorBorder('│',_0x379a1a)+'\x20'+_0x1ab273+'\x20'+colorBorder('│',_0x379a1a)),_0x1d23ac[_0x5bdadf(0x170)](colorBorder('└'+'─'[_0x5bdadf(0x187)](_0x19f5fd)+'┘',_0x379a1a)),_0x1d23ac['join']('\x0a');}function simplifyType(_0x453e2f){const _0x2cc3de=a85_0x229f,_0x3ce160={'varchar':'string','bigint':_0x2cc3de(0x177),'integer':'int','double':'double','boolean':'bool','date':_0x2cc3de(0x166),'timestamp':'timestamp','array':_0x2cc3de(0x185),'map':_0x2cc3de(0x16f),'row':_0x2cc3de(0x164)},_0xfb1f45=_0x453e2f['toLowerCase']();for(const [_0x1e6474,_0x5093a1]of Object[_0x2cc3de(0x173)](_0x3ce160)){if(_0xfb1f45[_0x2cc3de(0x193)](_0x1e6474))return _0x5093a1;}return _0x453e2f[_0x2cc3de(0x165)]>0xa?_0x453e2f[_0x2cc3de(0x17b)](0x0,0xa):_0x453e2f;}export function formatAsJSON(_0x315839,_0x160a03={}){const _0x3be8c7=a85_0x229f;if(_0x315839['data'][_0x3be8c7(0x165)]===0x0)return'[]';if(shouldUseColor(_0x160a03))return colorizeJSON(_0x315839[_0x3be8c7(0x190)],_0x160a03);const _0x5b65b9=_0x315839[_0x3be8c7(0x190)][_0x3be8c7(0x16f)](_0x57beb9=>'\x20\x20'+JSON[_0x3be8c7(0x169)](_0x57beb9));return'[\x0a'+_0x5b65b9[_0x3be8c7(0x172)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x2c5ff6,_0x81ce6={}){const _0x447de8=a85_0x229f;if(_0x2c5ff6[_0x447de8(0x190)][_0x447de8(0x165)]===0x0)return'';if(shouldUseColor(_0x81ce6))return _0x2c5ff6[_0x447de8(0x190)][_0x447de8(0x16f)](_0xee305d=>colorizeJSONCompact(_0xee305d,_0x81ce6))[_0x447de8(0x172)]('\x0a');return _0x2c5ff6[_0x447de8(0x190)][_0x447de8(0x16f)](_0x387937=>JSON[_0x447de8(0x169)](_0x387937))[_0x447de8(0x172)]('\x0a');}export function formatAsTSV(_0x29c336){const _0x5852d6=a85_0x229f;if(_0x29c336[_0x5852d6(0x190)][_0x5852d6(0x165)]===0x0)return'';const _0x40759e=[],_0x52b8aa=_0x29c336[_0x5852d6(0x181)][_0x5852d6(0x16f)](_0x2574bb=>_0x2574bb['name']);return _0x40759e[_0x5852d6(0x170)](_0x52b8aa[_0x5852d6(0x172)]('\x09')),_0x29c336['data'][_0x5852d6(0x17c)](_0x15b4d1=>{const _0x4e16f5=_0x5852d6,_0x316e79=_0x52b8aa['map'](_0x4a458a=>{const _0xd40a44=_0x15b4d1[_0x4a458a];return formatValueForTSV(_0xd40a44);});_0x40759e['push'](_0x316e79[_0x4e16f5(0x172)]('\x09'));}),_0x40759e[_0x5852d6(0x172)]('\x0a');}function formatValue(_0x1025fe){const _0x5d4fab=a85_0x229f;if(_0x1025fe===null||_0x1025fe===undefined)return'';if(typeof _0x1025fe==='string'){const _0x4f4916=_0x1025fe[_0x5d4fab(0x17a)](/\n/g,'\x5cn')[_0x5d4fab(0x17a)](/\r/g,'\x5cr')[_0x5d4fab(0x17a)](/\t/g,'\x5ct');return _0x4f4916;}if(typeof _0x1025fe===_0x5d4fab(0x16a))return String(_0x1025fe);if(typeof _0x1025fe===_0x5d4fab(0x18a))return _0x1025fe?'true':_0x5d4fab(0x167);if(_0x1025fe instanceof Date)return _0x1025fe['toISOString']();if(typeof _0x1025fe===_0x5d4fab(0x180))return JSON['stringify'](_0x1025fe);return String(_0x1025fe);}function formatValueForTSV(_0x4a9f2e){const _0xf769=a85_0x229f;if(_0x4a9f2e===null||_0x4a9f2e===undefined)return'';if(typeof _0x4a9f2e==='string')return _0x4a9f2e[_0xf769(0x17a)](/\t/g,'\x5ct')[_0xf769(0x17a)](/\n/g,'\x5cn');if(typeof _0x4a9f2e===_0xf769(0x16a)||typeof _0x4a9f2e===_0xf769(0x18a))return String(_0x4a9f2e);if(_0x4a9f2e instanceof Date)return _0x4a9f2e['toISOString']();if(typeof _0x4a9f2e==='object')return JSON[_0xf769(0x169)](_0x4a9f2e);return String(_0x4a9f2e);}export function formatQueryResult(_0x1527ff,_0x4bb75d){const _0x2a47f4=a85_0x229f;switch(_0x4bb75d){case _0x2a47f4(0x191):return formatAsTable(_0x1527ff);case'json':return formatAsJSON(_0x1527ff);case _0x2a47f4(0x163):return formatAsJSONL(_0x1527ff);case _0x2a47f4(0x18d):return formatAsTSV(_0x1527ff);default:return formatAsJSON(_0x1527ff);}}function a85_0x229f(_0x14acc2,_0x48a39e){const _0x3d7cdf=a85_0x3d7c();return a85_0x229f=function(_0x229f52,_0x592fab){_0x229f52=_0x229f52-0x163;let _0x43f4f3=_0x3d7cdf[_0x229f52];return _0x43f4f3;},a85_0x229f(_0x14acc2,_0x48a39e);}export function formatBytes(_0x495199){const _0x438460=a85_0x229f;if(_0x495199===0x0)return _0x438460(0x192);const _0x24becb=['B','KB','MB','GB','TB'],_0x2768cb=0x400,_0x36cfd1=Math[_0x438460(0x176)](Math[_0x438460(0x179)](_0x495199)/Math['log'](_0x2768cb)),_0x362a91=_0x495199/Math[_0x438460(0x182)](_0x2768cb,_0x36cfd1),_0x20be4b=_0x362a91>=0xa?0x1:0x2;return _0x362a91[_0x438460(0x171)](_0x20be4b)+'\x20'+_0x24becb[_0x36cfd1];}export function formatRows(_0x5025d9){const _0x720ca=a85_0x229f;if(_0x5025d9==null)return'-';if(_0x5025d9===0x0)return'0';if(_0x5025d9<0x3e8)return _0x5025d9[_0x720ca(0x16d)]();const _0x3ce492=['','K','M','B','T'],_0x4f828b=0x3e8,_0x2a6f88=Math[_0x720ca(0x176)](Math[_0x720ca(0x179)](_0x5025d9)/Math['log'](_0x4f828b)),_0x271a40=_0x5025d9/Math['pow'](_0x4f828b,_0x2a6f88),_0x26ea2e=_0x271a40>=0xa?0x1:0x2;return''+_0x271a40[_0x720ca(0x171)](_0x26ea2e)+_0x3ce492[_0x2a6f88];}
1
+ (function(_0x4662ce,_0x3e6984){const _0x342e62=a85_0x1f21,_0x41c846=_0x4662ce();while(!![]){try{const _0x4dec04=parseInt(_0x342e62(0x143))/0x1+parseInt(_0x342e62(0x11c))/0x2*(parseInt(_0x342e62(0x119))/0x3)+parseInt(_0x342e62(0x122))/0x4*(-parseInt(_0x342e62(0x130))/0x5)+-parseInt(_0x342e62(0x132))/0x6*(parseInt(_0x342e62(0x12f))/0x7)+-parseInt(_0x342e62(0x123))/0x8+parseInt(_0x342e62(0x138))/0x9*(parseInt(_0x342e62(0x113))/0xa)+parseInt(_0x342e62(0x12d))/0xb;if(_0x4dec04===_0x3e6984)break;else _0x41c846['push'](_0x41c846['shift']());}catch(_0x4ac453){_0x41c846['push'](_0x41c846['shift']());}}}(a85_0x2ae2,0x85ddf));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x47770c=a85_0x1f21;return process[_0x47770c(0x112)][_0x47770c(0x114)]||Infinity;}export function formatAsTable(_0x2c3bf1,_0xa1bd78=DEFAULT_MAX_DISPLAY_ROWS,_0x3cbb67=![],_0xecfb2a={}){const _0x596d12=a85_0x1f21;if(_0x2c3bf1[_0x596d12(0x11b)][_0x596d12(0x139)]===0x0)return'No\x20rows\x20returned';const _0x39939a=_0x2c3bf1[_0x596d12(0x114)][_0x596d12(0x136)](_0x147318=>_0x147318[_0x596d12(0x126)]),_0x26ac25=_0x2c3bf1['columns']['map'](_0x3382f9=>simplifyType(_0x3382f9['type'])),_0x5cb8ba=_0x2c3bf1[_0x596d12(0x11b)][_0x596d12(0x12e)](0x0,_0xa1bd78),_0x5c0207=_0x2c3bf1['data'][_0x596d12(0x139)],_0x37d145=_0x5c0207>_0xa1bd78,_0x1ea5bc=[],_0x419cf1=getTerminalWidth(),_0x1a4764=_0x419cf1!==Infinity,_0x413437=0x32;let _0x3710df=_0x39939a[_0x596d12(0x136)]((_0xa3ab05,_0x30bd82)=>{const _0x4cb96=_0x596d12,_0x33db57=stringWidth(_0x26ac25[_0x30bd82]),_0x2239fd=Math[_0x4cb96(0x131)](..._0x5cb8ba[_0x4cb96(0x136)](_0x580ede=>{const _0x79d4ee=_0x580ede[_0xa3ab05];return stringWidth(formatValue(_0x79d4ee));})),_0x559389=Math[_0x4cb96(0x131)](stringWidth(_0xa3ab05),_0x33db57,_0x2239fd);return _0x3cbb67?_0x559389:Math[_0x4cb96(0x115)](_0x559389,_0x413437);});if(_0x1a4764&&!_0x3cbb67&&_0x39939a[_0x596d12(0x139)]>0x0){const _0x202181=_0x1e05cc=>{let _0x57f013=0x1;for(const _0x5dd932 of _0x1e05cc){_0x57f013+=_0x5dd932+0x3;}return _0x57f013+0x1;};let _0x29fa5f=_0x202181(_0x3710df);if(_0x29fa5f>_0x419cf1){const _0x2a67af=0x3;for(let _0x3621c5=_0x3710df[_0x596d12(0x139)]-0x1;_0x3621c5>=0x0;_0x3621c5--){_0x29fa5f=_0x202181(_0x3710df);if(_0x29fa5f<=_0x419cf1)break;const _0x566c1d=_0x3710df[_0x3621c5],_0x41580a=_0x29fa5f-_0x419cf1,_0x2a1d03=_0x566c1d-_0x2a67af,_0x38e31f=Math['min'](_0x41580a,_0x2a1d03);_0x38e31f>0x0&&(_0x3710df[_0x3621c5]=_0x566c1d-_0x38e31f);}}}const _0x4f40b7=_0x39939a,_0x525f5d=_0x26ac25,_0x303923=_0x3710df,_0x7155ac=_0x3710df;_0x1ea5bc[_0x596d12(0x135)](colorBorder('┌'+_0x7155ac[_0x596d12(0x136)](_0x22a58e=>'─'[_0x596d12(0x120)](_0x22a58e+0x2))[_0x596d12(0x110)]('┬')+'┐',_0xecfb2a));const _0x8117bf=_0x4f40b7[_0x596d12(0x136)]((_0x509615,_0x43384f)=>centerAlign(_0x509615,_0x303923[_0x43384f]));_0x1ea5bc[_0x596d12(0x135)](colorBorder('│',_0xecfb2a)+'\x20'+_0x8117bf['join']('\x20'+colorBorder('│',_0xecfb2a)+'\x20')+'\x20'+colorBorder('│',_0xecfb2a));const _0x4b88c8=_0x525f5d[_0x596d12(0x136)]((_0x21a14b,_0x5d1a62)=>colorType(centerAlign(_0x21a14b,_0x303923[_0x5d1a62]),_0xecfb2a));_0x1ea5bc['push'](colorBorder('│',_0xecfb2a)+'\x20'+_0x4b88c8[_0x596d12(0x110)]('\x20'+colorBorder('│',_0xecfb2a)+'\x20')+'\x20'+colorBorder('│',_0xecfb2a)),_0x1ea5bc['push'](colorBorder('├'+_0x7155ac[_0x596d12(0x136)](_0x5413a7=>'─'['repeat'](_0x5413a7+0x2))[_0x596d12(0x110)]('┼')+'┤',_0xecfb2a));const _0x7e6605=(_0xdf01c1,_0x57a47b)=>{const _0x461fbe=_0x596d12,_0x315406=stringWidth(_0xdf01c1);if(_0x315406<=_0x57a47b)return _0xdf01c1;let _0x476900=_0xdf01c1;while(stringWidth(_0x476900+'…')>_0x57a47b&&_0x476900[_0x461fbe(0x139)]>0x0){_0x476900=_0x476900[_0x461fbe(0x12e)](0x0,-0x1);}return _0x476900+'…';};_0x5cb8ba['forEach'](_0x2fa104=>{const _0x432bab=_0x596d12,_0x3f2a49=_0x39939a['map']((_0x134914,_0x510f09)=>{const _0xff2f56=a85_0x1f21,_0x1ac984=_0x2fa104[_0x134914],_0x5cf050=formatValue(_0x1ac984),_0x5c7cb3=_0x303923[_0x510f09],_0x24e021=_0x7e6605(_0x5cf050,_0x5c7cb3),_0x1d687d=typeof _0x1ac984==='number'||typeof _0x1ac984==='string'&&/^-?\d+$/[_0xff2f56(0x13f)](_0x1ac984);return _0x1d687d?padStart(_0x24e021,_0x5c7cb3):padEnd(_0x24e021,_0x5c7cb3);});_0x1ea5bc[_0x432bab(0x135)](colorBorder('│',_0xecfb2a)+'\x20'+_0x3f2a49[_0x432bab(0x110)]('\x20'+colorBorder('│',_0xecfb2a)+'\x20')+'\x20'+colorBorder('│',_0xecfb2a));});const _0x4e57f8=_0x7155ac['reduce']((_0x3ebbca,_0x4d6380)=>_0x3ebbca+_0x4d6380+0x3,-0x1);_0x1ea5bc[_0x596d12(0x135)](colorBorder('├'+_0x7155ac[_0x596d12(0x136)](_0x405ac7=>'─'[_0x596d12(0x120)](_0x405ac7+0x2))[_0x596d12(0x110)]('┴')+'┤',_0xecfb2a));let _0x15b1dd;_0x37d145?_0x15b1dd=_0x5c0207+_0x596d12(0x140)+_0xa1bd78+'\x20shown)':_0x15b1dd=_0x5c0207+'\x20row'+(_0x5c0207===0x1?'':'s');const _0x5c7a84=_0x15b1dd['padEnd'](_0x4e57f8-0x2);return _0x1ea5bc[_0x596d12(0x135)](colorBorder('│',_0xecfb2a)+'\x20'+_0x5c7a84+'\x20'+colorBorder('│',_0xecfb2a)),_0x1ea5bc['push'](colorBorder('└'+'─'[_0x596d12(0x120)](_0x4e57f8)+'┘',_0xecfb2a)),_0x1ea5bc[_0x596d12(0x110)]('\x0a');}function a85_0x1f21(_0xb6755b,_0x41f271){const _0x2ae296=a85_0x2ae2();return a85_0x1f21=function(_0x1f2100,_0x1a8e12){_0x1f2100=_0x1f2100-0x110;let _0x1d28e7=_0x2ae296[_0x1f2100];return _0x1d28e7;},a85_0x1f21(_0xb6755b,_0x41f271);}function simplifyType(_0x4abaf4){const _0x18cc23=a85_0x1f21,_0x2738e8={'varchar':_0x18cc23(0x118),'bigint':_0x18cc23(0x124),'integer':'int','double':_0x18cc23(0x13e),'boolean':_0x18cc23(0x141),'date':'date','timestamp':'timestamp','array':'array','map':_0x18cc23(0x136),'row':_0x18cc23(0x117)},_0x49db76=_0x4abaf4[_0x18cc23(0x111)]();for(const [_0x470836,_0x1f3739]of Object[_0x18cc23(0x13c)](_0x2738e8)){if(_0x49db76[_0x18cc23(0x12c)](_0x470836))return _0x1f3739;}return _0x4abaf4['length']>0xa?_0x4abaf4[_0x18cc23(0x137)](0x0,0xa):_0x4abaf4;}export function formatAsJSON(_0x4af418,_0x1f0cf9={}){const _0x5ce23e=a85_0x1f21;if(_0x4af418['data'][_0x5ce23e(0x139)]===0x0)return'[]';if(shouldUseColor(_0x1f0cf9))return colorizeJSON(_0x4af418[_0x5ce23e(0x11b)],_0x1f0cf9);const _0x235ddc=_0x4af418['data'][_0x5ce23e(0x136)](_0x55f60a=>'\x20\x20'+JSON[_0x5ce23e(0x12b)](_0x55f60a));return'[\x0a'+_0x235ddc[_0x5ce23e(0x110)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x47a0bb,_0x3375ff={}){const _0xf9fbea=a85_0x1f21;if(_0x47a0bb[_0xf9fbea(0x11b)][_0xf9fbea(0x139)]===0x0)return'';if(shouldUseColor(_0x3375ff))return _0x47a0bb[_0xf9fbea(0x11b)][_0xf9fbea(0x136)](_0x1c232a=>colorizeJSONCompact(_0x1c232a,_0x3375ff))['join']('\x0a');return _0x47a0bb['data']['map'](_0x24d1eb=>JSON[_0xf9fbea(0x12b)](_0x24d1eb))[_0xf9fbea(0x110)]('\x0a');}export function formatAsTSV(_0x14c7df){const _0xcd8719=a85_0x1f21;if(_0x14c7df[_0xcd8719(0x11b)][_0xcd8719(0x139)]===0x0)return'';const _0x4839ed=[],_0x232d01=_0x14c7df[_0xcd8719(0x114)][_0xcd8719(0x136)](_0x189164=>_0x189164[_0xcd8719(0x126)]);return _0x4839ed[_0xcd8719(0x135)](_0x232d01[_0xcd8719(0x110)]('\x09')),_0x14c7df['data'][_0xcd8719(0x11d)](_0x387cf4=>{const _0x2294a2=_0xcd8719,_0x153c4a=_0x232d01[_0x2294a2(0x136)](_0x2c772e=>{const _0x3c6815=_0x387cf4[_0x2c772e];return formatValueForTSV(_0x3c6815);});_0x4839ed['push'](_0x153c4a[_0x2294a2(0x110)]('\x09'));}),_0x4839ed[_0xcd8719(0x110)]('\x0a');}function formatValue(_0x394f03){const _0x25fbb5=a85_0x1f21;if(_0x394f03===null||_0x394f03===undefined)return'';if(typeof _0x394f03===_0x25fbb5(0x118)){const _0x49e371=_0x394f03[_0x25fbb5(0x13b)](/\n/g,'\x5cn')[_0x25fbb5(0x13b)](/\r/g,'\x5cr')[_0x25fbb5(0x13b)](/\t/g,'\x5ct');return _0x49e371;}if(typeof _0x394f03===_0x25fbb5(0x129))return String(_0x394f03);if(typeof _0x394f03===_0x25fbb5(0x121))return _0x394f03?_0x25fbb5(0x127):_0x25fbb5(0x128);if(_0x394f03 instanceof Date)return _0x394f03[_0x25fbb5(0x12a)]();if(typeof _0x394f03===_0x25fbb5(0x13d))return JSON[_0x25fbb5(0x12b)](_0x394f03);return String(_0x394f03);}function a85_0x2ae2(){const _0x2e2bf8=['4100240sCujkq','long','toFixed','name','true','false','number','toISOString','stringify','startsWith','11184437EjXraf','slice','890911oRHqyk','593585yrVsnT','max','24FhNfBa','toString','jsonl','push','map','substring','7807545hghKux','length','0\x20B','replace','entries','object','double','test','\x20rows\x20(','bool','json','141839uGppDu','join','toLowerCase','stdout','10DwfadZ','columns','min','pow','row','string','1124547ALwUbY','log','data','2rGigHU','forEach','floor','tsv','repeat','boolean','28DPjqFS'];a85_0x2ae2=function(){return _0x2e2bf8;};return a85_0x2ae2();}function formatValueForTSV(_0xaa016e){const _0x199c56=a85_0x1f21;if(_0xaa016e===null||_0xaa016e===undefined)return'';if(typeof _0xaa016e==='string')return _0xaa016e[_0x199c56(0x13b)](/\t/g,'\x5ct')[_0x199c56(0x13b)](/\n/g,'\x5cn');if(typeof _0xaa016e==='number'||typeof _0xaa016e===_0x199c56(0x121))return String(_0xaa016e);if(_0xaa016e instanceof Date)return _0xaa016e['toISOString']();if(typeof _0xaa016e===_0x199c56(0x13d))return JSON[_0x199c56(0x12b)](_0xaa016e);return String(_0xaa016e);}export function formatQueryResult(_0x499ac3,_0x528fdc){const _0x13bb9f=a85_0x1f21;switch(_0x528fdc){case'table':return formatAsTable(_0x499ac3);case _0x13bb9f(0x142):return formatAsJSON(_0x499ac3);case _0x13bb9f(0x134):return formatAsJSONL(_0x499ac3);case _0x13bb9f(0x11f):return formatAsTSV(_0x499ac3);default:return formatAsJSON(_0x499ac3);}}export function formatBytes(_0xd4b6e1){const _0x3911bf=a85_0x1f21;if(_0xd4b6e1===0x0)return _0x3911bf(0x13a);const _0x2a0f22=['B','KB','MB','GB','TB'],_0x2e5b4a=0x400,_0x372052=Math[_0x3911bf(0x11e)](Math[_0x3911bf(0x11a)](_0xd4b6e1)/Math[_0x3911bf(0x11a)](_0x2e5b4a)),_0x2118f1=_0xd4b6e1/Math[_0x3911bf(0x116)](_0x2e5b4a,_0x372052),_0x4645dd=_0x2118f1>=0xa?0x1:0x2;return _0x2118f1[_0x3911bf(0x125)](_0x4645dd)+'\x20'+_0x2a0f22[_0x372052];}export function formatRows(_0x10d38a){const _0x4a6fbe=a85_0x1f21;if(_0x10d38a==null)return'-';if(_0x10d38a===0x0)return'0';if(_0x10d38a<0x3e8)return _0x10d38a[_0x4a6fbe(0x133)]();const _0x1452cb=['','K','M','B','T'],_0x17375a=0x3e8,_0x5a99d0=Math['floor'](Math[_0x4a6fbe(0x11a)](_0x10d38a)/Math[_0x4a6fbe(0x11a)](_0x17375a)),_0xf07e1a=_0x10d38a/Math[_0x4a6fbe(0x116)](_0x17375a,_0x5a99d0),_0x9136ea=_0xf07e1a>=0xa?0x1:0x2;return''+_0xf07e1a[_0x4a6fbe(0x125)](_0x9136ea)+_0x1452cb[_0x5a99d0];}
@@ -1 +1 @@
1
- (function(_0x534d15,_0x38e0b1){const _0x594eb2=a86_0x5ca2,_0x5a7ef8=_0x534d15();while(!![]){try{const _0x41562d=-parseInt(_0x594eb2(0x1ca))/0x1*(-parseInt(_0x594eb2(0x1cd))/0x2)+-parseInt(_0x594eb2(0x1cc))/0x3*(-parseInt(_0x594eb2(0x1ce))/0x4)+parseInt(_0x594eb2(0x1d1))/0x5*(-parseInt(_0x594eb2(0x1d8))/0x6)+-parseInt(_0x594eb2(0x1d6))/0x7+-parseInt(_0x594eb2(0x1cb))/0x8*(-parseInt(_0x594eb2(0x1d4))/0x9)+parseInt(_0x594eb2(0x1d9))/0xa+-parseInt(_0x594eb2(0x1d3))/0xb;if(_0x41562d===_0x38e0b1)break;else _0x5a7ef8['push'](_0x5a7ef8['shift']());}catch(_0x54a5a5){_0x5a7ef8['push'](_0x5a7ef8['shift']());}}}(a86_0x25ee,0x25597));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x26bf6b,_0x17bb17){const _0x1b2b54=a86_0x5ca2;try{if(_0x17bb17){const _0x1419f9=await readFile(_0x26bf6b,'utf-8');try{return JSON[_0x1b2b54(0x1d7)](_0x1419f9);}catch(_0x186b50){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x1b2b54(0x1c9)+_0x26bf6b+_0x1b2b54(0x1db)+(_0x186b50 instanceof Error?_0x186b50['message']:String(_0x186b50)));}}else try{return JSON[_0x1b2b54(0x1d7)](_0x26bf6b);}catch(_0x37c397){throw new SDKError(ErrorCode[_0x1b2b54(0x1d5)],_0x1b2b54(0x1dc)+(_0x37c397 instanceof Error?_0x37c397['message']:String(_0x37c397)));}}catch(_0x2ad894){if(_0x2ad894 instanceof SDKError)throw _0x2ad894;if(_0x2ad894 instanceof Error&&_0x1b2b54(0x1c7)in _0x2ad894){const _0x6c1317=_0x2ad894;if(_0x6c1317[_0x1b2b54(0x1c7)]===_0x1b2b54(0x1c6))throw new SDKError(ErrorCode[_0x1b2b54(0x1d2)],'File\x20not\x20found:\x20'+_0x26bf6b);else{if(_0x6c1317[_0x1b2b54(0x1c7)]===_0x1b2b54(0x1cf))throw new SDKError(ErrorCode[_0x1b2b54(0x1da)],_0x1b2b54(0x1c8)+_0x26bf6b);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x2ad894 instanceof Error?_0x2ad894[_0x1b2b54(0x1d0)]:String(_0x2ad894)));}}function a86_0x5ca2(_0x2f1838,_0x3c0a3b){const _0x25ee20=a86_0x25ee();return a86_0x5ca2=function(_0x5ca2d9,_0x1db60b){_0x5ca2d9=_0x5ca2d9-0x1c6;let _0x48cd9a=_0x25ee20[_0x5ca2d9];return _0x48cd9a;},a86_0x5ca2(_0x2f1838,_0x3c0a3b);}function a86_0x25ee(){const _0x1592cb=['message','1380vKnoUh','NOT_FOUND','5833135tWcJjv','273231KgRoqR','INVALID_ARGUMENT','1574279djZaef','parse','2034ctucPE','2954010vPfUpY','PERMISSION_DENIED','\x27:\x20','Invalid\x20JSON\x20string:\x20','ENOENT','code','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','124661iAvqzb','64wrFYjs','3seGuyM','4wlutwP','856536mkFtgy','EACCES'];a86_0x25ee=function(){return _0x1592cb;};return a86_0x25ee();}export async function loadJSONFromOptions(_0x24a3db,_0xeafd44){const _0x3fffa3=a86_0x5ca2;if(_0x24a3db&&_0xeafd44)throw new SDKError(ErrorCode[_0x3fffa3(0x1d5)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x24a3db)return await loadJSON(_0x24a3db,![]);if(_0xeafd44)return await loadJSON(_0xeafd44,!![]);return undefined;}
1
+ (function(_0x32f243,_0x544d7a){const _0x5049b7=a86_0x4bd2,_0x38d15c=_0x32f243();while(!![]){try{const _0x5ea280=parseInt(_0x5049b7(0x1a0))/0x1*(parseInt(_0x5049b7(0x1a6))/0x2)+-parseInt(_0x5049b7(0x19d))/0x3*(parseInt(_0x5049b7(0x19f))/0x4)+parseInt(_0x5049b7(0x1af))/0x5*(parseInt(_0x5049b7(0x1ac))/0x6)+-parseInt(_0x5049b7(0x1b0))/0x7+parseInt(_0x5049b7(0x1a9))/0x8*(parseInt(_0x5049b7(0x19a))/0x9)+-parseInt(_0x5049b7(0x199))/0xa+-parseInt(_0x5049b7(0x1a7))/0xb*(-parseInt(_0x5049b7(0x197))/0xc);if(_0x5ea280===_0x544d7a)break;else _0x38d15c['push'](_0x38d15c['shift']());}catch(_0x4abdcd){_0x38d15c['push'](_0x38d15c['shift']());}}}(a86_0x2c4c,0xbf0a2));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a86_0x4bd2(_0x9f0556,_0x329231){const _0x2c4cd6=a86_0x2c4c();return a86_0x4bd2=function(_0x4bd25e,_0x36b0a2){_0x4bd25e=_0x4bd25e-0x196;let _0x90e865=_0x2c4cd6[_0x4bd25e];return _0x90e865;},a86_0x4bd2(_0x9f0556,_0x329231);}function a86_0x2c4c(){const _0x4f1934=['101409wuWbyk','Invalid\x20JSON\x20string:\x20','33344OefPzk','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','message','3900870bMiFEk','ENOENT','code','5cuituG','7495572UTsTBR','NOT_FOUND','1836GOcMYp','PERMISSION_DENIED','8508670arxWFM','189CfshwL','Invalid\x20JSON\x20in\x20file\x20\x27','Failed\x20to\x20load\x20JSON:\x20','3EXNNUd','Permission\x20denied\x20reading\x20file:\x20','1140832BZwduT','841189VgGBHz','parse','EACCES','File\x20not\x20found:\x20','INVALID_ARGUMENT','INTERNAL','2bQSNhw'];a86_0x2c4c=function(){return _0x4f1934;};return a86_0x2c4c();}export async function loadJSON(_0x38cc2e,_0x2b6d27){const _0x4997ca=a86_0x4bd2;try{if(_0x2b6d27){const _0x33038d=await readFile(_0x38cc2e,'utf-8');try{return JSON[_0x4997ca(0x1a1)](_0x33038d);}catch(_0x110999){throw new SDKError(ErrorCode[_0x4997ca(0x1a4)],_0x4997ca(0x19b)+_0x38cc2e+'\x27:\x20'+(_0x110999 instanceof Error?_0x110999[_0x4997ca(0x1ab)]:String(_0x110999)));}}else try{return JSON['parse'](_0x38cc2e);}catch(_0x39c64c){throw new SDKError(ErrorCode[_0x4997ca(0x1a4)],_0x4997ca(0x1a8)+(_0x39c64c instanceof Error?_0x39c64c['message']:String(_0x39c64c)));}}catch(_0x42c548){if(_0x42c548 instanceof SDKError)throw _0x42c548;if(_0x42c548 instanceof Error&&_0x4997ca(0x1ae)in _0x42c548){const _0x48283b=_0x42c548;if(_0x48283b[_0x4997ca(0x1ae)]===_0x4997ca(0x1ad))throw new SDKError(ErrorCode[_0x4997ca(0x196)],_0x4997ca(0x1a3)+_0x38cc2e);else{if(_0x48283b['code']===_0x4997ca(0x1a2))throw new SDKError(ErrorCode[_0x4997ca(0x198)],_0x4997ca(0x19e)+_0x38cc2e);}}throw new SDKError(ErrorCode[_0x4997ca(0x1a5)],_0x4997ca(0x19c)+(_0x42c548 instanceof Error?_0x42c548[_0x4997ca(0x1ab)]:String(_0x42c548)));}}export async function loadJSONFromOptions(_0x592671,_0x2b02ce){const _0x1db25e=a86_0x4bd2;if(_0x592671&&_0x2b02ce)throw new SDKError(ErrorCode[_0x1db25e(0x1a4)],_0x1db25e(0x1aa));if(_0x592671)return await loadJSON(_0x592671,![]);if(_0x2b02ce)return await loadJSON(_0x2b02ce,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x426f9d,_0x595375){const _0x248764=a87_0x5e6b,_0x47de90=_0x426f9d();while(!![]){try{const _0x3560dd=parseInt(_0x248764(0x179))/0x1*(-parseInt(_0x248764(0x175))/0x2)+parseInt(_0x248764(0x17a))/0x3*(-parseInt(_0x248764(0x176))/0x4)+parseInt(_0x248764(0x172))/0x5*(-parseInt(_0x248764(0x16f))/0x6)+parseInt(_0x248764(0x17e))/0x7+-parseInt(_0x248764(0x16d))/0x8+-parseInt(_0x248764(0x170))/0x9+parseInt(_0x248764(0x17b))/0xa*(parseInt(_0x248764(0x171))/0xb);if(_0x3560dd===_0x595375)break;else _0x47de90['push'](_0x47de90['shift']());}catch(_0x543db9){_0x47de90['push'](_0x47de90['shift']());}}}(a87_0x56ed,0xad3ac));export function canCreateAgent(_0x1c31cb,_0x31fd08){const _0x3756d5=a87_0x5e6b;for(const _0x5379bc of _0x1c31cb[_0x3756d5(0x17c)][_0x3756d5(0x173)]){if(_0x5379bc[_0x3756d5(0x16e)]&&!_0x31fd08['has'](_0x5379bc[_0x3756d5(0x16e)]))return![];}return!![];}function a87_0x56ed(){const _0xc4673d=['554544jvbdAP','10450qemIBh','attributes','map','6100731klAAwF','4090552kcuatv','targetAgentId','48684NCeUsO','11046204BPPtfy','47729aIEDlR','845LySeyh','tools','1.0','1693814BXEhzN','16nIYaRL','targetKnowledgeBaseId','get','1RiRljJ'];a87_0x56ed=function(){return _0xc4673d;};return a87_0x56ed();}function a87_0x5e6b(_0x4d4fd5,_0x457fc5){const _0x56edb8=a87_0x56ed();return a87_0x5e6b=function(_0x5e6b15,_0xdaabee){_0x5e6b15=_0x5e6b15-0x16d;let _0xc9d366=_0x56edb8[_0x5e6b15];return _0xc9d366;},a87_0x5e6b(_0x4d4fd5,_0x457fc5);}export function remapToolIds(_0x332fc3,_0x502461,_0x20c2dc){const _0x36bb65=a87_0x5e6b;return _0x332fc3[_0x36bb65(0x17d)](_0x20d557=>({..._0x20d557,'targetKnowledgeBaseId':_0x20d557[_0x36bb65(0x177)]?_0x502461[_0x36bb65(0x178)](_0x20d557[_0x36bb65(0x177)])||_0x20d557['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x20d557[_0x36bb65(0x16e)]?_0x20c2dc['get'](_0x20d557[_0x36bb65(0x16e)])||_0x20d557['targetAgentId']:undefined}));}export function remapVariableIds(_0x1ac819,_0x47eae2){const _0x3c3b20=a87_0x5e6b;return _0x1ac819['map'](_0x1e797a=>({..._0x1e797a,'targetKnowledgeBaseId':_0x47eae2[_0x3c3b20(0x178)](_0x1e797a[_0x3c3b20(0x177)])||_0x1e797a[_0x3c3b20(0x177)]}));}export function isSupportedBackupVersion(_0xeb652b){const _0x5bd435=a87_0x5e6b;return _0xeb652b===_0x5bd435(0x174);}
1
+ (function(_0x5cc21d,_0x9d4fd6){const _0x49b0dd=a87_0x4424,_0x36405e=_0x5cc21d();while(!![]){try{const _0x48cf22=-parseInt(_0x49b0dd(0x1b4))/0x1+parseInt(_0x49b0dd(0x1b8))/0x2*(parseInt(_0x49b0dd(0x1ba))/0x3)+-parseInt(_0x49b0dd(0x1b5))/0x4*(parseInt(_0x49b0dd(0x1c2))/0x5)+-parseInt(_0x49b0dd(0x1bd))/0x6*(-parseInt(_0x49b0dd(0x1c4))/0x7)+-parseInt(_0x49b0dd(0x1b3))/0x8*(parseInt(_0x49b0dd(0x1b2))/0x9)+parseInt(_0x49b0dd(0x1c3))/0xa*(parseInt(_0x49b0dd(0x1bb))/0xb)+parseInt(_0x49b0dd(0x1b9))/0xc*(parseInt(_0x49b0dd(0x1bf))/0xd);if(_0x48cf22===_0x9d4fd6)break;else _0x36405e['push'](_0x36405e['shift']());}catch(_0x22f367){_0x36405e['push'](_0x36405e['shift']());}}}(a87_0x2d9b,0x5b55e));function a87_0x2d9b(){const _0x40a34c=['1446gacjrl','targetAgentId','69121eJEebQ','tools','attributes','5GhGiAq','10IhMEQe','16723cLGOwW','map','has','3205143yFpaTe','16siLlgp','82311udBYLy','1784428TIyvFt','get','targetKnowledgeBaseId','1120510IbESSD','504IJNKsu','3zNwEmh','2810104ipjPMm','1.0'];a87_0x2d9b=function(){return _0x40a34c;};return a87_0x2d9b();}export function canCreateAgent(_0x1e239b,_0x5c8357){const _0x525ff1=a87_0x4424;for(const _0x424a16 of _0x1e239b[_0x525ff1(0x1c1)][_0x525ff1(0x1c0)]){if(_0x424a16[_0x525ff1(0x1be)]&&!_0x5c8357[_0x525ff1(0x1c6)](_0x424a16[_0x525ff1(0x1be)]))return![];}return!![];}export function remapToolIds(_0x219584,_0x35f9fe,_0x378122){const _0x722ef9=a87_0x4424;return _0x219584[_0x722ef9(0x1c5)](_0x525837=>({..._0x525837,'targetKnowledgeBaseId':_0x525837[_0x722ef9(0x1b7)]?_0x35f9fe[_0x722ef9(0x1b6)](_0x525837['targetKnowledgeBaseId'])||_0x525837[_0x722ef9(0x1b7)]:undefined,'targetAgentId':_0x525837['targetAgentId']?_0x378122['get'](_0x525837[_0x722ef9(0x1be)])||_0x525837[_0x722ef9(0x1be)]:undefined}));}function a87_0x4424(_0x56d3b9,_0x146298){const _0x2d9b25=a87_0x2d9b();return a87_0x4424=function(_0x4424a1,_0x92061c){_0x4424a1=_0x4424a1-0x1b2;let _0x5bc72f=_0x2d9b25[_0x4424a1];return _0x5bc72f;},a87_0x4424(_0x56d3b9,_0x146298);}export function remapVariableIds(_0x6dad84,_0x5ea9fa){const _0x2c35cf=a87_0x4424;return _0x6dad84[_0x2c35cf(0x1c5)](_0x1ec616=>({..._0x1ec616,'targetKnowledgeBaseId':_0x5ea9fa['get'](_0x1ec616['targetKnowledgeBaseId'])||_0x1ec616[_0x2c35cf(0x1b7)]}));}export function isSupportedBackupVersion(_0x58fa9d){const _0x25df7a=a87_0x4424;return _0x58fa9d===_0x25df7a(0x1bc);}
@@ -1 +1 @@
1
- function a88_0x5569(){const _0x585808=['6ZmXBJX','4863780ddhUva','claude-4.5-haiku','305324KdLhBU','claude-4.5-sonnet','match','1019834UUdURx','11ZbKMGm','765nlaXck','1820696FuBUtq','126328IuMDuP','486RlHDQI','11329250DWlpkv','7028YjnDoh','toLowerCase'];a88_0x5569=function(){return _0x585808;};return a88_0x5569();}const a88_0xa9613b=a88_0x4a0b;(function(_0x310e77,_0x584ae3){const _0x1ff2e6=a88_0x4a0b,_0x16ef90=_0x310e77();while(!![]){try{const _0x5b0b1b=-parseInt(_0x1ff2e6(0x153))/0x1+parseInt(_0x1ff2e6(0x150))/0x2*(-parseInt(_0x1ff2e6(0x14d))/0x3)+parseInt(_0x1ff2e6(0x156))/0x4+-parseInt(_0x1ff2e6(0x14e))/0x5+parseInt(_0x1ff2e6(0x158))/0x6*(parseInt(_0x1ff2e6(0x14b))/0x7)+parseInt(_0x1ff2e6(0x157))/0x8*(parseInt(_0x1ff2e6(0x155))/0x9)+parseInt(_0x1ff2e6(0x14a))/0xa*(parseInt(_0x1ff2e6(0x154))/0xb);if(_0x5b0b1b===_0x584ae3)break;else _0x16ef90['push'](_0x16ef90['shift']());}catch(_0x288220){_0x16ef90['push'](_0x16ef90['shift']());}}}(a88_0x5569,0xae410));function a88_0x4a0b(_0x15cf3e,_0x226e40){const _0x5569ad=a88_0x5569();return a88_0x4a0b=function(_0x4a0bf8,_0x3145fa){_0x4a0bf8=_0x4a0bf8-0x14a;let _0x220beb=_0x5569ad[_0x4a0bf8];return _0x220beb;},a88_0x4a0b(_0x15cf3e,_0x226e40);}const MODEL_ALIASES={'haiku':a88_0xa9613b(0x14f),'sonnet':a88_0xa9613b(0x151)};export function extractModelAlias(_0x474a81){const _0x3bba5b=a88_0xa9613b,_0x412274=_0x474a81[_0x3bba5b(0x152)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x412274)return _0x412274[0x1][_0x3bba5b(0x14c)]();return _0x474a81;}export function resolveModelAlias(_0x3d5612){const _0x2a2876=a88_0xa9613b;return MODEL_ALIASES[_0x3d5612[_0x2a2876(0x14c)]()]||_0x3d5612;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a88_0x357afb=a88_0x4791;function a88_0x1563(){const _0x45d604=['236799dUnUAx','match','claude-4.5-sonnet','2840760hJAEvt','6qtjGwv','442475DwwikD','2116VQuiQC','4589809hOnCLK','toLowerCase','5589UNYCkE','2278090dkaVRz','185683KZCmfg','176ddBCYO','6LQhTlX','claude-4.5-haiku'];a88_0x1563=function(){return _0x45d604;};return a88_0x1563();}function a88_0x4791(_0x1b05a3,_0x1701f6){const _0x156374=a88_0x1563();return a88_0x4791=function(_0x4791b0,_0x32c698){_0x4791b0=_0x4791b0-0x18f;let _0x327cff=_0x156374[_0x4791b0];return _0x327cff;},a88_0x4791(_0x1b05a3,_0x1701f6);}(function(_0x44f61f,_0x2d3442){const _0x377302=a88_0x4791,_0x465a3f=_0x44f61f();while(!![]){try{const _0x1f5b27=parseInt(_0x377302(0x191))/0x1*(parseInt(_0x377302(0x199))/0x2)+parseInt(_0x377302(0x18f))/0x3*(parseInt(_0x377302(0x19b))/0x4)+-parseInt(_0x377302(0x198))/0x5+-parseInt(_0x377302(0x193))/0x6*(parseInt(_0x377302(0x19c))/0x7)+-parseInt(_0x377302(0x192))/0x8*(-parseInt(_0x377302(0x195))/0x9)+-parseInt(_0x377302(0x190))/0xa+-parseInt(_0x377302(0x19a))/0xb;if(_0x1f5b27===_0x2d3442)break;else _0x465a3f['push'](_0x465a3f['shift']());}catch(_0x26051a){_0x465a3f['push'](_0x465a3f['shift']());}}}(a88_0x1563,0x99b29));const MODEL_ALIASES={'haiku':a88_0x357afb(0x194),'sonnet':a88_0x357afb(0x197)};export function extractModelAlias(_0x5ab37b){const _0x3cdd93=a88_0x357afb,_0x103afc=_0x5ab37b[_0x3cdd93(0x196)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x103afc)return _0x103afc[0x1][_0x3cdd93(0x19d)]();return _0x5ab37b;}export function resolveModelAlias(_0x42d08f){return MODEL_ALIASES[_0x42d08f['toLowerCase']()]||_0x42d08f;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x4fd21d,_0x298ca3){const _0x5b5029=a89_0x563f,_0x2fc38f=_0x4fd21d();while(!![]){try{const _0x4c8c7a=parseInt(_0x5b5029(0x110))/0x1+-parseInt(_0x5b5029(0x119))/0x2+-parseInt(_0x5b5029(0x114))/0x3*(parseInt(_0x5b5029(0x11c))/0x4)+parseInt(_0x5b5029(0x116))/0x5*(-parseInt(_0x5b5029(0x124))/0x6)+parseInt(_0x5b5029(0x10e))/0x7*(parseInt(_0x5b5029(0x120))/0x8)+parseInt(_0x5b5029(0x113))/0x9*(-parseInt(_0x5b5029(0x11a))/0xa)+parseInt(_0x5b5029(0x123))/0xb;if(_0x4c8c7a===_0x298ca3)break;else _0x2fc38f['push'](_0x2fc38f['shift']());}catch(_0x4e3505){_0x2fc38f['push'](_0x2fc38f['shift']());}}}(a89_0x4806,0xf307d));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x1aca45){const _0x189edf=a89_0x563f,_0x500804=_0x1aca45[_0x189edf(0x115)]();if(MODEL_FACTORS[_0x500804])return MODEL_FACTORS[_0x500804];if(_0x500804[_0x189edf(0x126)](_0x189edf(0x127)))return MODEL_FACTORS[_0x189edf(0x127)];if(_0x500804[_0x189edf(0x126)](_0x189edf(0x122)))return MODEL_FACTORS[_0x189edf(0x122)];if(_0x500804[_0x189edf(0x126)]('opus'))return MODEL_FACTORS['opus'];return MODEL_FACTORS[_0x189edf(0x127)];}export function getContextLimit(_0x3f95d5){const _0x402fde=a89_0x563f,_0x2d41a5=_0x3f95d5[_0x402fde(0x115)]();if(_0x2d41a5[_0x402fde(0x126)](_0x402fde(0x127)))return CONTEXT_LIMITS[_0x402fde(0x127)];if(_0x2d41a5[_0x402fde(0x126)](_0x402fde(0x122)))return CONTEXT_LIMITS[_0x402fde(0x122)];if(_0x2d41a5['includes'](_0x402fde(0x11f)))return CONTEXT_LIMITS[_0x402fde(0x11f)];return CONTEXT_LIMITS[_0x402fde(0x111)];}function a89_0x4806(){const _0x5427b5=['3800268lOMYma','69730ZFSIir','en-US','14404FwhFTX','4-5','Sonnet\x204','opus','1624VMOwvV','toLocaleString','haiku','22509124HRWsSo','24tsqEHl','Haiku\x204.5','includes','sonnet','Haiku\x204','Opus\x204.5','57554EpJhjH','round','522025exJRXG','default','Opus\x204','342GgCaiC','678TqyACS','toLowerCase','328735RgTsMX','4.5','Claude'];a89_0x4806=function(){return _0x5427b5;};return a89_0x4806();}export function calculateChatUnit(_0x44f1e1,_0x1f60cc,_0x1f7fc5){return(_0x44f1e1+_0x1f60cc)/0x1388*_0x1f7fc5;}export function calculateCredits(_0x5514cb){return _0x5514cb/0x2904;}export function getModelDisplayName(_0xdd32f7){const _0x3ae76a=a89_0x563f,_0x1afe8f=_0xdd32f7[_0x3ae76a(0x115)]();if(_0x1afe8f['includes']('sonnet')){if(_0x1afe8f[_0x3ae76a(0x126)]('4-5')||_0x1afe8f['includes'](_0x3ae76a(0x117)))return'Sonnet\x204.5';return _0x3ae76a(0x11e);}if(_0x1afe8f[_0x3ae76a(0x126)]('haiku')){if(_0x1afe8f['includes'](_0x3ae76a(0x11d))||_0x1afe8f['includes']('4.5'))return _0x3ae76a(0x125);return _0x3ae76a(0x128);}if(_0x1afe8f['includes'](_0x3ae76a(0x11f))){if(_0x1afe8f['includes'](_0x3ae76a(0x11d))||_0x1afe8f[_0x3ae76a(0x126)](_0x3ae76a(0x117)))return _0x3ae76a(0x10d);return _0x3ae76a(0x112);}return _0x3ae76a(0x118);}export function formatTokenCount(_0x1e6047){const _0x792fbe=a89_0x563f;return _0x1e6047[_0x792fbe(0x121)](_0x792fbe(0x11b));}function a89_0x563f(_0x5a4bd6,_0x544cf0){const _0x480618=a89_0x4806();return a89_0x563f=function(_0x563f64,_0x4d8e08){_0x563f64=_0x563f64-0x10d;let _0x432165=_0x480618[_0x563f64];return _0x432165;},a89_0x563f(_0x5a4bd6,_0x544cf0);}export function calculateContextPercentage(_0x56963c,_0x8b28fa){const _0x98535f=a89_0x563f,_0xb9509a=getContextLimit(_0x8b28fa);return Math[_0x98535f(0x10f)](_0x56963c/_0xb9509a*0x64);}
1
+ (function(_0x2bb756,_0x15037f){const _0x10355a=a89_0x514f,_0x55cc63=_0x2bb756();while(!![]){try{const _0x546247=parseInt(_0x10355a(0x183))/0x1*(parseInt(_0x10355a(0x187))/0x2)+-parseInt(_0x10355a(0x17d))/0x3*(-parseInt(_0x10355a(0x184))/0x4)+parseInt(_0x10355a(0x18c))/0x5+-parseInt(_0x10355a(0x186))/0x6+parseInt(_0x10355a(0x17a))/0x7*(-parseInt(_0x10355a(0x193))/0x8)+-parseInt(_0x10355a(0x190))/0x9+parseInt(_0x10355a(0x17c))/0xa*(parseInt(_0x10355a(0x185))/0xb);if(_0x546247===_0x15037f)break;else _0x55cc63['push'](_0x55cc63['shift']());}catch(_0x4f7668){_0x55cc63['push'](_0x55cc63['shift']());}}}(a89_0x5d4d,0xbc8ae));function a89_0x514f(_0x2dfcf0,_0x2fe7e7){const _0x5d4d71=a89_0x5d4d();return a89_0x514f=function(_0x514f04,_0x31799c){_0x514f04=_0x514f04-0x179;let _0x11d5ad=_0x5d4d71[_0x514f04];return _0x11d5ad;},a89_0x514f(_0x2dfcf0,_0x2fe7e7);}export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};function a89_0x5d4d(){const _0x4d828d=['61340OaCLxN','Haiku\x204','4.5','Haiku\x204.5','4-5','1991085OoZEGf','opus','Sonnet\x204.5','default','9266499MzKayH','includes','en-US','504DWcxcH','sonnet','167496FhYHXa','toLowerCase','56320xxFnjh','57gYpPZl','round','haiku','toLocaleString','Sonnet\x204','Opus\x204','4ZKQXYw','29584KejarP','8151qfemBc','9152328SlpkkA'];a89_0x5d4d=function(){return _0x4d828d;};return a89_0x5d4d();}export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x50beeb){const _0x4f5b0b=a89_0x514f,_0x1d0c8e=_0x50beeb[_0x4f5b0b(0x17b)]();if(MODEL_FACTORS[_0x1d0c8e])return MODEL_FACTORS[_0x1d0c8e];if(_0x1d0c8e[_0x4f5b0b(0x191)](_0x4f5b0b(0x179)))return MODEL_FACTORS[_0x4f5b0b(0x179)];if(_0x1d0c8e[_0x4f5b0b(0x191)](_0x4f5b0b(0x17f)))return MODEL_FACTORS[_0x4f5b0b(0x17f)];if(_0x1d0c8e[_0x4f5b0b(0x191)](_0x4f5b0b(0x18d)))return MODEL_FACTORS[_0x4f5b0b(0x18d)];return MODEL_FACTORS[_0x4f5b0b(0x179)];}export function getContextLimit(_0x39425e){const _0x3ce5b4=a89_0x514f,_0x43ca52=_0x39425e[_0x3ce5b4(0x17b)]();if(_0x43ca52[_0x3ce5b4(0x191)](_0x3ce5b4(0x179)))return CONTEXT_LIMITS[_0x3ce5b4(0x179)];if(_0x43ca52['includes'](_0x3ce5b4(0x17f)))return CONTEXT_LIMITS['haiku'];if(_0x43ca52['includes']('opus'))return CONTEXT_LIMITS[_0x3ce5b4(0x18d)];return CONTEXT_LIMITS[_0x3ce5b4(0x18f)];}export function calculateChatUnit(_0x35acdd,_0x4e06d4,_0x3367da){return(_0x35acdd+_0x4e06d4)/0x1388*_0x3367da;}export function calculateCredits(_0x441a0a){return _0x441a0a/0x2904;}export function getModelDisplayName(_0x42dc01){const _0x1171de=a89_0x514f,_0x3610fc=_0x42dc01[_0x1171de(0x17b)]();if(_0x3610fc['includes']('sonnet')){if(_0x3610fc[_0x1171de(0x191)](_0x1171de(0x18b))||_0x3610fc[_0x1171de(0x191)](_0x1171de(0x189)))return _0x1171de(0x18e);return _0x1171de(0x181);}if(_0x3610fc[_0x1171de(0x191)]('haiku')){if(_0x3610fc['includes'](_0x1171de(0x18b))||_0x3610fc[_0x1171de(0x191)](_0x1171de(0x189)))return _0x1171de(0x18a);return _0x1171de(0x188);}if(_0x3610fc[_0x1171de(0x191)](_0x1171de(0x18d))){if(_0x3610fc[_0x1171de(0x191)]('4-5')||_0x3610fc[_0x1171de(0x191)]('4.5'))return'Opus\x204.5';return _0x1171de(0x182);}return'Claude';}export function formatTokenCount(_0x1373da){const _0x11cc4b=a89_0x514f;return _0x1373da[_0x11cc4b(0x180)](_0x11cc4b(0x192));}export function calculateContextPercentage(_0xb1509d,_0x38ffac){const _0x1dee8c=a89_0x514f,_0x1902be=getContextLimit(_0x38ffac);return Math[_0x1dee8c(0x17e)](_0xb1509d/_0x1902be*0x64);}
@@ -1 +1 @@
1
- (function(_0x515709,_0x34323c){const _0x43b49c=a90_0x1117,_0x313569=_0x515709();while(!![]){try{const _0x5e845d=-parseInt(_0x43b49c(0x18d))/0x1+-parseInt(_0x43b49c(0x189))/0x2+-parseInt(_0x43b49c(0x18f))/0x3+-parseInt(_0x43b49c(0x185))/0x4+-parseInt(_0x43b49c(0x18b))/0x5*(parseInt(_0x43b49c(0x192))/0x6)+parseInt(_0x43b49c(0x190))/0x7*(parseInt(_0x43b49c(0x183))/0x8)+-parseInt(_0x43b49c(0x188))/0x9*(-parseInt(_0x43b49c(0x18e))/0xa);if(_0x5e845d===_0x34323c)break;else _0x313569['push'](_0x313569['shift']());}catch(_0x7b7886){_0x313569['push'](_0x313569['shift']());}}}(a90_0x3748,0xc81bd));export function validateLimitOption(_0x1c81cd){const _0x264967=a90_0x1117;if(!Number['isInteger'](_0x1c81cd))return{'isValid':![],'error':_0x264967(0x193)+_0x1c81cd+_0x264967(0x18a)};if(_0x1c81cd<=0x0)return{'isValid':![],'error':_0x264967(0x193)+_0x1c81cd+_0x264967(0x186)};return{'isValid':!![],'value':_0x1c81cd};}function a90_0x1117(_0xab309a,_0x2ab71c){const _0x3748f7=a90_0x3748();return a90_0x1117=function(_0x111786,_0x1ee572){_0x111786=_0x111786-0x183;let _0x3eb38e=_0x3748f7[_0x111786];return _0x3eb38e;},a90_0x1117(_0xab309a,_0x2ab71c);}function a90_0x3748(){const _0x24f35d=['.\x20Must\x20be\x20an\x20integer.','76470nhVlNd','.\x20Must\x20be\x20a\x20positive\x20number.','230517SDXwUF','2192520LSglyx','394158yXhMdV','42SEVCBM','.\x20Must\x20be\x20a\x20number.','426raDKLQ','Invalid\x20limit\x20value:\x20','923504eWpAGM','Invalid\x20timeout\x20value:\x20','3805100eEKELF','.\x20Must\x20be\x20a\x20positive\x20integer.','number','162lBvEgV','2840934mzdJtm'];a90_0x3748=function(){return _0x24f35d;};return a90_0x3748();}export function validateTimeoutOption(_0xa4eecb,_0x529b53=0x1e){const _0x2f11c8=a90_0x1117;if(_0xa4eecb===undefined)return{'isValid':!![],'value':_0x529b53};const _0x3daea8=typeof _0xa4eecb===_0x2f11c8(0x187)?_0xa4eecb:parseFloat(_0xa4eecb);if(isNaN(_0x3daea8))return{'isValid':![],'error':_0x2f11c8(0x184)+_0xa4eecb+_0x2f11c8(0x191)};if(_0x3daea8<=0x0)return{'isValid':![],'error':_0x2f11c8(0x184)+_0x3daea8+_0x2f11c8(0x18c)};return{'isValid':!![],'value':_0x3daea8};}
1
+ (function(_0x43cb55,_0x21f523){const _0x17650e=a90_0x4f20,_0x4aa8b3=_0x43cb55();while(!![]){try{const _0x5b41f2=-parseInt(_0x17650e(0x1a3))/0x1*(parseInt(_0x17650e(0x19b))/0x2)+parseInt(_0x17650e(0x19a))/0x3+parseInt(_0x17650e(0x19e))/0x4+parseInt(_0x17650e(0x1a1))/0x5*(parseInt(_0x17650e(0x1a2))/0x6)+parseInt(_0x17650e(0x197))/0x7+parseInt(_0x17650e(0x198))/0x8+-parseInt(_0x17650e(0x194))/0x9*(parseInt(_0x17650e(0x19d))/0xa);if(_0x5b41f2===_0x21f523)break;else _0x4aa8b3['push'](_0x4aa8b3['shift']());}catch(_0x96c513){_0x4aa8b3['push'](_0x4aa8b3['shift']());}}}(a90_0x2af6,0x5be1f));export function validateLimitOption(_0x2de550){const _0x35df48=a90_0x4f20;if(!Number['isInteger'](_0x2de550))return{'isValid':![],'error':_0x35df48(0x199)+_0x2de550+_0x35df48(0x193)};if(_0x2de550<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2de550+_0x35df48(0x195)};return{'isValid':!![],'value':_0x2de550};}function a90_0x4f20(_0x11fca1,_0x2724ae){const _0x2af6a0=a90_0x2af6();return a90_0x4f20=function(_0x4f209d,_0x9945b){_0x4f209d=_0x4f209d-0x193;let _0x170bc4=_0x2af6a0[_0x4f209d];return _0x170bc4;},a90_0x4f20(_0x11fca1,_0x2724ae);}export function validateTimeoutOption(_0xb70ae2,_0x2b2af6=0x1e){const _0x1767ac=a90_0x4f20;if(_0xb70ae2===undefined)return{'isValid':!![],'value':_0x2b2af6};const _0x1129a8=typeof _0xb70ae2===_0x1767ac(0x196)?_0xb70ae2:parseFloat(_0xb70ae2);if(isNaN(_0x1129a8))return{'isValid':![],'error':_0x1767ac(0x19c)+_0xb70ae2+_0x1767ac(0x1a0)};if(_0x1129a8<=0x0)return{'isValid':![],'error':_0x1767ac(0x19c)+_0x1129a8+_0x1767ac(0x19f)};return{'isValid':!![],'value':_0x1129a8};}function a90_0x2af6(){const _0x8643fb=['.\x20Must\x20be\x20a\x20number.','362125rQjlpF','6aHqBUj','6uFjXXi','.\x20Must\x20be\x20an\x20integer.','9ksWWsj','.\x20Must\x20be\x20a\x20positive\x20integer.','number','1065351HBjqgZ','1795128pyJafL','Invalid\x20limit\x20value:\x20','1807884JIrFOe','23238OvMAeI','Invalid\x20timeout\x20value:\x20','9704410vtgcka','1459476cusXZN','.\x20Must\x20be\x20a\x20positive\x20number.'];a90_0x2af6=function(){return _0x8643fb;};return a90_0x2af6();}
@@ -1 +1 @@
1
- function a91_0x5f40(_0x596cf5,_0x31fe61){const _0x2dc4a9=a91_0x2dc4();return a91_0x5f40=function(_0x5f4004,_0xce6b62){_0x5f4004=_0x5f4004-0xee;let _0x72eb1e=_0x2dc4a9[_0x5f4004];return _0x72eb1e;},a91_0x5f40(_0x596cf5,_0x31fe61);}(function(_0x1686db,_0x3fd6a0){const _0x1bbe27=a91_0x5f40,_0x418ace=_0x1686db();while(!![]){try{const _0x59f0ee=parseInt(_0x1bbe27(0xfc))/0x1+parseInt(_0x1bbe27(0xf4))/0x2+-parseInt(_0x1bbe27(0xf7))/0x3*(parseInt(_0x1bbe27(0xef))/0x4)+-parseInt(_0x1bbe27(0xf8))/0x5*(-parseInt(_0x1bbe27(0xf2))/0x6)+-parseInt(_0x1bbe27(0xf3))/0x7+parseInt(_0x1bbe27(0x101))/0x8*(parseInt(_0x1bbe27(0xf9))/0x9)+-parseInt(_0x1bbe27(0xfb))/0xa*(-parseInt(_0x1bbe27(0xff))/0xb);if(_0x59f0ee===_0x3fd6a0)break;else _0x418ace['push'](_0x418ace['shift']());}catch(_0x42e475){_0x418ace['push'](_0x418ace['shift']());}}}(a91_0x2dc4,0x61575));import{createServer}from'node:net';export async function isPortAvailable(_0x3164cf){return new Promise(_0x298753=>{const _0x595a34=a91_0x5f40,_0x29d8d7=createServer();_0x29d8d7[_0x595a34(0xf6)](_0x595a34(0xf5),_0x24f75a=>{const _0x22131d=_0x595a34;_0x24f75a['code']===_0x22131d(0xee)?_0x298753(![]):_0x298753(![]);}),_0x29d8d7['once'](_0x595a34(0xfa),()=>{const _0x3f58c8=_0x595a34;_0x29d8d7[_0x3f58c8(0xfd)](),_0x298753(!![]);}),_0x29d8d7[_0x595a34(0xf1)](_0x3164cf,_0x595a34(0xfe));});}function a91_0x2dc4(){const _0x57685b=['349692LUNOHk','error','once','1839oTxlBC','10ixcJym','90VdFyGg','listening','1206300tGVmQS','715675MPFYsh','close','0.0.0.0','11LdPNDR','\x20and\x20','107288AsksMM','EADDRINUSE','2404fFboFG','No\x20available\x20port\x20found\x20between\x20','listen','665358NAuJzF','4199475SvPUJD'];a91_0x2dc4=function(){return _0x57685b;};return a91_0x2dc4();}export async function findAvailablePort(_0x13808a=0xfa0,_0x2400c5=0x64){const _0x66cacd=a91_0x5f40;for(let _0x97a6de=0x0;_0x97a6de<_0x2400c5;_0x97a6de++){const _0x530a31=_0x13808a+_0x97a6de;if(await isPortAvailable(_0x530a31))return _0x530a31;}throw new Error(_0x66cacd(0xf0)+_0x13808a+_0x66cacd(0x100)+(_0x13808a+_0x2400c5-0x1));}
1
+ (function(_0x186560,_0x309b8c){const _0x27d298=a91_0x3158,_0x232d12=_0x186560();while(!![]){try{const _0x5cec6b=-parseInt(_0x27d298(0xc9))/0x1*(parseInt(_0x27d298(0xc6))/0x2)+parseInt(_0x27d298(0xcd))/0x3+-parseInt(_0x27d298(0xc3))/0x4*(parseInt(_0x27d298(0xc0))/0x5)+parseInt(_0x27d298(0xd0))/0x6+-parseInt(_0x27d298(0xce))/0x7+-parseInt(_0x27d298(0xc5))/0x8*(-parseInt(_0x27d298(0xc8))/0x9)+parseInt(_0x27d298(0xc4))/0xa*(parseInt(_0x27d298(0xc7))/0xb);if(_0x5cec6b===_0x309b8c)break;else _0x232d12['push'](_0x232d12['shift']());}catch(_0x5e9a41){_0x232d12['push'](_0x232d12['shift']());}}}(a91_0xaf38,0xa7273));function a91_0xaf38(){const _0x2e1677=['code','once','1178433zSJKjK','9122638ZhMHxe','listening','4355970IDVrqP','50430fFmpPK','No\x20available\x20port\x20found\x20between\x20','listen','428YsuqGI','20780qqWZQO','8qeXpdf','736456pjnicq','6017WEzoeJ','10618659oVKkUz','1vFJoik','error'];a91_0xaf38=function(){return _0x2e1677;};return a91_0xaf38();}import{createServer}from'node:net';export async function isPortAvailable(_0xd85b5e){return new Promise(_0x1909e3=>{const _0x52b961=a91_0x3158,_0x50c39c=createServer();_0x50c39c[_0x52b961(0xcc)](_0x52b961(0xca),_0x125e5a=>{const _0x344134=_0x52b961;_0x125e5a[_0x344134(0xcb)]==='EADDRINUSE'?_0x1909e3(![]):_0x1909e3(![]);}),_0x50c39c[_0x52b961(0xcc)](_0x52b961(0xcf),()=>{_0x50c39c['close'](),_0x1909e3(!![]);}),_0x50c39c[_0x52b961(0xc2)](_0xd85b5e,'0.0.0.0');});}function a91_0x3158(_0xfda1ef,_0xe2be44){const _0xaf3873=a91_0xaf38();return a91_0x3158=function(_0x315802,_0x3959e6){_0x315802=_0x315802-0xc0;let _0x4e2b8c=_0xaf3873[_0x315802];return _0x4e2b8c;},a91_0x3158(_0xfda1ef,_0xe2be44);}export async function findAvailablePort(_0x90cb09=0xfa0,_0x2ba5b3=0x64){const _0x2cbf15=a91_0x3158;for(let _0x57152d=0x0;_0x57152d<_0x2ba5b3;_0x57152d++){const _0x1a7cd6=_0x90cb09+_0x57152d;if(await isPortAvailable(_0x1a7cd6))return _0x1a7cd6;}throw new Error(_0x2cbf15(0xc1)+_0x90cb09+'\x20and\x20'+(_0x90cb09+_0x2ba5b3-0x1));}
@@ -1 +1 @@
1
- const a92_0x23413d=a92_0x5947;(function(_0x299da4,_0xc97d1a){const _0x21b396=a92_0x5947,_0xb23021=_0x299da4();while(!![]){try{const _0x49c364=-parseInt(_0x21b396(0x148))/0x1*(-parseInt(_0x21b396(0x131))/0x2)+parseInt(_0x21b396(0x147))/0x3+-parseInt(_0x21b396(0x146))/0x4+parseInt(_0x21b396(0x14b))/0x5+-parseInt(_0x21b396(0x13b))/0x6*(-parseInt(_0x21b396(0x13d))/0x7)+parseInt(_0x21b396(0x15a))/0x8+-parseInt(_0x21b396(0x15c))/0x9;if(_0x49c364===_0xc97d1a)break;else _0xb23021['push'](_0xb23021['shift']());}catch(_0x158279){_0xb23021['push'](_0xb23021['shift']());}}}(a92_0x33fb,0xc1013));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a92_0x23413d(0x156),a92_0x23413d(0x155),'sh',a92_0x23413d(0x138),a92_0x23413d(0x13e),a92_0x23413d(0x143),a92_0x23413d(0x14c),a92_0x23413d(0x134),a92_0x23413d(0x132),a92_0x23413d(0x15f),'nu',a92_0x23413d(0x15e),'elvish',a92_0x23413d(0x137)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a92_0x23413d(0x14e),a92_0x23413d(0x149),'cursor']);function getProcessInfoWindows(_0x72c238){const _0x5e3b9c=a92_0x23413d;try{const _0x437129=execSync(_0x5e3b9c(0x13f)+_0x72c238+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x5e3b9c(0x13c),'windowsHide':!![]})[_0x5e3b9c(0x136)](),_0x53317c=_0x437129[_0x5e3b9c(0x144)]('\x0a')[_0x5e3b9c(0x142)](_0x5c1ca3=>_0x5c1ca3[_0x5e3b9c(0x136)]());if(_0x53317c[_0x5e3b9c(0x140)]<0x2)return null;const _0xcf23d5=_0x53317c[_0x53317c[_0x5e3b9c(0x140)]-0x1][_0x5e3b9c(0x144)](',');if(_0xcf23d5[_0x5e3b9c(0x140)]<0x3)return null;const _0x4cdbb8=_0xcf23d5[0x1]?.[_0x5e3b9c(0x136)]()||'',_0x587b20=parseInt(_0xcf23d5[0x2]?.[_0x5e3b9c(0x136)]()||'0',0xa);if(isNaN(_0x587b20)||!_0x4cdbb8)return null;return{'pid':_0x72c238,'ppid':_0x587b20,'comm':_0x4cdbb8[_0x5e3b9c(0x157)](/\.exe$/i,'')};}catch(_0x432a8c){return process[_0x5e3b9c(0x152)][_0x5e3b9c(0x145)]&&console[_0x5e3b9c(0x133)](_0x5e3b9c(0x15d)+_0x72c238+_0x5e3b9c(0x160),_0x432a8c),null;}}function getProcessInfoPosix(_0x34f044){const _0x5dcb91=a92_0x23413d;try{const _0x30382c=execSync(_0x5dcb91(0x153)+_0x34f044+_0x5dcb91(0x139),{'encoding':_0x5dcb91(0x13c)})['trim'](),[_0x3edc61,..._0x3b17db]=_0x30382c['split'](/\s+/),_0x85c2e4=parseInt(_0x3edc61,0xa),_0x22c87e=_0x3b17db[_0x5dcb91(0x15b)]('\x20');if(isNaN(_0x85c2e4))return null;return{'pid':_0x34f044,'ppid':_0x85c2e4,'comm':_0x22c87e};}catch(_0x31c3b5){return process[_0x5dcb91(0x152)][_0x5dcb91(0x145)]&&console[_0x5dcb91(0x133)](_0x5dcb91(0x15d)+_0x34f044+_0x5dcb91(0x141),_0x31c3b5),null;}}function getProcessInfo(_0x58984c){const _0x2858c5=a92_0x23413d;if(process[_0x2858c5(0x158)]==='win32')return getProcessInfoWindows(_0x58984c);return getProcessInfoPosix(_0x58984c);}function a92_0x33fb(){const _0x39ffac=['comm','1518520dJIHcp','csh',',\x20using\x20fallback','claude','ppid',')\x20spawned\x20by\x20','pid','env','ps\x20-p\x20','kill','zsh','bash','replace','platform','has','11249208OQQpIU','join','23292009vFWHFK','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','ion','powershell','\x20on\x20Windows:','299614dENELJ','pwsh','error','dash','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','trim','xonsh','fish','\x20-o\x20ppid=,comm=','pop','16926vQBuzI','utf-8','2303RQZPnG','ksh','wmic\x20process\x20where\x20ProcessId=','length','\x20on\x20POSIX:','filter','tcsh','split','DEBUG','1116552hCnKUC','2160324KEFFLE','2xKweMR','code'];a92_0x33fb=function(){return _0x39ffac;};return a92_0x33fb();}function a92_0x5947(_0x23516c,_0x2033cf){const _0x33fb26=a92_0x33fb();return a92_0x5947=function(_0x594732,_0x54a1c7){_0x594732=_0x594732-0x131;let _0x1b2f2a=_0x33fb26[_0x594732];return _0x1b2f2a;},a92_0x5947(_0x23516c,_0x2033cf);}function getBasename(_0x44c654){const _0x414cac=a92_0x23413d;return _0x44c654[_0x414cac(0x157)](/^-/,'')[_0x414cac(0x144)]('/')[_0x414cac(0x13a)]()?.['toLowerCase']()||'';}function isShell(_0x3adfe5){const _0x568d35=a92_0x23413d;return SHELL_NAMES[_0x568d35(0x159)](getBasename(_0x3adfe5));}function isEphemeralShellSpawner(_0x169906){const _0x46e97d=a92_0x23413d;return EPHEMERAL_SHELL_SPAWNERS[_0x46e97d(0x159)](getBasename(_0x169906));}let cachedShellPID;function findShellPID(){const _0xb95db7=a92_0x23413d;let _0x12c5c5=process[_0xb95db7(0x14f)];const _0x529381=0xa;let _0x1d706b=0x0;while(_0x1d706b<_0x529381){const _0x53d7d2=getProcessInfo(_0x12c5c5);if(!_0x53d7d2){process[_0xb95db7(0x152)][_0xb95db7(0x145)]&&console[_0xb95db7(0x133)](_0xb95db7(0x135)+_0x12c5c5+_0xb95db7(0x14d));break;}if(isShell(_0x53d7d2[_0xb95db7(0x14a)])){const _0x5b86ca=getProcessInfo(_0x53d7d2[_0xb95db7(0x14f)]);if(_0x5b86ca&&isEphemeralShellSpawner(_0x5b86ca[_0xb95db7(0x14a)])){process['env'][_0xb95db7(0x145)]&&console[_0xb95db7(0x133)]('Found\x20ephemeral\x20shell\x20'+_0x53d7d2[_0xb95db7(0x151)]+'\x20('+_0x53d7d2[_0xb95db7(0x14a)]+_0xb95db7(0x150)+_0x5b86ca[_0xb95db7(0x14a)]+',\x20continuing\x20up');_0x12c5c5=_0x53d7d2['ppid'],_0x1d706b++;continue;}return _0x53d7d2['pid'];}if(_0x53d7d2[_0xb95db7(0x14f)]===0x0||_0x53d7d2[_0xb95db7(0x14f)]===0x1){if(isShell(_0x53d7d2['comm']))return _0x53d7d2['pid'];break;}_0x12c5c5=_0x53d7d2[_0xb95db7(0x14f)],_0x1d706b++;}return process[_0xb95db7(0x152)][_0xb95db7(0x145)]&&console['error']('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x11a56c){const _0x6d21b5=a92_0x23413d;try{return process[_0x6d21b5(0x154)](_0x11a56c,0x0),!![];}catch{return![];}}
1
+ const a92_0x32f252=a92_0x1369;(function(_0x6a0e4b,_0x26fbeb){const _0x245d4b=a92_0x1369,_0x384ee6=_0x6a0e4b();while(!![]){try{const _0x182de7=-parseInt(_0x245d4b(0x18a))/0x1*(parseInt(_0x245d4b(0x178))/0x2)+-parseInt(_0x245d4b(0x180))/0x3+-parseInt(_0x245d4b(0x19f))/0x4*(parseInt(_0x245d4b(0x1a1))/0x5)+parseInt(_0x245d4b(0x1a0))/0x6+-parseInt(_0x245d4b(0x197))/0x7+parseInt(_0x245d4b(0x18b))/0x8+parseInt(_0x245d4b(0x192))/0x9;if(_0x182de7===_0x26fbeb)break;else _0x384ee6['push'](_0x384ee6['shift']());}catch(_0x358138){_0x384ee6['push'](_0x384ee6['shift']());}}}(a92_0x4f76,0x8cbaa));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a92_0x32f252(0x191),a92_0x32f252(0x174),'sh',a92_0x32f252(0x18f),a92_0x32f252(0x186),a92_0x32f252(0x198),a92_0x32f252(0x19e),a92_0x32f252(0x187),'pwsh',a92_0x32f252(0x17a),'nu',a92_0x32f252(0x196),a92_0x32f252(0x193),a92_0x32f252(0x182)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a92_0x32f252(0x173),a92_0x32f252(0x175),a92_0x32f252(0x188)]);function getProcessInfoWindows(_0x142e5c){const _0x5551b5=a92_0x32f252;try{const _0x286940=execSync(_0x5551b5(0x179)+_0x142e5c+_0x5551b5(0x18e),{'encoding':'utf-8','windowsHide':!![]})[_0x5551b5(0x199)](),_0x24b3b6=_0x286940['split']('\x0a')[_0x5551b5(0x184)](_0x2382ab=>_0x2382ab[_0x5551b5(0x199)]());if(_0x24b3b6[_0x5551b5(0x17c)]<0x2)return null;const _0x20dde7=_0x24b3b6[_0x24b3b6[_0x5551b5(0x17c)]-0x1]['split'](',');if(_0x20dde7[_0x5551b5(0x17c)]<0x3)return null;const _0x1b620c=_0x20dde7[0x1]?.[_0x5551b5(0x199)]()||'',_0x2cb076=parseInt(_0x20dde7[0x2]?.[_0x5551b5(0x199)]()||'0',0xa);if(isNaN(_0x2cb076)||!_0x1b620c)return null;return{'pid':_0x142e5c,'ppid':_0x2cb076,'comm':_0x1b620c[_0x5551b5(0x189)](/\.exe$/i,'')};}catch(_0x2979a8){return process[_0x5551b5(0x185)]['DEBUG']&&console[_0x5551b5(0x181)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x142e5c+_0x5551b5(0x19d),_0x2979a8),null;}}function getProcessInfoPosix(_0x31dfce){const _0x39252b=a92_0x32f252;try{const _0x177c89=execSync(_0x39252b(0x17f)+_0x31dfce+_0x39252b(0x19c),{'encoding':'utf-8'})[_0x39252b(0x199)](),[_0x3a0f39,..._0x388ff2]=_0x177c89['split'](/\s+/),_0x55d2fd=parseInt(_0x3a0f39,0xa),_0x29f4d3=_0x388ff2['join']('\x20');if(isNaN(_0x55d2fd))return null;return{'pid':_0x31dfce,'ppid':_0x55d2fd,'comm':_0x29f4d3};}catch(_0x45b234){return process['env']['DEBUG']&&console[_0x39252b(0x181)](_0x39252b(0x17d)+_0x31dfce+'\x20on\x20POSIX:',_0x45b234),null;}}function getProcessInfo(_0x1a84d2){const _0x477eab=a92_0x32f252;if(process[_0x477eab(0x195)]===_0x477eab(0x183))return getProcessInfoWindows(_0x1a84d2);return getProcessInfoPosix(_0x1a84d2);}function getBasename(_0x23d843){const _0x4706c6=a92_0x32f252;return _0x23d843[_0x4706c6(0x189)](/^-/,'')['split']('/')[_0x4706c6(0x19b)]()?.['toLowerCase']()||'';}function isShell(_0x4f9640){const _0x24af2b=a92_0x32f252;return SHELL_NAMES[_0x24af2b(0x17b)](getBasename(_0x4f9640));}function a92_0x1369(_0x4180a9,_0x3fcaa9){const _0x4f7636=a92_0x4f76();return a92_0x1369=function(_0x1369be,_0x2b389c){_0x1369be=_0x1369be-0x172;let _0x5b3ca7=_0x4f7636[_0x1369be];return _0x5b3ca7;},a92_0x1369(_0x4180a9,_0x3fcaa9);}function isEphemeralShellSpawner(_0x5219f2){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x5219f2));}function a92_0x4f76(){const _0xce5d88=['filter','env','ksh','dash','cursor','replace','1174HtnyhL','7109944MDnHEt','comm',')\x20spawned\x20by\x20','\x20get\x20ParentProcessId,Name\x20/format:csv','fish',',\x20using\x20fallback','bash','2823363AyTAoh','elvish','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','platform','ion','826651BAcECv','tcsh','trim','ppid','pop','\x20-o\x20ppid=,comm=','\x20on\x20Windows:','csh','572444azVOYP','6087390hRFmJO','5fIcnno','pid','claude','zsh','code','DEBUG','Found\x20ephemeral\x20shell\x20','1514TthfHM','wmic\x20process\x20where\x20ProcessId=','powershell','has','length','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','ps\x20-p\x20','1472001oJlRSO','error','xonsh','win32'];a92_0x4f76=function(){return _0xce5d88;};return a92_0x4f76();}let cachedShellPID;function findShellPID(){const _0x419914=a92_0x32f252;let _0xc7b5ba=process['ppid'];const _0x1d59e2=0xa;let _0x11f22a=0x0;while(_0x11f22a<_0x1d59e2){const _0x2eb523=getProcessInfo(_0xc7b5ba);if(!_0x2eb523){process[_0x419914(0x185)]['DEBUG']&&console[_0x419914(0x181)](_0x419914(0x194)+_0xc7b5ba+_0x419914(0x190));break;}if(isShell(_0x2eb523[_0x419914(0x18c)])){const _0x7ec7a2=getProcessInfo(_0x2eb523[_0x419914(0x19a)]);if(_0x7ec7a2&&isEphemeralShellSpawner(_0x7ec7a2[_0x419914(0x18c)])){process['env'][_0x419914(0x176)]&&console[_0x419914(0x181)](_0x419914(0x177)+_0x2eb523[_0x419914(0x172)]+'\x20('+_0x2eb523[_0x419914(0x18c)]+_0x419914(0x18d)+_0x7ec7a2[_0x419914(0x18c)]+',\x20continuing\x20up');_0xc7b5ba=_0x2eb523['ppid'],_0x11f22a++;continue;}return _0x2eb523[_0x419914(0x172)];}if(_0x2eb523[_0x419914(0x19a)]===0x0||_0x2eb523[_0x419914(0x19a)]===0x1){if(isShell(_0x2eb523[_0x419914(0x18c)]))return _0x2eb523['pid'];break;}_0xc7b5ba=_0x2eb523[_0x419914(0x19a)],_0x11f22a++;}return process[_0x419914(0x185)]['DEBUG']&&console[_0x419914(0x181)](_0x419914(0x17e)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x165e38){try{return process['kill'](_0x165e38,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x1db066,_0x34934b){const _0x174163=a93_0x55a1,_0x22bb04=_0x1db066();while(!![]){try{const _0x2606ee=-parseInt(_0x174163(0x12f))/0x1*(parseInt(_0x174163(0x143))/0x2)+parseInt(_0x174163(0x139))/0x3+-parseInt(_0x174163(0x13c))/0x4+-parseInt(_0x174163(0x138))/0x5+parseInt(_0x174163(0x137))/0x6*(parseInt(_0x174163(0x12d))/0x7)+-parseInt(_0x174163(0x141))/0x8+parseInt(_0x174163(0x12c))/0x9;if(_0x2606ee===_0x34934b)break;else _0x22bb04['push'](_0x22bb04['shift']());}catch(_0x40fdd4){_0x22bb04['push'](_0x22bb04['shift']());}}}(a93_0x60dd,0xd1a9a));import*as a93_0x28b909 from'readline';export async function confirm(_0x4d053a){const _0x1d9764=a93_0x55a1,_0xd84473=a93_0x28b909[_0x1d9764(0x13a)]({'input':process[_0x1d9764(0x12b)],'output':process[_0x1d9764(0x135)]});return new Promise(_0x46b607=>{const _0x252d0f=_0x1d9764;_0xd84473[_0x252d0f(0x131)](_0x4d053a+_0x252d0f(0x133),_0x5c9b08=>{const _0x5a7381=_0x252d0f;_0xd84473[_0x5a7381(0x130)](),_0x46b607(_0x5c9b08[_0x5a7381(0x12e)]()==='y'||_0x5c9b08['toLowerCase']()===_0x5a7381(0x13e));});});}function a93_0x55a1(_0x49a200,_0x4ea815){const _0x60ddba=a93_0x60dd();return a93_0x55a1=function(_0x55a10e,_0x4bbed0){_0x55a10e=_0x55a10e-0x12a;let _0x2d6766=_0x60ddba[_0x55a10e];return _0x2d6766;},a93_0x55a1(_0x49a200,_0x4ea815);}export async function confirmKey(_0x128ebb){const _0x4e1064=a93_0x55a1;if(!process['stdin'][_0x4e1064(0x132)])return![];return process['stderr'][_0x4e1064(0x134)](_0x128ebb+_0x4e1064(0x13b)),new Promise(_0x25138d=>{const _0x4f1111=_0x4e1064,_0x5e2b1f=process['stdin'];_0x5e2b1f['setRawMode'](!![]),_0x5e2b1f['resume'](),_0x5e2b1f[_0x4f1111(0x140)](_0x4f1111(0x142));const _0x4d63b1=_0x40496b=>{const _0x2df3da=_0x4f1111;_0x5e2b1f['setRawMode'](![]),_0x5e2b1f[_0x2df3da(0x13d)](),_0x5e2b1f[_0x2df3da(0x13f)]('data',_0x4d63b1);if(_0x40496b==='\x1b'){process[_0x2df3da(0x136)]['write']('\x0a'),_0x25138d(![]);return;}_0x40496b==='\x03'&&(process[_0x2df3da(0x136)][_0x2df3da(0x134)]('\x0a'),process[_0x2df3da(0x12a)](0x82));if(_0x40496b['toLowerCase']()==='y'){process[_0x2df3da(0x136)][_0x2df3da(0x134)]('y\x0a'),_0x25138d(!![]);return;}process['stderr'][_0x2df3da(0x134)]('\x0a'),_0x25138d(![]);};_0x5e2b1f['on'](_0x4f1111(0x144),_0x4d63b1);});}function a93_0x60dd(){const _0x3dcf6d=['4407016FRflxQ','pause','yes','removeListener','setEncoding','89904tuLfRg','utf8','34jOZZHS','data','exit','stdin','13569714cfLpTe','466522rZVKGW','toLowerCase','29831GWugPw','close','question','isTTY','\x20(y/N):\x20','write','stdout','stderr','132hQNuCQ','7595310fPQDaB','3072003PVYJoU','createInterface','\x20[y/N]\x20'];a93_0x60dd=function(){return _0x3dcf6d;};return a93_0x60dd();}
1
+ (function(_0xb87619,_0x37aafd){const _0x53da42=a93_0x2b8a,_0x3da0cb=_0xb87619();while(!![]){try{const _0x42a874=-parseInt(_0x53da42(0x9b))/0x1+-parseInt(_0x53da42(0x8f))/0x2*(parseInt(_0x53da42(0xa4))/0x3)+-parseInt(_0x53da42(0x99))/0x4*(parseInt(_0x53da42(0xa0))/0x5)+-parseInt(_0x53da42(0x90))/0x6+parseInt(_0x53da42(0xa3))/0x7*(parseInt(_0x53da42(0x9a))/0x8)+parseInt(_0x53da42(0x96))/0x9*(-parseInt(_0x53da42(0x8d))/0xa)+-parseInt(_0x53da42(0x9e))/0xb*(-parseInt(_0x53da42(0x8e))/0xc);if(_0x42a874===_0x37aafd)break;else _0x3da0cb['push'](_0x3da0cb['shift']());}catch(_0x2c8a88){_0x3da0cb['push'](_0x3da0cb['shift']());}}}(a93_0x2102,0xec2c8));import*as a93_0x450d94 from'readline';function a93_0x2102(){const _0x226154=['createInterface','\x20(y/N):\x20','removeListener','1179ISUgbH','\x20[y/N]\x20','stderr','31292VKngDW','152JhweGx','117523RtjLVR','data','stdin','2981MsMtHF','toLowerCase','410cxwyXc','question','close','315917WJKPVq','60okjzrK','resume','107140frACBW','159708fWsZRg','50342rkXNwb','4985382aWjaqN','isTTY','write'];a93_0x2102=function(){return _0x226154;};return a93_0x2102();}function a93_0x2b8a(_0x2cb0ea,_0x375a9d){const _0x2102cf=a93_0x2102();return a93_0x2b8a=function(_0x2b8ae,_0x3880c6){_0x2b8ae=_0x2b8ae-0x8c;let _0x1a116e=_0x2102cf[_0x2b8ae];return _0x1a116e;},a93_0x2b8a(_0x2cb0ea,_0x375a9d);}export async function confirm(_0x3f8067){const _0xc4f71=a93_0x2b8a,_0x2fd9fe=a93_0x450d94[_0xc4f71(0x93)]({'input':process[_0xc4f71(0x9d)],'output':process['stdout']});return new Promise(_0x32e5d5=>{const _0x2e4353=_0xc4f71;_0x2fd9fe[_0x2e4353(0xa1)](_0x3f8067+_0x2e4353(0x94),_0x2dfced=>{const _0x39396c=_0x2e4353;_0x2fd9fe[_0x39396c(0xa2)](),_0x32e5d5(_0x2dfced['toLowerCase']()==='y'||_0x2dfced[_0x39396c(0x9f)]()==='yes');});});}export async function confirmKey(_0x5c3e36){const _0x1fbb47=a93_0x2b8a;if(!process[_0x1fbb47(0x9d)][_0x1fbb47(0x91)])return![];return process['stderr'][_0x1fbb47(0x92)](_0x5c3e36+_0x1fbb47(0x97)),new Promise(_0x294c53=>{const _0x4019d6=_0x1fbb47,_0x2bc839=process[_0x4019d6(0x9d)];_0x2bc839['setRawMode'](!![]),_0x2bc839[_0x4019d6(0x8c)](),_0x2bc839['setEncoding']('utf8');const _0x23aaf7=_0x35345f=>{const _0xd6ecaa=_0x4019d6;_0x2bc839['setRawMode'](![]),_0x2bc839['pause'](),_0x2bc839[_0xd6ecaa(0x95)](_0xd6ecaa(0x9c),_0x23aaf7);if(_0x35345f==='\x1b'){process[_0xd6ecaa(0x98)]['write']('\x0a'),_0x294c53(![]);return;}_0x35345f==='\x03'&&(process[_0xd6ecaa(0x98)][_0xd6ecaa(0x92)]('\x0a'),process['exit'](0x82));if(_0x35345f[_0xd6ecaa(0x9f)]()==='y'){process[_0xd6ecaa(0x98)][_0xd6ecaa(0x92)]('y\x0a'),_0x294c53(!![]);return;}process[_0xd6ecaa(0x98)][_0xd6ecaa(0x92)]('\x0a'),_0x294c53(![]);};_0x2bc839['on'](_0x4019d6(0x9c),_0x23aaf7);});}
@@ -1 +1 @@
1
- (function(_0xa6aa16,_0x14bff2){const _0x1b17df=a94_0x185d,_0x1f0670=_0xa6aa16();while(!![]){try{const _0xf5fa2d=parseInt(_0x1b17df(0x88))/0x1+parseInt(_0x1b17df(0x9a))/0x2+-parseInt(_0x1b17df(0x91))/0x3+parseInt(_0x1b17df(0x95))/0x4*(parseInt(_0x1b17df(0x81))/0x5)+-parseInt(_0x1b17df(0x9b))/0x6*(parseInt(_0x1b17df(0x83))/0x7)+-parseInt(_0x1b17df(0x99))/0x8*(-parseInt(_0x1b17df(0x94))/0x9)+parseInt(_0x1b17df(0x85))/0xa*(parseInt(_0x1b17df(0x9f))/0xb);if(_0xf5fa2d===_0x14bff2)break;else _0x1f0670['push'](_0x1f0670['shift']());}catch(_0x1fd458){_0x1f0670['push'](_0x1f0670['shift']());}}}(a94_0x3d98,0x51fa5));function a94_0x185d(_0x26dcd1,_0x18a62b){const _0x3d9893=a94_0x3d98();return a94_0x185d=function(_0x185d0c,_0x472bb7){_0x185d0c=_0x185d0c-0x7f;let _0x3d8d54=_0x3d9893[_0x185d0c];return _0x3d8d54;},a94_0x185d(_0x26dcd1,_0x18a62b);}export function parsePath(_0x33e2ce){const _0x15283b=a94_0x185d;if(!_0x33e2ce||_0x33e2ce['trim']()==='')throw new Error(_0x15283b(0x84));const _0x25828b=_0x33e2ce[_0x15283b(0x82)]();if(_0x25828b==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x33e2ce};const _0x31d8f9=_0x25828b[_0x15283b(0x8d)]('/')?_0x25828b[_0x15283b(0x96)](0x1):_0x25828b,_0x10dc6b=_0x31d8f9[_0x15283b(0x8c)]('/')[_0x15283b(0x93)](_0x2d2b35=>_0x2d2b35!=='');if(_0x10dc6b['length']===0x0)throw new Error(_0x15283b(0x92));const _0x499d2d=_0x25828b['startsWith']('/')||!isRelativePathSegment(_0x10dc6b[0x0]);for(const _0x22eac8 of _0x10dc6b){validatePathSegment(_0x22eac8);}return{'segments':_0x10dc6b,'isAbsolute':_0x499d2d,'raw':_0x33e2ce};}function isRelativePathSegment(_0x3a2af2){return _0x3a2af2==='.'||_0x3a2af2==='..';}function validatePathSegment(_0x286676){const _0x485de0=a94_0x185d;if(_0x286676==='')throw new Error(_0x485de0(0x86));if(_0x286676==='.'||_0x286676==='..')return;if(/[\x00-\x1F\x7F]/[_0x485de0(0x90)](_0x286676))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x286676);if(_0x286676!==_0x286676['trim']()){}}export function validatePath(_0xbffcbe){const _0x3f62c6=a94_0x185d;if(_0xbffcbe[_0x3f62c6(0x8f)][_0x3f62c6(0x8b)]===0x0&&!_0xbffcbe[_0x3f62c6(0x87)])throw new Error(_0x3f62c6(0x8e));if(_0xbffcbe[_0x3f62c6(0x87)]){if(_0xbffcbe[_0x3f62c6(0x8f)][0x0]==='..')throw new Error(_0x3f62c6(0x9e));let _0xa4dd79=0x0;for(const _0x216a40 of _0xbffcbe[_0x3f62c6(0x8f)]){if(_0x216a40==='..'){if(_0xa4dd79===0x0)throw new Error(_0x3f62c6(0x80));_0xa4dd79--;}else _0x216a40!=='.'&&_0xa4dd79++;}}}function a94_0x3d98(){const _0x253865=['20AsqeZY','Path\x20segment\x20cannot\x20be\x20empty','isAbsolute','283172rCeKLY','join','push','length','split','startsWith','Relative\x20path\x20cannot\x20be\x20empty','segments','test','1175211SuqUSQ','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','filter','630594bgmHLB','36LtMdef','substring','slice','Cannot\x20navigate\x20above\x20root','40QIDTjv','504786nvGJGr','12mQcvgD','pop','Cannot\x20split\x20empty\x20path','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','1272183GaPCxX','raw','Path\x20attempts\x20to\x20navigate\x20above\x20root','71515IjARnZ','trim','1814435xHqJER','Path\x20cannot\x20be\x20empty'];a94_0x3d98=function(){return _0x253865;};return a94_0x3d98();}export function joinPaths(_0x13427f,_0xaa455d){const _0x4058fe=a94_0x185d;if(!_0x13427f||_0x13427f==='/')return _0xaa455d;if(!_0xaa455d||_0xaa455d==='.')return _0x13427f;if(_0xaa455d[_0x4058fe(0x8d)]('/'))return _0xaa455d;const _0x32b4c5=parsePath(_0x13427f),_0x11dbca=parsePath(_0xaa455d),_0x2a828c=[..._0x32b4c5[_0x4058fe(0x8f)]];for(const _0x3104a1 of _0x11dbca[_0x4058fe(0x8f)]){if(_0x3104a1==='.')continue;else{if(_0x3104a1==='..'){if(_0x2a828c['length']===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x2a828c[_0x4058fe(0x9c)]();}else _0x2a828c['push'](_0x3104a1);}}const _0x362766=_0x2a828c[_0x4058fe(0x89)]('/');return _0x32b4c5['raw']['startsWith']('/')?'/'+_0x362766:_0x362766;}export function normalizePath(_0x48f0c5){const _0x54a091=a94_0x185d,_0x36201f=parsePath(_0x48f0c5),_0x56fffd=[];for(const _0x5cf925 of _0x36201f[_0x54a091(0x8f)]){if(_0x5cf925==='.')continue;else{if(_0x5cf925==='..'){if(_0x56fffd[_0x54a091(0x8b)]===0x0){if(_0x36201f[_0x54a091(0x87)])throw new Error(_0x54a091(0x98));_0x56fffd[_0x54a091(0x8a)]('..');}else _0x56fffd[_0x56fffd[_0x54a091(0x8b)]-0x1]==='..'?_0x56fffd[_0x54a091(0x8a)]('..'):_0x56fffd['pop']();}else _0x56fffd[_0x54a091(0x8a)](_0x5cf925);}}if(_0x56fffd['length']===0x0)return _0x36201f[_0x54a091(0x87)]?'/':'.';const _0x3f440f=_0x56fffd[_0x54a091(0x89)]('/');return _0x36201f[_0x54a091(0x7f)][_0x54a091(0x8d)]('/')?'/'+_0x3f440f:_0x3f440f;}export function getParentPath(_0x133938){const _0x4f3aff=a94_0x185d,_0xe195bc=parsePath(_0x133938);if(_0xe195bc[_0x4f3aff(0x8f)][_0x4f3aff(0x8b)]<=0x1)return'/';const _0x41286b=_0xe195bc[_0x4f3aff(0x8f)][_0x4f3aff(0x97)](0x0,-0x1)['join']('/');return _0xe195bc['raw'][_0x4f3aff(0x8d)]('/')?'/'+_0x41286b:_0x41286b;}export function getBaseName(_0x5eb153){const _0x375309=a94_0x185d,_0x1c5fff=parsePath(_0x5eb153);return _0x1c5fff['segments'][_0x1c5fff[_0x375309(0x8f)][_0x375309(0x8b)]-0x1]||'';}export function isChildPath(_0x348b7f,_0x266daf){const _0x15f137=a94_0x185d,_0x1bd0f3=parsePath(_0x348b7f),_0x722c74=parsePath(_0x266daf);if(_0x1bd0f3[_0x15f137(0x8f)][_0x15f137(0x8b)]<=_0x722c74['segments']['length'])return![];for(let _0x56a40f=0x0;_0x56a40f<_0x722c74[_0x15f137(0x8f)]['length'];_0x56a40f++){if(_0x1bd0f3['segments'][_0x56a40f]!==_0x722c74[_0x15f137(0x8f)][_0x56a40f])return![];}return!![];}export function splitPath(_0x5a5641){const _0x651854=a94_0x185d,_0x4c7acf=parsePath(_0x5a5641);if(_0x4c7acf['segments'][_0x651854(0x8b)]===0x0)throw new Error(_0x651854(0x9d));if(_0x4c7acf[_0x651854(0x8f)][_0x651854(0x8b)]===0x1)return{'parent':_0x4c7acf[_0x651854(0x8f)][0x0]};return{'parent':_0x4c7acf[_0x651854(0x8f)][0x0],'child':_0x4c7acf[_0x651854(0x8f)][_0x651854(0x97)](0x1)[_0x651854(0x89)]('/')};}
1
+ (function(_0x491302,_0x25826b){const _0x4bc78a=a94_0x518b,_0x5116c4=_0x491302();while(!![]){try{const _0x2be724=-parseInt(_0x4bc78a(0x8b))/0x1*(-parseInt(_0x4bc78a(0x87))/0x2)+-parseInt(_0x4bc78a(0x99))/0x3*(-parseInt(_0x4bc78a(0x9c))/0x4)+-parseInt(_0x4bc78a(0x98))/0x5*(parseInt(_0x4bc78a(0xa2))/0x6)+parseInt(_0x4bc78a(0x89))/0x7*(-parseInt(_0x4bc78a(0x8d))/0x8)+parseInt(_0x4bc78a(0x86))/0x9*(parseInt(_0x4bc78a(0xa5))/0xa)+parseInt(_0x4bc78a(0xa0))/0xb*(-parseInt(_0x4bc78a(0x88))/0xc)+parseInt(_0x4bc78a(0xa4))/0xd*(-parseInt(_0x4bc78a(0x92))/0xe);if(_0x2be724===_0x25826b)break;else _0x5116c4['push'](_0x5116c4['shift']());}catch(_0x404948){_0x5116c4['push'](_0x5116c4['shift']());}}}(a94_0x4415,0x49bdc));export function parsePath(_0x96c7e8){const _0x245c9b=a94_0x518b;if(!_0x96c7e8||_0x96c7e8[_0x245c9b(0x8f)]()==='')throw new Error(_0x245c9b(0x8a));const _0x318ba2=_0x96c7e8['trim']();if(_0x318ba2==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x96c7e8};const _0x3ed61f=_0x318ba2[_0x245c9b(0x91)]('/')?_0x318ba2['substring'](0x1):_0x318ba2,_0x3fb9ed=_0x3ed61f[_0x245c9b(0x9e)]('/')[_0x245c9b(0x90)](_0x1dec0a=>_0x1dec0a!=='');if(_0x3fb9ed[_0x245c9b(0x94)]===0x0)throw new Error(_0x245c9b(0x9f));const _0x3bef30=_0x318ba2['startsWith']('/')||!isRelativePathSegment(_0x3fb9ed[0x0]);for(const _0x5a76b2 of _0x3fb9ed){validatePathSegment(_0x5a76b2);}return{'segments':_0x3fb9ed,'isAbsolute':_0x3bef30,'raw':_0x96c7e8};}function a94_0x518b(_0x1efec3,_0x37a8db){const _0x44159f=a94_0x4415();return a94_0x518b=function(_0x518bf7,_0x560ffa){_0x518bf7=_0x518bf7-0x83;let _0x55b4ba=_0x44159f[_0x518bf7];return _0x55b4ba;},a94_0x518b(_0x1efec3,_0x37a8db);}function isRelativePathSegment(_0x5572a1){return _0x5572a1==='.'||_0x5572a1==='..';}function validatePathSegment(_0x561409){const _0x161022=a94_0x518b;if(_0x561409==='')throw new Error(_0x161022(0x8c));if(_0x561409==='.'||_0x561409==='..')return;if(/[\x00-\x1F\x7F]/[_0x161022(0x93)](_0x561409))throw new Error(_0x161022(0x95)+_0x561409);if(_0x561409!==_0x561409['trim']()){}}export function validatePath(_0x4ec9d4){const _0x5aa7bd=a94_0x518b;if(_0x4ec9d4[_0x5aa7bd(0x9b)][_0x5aa7bd(0x94)]===0x0&&!_0x4ec9d4[_0x5aa7bd(0x85)])throw new Error(_0x5aa7bd(0x97));if(_0x4ec9d4[_0x5aa7bd(0x85)]){if(_0x4ec9d4[_0x5aa7bd(0x9b)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x4d6726=0x0;for(const _0x56af7d of _0x4ec9d4[_0x5aa7bd(0x9b)]){if(_0x56af7d==='..'){if(_0x4d6726===0x0)throw new Error(_0x5aa7bd(0x96));_0x4d6726--;}else _0x56af7d!=='.'&&_0x4d6726++;}}}export function joinPaths(_0x243ec8,_0x300a22){const _0x47a3a2=a94_0x518b;if(!_0x243ec8||_0x243ec8==='/')return _0x300a22;if(!_0x300a22||_0x300a22==='.')return _0x243ec8;if(_0x300a22[_0x47a3a2(0x91)]('/'))return _0x300a22;const _0x4b2b8c=parsePath(_0x243ec8),_0x438753=parsePath(_0x300a22),_0x5eb6c3=[..._0x4b2b8c[_0x47a3a2(0x9b)]];for(const _0x22aa2a of _0x438753[_0x47a3a2(0x9b)]){if(_0x22aa2a==='.')continue;else{if(_0x22aa2a==='..'){if(_0x5eb6c3['length']===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x5eb6c3[_0x47a3a2(0x9d)]();}else _0x5eb6c3[_0x47a3a2(0x8e)](_0x22aa2a);}}const _0x28f537=_0x5eb6c3['join']('/');return _0x4b2b8c['raw'][_0x47a3a2(0x91)]('/')?'/'+_0x28f537:_0x28f537;}function a94_0x4415(){const _0x5c0497=['63300zuDwrZ','14NhCUmb','Path\x20cannot\x20be\x20empty','1VFGgGu','Path\x20segment\x20cannot\x20be\x20empty','603776NxGqmV','push','trim','filter','startsWith','14orPXaK','test','length','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Path\x20attempts\x20to\x20navigate\x20above\x20root','Relative\x20path\x20cannot\x20be\x20empty','270990YhQcpo','79110BJeRnE','slice','segments','72NeFVYj','pop','split','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','275BJPtHZ','raw','66zeAidU','join','5853913dvpfBr','340wFVnVA','Cannot\x20split\x20empty\x20path','Cannot\x20navigate\x20above\x20root','isAbsolute','147834OGuChD','1196396ghjqHR'];a94_0x4415=function(){return _0x5c0497;};return a94_0x4415();}export function normalizePath(_0x413731){const _0x1438e0=a94_0x518b,_0x4cadaf=parsePath(_0x413731),_0x463e8b=[];for(const _0x3a2612 of _0x4cadaf[_0x1438e0(0x9b)]){if(_0x3a2612==='.')continue;else{if(_0x3a2612==='..'){if(_0x463e8b[_0x1438e0(0x94)]===0x0){if(_0x4cadaf[_0x1438e0(0x85)])throw new Error(_0x1438e0(0x84));_0x463e8b[_0x1438e0(0x8e)]('..');}else _0x463e8b[_0x463e8b[_0x1438e0(0x94)]-0x1]==='..'?_0x463e8b[_0x1438e0(0x8e)]('..'):_0x463e8b[_0x1438e0(0x9d)]();}else _0x463e8b[_0x1438e0(0x8e)](_0x3a2612);}}if(_0x463e8b['length']===0x0)return _0x4cadaf[_0x1438e0(0x85)]?'/':'.';const _0x1b898e=_0x463e8b[_0x1438e0(0xa3)]('/');return _0x4cadaf[_0x1438e0(0xa1)][_0x1438e0(0x91)]('/')?'/'+_0x1b898e:_0x1b898e;}export function getParentPath(_0x1cb30d){const _0x6623d=a94_0x518b,_0x24597a=parsePath(_0x1cb30d);if(_0x24597a[_0x6623d(0x9b)][_0x6623d(0x94)]<=0x1)return'/';const _0x3c6f53=_0x24597a[_0x6623d(0x9b)][_0x6623d(0x9a)](0x0,-0x1)[_0x6623d(0xa3)]('/');return _0x24597a[_0x6623d(0xa1)]['startsWith']('/')?'/'+_0x3c6f53:_0x3c6f53;}export function getBaseName(_0x285bfc){const _0x31b308=a94_0x518b,_0x427a39=parsePath(_0x285bfc);return _0x427a39[_0x31b308(0x9b)][_0x427a39['segments']['length']-0x1]||'';}export function isChildPath(_0x4af86d,_0xa8a605){const _0x3b7ba8=a94_0x518b,_0x2c57f9=parsePath(_0x4af86d),_0x4dadfb=parsePath(_0xa8a605);if(_0x2c57f9[_0x3b7ba8(0x9b)]['length']<=_0x4dadfb[_0x3b7ba8(0x9b)][_0x3b7ba8(0x94)])return![];for(let _0x329d17=0x0;_0x329d17<_0x4dadfb[_0x3b7ba8(0x9b)][_0x3b7ba8(0x94)];_0x329d17++){if(_0x2c57f9[_0x3b7ba8(0x9b)][_0x329d17]!==_0x4dadfb['segments'][_0x329d17])return![];}return!![];}export function splitPath(_0x54861e){const _0x54f0b2=a94_0x518b,_0x56e2f3=parsePath(_0x54861e);if(_0x56e2f3[_0x54f0b2(0x9b)][_0x54f0b2(0x94)]===0x0)throw new Error(_0x54f0b2(0x83));if(_0x56e2f3[_0x54f0b2(0x9b)]['length']===0x1)return{'parent':_0x56e2f3[_0x54f0b2(0x9b)][0x0]};return{'parent':_0x56e2f3[_0x54f0b2(0x9b)][0x0],'child':_0x56e2f3['segments'][_0x54f0b2(0x9a)](0x1)['join']('/')};}
@@ -1 +1 @@
1
- function a95_0x177f(_0x4dbd19,_0x2c77e0){const _0x5346b9=a95_0x5346();return a95_0x177f=function(_0x177f57,_0x3308b0){_0x177f57=_0x177f57-0x199;let _0x5c2749=_0x5346b9[_0x177f57];return _0x5c2749;},a95_0x177f(_0x4dbd19,_0x2c77e0);}(function(_0x2f171c,_0x15edaf){const _0x24298e=a95_0x177f,_0x258729=_0x2f171c();while(!![]){try{const _0x377ef7=-parseInt(_0x24298e(0x1a2))/0x1+-parseInt(_0x24298e(0x19e))/0x2+parseInt(_0x24298e(0x19b))/0x3*(-parseInt(_0x24298e(0x19c))/0x4)+-parseInt(_0x24298e(0x19f))/0x5+-parseInt(_0x24298e(0x1a5))/0x6*(parseInt(_0x24298e(0x1a6))/0x7)+-parseInt(_0x24298e(0x19a))/0x8+parseInt(_0x24298e(0x199))/0x9*(parseInt(_0x24298e(0x1a0))/0xa);if(_0x377ef7===_0x15edaf)break;else _0x258729['push'](_0x258729['shift']());}catch(_0x3055e9){_0x258729['push'](_0x258729['shift']());}}}(a95_0x5346,0x30ab0));function a95_0x5346(){const _0x243fda=['1463960mTPdao','9515590wzcAbA','Invalid\x20segment\x20reference\x20format:\x20','359182Bjikiz','substring','.\x20Child\x20name\x20cannot\x20be\x20empty','228342hrEMiW','42hcqZiY','18CvGtAn','2428488METHMX','30UcdKll','56432lMrSsv','indexOf','757634psXIYe'];a95_0x5346=function(){return _0x243fda;};return a95_0x5346();}export function parseSegmentRef(_0x5f3c0d){const _0x4ef56a=a95_0x177f,_0x4ecd35=_0x5f3c0d[_0x4ef56a(0x19d)]('/');if(_0x4ecd35===-0x1)return{'parentId':_0x5f3c0d};if(_0x4ecd35===0x0)throw new Error(_0x4ef56a(0x1a1)+_0x5f3c0d+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x5cf702=_0x5f3c0d['substring'](0x0,_0x4ecd35),_0x29ae32=_0x5f3c0d[_0x4ef56a(0x1a3)](_0x4ecd35+0x1);if(_0x29ae32==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x5f3c0d+_0x4ef56a(0x1a4));return{'parentId':_0x5cf702,'childId':_0x29ae32};}
1
+ (function(_0x207adf,_0xa2af3a){const _0x2a4f67=a95_0x74c7,_0x882857=_0x207adf();while(!![]){try{const _0x5a862f=-parseInt(_0x2a4f67(0x1f3))/0x1*(parseInt(_0x2a4f67(0x1f2))/0x2)+parseInt(_0x2a4f67(0x1f6))/0x3*(parseInt(_0x2a4f67(0x1f7))/0x4)+-parseInt(_0x2a4f67(0x1f1))/0x5+parseInt(_0x2a4f67(0x1f0))/0x6+-parseInt(_0x2a4f67(0x1ef))/0x7*(-parseInt(_0x2a4f67(0x1f5))/0x8)+-parseInt(_0x2a4f67(0x1f9))/0x9+parseInt(_0x2a4f67(0x1f8))/0xa;if(_0x5a862f===_0xa2af3a)break;else _0x882857['push'](_0x882857['shift']());}catch(_0x5c5467){_0x882857['push'](_0x882857['shift']());}}}(a95_0x41f3,0xa6d9a));export function parseSegmentRef(_0x57bc82){const _0x36d64b=a95_0x74c7,_0x2bf06a=_0x57bc82['indexOf']('/');if(_0x2bf06a===-0x1)return{'parentId':_0x57bc82};if(_0x2bf06a===0x0)throw new Error(_0x36d64b(0x1ed)+_0x57bc82+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x22fd54=_0x57bc82[_0x36d64b(0x1f4)](0x0,_0x2bf06a),_0x57142b=_0x57bc82[_0x36d64b(0x1f4)](_0x2bf06a+0x1);if(_0x57142b==='')throw new Error(_0x36d64b(0x1ed)+_0x57bc82+_0x36d64b(0x1ee));return{'parentId':_0x22fd54,'childId':_0x57142b};}function a95_0x74c7(_0x5862ef,_0x90b86a){const _0x41f32c=a95_0x41f3();return a95_0x74c7=function(_0x74c76b,_0x3ed444){_0x74c76b=_0x74c76b-0x1ed;let _0x284b48=_0x41f32c[_0x74c76b];return _0x284b48;},a95_0x74c7(_0x5862ef,_0x90b86a);}function a95_0x41f3(){const _0x370554=['18400900NymRoe','4893948kMrJXo','Invalid\x20segment\x20reference\x20format:\x20','.\x20Child\x20name\x20cannot\x20be\x20empty','14FaySIw','2738376YzUWNF','4414425jKKVOY','2yxRCqr','991906OrnCTH','substring','515392mSXCpM','11871PlUDMv','684ltjJRb'];a95_0x41f3=function(){return _0x370554;};return a95_0x41f3();}
@@ -1 +1 @@
1
- (function(_0x4bad14,_0x18855e){const _0x2d50cd=a96_0x29a8,_0xfc8139=_0x4bad14();while(!![]){try{const _0x255a27=parseInt(_0x2d50cd(0xbf))/0x1+parseInt(_0x2d50cd(0xc0))/0x2+parseInt(_0x2d50cd(0xc1))/0x3+parseInt(_0x2d50cd(0xc5))/0x4+-parseInt(_0x2d50cd(0xb9))/0x5+-parseInt(_0x2d50cd(0xc3))/0x6+-parseInt(_0x2d50cd(0xb6))/0x7;if(_0x255a27===_0x18855e)break;else _0xfc8139['push'](_0xfc8139['shift']());}catch(_0x534ec5){_0xfc8139['push'](_0xfc8139['shift']());}}}(a96_0x3e78,0x93c16));function a96_0x29a8(_0xe39bb3,_0x29b248){const _0x3e7834=a96_0x3e78();return a96_0x29a8=function(_0x29a821,_0x5decde){_0x29a821=_0x29a821-0xb5;let _0x2aa081=_0x3e7834[_0x29a821];return _0x2aa081;},a96_0x29a8(_0xe39bb3,_0x29b248);}import a96_0x16853a from'ora';export function createCommandSpinner(_0x2bd48c,_0x40337c={}){const _0x2c245b=a96_0x29a8,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x40337c;return a96_0x16853a({'text':_0x2bd48c,'color':_0x2c245b(0xbb),'isEnabled':forceEnabled||process[_0x2c245b(0xbc)][_0x2c245b(0xb5)]&&!verbose});}function a96_0x3e78(){const _0x2a60b4=['901722IrlBkF','1607565ijDYda','\x20[Job\x20ID:\x20','2045142YesPBJ','jobId','351028Oaxuxk','phase','text','floor','...','intervalFactory','isTTY','3473253pJKYMt','toFixed','stop','2573330QRZDzJ','start','cyan','stdout','extra','clock','882435FEWDfO'];a96_0x3e78=function(){return _0x2a60b4;};return a96_0x3e78();}export async function withSpinner(_0x531aea,_0x10fe9c,_0x4281d1={}){const _0x51adb6=a96_0x29a8,_0x56e946=_0x4281d1['clock']??(()=>Date['now']()),_0x95ce53=createCommandSpinner(_0x531aea,_0x4281d1);_0x95ce53[_0x51adb6(0xba)]();const _0x2b372b=_0x56e946();try{const _0x3a270b=await _0x10fe9c(),_0x2f62e1=_0x56e946()-_0x2b372b;return _0x95ce53['stop'](),{'data':_0x3a270b,'elapsedMs':_0x2f62e1};}catch(_0x1a0a47){_0x95ce53[_0x51adb6(0xb8)]();throw _0x1a0a47;}}export async function withQuerySpinner(_0x343a9f,_0x4bd88c,_0x4a95b9={}){const _0x54c8ad=a96_0x29a8,_0x11ce5c=_0x4a95b9[_0x54c8ad(0xbe)]??(()=>Date['now']()),_0x206dd8=_0x4a95b9[_0x54c8ad(0xca)]??setInterval,_0x5500e9=createCommandSpinner(_0x343a9f,_0x4a95b9);_0x5500e9[_0x54c8ad(0xba)]();const _0x26f5c0=_0x11ce5c(),_0x33025a=_0x343a9f['replace'](_0x54c8ad(0xc9),''),_0xc44c20={},_0x305e5b=()=>{const _0x239935=_0x54c8ad;if(!_0x5500e9['isSpinning'])return;const _0x3428b1=_0x11ce5c()-_0x26f5c0,_0x26ee86=formatElapsed(_0x3428b1),_0x181978=_0xc44c20[_0x239935(0xc6)]??_0x33025a,_0x531d05=_0xc44c20[_0x239935(0xc4)]?_0x239935(0xc2)+_0xc44c20['jobId']+']':'',_0x2f4e7a=_0xc44c20[_0x239935(0xbd)]?'\x20'+_0xc44c20[_0x239935(0xbd)]:'';_0x5500e9[_0x239935(0xc7)]=_0x181978+'\x20'+_0x26ee86+_0x2f4e7a+_0x531d05;},_0x53ae30=_0x206dd8(()=>{_0x305e5b();},0x3e8),_0x33664b={'setPhase':_0x1f8ec4=>{_0xc44c20['phase']=_0x1f8ec4,_0x305e5b();},'setJobId':_0x5b5382=>{const _0x1da01a=_0x54c8ad;_0xc44c20[_0x1da01a(0xc4)]=_0x5b5382,_0x305e5b();},'setExtra':_0x24de69=>{const _0x421b6b=_0x54c8ad;_0xc44c20[_0x421b6b(0xbd)]=_0x24de69,_0x305e5b();}};_0x305e5b();try{const _0x13aeec=await _0x4bd88c(_0x33664b),_0x50bbf4=_0x11ce5c()-_0x26f5c0;return{'data':_0x13aeec,'elapsedMs':_0x50bbf4};}finally{clearInterval(_0x53ae30),_0x5500e9[_0x54c8ad(0xb8)]();}}export function formatElapsed(_0x6703b){const _0x1374aa=a96_0x29a8,_0x2d72ed=Math['floor'](_0x6703b/0x3e8);if(_0x2d72ed<0x3c)return(_0x6703b/0x3e8)[_0x1374aa(0xb7)](0x1)+'s';const _0x3f74d6=Math[_0x1374aa(0xc8)](_0x2d72ed/0x3c),_0x3c01bd=_0x2d72ed%0x3c;if(_0x3f74d6<0x3c)return _0x3f74d6+'m\x20'+_0x3c01bd+'s';const _0x515cd9=Math[_0x1374aa(0xc8)](_0x3f74d6/0x3c),_0x259171=_0x3f74d6%0x3c;return _0x515cd9+'h\x20'+_0x259171+'m';}
1
+ function a96_0x2603(_0x387ef0,_0x58f158){const _0x234995=a96_0x2349();return a96_0x2603=function(_0x2603c0,_0x26f05d){_0x2603c0=_0x2603c0-0x1e9;let _0x1bb1a8=_0x234995[_0x2603c0];return _0x1bb1a8;},a96_0x2603(_0x387ef0,_0x58f158);}(function(_0x492d0f,_0xc409e9){const _0x4cb976=a96_0x2603,_0x4a31db=_0x492d0f();while(!![]){try{const _0x5c55a8=-parseInt(_0x4cb976(0x1f9))/0x1*(-parseInt(_0x4cb976(0x1f8))/0x2)+parseInt(_0x4cb976(0x1e9))/0x3*(parseInt(_0x4cb976(0x1fe))/0x4)+-parseInt(_0x4cb976(0x1ec))/0x5*(-parseInt(_0x4cb976(0x1ff))/0x6)+parseInt(_0x4cb976(0x1fa))/0x7*(-parseInt(_0x4cb976(0x1f3))/0x8)+-parseInt(_0x4cb976(0x1eb))/0x9+-parseInt(_0x4cb976(0x203))/0xa+parseInt(_0x4cb976(0x1fc))/0xb*(parseInt(_0x4cb976(0x1ef))/0xc);if(_0x5c55a8===_0xc409e9)break;else _0x4a31db['push'](_0x4a31db['shift']());}catch(_0x51b7a3){_0x4a31db['push'](_0x4a31db['shift']());}}}(a96_0x2349,0xbc654));import a96_0x1702d1 from'ora';export function createCommandSpinner(_0x2a6ca3,_0x1ca1f9={}){const _0x51bc33=a96_0x2603,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1ca1f9;return a96_0x1702d1({'text':_0x2a6ca3,'color':_0x51bc33(0x1f6),'isEnabled':forceEnabled||process[_0x51bc33(0x1f0)][_0x51bc33(0x1f4)]&&!verbose});}export async function withSpinner(_0x3792e6,_0x3649fa,_0x31214d={}){const _0x68282e=a96_0x2603,_0x136391=_0x31214d[_0x68282e(0x1f7)]??(()=>Date['now']()),_0x42feae=createCommandSpinner(_0x3792e6,_0x31214d);_0x42feae[_0x68282e(0x1f1)]();const _0x5f1051=_0x136391();try{const _0x453aaa=await _0x3649fa(),_0x963618=_0x136391()-_0x5f1051;return _0x42feae[_0x68282e(0x1ed)](),{'data':_0x453aaa,'elapsedMs':_0x963618};}catch(_0x27fc55){_0x42feae[_0x68282e(0x1ed)]();throw _0x27fc55;}}export async function withQuerySpinner(_0x497a51,_0x49c804,_0x4d364f={}){const _0xb39dc1=a96_0x2603,_0x3041b2=_0x4d364f['clock']??(()=>Date[_0xb39dc1(0x1ee)]()),_0x3d95fc=_0x4d364f['intervalFactory']??setInterval,_0x22ca8f=createCommandSpinner(_0x497a51,_0x4d364f);_0x22ca8f[_0xb39dc1(0x1f1)]();const _0x11538e=_0x3041b2(),_0x1ab0c1=_0x497a51['replace']('...',''),_0x5d85bb={},_0x530850=()=>{const _0x2e9188=_0xb39dc1;if(!_0x22ca8f[_0x2e9188(0x1f2)])return;const _0x3694d6=_0x3041b2()-_0x11538e,_0x9903ad=formatElapsed(_0x3694d6),_0x310062=_0x5d85bb[_0x2e9188(0x200)]??_0x1ab0c1,_0x8042ce=_0x5d85bb['jobId']?_0x2e9188(0x1fd)+_0x5d85bb[_0x2e9188(0x1f5)]+']':'',_0x1740e0=_0x5d85bb[_0x2e9188(0x1fb)]?'\x20'+_0x5d85bb[_0x2e9188(0x1fb)]:'';_0x22ca8f[_0x2e9188(0x201)]=_0x310062+'\x20'+_0x9903ad+_0x1740e0+_0x8042ce;},_0x10e1b5=_0x3d95fc(()=>{_0x530850();},0x3e8),_0x363748={'setPhase':_0x30f94d=>{_0x5d85bb['phase']=_0x30f94d,_0x530850();},'setJobId':_0x3a49c5=>{const _0x50a01e=_0xb39dc1;_0x5d85bb[_0x50a01e(0x1f5)]=_0x3a49c5,_0x530850();},'setExtra':_0x59189d=>{_0x5d85bb['extra']=_0x59189d,_0x530850();}};_0x530850();try{const _0x3320d4=await _0x49c804(_0x363748),_0x3c31b7=_0x3041b2()-_0x11538e;return{'data':_0x3320d4,'elapsedMs':_0x3c31b7};}finally{clearInterval(_0x10e1b5),_0x22ca8f[_0xb39dc1(0x1ed)]();}}function a96_0x2349(){const _0x25164e=['cyan','clock','82886AXeoWf','3zoplZG','938EncMDa','extra','7513LHzzde','\x20[Job\x20ID:\x20','12yvicNP','152676BPsjis','phase','text','toFixed','9841380fDkJIP','1490100IYQAbs','floor','5564646kmBXZT','270aEqLGs','stop','now','13956qOBTdv','stdout','start','isSpinning','84104YBGSwu','isTTY','jobId'];a96_0x2349=function(){return _0x25164e;};return a96_0x2349();}export function formatElapsed(_0x5cf764){const _0x541e2b=a96_0x2603,_0xd9cf1f=Math[_0x541e2b(0x1ea)](_0x5cf764/0x3e8);if(_0xd9cf1f<0x3c)return(_0x5cf764/0x3e8)[_0x541e2b(0x202)](0x1)+'s';const _0x1db4a8=Math[_0x541e2b(0x1ea)](_0xd9cf1f/0x3c),_0x396ad9=_0xd9cf1f%0x3c;if(_0x1db4a8<0x3c)return _0x1db4a8+'m\x20'+_0x396ad9+'s';const _0x5b3233=Math[_0x541e2b(0x1ea)](_0x1db4a8/0x3c),_0x2b0440=_0x1db4a8%0x3c;return _0x5b3233+'h\x20'+_0x2b0440+'m';}
@@ -1 +1 @@
1
- (function(_0x22fd36,_0x13f5b3){const _0x27982b=a97_0x3834,_0x54d352=_0x22fd36();while(!![]){try{const _0x2cdefd=-parseInt(_0x27982b(0x19b))/0x1*(-parseInt(_0x27982b(0x18f))/0x2)+-parseInt(_0x27982b(0x197))/0x3+parseInt(_0x27982b(0x19a))/0x4+-parseInt(_0x27982b(0x193))/0x5*(parseInt(_0x27982b(0x19c))/0x6)+parseInt(_0x27982b(0x1a2))/0x7+-parseInt(_0x27982b(0x190))/0x8*(-parseInt(_0x27982b(0x1a0))/0x9)+-parseInt(_0x27982b(0x18e))/0xa;if(_0x2cdefd===_0x13f5b3)break;else _0x54d352['push'](_0x54d352['shift']());}catch(_0x39db34){_0x54d352['push'](_0x54d352['shift']());}}}(a97_0x19fb,0x3aca5));import{readFileSync}from'fs';export function stripSqlComments(_0x188950){const _0x2dcff8=a97_0x3834;let _0x12e8bb=_0x188950[_0x2dcff8(0x192)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x12e8bb=_0x12e8bb[_0x2dcff8(0x192)](/--.*$/gm,''),_0x12e8bb[_0x2dcff8(0x196)]();}function a97_0x3834(_0x139319,_0x74d1bd){const _0x19fb22=a97_0x19fb();return a97_0x3834=function(_0x3834f1,_0x54c181){_0x3834f1=_0x3834f1-0x18b;let _0x305ebf=_0x19fb22[_0x3834f1];return _0x305ebf;},a97_0x3834(_0x139319,_0x74d1bd);}function isEscaped(_0x3685ba,_0x31a77f){let _0x512742=0x0;for(let _0x396396=_0x31a77f-0x1;_0x396396>=0x0&&_0x3685ba[_0x396396]==='\x5c';_0x396396--){_0x512742++;}return _0x512742%0x2===0x1;}export function splitSqlStatements(_0x3210e4){const _0x5156c5=a97_0x3834,_0x61d913=stripSqlComments(_0x3210e4);if(!_0x61d913)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x3355df=[];let _0x51c411='',_0x161d07=![],_0x243ed1=![],_0x2a5517=![];for(let _0x56e013=0x0;_0x56e013<_0x3210e4[_0x5156c5(0x19e)];_0x56e013++){const _0x35fdb8=_0x3210e4[_0x56e013];if(_0x35fdb8==='\x27'&&!isEscaped(_0x3210e4,_0x56e013)&&!_0x243ed1&&!_0x2a5517)_0x161d07=!_0x161d07;else{if(_0x35fdb8==='\x22'&&!isEscaped(_0x3210e4,_0x56e013)&&!_0x161d07&&!_0x2a5517)_0x243ed1=!_0x243ed1;else _0x35fdb8==='`'&&!isEscaped(_0x3210e4,_0x56e013)&&!_0x161d07&&!_0x243ed1&&(_0x2a5517=!_0x2a5517);}if(_0x35fdb8===';'&&!_0x161d07&&!_0x243ed1&&!_0x2a5517){const _0x2c0323=_0x51c411[_0x5156c5(0x196)]();_0x2c0323&&_0x3355df[_0x5156c5(0x198)](_0x2c0323),_0x51c411='';}else _0x51c411+=_0x35fdb8;}const _0x19bc16=_0x51c411[_0x5156c5(0x196)]();_0x19bc16&&_0x3355df[_0x5156c5(0x198)](_0x19bc16);const _0x3fad46=_0x3355df[_0x5156c5(0x194)](_0x416a41=>_0x416a41[_0x5156c5(0x196)]())[_0x5156c5(0x18d)](_0xdad67e=>{const _0x4b41ff=_0x5156c5,_0xcd5d2f=stripSqlComments(_0xdad67e);return _0xcd5d2f[_0x4b41ff(0x19e)]>0x0;});if(_0x3fad46['length']===0x0)throw new Error(_0x5156c5(0x19d));return _0x3fad46;}function a97_0x19fb(){const _0x34de24=['53238XQdBgH','Content\x20contains\x20no\x20SQL\x20statements','length','File\x20\x27','36CrMRwp','code','3245228yNRLSt','message','EACCES','filter','3291710yebWjt','26TNxSsz','539960uEqCJr','\x27:\x20','replace','240EgIvnj','map','utf-8','trim','569025kSJPGq','push','\x27\x20not\x20found','237068TKUtyk','30208hASGOa'];a97_0x19fb=function(){return _0x34de24;};return a97_0x19fb();}export function readFileContent(_0x50718c){const _0x6192ed=a97_0x3834;try{return readFileSync(_0x50718c,_0x6192ed(0x195));}catch(_0x4b4265){const _0x221557=_0x4b4265[_0x6192ed(0x1a1)];if(_0x221557==='ENOENT')throw new Error(_0x6192ed(0x19f)+_0x50718c+_0x6192ed(0x199));else{if(_0x221557===_0x6192ed(0x18c))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x50718c+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x50718c+_0x6192ed(0x191)+_0x4b4265[_0x6192ed(0x18b)]);}}}export function readSqlStatementsFromFile(_0x559fe4){const _0x1e4b36=a97_0x3834,_0x3e1a3d=readFileContent(_0x559fe4);try{return splitSqlStatements(_0x3e1a3d);}catch(_0x1fa202){throw new Error(_0x1e4b36(0x19f)+_0x559fe4+'\x27\x20'+_0x1fa202[_0x1e4b36(0x18b)]['toLowerCase']());}}
1
+ (function(_0x23ca52,_0x3f08f9){const _0x1a9501=a97_0x23b9,_0x17cd68=_0x23ca52();while(!![]){try{const _0x1c1dcc=-parseInt(_0x1a9501(0xfd))/0x1*(parseInt(_0x1a9501(0xf9))/0x2)+parseInt(_0x1a9501(0x101))/0x3+-parseInt(_0x1a9501(0x106))/0x4+parseInt(_0x1a9501(0x103))/0x5*(-parseInt(_0x1a9501(0xff))/0x6)+parseInt(_0x1a9501(0xfa))/0x7+-parseInt(_0x1a9501(0xfc))/0x8+parseInt(_0x1a9501(0xf8))/0x9*(parseInt(_0x1a9501(0xf3))/0xa);if(_0x1c1dcc===_0x3f08f9)break;else _0x17cd68['push'](_0x17cd68['shift']());}catch(_0x164a19){_0x17cd68['push'](_0x17cd68['shift']());}}}(a97_0x2ce5,0x2e8e0));import{readFileSync}from'fs';export function stripSqlComments(_0x32bfaa){const _0x50ff4e=a97_0x23b9;let _0x57d43c=_0x32bfaa[_0x50ff4e(0x102)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x57d43c=_0x57d43c[_0x50ff4e(0x102)](/--.*$/gm,''),_0x57d43c[_0x50ff4e(0x109)]();}function isEscaped(_0x166b47,_0x206e90){let _0x1a9e62=0x0;for(let _0x525ac3=_0x206e90-0x1;_0x525ac3>=0x0&&_0x166b47[_0x525ac3]==='\x5c';_0x525ac3--){_0x1a9e62++;}return _0x1a9e62%0x2===0x1;}export function splitSqlStatements(_0x437c12){const _0x2235cf=a97_0x23b9,_0x5b1ddd=stripSqlComments(_0x437c12);if(!_0x5b1ddd)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x2ca4c3=[];let _0x5b1785='',_0x4ec49f=![],_0x3bdfc5=![],_0x4e9621=![];for(let _0x3c36aa=0x0;_0x3c36aa<_0x437c12[_0x2235cf(0x104)];_0x3c36aa++){const _0x2f47a8=_0x437c12[_0x3c36aa];if(_0x2f47a8==='\x27'&&!isEscaped(_0x437c12,_0x3c36aa)&&!_0x3bdfc5&&!_0x4e9621)_0x4ec49f=!_0x4ec49f;else{if(_0x2f47a8==='\x22'&&!isEscaped(_0x437c12,_0x3c36aa)&&!_0x4ec49f&&!_0x4e9621)_0x3bdfc5=!_0x3bdfc5;else _0x2f47a8==='`'&&!isEscaped(_0x437c12,_0x3c36aa)&&!_0x4ec49f&&!_0x3bdfc5&&(_0x4e9621=!_0x4e9621);}if(_0x2f47a8===';'&&!_0x4ec49f&&!_0x3bdfc5&&!_0x4e9621){const _0xd7ba1d=_0x5b1785['trim']();_0xd7ba1d&&_0x2ca4c3['push'](_0xd7ba1d),_0x5b1785='';}else _0x5b1785+=_0x2f47a8;}const _0x226607=_0x5b1785[_0x2235cf(0x109)]();_0x226607&&_0x2ca4c3[_0x2235cf(0xf6)](_0x226607);const _0x24c8ff=_0x2ca4c3['map'](_0x265d0a=>_0x265d0a[_0x2235cf(0x109)]())['filter'](_0x5efa64=>{const _0x3136e5=stripSqlComments(_0x5efa64);return _0x3136e5['length']>0x0;});if(_0x24c8ff[_0x2235cf(0x104)]===0x0)throw new Error(_0x2235cf(0x105));return _0x24c8ff;}export function readFileContent(_0x2239e2){const _0x2aa625=a97_0x23b9;try{return readFileSync(_0x2239e2,_0x2aa625(0xf5));}catch(_0x11240e){const _0x168f65=_0x11240e[_0x2aa625(0xf7)];if(_0x168f65===_0x2aa625(0xfe))throw new Error('File\x20\x27'+_0x2239e2+_0x2aa625(0x108));else{if(_0x168f65===_0x2aa625(0x107))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x2239e2+'\x27');else throw new Error(_0x2aa625(0x10a)+_0x2239e2+'\x27:\x20'+_0x11240e[_0x2aa625(0xf4)]);}}}function a97_0x2ce5(){const _0x834c5b=['Error\x20reading\x20file\x20\x27','99530GItgJu','message','utf-8','push','code','585PgBQYM','2wGgllf','563850LFAduu','File\x20\x27','1798584xAeyim','83445XZyEeG','ENOENT','96dtOqGc','toLowerCase','435999MVifim','replace','3185KEZXWb','length','Content\x20contains\x20no\x20SQL\x20statements','1454720JNJsem','EACCES','\x27\x20not\x20found','trim'];a97_0x2ce5=function(){return _0x834c5b;};return a97_0x2ce5();}function a97_0x23b9(_0x393edf,_0x3f4e6c){const _0x2ce5f2=a97_0x2ce5();return a97_0x23b9=function(_0x23b9cf,_0x26b8a2){_0x23b9cf=_0x23b9cf-0xf3;let _0x2665cb=_0x2ce5f2[_0x23b9cf];return _0x2665cb;},a97_0x23b9(_0x393edf,_0x3f4e6c);}export function readSqlStatementsFromFile(_0x429acf){const _0x29c971=a97_0x23b9,_0x2541ea=readFileContent(_0x429acf);try{return splitSqlStatements(_0x2541ea);}catch(_0x54da84){throw new Error(_0x29c971(0xfb)+_0x429acf+'\x27\x20'+_0x54da84['message'][_0x29c971(0x100)]());}}
@@ -1 +1 @@
1
- function a98_0x4003(_0x163fe4,_0x5950ef){const _0x4eed37=a98_0x4eed();return a98_0x4003=function(_0x4003f9,_0x593ba7){_0x4003f9=_0x4003f9-0x138;let _0x1ed5d3=_0x4eed37[_0x4003f9];return _0x1ed5d3;},a98_0x4003(_0x163fe4,_0x5950ef);}function a98_0x4eed(){const _0x253567=['928LNpepA','parse','1068xDMrBH','13385oeyJUz','6912770mskYLa','8dsTbEd','3731031PghbeQ','19999ZLbudi','slice','data','[LLM\x20API\x20SSE]\x20','310219RhUQkN','releaseLock','30qtmbCY','event','startsWith','Response\x20body\x20is\x20null','body','getReader','debug','3839YrqIal','156669qFNYbH','1446dBlygO','indexOf','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','read'];a98_0x4eed=function(){return _0x253567;};return a98_0x4eed();}(function(_0x1f144d,_0x313fef){const _0x520bcd=a98_0x4003,_0x15426b=_0x1f144d();while(!![]){try{const _0x583b32=-parseInt(_0x520bcd(0x14d))/0x1+parseInt(_0x520bcd(0x14f))/0x2*(-parseInt(_0x520bcd(0x13d))/0x3)+-parseInt(_0x520bcd(0x142))/0x4*(-parseInt(_0x520bcd(0x145))/0x5)+-parseInt(_0x520bcd(0x13e))/0x6*(-parseInt(_0x520bcd(0x149))/0x7)+-parseInt(_0x520bcd(0x147))/0x8*(parseInt(_0x520bcd(0x148))/0x9)+parseInt(_0x520bcd(0x146))/0xa+parseInt(_0x520bcd(0x13c))/0xb*(-parseInt(_0x520bcd(0x144))/0xc);if(_0x583b32===_0x313fef)break;else _0x15426b['push'](_0x15426b['shift']());}catch(_0x3fdb99){_0x15426b['push'](_0x15426b['shift']());}}}(a98_0x4eed,0x70b7e));export async function*parseSSEStream(_0x20ad6e,_0x328066){const _0x4f609e=a98_0x4003;if(!_0x20ad6e[_0x4f609e(0x139)])throw new Error(_0x4f609e(0x138));const _0x168d3b=_0x20ad6e[_0x4f609e(0x139)][_0x4f609e(0x13a)](),_0x2b4869=new TextDecoder();let _0x426168='',_0x43d005={};try{while(!![]){const {done:_0x386656,value:_0x41a244}=await _0x168d3b[_0x4f609e(0x141)]();if(_0x386656){if(_0x43d005[_0x4f609e(0x14b)]){_0x328066?.[_0x4f609e(0x13b)]('[LLM\x20API\x20SSE]\x20'+_0x43d005['data']);const _0x202994=parseSSEData(_0x43d005[_0x4f609e(0x14b)]);yield _0x202994;}break;}_0x426168+=_0x2b4869['decode'](_0x41a244,{'stream':!![]});const _0x13d71e=_0x426168['split']('\x0a');_0x426168=_0x13d71e['pop']()||'';for(const _0x3abc88 of _0x13d71e){if(_0x3abc88['trim']()===''){if(_0x43d005[_0x4f609e(0x14b)]){_0x328066?.[_0x4f609e(0x13b)](_0x4f609e(0x14c)+_0x43d005['data']);const _0x38f3af=parseSSEData(_0x43d005['data']);yield _0x38f3af,_0x43d005={};}continue;}if(_0x3abc88[_0x4f609e(0x151)](':'))continue;const _0x3a5b24=_0x3abc88[_0x4f609e(0x13f)](':');if(_0x3a5b24===-0x1)continue;const _0x326e14=_0x3abc88['slice'](0x0,_0x3a5b24);let _0x6dfd86=_0x3abc88[_0x4f609e(0x14a)](_0x3a5b24+0x1);_0x6dfd86['startsWith']('\x20')&&(_0x6dfd86=_0x6dfd86[_0x4f609e(0x14a)](0x1));switch(_0x326e14){case _0x4f609e(0x150):_0x43d005[_0x4f609e(0x150)]=_0x6dfd86;break;case'data':_0x43d005['data']=_0x43d005['data']?_0x43d005[_0x4f609e(0x14b)]+'\x0a'+_0x6dfd86:_0x6dfd86;break;case'id':_0x43d005['id']=_0x6dfd86;break;}}}}finally{_0x168d3b[_0x4f609e(0x14e)]();}}function parseSSEData(_0xb34602){const _0x2bacd5=a98_0x4003;try{return JSON[_0x2bacd5(0x143)](_0xb34602);}catch(_0x18c9e4){throw new Error(_0x2bacd5(0x140)+_0xb34602,{'cause':_0x18c9e4});}}
1
+ (function(_0x385ddd,_0x1050b4){const _0x5a7966=a98_0x27a1,_0x43ec47=_0x385ddd();while(!![]){try{const _0x2fcef1=-parseInt(_0x5a7966(0xd7))/0x1+-parseInt(_0x5a7966(0xde))/0x2*(parseInt(_0x5a7966(0xe2))/0x3)+parseInt(_0x5a7966(0xdb))/0x4+-parseInt(_0x5a7966(0xda))/0x5*(-parseInt(_0x5a7966(0xea))/0x6)+parseInt(_0x5a7966(0xdd))/0x7+parseInt(_0x5a7966(0xe5))/0x8+parseInt(_0x5a7966(0xdf))/0x9*(-parseInt(_0x5a7966(0xd8))/0xa);if(_0x2fcef1===_0x1050b4)break;else _0x43ec47['push'](_0x43ec47['shift']());}catch(_0x3c5a0e){_0x43ec47['push'](_0x43ec47['shift']());}}}(a98_0x3b3d,0x4b7c8));function a98_0x3b3d(){const _0x2450d8=['slice','trim','2066872MnyVqT','getReader','read','parse','data','8016aQLbtd','[LLM\x20API\x20SSE]\x20','Response\x20body\x20is\x20null','debug','28700auvIqV','82730ipAXIg','pop','1160XEtKwR','1931136riFNTH','split','3628408qhsyFq','65732WwCdPB','1161lYGEcn','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','body','15WVqBkJ'];a98_0x3b3d=function(){return _0x2450d8;};return a98_0x3b3d();}export async function*parseSSEStream(_0x318082,_0x1388a0){const _0x2f1407=a98_0x27a1;if(!_0x318082['body'])throw new Error(_0x2f1407(0xd5));const _0x2da892=_0x318082[_0x2f1407(0xe1)][_0x2f1407(0xe6)](),_0x4f143d=new TextDecoder();let _0x5b18fb='',_0x585bfb={};try{while(!![]){const {done:_0x325621,value:_0x4894a2}=await _0x2da892[_0x2f1407(0xe7)]();if(_0x325621){if(_0x585bfb[_0x2f1407(0xe9)]){_0x1388a0?.[_0x2f1407(0xd6)](_0x2f1407(0xd4)+_0x585bfb[_0x2f1407(0xe9)]);const _0x340f0c=parseSSEData(_0x585bfb['data']);yield _0x340f0c;}break;}_0x5b18fb+=_0x4f143d['decode'](_0x4894a2,{'stream':!![]});const _0x460877=_0x5b18fb[_0x2f1407(0xdc)]('\x0a');_0x5b18fb=_0x460877[_0x2f1407(0xd9)]()||'';for(const _0x6a11be of _0x460877){if(_0x6a11be[_0x2f1407(0xe4)]()===''){if(_0x585bfb[_0x2f1407(0xe9)]){_0x1388a0?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x585bfb[_0x2f1407(0xe9)]);const _0x240fb9=parseSSEData(_0x585bfb[_0x2f1407(0xe9)]);yield _0x240fb9,_0x585bfb={};}continue;}if(_0x6a11be['startsWith'](':'))continue;const _0x4af561=_0x6a11be['indexOf'](':');if(_0x4af561===-0x1)continue;const _0x5d471f=_0x6a11be[_0x2f1407(0xe3)](0x0,_0x4af561);let _0x51eae0=_0x6a11be['slice'](_0x4af561+0x1);_0x51eae0['startsWith']('\x20')&&(_0x51eae0=_0x51eae0[_0x2f1407(0xe3)](0x1));switch(_0x5d471f){case'event':_0x585bfb['event']=_0x51eae0;break;case _0x2f1407(0xe9):_0x585bfb[_0x2f1407(0xe9)]=_0x585bfb[_0x2f1407(0xe9)]?_0x585bfb[_0x2f1407(0xe9)]+'\x0a'+_0x51eae0:_0x51eae0;break;case'id':_0x585bfb['id']=_0x51eae0;break;}}}}finally{_0x2da892['releaseLock']();}}function a98_0x27a1(_0x4afde5,_0x5714d2){const _0x3b3d66=a98_0x3b3d();return a98_0x27a1=function(_0x27a1fb,_0x151d86){_0x27a1fb=_0x27a1fb-0xd4;let _0x238a68=_0x3b3d66[_0x27a1fb];return _0x238a68;},a98_0x27a1(_0x4afde5,_0x5714d2);}function parseSSEData(_0x45f51b){const _0x279ef3=a98_0x27a1;try{return JSON[_0x279ef3(0xe8)](_0x45f51b);}catch(_0xaaaa2c){throw new Error(_0x279ef3(0xe0)+_0x45f51b,{'cause':_0xaaaa2c});}}
@@ -1 +1 @@
1
- (function(_0x254f07,_0x417be6){const _0x411a52=a99_0x23e2,_0xaf5ac6=_0x254f07();while(!![]){try{const _0x4033b0=-parseInt(_0x411a52(0x120))/0x1+-parseInt(_0x411a52(0x12c))/0x2+parseInt(_0x411a52(0x11f))/0x3+parseInt(_0x411a52(0x12e))/0x4*(parseInt(_0x411a52(0x136))/0x5)+parseInt(_0x411a52(0x12f))/0x6+-parseInt(_0x411a52(0x122))/0x7+-parseInt(_0x411a52(0x12b))/0x8*(parseInt(_0x411a52(0x133))/0x9);if(_0x4033b0===_0x417be6)break;else _0xaf5ac6['push'](_0xaf5ac6['shift']());}catch(_0x5c76f7){_0xaf5ac6['push'](_0xaf5ac6['shift']());}}}(a99_0x565d,0x4fa52));import a99_0x34f388 from'string-width';export function stringWidth(_0x52c739){return a99_0x34f388(_0x52c739);}export function padEnd(_0x1a5635,_0x4c845d){const _0x117c9d=a99_0x23e2,_0x36b698=stringWidth(_0x1a5635);if(_0x36b698>=_0x4c845d)return _0x1a5635;return _0x1a5635+'\x20'[_0x117c9d(0x135)](_0x4c845d-_0x36b698);}export function padStart(_0xc71480,_0x58ff2b){const _0x52b5d6=stringWidth(_0xc71480);if(_0x52b5d6>=_0x58ff2b)return _0xc71480;return'\x20'['repeat'](_0x58ff2b-_0x52b5d6)+_0xc71480;}export function centerAlign(_0x4eabc9,_0x1f1bfd){const _0x3c1289=a99_0x23e2,_0x4a0785=stringWidth(_0x4eabc9);if(_0x4a0785>_0x1f1bfd){if(_0x1f1bfd<=0x1)return'…'[_0x3c1289(0x126)](0x0,_0x1f1bfd);let _0x1427f2=_0x4eabc9;while(stringWidth(_0x1427f2+'…')>_0x1f1bfd){_0x1427f2=_0x1427f2[_0x3c1289(0x137)](0x0,-0x1);}return _0x1427f2+'…';}if(_0x4a0785===_0x1f1bfd)return _0x4eabc9;const _0x17c92e=_0x1f1bfd-_0x4a0785,_0xa64afe=Math[_0x3c1289(0x134)](_0x17c92e/0x2),_0x417b32=_0x17c92e-_0xa64afe;return'\x20'['repeat'](_0xa64afe)+_0x4eabc9+'\x20'['repeat'](_0x417b32);}export function escapeStringLiteral(_0x4af68f){const _0x3faabf=a99_0x23e2;if(!_0x4af68f||_0x4af68f[_0x3faabf(0x11e)]()[_0x3faabf(0x12a)]===0x0)throw new Error(_0x3faabf(0x124));const _0x3b8369=_0x4af68f[_0x3faabf(0x128)](/'/g,'\x27\x27');return'\x27'+_0x3b8369+'\x27';}function a99_0x23e2(_0x23c938,_0x213787){const _0x565da7=a99_0x565d();return a99_0x23e2=function(_0x23e284,_0x27b627){_0x23e284=_0x23e284-0x11e;let _0x3b670a=_0x565da7[_0x23e284];return _0x3b670a;},a99_0x23e2(_0x23c938,_0x213787);}export function globToLike(_0x232470){const _0x19608d=a99_0x23e2;let _0x1b163e=_0x232470[_0x19608d(0x128)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x19608d(0x128)](/_/g,'\x5c_');return _0x1b163e=_0x1b163e[_0x19608d(0x128)](/\*/g,'%')[_0x19608d(0x128)](/\?/g,'_'),_0x1b163e;}export function buildLikePattern(_0x368a88){const _0x380af2=a99_0x23e2;if(!_0x368a88||_0x368a88[_0x380af2(0x11e)]()[_0x380af2(0x12a)]===0x0)throw new Error(_0x380af2(0x131));const _0x116464=globToLike(_0x368a88),_0x25f257=_0x116464[_0x380af2(0x128)](/'/g,'\x27\x27');return'\x27'+_0x25f257+'\x27';}export function matchGlobPattern(_0xef0a83,_0x18a7e3){const _0x107012=a99_0x23e2,_0x5b4e88=_0x18a7e3[_0x107012(0x128)](/[.+^${}()|[\]\\]/g,'\x5c$&')['replace'](/\*/g,'.*')['replace'](/\?/g,'.'),_0x381b76=new RegExp('^'+_0x5b4e88+'$');return _0x381b76['test'](_0xef0a83);}export function getSanitizedUsername(){const _0x5248ed=a99_0x23e2,_0x20bdca=process[_0x5248ed(0x132)][_0x5248ed(0x127)]||process[_0x5248ed(0x132)][_0x5248ed(0x129)]||_0x5248ed(0x123);return _0x20bdca[_0x5248ed(0x128)](/[^a-zA-Z0-9]/g,'')[_0x5248ed(0x130)]();}function a99_0x565d(){const _0x2dbefe=['USER','replace','USERNAME','length','24KyJdPE','104890ywFftu','random','2598644czmFpi','1051254AmDayr','toLowerCase','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','env','729378zxiGsL','floor','repeat','5OqpHyS','slice','trim','849822dfVdaA','55653uHuEBg','padStart','3014858NavAeY','unknown','Cannot\x20escape\x20empty\x20string\x20literal','toString','substring'];a99_0x565d=function(){return _0x2dbefe;};return a99_0x565d();}export function generateRandomHex(){const _0x517ba4=a99_0x23e2,_0x12bc5e=Math[_0x517ba4(0x134)](Math[_0x517ba4(0x12d)]()*0xfffff);return _0x12bc5e[_0x517ba4(0x125)](0x10)[_0x517ba4(0x121)](0x5,'0');}
1
+ function a99_0x3282(_0xa53d66,_0xe30f94){const _0x4fe8d6=a99_0x4fe8();return a99_0x3282=function(_0x3282e0,_0x19cfa4){_0x3282e0=_0x3282e0-0x1ec;let _0xdd1ed2=_0x4fe8d6[_0x3282e0];return _0xdd1ed2;},a99_0x3282(_0xa53d66,_0xe30f94);}(function(_0x4fc00c,_0x177bde){const _0xb755a3=a99_0x3282,_0x357c50=_0x4fc00c();while(!![]){try{const _0x110187=-parseInt(_0xb755a3(0x1ff))/0x1+parseInt(_0xb755a3(0x200))/0x2*(-parseInt(_0xb755a3(0x1fd))/0x3)+-parseInt(_0xb755a3(0x1f1))/0x4+-parseInt(_0xb755a3(0x1f4))/0x5*(parseInt(_0xb755a3(0x1f2))/0x6)+-parseInt(_0xb755a3(0x1f0))/0x7*(-parseInt(_0xb755a3(0x1fa))/0x8)+parseInt(_0xb755a3(0x1fc))/0x9*(parseInt(_0xb755a3(0x1fe))/0xa)+parseInt(_0xb755a3(0x1ed))/0xb*(parseInt(_0xb755a3(0x205))/0xc);if(_0x110187===_0x177bde)break;else _0x357c50['push'](_0x357c50['shift']());}catch(_0x2a9642){_0x357c50['push'](_0x357c50['shift']());}}}(a99_0x4fe8,0x5f9b1));import a99_0x52a274 from'string-width';export function stringWidth(_0x1c5465){return a99_0x52a274(_0x1c5465);}export function padEnd(_0x2fb7a9,_0x1d0d0f){const _0x2e3347=a99_0x3282,_0x1bb502=stringWidth(_0x2fb7a9);if(_0x1bb502>=_0x1d0d0f)return _0x2fb7a9;return _0x2fb7a9+'\x20'[_0x2e3347(0x203)](_0x1d0d0f-_0x1bb502);}export function padStart(_0x23880c,_0x2db198){const _0x4f7778=stringWidth(_0x23880c);if(_0x4f7778>=_0x2db198)return _0x23880c;return'\x20'['repeat'](_0x2db198-_0x4f7778)+_0x23880c;}export function centerAlign(_0x2d2bd2,_0x4e11c8){const _0x3de220=a99_0x3282,_0x4eca9d=stringWidth(_0x2d2bd2);if(_0x4eca9d>_0x4e11c8){if(_0x4e11c8<=0x1)return'…'[_0x3de220(0x1ef)](0x0,_0x4e11c8);let _0x4fddba=_0x2d2bd2;while(stringWidth(_0x4fddba+'…')>_0x4e11c8){_0x4fddba=_0x4fddba['slice'](0x0,-0x1);}return _0x4fddba+'…';}if(_0x4eca9d===_0x4e11c8)return _0x2d2bd2;const _0x5d4414=_0x4e11c8-_0x4eca9d,_0x2318b9=Math['floor'](_0x5d4414/0x2),_0x5eb2e3=_0x5d4414-_0x2318b9;return'\x20'[_0x3de220(0x203)](_0x2318b9)+_0x2d2bd2+'\x20'[_0x3de220(0x203)](_0x5eb2e3);}function a99_0x4fe8(){const _0x3f848f=['replace','trim','repeat','length','492RaGvrO','padStart','Cannot\x20escape\x20empty\x20string\x20literal','262427puqpyW','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','substring','77NmvDUI','945464ordaGV','150jGKuhN','floor','5315eKjnVL','USER','USERNAME','toLowerCase','\x5c$&','random','171664JmilfN','test','99pOFvRR','1506453ujxrEn','440000QogoGs','541482wRcnqj','2UXdKDA'];a99_0x4fe8=function(){return _0x3f848f;};return a99_0x4fe8();}export function escapeStringLiteral(_0x17e5f6){const _0x35dad4=a99_0x3282;if(!_0x17e5f6||_0x17e5f6['trim']()['length']===0x0)throw new Error(_0x35dad4(0x1ec));const _0x15213f=_0x17e5f6['replace'](/'/g,'\x27\x27');return'\x27'+_0x15213f+'\x27';}export function globToLike(_0x5c08a5){const _0x1c63bf=a99_0x3282;let _0x1378e7=_0x5c08a5[_0x1c63bf(0x201)](/\\/g,'\x5c\x5c')[_0x1c63bf(0x201)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x1378e7=_0x1378e7[_0x1c63bf(0x201)](/\*/g,'%')['replace'](/\?/g,'_'),_0x1378e7;}export function buildLikePattern(_0x179925){const _0x1c3657=a99_0x3282;if(!_0x179925||_0x179925[_0x1c3657(0x202)]()[_0x1c3657(0x204)]===0x0)throw new Error(_0x1c3657(0x1ee));const _0x123cb4=globToLike(_0x179925),_0x4bbb88=_0x123cb4['replace'](/'/g,'\x27\x27');return'\x27'+_0x4bbb88+'\x27';}export function matchGlobPattern(_0x16fe33,_0x222178){const _0x40cd41=a99_0x3282,_0x23ac8d=_0x222178[_0x40cd41(0x201)](/[.+^${}()|[\]\\]/g,_0x40cd41(0x1f8))[_0x40cd41(0x201)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x1fafec=new RegExp('^'+_0x23ac8d+'$');return _0x1fafec[_0x40cd41(0x1fb)](_0x16fe33);}export function getSanitizedUsername(){const _0x3dba07=a99_0x3282,_0x159951=process['env'][_0x3dba07(0x1f5)]||process['env'][_0x3dba07(0x1f6)]||'unknown';return _0x159951[_0x3dba07(0x201)](/[^a-zA-Z0-9]/g,'')[_0x3dba07(0x1f7)]();}export function generateRandomHex(){const _0x1799a4=a99_0x3282,_0x4c9199=Math[_0x1799a4(0x1f3)](Math[_0x1799a4(0x1f9)]()*0xfffff);return _0x4c9199['toString'](0x10)[_0x1799a4(0x206)](0x5,'0');}