@treasuredata/tdx 0.4.3 → 0.4.5

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 (117) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-api-client.js +1 -1
  5. package/dist/client/engage-api-client.d.ts +135 -0
  6. package/dist/client/engage-api-client.d.ts.map +1 -0
  7. package/dist/client/engage-api-client.js +1 -0
  8. package/dist/client/engage-api-client.js.map +1 -0
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/rate-limiter.js +1 -1
  12. package/dist/client/td-api-client.js +1 -1
  13. package/dist/client/trino-api-client.js +1 -1
  14. package/dist/client/workflow-client.js +1 -1
  15. package/dist/commands/activations.js +1 -1
  16. package/dist/commands/api-command.js +1 -1
  17. package/dist/commands/auth-command.js +1 -1
  18. package/dist/commands/chat-command.js +1 -1
  19. package/dist/commands/claude-command.js +1 -1
  20. package/dist/commands/command.d.ts.map +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/command.js.map +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.d.ts +197 -0
  27. package/dist/commands/engage-command.d.ts.map +1 -0
  28. package/dist/commands/engage-command.js +1 -0
  29. package/dist/commands/engage-command.js.map +1 -0
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pwd-command.js +1 -1
  40. package/dist/commands/segment-update-command.js +1 -1
  41. package/dist/commands/segment-use-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/use-command.d.ts +1 -0
  46. package/dist/commands/use-command.d.ts.map +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/use-command.js.map +1 -1
  49. package/dist/commands/workflow-command.js +1 -1
  50. package/dist/core/auth.js +1 -1
  51. package/dist/core/config.js +1 -1
  52. package/dist/core/credential-cache.js +1 -1
  53. package/dist/core/global-context.js +1 -1
  54. package/dist/core/keychain.js +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/project-config.js +1 -1
  57. package/dist/core/session.d.ts +1 -0
  58. package/dist/core/session.d.ts.map +1 -1
  59. package/dist/core/session.js +1 -1
  60. package/dist/core/session.js.map +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/proxy/anthropic-adapter.js +1 -1
  63. package/dist/proxy/server.js +1 -1
  64. package/dist/proxy/session-cache.js +1 -1
  65. package/dist/sdk/api.js +1 -1
  66. package/dist/sdk/engage.d.ts +256 -0
  67. package/dist/sdk/engage.d.ts.map +1 -0
  68. package/dist/sdk/engage.js +1 -0
  69. package/dist/sdk/engage.js.map +1 -0
  70. package/dist/sdk/errors.js +1 -1
  71. package/dist/sdk/index.d.ts +7 -0
  72. package/dist/sdk/index.d.ts.map +1 -1
  73. package/dist/sdk/index.js +1 -1
  74. package/dist/sdk/index.js.map +1 -1
  75. package/dist/sdk/job.js +1 -1
  76. package/dist/sdk/llm.js +1 -1
  77. package/dist/sdk/query.js +1 -1
  78. package/dist/sdk/segment.js +1 -1
  79. package/dist/sdk/workflow.js +1 -1
  80. package/dist/types/endpoints.d.ts +4 -0
  81. package/dist/types/endpoints.d.ts.map +1 -1
  82. package/dist/types/endpoints.js +1 -1
  83. package/dist/types/endpoints.js.map +1 -1
  84. package/dist/types/engage.d.ts +442 -0
  85. package/dist/types/engage.d.ts.map +1 -0
  86. package/dist/types/engage.js +1 -0
  87. package/dist/types/engage.js.map +1 -0
  88. package/dist/types/index.d.ts +2 -1
  89. package/dist/types/index.d.ts.map +1 -1
  90. package/dist/types/index.js +1 -1
  91. package/dist/utils/agent-ref-parser.js +1 -1
  92. package/dist/utils/chat-cache.js +1 -1
  93. package/dist/utils/colors.js +1 -1
  94. package/dist/utils/command-output.js +1 -1
  95. package/dist/utils/constants.js +1 -1
  96. package/dist/utils/file-permissions.js +1 -1
  97. package/dist/utils/format-detector.js +1 -1
  98. package/dist/utils/formatters.js +1 -1
  99. package/dist/utils/json-loader.js +1 -1
  100. package/dist/utils/llm-backup-utils.js +1 -1
  101. package/dist/utils/model-aliases.js +1 -1
  102. package/dist/utils/option-validation.js +1 -1
  103. package/dist/utils/port.js +1 -1
  104. package/dist/utils/process.js +1 -1
  105. package/dist/utils/prompt.js +1 -1
  106. package/dist/utils/segment-path-parser.js +1 -1
  107. package/dist/utils/segment-ref-parser.js +1 -1
  108. package/dist/utils/spinner.js +1 -1
  109. package/dist/utils/sql-parser.js +1 -1
  110. package/dist/utils/sse-parser.js +1 -1
  111. package/dist/utils/string-utils.js +1 -1
  112. package/dist/utils/table-ref-parser.js +1 -1
  113. package/dist/utils/tdx-logger.js +1 -1
  114. package/dist/utils/tree-formatter.js +1 -1
  115. package/dist/utils/version-check.js +1 -1
  116. package/dist/utils/workflow-utils.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x529730,_0x52fc0e){const _0x488482=a67_0x1c03,_0x17d0f9=_0x529730();while(!![]){try{const _0x17528b=-parseInt(_0x488482(0xaf))/0x1*(parseInt(_0x488482(0xae))/0x2)+-parseInt(_0x488482(0xb4))/0x3*(-parseInt(_0x488482(0xb2))/0x4)+-parseInt(_0x488482(0xb1))/0x5*(-parseInt(_0x488482(0xab))/0x6)+parseInt(_0x488482(0xb0))/0x7+-parseInt(_0x488482(0xac))/0x8*(-parseInt(_0x488482(0xb3))/0x9)+parseInt(_0x488482(0xaa))/0xa+-parseInt(_0x488482(0xad))/0xb;if(_0x17528b===_0x52fc0e)break;else _0x17d0f9['push'](_0x17d0f9['shift']());}catch(_0x479931){_0x17d0f9['push'](_0x17d0f9['shift']());}}}(a67_0x4956,0xa017a));function a67_0x4956(){const _0x1ec39b=['33579161AnuNwx','166TGbKHp','6207pfvcMq','8674792Slnqcl','1025PosZCI','11012rsDVYp','7707087ZfKsnK','1317zxMmfb','number','1719740obzWXo','21876qJFnEy','8TuACSZ'];a67_0x4956=function(){return _0x1ec39b;};return a67_0x4956();}export const DEFAULT_DISPLAY_LIMIT=0x28;function a67_0x1c03(_0x50c198,_0x116d08){const _0x495639=a67_0x4956();return a67_0x1c03=function(_0x1c032,_0x130707){_0x1c032=_0x1c032-0xa9;let _0x217f70=_0x495639[_0x1c032];return _0x217f70;},a67_0x1c03(_0x50c198,_0x116d08);}export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x40af80,_0x462bc5){const _0x24e362=a67_0x1c03;if(_0x40af80===undefined)return _0x462bc5;if(typeof _0x40af80===_0x24e362(0xa9))return _0x40af80;return parseInt(_0x40af80,0xa);}
1
+ (function(_0x338b5d,_0x33fb5f){const _0x4b69ee=a71_0x3fe8,_0x28ddbe=_0x338b5d();while(!![]){try{const _0x11ce61=parseInt(_0x4b69ee(0x171))/0x1+parseInt(_0x4b69ee(0x16a))/0x2+parseInt(_0x4b69ee(0x170))/0x3+parseInt(_0x4b69ee(0x16d))/0x4+-parseInt(_0x4b69ee(0x16e))/0x5+parseInt(_0x4b69ee(0x16c))/0x6+parseInt(_0x4b69ee(0x172))/0x7*(-parseInt(_0x4b69ee(0x16b))/0x8);if(_0x11ce61===_0x33fb5f)break;else _0x28ddbe['push'](_0x28ddbe['shift']());}catch(_0x12a0f8){_0x28ddbe['push'](_0x28ddbe['shift']());}}}(a71_0x575f,0x30f7a));function a71_0x3fe8(_0x107311,_0x40ae91){const _0x575f8e=a71_0x575f();return a71_0x3fe8=function(_0x3fe8f2,_0x3c28cd){_0x3fe8f2=_0x3fe8f2-0x16a;let _0x2e5973=_0x575f8e[_0x3fe8f2];return _0x2e5973;},a71_0x3fe8(_0x107311,_0x40ae91);}export const DEFAULT_DISPLAY_LIMIT=0x28;function a71_0x575f(){const _0x3a0cb3=['989335tVqelV','number','1106820bYnkrA','291893QWrLBI','1680HVRSJp','150640fTPxgX','23720whayyi','1933404DCoyrZ','206600Upznqh'];a71_0x575f=function(){return _0x3a0cb3;};return a71_0x575f();}export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x369bc5,_0x3f3231){const _0x41e2fa=a71_0x3fe8;if(_0x369bc5===undefined)return _0x3f3231;if(typeof _0x369bc5===_0x41e2fa(0x16f))return _0x369bc5;return parseInt(_0x369bc5,0xa);}
@@ -1 +1 @@
1
- (function(_0x3c46eb,_0x4ed3fa){const _0x3c889c=a68_0x23f7,_0x5f4733=_0x3c46eb();while(!![]){try{const _0x3c7d7a=parseInt(_0x3c889c(0x157))/0x1*(-parseInt(_0x3c889c(0x155))/0x2)+-parseInt(_0x3c889c(0x166))/0x3+-parseInt(_0x3c889c(0x167))/0x4+-parseInt(_0x3c889c(0x159))/0x5+parseInt(_0x3c889c(0x156))/0x6*(parseInt(_0x3c889c(0x15c))/0x7)+-parseInt(_0x3c889c(0x15b))/0x8+parseInt(_0x3c889c(0x168))/0x9*(parseInt(_0x3c889c(0x169))/0xa);if(_0x3c7d7a===_0x4ed3fa)break;else _0x5f4733['push'](_0x5f4733['shift']());}catch(_0x29bd8b){_0x5f4733['push'](_0x5f4733['shift']());}}}(a68_0x1a53,0xc56d6));import*as a68_0x185d66 from'node:fs';import*as a68_0xa7dd2a from'node:path';export function setSecureFilePermissions(_0x372a1d){const _0x110089=a68_0x23f7;try{a68_0x185d66[_0x110089(0x163)](_0x372a1d,0x180);}catch{console[_0x110089(0x162)](_0x110089(0x158)+_0x372a1d);}}export function setSecureDirectoryPermissions(_0x363549){const _0xb629c3=a68_0x23f7;try{a68_0x185d66['chmodSync'](_0x363549,0x1c0);}catch{console['warn'](_0xb629c3(0x158)+_0x363549);}}function a68_0x23f7(_0x5e47cc,_0x5b0d83){const _0x1a5319=a68_0x1a53();return a68_0x23f7=function(_0x23f72a,_0x37869a){_0x23f72a=_0x23f72a-0x155;let _0x2face5=_0x1a5319[_0x23f72a];return _0x2face5;},a68_0x23f7(_0x5e47cc,_0x5b0d83);}function a68_0x1a53(){const _0x46be27=['warn','chmodSync','mkdirSync','Warning:\x20','1645062EwapdC','1702960kQMDFE','9GGKndq','44978960kWaVrn','Should\x20be\x200600\x20or\x20more\x20restrictive.','13434BgAwAi','42fTlCHM','85CzLCzb','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','4613065ZniowY','writeFileSync','10410552sGPvkt','79737OyFoOX','\x20has\x20insecure\x20permissions\x20(','mode','toString',').\x20','existsSync'];a68_0x1a53=function(){return _0x46be27;};return a68_0x1a53();}export function createSecureDirectory(_0x29e6ff){const _0x45b524=a68_0x23f7;!a68_0x185d66[_0x45b524(0x161)](_0x29e6ff)&&(a68_0x185d66[_0x45b524(0x164)](_0x29e6ff,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x29e6ff));}export function validateSecureFilePermissions(_0x1f1c5c){const _0x1814c9=a68_0x23f7;try{const _0x1d4598=a68_0x185d66['statSync'](_0x1f1c5c),_0xc8602b=_0x1d4598[_0x1814c9(0x15e)]&0x1ff,_0x464939=(_0xc8602b&0x3f)!==0x0;if(_0x464939)return console['warn'](_0x1814c9(0x165)+_0x1f1c5c+_0x1814c9(0x15d)+_0xc8602b[_0x1814c9(0x15f)](0x8)+_0x1814c9(0x160)+_0x1814c9(0x16a)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x1ecb96,_0x509edd){const _0x159985=a68_0x23f7,_0x202f6f=a68_0xa7dd2a['dirname'](_0x1ecb96);createSecureDirectory(_0x202f6f),a68_0x185d66[_0x159985(0x15a)](_0x1ecb96,_0x509edd,{'mode':0x180}),setSecureFilePermissions(_0x1ecb96);}
1
+ function a72_0x146d(){const _0x4a8a28=['toString','mode','653784VAEkBI','3048689ttHOMd','mkdirSync','176892KfYLay','\x20has\x20insecure\x20permissions\x20(',').\x20','3hzLlqf','5224290baRXNm','existsSync','warn','1207384iAlbeM','1882428cCESSa','statSync','writeFileSync','1175738CLvYEH','chmodSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','dirname'];a72_0x146d=function(){return _0x4a8a28;};return a72_0x146d();}(function(_0x4ddaee,_0x3ba6db){const _0x22f646=a72_0x2151,_0x4120c0=_0x4ddaee();while(!![]){try{const _0x378840=parseInt(_0x22f646(0x1ad))/0x1+-parseInt(_0x22f646(0x1b1))/0x2*(-parseInt(_0x22f646(0x1a9))/0x3)+-parseInt(_0x22f646(0x1ae))/0x4+-parseInt(_0x22f646(0x1aa))/0x5+-parseInt(_0x22f646(0x1a6))/0x6+parseInt(_0x22f646(0x1a4))/0x7+-parseInt(_0x22f646(0x1a3))/0x8;if(_0x378840===_0x3ba6db)break;else _0x4120c0['push'](_0x4120c0['shift']());}catch(_0x1d0232){_0x4120c0['push'](_0x4120c0['shift']());}}}(a72_0x146d,0x937ce));import*as a72_0x40579e from'node:fs';import*as a72_0x18bccc from'node:path';export function setSecureFilePermissions(_0x4cab97){const _0xfd4b0f=a72_0x2151;try{a72_0x40579e['chmodSync'](_0x4cab97,0x180);}catch{console['warn'](_0xfd4b0f(0x19f)+_0x4cab97);}}export function setSecureDirectoryPermissions(_0x21e6e0){const _0x1c050a=a72_0x2151;try{a72_0x40579e[_0x1c050a(0x19e)](_0x21e6e0,0x1c0);}catch{console[_0x1c050a(0x1ac)](_0x1c050a(0x19f)+_0x21e6e0);}}function a72_0x2151(_0x12922c,_0x5ec8b5){const _0x146dde=a72_0x146d();return a72_0x2151=function(_0x2151c9,_0x25e5c9){_0x2151c9=_0x2151c9-0x19e;let _0x1f6df8=_0x146dde[_0x2151c9];return _0x1f6df8;},a72_0x2151(_0x12922c,_0x5ec8b5);}export function createSecureDirectory(_0x12c5d6){const _0x1625e0=a72_0x2151;!a72_0x40579e[_0x1625e0(0x1ab)](_0x12c5d6)&&(a72_0x40579e[_0x1625e0(0x1a5)](_0x12c5d6,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x12c5d6));}export function validateSecureFilePermissions(_0x15fd0b){const _0x2d807e=a72_0x2151;try{const _0x1f7e6b=a72_0x40579e[_0x2d807e(0x1af)](_0x15fd0b),_0x2ab803=_0x1f7e6b[_0x2d807e(0x1a2)]&0x1ff,_0x1d30f7=(_0x2ab803&0x3f)!==0x0;if(_0x1d30f7)return console[_0x2d807e(0x1ac)]('Warning:\x20'+_0x15fd0b+_0x2d807e(0x1a7)+_0x2ab803[_0x2d807e(0x1a1)](0x8)+_0x2d807e(0x1a8)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x334738,_0x2584fc){const _0x254134=a72_0x2151,_0x3e2574=a72_0x18bccc[_0x254134(0x1a0)](_0x334738);createSecureDirectory(_0x3e2574),a72_0x40579e[_0x254134(0x1b0)](_0x334738,_0x2584fc,{'mode':0x180}),setSecureFilePermissions(_0x334738);}
@@ -1 +1 @@
1
- function a69_0x23c2(_0x32ee78,_0x6d6a62){const _0x4f4ce5=a69_0x4f4c();return a69_0x23c2=function(_0x23c26a,_0xdd1a1e){_0x23c26a=_0x23c26a-0x1b6;let _0x696c2b=_0x4f4ce5[_0x23c26a];return _0x696c2b;},a69_0x23c2(_0x32ee78,_0x6d6a62);}(function(_0x158f6b,_0x63af10){const _0x3ab07f=a69_0x23c2,_0x46824f=_0x158f6b();while(!![]){try{const _0x91e9d4=parseInt(_0x3ab07f(0x1bd))/0x1+parseInt(_0x3ab07f(0x1b7))/0x2+parseInt(_0x3ab07f(0x1c6))/0x3*(-parseInt(_0x3ab07f(0x1c0))/0x4)+parseInt(_0x3ab07f(0x1c1))/0x5+parseInt(_0x3ab07f(0x1c3))/0x6+parseInt(_0x3ab07f(0x1c7))/0x7+-parseInt(_0x3ab07f(0x1c2))/0x8*(parseInt(_0x3ab07f(0x1ba))/0x9);if(_0x91e9d4===_0x63af10)break;else _0x46824f['push'](_0x46824f['shift']());}catch(_0x1a4485){_0x46824f['push'](_0x46824f['shift']());}}}(a69_0x4f4c,0x97abb));export function detectFormatFromExtension(_0x2e52e1){const _0x593687=a69_0x23c2,_0x1c9d9e=_0x2e52e1[_0x593687(0x1b6)]()[_0x593687(0x1c4)]('.')[_0x593687(0x1bf)]();switch(_0x1c9d9e){case _0x593687(0x1bc):return _0x593687(0x1bc);case _0x593687(0x1c5):return _0x593687(0x1c5);case _0x593687(0x1b9):case _0x593687(0x1b8):return _0x593687(0x1b9);case _0x593687(0x1be):case _0x593687(0x1bb):return'table';default:return undefined;}}function a69_0x4f4c(){const _0x530713=['pop','3832120UVoOVI','19010TdkAKe','392RaLlnD','6571110begdgA','split','jsonl','3cJOHTe','1367499yyRXRj','toLowerCase','1740450bCMKYC','tab','tsv','260109MjIcxU','text','json','830853imdhqA','txt'];a69_0x4f4c=function(){return _0x530713;};return a69_0x4f4c();}export function resolveOutputFormat(_0x385eea,_0xd52c51,_0x5aabeb){if(_0x385eea)return _0x385eea;if(_0xd52c51){const _0x546554=detectFormatFromExtension(_0xd52c51);if(_0x546554)return _0x546554;}return _0x5aabeb;}
1
+ function a73_0x47f0(_0x240a9f,_0x34d31b){const _0x1aac9d=a73_0x1aac();return a73_0x47f0=function(_0x47f0c9,_0x30748d){_0x47f0c9=_0x47f0c9-0x197;let _0x5c9d8b=_0x1aac9d[_0x47f0c9];return _0x5c9d8b;},a73_0x47f0(_0x240a9f,_0x34d31b);}(function(_0x42932e,_0x500da6){const _0x4c592f=a73_0x47f0,_0x58add5=_0x42932e();while(!![]){try{const _0x27fab0=parseInt(_0x4c592f(0x1a4))/0x1+-parseInt(_0x4c592f(0x1a0))/0x2+-parseInt(_0x4c592f(0x1a3))/0x3*(-parseInt(_0x4c592f(0x1a2))/0x4)+-parseInt(_0x4c592f(0x19f))/0x5+parseInt(_0x4c592f(0x1a5))/0x6+parseInt(_0x4c592f(0x19a))/0x7+-parseInt(_0x4c592f(0x199))/0x8*(parseInt(_0x4c592f(0x19e))/0x9);if(_0x27fab0===_0x500da6)break;else _0x58add5['push'](_0x58add5['shift']());}catch(_0x420219){_0x58add5['push'](_0x58add5['shift']());}}}(a73_0x1aac,0x775b3));export function detectFormatFromExtension(_0x4cb398){const _0x8b91b9=a73_0x47f0,_0xbb0cb1=_0x4cb398['toLowerCase']()[_0x8b91b9(0x19c)]('.')[_0x8b91b9(0x198)]();switch(_0xbb0cb1){case _0x8b91b9(0x1a1):return _0x8b91b9(0x1a1);case'jsonl':return _0x8b91b9(0x19d);case _0x8b91b9(0x197):case _0x8b91b9(0x19b):return'tsv';case'txt':case'text':return'table';default:return undefined;}}export function resolveOutputFormat(_0x39f5cc,_0x19f29b,_0x470e32){if(_0x39f5cc)return _0x39f5cc;if(_0x19f29b){const _0x3db34a=detectFormatFromExtension(_0x19f29b);if(_0x3db34a)return _0x3db34a;}return _0x470e32;}function a73_0x1aac(){const _0x171cec=['split','jsonl','373194dfwUAv','4097900czVGqk','49160HDvCFF','json','2108152niUgSp','3ZHaEwO','294650gBHTsR','3615798zOgxPb','tsv','pop','64ZQIEMS','1683150cpkOfp','tab'];a73_0x1aac=function(){return _0x171cec;};return a73_0x1aac();}
@@ -1 +1 @@
1
- (function(_0xa23c73,_0x249cf1){const _0x21942c=a70_0x5b6f,_0x33df07=_0xa23c73();while(!![]){try{const _0x4510a0=parseInt(_0x21942c(0xed))/0x1*(-parseInt(_0x21942c(0xe9))/0x2)+-parseInt(_0x21942c(0x101))/0x3+-parseInt(_0x21942c(0xec))/0x4+-parseInt(_0x21942c(0xf5))/0x5*(parseInt(_0x21942c(0xe6))/0x6)+-parseInt(_0x21942c(0xf1))/0x7*(-parseInt(_0x21942c(0xdd))/0x8)+-parseInt(_0x21942c(0xd2))/0x9+parseInt(_0x21942c(0xe4))/0xa*(parseInt(_0x21942c(0xd4))/0xb);if(_0x4510a0===_0x249cf1)break;else _0x33df07['push'](_0x33df07['shift']());}catch(_0x60f64a){_0x33df07['push'](_0x33df07['shift']());}}}(a70_0x372d,0x3b06d));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 _0x417f1f=a70_0x5b6f;return process[_0x417f1f(0xf2)]['columns']||Infinity;}export function formatAsTable(_0x192534,_0x5dea15=DEFAULT_MAX_DISPLAY_ROWS,_0x39df72=![],_0x5473d2={}){const _0x10b1bb=a70_0x5b6f;if(_0x192534[_0x10b1bb(0xfb)][_0x10b1bb(0xe3)]===0x0)return'No\x20rows\x20returned';const _0x2e1a93=_0x192534[_0x10b1bb(0xe1)][_0x10b1bb(0xde)](_0x305192=>_0x305192[_0x10b1bb(0xd7)]),_0x2eb3b6=_0x192534['columns'][_0x10b1bb(0xde)](_0x373e55=>simplifyType(_0x373e55['type'])),_0x3ceab6=_0x192534['data'][_0x10b1bb(0xd8)](0x0,_0x5dea15),_0xe00314=_0x192534[_0x10b1bb(0xfb)]['length'],_0xc60599=_0xe00314>_0x5dea15,_0x438ab9=[],_0x589daa=getTerminalWidth(),_0x526c42=_0x589daa!==Infinity,_0x5eb05d=0x32;let _0x25a6ee=_0x2e1a93[_0x10b1bb(0xde)]((_0x40e722,_0x5b89a6)=>{const _0x1da91d=_0x10b1bb,_0x56dbf5=stringWidth(_0x2eb3b6[_0x5b89a6]),_0x3f83fa=Math[_0x1da91d(0xf4)](..._0x3ceab6['map'](_0x2ce99c=>{const _0x256bee=_0x2ce99c[_0x40e722];return stringWidth(formatValue(_0x256bee));})),_0x20ead8=Math[_0x1da91d(0xf4)](stringWidth(_0x40e722),_0x56dbf5,_0x3f83fa);return _0x39df72?_0x20ead8:Math[_0x1da91d(0xfc)](_0x20ead8,_0x5eb05d);});if(_0x526c42&&!_0x39df72&&_0x2e1a93['length']>0x0){const _0x4fa4e5=_0x789665=>{let _0x8374b0=0x1;for(const _0x360a80 of _0x789665){_0x8374b0+=_0x360a80+0x3;}return _0x8374b0+0x1;};let _0x401e33=_0x4fa4e5(_0x25a6ee);if(_0x401e33>_0x589daa){const _0x468f3c=0x3;for(let _0x2b1035=_0x25a6ee[_0x10b1bb(0xe3)]-0x1;_0x2b1035>=0x0;_0x2b1035--){_0x401e33=_0x4fa4e5(_0x25a6ee);if(_0x401e33<=_0x589daa)break;const _0x599892=_0x25a6ee[_0x2b1035],_0x577a08=_0x401e33-_0x589daa,_0x1dff47=_0x599892-_0x468f3c,_0x4e8fa0=Math['min'](_0x577a08,_0x1dff47);_0x4e8fa0>0x0&&(_0x25a6ee[_0x2b1035]=_0x599892-_0x4e8fa0);}}}const _0x1c61da=_0x2e1a93,_0x338eee=_0x2eb3b6,_0x1da39e=_0x25a6ee,_0x3bf60a=_0x25a6ee;_0x438ab9[_0x10b1bb(0xcf)](colorBorder('┌'+_0x3bf60a[_0x10b1bb(0xde)](_0x7338c=>'─'[_0x10b1bb(0xd0)](_0x7338c+0x2))[_0x10b1bb(0xff)]('┬')+'┐',_0x5473d2));const _0x1ecb3f=_0x1c61da[_0x10b1bb(0xde)]((_0x5ce268,_0x7c846)=>centerAlign(_0x5ce268,_0x1da39e[_0x7c846]));_0x438ab9[_0x10b1bb(0xcf)](colorBorder('│',_0x5473d2)+'\x20'+_0x1ecb3f[_0x10b1bb(0xff)]('\x20'+colorBorder('│',_0x5473d2)+'\x20')+'\x20'+colorBorder('│',_0x5473d2));const _0x367a48=_0x338eee[_0x10b1bb(0xde)]((_0x3283da,_0x23661b)=>colorType(centerAlign(_0x3283da,_0x1da39e[_0x23661b]),_0x5473d2));_0x438ab9['push'](colorBorder('│',_0x5473d2)+'\x20'+_0x367a48[_0x10b1bb(0xff)]('\x20'+colorBorder('│',_0x5473d2)+'\x20')+'\x20'+colorBorder('│',_0x5473d2)),_0x438ab9['push'](colorBorder('├'+_0x3bf60a[_0x10b1bb(0xde)](_0x14cc9a=>'─'[_0x10b1bb(0xd0)](_0x14cc9a+0x2))[_0x10b1bb(0xff)]('┼')+'┤',_0x5473d2));const _0xb7a700=(_0x5e0268,_0x49830b)=>{const _0x3f056d=_0x10b1bb,_0x508fe9=stringWidth(_0x5e0268);if(_0x508fe9<=_0x49830b)return _0x5e0268;let _0x40ff43=_0x5e0268;while(stringWidth(_0x40ff43+'…')>_0x49830b&&_0x40ff43[_0x3f056d(0xe3)]>0x0){_0x40ff43=_0x40ff43[_0x3f056d(0xd8)](0x0,-0x1);}return _0x40ff43+'…';};_0x3ceab6[_0x10b1bb(0xd5)](_0x4c083=>{const _0x15204f=_0x10b1bb,_0x2710bb=_0x2e1a93[_0x15204f(0xde)]((_0x435509,_0x54ea28)=>{const _0x452b16=_0x15204f,_0x40dbb6=_0x4c083[_0x435509],_0x140032=formatValue(_0x40dbb6),_0x3c7952=_0x1da39e[_0x54ea28],_0x3351e5=_0xb7a700(_0x140032,_0x3c7952),_0x59d24f=typeof _0x40dbb6===_0x452b16(0xeb)||typeof _0x40dbb6===_0x452b16(0xfa)&&/^-?\d+$/[_0x452b16(0xdb)](_0x40dbb6);return _0x59d24f?padStart(_0x3351e5,_0x3c7952):padEnd(_0x3351e5,_0x3c7952);});_0x438ab9['push'](colorBorder('│',_0x5473d2)+'\x20'+_0x2710bb[_0x15204f(0xff)]('\x20'+colorBorder('│',_0x5473d2)+'\x20')+'\x20'+colorBorder('│',_0x5473d2));});const _0x3c3798=_0x3bf60a[_0x10b1bb(0xf6)]((_0x4513a4,_0x1d56ca)=>_0x4513a4+_0x1d56ca+0x3,-0x1);_0x438ab9[_0x10b1bb(0xcf)](colorBorder('├'+_0x3bf60a[_0x10b1bb(0xde)](_0x200a68=>'─'[_0x10b1bb(0xd0)](_0x200a68+0x2))[_0x10b1bb(0xff)]('┴')+'┤',_0x5473d2));let _0x4dba6b;_0xc60599?_0x4dba6b=_0xe00314+'\x20rows\x20('+_0x5dea15+_0x10b1bb(0xe5):_0x4dba6b=_0xe00314+_0x10b1bb(0xd1)+(_0xe00314===0x1?'':'s');const _0xd2025a=_0x4dba6b[_0x10b1bb(0xf9)](_0x3c3798-0x2);return _0x438ab9['push'](colorBorder('│',_0x5473d2)+'\x20'+_0xd2025a+'\x20'+colorBorder('│',_0x5473d2)),_0x438ab9[_0x10b1bb(0xcf)](colorBorder('└'+'─'[_0x10b1bb(0xd0)](_0x3c3798)+'┘',_0x5473d2)),_0x438ab9['join']('\x0a');}function simplifyType(_0x4e595a){const _0x3019be=a70_0x5b6f,_0x3bce87={'varchar':'string','bigint':_0x3019be(0xee),'integer':_0x3019be(0x104),'double':'double','boolean':_0x3019be(0x102),'date':_0x3019be(0xdc),'timestamp':_0x3019be(0xfd),'array':_0x3019be(0x103),'map':'map','row':_0x3019be(0xf3)},_0xef643=_0x4e595a[_0x3019be(0x100)]();for(const [_0x11a4ee,_0x196be6]of Object[_0x3019be(0xd3)](_0x3bce87)){if(_0xef643[_0x3019be(0xd9)](_0x11a4ee))return _0x196be6;}return _0x4e595a[_0x3019be(0xe3)]>0xa?_0x4e595a['substring'](0x0,0xa):_0x4e595a;}export function formatAsJSON(_0x2c3363,_0x58611c={}){const _0x50f325=a70_0x5b6f;if(_0x2c3363[_0x50f325(0xfb)][_0x50f325(0xe3)]===0x0)return'[]';if(shouldUseColor(_0x58611c))return colorizeJSON(_0x2c3363[_0x50f325(0xfb)],_0x58611c);const _0x3bd5d4=_0x2c3363[_0x50f325(0xfb)][_0x50f325(0xde)](_0x58ad92=>'\x20\x20'+JSON[_0x50f325(0xfe)](_0x58ad92));return'[\x0a'+_0x3bd5d4[_0x50f325(0xff)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x74d512,_0x1d64f6={}){const _0x5dfde7=a70_0x5b6f;if(_0x74d512[_0x5dfde7(0xfb)][_0x5dfde7(0xe3)]===0x0)return'';if(shouldUseColor(_0x1d64f6))return _0x74d512[_0x5dfde7(0xfb)][_0x5dfde7(0xde)](_0xbfa44a=>colorizeJSONCompact(_0xbfa44a,_0x1d64f6))[_0x5dfde7(0xff)]('\x0a');return _0x74d512[_0x5dfde7(0xfb)][_0x5dfde7(0xde)](_0x142eee=>JSON[_0x5dfde7(0xfe)](_0x142eee))['join']('\x0a');}export function formatAsTSV(_0x1a02f4){const _0x3d463c=a70_0x5b6f;if(_0x1a02f4[_0x3d463c(0xfb)]['length']===0x0)return'';const _0x310df6=[],_0x440765=_0x1a02f4[_0x3d463c(0xe1)][_0x3d463c(0xde)](_0x12eac6=>_0x12eac6['name']);return _0x310df6[_0x3d463c(0xcf)](_0x440765[_0x3d463c(0xff)]('\x09')),_0x1a02f4[_0x3d463c(0xfb)][_0x3d463c(0xd5)](_0x5e4faf=>{const _0xedb28a=_0x3d463c,_0x5b3a31=_0x440765[_0xedb28a(0xde)](_0x55d9b9=>{const _0x560e20=_0x5e4faf[_0x55d9b9];return formatValueForTSV(_0x560e20);});_0x310df6['push'](_0x5b3a31[_0xedb28a(0xff)]('\x09'));}),_0x310df6[_0x3d463c(0xff)]('\x0a');}function formatValue(_0x59766d){const _0x5ee310=a70_0x5b6f;if(_0x59766d===null||_0x59766d===undefined)return'';if(typeof _0x59766d===_0x5ee310(0xfa)){const _0x398e4c=_0x59766d[_0x5ee310(0xea)](/\n/g,'\x5cn')[_0x5ee310(0xea)](/\r/g,'\x5cr')[_0x5ee310(0xea)](/\t/g,'\x5ct');return _0x398e4c;}if(typeof _0x59766d==='number')return String(_0x59766d);if(typeof _0x59766d==='boolean')return _0x59766d?_0x5ee310(0xdf):'false';if(_0x59766d instanceof Date)return _0x59766d[_0x5ee310(0xe0)]();if(typeof _0x59766d==='object')return JSON['stringify'](_0x59766d);return String(_0x59766d);}function formatValueForTSV(_0x5811eb){const _0x31eabd=a70_0x5b6f;if(_0x5811eb===null||_0x5811eb===undefined)return'';if(typeof _0x5811eb==='string')return _0x5811eb[_0x31eabd(0xea)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x5811eb==='number'||typeof _0x5811eb==='boolean')return String(_0x5811eb);if(_0x5811eb instanceof Date)return _0x5811eb['toISOString']();if(typeof _0x5811eb===_0x31eabd(0xe8))return JSON[_0x31eabd(0xfe)](_0x5811eb);return String(_0x5811eb);}export function formatQueryResult(_0x3b11ab,_0x57b899){const _0x3ebab7=a70_0x5b6f;switch(_0x57b899){case _0x3ebab7(0xda):return formatAsTable(_0x3b11ab);case'json':return formatAsJSON(_0x3b11ab);case'jsonl':return formatAsJSONL(_0x3b11ab);case _0x3ebab7(0xe7):return formatAsTSV(_0x3b11ab);default:return formatAsJSON(_0x3b11ab);}}function a70_0x372d(){const _0x5087dd=['1iGbfbV','long','0\x20B','pow','2163497oiMMJa','stdout','row','max','425KMJkdh','reduce','toFixed','floor','padEnd','string','data','min','timestamp','stringify','join','toLowerCase','563703UgQEou','bool','array','int','push','repeat','\x20row','2754810FBvGCx','entries','691427DDNifH','forEach','toString','name','slice','startsWith','table','test','date','8AhgIZC','map','true','toISOString','columns','log','length','200DPyoWl','\x20shown)','894tCxkzp','tsv','object','852872AicKqk','replace','number','1565384OMjUXP'];a70_0x372d=function(){return _0x5087dd;};return a70_0x372d();}export function formatBytes(_0x36f4a0){const _0x4c3ace=a70_0x5b6f;if(_0x36f4a0===0x0)return _0x4c3ace(0xef);const _0x3dffe6=['B','KB','MB','GB','TB'],_0x493364=0x400,_0x4a3238=Math[_0x4c3ace(0xf8)](Math['log'](_0x36f4a0)/Math[_0x4c3ace(0xe2)](_0x493364)),_0x5110ae=_0x36f4a0/Math[_0x4c3ace(0xf0)](_0x493364,_0x4a3238),_0x45cba1=_0x5110ae>=0xa?0x1:0x2;return _0x5110ae['toFixed'](_0x45cba1)+'\x20'+_0x3dffe6[_0x4a3238];}function a70_0x5b6f(_0x52493f,_0x2cf682){const _0x372df7=a70_0x372d();return a70_0x5b6f=function(_0x5b6f13,_0x10030f){_0x5b6f13=_0x5b6f13-0xcf;let _0x1ce7dd=_0x372df7[_0x5b6f13];return _0x1ce7dd;},a70_0x5b6f(_0x52493f,_0x2cf682);}export function formatRows(_0x3243c5){const _0xb4c20=a70_0x5b6f;if(_0x3243c5==null)return'-';if(_0x3243c5===0x0)return'0';if(_0x3243c5<0x3e8)return _0x3243c5[_0xb4c20(0xd6)]();const _0x2e4acb=['','K','M','B','T'],_0x48a26a=0x3e8,_0x355cb5=Math[_0xb4c20(0xf8)](Math[_0xb4c20(0xe2)](_0x3243c5)/Math[_0xb4c20(0xe2)](_0x48a26a)),_0x3aa6e1=_0x3243c5/Math[_0xb4c20(0xf0)](_0x48a26a,_0x355cb5),_0x85551f=_0x3aa6e1>=0xa?0x1:0x2;return''+_0x3aa6e1[_0xb4c20(0xf7)](_0x85551f)+_0x2e4acb[_0x355cb5];}
1
+ function a74_0x10b1(){const _0x572227=['string','1715qYpiDk','replace','object','min','toISOString','int','floor','72nqEPGZ','timestamp','name','push','number','date','tsv','toFixed','1404MhEIdn','\x20shown)','No\x20rows\x20returned','type','data','join','4aqnVQp','463048UJmvAw','slice','startsWith','3798ehWvNo','padEnd','columns','map','long','toString','row','substring','boolean','48252sTLlWM','toLowerCase','log','stdout','72bMxRlX','test','stringify','array','\x20rows\x20(','false','table','repeat','length','3047PdLdli','5309490hescWy','pow','forEach','jsonl','258236vpwViJ','max','2604095AGKnoA'];a74_0x10b1=function(){return _0x572227;};return a74_0x10b1();}(function(_0x48ea2d,_0x407c10){const _0x4c8501=a74_0x568a,_0x1b7071=_0x48ea2d();while(!![]){try{const _0xd37159=-parseInt(_0x4c8501(0x184))/0x1*(parseInt(_0x4c8501(0x19d))/0x2)+-parseInt(_0x4c8501(0x197))/0x3*(-parseInt(_0x4c8501(0x18f))/0x4)+parseInt(_0x4c8501(0x186))/0x5+parseInt(_0x4c8501(0x1a1))/0x6*(parseInt(_0x4c8501(0x188))/0x7)+-parseInt(_0x4c8501(0x19e))/0x8*(parseInt(_0x4c8501(0x1ae))/0x9)+-parseInt(_0x4c8501(0x1b8))/0xa+parseInt(_0x4c8501(0x1b7))/0xb*(parseInt(_0x4c8501(0x1aa))/0xc);if(_0xd37159===_0x407c10)break;else _0x1b7071['push'](_0x1b7071['shift']());}catch(_0x387f9e){_0x1b7071['push'](_0x1b7071['shift']());}}}(a74_0x10b1,0x463bc));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 _0x5e0564=a74_0x568a;return process[_0x5e0564(0x1ad)][_0x5e0564(0x1a3)]||Infinity;}export function formatAsTable(_0x1966c4,_0x314e06=DEFAULT_MAX_DISPLAY_ROWS,_0x318f4b=![],_0x51be5d={}){const _0x3ad000=a74_0x568a;if(_0x1966c4['data'][_0x3ad000(0x1b6)]===0x0)return _0x3ad000(0x199);const _0x16b750=_0x1966c4[_0x3ad000(0x1a3)][_0x3ad000(0x1a4)](_0x319398=>_0x319398[_0x3ad000(0x191)]),_0x47dd76=_0x1966c4[_0x3ad000(0x1a3)][_0x3ad000(0x1a4)](_0x4b0b04=>simplifyType(_0x4b0b04[_0x3ad000(0x19a)])),_0x166df7=_0x1966c4[_0x3ad000(0x19b)][_0x3ad000(0x19f)](0x0,_0x314e06),_0x5706f6=_0x1966c4[_0x3ad000(0x19b)][_0x3ad000(0x1b6)],_0x2b974c=_0x5706f6>_0x314e06,_0x54b7a9=[],_0x4045c5=getTerminalWidth(),_0x259f38=_0x4045c5!==Infinity,_0x544dc8=0x32;let _0x4428aa=_0x16b750['map']((_0x722dfc,_0x545955)=>{const _0x2ac680=_0x3ad000,_0x4563c6=stringWidth(_0x47dd76[_0x545955]),_0x108fcd=Math[_0x2ac680(0x185)](..._0x166df7['map'](_0x5dd9f1=>{const _0x322c62=_0x5dd9f1[_0x722dfc];return stringWidth(formatValue(_0x322c62));})),_0x451755=Math[_0x2ac680(0x185)](stringWidth(_0x722dfc),_0x4563c6,_0x108fcd);return _0x318f4b?_0x451755:Math[_0x2ac680(0x18b)](_0x451755,_0x544dc8);});if(_0x259f38&&!_0x318f4b&&_0x16b750[_0x3ad000(0x1b6)]>0x0){const _0x6b78b5=_0x57bf10=>{let _0x2b33ef=0x1;for(const _0x3afe35 of _0x57bf10){_0x2b33ef+=_0x3afe35+0x3;}return _0x2b33ef+0x1;};let _0x4b371f=_0x6b78b5(_0x4428aa);if(_0x4b371f>_0x4045c5){const _0x351a2a=0x3;for(let _0x4f7bf0=_0x4428aa[_0x3ad000(0x1b6)]-0x1;_0x4f7bf0>=0x0;_0x4f7bf0--){_0x4b371f=_0x6b78b5(_0x4428aa);if(_0x4b371f<=_0x4045c5)break;const _0x4e299a=_0x4428aa[_0x4f7bf0],_0x568a41=_0x4b371f-_0x4045c5,_0x56ea09=_0x4e299a-_0x351a2a,_0x5e6c8e=Math[_0x3ad000(0x18b)](_0x568a41,_0x56ea09);_0x5e6c8e>0x0&&(_0x4428aa[_0x4f7bf0]=_0x4e299a-_0x5e6c8e);}}}const _0xfec3cc=_0x16b750,_0x5d0af8=_0x47dd76,_0x2d8831=_0x4428aa,_0xd5edb=_0x4428aa;_0x54b7a9[_0x3ad000(0x192)](colorBorder('┌'+_0xd5edb[_0x3ad000(0x1a4)](_0x1edb0a=>'─'[_0x3ad000(0x1b5)](_0x1edb0a+0x2))[_0x3ad000(0x19c)]('┬')+'┐',_0x51be5d));const _0x51a11c=_0xfec3cc[_0x3ad000(0x1a4)]((_0xfb29a2,_0x26dfca)=>centerAlign(_0xfb29a2,_0x2d8831[_0x26dfca]));_0x54b7a9[_0x3ad000(0x192)](colorBorder('│',_0x51be5d)+'\x20'+_0x51a11c[_0x3ad000(0x19c)]('\x20'+colorBorder('│',_0x51be5d)+'\x20')+'\x20'+colorBorder('│',_0x51be5d));const _0x4146a4=_0x5d0af8[_0x3ad000(0x1a4)]((_0x4cea4c,_0xf03250)=>colorType(centerAlign(_0x4cea4c,_0x2d8831[_0xf03250]),_0x51be5d));_0x54b7a9['push'](colorBorder('│',_0x51be5d)+'\x20'+_0x4146a4[_0x3ad000(0x19c)]('\x20'+colorBorder('│',_0x51be5d)+'\x20')+'\x20'+colorBorder('│',_0x51be5d)),_0x54b7a9['push'](colorBorder('├'+_0xd5edb['map'](_0x1abc93=>'─'[_0x3ad000(0x1b5)](_0x1abc93+0x2))[_0x3ad000(0x19c)]('┼')+'┤',_0x51be5d));const _0x150f53=(_0x2a9a54,_0xa4d77f)=>{const _0x4cf517=_0x3ad000,_0x15d8f6=stringWidth(_0x2a9a54);if(_0x15d8f6<=_0xa4d77f)return _0x2a9a54;let _0x16bbc7=_0x2a9a54;while(stringWidth(_0x16bbc7+'…')>_0xa4d77f&&_0x16bbc7['length']>0x0){_0x16bbc7=_0x16bbc7[_0x4cf517(0x19f)](0x0,-0x1);}return _0x16bbc7+'…';};_0x166df7[_0x3ad000(0x182)](_0x41f3fa=>{const _0x127c22=_0x3ad000,_0x4e8fb5=_0x16b750[_0x127c22(0x1a4)]((_0x42ae6c,_0x37e6c1)=>{const _0x4307d0=_0x127c22,_0x17cf5b=_0x41f3fa[_0x42ae6c],_0x1c64ff=formatValue(_0x17cf5b),_0x47fbf2=_0x2d8831[_0x37e6c1],_0x4b0e2f=_0x150f53(_0x1c64ff,_0x47fbf2),_0x45b3bf=typeof _0x17cf5b===_0x4307d0(0x193)||typeof _0x17cf5b===_0x4307d0(0x187)&&/^-?\d+$/[_0x4307d0(0x1af)](_0x17cf5b);return _0x45b3bf?padStart(_0x4b0e2f,_0x47fbf2):padEnd(_0x4b0e2f,_0x47fbf2);});_0x54b7a9['push'](colorBorder('│',_0x51be5d)+'\x20'+_0x4e8fb5[_0x127c22(0x19c)]('\x20'+colorBorder('│',_0x51be5d)+'\x20')+'\x20'+colorBorder('│',_0x51be5d));});const _0x2365fb=_0xd5edb['reduce']((_0x5e09b7,_0x1df8da)=>_0x5e09b7+_0x1df8da+0x3,-0x1);_0x54b7a9[_0x3ad000(0x192)](colorBorder('├'+_0xd5edb['map'](_0x32becb=>'─'['repeat'](_0x32becb+0x2))[_0x3ad000(0x19c)]('┴')+'┤',_0x51be5d));let _0x2a5a98;_0x2b974c?_0x2a5a98=_0x5706f6+_0x3ad000(0x1b2)+_0x314e06+_0x3ad000(0x198):_0x2a5a98=_0x5706f6+'\x20row'+(_0x5706f6===0x1?'':'s');const _0x219cf0=_0x2a5a98[_0x3ad000(0x1a2)](_0x2365fb-0x2);return _0x54b7a9[_0x3ad000(0x192)](colorBorder('│',_0x51be5d)+'\x20'+_0x219cf0+'\x20'+colorBorder('│',_0x51be5d)),_0x54b7a9['push'](colorBorder('└'+'─'['repeat'](_0x2365fb)+'┘',_0x51be5d)),_0x54b7a9[_0x3ad000(0x19c)]('\x0a');}function simplifyType(_0x5b7d5b){const _0x5396b7=a74_0x568a,_0x2fca86={'varchar':'string','bigint':_0x5396b7(0x1a5),'integer':_0x5396b7(0x18d),'double':'double','boolean':'bool','date':_0x5396b7(0x194),'timestamp':_0x5396b7(0x190),'array':_0x5396b7(0x1b1),'map':'map','row':_0x5396b7(0x1a7)},_0x589757=_0x5b7d5b[_0x5396b7(0x1ab)]();for(const [_0x57534a,_0x4dc146]of Object['entries'](_0x2fca86)){if(_0x589757[_0x5396b7(0x1a0)](_0x57534a))return _0x4dc146;}return _0x5b7d5b[_0x5396b7(0x1b6)]>0xa?_0x5b7d5b[_0x5396b7(0x1a8)](0x0,0xa):_0x5b7d5b;}export function formatAsJSON(_0x1b3c10,_0x434eed={}){const _0x421f22=a74_0x568a;if(_0x1b3c10['data'][_0x421f22(0x1b6)]===0x0)return'[]';if(shouldUseColor(_0x434eed))return colorizeJSON(_0x1b3c10[_0x421f22(0x19b)],_0x434eed);const _0xa504b5=_0x1b3c10['data'][_0x421f22(0x1a4)](_0x1c518b=>'\x20\x20'+JSON['stringify'](_0x1c518b));return'[\x0a'+_0xa504b5[_0x421f22(0x19c)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x5cd484,_0x155539={}){const _0x3a3550=a74_0x568a;if(_0x5cd484[_0x3a3550(0x19b)][_0x3a3550(0x1b6)]===0x0)return'';if(shouldUseColor(_0x155539))return _0x5cd484[_0x3a3550(0x19b)][_0x3a3550(0x1a4)](_0x132ff4=>colorizeJSONCompact(_0x132ff4,_0x155539))[_0x3a3550(0x19c)]('\x0a');return _0x5cd484[_0x3a3550(0x19b)][_0x3a3550(0x1a4)](_0x5208fe=>JSON['stringify'](_0x5208fe))[_0x3a3550(0x19c)]('\x0a');}export function formatAsTSV(_0x315667){const _0x51c307=a74_0x568a;if(_0x315667['data'][_0x51c307(0x1b6)]===0x0)return'';const _0x4324c2=[],_0x39d92e=_0x315667[_0x51c307(0x1a3)][_0x51c307(0x1a4)](_0x1d0ff2=>_0x1d0ff2[_0x51c307(0x191)]);return _0x4324c2[_0x51c307(0x192)](_0x39d92e[_0x51c307(0x19c)]('\x09')),_0x315667[_0x51c307(0x19b)][_0x51c307(0x182)](_0x10f52a=>{const _0x140d1d=_0x51c307,_0x4823d1=_0x39d92e[_0x140d1d(0x1a4)](_0x25a8f4=>{const _0x4178bf=_0x10f52a[_0x25a8f4];return formatValueForTSV(_0x4178bf);});_0x4324c2[_0x140d1d(0x192)](_0x4823d1[_0x140d1d(0x19c)]('\x09'));}),_0x4324c2[_0x51c307(0x19c)]('\x0a');}function a74_0x568a(_0x92eef6,_0x194da6){const _0x10b145=a74_0x10b1();return a74_0x568a=function(_0x568a47,_0x297f81){_0x568a47=_0x568a47-0x182;let _0x2f01d1=_0x10b145[_0x568a47];return _0x2f01d1;},a74_0x568a(_0x92eef6,_0x194da6);}function formatValue(_0x260c6e){const _0x5fefdc=a74_0x568a;if(_0x260c6e===null||_0x260c6e===undefined)return'';if(typeof _0x260c6e===_0x5fefdc(0x187)){const _0x5f01da=_0x260c6e[_0x5fefdc(0x189)](/\n/g,'\x5cn')[_0x5fefdc(0x189)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x5f01da;}if(typeof _0x260c6e==='number')return String(_0x260c6e);if(typeof _0x260c6e===_0x5fefdc(0x1a9))return _0x260c6e?'true':_0x5fefdc(0x1b3);if(_0x260c6e instanceof Date)return _0x260c6e[_0x5fefdc(0x18c)]();if(typeof _0x260c6e===_0x5fefdc(0x18a))return JSON['stringify'](_0x260c6e);return String(_0x260c6e);}function formatValueForTSV(_0x45b85b){const _0x5d36c6=a74_0x568a;if(_0x45b85b===null||_0x45b85b===undefined)return'';if(typeof _0x45b85b==='string')return _0x45b85b[_0x5d36c6(0x189)](/\t/g,'\x5ct')[_0x5d36c6(0x189)](/\n/g,'\x5cn');if(typeof _0x45b85b==='number'||typeof _0x45b85b===_0x5d36c6(0x1a9))return String(_0x45b85b);if(_0x45b85b instanceof Date)return _0x45b85b['toISOString']();if(typeof _0x45b85b===_0x5d36c6(0x18a))return JSON[_0x5d36c6(0x1b0)](_0x45b85b);return String(_0x45b85b);}export function formatQueryResult(_0x59dc37,_0x10ae46){const _0x38f951=a74_0x568a;switch(_0x10ae46){case _0x38f951(0x1b4):return formatAsTable(_0x59dc37);case'json':return formatAsJSON(_0x59dc37);case _0x38f951(0x183):return formatAsJSONL(_0x59dc37);case _0x38f951(0x195):return formatAsTSV(_0x59dc37);default:return formatAsJSON(_0x59dc37);}}export function formatBytes(_0x3172d3){const _0x18cc6a=a74_0x568a;if(_0x3172d3===0x0)return'0\x20B';const _0x19ea4b=['B','KB','MB','GB','TB'],_0x26521e=0x400,_0x447f6e=Math[_0x18cc6a(0x18e)](Math[_0x18cc6a(0x1ac)](_0x3172d3)/Math['log'](_0x26521e)),_0x60669a=_0x3172d3/Math[_0x18cc6a(0x1b9)](_0x26521e,_0x447f6e),_0x10a7b6=_0x60669a>=0xa?0x1:0x2;return _0x60669a[_0x18cc6a(0x196)](_0x10a7b6)+'\x20'+_0x19ea4b[_0x447f6e];}export function formatRows(_0x5bbc64){const _0x48fe7a=a74_0x568a;if(_0x5bbc64==null)return'-';if(_0x5bbc64===0x0)return'0';if(_0x5bbc64<0x3e8)return _0x5bbc64[_0x48fe7a(0x1a6)]();const _0x36f7df=['','K','M','B','T'],_0x55d1c2=0x3e8,_0x137014=Math['floor'](Math[_0x48fe7a(0x1ac)](_0x5bbc64)/Math[_0x48fe7a(0x1ac)](_0x55d1c2)),_0x40a4ce=_0x5bbc64/Math[_0x48fe7a(0x1b9)](_0x55d1c2,_0x137014),_0x5e56a9=_0x40a4ce>=0xa?0x1:0x2;return''+_0x40a4ce[_0x48fe7a(0x196)](_0x5e56a9)+_0x36f7df[_0x137014];}
@@ -1 +1 @@
1
- (function(_0x37a8be,_0x5d5bb1){const _0x4a1943=a71_0x6983,_0x7dc7c5=_0x37a8be();while(!![]){try{const _0x53dbe1=parseInt(_0x4a1943(0x104))/0x1+-parseInt(_0x4a1943(0x114))/0x2+parseInt(_0x4a1943(0x102))/0x3*(-parseInt(_0x4a1943(0x10e))/0x4)+-parseInt(_0x4a1943(0x112))/0x5*(parseInt(_0x4a1943(0x109))/0x6)+-parseInt(_0x4a1943(0x106))/0x7*(-parseInt(_0x4a1943(0x10d))/0x8)+-parseInt(_0x4a1943(0x10b))/0x9+parseInt(_0x4a1943(0x105))/0xa;if(_0x53dbe1===_0x5d5bb1)break;else _0x7dc7c5['push'](_0x7dc7c5['shift']());}catch(_0x4f6d75){_0x7dc7c5['push'](_0x7dc7c5['shift']());}}}(a71_0x437c,0xb9725));function a71_0x437c(){const _0x4c4b73=['3082302mrFwZc','File\x20not\x20found:\x20','40lDoMdy','876tglGdX','message','\x27:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','60JkHBEX','Invalid\x20JSON\x20string:\x20','1627860sDsZiM','NOT_FOUND','INVALID_ARGUMENT','831WCPFhS','Failed\x20to\x20load\x20JSON:\x20','1395704OAFCVy','11424740iWGxdr','1185422BeZqDq','code','Invalid\x20JSON\x20in\x20file\x20\x27','704124ExRcuj','parse'];a71_0x437c=function(){return _0x4c4b73;};return a71_0x437c();}function a71_0x6983(_0x10303e,_0x19c0d0){const _0x437ce8=a71_0x437c();return a71_0x6983=function(_0x6983f2,_0x22dd4e){_0x6983f2=_0x6983f2-0x102;let _0x35f891=_0x437ce8[_0x6983f2];return _0x35f891;},a71_0x6983(_0x10303e,_0x19c0d0);}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0xeff50b,_0x120062){const _0x10d76b=a71_0x6983;try{if(_0x120062){const _0x1e3b22=await readFile(_0xeff50b,'utf-8');try{return JSON[_0x10d76b(0x10a)](_0x1e3b22);}catch(_0x14f22b){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x10d76b(0x108)+_0xeff50b+_0x10d76b(0x110)+(_0x14f22b instanceof Error?_0x14f22b[_0x10d76b(0x10f)]:String(_0x14f22b)));}}else try{return JSON[_0x10d76b(0x10a)](_0xeff50b);}catch(_0x3cebc1){throw new SDKError(ErrorCode[_0x10d76b(0x116)],_0x10d76b(0x113)+(_0x3cebc1 instanceof Error?_0x3cebc1[_0x10d76b(0x10f)]:String(_0x3cebc1)));}}catch(_0x4bc8b5){if(_0x4bc8b5 instanceof SDKError)throw _0x4bc8b5;if(_0x4bc8b5 instanceof Error&&_0x10d76b(0x107)in _0x4bc8b5){const _0x480499=_0x4bc8b5;if(_0x480499['code']==='ENOENT')throw new SDKError(ErrorCode[_0x10d76b(0x115)],_0x10d76b(0x10c)+_0xeff50b);else{if(_0x480499[_0x10d76b(0x107)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0xeff50b);}}throw new SDKError(ErrorCode['INTERNAL'],_0x10d76b(0x103)+(_0x4bc8b5 instanceof Error?_0x4bc8b5[_0x10d76b(0x10f)]:String(_0x4bc8b5)));}}export async function loadJSONFromOptions(_0x48a665,_0x5d519a){const _0x777a1e=a71_0x6983;if(_0x48a665&&_0x5d519a)throw new SDKError(ErrorCode[_0x777a1e(0x116)],_0x777a1e(0x111));if(_0x48a665)return await loadJSON(_0x48a665,![]);if(_0x5d519a)return await loadJSON(_0x5d519a,!![]);return undefined;}
1
+ (function(_0x44a1e2,_0x9d76f1){const _0x46df15=a75_0x5db3,_0x2a2b5a=_0x44a1e2();while(!![]){try{const _0x58dc36=parseInt(_0x46df15(0x8e))/0x1+parseInt(_0x46df15(0x89))/0x2*(-parseInt(_0x46df15(0x82))/0x3)+parseInt(_0x46df15(0x84))/0x4*(-parseInt(_0x46df15(0x83))/0x5)+-parseInt(_0x46df15(0x91))/0x6+-parseInt(_0x46df15(0x8c))/0x7*(parseInt(_0x46df15(0x90))/0x8)+parseInt(_0x46df15(0x87))/0x9+parseInt(_0x46df15(0x8f))/0xa;if(_0x58dc36===_0x9d76f1)break;else _0x2a2b5a['push'](_0x2a2b5a['shift']());}catch(_0x3c3695){_0x2a2b5a['push'](_0x2a2b5a['shift']());}}}(a75_0x21cc,0x27277));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a75_0x5db3(_0x3ce669,_0x2173eb){const _0x21cc37=a75_0x21cc();return a75_0x5db3=function(_0x5db378,_0x1c510d){_0x5db378=_0x5db378-0x7f;let _0x2f798e=_0x21cc37[_0x5db378];return _0x2f798e;},a75_0x5db3(_0x3ce669,_0x2173eb);}export async function loadJSON(_0x5394f3,_0x14e0b5){const _0x3637fd=a75_0x5db3;try{if(_0x14e0b5){const _0x5c28c1=await readFile(_0x5394f3,_0x3637fd(0x93));try{return JSON[_0x3637fd(0x80)](_0x5c28c1);}catch(_0x1ad88c){throw new SDKError(ErrorCode[_0x3637fd(0x86)],_0x3637fd(0x85)+_0x5394f3+'\x27:\x20'+(_0x1ad88c instanceof Error?_0x1ad88c[_0x3637fd(0x8a)]:String(_0x1ad88c)));}}else try{return JSON['parse'](_0x5394f3);}catch(_0x58eaad){throw new SDKError(ErrorCode[_0x3637fd(0x86)],_0x3637fd(0x8d)+(_0x58eaad instanceof Error?_0x58eaad[_0x3637fd(0x8a)]:String(_0x58eaad)));}}catch(_0x47cad6){if(_0x47cad6 instanceof SDKError)throw _0x47cad6;if(_0x47cad6 instanceof Error&&_0x3637fd(0x94)in _0x47cad6){const _0x5baba6=_0x47cad6;if(_0x5baba6['code']===_0x3637fd(0x92))throw new SDKError(ErrorCode['NOT_FOUND'],_0x3637fd(0x8b)+_0x5394f3);else{if(_0x5baba6['code']==='EACCES')throw new SDKError(ErrorCode[_0x3637fd(0x88)],'Permission\x20denied\x20reading\x20file:\x20'+_0x5394f3);}}throw new SDKError(ErrorCode[_0x3637fd(0x81)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x47cad6 instanceof Error?_0x47cad6[_0x3637fd(0x8a)]:String(_0x47cad6)));}}export async function loadJSONFromOptions(_0xcdc6ef,_0x5cfc59){const _0xf8d982=a75_0x5db3;if(_0xcdc6ef&&_0x5cfc59)throw new SDKError(ErrorCode[_0xf8d982(0x86)],_0xf8d982(0x7f));if(_0xcdc6ef)return await loadJSON(_0xcdc6ef,![]);if(_0x5cfc59)return await loadJSON(_0x5cfc59,!![]);return undefined;}function a75_0x21cc(){const _0x33e1c2=['ENOENT','utf-8','code','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','INTERNAL','9hkRHXZ','505ZrdCGo','10708TRrcqN','Invalid\x20JSON\x20in\x20file\x20\x27','INVALID_ARGUMENT','553104ISQzrU','PERMISSION_DENIED','91784GlRvIh','message','File\x20not\x20found:\x20','4774xCtANm','Invalid\x20JSON\x20string:\x20','51382tuiPnf','5811120OUyqZv','1064wNBBEi','208896PUmZfC'];a75_0x21cc=function(){return _0x33e1c2;};return a75_0x21cc();}
@@ -1 +1 @@
1
- (function(_0x449ec5,_0x550853){const _0x29e153=a72_0x577d,_0x95d904=_0x449ec5();while(!![]){try{const _0x54cedd=parseInt(_0x29e153(0x94))/0x1+parseInt(_0x29e153(0x92))/0x2*(parseInt(_0x29e153(0x9d))/0x3)+-parseInt(_0x29e153(0x9b))/0x4+-parseInt(_0x29e153(0x97))/0x5+-parseInt(_0x29e153(0x99))/0x6*(parseInt(_0x29e153(0x93))/0x7)+-parseInt(_0x29e153(0x91))/0x8+parseInt(_0x29e153(0x98))/0x9;if(_0x54cedd===_0x550853)break;else _0x95d904['push'](_0x95d904['shift']());}catch(_0x32f7c8){_0x95d904['push'](_0x95d904['shift']());}}}(a72_0x5993,0xaf7ff));export function canCreateAgent(_0x12642f,_0x48d7c4){const _0x2ce0e5=a72_0x577d;for(const _0x106b92 of _0x12642f[_0x2ce0e5(0x90)][_0x2ce0e5(0x9c)]){if(_0x106b92[_0x2ce0e5(0x8d)]&&!_0x48d7c4[_0x2ce0e5(0x96)](_0x106b92[_0x2ce0e5(0x8d)]))return![];}return!![];}export function remapToolIds(_0x31feb4,_0x56f021,_0x2c4266){const _0x53cd0b=a72_0x577d;return _0x31feb4['map'](_0x13438e=>({..._0x13438e,'targetKnowledgeBaseId':_0x13438e[_0x53cd0b(0x9a)]?_0x56f021['get'](_0x13438e[_0x53cd0b(0x9a)])||_0x13438e['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x13438e['targetAgentId']?_0x2c4266['get'](_0x13438e[_0x53cd0b(0x8d)])||_0x13438e[_0x53cd0b(0x8d)]:undefined}));}function a72_0x577d(_0x464045,_0x1bb694){const _0x59933c=a72_0x5993();return a72_0x577d=function(_0x577dd3,_0x10388e){_0x577dd3=_0x577dd3-0x8d;let _0x36d003=_0x59933c[_0x577dd3];return _0x36d003;},a72_0x577d(_0x464045,_0x1bb694);}export function remapVariableIds(_0x2d2028,_0x331fab){const _0x132d20=a72_0x577d;return _0x2d2028[_0x132d20(0x8f)](_0x2621ea=>({..._0x2621ea,'targetKnowledgeBaseId':_0x331fab[_0x132d20(0x8e)](_0x2621ea['targetKnowledgeBaseId'])||_0x2621ea['targetKnowledgeBaseId']}));}export function isSupportedBackupVersion(_0x231c9b){const _0x38f3af=a72_0x577d;return _0x231c9b===_0x38f3af(0x95);}function a72_0x5993(){const _0x1718fe=['580fYXHwr','18655APfPHz','168116JBKYOy','1.0','has','2424740gLVBHy','21780036PFxIOQ','1098KGVVxc','targetKnowledgeBaseId','1735320tyUWzd','tools','4710UXSvru','targetAgentId','get','map','attributes','7344800fJVacX'];a72_0x5993=function(){return _0x1718fe;};return a72_0x5993();}
1
+ (function(_0x45e88a,_0x5a780f){const _0x3a6daf=a76_0x20a7,_0x125c09=_0x45e88a();while(!![]){try{const _0x5f0da2=parseInt(_0x3a6daf(0x134))/0x1+parseInt(_0x3a6daf(0x139))/0x2+-parseInt(_0x3a6daf(0x13e))/0x3+-parseInt(_0x3a6daf(0x13c))/0x4+-parseInt(_0x3a6daf(0x13b))/0x5+-parseInt(_0x3a6daf(0x141))/0x6*(-parseInt(_0x3a6daf(0x142))/0x7)+parseInt(_0x3a6daf(0x13a))/0x8;if(_0x5f0da2===_0x5a780f)break;else _0x125c09['push'](_0x125c09['shift']());}catch(_0x30ab0a){_0x125c09['push'](_0x125c09['shift']());}}}(a76_0x4598,0x7fdf1));function a76_0x20a7(_0x71aa24,_0x453fd4){const _0x4598d9=a76_0x4598();return a76_0x20a7=function(_0x20a78f,_0x48d4aa){_0x20a78f=_0x20a78f-0x134;let _0x28f446=_0x4598d9[_0x20a78f];return _0x28f446;},a76_0x20a7(_0x71aa24,_0x453fd4);}function a76_0x4598(){const _0x2b7d38=['attributes','get','71634OGfyBp','21gwpJmI','209469rqlLku','has','targetKnowledgeBaseId','targetAgentId','map','1483574nGefYX','10039216lEQdDz','4690785isPmBG','1698812kBJFZK','tools','1066062gJCbFD'];a76_0x4598=function(){return _0x2b7d38;};return a76_0x4598();}export function canCreateAgent(_0x4cf406,_0x1a7136){const _0x2458a7=a76_0x20a7;for(const _0xb6fbf4 of _0x4cf406[_0x2458a7(0x13f)][_0x2458a7(0x13d)]){if(_0xb6fbf4['targetAgentId']&&!_0x1a7136[_0x2458a7(0x135)](_0xb6fbf4[_0x2458a7(0x137)]))return![];}return!![];}export function remapToolIds(_0x4d3168,_0x25d282,_0xbeefdb){const _0x350d49=a76_0x20a7;return _0x4d3168[_0x350d49(0x138)](_0x4e363a=>({..._0x4e363a,'targetKnowledgeBaseId':_0x4e363a['targetKnowledgeBaseId']?_0x25d282[_0x350d49(0x140)](_0x4e363a[_0x350d49(0x136)])||_0x4e363a[_0x350d49(0x136)]:undefined,'targetAgentId':_0x4e363a[_0x350d49(0x137)]?_0xbeefdb['get'](_0x4e363a['targetAgentId'])||_0x4e363a[_0x350d49(0x137)]:undefined}));}export function remapVariableIds(_0x4ee44f,_0x2ef665){const _0x249888=a76_0x20a7;return _0x4ee44f[_0x249888(0x138)](_0x3d2783=>({..._0x3d2783,'targetKnowledgeBaseId':_0x2ef665[_0x249888(0x140)](_0x3d2783[_0x249888(0x136)])||_0x3d2783[_0x249888(0x136)]}));}export function isSupportedBackupVersion(_0x4dc3d4){return _0x4dc3d4==='1.0';}
@@ -1 +1 @@
1
- const a73_0xd8b22f=a73_0x15be;(function(_0x257f69,_0x15985a){const _0xe504c8=a73_0x15be,_0x285767=_0x257f69();while(!![]){try{const _0x398a17=parseInt(_0xe504c8(0x1fe))/0x1*(parseInt(_0xe504c8(0x1f8))/0x2)+-parseInt(_0xe504c8(0x1f7))/0x3*(parseInt(_0xe504c8(0x1f4))/0x4)+-parseInt(_0xe504c8(0x1f5))/0x5+parseInt(_0xe504c8(0x1fa))/0x6+-parseInt(_0xe504c8(0x1fc))/0x7*(parseInt(_0xe504c8(0x1f6))/0x8)+-parseInt(_0xe504c8(0x1fd))/0x9+parseInt(_0xe504c8(0x1ff))/0xa*(parseInt(_0xe504c8(0x200))/0xb);if(_0x398a17===_0x15985a)break;else _0x285767['push'](_0x285767['shift']());}catch(_0x45daca){_0x285767['push'](_0x285767['shift']());}}}(a73_0x3c3b,0xb0812));const MODEL_ALIASES={'haiku':a73_0xd8b22f(0x1f9),'sonnet':a73_0xd8b22f(0x1fb)};export function extractModelAlias(_0x101db2){const _0x37855c=a73_0xd8b22f,_0x256f22=_0x101db2['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x256f22)return _0x256f22[0x1][_0x37855c(0x201)]();return _0x101db2;}function a73_0x3c3b(){const _0x465ee2=['3011832SGNolQ','373817brawgS','40zSciVg','3278242MdipVR','toLowerCase','3703204PQvDUz','367405mXblXu','32OiwuLB','3XsRwpe','2qxhJcG','claude-4.5-haiku','6098514hZGqtA','claude-4.5-sonnet','919506xOjxTU'];a73_0x3c3b=function(){return _0x465ee2;};return a73_0x3c3b();}export function resolveModelAlias(_0x344a02){const _0x5a9981=a73_0xd8b22f;return MODEL_ALIASES[_0x344a02[_0x5a9981(0x201)]()]||_0x344a02;}function a73_0x15be(_0x11e25f,_0x361603){const _0x3c3b33=a73_0x3c3b();return a73_0x15be=function(_0x15be40,_0xe54caf){_0x15be40=_0x15be40-0x1f4;let _0x1e9b2d=_0x3c3b33[_0x15be40];return _0x1e9b2d;},a73_0x15be(_0x11e25f,_0x361603);}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a77_0x40aa4d=a77_0x1b31;function a77_0x1b31(_0x222a62,_0x5424b2){const _0x47fa71=a77_0x47fa();return a77_0x1b31=function(_0x1b3173,_0x2e0116){_0x1b3173=_0x1b3173-0xd6;let _0xc0023e=_0x47fa71[_0x1b3173];return _0xc0023e;},a77_0x1b31(_0x222a62,_0x5424b2);}(function(_0x4e42ca,_0x1d5a7c){const _0xbd4d99=a77_0x1b31,_0x5aa41f=_0x4e42ca();while(!![]){try{const _0x4576f2=parseInt(_0xbd4d99(0xd9))/0x1+parseInt(_0xbd4d99(0xd7))/0x2*(parseInt(_0xbd4d99(0xe3))/0x3)+-parseInt(_0xbd4d99(0xdf))/0x4*(parseInt(_0xbd4d99(0xdd))/0x5)+-parseInt(_0xbd4d99(0xd8))/0x6+parseInt(_0xbd4d99(0xe0))/0x7*(parseInt(_0xbd4d99(0xe1))/0x8)+parseInt(_0xbd4d99(0xda))/0x9+-parseInt(_0xbd4d99(0xdb))/0xa*(parseInt(_0xbd4d99(0xde))/0xb);if(_0x4576f2===_0x1d5a7c)break;else _0x5aa41f['push'](_0x5aa41f['shift']());}catch(_0x575165){_0x5aa41f['push'](_0x5aa41f['shift']());}}}(a77_0x47fa,0xe08ef));function a77_0x47fa(){const _0x12b811=['4543lionlO','124jLOCtu','263501dthoYh','360PiZUWS','toLowerCase','39NoefAl','claude-4.5-haiku','match','221930sfqMcZ','5081664QyDTZf','1075001CoKxjA','4400316wyFAup','68650wBWcVc','claude-4.5-sonnet','15875LnCPGe'];a77_0x47fa=function(){return _0x12b811;};return a77_0x47fa();}const MODEL_ALIASES={'haiku':a77_0x40aa4d(0xe4),'sonnet':a77_0x40aa4d(0xdc)};export function extractModelAlias(_0x226b3b){const _0x1bda9d=a77_0x40aa4d,_0x63cbe6=_0x226b3b[_0x1bda9d(0xd6)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x63cbe6)return _0x63cbe6[0x1][_0x1bda9d(0xe2)]();return _0x226b3b;}export function resolveModelAlias(_0x4855aa){const _0x35d541=a77_0x40aa4d;return MODEL_ALIASES[_0x4855aa[_0x35d541(0xe2)]()]||_0x4855aa;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- function a74_0xa99d(_0x3648d8,_0x57d1ad){const _0x1428f9=a74_0x1428();return a74_0xa99d=function(_0xa99d0a,_0x527839){_0xa99d0a=_0xa99d0a-0xc0;let _0x578462=_0x1428f9[_0xa99d0a];return _0x578462;},a74_0xa99d(_0x3648d8,_0x57d1ad);}function a74_0x1428(){const _0x1d6e08=['Invalid\x20limit\x20value:\x20','Invalid\x20timeout\x20value:\x20','77dpwvpP','2595596fcmsys','33612BiOATe','640600xNDyUD','103174bNdFLH','34725WuJtDH','.\x20Must\x20be\x20a\x20positive\x20integer.','294RrsPSV','11bkYfok','isInteger','2428527OTCBSk','2552sqaEfk','288vVJXIE','91730LnXhLS'];a74_0x1428=function(){return _0x1d6e08;};return a74_0x1428();}(function(_0x22fa23,_0x4202ab){const _0x10fe5d=a74_0xa99d,_0x222fad=_0x22fa23();while(!![]){try{const _0x4762e4=parseInt(_0x10fe5d(0xc6))/0x1*(-parseInt(_0x10fe5d(0xc2))/0x2)+parseInt(_0x10fe5d(0xc8))/0x3+-parseInt(_0x10fe5d(0xcf))/0x4+parseInt(_0x10fe5d(0xc3))/0x5*(parseInt(_0x10fe5d(0xc5))/0x6)+parseInt(_0x10fe5d(0xce))/0x7*(parseInt(_0x10fe5d(0xc1))/0x8)+-parseInt(_0x10fe5d(0xca))/0x9*(-parseInt(_0x10fe5d(0xcb))/0xa)+parseInt(_0x10fe5d(0xc9))/0xb*(-parseInt(_0x10fe5d(0xc0))/0xc);if(_0x4762e4===_0x4202ab)break;else _0x222fad['push'](_0x222fad['shift']());}catch(_0x2c7972){_0x222fad['push'](_0x222fad['shift']());}}}(a74_0x1428,0x6fd03));export function validateLimitOption(_0x5dedf1){const _0x42e6a7=a74_0xa99d;if(!Number[_0x42e6a7(0xc7)](_0x5dedf1))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5dedf1+'.\x20Must\x20be\x20an\x20integer.'};if(_0x5dedf1<=0x0)return{'isValid':![],'error':_0x42e6a7(0xcc)+_0x5dedf1+_0x42e6a7(0xc4)};return{'isValid':!![],'value':_0x5dedf1};}export function validateTimeoutOption(_0x33d6a9,_0x1abfe0=0x1e){const _0x3c247f=a74_0xa99d;if(_0x33d6a9===undefined)return{'isValid':!![],'value':_0x1abfe0};const _0x4b30f0=typeof _0x33d6a9==='number'?_0x33d6a9:parseFloat(_0x33d6a9);if(isNaN(_0x4b30f0))return{'isValid':![],'error':_0x3c247f(0xcd)+_0x33d6a9+'.\x20Must\x20be\x20a\x20number.'};if(_0x4b30f0<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x4b30f0+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x4b30f0};}
1
+ (function(_0x1dd7f8,_0x4d35b5){const _0x3f3b7b=a78_0x5d68,_0x16bcab=_0x1dd7f8();while(!![]){try{const _0x27eb92=-parseInt(_0x3f3b7b(0x14d))/0x1+parseInt(_0x3f3b7b(0x140))/0x2+-parseInt(_0x3f3b7b(0x141))/0x3*(-parseInt(_0x3f3b7b(0x145))/0x4)+-parseInt(_0x3f3b7b(0x143))/0x5*(-parseInt(_0x3f3b7b(0x14b))/0x6)+parseInt(_0x3f3b7b(0x14c))/0x7*(parseInt(_0x3f3b7b(0x147))/0x8)+-parseInt(_0x3f3b7b(0x144))/0x9*(-parseInt(_0x3f3b7b(0x142))/0xa)+parseInt(_0x3f3b7b(0x13c))/0xb*(-parseInt(_0x3f3b7b(0x13d))/0xc);if(_0x27eb92===_0x4d35b5)break;else _0x16bcab['push'](_0x16bcab['shift']());}catch(_0x39ed51){_0x16bcab['push'](_0x16bcab['shift']());}}}(a78_0x3170,0x49628));function a78_0x5d68(_0x4456c3,_0x423910){const _0x317058=a78_0x3170();return a78_0x5d68=function(_0x5d68b6,_0x3558c3){_0x5d68b6=_0x5d68b6-0x13c;let _0x4d9b15=_0x317058[_0x5d68b6];return _0x4d9b15;},a78_0x5d68(_0x4456c3,_0x423910);}function a78_0x3170(){const _0x3ffcad=['isInteger','496120RswBLA','30ZuwRFm','3158290cAcWTe','550115ftawoM','9LnwOwt','93788kPjAZD','Invalid\x20limit\x20value:\x20','3960wMqkob','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20integer.','number','12EGNDhW','91kNMuYg','388874jYqQTg','33WwPviQ','1341528fXNUEq','.\x20Must\x20be\x20a\x20number.'];a78_0x3170=function(){return _0x3ffcad;};return a78_0x3170();}export function validateLimitOption(_0x242589){const _0x19d9ca=a78_0x5d68;if(!Number[_0x19d9ca(0x13f)](_0x242589))return{'isValid':![],'error':_0x19d9ca(0x146)+_0x242589+'.\x20Must\x20be\x20an\x20integer.'};if(_0x242589<=0x0)return{'isValid':![],'error':_0x19d9ca(0x146)+_0x242589+_0x19d9ca(0x149)};return{'isValid':!![],'value':_0x242589};}export function validateTimeoutOption(_0xd8205,_0x283a6c=0x1e){const _0x355c92=a78_0x5d68;if(_0xd8205===undefined)return{'isValid':!![],'value':_0x283a6c};const _0x3d0401=typeof _0xd8205===_0x355c92(0x14a)?_0xd8205:parseFloat(_0xd8205);if(isNaN(_0x3d0401))return{'isValid':![],'error':_0x355c92(0x148)+_0xd8205+_0x355c92(0x13e)};if(_0x3d0401<=0x0)return{'isValid':![],'error':_0x355c92(0x148)+_0x3d0401+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x3d0401};}
@@ -1 +1 @@
1
- function a75_0xcf70(_0x5059ec,_0x51733b){const _0x2e6758=a75_0x2e67();return a75_0xcf70=function(_0xcf70e7,_0x474177){_0xcf70e7=_0xcf70e7-0xec;let _0x45bc86=_0x2e6758[_0xcf70e7];return _0x45bc86;},a75_0xcf70(_0x5059ec,_0x51733b);}(function(_0x25752a,_0x253847){const _0x240c14=a75_0xcf70,_0x44b60b=_0x25752a();while(!![]){try{const _0x2a234f=-parseInt(_0x240c14(0xf4))/0x1+-parseInt(_0x240c14(0xec))/0x2*(parseInt(_0x240c14(0xf7))/0x3)+parseInt(_0x240c14(0xf0))/0x4*(-parseInt(_0x240c14(0xf3))/0x5)+parseInt(_0x240c14(0xfd))/0x6+parseInt(_0x240c14(0xf8))/0x7*(-parseInt(_0x240c14(0xf9))/0x8)+parseInt(_0x240c14(0xf1))/0x9*(-parseInt(_0x240c14(0xef))/0xa)+parseInt(_0x240c14(0xf2))/0xb;if(_0x2a234f===_0x253847)break;else _0x44b60b['push'](_0x44b60b['shift']());}catch(_0x1970cb){_0x44b60b['push'](_0x44b60b['shift']());}}}(a75_0x2e67,0x39a31));import{createServer}from'node:net';export async function isPortAvailable(_0x128a30){return new Promise(_0x3b0244=>{const _0x5ab188=a75_0xcf70,_0x574783=createServer();_0x574783['once'](_0x5ab188(0xf5),_0x4c1ca1=>{const _0x11a955=_0x5ab188;_0x4c1ca1[_0x11a955(0xfb)]===_0x11a955(0xed)?_0x3b0244(![]):_0x3b0244(![]);}),_0x574783[_0x5ab188(0xfc)]('listening',()=>{const _0x15c254=_0x5ab188;_0x574783[_0x15c254(0xff)](),_0x3b0244(!![]);}),_0x574783[_0x5ab188(0xfa)](_0x128a30,_0x5ab188(0xee));});}function a75_0x2e67(){const _0x281f6d=['643779SXbzCU','5165754HuWMJM','5qZWAOd','269912klyJAA','error','No\x20available\x20port\x20found\x20between\x20','201fRpNNf','1491QTcqmY','4200HsMnWK','listen','code','once','2652054tveait','\x20and\x20','close','5474fJScSt','EADDRINUSE','0.0.0.0','10nBWLat','155580MjhSJv'];a75_0x2e67=function(){return _0x281f6d;};return a75_0x2e67();}export async function findAvailablePort(_0x4f7147=0xfa0,_0x479202=0x64){const _0x54617c=a75_0xcf70;for(let _0x3ae116=0x0;_0x3ae116<_0x479202;_0x3ae116++){const _0x463b6f=_0x4f7147+_0x3ae116;if(await isPortAvailable(_0x463b6f))return _0x463b6f;}throw new Error(_0x54617c(0xf6)+_0x4f7147+_0x54617c(0xfe)+(_0x4f7147+_0x479202-0x1));}
1
+ (function(_0x13b4b5,_0x3bfc78){const _0x51afa1=a79_0x3756,_0x4dadeb=_0x13b4b5();while(!![]){try{const _0x260d6a=parseInt(_0x51afa1(0x1eb))/0x1+parseInt(_0x51afa1(0x1ee))/0x2*(-parseInt(_0x51afa1(0x1e1))/0x3)+parseInt(_0x51afa1(0x1ef))/0x4*(-parseInt(_0x51afa1(0x1de))/0x5)+parseInt(_0x51afa1(0x1f2))/0x6*(parseInt(_0x51afa1(0x1f1))/0x7)+parseInt(_0x51afa1(0x1e2))/0x8*(parseInt(_0x51afa1(0x1e3))/0x9)+parseInt(_0x51afa1(0x1e5))/0xa*(-parseInt(_0x51afa1(0x1e7))/0xb)+-parseInt(_0x51afa1(0x1e8))/0xc*(-parseInt(_0x51afa1(0x1ea))/0xd);if(_0x260d6a===_0x3bfc78)break;else _0x4dadeb['push'](_0x4dadeb['shift']());}catch(_0x124deb){_0x4dadeb['push'](_0x4dadeb['shift']());}}}(a79_0x5cbd,0x6f3d0));function a79_0x3756(_0x58040a,_0x734637){const _0x5cbdea=a79_0x5cbd();return a79_0x3756=function(_0x375641,_0x109d82){_0x375641=_0x375641-0x1de;let _0x271ad6=_0x5cbdea[_0x375641];return _0x271ad6;},a79_0x3756(_0x58040a,_0x734637);}function a79_0x5cbd(){const _0x5d7468=['EADDRINUSE','3536990dmyhGa','listen','11NBqwbS','11748ZjGqag','listening','6682JEUEjh','331608DEOxLA','\x20and\x20','No\x20available\x20port\x20found\x20between\x20','2IbhfOW','1378384bJSzVR','error','4444797ODUaDC','6NsBGqe','code','5LDOSWw','0.0.0.0','once','1400391NunGDY','744TmIGeF','14607AGhYOq'];a79_0x5cbd=function(){return _0x5d7468;};return a79_0x5cbd();}import{createServer}from'node:net';export async function isPortAvailable(_0x41c55c){return new Promise(_0x4c73aa=>{const _0x424a4f=a79_0x3756,_0x3e6b1f=createServer();_0x3e6b1f['once'](_0x424a4f(0x1f0),_0x6cb533=>{const _0x4e0947=_0x424a4f;_0x6cb533[_0x4e0947(0x1f3)]===_0x4e0947(0x1e4)?_0x4c73aa(![]):_0x4c73aa(![]);}),_0x3e6b1f[_0x424a4f(0x1e0)](_0x424a4f(0x1e9),()=>{_0x3e6b1f['close'](),_0x4c73aa(!![]);}),_0x3e6b1f[_0x424a4f(0x1e6)](_0x41c55c,_0x424a4f(0x1df));});}export async function findAvailablePort(_0x261a82=0xfa0,_0x3e2d7f=0x64){const _0x1a426f=a79_0x3756;for(let _0x432a17=0x0;_0x432a17<_0x3e2d7f;_0x432a17++){const _0x1a91e2=_0x261a82+_0x432a17;if(await isPortAvailable(_0x1a91e2))return _0x1a91e2;}throw new Error(_0x1a426f(0x1ed)+_0x261a82+_0x1a426f(0x1ec)+(_0x261a82+_0x3e2d7f-0x1));}
@@ -1 +1 @@
1
- const a76_0x1530db=a76_0x7afa;(function(_0x554dc6,_0x2dea1a){const _0x68ec60=a76_0x7afa,_0x515cf9=_0x554dc6();while(!![]){try{const _0x549acf=-parseInt(_0x68ec60(0x218))/0x1+-parseInt(_0x68ec60(0x213))/0x2+parseInt(_0x68ec60(0x20c))/0x3*(parseInt(_0x68ec60(0x1f4))/0x4)+parseInt(_0x68ec60(0x1f3))/0x5+-parseInt(_0x68ec60(0x216))/0x6+-parseInt(_0x68ec60(0x211))/0x7+parseInt(_0x68ec60(0x1f7))/0x8;if(_0x549acf===_0x2dea1a)break;else _0x515cf9['push'](_0x515cf9['shift']());}catch(_0x52f6d0){_0x515cf9['push'](_0x515cf9['shift']());}}}(a76_0x3ddb,0x1fc7d));function a76_0x3ddb(){const _0x28714d=['32812vWUzXl','Found\x20ephemeral\x20shell\x20','code','3950608gRdrXg','replace',')\x20spawned\x20by\x20','trim','comm','error','toLowerCase','length','pop','DEBUG','csh','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','ps\x20-p\x20','pwsh','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','\x20-o\x20ppid=,comm=','powershell',',\x20continuing\x20up','utf-8','ppid','join','21OFcNyK','fish','env','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','claude','1458499UNmKQq','pid','87252cFgOel','win32','wmic\x20process\x20where\x20ProcessId=','686064MnwCfX','split','136586plZESr','\x20on\x20POSIX:','\x20get\x20ParentProcessId,Name\x20/format:csv','cursor','\x20on\x20Windows:','409195pNHuoW'];a76_0x3ddb=function(){return _0x28714d;};return a76_0x3ddb();}import{execSync}from'node:child_process';function a76_0x7afa(_0x1f30c2,_0x21207a){const _0x3ddb31=a76_0x3ddb();return a76_0x7afa=function(_0x7afaf7,_0x32c31f){_0x7afaf7=_0x7afaf7-0x1ef;let _0x4b75a0=_0x3ddb31[_0x7afaf7];return _0x4b75a0;},a76_0x7afa(_0x1f30c2,_0x21207a);}const SHELL_NAMES=new Set(['bash','zsh','sh',a76_0x1530db(0x20d),'ksh','tcsh',a76_0x1530db(0x201),'dash',a76_0x1530db(0x204),a76_0x1530db(0x207),'nu','ion','elvish','xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a76_0x1530db(0x210),a76_0x1530db(0x1f6),a76_0x1530db(0x1f1)]);function getProcessInfoWindows(_0x76a871){const _0x1d8496=a76_0x1530db;try{const _0x2cf9c4=execSync(_0x1d8496(0x215)+_0x76a871+_0x1d8496(0x1f0),{'encoding':_0x1d8496(0x209),'windowsHide':!![]})['trim'](),_0x24fcf=_0x2cf9c4['split']('\x0a')['filter'](_0x53db72=>_0x53db72[_0x1d8496(0x1fa)]());if(_0x24fcf['length']<0x2)return null;const _0x519075=_0x24fcf[_0x24fcf[_0x1d8496(0x1fe)]-0x1][_0x1d8496(0x217)](',');if(_0x519075[_0x1d8496(0x1fe)]<0x3)return null;const _0x3716d2=_0x519075[0x1]?.[_0x1d8496(0x1fa)]()||'',_0x1e4f6f=parseInt(_0x519075[0x2]?.[_0x1d8496(0x1fa)]()||'0',0xa);if(isNaN(_0x1e4f6f)||!_0x3716d2)return null;return{'pid':_0x76a871,'ppid':_0x1e4f6f,'comm':_0x3716d2['replace'](/\.exe$/i,'')};}catch(_0x481a9c){return process[_0x1d8496(0x20e)][_0x1d8496(0x200)]&&console['error'](_0x1d8496(0x205)+_0x76a871+_0x1d8496(0x1f2),_0x481a9c),null;}}function getProcessInfoPosix(_0x5cb4be){const _0x5a668b=a76_0x1530db;try{const _0x434610=execSync(_0x5a668b(0x203)+_0x5cb4be+_0x5a668b(0x206),{'encoding':_0x5a668b(0x209)})[_0x5a668b(0x1fa)](),[_0x4427d9,..._0x1680c4]=_0x434610[_0x5a668b(0x217)](/\s+/),_0x3e708e=parseInt(_0x4427d9,0xa),_0x2b25d6=_0x1680c4[_0x5a668b(0x20b)]('\x20');if(isNaN(_0x3e708e))return null;return{'pid':_0x5cb4be,'ppid':_0x3e708e,'comm':_0x2b25d6};}catch(_0x5bd5de){return process[_0x5a668b(0x20e)][_0x5a668b(0x200)]&&console[_0x5a668b(0x1fc)](_0x5a668b(0x205)+_0x5cb4be+_0x5a668b(0x1ef),_0x5bd5de),null;}}function getProcessInfo(_0x5dc602){const _0x26c214=a76_0x1530db;if(process['platform']===_0x26c214(0x214))return getProcessInfoWindows(_0x5dc602);return getProcessInfoPosix(_0x5dc602);}function getBasename(_0x2c1dfa){const _0x14f6a8=a76_0x1530db;return _0x2c1dfa[_0x14f6a8(0x1f8)](/^-/,'')[_0x14f6a8(0x217)]('/')[_0x14f6a8(0x1ff)]()?.[_0x14f6a8(0x1fd)]()||'';}function isShell(_0x2e980f){return SHELL_NAMES['has'](getBasename(_0x2e980f));}function isEphemeralShellSpawner(_0x36bff0){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x36bff0));}let cachedShellPID;function findShellPID(){const _0x9c7709=a76_0x1530db;let _0x5115fd=process[_0x9c7709(0x20a)];const _0x5410cc=0xa;let _0x50d860=0x0;while(_0x50d860<_0x5410cc){const _0x59aaab=getProcessInfo(_0x5115fd);if(!_0x59aaab){process[_0x9c7709(0x20e)][_0x9c7709(0x200)]&&console[_0x9c7709(0x1fc)](_0x9c7709(0x202)+_0x5115fd+',\x20using\x20fallback');break;}if(isShell(_0x59aaab[_0x9c7709(0x1fb)])){const _0x3236a8=getProcessInfo(_0x59aaab[_0x9c7709(0x20a)]);if(_0x3236a8&&isEphemeralShellSpawner(_0x3236a8[_0x9c7709(0x1fb)])){process[_0x9c7709(0x20e)]['DEBUG']&&console[_0x9c7709(0x1fc)](_0x9c7709(0x1f5)+_0x59aaab[_0x9c7709(0x212)]+'\x20('+_0x59aaab['comm']+_0x9c7709(0x1f9)+_0x3236a8['comm']+_0x9c7709(0x208));_0x5115fd=_0x59aaab[_0x9c7709(0x20a)],_0x50d860++;continue;}return _0x59aaab[_0x9c7709(0x212)];}if(_0x59aaab[_0x9c7709(0x20a)]===0x0||_0x59aaab[_0x9c7709(0x20a)]===0x1){if(isShell(_0x59aaab[_0x9c7709(0x1fb)]))return _0x59aaab['pid'];break;}_0x5115fd=_0x59aaab[_0x9c7709(0x20a)],_0x50d860++;}return process[_0x9c7709(0x20e)]['DEBUG']&&console[_0x9c7709(0x1fc)](_0x9c7709(0x20f)),process[_0x9c7709(0x20a)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4487fc){try{return process['kill'](_0x4487fc,0x0),!![];}catch{return![];}}
1
+ const a80_0x363b86=a80_0x3f39;function a80_0x3f39(_0x5b797c,_0x5eb911){const _0xd16e78=a80_0xd16e();return a80_0x3f39=function(_0x3f390b,_0x5a5481){_0x3f390b=_0x3f390b-0xf6;let _0x3abfd5=_0xd16e78[_0x3f390b];return _0x3abfd5;},a80_0x3f39(_0x5b797c,_0x5eb911);}(function(_0x3468b0,_0x78187a){const _0xa090e7=a80_0x3f39,_0x3d3428=_0x3468b0();while(!![]){try{const _0x1f88d2=parseInt(_0xa090e7(0xfa))/0x1+-parseInt(_0xa090e7(0xf9))/0x2*(-parseInt(_0xa090e7(0x11d))/0x3)+parseInt(_0xa090e7(0x114))/0x4+-parseInt(_0xa090e7(0x11c))/0x5*(-parseInt(_0xa090e7(0x11f))/0x6)+parseInt(_0xa090e7(0xfd))/0x7+parseInt(_0xa090e7(0x10a))/0x8*(parseInt(_0xa090e7(0x112))/0x9)+-parseInt(_0xa090e7(0x10e))/0xa;if(_0x1f88d2===_0x78187a)break;else _0x3d3428['push'](_0x3d3428['shift']());}catch(_0x2db0a2){_0x3d3428['push'](_0x3d3428['shift']());}}}(a80_0xd16e,0xd99a5));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a80_0x363b86(0x119),a80_0x363b86(0x111),'sh','fish','ksh',a80_0x363b86(0x122),a80_0x363b86(0xfb),a80_0x363b86(0x105),a80_0x363b86(0x113),a80_0x363b86(0xfc),'nu','ion','elvish',a80_0x363b86(0x11a)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a80_0x363b86(0x110),a80_0x363b86(0x11e),a80_0x363b86(0xf7)]);function a80_0xd16e(){const _0x565634=['trim','env','replace','join','\x20get\x20ParentProcessId,Name\x20/format:csv','dash','toLowerCase','has','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','wmic\x20process\x20where\x20ProcessId=','3843752uJBmkk','utf-8','\x20on\x20Windows:','error','33011070hrhFoq','ppid','claude','zsh','9iQxVqP','pwsh','3287332GZFdkt','win32','split','platform','DEBUG','bash','xonsh','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','3405305FweVAA','3hOjSXG','code','6WHQaij','length','comm','tcsh','\x20on\x20POSIX:','cursor','pid','339956wLECds','310171sBsPdR','csh','powershell','12102272zaOflW','filter',',\x20continuing\x20up'];a80_0xd16e=function(){return _0x565634;};return a80_0xd16e();}function getProcessInfoWindows(_0x13b77f){const _0x45835b=a80_0x363b86;try{const _0x36d5d1=execSync(_0x45835b(0x109)+_0x13b77f+_0x45835b(0x104),{'encoding':_0x45835b(0x10b),'windowsHide':!![]})[_0x45835b(0x100)](),_0x42af91=_0x36d5d1[_0x45835b(0x116)]('\x0a')[_0x45835b(0xfe)](_0x3505e9=>_0x3505e9[_0x45835b(0x100)]());if(_0x42af91[_0x45835b(0x120)]<0x2)return null;const _0x2056fe=_0x42af91[_0x42af91['length']-0x1][_0x45835b(0x116)](',');if(_0x2056fe[_0x45835b(0x120)]<0x3)return null;const _0x32bf16=_0x2056fe[0x1]?.[_0x45835b(0x100)]()||'',_0xab19a1=parseInt(_0x2056fe[0x2]?.[_0x45835b(0x100)]()||'0',0xa);if(isNaN(_0xab19a1)||!_0x32bf16)return null;return{'pid':_0x13b77f,'ppid':_0xab19a1,'comm':_0x32bf16[_0x45835b(0x102)](/\.exe$/i,'')};}catch(_0x15f70f){return process[_0x45835b(0x101)]['DEBUG']&&console['error'](_0x45835b(0x108)+_0x13b77f+_0x45835b(0x10c),_0x15f70f),null;}}function getProcessInfoPosix(_0x8ed8d9){const _0x2d1c9a=a80_0x363b86;try{const _0x39d581=execSync('ps\x20-p\x20'+_0x8ed8d9+'\x20-o\x20ppid=,comm=',{'encoding':_0x2d1c9a(0x10b)})[_0x2d1c9a(0x100)](),[_0x27cac5,..._0x2e860d]=_0x39d581[_0x2d1c9a(0x116)](/\s+/),_0x59f93f=parseInt(_0x27cac5,0xa),_0x56db4e=_0x2e860d[_0x2d1c9a(0x103)]('\x20');if(isNaN(_0x59f93f))return null;return{'pid':_0x8ed8d9,'ppid':_0x59f93f,'comm':_0x56db4e};}catch(_0x2d0184){return process[_0x2d1c9a(0x101)][_0x2d1c9a(0x118)]&&console[_0x2d1c9a(0x10d)](_0x2d1c9a(0x108)+_0x8ed8d9+_0x2d1c9a(0xf6),_0x2d0184),null;}}function getProcessInfo(_0x48a1ab){const _0x585c74=a80_0x363b86;if(process[_0x585c74(0x117)]===_0x585c74(0x115))return getProcessInfoWindows(_0x48a1ab);return getProcessInfoPosix(_0x48a1ab);}function getBasename(_0xb5f706){const _0x14afb1=a80_0x363b86;return _0xb5f706[_0x14afb1(0x102)](/^-/,'')[_0x14afb1(0x116)]('/')['pop']()?.[_0x14afb1(0x106)]()||'';}function isShell(_0x247b3e){return SHELL_NAMES['has'](getBasename(_0x247b3e));}function isEphemeralShellSpawner(_0x1043fd){const _0x507d44=a80_0x363b86;return EPHEMERAL_SHELL_SPAWNERS[_0x507d44(0x107)](getBasename(_0x1043fd));}let cachedShellPID;function findShellPID(){const _0x3f4183=a80_0x363b86;let _0x3b8533=process['ppid'];const _0x241d0b=0xa;let _0x2a1bc0=0x0;while(_0x2a1bc0<_0x241d0b){const _0x1a193a=getProcessInfo(_0x3b8533);if(!_0x1a193a){process[_0x3f4183(0x101)][_0x3f4183(0x118)]&&console[_0x3f4183(0x10d)](_0x3f4183(0x11b)+_0x3b8533+',\x20using\x20fallback');break;}if(isShell(_0x1a193a[_0x3f4183(0x121)])){const _0x4debbf=getProcessInfo(_0x1a193a['ppid']);if(_0x4debbf&&isEphemeralShellSpawner(_0x4debbf[_0x3f4183(0x121)])){process[_0x3f4183(0x101)][_0x3f4183(0x118)]&&console['error']('Found\x20ephemeral\x20shell\x20'+_0x1a193a[_0x3f4183(0xf8)]+'\x20('+_0x1a193a['comm']+')\x20spawned\x20by\x20'+_0x4debbf[_0x3f4183(0x121)]+_0x3f4183(0xff));_0x3b8533=_0x1a193a[_0x3f4183(0x10f)],_0x2a1bc0++;continue;}return _0x1a193a[_0x3f4183(0xf8)];}if(_0x1a193a[_0x3f4183(0x10f)]===0x0||_0x1a193a['ppid']===0x1){if(isShell(_0x1a193a[_0x3f4183(0x121)]))return _0x1a193a[_0x3f4183(0xf8)];break;}_0x3b8533=_0x1a193a[_0x3f4183(0x10f)],_0x2a1bc0++;}return process[_0x3f4183(0x101)]['DEBUG']&&console[_0x3f4183(0x10d)]('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(_0x499762){try{return process['kill'](_0x499762,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x5ea140,_0x5d8b01){const _0x3b9e14=a77_0x1dc5,_0x9df374=_0x5ea140();while(!![]){try{const _0x1e8c7d=parseInt(_0x3b9e14(0x8a))/0x1+parseInt(_0x3b9e14(0x83))/0x2*(parseInt(_0x3b9e14(0x88))/0x3)+-parseInt(_0x3b9e14(0x8b))/0x4*(-parseInt(_0x3b9e14(0x7d))/0x5)+-parseInt(_0x3b9e14(0x7f))/0x6+-parseInt(_0x3b9e14(0x86))/0x7*(-parseInt(_0x3b9e14(0x87))/0x8)+-parseInt(_0x3b9e14(0x85))/0x9+-parseInt(_0x3b9e14(0x81))/0xa;if(_0x1e8c7d===_0x5d8b01)break;else _0x9df374['push'](_0x9df374['shift']());}catch(_0x45a357){_0x9df374['push'](_0x9df374['shift']());}}}(a77_0x4b6d,0xafd5d));function a77_0x4b6d(){const _0x6f8ff9=['toLowerCase','stdin','240lAIoIQ','question','4187736JvQaRi','stdout','9561610xlkizw','createInterface','7726RjvEwF','\x20(y/N):\x20','558279iEmayt','14ctQmsf','567096qqiRcY','783NElcBJ','close','163248EoEMer','93592hRQYQb','yes'];a77_0x4b6d=function(){return _0x6f8ff9;};return a77_0x4b6d();}import*as a77_0x52cfce from'readline';function a77_0x1dc5(_0x4a083e,_0xd136e1){const _0x4b6d06=a77_0x4b6d();return a77_0x1dc5=function(_0x1dc5d8,_0x297356){_0x1dc5d8=_0x1dc5d8-0x7b;let _0x1ded66=_0x4b6d06[_0x1dc5d8];return _0x1ded66;},a77_0x1dc5(_0x4a083e,_0xd136e1);}export async function confirm(_0x503d06){const _0x5ca113=a77_0x1dc5,_0x26201f=a77_0x52cfce[_0x5ca113(0x82)]({'input':process[_0x5ca113(0x7c)],'output':process[_0x5ca113(0x80)]});return new Promise(_0x38930d=>{const _0x1dc52d=_0x5ca113;_0x26201f[_0x1dc52d(0x7e)](_0x503d06+_0x1dc52d(0x84),_0x7e45ec=>{const _0x27c1db=_0x1dc52d;_0x26201f[_0x27c1db(0x89)](),_0x38930d(_0x7e45ec[_0x27c1db(0x7b)]()==='y'||_0x7e45ec[_0x27c1db(0x7b)]()===_0x27c1db(0x8c));});});}
1
+ (function(_0x216bba,_0x29e2ec){const _0x41dbee=a81_0x5768,_0x4c23d6=_0x216bba();while(!![]){try{const _0xc7e7a5=parseInt(_0x41dbee(0x151))/0x1+parseInt(_0x41dbee(0x153))/0x2*(-parseInt(_0x41dbee(0x14c))/0x3)+-parseInt(_0x41dbee(0x14a))/0x4*(parseInt(_0x41dbee(0x14b))/0x5)+parseInt(_0x41dbee(0x14d))/0x6*(parseInt(_0x41dbee(0x147))/0x7)+-parseInt(_0x41dbee(0x156))/0x8*(-parseInt(_0x41dbee(0x14f))/0x9)+-parseInt(_0x41dbee(0x150))/0xa+-parseInt(_0x41dbee(0x146))/0xb*(-parseInt(_0x41dbee(0x155))/0xc);if(_0xc7e7a5===_0x29e2ec)break;else _0x4c23d6['push'](_0x4c23d6['shift']());}catch(_0x18002a){_0x4c23d6['push'](_0x4c23d6['shift']());}}}(a81_0x2e3d,0xb5f93));function a81_0x5768(_0x4e177c,_0x2c4e67){const _0x2e3d31=a81_0x2e3d();return a81_0x5768=function(_0x5768ac,_0x2919ad){_0x5768ac=_0x5768ac-0x146;let _0x989834=_0x2e3d31[_0x5768ac];return _0x989834;},a81_0x5768(_0x4e177c,_0x2c4e67);}import*as a81_0x106c5f from'readline';function a81_0x2e3d(){const _0x231922=['14347200CNScnv','1062431dImtPY','close','23614ajjMvf','question','4068FmTCzY','56YRradr','9977kVAPYr','301vXPIJv','stdin','\x20(y/N):\x20','68GEnZiC','12855doXVED','6zOudmu','80982dkdvAg','toLowerCase','382023YXtjll'];a81_0x2e3d=function(){return _0x231922;};return a81_0x2e3d();}export async function confirm(_0x5e9bc3){const _0x3cd713=a81_0x5768,_0xcaf405=a81_0x106c5f['createInterface']({'input':process[_0x3cd713(0x148)],'output':process['stdout']});return new Promise(_0x4310ff=>{const _0xd9da87=_0x3cd713;_0xcaf405[_0xd9da87(0x154)](_0x5e9bc3+_0xd9da87(0x149),_0x44e035=>{const _0x197523=_0xd9da87;_0xcaf405[_0x197523(0x152)](),_0x4310ff(_0x44e035[_0x197523(0x14e)]()==='y'||_0x44e035[_0x197523(0x14e)]()==='yes');});});}
@@ -1 +1 @@
1
- (function(_0x1b4ef4,_0x2b296b){const _0x441a08=a78_0x3714,_0x269c47=_0x1b4ef4();while(!![]){try{const _0x544e00=parseInt(_0x441a08(0xbc))/0x1*(parseInt(_0x441a08(0xca))/0x2)+-parseInt(_0x441a08(0xc6))/0x3*(parseInt(_0x441a08(0xce))/0x4)+-parseInt(_0x441a08(0xc9))/0x5*(-parseInt(_0x441a08(0xc2))/0x6)+-parseInt(_0x441a08(0xc4))/0x7+-parseInt(_0x441a08(0xb6))/0x8*(-parseInt(_0x441a08(0xbb))/0x9)+parseInt(_0x441a08(0xcf))/0xa*(parseInt(_0x441a08(0xbf))/0xb)+-parseInt(_0x441a08(0xcc))/0xc;if(_0x544e00===_0x2b296b)break;else _0x269c47['push'](_0x269c47['shift']());}catch(_0x37748a){_0x269c47['push'](_0x269c47['shift']());}}}(a78_0x3494,0xb40a8));export function parsePath(_0x11c8be){const _0x592802=a78_0x3714;if(!_0x11c8be||_0x11c8be['trim']()==='')throw new Error(_0x592802(0xc0));const _0x2b0e37=_0x11c8be[_0x592802(0xc5)]();if(_0x2b0e37==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x11c8be};const _0x4b26fc=_0x2b0e37[_0x592802(0xd1)]('/')?_0x2b0e37[_0x592802(0xc7)](0x1):_0x2b0e37,_0x5a0dd4=_0x4b26fc['split']('/')[_0x592802(0xcd)](_0x2cc00f=>_0x2cc00f!=='');if(_0x5a0dd4[_0x592802(0xb7)]===0x0)throw new Error(_0x592802(0xd3));const _0xcd58a9=_0x2b0e37[_0x592802(0xd1)]('/')||!isRelativePathSegment(_0x5a0dd4[0x0]);for(const _0x52b999 of _0x5a0dd4){validatePathSegment(_0x52b999);}return{'segments':_0x5a0dd4,'isAbsolute':_0xcd58a9,'raw':_0x11c8be};}function isRelativePathSegment(_0x26d058){return _0x26d058==='.'||_0x26d058==='..';}function validatePathSegment(_0x5b63fa){const _0x4d9695=a78_0x3714;if(_0x5b63fa==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x5b63fa==='.'||_0x5b63fa==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x5b63fa))throw new Error(_0x4d9695(0xbd)+_0x5b63fa);if(_0x5b63fa!==_0x5b63fa['trim']()){}}export function validatePath(_0x239d04){const _0x186dd3=a78_0x3714;if(_0x239d04[_0x186dd3(0xb9)][_0x186dd3(0xb7)]===0x0&&!_0x239d04['isAbsolute'])throw new Error(_0x186dd3(0xb8));if(_0x239d04[_0x186dd3(0xd0)]){if(_0x239d04[_0x186dd3(0xb9)][0x0]==='..')throw new Error(_0x186dd3(0xcb));let _0x5fb85b=0x0;for(const _0x128edc of _0x239d04[_0x186dd3(0xb9)]){if(_0x128edc==='..'){if(_0x5fb85b===0x0)throw new Error(_0x186dd3(0xc3));_0x5fb85b--;}else _0x128edc!=='.'&&_0x5fb85b++;}}}export function joinPaths(_0x13f2f3,_0x17af06){const _0x24b192=a78_0x3714;if(!_0x13f2f3||_0x13f2f3==='/')return _0x17af06;if(!_0x17af06||_0x17af06==='.')return _0x13f2f3;if(_0x17af06[_0x24b192(0xd1)]('/'))return _0x17af06;const _0xf8724a=parsePath(_0x13f2f3),_0x38a5a8=parsePath(_0x17af06),_0x134bf8=[..._0xf8724a[_0x24b192(0xb9)]];for(const _0xa279be of _0x38a5a8['segments']){if(_0xa279be==='.')continue;else{if(_0xa279be==='..'){if(_0x134bf8[_0x24b192(0xb7)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x134bf8[_0x24b192(0xc8)]();}else _0x134bf8[_0x24b192(0xd2)](_0xa279be);}}const _0x34aa6e=_0x134bf8[_0x24b192(0xbe)]('/');return _0xf8724a['raw'][_0x24b192(0xd1)]('/')?'/'+_0x34aa6e:_0x34aa6e;}function a78_0x3714(_0x146b96,_0x4de482){const _0x3494c0=a78_0x3494();return a78_0x3714=function(_0x3714d2,_0x27cb4c){_0x3714d2=_0x3714d2-0xb6;let _0xb82b68=_0x3494c0[_0x3714d2];return _0xb82b68;},a78_0x3714(_0x146b96,_0x4de482);}export function normalizePath(_0x4c8fe2){const _0x3554dc=a78_0x3714,_0x51e6b4=parsePath(_0x4c8fe2),_0x39937c=[];for(const _0x2b4ff7 of _0x51e6b4[_0x3554dc(0xb9)]){if(_0x2b4ff7==='.')continue;else{if(_0x2b4ff7==='..'){if(_0x39937c[_0x3554dc(0xb7)]===0x0){if(_0x51e6b4[_0x3554dc(0xd0)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x39937c[_0x3554dc(0xd2)]('..');}else _0x39937c[_0x39937c[_0x3554dc(0xb7)]-0x1]==='..'?_0x39937c[_0x3554dc(0xd2)]('..'):_0x39937c[_0x3554dc(0xc8)]();}else _0x39937c[_0x3554dc(0xd2)](_0x2b4ff7);}}if(_0x39937c['length']===0x0)return _0x51e6b4[_0x3554dc(0xd0)]?'/':'.';const _0x472ba5=_0x39937c[_0x3554dc(0xbe)]('/');return _0x51e6b4[_0x3554dc(0xba)][_0x3554dc(0xd1)]('/')?'/'+_0x472ba5:_0x472ba5;}export function getParentPath(_0x155636){const _0x5c8797=a78_0x3714,_0x1cfd48=parsePath(_0x155636);if(_0x1cfd48[_0x5c8797(0xb9)][_0x5c8797(0xb7)]<=0x1)return'/';const _0x3f4dfa=_0x1cfd48[_0x5c8797(0xb9)][_0x5c8797(0xc1)](0x0,-0x1)[_0x5c8797(0xbe)]('/');return _0x1cfd48[_0x5c8797(0xba)][_0x5c8797(0xd1)]('/')?'/'+_0x3f4dfa:_0x3f4dfa;}export function getBaseName(_0x4a6728){const _0x1ce1b1=a78_0x3714,_0x561eb5=parsePath(_0x4a6728);return _0x561eb5['segments'][_0x561eb5[_0x1ce1b1(0xb9)][_0x1ce1b1(0xb7)]-0x1]||'';}export function isChildPath(_0x328ac3,_0x326992){const _0x442979=a78_0x3714,_0x272ca7=parsePath(_0x328ac3),_0x42b63b=parsePath(_0x326992);if(_0x272ca7[_0x442979(0xb9)][_0x442979(0xb7)]<=_0x42b63b[_0x442979(0xb9)][_0x442979(0xb7)])return![];for(let _0x2227a8=0x0;_0x2227a8<_0x42b63b['segments']['length'];_0x2227a8++){if(_0x272ca7[_0x442979(0xb9)][_0x2227a8]!==_0x42b63b[_0x442979(0xb9)][_0x2227a8])return![];}return!![];}export function splitPath(_0x121f55){const _0x5c3b40=a78_0x3714,_0x1dab55=parsePath(_0x121f55);if(_0x1dab55['segments']['length']===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x1dab55[_0x5c3b40(0xb9)][_0x5c3b40(0xb7)]===0x1)return{'parent':_0x1dab55['segments'][0x0]};return{'parent':_0x1dab55['segments'][0x0],'child':_0x1dab55[_0x5c3b40(0xb9)][_0x5c3b40(0xc1)](0x1)[_0x5c3b40(0xbe)]('/')};}function a78_0x3494(){const _0x1a2803=['182439UUCVAV','7273XBGrNl','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','join','55jZnGhr','Path\x20cannot\x20be\x20empty','slice','6lhClZz','Path\x20attempts\x20to\x20navigate\x20above\x20root','3778362ypzpRQ','trim','2140491ykgVNa','substring','pop','7278935MPXFDW','50hKpLTu','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','25563888gwWUFd','filter','4CrqAlK','2209990EcXAzb','isAbsolute','startsWith','push','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','544gPEasY','length','Relative\x20path\x20cannot\x20be\x20empty','segments','raw'];a78_0x3494=function(){return _0x1a2803;};return a78_0x3494();}
1
+ function a82_0x29f0(){const _0x47546a=['Cannot\x20navigate\x20above\x20root','Path\x20cannot\x20be\x20empty','filter','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','slice','Path\x20attempts\x20to\x20navigate\x20above\x20root','trim','segments','Path\x20segment\x20cannot\x20be\x20empty','255290VYposT','push','split','join','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','7340uIEYaT','1068371LNpOUu','Cannot\x20split\x20empty\x20path','raw','12897696QlXmEY','525rsRsxD','pop','2977010OjpmWa','test','substring','startsWith','isAbsolute','6838765ynwcaB','2592168FwrVFe','length'];a82_0x29f0=function(){return _0x47546a;};return a82_0x29f0();}(function(_0x117389,_0x5eed11){const _0x5c7ebc=a82_0x2a52,_0x2fe972=_0x117389();while(!![]){try{const _0xb0d57e=-parseInt(_0x5c7ebc(0xc0))/0x1+parseInt(_0x5c7ebc(0xc6))/0x2+-parseInt(_0x5c7ebc(0xc4))/0x3*(-parseInt(_0x5c7ebc(0xbf))/0x4)+parseInt(_0x5c7ebc(0xcb))/0x5+parseInt(_0x5c7ebc(0xaf))/0x6+-parseInt(_0x5c7ebc(0xba))/0x7+-parseInt(_0x5c7ebc(0xc3))/0x8;if(_0xb0d57e===_0x5eed11)break;else _0x2fe972['push'](_0x2fe972['shift']());}catch(_0x42a9d1){_0x2fe972['push'](_0x2fe972['shift']());}}}(a82_0x29f0,0xd9dc6));export function parsePath(_0x2766ec){const _0x5d1e53=a82_0x2a52;if(!_0x2766ec||_0x2766ec['trim']()==='')throw new Error(_0x5d1e53(0xb2));const _0x59814d=_0x2766ec['trim']();if(_0x59814d==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x2766ec};const _0xd5a121=_0x59814d[_0x5d1e53(0xc9)]('/')?_0x59814d[_0x5d1e53(0xc8)](0x1):_0x59814d,_0x12d6fb=_0xd5a121[_0x5d1e53(0xbc)]('/')[_0x5d1e53(0xb3)](_0x225292=>_0x225292!=='');if(_0x12d6fb[_0x5d1e53(0xb0)]===0x0)throw new Error(_0x5d1e53(0xbe));const _0x43c8a7=_0x59814d[_0x5d1e53(0xc9)]('/')||!isRelativePathSegment(_0x12d6fb[0x0]);for(const _0x378502 of _0x12d6fb){validatePathSegment(_0x378502);}return{'segments':_0x12d6fb,'isAbsolute':_0x43c8a7,'raw':_0x2766ec};}function isRelativePathSegment(_0x30c1b1){return _0x30c1b1==='.'||_0x30c1b1==='..';}function validatePathSegment(_0x2fd725){const _0x38b7d3=a82_0x2a52;if(_0x2fd725==='')throw new Error(_0x38b7d3(0xb9));if(_0x2fd725==='.'||_0x2fd725==='..')return;if(/[\x00-\x1F\x7F]/[_0x38b7d3(0xc7)](_0x2fd725))throw new Error(_0x38b7d3(0xb4)+_0x2fd725);if(_0x2fd725!==_0x2fd725[_0x38b7d3(0xb7)]()){}}export function validatePath(_0x31f673){const _0x568ec1=a82_0x2a52;if(_0x31f673['segments'][_0x568ec1(0xb0)]===0x0&&!_0x31f673[_0x568ec1(0xca)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x31f673['isAbsolute']){if(_0x31f673[_0x568ec1(0xb8)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x597e54=0x0;for(const _0x3e7e85 of _0x31f673[_0x568ec1(0xb8)]){if(_0x3e7e85==='..'){if(_0x597e54===0x0)throw new Error(_0x568ec1(0xb6));_0x597e54--;}else _0x3e7e85!=='.'&&_0x597e54++;}}}export function joinPaths(_0x379375,_0x288497){const _0x1bc10a=a82_0x2a52;if(!_0x379375||_0x379375==='/')return _0x288497;if(!_0x288497||_0x288497==='.')return _0x379375;if(_0x288497[_0x1bc10a(0xc9)]('/'))return _0x288497;const _0x5a0f5e=parsePath(_0x379375),_0x120447=parsePath(_0x288497),_0x27c64c=[..._0x5a0f5e[_0x1bc10a(0xb8)]];for(const _0x2ce41f of _0x120447[_0x1bc10a(0xb8)]){if(_0x2ce41f==='.')continue;else{if(_0x2ce41f==='..'){if(_0x27c64c[_0x1bc10a(0xb0)]===0x0)throw new Error(_0x1bc10a(0xb1));_0x27c64c[_0x1bc10a(0xc5)]();}else _0x27c64c[_0x1bc10a(0xbb)](_0x2ce41f);}}const _0xdd457=_0x27c64c['join']('/');return _0x5a0f5e[_0x1bc10a(0xc2)][_0x1bc10a(0xc9)]('/')?'/'+_0xdd457:_0xdd457;}export function normalizePath(_0x207a28){const _0x225cae=a82_0x2a52,_0x702a9b=parsePath(_0x207a28),_0x264fc1=[];for(const _0x27b0f0 of _0x702a9b['segments']){if(_0x27b0f0==='.')continue;else{if(_0x27b0f0==='..'){if(_0x264fc1[_0x225cae(0xb0)]===0x0){if(_0x702a9b['isAbsolute'])throw new Error(_0x225cae(0xb1));_0x264fc1[_0x225cae(0xbb)]('..');}else _0x264fc1[_0x264fc1[_0x225cae(0xb0)]-0x1]==='..'?_0x264fc1[_0x225cae(0xbb)]('..'):_0x264fc1[_0x225cae(0xc5)]();}else _0x264fc1[_0x225cae(0xbb)](_0x27b0f0);}}if(_0x264fc1[_0x225cae(0xb0)]===0x0)return _0x702a9b[_0x225cae(0xca)]?'/':'.';const _0x40a7b3=_0x264fc1[_0x225cae(0xbd)]('/');return _0x702a9b[_0x225cae(0xc2)][_0x225cae(0xc9)]('/')?'/'+_0x40a7b3:_0x40a7b3;}function a82_0x2a52(_0x243b86,_0x8b9c8){const _0x29f06a=a82_0x29f0();return a82_0x2a52=function(_0x2a521d,_0x265ac6){_0x2a521d=_0x2a521d-0xaf;let _0x5589e2=_0x29f06a[_0x2a521d];return _0x5589e2;},a82_0x2a52(_0x243b86,_0x8b9c8);}export function getParentPath(_0xab95d2){const _0x1ea7d6=a82_0x2a52,_0x365f20=parsePath(_0xab95d2);if(_0x365f20[_0x1ea7d6(0xb8)][_0x1ea7d6(0xb0)]<=0x1)return'/';const _0x5edd76=_0x365f20[_0x1ea7d6(0xb8)][_0x1ea7d6(0xb5)](0x0,-0x1)[_0x1ea7d6(0xbd)]('/');return _0x365f20[_0x1ea7d6(0xc2)]['startsWith']('/')?'/'+_0x5edd76:_0x5edd76;}export function getBaseName(_0x481817){const _0x3de6af=a82_0x2a52,_0x19c027=parsePath(_0x481817);return _0x19c027['segments'][_0x19c027[_0x3de6af(0xb8)][_0x3de6af(0xb0)]-0x1]||'';}export function isChildPath(_0x583e19,_0x2953a5){const _0x1705ae=a82_0x2a52,_0x425c53=parsePath(_0x583e19),_0x1545ef=parsePath(_0x2953a5);if(_0x425c53[_0x1705ae(0xb8)][_0x1705ae(0xb0)]<=_0x1545ef[_0x1705ae(0xb8)]['length'])return![];for(let _0x468fdc=0x0;_0x468fdc<_0x1545ef[_0x1705ae(0xb8)]['length'];_0x468fdc++){if(_0x425c53[_0x1705ae(0xb8)][_0x468fdc]!==_0x1545ef[_0x1705ae(0xb8)][_0x468fdc])return![];}return!![];}export function splitPath(_0x252b8d){const _0x200191=a82_0x2a52,_0x4751c7=parsePath(_0x252b8d);if(_0x4751c7[_0x200191(0xb8)][_0x200191(0xb0)]===0x0)throw new Error(_0x200191(0xc1));if(_0x4751c7[_0x200191(0xb8)]['length']===0x1)return{'parent':_0x4751c7[_0x200191(0xb8)][0x0]};return{'parent':_0x4751c7[_0x200191(0xb8)][0x0],'child':_0x4751c7[_0x200191(0xb8)][_0x200191(0xb5)](0x1)[_0x200191(0xbd)]('/')};}
@@ -1 +1 @@
1
- (function(_0x5c130d,_0x4196a9){const _0x26eb0b=a79_0x5d9f,_0x428ad1=_0x5c130d();while(!![]){try{const _0x2d1de1=-parseInt(_0x26eb0b(0x1d3))/0x1*(parseInt(_0x26eb0b(0x1ce))/0x2)+-parseInt(_0x26eb0b(0x1c7))/0x3*(-parseInt(_0x26eb0b(0x1cf))/0x4)+parseInt(_0x26eb0b(0x1cb))/0x5+-parseInt(_0x26eb0b(0x1cd))/0x6+-parseInt(_0x26eb0b(0x1d2))/0x7+-parseInt(_0x26eb0b(0x1cc))/0x8*(-parseInt(_0x26eb0b(0x1d1))/0x9)+parseInt(_0x26eb0b(0x1c5))/0xa;if(_0x2d1de1===_0x4196a9)break;else _0x428ad1['push'](_0x428ad1['shift']());}catch(_0x58301f){_0x428ad1['push'](_0x428ad1['shift']());}}}(a79_0x55c7,0xf0223));function a79_0x5d9f(_0x4d5405,_0x5e05bf){const _0x55c7ce=a79_0x55c7();return a79_0x5d9f=function(_0x5d9f98,_0xedce44){_0x5d9f98=_0x5d9f98-0x1c5;let _0x19758f=_0x55c7ce[_0x5d9f98];return _0x19758f;},a79_0x5d9f(_0x4d5405,_0x5e05bf);}function a79_0x55c7(){const _0x3bbee0=['indexOf','.\x20Child\x20name\x20cannot\x20be\x20empty','substring','9600615NjMdKk','2872xvzJvX','6108264bkjyAR','20814vZereW','8Vuhhyq','Invalid\x20segment\x20reference\x20format:\x20','4806SVHjYz','9254063jtuGuo','127szqFub','15700280FtziAz','.\x20Parent\x20name\x20cannot\x20be\x20empty','1445208yblWzu'];a79_0x55c7=function(){return _0x3bbee0;};return a79_0x55c7();}export function parseSegmentRef(_0x5da5d8){const _0xeefb68=a79_0x5d9f,_0x149b8f=_0x5da5d8[_0xeefb68(0x1c8)]('/');if(_0x149b8f===-0x1)return{'parentId':_0x5da5d8};if(_0x149b8f===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x5da5d8+_0xeefb68(0x1c6));const _0x5a065d=_0x5da5d8[_0xeefb68(0x1ca)](0x0,_0x149b8f),_0x438d22=_0x5da5d8[_0xeefb68(0x1ca)](_0x149b8f+0x1);if(_0x438d22==='')throw new Error(_0xeefb68(0x1d0)+_0x5da5d8+_0xeefb68(0x1c9));return{'parentId':_0x5a065d,'childId':_0x438d22};}
1
+ function a83_0x1f10(_0x2b66cc,_0x4c0bf5){const _0x1c0455=a83_0x1c04();return a83_0x1f10=function(_0x1f1003,_0x5ff69){_0x1f1003=_0x1f1003-0x9c;let _0x5c76d8=_0x1c0455[_0x1f1003];return _0x5c76d8;},a83_0x1f10(_0x2b66cc,_0x4c0bf5);}function a83_0x1c04(){const _0xcfec1b=['75cHBdea','59128vNiqxs','Invalid\x20segment\x20reference\x20format:\x20','11KMjweH','14vvGwmD','8iqDTjV','402870TuJfUg','.\x20Parent\x20name\x20cannot\x20be\x20empty','178209rMCrrn','70anAbfy','substring','295839qSYnfU','36OdDHob','8087688xcnXTA','770jccVkl','307532BdZKWr','7039877tNYkNt'];a83_0x1c04=function(){return _0xcfec1b;};return a83_0x1c04();}(function(_0x2ca0a2,_0x1adf5f){const _0x54ed4a=a83_0x1f10,_0x123555=_0x2ca0a2();while(!![]){try{const _0x5c4872=parseInt(_0x54ed4a(0xa7))/0x1*(-parseInt(_0x54ed4a(0x9d))/0x2)+parseInt(_0x54ed4a(0xa3))/0x3*(parseInt(_0x54ed4a(0xa4))/0x4)+-parseInt(_0x54ed4a(0xa9))/0x5*(parseInt(_0x54ed4a(0x9e))/0x6)+parseInt(_0x54ed4a(0xa6))/0x7*(parseInt(_0x54ed4a(0xaa))/0x8)+-parseInt(_0x54ed4a(0xa0))/0x9*(-parseInt(_0x54ed4a(0xa1))/0xa)+-parseInt(_0x54ed4a(0xac))/0xb*(-parseInt(_0x54ed4a(0xa5))/0xc)+parseInt(_0x54ed4a(0xa8))/0xd*(parseInt(_0x54ed4a(0x9c))/0xe);if(_0x5c4872===_0x1adf5f)break;else _0x123555['push'](_0x123555['shift']());}catch(_0x518826){_0x123555['push'](_0x123555['shift']());}}}(a83_0x1c04,0xc78b6));export function parseSegmentRef(_0x4fbd1b){const _0x599e02=a83_0x1f10,_0x210927=_0x4fbd1b['indexOf']('/');if(_0x210927===-0x1)return{'parentId':_0x4fbd1b};if(_0x210927===0x0)throw new Error(_0x599e02(0xab)+_0x4fbd1b+_0x599e02(0x9f));const _0x57c8c0=_0x4fbd1b[_0x599e02(0xa2)](0x0,_0x210927),_0x28ed64=_0x4fbd1b[_0x599e02(0xa2)](_0x210927+0x1);if(_0x28ed64==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x4fbd1b+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x57c8c0,'childId':_0x28ed64};}
@@ -1 +1 @@
1
- function a80_0x21bd(_0x41a4bb,_0x106bc8){const _0x3841b4=a80_0x3841();return a80_0x21bd=function(_0x21bd80,_0x52976d){_0x21bd80=_0x21bd80-0x1de;let _0x3eef1e=_0x3841b4[_0x21bd80];return _0x3eef1e;},a80_0x21bd(_0x41a4bb,_0x106bc8);}(function(_0x293437,_0x5df41e){const _0x1f4a99=a80_0x21bd,_0x487cee=_0x293437();while(!![]){try{const _0x1376dd=parseInt(_0x1f4a99(0x1f7))/0x1+parseInt(_0x1f4a99(0x1f3))/0x2+-parseInt(_0x1f4a99(0x1df))/0x3*(parseInt(_0x1f4a99(0x1ed))/0x4)+-parseInt(_0x1f4a99(0x1ec))/0x5*(-parseInt(_0x1f4a99(0x1e9))/0x6)+parseInt(_0x1f4a99(0x1e3))/0x7*(-parseInt(_0x1f4a99(0x1ee))/0x8)+parseInt(_0x1f4a99(0x1de))/0x9*(parseInt(_0x1f4a99(0x1f8))/0xa)+-parseInt(_0x1f4a99(0x1e0))/0xb;if(_0x1376dd===_0x5df41e)break;else _0x487cee['push'](_0x487cee['shift']());}catch(_0x3cea03){_0x487cee['push'](_0x487cee['shift']());}}}(a80_0x3841,0x2674f));function a80_0x3841(){const _0x267fe6=['27loSKjZ','1487805yPDtww','isTTY','jobId','220339vMotOa','stop','toFixed','start','text','stdout','1236kEQDWp','\x20[Job\x20ID:\x20','cyan','1465rerBAQ','91108aMqJfj','8QuYqsM','intervalFactory','replace','clock','floor','329748qbUdCw','isSpinning','phase','now','78792fyHvIz','2252200ONrThw','extra','...','9vEqKkQ'];a80_0x3841=function(){return _0x267fe6;};return a80_0x3841();}import a80_0x2a76d6 from'ora';export function createCommandSpinner(_0x2b208e,_0x19b097={}){const _0x155507=a80_0x21bd,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x19b097;return a80_0x2a76d6({'text':_0x2b208e,'color':_0x155507(0x1eb),'isEnabled':forceEnabled||process[_0x155507(0x1e8)][_0x155507(0x1e1)]&&!verbose});}export async function withSpinner(_0x2c4e32,_0x1f8002,_0x4ada12={}){const _0x567815=a80_0x21bd,_0x11fdbc=_0x4ada12['clock']??(()=>Date[_0x567815(0x1f6)]()),_0x16df55=createCommandSpinner(_0x2c4e32,_0x4ada12);_0x16df55[_0x567815(0x1e6)]();const _0x5f4e72=_0x11fdbc();try{const _0xebac31=await _0x1f8002(),_0x1c071c=_0x11fdbc()-_0x5f4e72;return _0x16df55['stop'](),{'data':_0xebac31,'elapsedMs':_0x1c071c};}catch(_0x2200cd){_0x16df55[_0x567815(0x1e4)]();throw _0x2200cd;}}export async function withQuerySpinner(_0xf3fe75,_0x416a98,_0x3b4c4a={}){const _0x55bbb2=a80_0x21bd,_0x1ed10a=_0x3b4c4a[_0x55bbb2(0x1f1)]??(()=>Date[_0x55bbb2(0x1f6)]()),_0x3b76b6=_0x3b4c4a[_0x55bbb2(0x1ef)]??setInterval,_0x4c5334=createCommandSpinner(_0xf3fe75,_0x3b4c4a);_0x4c5334[_0x55bbb2(0x1e6)]();const _0x2f2e15=_0x1ed10a(),_0x3dc786=_0xf3fe75[_0x55bbb2(0x1f0)](_0x55bbb2(0x1fa),''),_0x47ac13={},_0x4fd5c3=()=>{const _0x5d477e=_0x55bbb2;if(!_0x4c5334[_0x5d477e(0x1f4)])return;const _0x30fd78=_0x1ed10a()-_0x2f2e15,_0x412a8a=formatElapsed(_0x30fd78),_0xf7a75a=_0x47ac13[_0x5d477e(0x1f5)]??_0x3dc786,_0x12e077=_0x47ac13['jobId']?_0x5d477e(0x1ea)+_0x47ac13[_0x5d477e(0x1e2)]+']':'',_0x4cd945=_0x47ac13[_0x5d477e(0x1f9)]?'\x20'+_0x47ac13['extra']:'';_0x4c5334[_0x5d477e(0x1e7)]=_0xf7a75a+'\x20'+_0x412a8a+_0x4cd945+_0x12e077;},_0x4fcfbf=_0x3b76b6(()=>{_0x4fd5c3();},0x3e8),_0x263db4={'setPhase':_0x162a26=>{const _0x285d12=_0x55bbb2;_0x47ac13[_0x285d12(0x1f5)]=_0x162a26,_0x4fd5c3();},'setJobId':_0x4c9da9=>{const _0x41787f=_0x55bbb2;_0x47ac13[_0x41787f(0x1e2)]=_0x4c9da9,_0x4fd5c3();},'setExtra':_0x37ecdd=>{const _0x58c6fa=_0x55bbb2;_0x47ac13[_0x58c6fa(0x1f9)]=_0x37ecdd,_0x4fd5c3();}};_0x4fd5c3();try{const _0x18d350=await _0x416a98(_0x263db4),_0xcfcb27=_0x1ed10a()-_0x2f2e15;return{'data':_0x18d350,'elapsedMs':_0xcfcb27};}finally{clearInterval(_0x4fcfbf),_0x4c5334[_0x55bbb2(0x1e4)]();}}export function formatElapsed(_0x30771a){const _0x1f3e57=a80_0x21bd,_0x21c4e9=Math[_0x1f3e57(0x1f2)](_0x30771a/0x3e8);if(_0x21c4e9<0x3c)return(_0x30771a/0x3e8)[_0x1f3e57(0x1e5)](0x1)+'s';const _0x48f991=Math['floor'](_0x21c4e9/0x3c),_0x19a1cb=_0x21c4e9%0x3c;if(_0x48f991<0x3c)return _0x48f991+'m\x20'+_0x19a1cb+'s';const _0x3ae56c=Math['floor'](_0x48f991/0x3c),_0x599f8a=_0x48f991%0x3c;return _0x3ae56c+'h\x20'+_0x599f8a+'m';}
1
+ function a84_0x2e5b(_0x334998,_0x474908){const _0x4c24d3=a84_0x4c24();return a84_0x2e5b=function(_0x2e5be0,_0x4032e9){_0x2e5be0=_0x2e5be0-0x114;let _0x5b7a30=_0x4c24d3[_0x2e5be0];return _0x5b7a30;},a84_0x2e5b(_0x334998,_0x474908);}(function(_0x53941f,_0xc1f5f9){const _0x3fbc5c=a84_0x2e5b,_0x5ad4b8=_0x53941f();while(!![]){try{const _0x314ffe=-parseInt(_0x3fbc5c(0x12b))/0x1+parseInt(_0x3fbc5c(0x117))/0x2*(-parseInt(_0x3fbc5c(0x11e))/0x3)+parseInt(_0x3fbc5c(0x11a))/0x4+-parseInt(_0x3fbc5c(0x11f))/0x5+-parseInt(_0x3fbc5c(0x11d))/0x6*(parseInt(_0x3fbc5c(0x114))/0x7)+-parseInt(_0x3fbc5c(0x120))/0x8+parseInt(_0x3fbc5c(0x12d))/0x9*(parseInt(_0x3fbc5c(0x124))/0xa);if(_0x314ffe===_0xc1f5f9)break;else _0x5ad4b8['push'](_0x5ad4b8['shift']());}catch(_0x2320f1){_0x5ad4b8['push'](_0x5ad4b8['shift']());}}}(a84_0x4c24,0x3da57));import a84_0xd4cde6 from'ora';export function createCommandSpinner(_0x4d0921,_0x3d68d7={}){const _0x3f864f=a84_0x2e5b,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3d68d7;return a84_0xd4cde6({'text':_0x4d0921,'color':'cyan','isEnabled':forceEnabled||process[_0x3f864f(0x128)][_0x3f864f(0x125)]&&!verbose});}function a84_0x4c24(){const _0x467589=['458345XlLrGl','toFixed','15659874TDTQpz','819119JGbEBe','intervalFactory','isSpinning','866rcBvTG','now','\x20[Job\x20ID:\x20','1771036thnmFI','phase','replace','18pveAxi','1581HOkISA','2173725xPOigC','3663280qECDyq','stop','floor','clock','10caQcnd','isTTY','...','extra','stdout','jobId','start'];a84_0x4c24=function(){return _0x467589;};return a84_0x4c24();}export async function withSpinner(_0x51c59c,_0x547d90,_0x3ac460={}){const _0x366e7d=a84_0x2e5b,_0x11650c=_0x3ac460[_0x366e7d(0x123)]??(()=>Date[_0x366e7d(0x118)]()),_0x5bc7b7=createCommandSpinner(_0x51c59c,_0x3ac460);_0x5bc7b7[_0x366e7d(0x12a)]();const _0x16ee0d=_0x11650c();try{const _0x1134d9=await _0x547d90(),_0x5e24fc=_0x11650c()-_0x16ee0d;return _0x5bc7b7[_0x366e7d(0x121)](),{'data':_0x1134d9,'elapsedMs':_0x5e24fc};}catch(_0xc437ce){_0x5bc7b7['stop']();throw _0xc437ce;}}export async function withQuerySpinner(_0x21a9f7,_0x346276,_0x2b9ccb={}){const _0x5f10f8=a84_0x2e5b,_0x5dccdd=_0x2b9ccb[_0x5f10f8(0x123)]??(()=>Date[_0x5f10f8(0x118)]()),_0x25e714=_0x2b9ccb[_0x5f10f8(0x115)]??setInterval,_0x53eef2=createCommandSpinner(_0x21a9f7,_0x2b9ccb);_0x53eef2['start']();const _0x1f125a=_0x5dccdd(),_0x51f564=_0x21a9f7[_0x5f10f8(0x11c)](_0x5f10f8(0x126),''),_0x24962b={},_0x950946=()=>{const _0x488d05=_0x5f10f8;if(!_0x53eef2[_0x488d05(0x116)])return;const _0x36d100=_0x5dccdd()-_0x1f125a,_0x3e5bab=formatElapsed(_0x36d100),_0x26eaed=_0x24962b[_0x488d05(0x11b)]??_0x51f564,_0x3a0f42=_0x24962b[_0x488d05(0x129)]?_0x488d05(0x119)+_0x24962b[_0x488d05(0x129)]+']':'',_0x5da927=_0x24962b[_0x488d05(0x127)]?'\x20'+_0x24962b['extra']:'';_0x53eef2['text']=_0x26eaed+'\x20'+_0x3e5bab+_0x5da927+_0x3a0f42;},_0x7c2cdf=_0x25e714(()=>{_0x950946();},0x3e8),_0x58b592={'setPhase':_0x18c514=>{const _0x395fac=_0x5f10f8;_0x24962b[_0x395fac(0x11b)]=_0x18c514,_0x950946();},'setJobId':_0x5fa162=>{const _0x5d3fb7=_0x5f10f8;_0x24962b[_0x5d3fb7(0x129)]=_0x5fa162,_0x950946();},'setExtra':_0x1e574f=>{const _0x467c45=_0x5f10f8;_0x24962b[_0x467c45(0x127)]=_0x1e574f,_0x950946();}};_0x950946();try{const _0x39f2b4=await _0x346276(_0x58b592),_0x59635e=_0x5dccdd()-_0x1f125a;return{'data':_0x39f2b4,'elapsedMs':_0x59635e};}finally{clearInterval(_0x7c2cdf),_0x53eef2[_0x5f10f8(0x121)]();}}export function formatElapsed(_0x2d5f40){const _0xc01cfc=a84_0x2e5b,_0x1e96c4=Math[_0xc01cfc(0x122)](_0x2d5f40/0x3e8);if(_0x1e96c4<0x3c)return(_0x2d5f40/0x3e8)[_0xc01cfc(0x12c)](0x1)+'s';const _0x272f05=Math['floor'](_0x1e96c4/0x3c),_0x199d3e=_0x1e96c4%0x3c;if(_0x272f05<0x3c)return _0x272f05+'m\x20'+_0x199d3e+'s';const _0x45716b=Math[_0xc01cfc(0x122)](_0x272f05/0x3c),_0x398ead=_0x272f05%0x3c;return _0x45716b+'h\x20'+_0x398ead+'m';}
@@ -1 +1 @@
1
- (function(_0xb4fa79,_0x26255f){const _0x3ef57f=a81_0x57b8,_0x1febf8=_0xb4fa79();while(!![]){try{const _0x4e3a9d=parseInt(_0x3ef57f(0xb9))/0x1*(-parseInt(_0x3ef57f(0xc1))/0x2)+parseInt(_0x3ef57f(0xce))/0x3+-parseInt(_0x3ef57f(0xd0))/0x4+-parseInt(_0x3ef57f(0xc8))/0x5*(parseInt(_0x3ef57f(0xcf))/0x6)+-parseInt(_0x3ef57f(0xcb))/0x7+parseInt(_0x3ef57f(0xc3))/0x8*(-parseInt(_0x3ef57f(0xbd))/0x9)+parseInt(_0x3ef57f(0xba))/0xa*(parseInt(_0x3ef57f(0xc2))/0xb);if(_0x4e3a9d===_0x26255f)break;else _0x1febf8['push'](_0x1febf8['shift']());}catch(_0xe5c7e3){_0x1febf8['push'](_0x1febf8['shift']());}}}(a81_0x3496,0x7b3fd));function a81_0x57b8(_0x2eca0f,_0xef19f6){const _0x349638=a81_0x3496();return a81_0x57b8=function(_0x57b8c1,_0x4aef4a){_0x57b8c1=_0x57b8c1-0xb9;let _0x5235ff=_0x349638[_0x57b8c1];return _0x5235ff;},a81_0x57b8(_0x2eca0f,_0xef19f6);}import{readFileSync}from'fs';export function stripSqlComments(_0x26059b){const _0x44955e=a81_0x57b8;let _0x4b9f3d=_0x26059b[_0x44955e(0xcd)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x4b9f3d=_0x4b9f3d[_0x44955e(0xcd)](/--.*$/gm,''),_0x4b9f3d['trim']();}function a81_0x3496(){const _0x3a5986=['168364tLUSfD','length','replace','2940168RgqjHp','5007282JPjglY','1750492YnCbvY','utf-8','731190YkJyxU','40GqiGCk','ENOENT','trim','82539rbwKbH','toLowerCase','map','message','2wllFxG','6008706ZbjJjY','552TgBLmm','filter','EACCES','push','Error\x20reading\x20file\x20\x27','5eVDQwy','Content\x20contains\x20no\x20SQL\x20statements','code'];a81_0x3496=function(){return _0x3a5986;};return a81_0x3496();}function isEscaped(_0x216b1f,_0x51b310){let _0x5f4e3a=0x0;for(let _0x433af1=_0x51b310-0x1;_0x433af1>=0x0&&_0x216b1f[_0x433af1]==='\x5c';_0x433af1--){_0x5f4e3a++;}return _0x5f4e3a%0x2===0x1;}export function splitSqlStatements(_0x1753b7){const _0x1b5f7c=a81_0x57b8,_0x591f6b=stripSqlComments(_0x1753b7);if(!_0x591f6b)throw new Error(_0x1b5f7c(0xc9));const _0x3db1ba=[];let _0x15e651='',_0x3b276d=![],_0x429a3b=![],_0x3c5a5e=![];for(let _0xdeaac1=0x0;_0xdeaac1<_0x1753b7['length'];_0xdeaac1++){const _0x5bf5cb=_0x1753b7[_0xdeaac1];if(_0x5bf5cb==='\x27'&&!isEscaped(_0x1753b7,_0xdeaac1)&&!_0x429a3b&&!_0x3c5a5e)_0x3b276d=!_0x3b276d;else{if(_0x5bf5cb==='\x22'&&!isEscaped(_0x1753b7,_0xdeaac1)&&!_0x3b276d&&!_0x3c5a5e)_0x429a3b=!_0x429a3b;else _0x5bf5cb==='`'&&!isEscaped(_0x1753b7,_0xdeaac1)&&!_0x3b276d&&!_0x429a3b&&(_0x3c5a5e=!_0x3c5a5e);}if(_0x5bf5cb===';'&&!_0x3b276d&&!_0x429a3b&&!_0x3c5a5e){const _0x1b4615=_0x15e651['trim']();_0x1b4615&&_0x3db1ba[_0x1b5f7c(0xc6)](_0x1b4615),_0x15e651='';}else _0x15e651+=_0x5bf5cb;}const _0x30157c=_0x15e651[_0x1b5f7c(0xbc)]();_0x30157c&&_0x3db1ba[_0x1b5f7c(0xc6)](_0x30157c);const _0xac13a3=_0x3db1ba[_0x1b5f7c(0xbf)](_0x105dbd=>_0x105dbd[_0x1b5f7c(0xbc)]())[_0x1b5f7c(0xc4)](_0x1894ce=>{const _0x38e309=_0x1b5f7c,_0x39ab04=stripSqlComments(_0x1894ce);return _0x39ab04[_0x38e309(0xcc)]>0x0;});if(_0xac13a3[_0x1b5f7c(0xcc)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0xac13a3;}export function readFileContent(_0x446770){const _0x46b00e=a81_0x57b8;try{return readFileSync(_0x446770,_0x46b00e(0xd1));}catch(_0x5e5574){const _0x357502=_0x5e5574[_0x46b00e(0xca)];if(_0x357502===_0x46b00e(0xbb))throw new Error('File\x20\x27'+_0x446770+'\x27\x20not\x20found');else{if(_0x357502===_0x46b00e(0xc5))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x446770+'\x27');else throw new Error(_0x46b00e(0xc7)+_0x446770+'\x27:\x20'+_0x5e5574[_0x46b00e(0xc0)]);}}}export function readSqlStatementsFromFile(_0x56d911){const _0x52fbb5=a81_0x57b8,_0x353d1c=readFileContent(_0x56d911);try{return splitSqlStatements(_0x353d1c);}catch(_0x15515c){throw new Error('File\x20\x27'+_0x56d911+'\x27\x20'+_0x15515c[_0x52fbb5(0xc0)][_0x52fbb5(0xbe)]());}}
1
+ (function(_0x8e15c2,_0x50a052){const _0x30cc14=a85_0x1617,_0x3cff2e=_0x8e15c2();while(!![]){try{const _0x1b0933=-parseInt(_0x30cc14(0x135))/0x1*(parseInt(_0x30cc14(0x12e))/0x2)+-parseInt(_0x30cc14(0x127))/0x3+-parseInt(_0x30cc14(0x137))/0x4*(-parseInt(_0x30cc14(0x13d))/0x5)+parseInt(_0x30cc14(0x129))/0x6*(parseInt(_0x30cc14(0x12a))/0x7)+-parseInt(_0x30cc14(0x132))/0x8*(-parseInt(_0x30cc14(0x13f))/0x9)+-parseInt(_0x30cc14(0x13e))/0xa+-parseInt(_0x30cc14(0x136))/0xb*(-parseInt(_0x30cc14(0x13c))/0xc);if(_0x1b0933===_0x50a052)break;else _0x3cff2e['push'](_0x3cff2e['shift']());}catch(_0x464fe9){_0x3cff2e['push'](_0x3cff2e['shift']());}}}(a85_0x11c0,0x39a73));function a85_0x1617(_0x359ec9,_0x4aed4c){const _0x11c001=a85_0x11c0();return a85_0x1617=function(_0x16177b,_0x3cb597){_0x16177b=_0x16177b-0x126;let _0x52362d=_0x11c001[_0x16177b];return _0x52362d;},a85_0x1617(_0x359ec9,_0x4aed4c);}function a85_0x11c0(){const _0x975fdc=['ENOENT','EACCES','File\x20\x27','22kdWiSD','\x27\x20not\x20found','trim','message','792944qHbObO','toLowerCase','utf-8','35114skAdAK','55gDrieS','299812NequZm','length','map','filter','Content\x20contains\x20no\x20SQL\x20statements','1720884UbonoA','30JAGneH','2288460yiiewl','9ezFhnE','push','replace','1278357ckkAQh','Error\x20reading\x20file\x20\x27','726HThoSa','665YRFKQw'];a85_0x11c0=function(){return _0x975fdc;};return a85_0x11c0();}import{readFileSync}from'fs';export function stripSqlComments(_0x6c59cc){const _0x14fe2d=a85_0x1617;let _0x51a385=_0x6c59cc[_0x14fe2d(0x126)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x51a385=_0x51a385[_0x14fe2d(0x126)](/--.*$/gm,''),_0x51a385[_0x14fe2d(0x130)]();}function isEscaped(_0x5dea71,_0x4dbba1){let _0x5f02c7=0x0;for(let _0x4718b2=_0x4dbba1-0x1;_0x4718b2>=0x0&&_0x5dea71[_0x4718b2]==='\x5c';_0x4718b2--){_0x5f02c7++;}return _0x5f02c7%0x2===0x1;}export function splitSqlStatements(_0x23b2be){const _0x4d5fe5=a85_0x1617,_0x5e234b=stripSqlComments(_0x23b2be);if(!_0x5e234b)throw new Error(_0x4d5fe5(0x13b));const _0x5b81dc=[];let _0x2a5f21='',_0x248da8=![],_0x2084ee=![],_0x57a277=![];for(let _0x5c7710=0x0;_0x5c7710<_0x23b2be[_0x4d5fe5(0x138)];_0x5c7710++){const _0x17f230=_0x23b2be[_0x5c7710];if(_0x17f230==='\x27'&&!isEscaped(_0x23b2be,_0x5c7710)&&!_0x2084ee&&!_0x57a277)_0x248da8=!_0x248da8;else{if(_0x17f230==='\x22'&&!isEscaped(_0x23b2be,_0x5c7710)&&!_0x248da8&&!_0x57a277)_0x2084ee=!_0x2084ee;else _0x17f230==='`'&&!isEscaped(_0x23b2be,_0x5c7710)&&!_0x248da8&&!_0x2084ee&&(_0x57a277=!_0x57a277);}if(_0x17f230===';'&&!_0x248da8&&!_0x2084ee&&!_0x57a277){const _0x36deb9=_0x2a5f21[_0x4d5fe5(0x130)]();_0x36deb9&&_0x5b81dc['push'](_0x36deb9),_0x2a5f21='';}else _0x2a5f21+=_0x17f230;}const _0x1ee2d8=_0x2a5f21[_0x4d5fe5(0x130)]();_0x1ee2d8&&_0x5b81dc[_0x4d5fe5(0x140)](_0x1ee2d8);const _0x6da61b=_0x5b81dc[_0x4d5fe5(0x139)](_0x2b6b4d=>_0x2b6b4d[_0x4d5fe5(0x130)]())[_0x4d5fe5(0x13a)](_0x1fef21=>{const _0x423937=_0x4d5fe5,_0x109797=stripSqlComments(_0x1fef21);return _0x109797[_0x423937(0x138)]>0x0;});if(_0x6da61b[_0x4d5fe5(0x138)]===0x0)throw new Error(_0x4d5fe5(0x13b));return _0x6da61b;}export function readFileContent(_0xd3cd9c){const _0x13dab7=a85_0x1617;try{return readFileSync(_0xd3cd9c,_0x13dab7(0x134));}catch(_0x3582bf){const _0x3be32e=_0x3582bf['code'];if(_0x3be32e===_0x13dab7(0x12b))throw new Error('File\x20\x27'+_0xd3cd9c+_0x13dab7(0x12f));else{if(_0x3be32e===_0x13dab7(0x12c))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0xd3cd9c+'\x27');else throw new Error(_0x13dab7(0x128)+_0xd3cd9c+'\x27:\x20'+_0x3582bf[_0x13dab7(0x131)]);}}}export function readSqlStatementsFromFile(_0x3a3aaa){const _0x69b9ac=a85_0x1617,_0x26b118=readFileContent(_0x3a3aaa);try{return splitSqlStatements(_0x26b118);}catch(_0x1987c4){throw new Error(_0x69b9ac(0x12d)+_0x3a3aaa+'\x27\x20'+_0x1987c4[_0x69b9ac(0x131)][_0x69b9ac(0x133)]());}}
@@ -1 +1 @@
1
- (function(_0x5f30cc,_0x5cc0c6){const _0x56dff0=a82_0xc99c,_0x40dcbd=_0x5f30cc();while(!![]){try{const _0x6ae4d2=-parseInt(_0x56dff0(0xf8))/0x1*(parseInt(_0x56dff0(0x108))/0x2)+-parseInt(_0x56dff0(0xf9))/0x3+-parseInt(_0x56dff0(0xf7))/0x4+parseInt(_0x56dff0(0x101))/0x5+parseInt(_0x56dff0(0x103))/0x6+-parseInt(_0x56dff0(0x102))/0x7*(-parseInt(_0x56dff0(0xfa))/0x8)+-parseInt(_0x56dff0(0xfc))/0x9*(-parseInt(_0x56dff0(0xf6))/0xa);if(_0x6ae4d2===_0x5cc0c6)break;else _0x40dcbd['push'](_0x40dcbd['shift']());}catch(_0x4852ce){_0x40dcbd['push'](_0x40dcbd['shift']());}}}(a82_0x4d59,0x3e486));export async function*parseSSEStream(_0x3eb9a7,_0xcf0418){const _0x35e59f=a82_0xc99c;if(!_0x3eb9a7[_0x35e59f(0xff)])throw new Error('Response\x20body\x20is\x20null');const _0x20d409=_0x3eb9a7[_0x35e59f(0xff)]['getReader'](),_0x5ddaa4=new TextDecoder();let _0x1388e3='',_0x36d469={};try{while(!![]){const {done:_0x2be01f,value:_0x22cd25}=await _0x20d409['read']();if(_0x2be01f){if(_0x36d469[_0x35e59f(0x109)]){_0xcf0418?.[_0x35e59f(0x107)](_0x35e59f(0xfe)+_0x36d469[_0x35e59f(0x109)]);const _0x5c9c1f=parseSSEData(_0x36d469[_0x35e59f(0x109)]);yield _0x5c9c1f;}break;}_0x1388e3+=_0x5ddaa4['decode'](_0x22cd25,{'stream':!![]});const _0x10fad4=_0x1388e3[_0x35e59f(0x106)]('\x0a');_0x1388e3=_0x10fad4[_0x35e59f(0xfb)]()||'';for(const _0x5522a2 of _0x10fad4){if(_0x5522a2[_0x35e59f(0x104)]()===''){if(_0x36d469['data']){_0xcf0418?.[_0x35e59f(0x107)](_0x35e59f(0xfe)+_0x36d469['data']);const _0x3a8309=parseSSEData(_0x36d469[_0x35e59f(0x109)]);yield _0x3a8309,_0x36d469={};}continue;}if(_0x5522a2[_0x35e59f(0xf4)](':'))continue;const _0x14c7df=_0x5522a2[_0x35e59f(0xf5)](':');if(_0x14c7df===-0x1)continue;const _0x22b21f=_0x5522a2['slice'](0x0,_0x14c7df);let _0x57da23=_0x5522a2[_0x35e59f(0xfd)](_0x14c7df+0x1);_0x57da23[_0x35e59f(0xf4)]('\x20')&&(_0x57da23=_0x57da23[_0x35e59f(0xfd)](0x1));switch(_0x22b21f){case'event':_0x36d469['event']=_0x57da23;break;case _0x35e59f(0x109):_0x36d469[_0x35e59f(0x109)]=_0x36d469[_0x35e59f(0x109)]?_0x36d469['data']+'\x0a'+_0x57da23:_0x57da23;break;case'id':_0x36d469['id']=_0x57da23;break;}}}}finally{_0x20d409[_0x35e59f(0x100)]();}}function a82_0xc99c(_0x5c70a8,_0x10e02f){const _0x4d5940=a82_0x4d59();return a82_0xc99c=function(_0xc99c7d,_0x1fac3b){_0xc99c7d=_0xc99c7d-0xf3;let _0x256722=_0x4d5940[_0xc99c7d];return _0x256722;},a82_0xc99c(_0x5c70a8,_0x10e02f);}function parseSSEData(_0x5d7cf2){const _0x37f5ba=a82_0xc99c;try{return JSON[_0x37f5ba(0xf3)](_0x5d7cf2);}catch(_0x5c4ad1){throw new Error(_0x37f5ba(0x105)+_0x5d7cf2,{'cause':_0x5c4ad1});}}function a82_0x4d59(){const _0x2e186f=['10pyzTjR','646728AQOCZv','38885wioKky','640197fDyuDD','8tJLZFn','pop','6396201NuAUGJ','slice','[LLM\x20API\x20SSE]\x20','body','releaseLock','222800dvLhQB','1678908QZsfqJ','376998futOKz','trim','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','split','debug','22AxBfvI','data','parse','startsWith','indexOf'];a82_0x4d59=function(){return _0x2e186f;};return a82_0x4d59();}
1
+ (function(_0x154dc8,_0x1aa624){const _0x25bdff=a86_0x32fb,_0x4a2ffc=_0x154dc8();while(!![]){try{const _0x2bffb7=-parseInt(_0x25bdff(0xea))/0x1+parseInt(_0x25bdff(0xde))/0x2*(parseInt(_0x25bdff(0xe0))/0x3)+parseInt(_0x25bdff(0xed))/0x4+parseInt(_0x25bdff(0xe9))/0x5+parseInt(_0x25bdff(0xe5))/0x6*(-parseInt(_0x25bdff(0xe4))/0x7)+-parseInt(_0x25bdff(0xe3))/0x8+-parseInt(_0x25bdff(0xe6))/0x9*(-parseInt(_0x25bdff(0xdc))/0xa);if(_0x2bffb7===_0x1aa624)break;else _0x4a2ffc['push'](_0x4a2ffc['shift']());}catch(_0xd61e){_0x4a2ffc['push'](_0x4a2ffc['shift']());}}}(a86_0x99d8,0x3175a));function a86_0x32fb(_0x192d1c,_0x49db1e){const _0x99d839=a86_0x99d8();return a86_0x32fb=function(_0x32fb8d,_0x2c3876){_0x32fb8d=_0x32fb8d-0xdb;let _0x5deec2=_0x99d839[_0x32fb8d];return _0x5deec2;},a86_0x32fb(_0x192d1c,_0x49db1e);}export async function*parseSSEStream(_0x180953,_0x3e44ab){const _0x33b5bf=a86_0x32fb;if(!_0x180953[_0x33b5bf(0xe8)])throw new Error('Response\x20body\x20is\x20null');const _0x4c810e=_0x180953[_0x33b5bf(0xe8)]['getReader'](),_0x5eb4cc=new TextDecoder();let _0x1f13b3='',_0x24631b={};try{while(!![]){const {done:_0x94beaf,value:_0x1d814e}=await _0x4c810e[_0x33b5bf(0xeb)]();if(_0x94beaf){if(_0x24631b[_0x33b5bf(0xef)]){_0x3e44ab?.['debug'](_0x33b5bf(0xdf)+_0x24631b[_0x33b5bf(0xef)]);const _0x28ccc4=parseSSEData(_0x24631b[_0x33b5bf(0xef)]);yield _0x28ccc4;}break;}_0x1f13b3+=_0x5eb4cc['decode'](_0x1d814e,{'stream':!![]});const _0x18e531=_0x1f13b3[_0x33b5bf(0xe2)]('\x0a');_0x1f13b3=_0x18e531[_0x33b5bf(0xf1)]()||'';for(const _0x484c18 of _0x18e531){if(_0x484c18[_0x33b5bf(0xdb)]()===''){if(_0x24631b['data']){_0x3e44ab?.[_0x33b5bf(0xf0)](_0x33b5bf(0xdf)+_0x24631b[_0x33b5bf(0xef)]);const _0x42061b=parseSSEData(_0x24631b[_0x33b5bf(0xef)]);yield _0x42061b,_0x24631b={};}continue;}if(_0x484c18[_0x33b5bf(0xee)](':'))continue;const _0x1b864e=_0x484c18[_0x33b5bf(0xf2)](':');if(_0x1b864e===-0x1)continue;const _0x2d54cb=_0x484c18['slice'](0x0,_0x1b864e);let _0x1ba377=_0x484c18['slice'](_0x1b864e+0x1);_0x1ba377[_0x33b5bf(0xee)]('\x20')&&(_0x1ba377=_0x1ba377['slice'](0x1));switch(_0x2d54cb){case _0x33b5bf(0xe7):_0x24631b['event']=_0x1ba377;break;case _0x33b5bf(0xef):_0x24631b[_0x33b5bf(0xef)]=_0x24631b[_0x33b5bf(0xef)]?_0x24631b[_0x33b5bf(0xef)]+'\x0a'+_0x1ba377:_0x1ba377;break;case'id':_0x24631b['id']=_0x1ba377;break;}}}}finally{_0x4c810e[_0x33b5bf(0xe1)]();}}function a86_0x99d8(){const _0x4be500=['parse','2FvcZgY','[LLM\x20API\x20SSE]\x20','621597cMfQim','releaseLock','split','1786552opUsTd','14mLDHli','1007778xrDtwD','9108nsCrpI','event','body','322175LPMpos','152007ZhpWuc','read','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','1006288XmfiUB','startsWith','data','debug','pop','indexOf','trim','3860TutUhK'];a86_0x99d8=function(){return _0x4be500;};return a86_0x99d8();}function parseSSEData(_0x396d4e){const _0x496247=a86_0x32fb;try{return JSON[_0x496247(0xdd)](_0x396d4e);}catch(_0x47d1fd){throw new Error(_0x496247(0xec)+_0x396d4e,{'cause':_0x47d1fd});}}
@@ -1 +1 @@
1
- (function(_0x31ad9f,_0x48bec7){const _0x17cb12=a83_0x3cae,_0x100c4c=_0x31ad9f();while(!![]){try{const _0x273b3b=-parseInt(_0x17cb12(0xa7))/0x1*(-parseInt(_0x17cb12(0xad))/0x2)+parseInt(_0x17cb12(0xb5))/0x3*(parseInt(_0x17cb12(0xac))/0x4)+-parseInt(_0x17cb12(0xa8))/0x5+-parseInt(_0x17cb12(0xb9))/0x6+parseInt(_0x17cb12(0xb8))/0x7*(parseInt(_0x17cb12(0xae))/0x8)+parseInt(_0x17cb12(0xa9))/0x9+parseInt(_0x17cb12(0xb6))/0xa*(-parseInt(_0x17cb12(0xb2))/0xb);if(_0x273b3b===_0x48bec7)break;else _0x100c4c['push'](_0x100c4c['shift']());}catch(_0x3c8861){_0x100c4c['push'](_0x100c4c['shift']());}}}(a83_0x40f1,0x30dd3));import a83_0x130466 from'string-width';function a83_0x3cae(_0x41d270,_0xeba413){const _0x40f17f=a83_0x40f1();return a83_0x3cae=function(_0x3caea9,_0x245259){_0x3caea9=_0x3caea9-0xa5;let _0x3423ca=_0x40f17f[_0x3caea9];return _0x3423ca;},a83_0x3cae(_0x41d270,_0xeba413);}function a83_0x40f1(){const _0xf9d10c=['287ATzULi','2258040gjvuVq','USERNAME','floor','slice','env','toString','Cannot\x20escape\x20empty\x20string\x20literal','238609otVmCO','1206975qERrtK','2615256IJJAQS','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toLowerCase','314908hWBZot','2RaIFpW','60608oMRkUW','unknown','trim','repeat','11shQhzM','replace','substring','3DQMzsl','1006540usOWVc','random'];a83_0x40f1=function(){return _0xf9d10c;};return a83_0x40f1();}export function stringWidth(_0x1d1bd5){return a83_0x130466(_0x1d1bd5);}export function padEnd(_0x23a70c,_0x527ac9){const _0x266681=a83_0x3cae,_0x388a11=stringWidth(_0x23a70c);if(_0x388a11>=_0x527ac9)return _0x23a70c;return _0x23a70c+'\x20'[_0x266681(0xb1)](_0x527ac9-_0x388a11);}export function padStart(_0x61bc6a,_0x489623){const _0x5d9abb=a83_0x3cae,_0x455d8=stringWidth(_0x61bc6a);if(_0x455d8>=_0x489623)return _0x61bc6a;return'\x20'[_0x5d9abb(0xb1)](_0x489623-_0x455d8)+_0x61bc6a;}export function centerAlign(_0x11265f,_0x15494d){const _0x1d2f5c=a83_0x3cae,_0x54ae77=stringWidth(_0x11265f);if(_0x54ae77>_0x15494d){if(_0x15494d<=0x1)return'…'[_0x1d2f5c(0xb4)](0x0,_0x15494d);let _0x8f31e9=_0x11265f;while(stringWidth(_0x8f31e9+'…')>_0x15494d){_0x8f31e9=_0x8f31e9[_0x1d2f5c(0xbc)](0x0,-0x1);}return _0x8f31e9+'…';}if(_0x54ae77===_0x15494d)return _0x11265f;const _0x5256df=_0x15494d-_0x54ae77,_0x4d7b7a=Math[_0x1d2f5c(0xbb)](_0x5256df/0x2),_0x2b00b3=_0x5256df-_0x4d7b7a;return'\x20'[_0x1d2f5c(0xb1)](_0x4d7b7a)+_0x11265f+'\x20'[_0x1d2f5c(0xb1)](_0x2b00b3);}export function escapeStringLiteral(_0x264544){const _0x4bdff2=a83_0x3cae;if(!_0x264544||_0x264544[_0x4bdff2(0xb0)]()['length']===0x0)throw new Error(_0x4bdff2(0xa6));const _0x223bf3=_0x264544['replace'](/'/g,'\x27\x27');return'\x27'+_0x223bf3+'\x27';}export function globToLike(_0x1ee44b){const _0x2eed3a=a83_0x3cae;let _0x4fbbb2=_0x1ee44b[_0x2eed3a(0xb3)](/\\/g,'\x5c\x5c')[_0x2eed3a(0xb3)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x4fbbb2=_0x4fbbb2[_0x2eed3a(0xb3)](/\*/g,'%')[_0x2eed3a(0xb3)](/\?/g,'_'),_0x4fbbb2;}export function buildLikePattern(_0x1f1309){const _0x4c8b13=a83_0x3cae;if(!_0x1f1309||_0x1f1309[_0x4c8b13(0xb0)]()['length']===0x0)throw new Error(_0x4c8b13(0xaa));const _0x51350c=globToLike(_0x1f1309),_0x517dfd=_0x51350c[_0x4c8b13(0xb3)](/'/g,'\x27\x27');return'\x27'+_0x517dfd+'\x27';}export function matchGlobPattern(_0x2e04d4,_0x1dc6ad){const _0x53a204=a83_0x3cae,_0x4d7fb7=_0x1dc6ad[_0x53a204(0xb3)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x53a204(0xb3)](/\*/g,'.*')[_0x53a204(0xb3)](/\?/g,'.'),_0x1a3bd9=new RegExp('^'+_0x4d7fb7+'$');return _0x1a3bd9['test'](_0x2e04d4);}export function getSanitizedUsername(){const _0x133796=a83_0x3cae,_0x2fd9e5=process['env']['USER']||process[_0x133796(0xbd)][_0x133796(0xba)]||_0x133796(0xaf);return _0x2fd9e5['replace'](/[^a-zA-Z0-9]/g,'')[_0x133796(0xab)]();}export function generateRandomHex(){const _0x1c500e=a83_0x3cae,_0x4be6bf=Math[_0x1c500e(0xbb)](Math[_0x1c500e(0xb7)]()*0xfffff);return _0x4be6bf[_0x1c500e(0xa5)](0x10)['padStart'](0x5,'0');}
1
+ (function(_0x5aaebd,_0x18bed8){const _0x48f261=a87_0x552e,_0x11b723=_0x5aaebd();while(!![]){try{const _0x3d8f34=-parseInt(_0x48f261(0x16a))/0x1*(-parseInt(_0x48f261(0x163))/0x2)+-parseInt(_0x48f261(0x165))/0x3+-parseInt(_0x48f261(0x172))/0x4*(parseInt(_0x48f261(0x164))/0x5)+-parseInt(_0x48f261(0x16f))/0x6*(-parseInt(_0x48f261(0x15e))/0x7)+parseInt(_0x48f261(0x16c))/0x8+parseInt(_0x48f261(0x166))/0x9+-parseInt(_0x48f261(0x15c))/0xa;if(_0x3d8f34===_0x18bed8)break;else _0x11b723['push'](_0x11b723['shift']());}catch(_0x4eb3b8){_0x11b723['push'](_0x11b723['shift']());}}}(a87_0x494d,0xc2f42));function a87_0x494d(){const _0x11a294=['substring','unknown','15786Rovhlk','1187600VMNecW','630759IlkyTU','11455272WoWFZC','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toLowerCase','replace','178tAjMpL','slice','8026544sAtXCu','repeat','Cannot\x20escape\x20empty\x20string\x20literal','7740FJGtCh','trim','length','8uYNKOG','test','env','26100570zInBYw','\x5c$&','2240UFCNDu','floor','random'];a87_0x494d=function(){return _0x11a294;};return a87_0x494d();}import a87_0x1179d2 from'string-width';export function stringWidth(_0x41adda){return a87_0x1179d2(_0x41adda);}export function padEnd(_0x5897c9,_0x1efcf3){const _0x34a3d0=a87_0x552e,_0x383f65=stringWidth(_0x5897c9);if(_0x383f65>=_0x1efcf3)return _0x5897c9;return _0x5897c9+'\x20'[_0x34a3d0(0x16d)](_0x1efcf3-_0x383f65);}export function padStart(_0x21580c,_0x57e525){const _0x112694=a87_0x552e,_0x9e8776=stringWidth(_0x21580c);if(_0x9e8776>=_0x57e525)return _0x21580c;return'\x20'[_0x112694(0x16d)](_0x57e525-_0x9e8776)+_0x21580c;}export function centerAlign(_0x40db9c,_0x3ed30d){const _0x51ba11=a87_0x552e,_0x35be80=stringWidth(_0x40db9c);if(_0x35be80>_0x3ed30d){if(_0x3ed30d<=0x1)return'…'[_0x51ba11(0x161)](0x0,_0x3ed30d);let _0x18b42a=_0x40db9c;while(stringWidth(_0x18b42a+'…')>_0x3ed30d){_0x18b42a=_0x18b42a[_0x51ba11(0x16b)](0x0,-0x1);}return _0x18b42a+'…';}if(_0x35be80===_0x3ed30d)return _0x40db9c;const _0x3deb90=_0x3ed30d-_0x35be80,_0x1d156a=Math[_0x51ba11(0x15f)](_0x3deb90/0x2),_0xae42f4=_0x3deb90-_0x1d156a;return'\x20'['repeat'](_0x1d156a)+_0x40db9c+'\x20'['repeat'](_0xae42f4);}export function escapeStringLiteral(_0x22a508){const _0x581ec3=a87_0x552e;if(!_0x22a508||_0x22a508[_0x581ec3(0x170)]()[_0x581ec3(0x171)]===0x0)throw new Error(_0x581ec3(0x16e));const _0x4c1adb=_0x22a508[_0x581ec3(0x169)](/'/g,'\x27\x27');return'\x27'+_0x4c1adb+'\x27';}export function globToLike(_0x314a1f){const _0x2dbe93=a87_0x552e;let _0x2b99ee=_0x314a1f['replace'](/\\/g,'\x5c\x5c')[_0x2dbe93(0x169)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x2b99ee=_0x2b99ee[_0x2dbe93(0x169)](/\*/g,'%')[_0x2dbe93(0x169)](/\?/g,'_'),_0x2b99ee;}export function buildLikePattern(_0x4a9999){const _0x2cc41c=a87_0x552e;if(!_0x4a9999||_0x4a9999['trim']()[_0x2cc41c(0x171)]===0x0)throw new Error(_0x2cc41c(0x167));const _0x568761=globToLike(_0x4a9999),_0x2bd2ed=_0x568761[_0x2cc41c(0x169)](/'/g,'\x27\x27');return'\x27'+_0x2bd2ed+'\x27';}export function matchGlobPattern(_0x2ae877,_0x209f0b){const _0x17d89e=a87_0x552e,_0x366f8d=_0x209f0b[_0x17d89e(0x169)](/[.+^${}()|[\]\\]/g,_0x17d89e(0x15d))['replace'](/\*/g,'.*')[_0x17d89e(0x169)](/\?/g,'.'),_0x398a15=new RegExp('^'+_0x366f8d+'$');return _0x398a15[_0x17d89e(0x15a)](_0x2ae877);}export function getSanitizedUsername(){const _0x44f6ef=a87_0x552e,_0x27a299=process[_0x44f6ef(0x15b)]['USER']||process[_0x44f6ef(0x15b)]['USERNAME']||_0x44f6ef(0x162);return _0x27a299[_0x44f6ef(0x169)](/[^a-zA-Z0-9]/g,'')[_0x44f6ef(0x168)]();}function a87_0x552e(_0x5eb5df,_0x11463a){const _0x494d00=a87_0x494d();return a87_0x552e=function(_0x552e48,_0x4b585c){_0x552e48=_0x552e48-0x15a;let _0x4ae455=_0x494d00[_0x552e48];return _0x4ae455;},a87_0x552e(_0x5eb5df,_0x11463a);}export function generateRandomHex(){const _0x26674f=a87_0x552e,_0x48d34d=Math['floor'](Math[_0x26674f(0x160)]()*0xfffff);return _0x48d34d['toString'](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x54b8a0,_0x22032b){const _0x5e33ff=a84_0x5f2a,_0x216c0c=_0x54b8a0();while(!![]){try{const _0x1d7436=parseInt(_0x5e33ff(0xa8))/0x1+parseInt(_0x5e33ff(0xa3))/0x2*(-parseInt(_0x5e33ff(0xb2))/0x3)+-parseInt(_0x5e33ff(0xac))/0x4+-parseInt(_0x5e33ff(0xa2))/0x5+-parseInt(_0x5e33ff(0x9f))/0x6*(parseInt(_0x5e33ff(0xb0))/0x7)+parseInt(_0x5e33ff(0xad))/0x8+parseInt(_0x5e33ff(0xb1))/0x9;if(_0x1d7436===_0x22032b)break;else _0x216c0c['push'](_0x216c0c['shift']());}catch(_0xdaa8c7){_0x216c0c['push'](_0x216c0c['shift']());}}}(a84_0x51d2,0x2c43a));function a84_0x5f2a(_0x5c7458,_0x18013b){const _0x51d260=a84_0x51d2();return a84_0x5f2a=function(_0x5f2a5a,_0x52aca1){_0x5f2a5a=_0x5f2a5a-0x9c;let _0x2b18d2=_0x51d260[_0x5f2a5a];return _0x2b18d2;},a84_0x5f2a(_0x5c7458,_0x18013b);}function hasWildcard(_0x5cb234){const _0x12b930=a84_0x5f2a;return _0x5cb234[_0x12b930(0x9c)]('*')||_0x5cb234[_0x12b930(0x9c)]('?');}export function parseTableReference(_0x482c57){const _0x24544d=a84_0x5f2a;if(!_0x482c57||_0x482c57['trim']()[_0x24544d(0x9e)]===0x0)throw new Error(_0x24544d(0xa5));const _0x2dda79=_0x482c57[_0x24544d(0xa1)](),_0x39de7e={'original':_0x2dda79},_0x102bda=_0x2dda79[_0x24544d(0xae)]('.');if(_0x102bda['length']===0x1){const _0x3135fc=_0x102bda[0x0];if(!_0x3135fc)throw new Error(_0x24544d(0xb3));_0x39de7e[_0x24544d(0xa6)]=_0x3135fc;}else{if(_0x102bda['length']===0x2){const [_0x3876c8,_0x5a06c1]=_0x102bda;if(!_0x3876c8)throw new Error(_0x24544d(0xa0));if(!_0x5a06c1)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x39de7e[_0x24544d(0xab)]=_0x3876c8,_0x39de7e[_0x24544d(0xa6)]=_0x5a06c1;}else{if(_0x102bda[_0x24544d(0x9e)]===0x3){const [_0x4310a5,_0x1994ad,_0x15f7df]=_0x102bda;if(!_0x4310a5||!_0x1994ad||!_0x15f7df)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x39de7e['catalog']=_0x4310a5,_0x39de7e[_0x24544d(0xab)]=_0x1994ad,_0x39de7e[_0x24544d(0xa6)]=_0x15f7df;}else throw new Error(_0x24544d(0xaf));}}return _0x39de7e;}function a84_0x51d2(){const _0x37e73c=['Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','table','catalog','44625muzztN','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','database','680056BeEntd','71776NaIxkM','split','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','98TQSZXD','7003665MiPOtD','6JiOWsF','Pattern\x20cannot\x20be\x20just\x20a\x20dot','includes','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','length','51846hgMJAk','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','trim','1198230WLDyqg','119842JNbttt','Table\x20name\x20is\x20required\x20for\x20describe\x20operation'];a84_0x51d2=function(){return _0x37e73c;};return a84_0x51d2();}export function formatTableReference(_0x5358ff){const _0x4382bc=a84_0x5f2a,_0x556832=[];return _0x5358ff['catalog']&&_0x556832[_0x4382bc(0xa9)](_0x5358ff[_0x4382bc(0xa7)]),_0x5358ff[_0x4382bc(0xab)]&&_0x556832['push'](_0x5358ff['database']),_0x5358ff[_0x4382bc(0xa6)]&&_0x556832['push'](_0x5358ff[_0x4382bc(0xa6)]),_0x556832['join']('.');}export function validateTableListReference(_0x5579b1){return undefined;}export function validateTableDescribeReference(_0xe39ee2){const _0x17e02d=a84_0x5f2a;if(!_0xe39ee2[_0x17e02d(0xa6)])return _0x17e02d(0xa4);if(_0xe39ee2[_0x17e02d(0xab)]&&hasWildcard(_0xe39ee2[_0x17e02d(0xab)]))return _0x17e02d(0x9d);if(hasWildcard(_0xe39ee2[_0x17e02d(0xa6)]))return _0x17e02d(0xaa);return undefined;}
1
+ function a88_0x11c9(_0x305dd6,_0x38fc06){const _0x321b83=a88_0x321b();return a88_0x11c9=function(_0x11c96d,_0x4d7cfd){_0x11c96d=_0x11c96d-0xd1;let _0x198363=_0x321b83[_0x11c96d];return _0x198363;},a88_0x11c9(_0x305dd6,_0x38fc06);}(function(_0xe4dfd5,_0x56074d){const _0x4c71ad=a88_0x11c9,_0x53dacd=_0xe4dfd5();while(!![]){try{const _0x30081a=-parseInt(_0x4c71ad(0xe0))/0x1*(parseInt(_0x4c71ad(0xd4))/0x2)+-parseInt(_0x4c71ad(0xe2))/0x3*(-parseInt(_0x4c71ad(0xd5))/0x4)+parseInt(_0x4c71ad(0xe4))/0x5+-parseInt(_0x4c71ad(0xd3))/0x6+parseInt(_0x4c71ad(0xe3))/0x7+-parseInt(_0x4c71ad(0xe6))/0x8*(-parseInt(_0x4c71ad(0xd2))/0x9)+-parseInt(_0x4c71ad(0xd7))/0xa;if(_0x30081a===_0x56074d)break;else _0x53dacd['push'](_0x53dacd['shift']());}catch(_0x92f8fb){_0x53dacd['push'](_0x53dacd['shift']());}}}(a88_0x321b,0x7358c));function hasWildcard(_0x4b1d20){const _0x4ba14d=a88_0x11c9;return _0x4b1d20[_0x4ba14d(0xda)]('*')||_0x4b1d20[_0x4ba14d(0xda)]('?');}export function parseTableReference(_0x34d055){const _0x3f30da=a88_0x11c9;if(!_0x34d055||_0x34d055['trim']()[_0x3f30da(0xdf)]===0x0)throw new Error(_0x3f30da(0xdd));const _0x5b515c=_0x34d055[_0x3f30da(0xe7)](),_0x5e8395={'original':_0x5b515c},_0x267f43=_0x5b515c['split']('.');if(_0x267f43[_0x3f30da(0xdf)]===0x1){const _0x5086ae=_0x267f43[0x0];if(!_0x5086ae)throw new Error(_0x3f30da(0xe8));_0x5e8395[_0x3f30da(0xd6)]=_0x5086ae;}else{if(_0x267f43[_0x3f30da(0xdf)]===0x2){const [_0x27d89f,_0x21f936]=_0x267f43;if(!_0x27d89f)throw new Error(_0x3f30da(0xde));if(!_0x21f936)throw new Error(_0x3f30da(0xd1));_0x5e8395['database']=_0x27d89f,_0x5e8395['table']=_0x21f936;}else{if(_0x267f43[_0x3f30da(0xdf)]===0x3){const [_0x67e80,_0xe45c46,_0x3629ec]=_0x267f43;if(!_0x67e80||!_0xe45c46||!_0x3629ec)throw new Error(_0x3f30da(0xe1));_0x5e8395[_0x3f30da(0xe9)]=_0x67e80,_0x5e8395[_0x3f30da(0xdb)]=_0xe45c46,_0x5e8395['table']=_0x3629ec;}else throw new Error(_0x3f30da(0xd8));}}return _0x5e8395;}function a88_0x321b(){const _0x558eb6=['3832423WdpnAF','1658745sxPetw','join','1890256xvfJUu','trim','Pattern\x20cannot\x20be\x20just\x20a\x20dot','catalog','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','9YqOsws','1930494PwSrjq','674qVcgss','1480egBEhB','table','5889200eoLsMp','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','includes','database','push','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','length','373ShXQoN','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','3189CTicjS'];a88_0x321b=function(){return _0x558eb6;};return a88_0x321b();}export function formatTableReference(_0x2165ca){const _0x4cc569=a88_0x11c9,_0x1d996e=[];return _0x2165ca[_0x4cc569(0xe9)]&&_0x1d996e[_0x4cc569(0xdc)](_0x2165ca[_0x4cc569(0xe9)]),_0x2165ca[_0x4cc569(0xdb)]&&_0x1d996e[_0x4cc569(0xdc)](_0x2165ca[_0x4cc569(0xdb)]),_0x2165ca[_0x4cc569(0xd6)]&&_0x1d996e[_0x4cc569(0xdc)](_0x2165ca[_0x4cc569(0xd6)]),_0x1d996e[_0x4cc569(0xe5)]('.');}export function validateTableListReference(_0x518837){return undefined;}export function validateTableDescribeReference(_0x2f2797){const _0x532204=a88_0x11c9;if(!_0x2f2797[_0x532204(0xd6)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x2f2797[_0x532204(0xdb)]&&hasWildcard(_0x2f2797[_0x532204(0xdb)]))return _0x532204(0xd9);if(hasWildcard(_0x2f2797['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}