@treasuredata/tdx 0.9.1 → 0.9.3

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 (131) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.d.ts +35 -1
  9. package/dist/client/llm-api-client.d.ts.map +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/llm-api-client.js.map +1 -1
  12. package/dist/client/rate-limiter.js +1 -1
  13. package/dist/client/td-api-client.js +1 -1
  14. package/dist/client/trino-api-client.js +1 -1
  15. package/dist/client/workflow-client.js +1 -1
  16. package/dist/commands/activations.js +1 -1
  17. package/dist/commands/agent-command.d.ts.map +1 -1
  18. package/dist/commands/agent-command.js +1 -1
  19. package/dist/commands/agent-command.js.map +1 -1
  20. package/dist/commands/api-command.js +1 -1
  21. package/dist/commands/auth-command.js +1 -1
  22. package/dist/commands/chat-command.js +1 -1
  23. package/dist/commands/claude-command.js +1 -1
  24. package/dist/commands/claude-statusline-command.js +1 -1
  25. package/dist/commands/claude-usage-command.js +1 -1
  26. package/dist/commands/command.js +1 -1
  27. package/dist/commands/connection-command.js +1 -1
  28. package/dist/commands/context-command.js +1 -1
  29. package/dist/commands/databases.js +1 -1
  30. package/dist/commands/describe.js +1 -1
  31. package/dist/commands/engage-command.js +1 -1
  32. package/dist/commands/job-command.js +1 -1
  33. package/dist/commands/journey-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/llm-proxy.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/profiles-command.js +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/tables.js +1 -1
  49. package/dist/commands/use-command.js +1 -1
  50. package/dist/commands/user-command.js +1 -1
  51. package/dist/commands/workflow-command.js +1 -1
  52. package/dist/core/auth.js +1 -1
  53. package/dist/core/config.js +1 -1
  54. package/dist/core/connection-cache.js +1 -1
  55. package/dist/core/credential-cache.js +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/keychain.js +1 -1
  58. package/dist/core/profile.js +1 -1
  59. package/dist/core/project-config.js +1 -1
  60. package/dist/core/session.js +1 -1
  61. package/dist/core/user-cache.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/proxy/anthropic-adapter.js +1 -1
  64. package/dist/proxy/claude-usage-tracker.js +1 -1
  65. package/dist/proxy/context-signature.js +1 -1
  66. package/dist/proxy/conversation-utils.js +1 -1
  67. package/dist/proxy/server.js +1 -1
  68. package/dist/proxy/session-cache.js +1 -1
  69. package/dist/sdk/agent/agent-yaml.d.ts +45 -1
  70. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  71. package/dist/sdk/agent/agent-yaml.js +1 -1
  72. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  73. package/dist/sdk/api.js +1 -1
  74. package/dist/sdk/connection.js +1 -1
  75. package/dist/sdk/engage.js +1 -1
  76. package/dist/sdk/errors.js +1 -1
  77. package/dist/sdk/index.js +1 -1
  78. package/dist/sdk/job.js +1 -1
  79. package/dist/sdk/journey.js +1 -1
  80. package/dist/sdk/llm.d.ts +27 -20
  81. package/dist/sdk/llm.d.ts.map +1 -1
  82. package/dist/sdk/llm.js +1 -1
  83. package/dist/sdk/llm.js.map +1 -1
  84. package/dist/sdk/query.js +1 -1
  85. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  86. package/dist/sdk/segment/journey-yaml.js +1 -1
  87. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  88. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  89. package/dist/sdk/segment.js +1 -1
  90. package/dist/sdk/user.js +1 -1
  91. package/dist/sdk/workflow.js +1 -1
  92. package/dist/types/endpoints.js +1 -1
  93. package/dist/types/index.d.ts +1 -1
  94. package/dist/types/index.d.ts.map +1 -1
  95. package/dist/types/index.js +1 -1
  96. package/dist/types/llm.d.ts +80 -4
  97. package/dist/types/llm.d.ts.map +1 -1
  98. package/dist/utils/agent-config.js +1 -1
  99. package/dist/utils/agent-ref-parser.js +1 -1
  100. package/dist/utils/async.js +1 -1
  101. package/dist/utils/chat-cache.js +1 -1
  102. package/dist/utils/colors.js +1 -1
  103. package/dist/utils/command-output.js +1 -1
  104. package/dist/utils/constants.js +1 -1
  105. package/dist/utils/diff.js +1 -1
  106. package/dist/utils/fields-display.js +1 -1
  107. package/dist/utils/file-permissions.js +1 -1
  108. package/dist/utils/format-detector.js +1 -1
  109. package/dist/utils/formatters.js +1 -1
  110. package/dist/utils/journey-utils.js +1 -1
  111. package/dist/utils/json-loader.js +1 -1
  112. package/dist/utils/llm-backup-utils.js +1 -1
  113. package/dist/utils/model-aliases.js +1 -1
  114. package/dist/utils/model-factors.js +1 -1
  115. package/dist/utils/option-validation.js +1 -1
  116. package/dist/utils/port.js +1 -1
  117. package/dist/utils/process.js +1 -1
  118. package/dist/utils/prompt.js +1 -1
  119. package/dist/utils/segment-path-parser.js +1 -1
  120. package/dist/utils/segment-ref-parser.js +1 -1
  121. package/dist/utils/spinner.js +1 -1
  122. package/dist/utils/sql-parser.js +1 -1
  123. package/dist/utils/sse-parser.js +1 -1
  124. package/dist/utils/string-utils.js +1 -1
  125. package/dist/utils/table-ref-parser.js +1 -1
  126. package/dist/utils/tdx-config.js +1 -1
  127. package/dist/utils/tdx-logger.js +1 -1
  128. package/dist/utils/tree-formatter.js +1 -1
  129. package/dist/utils/version-check.js +1 -1
  130. package/dist/utils/workflow-utils.js +1 -1
  131. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2d1e3d,_0x306bec){const _0x47b7bd=a103_0x31ba,_0x373119=_0x2d1e3d();while(!![]){try{const _0x5310b4=-parseInt(_0x47b7bd(0xf5))/0x1*(-parseInt(_0x47b7bd(0xf3))/0x2)+-parseInt(_0x47b7bd(0xf7))/0x3*(parseInt(_0x47b7bd(0xfd))/0x4)+parseInt(_0x47b7bd(0x104))/0x5*(parseInt(_0x47b7bd(0xf2))/0x6)+parseInt(_0x47b7bd(0xff))/0x7+parseInt(_0x47b7bd(0xf9))/0x8+-parseInt(_0x47b7bd(0xf1))/0x9+parseInt(_0x47b7bd(0xed))/0xa*(-parseInt(_0x47b7bd(0x101))/0xb);if(_0x5310b4===_0x306bec)break;else _0x373119['push'](_0x373119['shift']());}catch(_0x1a49e2){_0x373119['push'](_0x373119['shift']());}}}(a103_0x38f8,0x34866));function a103_0x31ba(_0x2cf7a0,_0x28d513){_0x2cf7a0=_0x2cf7a0-0xed;const _0x38f8f0=a103_0x38f8();let _0x31bac0=_0x38f8f0[_0x2cf7a0];return _0x31bac0;}function a103_0x38f8(){const _0x2b33e8=['45419VUzhQp','message','INTERNAL','2104415KJBjik','1640wEMJpo','\x27:\x20','File\x20not\x20found:\x20','NOT_FOUND','1317915TVwMWG','6MauyRK','74gKVldT','code','9227eKRWAp','parse','277377wLxrmQ','PERMISSION_DENIED','2520840RKaeZH','utf-8','Invalid\x20JSON\x20string:\x20','INVALID_ARGUMENT','4qKhoeO','EACCES','376635dtVOnn','Invalid\x20JSON\x20in\x20file\x20\x27'];a103_0x38f8=function(){return _0x2b33e8;};return a103_0x38f8();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x313f7c,_0x4d478b){const _0x5675d0=a103_0x31ba;try{if(_0x4d478b){const _0x1eeaf9=await readFile(_0x313f7c,_0x5675d0(0xfa));try{return JSON['parse'](_0x1eeaf9);}catch(_0x5b9c98){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x5675d0(0x100)+_0x313f7c+_0x5675d0(0xee)+(_0x5b9c98 instanceof Error?_0x5b9c98[_0x5675d0(0x102)]:String(_0x5b9c98)));}}else try{return JSON[_0x5675d0(0xf6)](_0x313f7c);}catch(_0x53d51e){throw new SDKError(ErrorCode[_0x5675d0(0xfc)],_0x5675d0(0xfb)+(_0x53d51e instanceof Error?_0x53d51e[_0x5675d0(0x102)]:String(_0x53d51e)));}}catch(_0x53c433){if(_0x53c433 instanceof SDKError)throw _0x53c433;if(_0x53c433 instanceof Error&&_0x5675d0(0xf4)in _0x53c433){const _0x4c0dbc=_0x53c433;if(_0x4c0dbc['code']==='ENOENT')throw new SDKError(ErrorCode[_0x5675d0(0xf0)],_0x5675d0(0xef)+_0x313f7c);else{if(_0x4c0dbc['code']===_0x5675d0(0xfe))throw new SDKError(ErrorCode[_0x5675d0(0xf8)],'Permission\x20denied\x20reading\x20file:\x20'+_0x313f7c);}}throw new SDKError(ErrorCode[_0x5675d0(0x103)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x53c433 instanceof Error?_0x53c433[_0x5675d0(0x102)]:String(_0x53c433)));}}export async function loadJSONFromOptions(_0x322d8a,_0x54fa68){const _0x19ffbe=a103_0x31ba;if(_0x322d8a&&_0x54fa68)throw new SDKError(ErrorCode[_0x19ffbe(0xfc)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x322d8a)return await loadJSON(_0x322d8a,![]);if(_0x54fa68)return await loadJSON(_0x54fa68,!![]);return undefined;}
1
+ (function(_0xcdf1ec,_0x3b8226){const _0xeb83d9=a103_0x23a1,_0x2b36c4=_0xcdf1ec();while(!![]){try{const _0x27e36b=parseInt(_0xeb83d9(0x1b0))/0x1*(parseInt(_0xeb83d9(0x1b2))/0x2)+parseInt(_0xeb83d9(0x1ae))/0x3*(-parseInt(_0xeb83d9(0x1a5))/0x4)+-parseInt(_0xeb83d9(0x1af))/0x5*(parseInt(_0xeb83d9(0x1b3))/0x6)+parseInt(_0xeb83d9(0x1bb))/0x7*(-parseInt(_0xeb83d9(0x1a8))/0x8)+-parseInt(_0xeb83d9(0x1b9))/0x9+-parseInt(_0xeb83d9(0x1ac))/0xa*(parseInt(_0xeb83d9(0x1ba))/0xb)+parseInt(_0xeb83d9(0x1b1))/0xc;if(_0x27e36b===_0x3b8226)break;else _0x2b36c4['push'](_0x2b36c4['shift']());}catch(_0x457439){_0x2b36c4['push'](_0x2b36c4['shift']());}}}(a103_0x12af,0x9cfe7));function a103_0x12af(){const _0x1339e0=['INTERNAL','Invalid\x20JSON\x20in\x20file\x20\x27','4092472YPaVsq','Failed\x20to\x20load\x20JSON:\x20','ENOENT','code','469240gipzha','Invalid\x20JSON\x20string:\x20','3kdGEux','1659525ZqOwnm','14CCJcCQ','48101448wVtThc','15534OwTQKP','18NDRRHn','EACCES','message','NOT_FOUND','PERMISSION_DENIED','utf-8','7089498NstAQG','88iHXXIy','14QiYJqM','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INVALID_ARGUMENT','1168792eoXlOa'];a103_0x12af=function(){return _0x1339e0;};return a103_0x12af();}function a103_0x23a1(_0xa5a74f,_0x1250c6){_0xa5a74f=_0xa5a74f-0x1a5;const _0x12af74=a103_0x12af();let _0x23a169=_0x12af74[_0xa5a74f];return _0x23a169;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x258a94,_0x1e60d7){const _0x54a18c=a103_0x23a1;try{if(_0x1e60d7){const _0x7b3fb=await readFile(_0x258a94,_0x54a18c(0x1b8));try{return JSON['parse'](_0x7b3fb);}catch(_0x54aff9){throw new SDKError(ErrorCode[_0x54a18c(0x1bd)],_0x54a18c(0x1a7)+_0x258a94+'\x27:\x20'+(_0x54aff9 instanceof Error?_0x54aff9['message']:String(_0x54aff9)));}}else try{return JSON['parse'](_0x258a94);}catch(_0xe80077){throw new SDKError(ErrorCode[_0x54a18c(0x1bd)],_0x54a18c(0x1ad)+(_0xe80077 instanceof Error?_0xe80077[_0x54a18c(0x1b5)]:String(_0xe80077)));}}catch(_0x14bd16){if(_0x14bd16 instanceof SDKError)throw _0x14bd16;if(_0x14bd16 instanceof Error&&_0x54a18c(0x1ab)in _0x14bd16){const _0x3f41d3=_0x14bd16;if(_0x3f41d3[_0x54a18c(0x1ab)]===_0x54a18c(0x1aa))throw new SDKError(ErrorCode[_0x54a18c(0x1b6)],'File\x20not\x20found:\x20'+_0x258a94);else{if(_0x3f41d3[_0x54a18c(0x1ab)]===_0x54a18c(0x1b4))throw new SDKError(ErrorCode[_0x54a18c(0x1b7)],'Permission\x20denied\x20reading\x20file:\x20'+_0x258a94);}}throw new SDKError(ErrorCode[_0x54a18c(0x1a6)],_0x54a18c(0x1a9)+(_0x14bd16 instanceof Error?_0x14bd16['message']:String(_0x14bd16)));}}export async function loadJSONFromOptions(_0x37ad57,_0x51006d){const _0x398e47=a103_0x23a1;if(_0x37ad57&&_0x51006d)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x398e47(0x1bc));if(_0x37ad57)return await loadJSON(_0x37ad57,![]);if(_0x51006d)return await loadJSON(_0x51006d,!![]);return undefined;}
@@ -1 +1 @@
1
- function a104_0xef70(_0x2c2dbe,_0x244031){_0x2c2dbe=_0x2c2dbe-0x105;const _0xa84d51=a104_0xa84d();let _0xef7042=_0xa84d51[_0x2c2dbe];return _0xef7042;}(function(_0x98e20a,_0x598556){const _0x383ed0=a104_0xef70,_0x371493=_0x98e20a();while(!![]){try{const _0x4f77b4=-parseInt(_0x383ed0(0x105))/0x1+parseInt(_0x383ed0(0x111))/0x2+parseInt(_0x383ed0(0x115))/0x3+parseInt(_0x383ed0(0x109))/0x4*(-parseInt(_0x383ed0(0x10c))/0x5)+parseInt(_0x383ed0(0x10b))/0x6*(parseInt(_0x383ed0(0x107))/0x7)+parseInt(_0x383ed0(0x10f))/0x8*(-parseInt(_0x383ed0(0x10d))/0x9)+parseInt(_0x383ed0(0x10e))/0xa*(parseInt(_0x383ed0(0x108))/0xb);if(_0x4f77b4===_0x598556)break;else _0x371493['push'](_0x371493['shift']());}catch(_0x2c3bde){_0x371493['push'](_0x371493['shift']());}}}(a104_0xa84d,0x70054));export function canCreateAgent(_0x342e4a,_0xabfc0c){const _0xb13e22=a104_0xef70;for(const _0x57b3f4 of _0x342e4a['attributes'][_0xb13e22(0x114)]){if(_0x57b3f4[_0xb13e22(0x110)]&&!_0xabfc0c['has'](_0x57b3f4[_0xb13e22(0x110)]))return![];}return!![];}export function remapToolIds(_0x5cca7f,_0x4fb115,_0xad024f){const _0x50cc43=a104_0xef70;return _0x5cca7f[_0x50cc43(0x106)](_0x167ba3=>({..._0x167ba3,'targetKnowledgeBaseId':_0x167ba3[_0x50cc43(0x112)]?_0x4fb115['get'](_0x167ba3[_0x50cc43(0x112)])||_0x167ba3['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x167ba3[_0x50cc43(0x110)]?_0xad024f['get'](_0x167ba3[_0x50cc43(0x110)])||_0x167ba3['targetAgentId']:undefined}));}function a104_0xa84d(){const _0x5265fd=['4538936codAiW','targetAgentId','201644siLJNf','targetKnowledgeBaseId','get','tools','534045iguryN','907119BzVwZH','map','7WuedbT','55TJTJVj','208768STNfGZ','1.0','1946628QYqMZy','70mCRFxB','9MJsdmZ','4121470OvKIUA'];a104_0xa84d=function(){return _0x5265fd;};return a104_0xa84d();}export function remapVariableIds(_0x49822a,_0x282318){const _0x3ac243=a104_0xef70;return _0x49822a['map'](_0x1a9caf=>({..._0x1a9caf,'targetKnowledgeBaseId':_0x282318[_0x3ac243(0x113)](_0x1a9caf[_0x3ac243(0x112)])||_0x1a9caf[_0x3ac243(0x112)]}));}export function isSupportedBackupVersion(_0x1b3e9a){const _0x2477ea=a104_0xef70;return _0x1b3e9a===_0x2477ea(0x10a);}
1
+ (function(_0x322503,_0x196ff6){const _0x4261bc=a104_0x152b,_0x516706=_0x322503();while(!![]){try{const _0x2e16c5=parseInt(_0x4261bc(0x1b6))/0x1*(-parseInt(_0x4261bc(0x1b9))/0x2)+-parseInt(_0x4261bc(0x1b0))/0x3*(parseInt(_0x4261bc(0x1b5))/0x4)+parseInt(_0x4261bc(0x1c1))/0x5+parseInt(_0x4261bc(0x1af))/0x6*(-parseInt(_0x4261bc(0x1ae))/0x7)+parseInt(_0x4261bc(0x1bb))/0x8*(parseInt(_0x4261bc(0x1b1))/0x9)+parseInt(_0x4261bc(0x1c0))/0xa*(-parseInt(_0x4261bc(0x1bd))/0xb)+parseInt(_0x4261bc(0x1bf))/0xc;if(_0x2e16c5===_0x196ff6)break;else _0x516706['push'](_0x516706['shift']());}catch(_0x538a5b){_0x516706['push'](_0x516706['shift']());}}}(a104_0x247e,0xb8b8a));export function canCreateAgent(_0x287964,_0x5799c5){const _0xcae0fc=a104_0x152b;for(const _0xa28320 of _0x287964[_0xcae0fc(0x1b8)][_0xcae0fc(0x1b7)]){if(_0xa28320[_0xcae0fc(0x1b2)]&&!_0x5799c5[_0xcae0fc(0x1b3)](_0xa28320[_0xcae0fc(0x1b2)]))return![];}return!![];}export function remapToolIds(_0xaf1e7,_0xa4d887,_0x108325){const _0x18a1c1=a104_0x152b;return _0xaf1e7[_0x18a1c1(0x1ba)](_0x1a70ba=>({..._0x1a70ba,'targetKnowledgeBaseId':_0x1a70ba['targetKnowledgeBaseId']?_0xa4d887['get'](_0x1a70ba[_0x18a1c1(0x1b4)])||_0x1a70ba[_0x18a1c1(0x1b4)]:undefined,'targetAgentId':_0x1a70ba[_0x18a1c1(0x1b2)]?_0x108325[_0x18a1c1(0x1bc)](_0x1a70ba['targetAgentId'])||_0x1a70ba[_0x18a1c1(0x1b2)]:undefined}));}function a104_0x247e(){const _0x31c8d4=['18230LGxiQm','3324950sapbfw','56dWdtGq','929364jXYQfg','33MjdYhJ','1917117PscIER','targetAgentId','has','targetKnowledgeBaseId','517652aHjPbu','1SwdJKy','tools','attributes','2283942MWUMfp','map','56ESVfRh','get','8074AafUsz','1.0','44919420ZtuPTG'];a104_0x247e=function(){return _0x31c8d4;};return a104_0x247e();}function a104_0x152b(_0x31712f,_0x12eb68){_0x31712f=_0x31712f-0x1ae;const _0x247ee3=a104_0x247e();let _0x152b1e=_0x247ee3[_0x31712f];return _0x152b1e;}export function remapVariableIds(_0x257990,_0x913711){const _0x23798e=a104_0x152b;return _0x257990['map'](_0x18bd57=>({..._0x18bd57,'targetKnowledgeBaseId':_0x913711[_0x23798e(0x1bc)](_0x18bd57[_0x23798e(0x1b4)])||_0x18bd57[_0x23798e(0x1b4)]}));}export function isSupportedBackupVersion(_0x1e9d5c){const _0x4a2707=a104_0x152b;return _0x1e9d5c===_0x4a2707(0x1be);}
@@ -1 +1 @@
1
- const a105_0x482fb6=a105_0xf98e;(function(_0xfa2131,_0x5e15b5){const _0x5070b4=a105_0xf98e,_0x198c79=_0xfa2131();while(!![]){try{const _0x48c439=-parseInt(_0x5070b4(0xae))/0x1*(-parseInt(_0x5070b4(0xb6))/0x2)+-parseInt(_0x5070b4(0xb5))/0x3+-parseInt(_0x5070b4(0xba))/0x4+-parseInt(_0x5070b4(0xb3))/0x5*(parseInt(_0x5070b4(0xb8))/0x6)+-parseInt(_0x5070b4(0xb2))/0x7+parseInt(_0x5070b4(0xaf))/0x8*(-parseInt(_0x5070b4(0xb9))/0x9)+-parseInt(_0x5070b4(0xb0))/0xa*(-parseInt(_0x5070b4(0xb4))/0xb);if(_0x48c439===_0x5e15b5)break;else _0x198c79['push'](_0x198c79['shift']());}catch(_0x3790da){_0x198c79['push'](_0x198c79['shift']());}}}(a105_0x24fa,0x56b66));function a105_0xf98e(_0x507525,_0x28a64c){_0x507525=_0x507525-0xac;const _0x24fa7d=a105_0x24fa();let _0xf98eb1=_0x24fa7d[_0x507525];return _0xf98eb1;}const MODEL_ALIASES={'haiku':a105_0x482fb6(0xad),'sonnet':a105_0x482fb6(0xac)};function a105_0x24fa(){const _0x119b79=['match','1626474wuJmCc','1600794yQPKke','1811488eQoYay','claude-4.5-sonnet','claude-4.5-haiku','241YRZCEW','16vaAwCQ','9968110yegQIl','toLowerCase','3168417GbMCKd','10zCDFOz','22nJbZlK','339507RxaOkA','2308uibagT'];a105_0x24fa=function(){return _0x119b79;};return a105_0x24fa();}export function extractModelAlias(_0x543d4a){const _0x1e881b=a105_0x482fb6,_0xfc5a9b=_0x543d4a[_0x1e881b(0xb7)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0xfc5a9b)return _0xfc5a9b[0x1][_0x1e881b(0xb1)]();return _0x543d4a;}export function resolveModelAlias(_0x33465f){const _0x302fb6=a105_0x482fb6;return MODEL_ALIASES[_0x33465f[_0x302fb6(0xb1)]()]||_0x33465f;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a105_0x52be9a=a105_0x89ca;(function(_0x55f005,_0x242745){const _0x483dab=a105_0x89ca,_0x2f011f=_0x55f005();while(!![]){try{const _0x44a68a=parseInt(_0x483dab(0x83))/0x1*(parseInt(_0x483dab(0x7d))/0x2)+parseInt(_0x483dab(0x7c))/0x3*(-parseInt(_0x483dab(0x79))/0x4)+-parseInt(_0x483dab(0x77))/0x5+-parseInt(_0x483dab(0x7b))/0x6*(parseInt(_0x483dab(0x78))/0x7)+-parseInt(_0x483dab(0x7f))/0x8+-parseInt(_0x483dab(0x7a))/0x9+-parseInt(_0x483dab(0x7e))/0xa*(-parseInt(_0x483dab(0x82))/0xb);if(_0x44a68a===_0x242745)break;else _0x2f011f['push'](_0x2f011f['shift']());}catch(_0x5e6726){_0x2f011f['push'](_0x2f011f['shift']());}}}(a105_0x4f30,0xcf757));const MODEL_ALIASES={'haiku':a105_0x52be9a(0x80),'sonnet':'claude-4.5-sonnet'};function a105_0x4f30(){const _0x21508f=['claude-4.5-haiku','toLowerCase','143eyKZPz','32125JZqlbG','5653855XVuNwG','7iBuZdp','12KUfdrt','4813722FijhVh','4220286ZyFUEa','423210jGjsPR','4rRGSjE','3017990mVEnVV','2765328qHbybg'];a105_0x4f30=function(){return _0x21508f;};return a105_0x4f30();}export function extractModelAlias(_0x1b3ff4){const _0x43896d=_0x1b3ff4['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x43896d)return _0x43896d[0x1]['toLowerCase']();return _0x1b3ff4;}export function resolveModelAlias(_0x52aadb){const _0x1155ab=a105_0x52be9a;return MODEL_ALIASES[_0x52aadb[_0x1155ab(0x81)]()]||_0x52aadb;}function a105_0x89ca(_0x56a524,_0x4c8afb){_0x56a524=_0x56a524-0x77;const _0x4f3055=a105_0x4f30();let _0x89ca24=_0x4f3055[_0x56a524];return _0x89ca24;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x236c7f,_0x577f96){const _0x531338=a106_0x528c,_0x567793=_0x236c7f();while(!![]){try{const _0x514342=parseInt(_0x531338(0x19c))/0x1*(parseInt(_0x531338(0x192))/0x2)+-parseInt(_0x531338(0x189))/0x3*(-parseInt(_0x531338(0x193))/0x4)+parseInt(_0x531338(0x187))/0x5*(parseInt(_0x531338(0x199))/0x6)+-parseInt(_0x531338(0x18b))/0x7+parseInt(_0x531338(0x18a))/0x8+parseInt(_0x531338(0x196))/0x9+parseInt(_0x531338(0x197))/0xa*(-parseInt(_0x531338(0x198))/0xb);if(_0x514342===_0x577f96)break;else _0x567793['push'](_0x567793['shift']());}catch(_0x907321){_0x567793['push'](_0x567793['shift']());}}}(a106_0x2fa3,0x5fb23));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};function a106_0x2fa3(){const _0x4d50ab=['Sonnet\x204','6596154ZJlbrB','33290TLANYa','4950BNzxAn','42PAqwbT','default','toLocaleString','67Ttffin','sonnet','Sonnet\x204.5','Opus\x204','round','toLowerCase','457630rsMgTr','Opus\x204.5','27003kjUMdE','6027072dpudhY','4106935dvErot','4.5','opus','haiku','Haiku\x204.5','Claude','includes','4798GpEnar','84Bwgsce','4-5'];a106_0x2fa3=function(){return _0x4d50ab;};return a106_0x2fa3();}export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x23418a){const _0x2ffc60=a106_0x528c,_0x3c3311=_0x23418a[_0x2ffc60(0x186)]();if(MODEL_FACTORS[_0x3c3311])return MODEL_FACTORS[_0x3c3311];if(_0x3c3311['includes'](_0x2ffc60(0x182)))return MODEL_FACTORS['sonnet'];if(_0x3c3311[_0x2ffc60(0x191)](_0x2ffc60(0x18e)))return MODEL_FACTORS[_0x2ffc60(0x18e)];if(_0x3c3311['includes'](_0x2ffc60(0x18d)))return MODEL_FACTORS['opus'];return MODEL_FACTORS[_0x2ffc60(0x182)];}export function getContextLimit(_0x58edf4){const _0x4d56bd=a106_0x528c,_0x1ea927=_0x58edf4[_0x4d56bd(0x186)]();if(_0x1ea927[_0x4d56bd(0x191)](_0x4d56bd(0x182)))return CONTEXT_LIMITS['sonnet'];if(_0x1ea927['includes'](_0x4d56bd(0x18e)))return CONTEXT_LIMITS[_0x4d56bd(0x18e)];if(_0x1ea927[_0x4d56bd(0x191)](_0x4d56bd(0x18d)))return CONTEXT_LIMITS['opus'];return CONTEXT_LIMITS[_0x4d56bd(0x19a)];}function a106_0x528c(_0x147c57,_0x399c1d){_0x147c57=_0x147c57-0x182;const _0x2fa3c2=a106_0x2fa3();let _0x528c4b=_0x2fa3c2[_0x147c57];return _0x528c4b;}export function calculateChatUnit(_0x2b1182,_0x1dc42b,_0x12c02d){return(_0x2b1182+_0x1dc42b)/0x1388*_0x12c02d;}export function calculateCredits(_0x1abf9a){return _0x1abf9a/0x2904;}export function getModelDisplayName(_0x228eba){const _0x29f425=a106_0x528c,_0x3bdc9a=_0x228eba[_0x29f425(0x186)]();if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x182))){if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x194))||_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x18c)))return _0x29f425(0x183);return _0x29f425(0x195);}if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x18e))){if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x194))||_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x18c)))return _0x29f425(0x18f);return'Haiku\x204';}if(_0x3bdc9a['includes'](_0x29f425(0x18d))){if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x194))||_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x18c)))return _0x29f425(0x188);return _0x29f425(0x184);}return _0x29f425(0x190);}export function formatTokenCount(_0x5a0fa4){const _0x296c65=a106_0x528c;return _0x5a0fa4[_0x296c65(0x19b)]('en-US');}export function calculateContextPercentage(_0x5c2570,_0x53e123){const _0xbe5425=a106_0x528c,_0x544a19=getContextLimit(_0x53e123);return Math[_0xbe5425(0x185)](_0x5c2570/_0x544a19*0x64);}
1
+ (function(_0x46496b,_0xf37096){const _0x424ae0=a106_0x1463,_0xbfa32b=_0x46496b();while(!![]){try{const _0x2144b6=parseInt(_0x424ae0(0xfb))/0x1*(-parseInt(_0x424ae0(0xff))/0x2)+parseInt(_0x424ae0(0xf5))/0x3*(-parseInt(_0x424ae0(0x100))/0x4)+-parseInt(_0x424ae0(0xfd))/0x5*(parseInt(_0x424ae0(0xfc))/0x6)+parseInt(_0x424ae0(0xee))/0x7+-parseInt(_0x424ae0(0x106))/0x8+parseInt(_0x424ae0(0x105))/0x9*(parseInt(_0x424ae0(0xed))/0xa)+parseInt(_0x424ae0(0x102))/0xb*(parseInt(_0x424ae0(0xf1))/0xc);if(_0x2144b6===_0xf37096)break;else _0xbfa32b['push'](_0xbfa32b['shift']());}catch(_0x4cbb83){_0xbfa32b['push'](_0xbfa32b['shift']());}}}(a106_0x4771,0x94d0e));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};function a106_0x1463(_0x4613ed,_0x23c484){_0x4613ed=_0x4613ed-0xed;const _0x47717b=a106_0x4771();let _0x146352=_0x47717b[_0x4613ed];return _0x146352;}export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x10ea9d){const _0x2299f9=a106_0x1463,_0x5c285e=_0x10ea9d['toLowerCase']();if(MODEL_FACTORS[_0x5c285e])return MODEL_FACTORS[_0x5c285e];if(_0x5c285e[_0x2299f9(0x101)]('sonnet'))return MODEL_FACTORS['sonnet'];if(_0x5c285e['includes']('haiku'))return MODEL_FACTORS[_0x2299f9(0xf4)];if(_0x5c285e[_0x2299f9(0x101)]('opus'))return MODEL_FACTORS['opus'];return MODEL_FACTORS['sonnet'];}export function getContextLimit(_0x280978){const _0x3d2564=a106_0x1463,_0x1ed733=_0x280978['toLowerCase']();if(_0x1ed733['includes'](_0x3d2564(0xf9)))return CONTEXT_LIMITS[_0x3d2564(0xf9)];if(_0x1ed733['includes'](_0x3d2564(0xf4)))return CONTEXT_LIMITS[_0x3d2564(0xf4)];if(_0x1ed733[_0x3d2564(0x101)](_0x3d2564(0xef)))return CONTEXT_LIMITS[_0x3d2564(0xef)];return CONTEXT_LIMITS['default'];}export function calculateChatUnit(_0x2cc17d,_0x5de302,_0x1ca91f){return(_0x2cc17d+_0x5de302)/0x1388*_0x1ca91f;}export function calculateCredits(_0x2f8c00){return _0x2f8c00/0x2904;}export function getModelDisplayName(_0x3814de){const _0x1ba4bd=a106_0x1463,_0x41df43=_0x3814de['toLowerCase']();if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf9))){if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf8))||_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf6)))return _0x1ba4bd(0xf3);return _0x1ba4bd(0xfa);}if(_0x41df43['includes']('haiku')){if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf8))||_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf6)))return'Haiku\x204.5';return _0x1ba4bd(0x103);}if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xef))){if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf8))||_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf6)))return _0x1ba4bd(0xf7);return _0x1ba4bd(0x104);}return _0x1ba4bd(0xf2);}function a106_0x4771(){const _0x19a4ca=['haiku','3nZloln','4.5','Opus\x204.5','4-5','sonnet','Sonnet\x204','629vLvBcL','216buBUHX','90445ipvMHj','round','914BZJvKN','2769872tEXALc','includes','1973279FRGeBH','Haiku\x204','Opus\x204','18WxlGpw','5202704IxEcvc','2542640TLpxmt','352996NCCjue','opus','toLocaleString','156LrwGIQ','Claude','Sonnet\x204.5'];a106_0x4771=function(){return _0x19a4ca;};return a106_0x4771();}export function formatTokenCount(_0x18a1f0){const _0x54352e=a106_0x1463;return _0x18a1f0[_0x54352e(0xf0)]('en-US');}export function calculateContextPercentage(_0x116294,_0x3de268){const _0x40d3ee=a106_0x1463,_0x14168d=getContextLimit(_0x3de268);return Math[_0x40d3ee(0xfe)](_0x116294/_0x14168d*0x64);}
@@ -1 +1 @@
1
- (function(_0x149ee3,_0x32cdbf){const _0x2c57dc=a107_0x2ada,_0x5608ae=_0x149ee3();while(!![]){try{const _0xc4f139=-parseInt(_0x2c57dc(0x195))/0x1*(parseInt(_0x2c57dc(0x199))/0x2)+-parseInt(_0x2c57dc(0x190))/0x3+-parseInt(_0x2c57dc(0x191))/0x4*(-parseInt(_0x2c57dc(0x18e))/0x5)+-parseInt(_0x2c57dc(0x18f))/0x6+-parseInt(_0x2c57dc(0x198))/0x7*(parseInt(_0x2c57dc(0x189))/0x8)+parseInt(_0x2c57dc(0x196))/0x9*(parseInt(_0x2c57dc(0x18d))/0xa)+parseInt(_0x2c57dc(0x192))/0xb;if(_0xc4f139===_0x32cdbf)break;else _0x5608ae['push'](_0x5608ae['shift']());}catch(_0x50dd09){_0x5608ae['push'](_0x5608ae['shift']());}}}(a107_0x3a5b,0xb01a0));export function validateLimitOption(_0x35e114){const _0x537ad9=a107_0x2ada;if(!Number[_0x537ad9(0x197)](_0x35e114))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x35e114+'.\x20Must\x20be\x20an\x20integer.'};if(_0x35e114<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x35e114+_0x537ad9(0x18a)};return{'isValid':!![],'value':_0x35e114};}export function validateTimeoutOption(_0x1ab88d,_0x2ff23c=0x1e){const _0x12a98a=a107_0x2ada;if(_0x1ab88d===undefined)return{'isValid':!![],'value':_0x2ff23c};const _0x2cf78e=typeof _0x1ab88d===_0x12a98a(0x18b)?_0x1ab88d:parseFloat(_0x1ab88d);if(isNaN(_0x2cf78e))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x1ab88d+_0x12a98a(0x18c)};if(_0x2cf78e<=0x0)return{'isValid':![],'error':_0x12a98a(0x194)+_0x2cf78e+_0x12a98a(0x193)};return{'isValid':!![],'value':_0x2cf78e};}function a107_0x2ada(_0x313db3,_0x4475b3){_0x313db3=_0x313db3-0x189;const _0x3a5b69=a107_0x3a5b();let _0x2ada80=_0x3a5b69[_0x313db3];return _0x2ada80;}function a107_0x3a5b(){const _0x232a1b=['.\x20Must\x20be\x20a\x20positive\x20integer.','number','.\x20Must\x20be\x20a\x20number.','244160AdtkLU','771370zEHQkb','2820198IvmAOW','3396747AUCcjT','8mASaIU','27854563pUIetj','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20timeout\x20value:\x20','1XLcnnL','90wrVogO','isInteger','3836obGkmX','775222lRIjRi','5456MwMaLA'];a107_0x3a5b=function(){return _0x232a1b;};return a107_0x3a5b();}
1
+ (function(_0x12f2dd,_0x1fad9e){const _0xdbdba7=a107_0x3f01,_0x54fc49=_0x12f2dd();while(!![]){try{const _0x59fb34=-parseInt(_0xdbdba7(0x137))/0x1*(parseInt(_0xdbdba7(0x138))/0x2)+-parseInt(_0xdbdba7(0x136))/0x3+parseInt(_0xdbdba7(0x145))/0x4+-parseInt(_0xdbdba7(0x140))/0x5*(-parseInt(_0xdbdba7(0x13f))/0x6)+-parseInt(_0xdbdba7(0x143))/0x7*(-parseInt(_0xdbdba7(0x13c))/0x8)+-parseInt(_0xdbdba7(0x141))/0x9*(-parseInt(_0xdbdba7(0x144))/0xa)+-parseInt(_0xdbdba7(0x139))/0xb;if(_0x59fb34===_0x1fad9e)break;else _0x54fc49['push'](_0x54fc49['shift']());}catch(_0x29993f){_0x54fc49['push'](_0x54fc49['shift']());}}}(a107_0x371e,0x9eea0));export function validateLimitOption(_0x575e80){const _0x2b6494=a107_0x3f01;if(!Number[_0x2b6494(0x135)](_0x575e80))return{'isValid':![],'error':_0x2b6494(0x13b)+_0x575e80+'.\x20Must\x20be\x20an\x20integer.'};if(_0x575e80<=0x0)return{'isValid':![],'error':_0x2b6494(0x13b)+_0x575e80+_0x2b6494(0x142)};return{'isValid':!![],'value':_0x575e80};}function a107_0x3f01(_0x2118b9,_0x60f031){_0x2118b9=_0x2118b9-0x135;const _0x371eaf=a107_0x371e();let _0x3f01e9=_0x371eaf[_0x2118b9];return _0x3f01e9;}export function validateTimeoutOption(_0x1e12c6,_0x29bd32=0x1e){const _0x1431c3=a107_0x3f01;if(_0x1e12c6===undefined)return{'isValid':!![],'value':_0x29bd32};const _0x90b0a6=typeof _0x1e12c6==='number'?_0x1e12c6:parseFloat(_0x1e12c6);if(isNaN(_0x90b0a6))return{'isValid':![],'error':_0x1431c3(0x13e)+_0x1e12c6+_0x1431c3(0x13a)};if(_0x90b0a6<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x90b0a6+_0x1431c3(0x13d)};return{'isValid':!![],'value':_0x90b0a6};}function a107_0x371e(){const _0x43cb6d=['150AnVGUK','1208524VNOHtG','isInteger','848013hoxrJm','44483oVNohn','2CZcYiH','11399058lGoETR','.\x20Must\x20be\x20a\x20number.','Invalid\x20limit\x20value:\x20','1521048GztZOA','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20timeout\x20value:\x20','6qdAaTi','6187960nYhJnD','170694MkJTng','.\x20Must\x20be\x20a\x20positive\x20integer.','7Arnnor'];a107_0x371e=function(){return _0x43cb6d;};return a107_0x371e();}
@@ -1 +1 @@
1
- function a108_0x1b18(_0x5cf814,_0x11a17b){_0x5cf814=_0x5cf814-0x1d7;const _0xa60dc1=a108_0xa60d();let _0x1b182e=_0xa60dc1[_0x5cf814];return _0x1b182e;}(function(_0x27538f,_0x5d2886){const _0x40e3f1=a108_0x1b18,_0x16eeb9=_0x27538f();while(!![]){try{const _0x1a1f4f=-parseInt(_0x40e3f1(0x1e1))/0x1*(parseInt(_0x40e3f1(0x1da))/0x2)+parseInt(_0x40e3f1(0x1e5))/0x3*(-parseInt(_0x40e3f1(0x1e0))/0x4)+parseInt(_0x40e3f1(0x1e6))/0x5+-parseInt(_0x40e3f1(0x1e8))/0x6+-parseInt(_0x40e3f1(0x1db))/0x7*(parseInt(_0x40e3f1(0x1df))/0x8)+-parseInt(_0x40e3f1(0x1dc))/0x9+parseInt(_0x40e3f1(0x1d7))/0xa;if(_0x1a1f4f===_0x5d2886)break;else _0x16eeb9['push'](_0x16eeb9['shift']());}catch(_0x29f43e){_0x16eeb9['push'](_0x16eeb9['shift']());}}}(a108_0xa60d,0x2706e));function a108_0xa60d(){const _0x422506=['No\x20available\x20port\x20found\x20between\x20','\x20and\x20','15jKALiQ','1356760sPGNbP','0.0.0.0','942564akdesj','EADDRINUSE','9344780AASYvv','close','listening','66718RwEGPU','144375xwrVoV','1876770wtcKMY','listen','once','112orImhn','99784BTTNBR','8gjklVy','code'];a108_0xa60d=function(){return _0x422506;};return a108_0xa60d();}import{createServer}from'node:net';export async function isPortAvailable(_0x318c15){return new Promise(_0x3a78eb=>{const _0x557d72=a108_0x1b18,_0x2f5d2e=createServer();_0x2f5d2e['once']('error',_0x413e60=>{const _0x37195a=a108_0x1b18;_0x413e60[_0x37195a(0x1e2)]===_0x37195a(0x1e9)?_0x3a78eb(![]):_0x3a78eb(![]);}),_0x2f5d2e[_0x557d72(0x1de)](_0x557d72(0x1d9),()=>{const _0xc77d0=_0x557d72;_0x2f5d2e[_0xc77d0(0x1d8)](),_0x3a78eb(!![]);}),_0x2f5d2e[_0x557d72(0x1dd)](_0x318c15,_0x557d72(0x1e7));});}export async function findAvailablePort(_0x45da44=0xfa0,_0x34a1d0=0x64){const _0x2c5553=a108_0x1b18;for(let _0x4e114d=0x0;_0x4e114d<_0x34a1d0;_0x4e114d++){const _0x4f1f95=_0x45da44+_0x4e114d;if(await isPortAvailable(_0x4f1f95))return _0x4f1f95;}throw new Error(_0x2c5553(0x1e3)+_0x45da44+_0x2c5553(0x1e4)+(_0x45da44+_0x34a1d0-0x1));}
1
+ (function(_0x34a7df,_0x257c02){const _0x458291=a108_0x263d,_0x569369=_0x34a7df();while(!![]){try{const _0x3bcb64=parseInt(_0x458291(0xa3))/0x1*(parseInt(_0x458291(0x99))/0x2)+-parseInt(_0x458291(0x92))/0x3*(-parseInt(_0x458291(0x9a))/0x4)+-parseInt(_0x458291(0x9c))/0x5*(-parseInt(_0x458291(0xa1))/0x6)+-parseInt(_0x458291(0x96))/0x7*(-parseInt(_0x458291(0x9d))/0x8)+parseInt(_0x458291(0x93))/0x9+parseInt(_0x458291(0x97))/0xa+parseInt(_0x458291(0xa5))/0xb*(-parseInt(_0x458291(0x98))/0xc);if(_0x3bcb64===_0x257c02)break;else _0x569369['push'](_0x569369['shift']());}catch(_0x2c56fc){_0x569369['push'](_0x569369['shift']());}}}(a108_0x4c04,0x3e73b));import{createServer}from'node:net';function a108_0x4c04(){const _0x4b0d98=['4128192WYiflo','close','once','3163783uQfvAC','3618330kpDsaM','933456Bvsnks','324814ctTEaJ','8eazzIq','No\x20available\x20port\x20found\x20between\x20','10lcOgVz','8PYQBaZ','listening','EADDRINUSE','0.0.0.0','997866spRogU','\x20and\x20','3RMhEZh','code','330addTtB','listen','745665VzjdZM'];a108_0x4c04=function(){return _0x4b0d98;};return a108_0x4c04();}function a108_0x263d(_0x2f5464,_0x393bd4){_0x2f5464=_0x2f5464-0x91;const _0x4c0432=a108_0x4c04();let _0x263d76=_0x4c0432[_0x2f5464];return _0x263d76;}export async function isPortAvailable(_0x3d05be){return new Promise(_0x5393f6=>{const _0xf29e95=a108_0x263d,_0x21007c=createServer();_0x21007c[_0xf29e95(0x95)]('error',_0x25f664=>{const _0x343b59=_0xf29e95;_0x25f664[_0x343b59(0xa4)]===_0x343b59(0x9f)?_0x5393f6(![]):_0x5393f6(![]);}),_0x21007c[_0xf29e95(0x95)](_0xf29e95(0x9e),()=>{const _0x55ffb0=_0xf29e95;_0x21007c[_0x55ffb0(0x94)](),_0x5393f6(!![]);}),_0x21007c[_0xf29e95(0x91)](_0x3d05be,_0xf29e95(0xa0));});}export async function findAvailablePort(_0x410ec7=0xfa0,_0x84fa29=0x64){const _0x272426=a108_0x263d;for(let _0x3aa1ad=0x0;_0x3aa1ad<_0x84fa29;_0x3aa1ad++){const _0x1e8f06=_0x410ec7+_0x3aa1ad;if(await isPortAvailable(_0x1e8f06))return _0x1e8f06;}throw new Error(_0x272426(0x9b)+_0x410ec7+_0x272426(0xa2)+(_0x410ec7+_0x84fa29-0x1));}
@@ -1 +1 @@
1
- const a109_0x2755fc=a109_0xc791;(function(_0x5e76a9,_0x4b1990){const _0x39eb99=a109_0xc791,_0x21e855=_0x5e76a9();while(!![]){try{const _0x3a7cbc=parseInt(_0x39eb99(0x1ec))/0x1*(parseInt(_0x39eb99(0x1e4))/0x2)+-parseInt(_0x39eb99(0x1df))/0x3+parseInt(_0x39eb99(0x1db))/0x4*(-parseInt(_0x39eb99(0x1ea))/0x5)+parseInt(_0x39eb99(0x1e1))/0x6+parseInt(_0x39eb99(0x1fe))/0x7*(parseInt(_0x39eb99(0x1ee))/0x8)+parseInt(_0x39eb99(0x1e0))/0x9*(parseInt(_0x39eb99(0x1f9))/0xa)+parseInt(_0x39eb99(0x1f8))/0xb*(-parseInt(_0x39eb99(0x1fb))/0xc);if(_0x3a7cbc===_0x4b1990)break;else _0x21e855['push'](_0x21e855['shift']());}catch(_0x3ee959){_0x21e855['push'](_0x21e855['shift']());}}}(a109_0x580e,0xd607b));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a109_0x2755fc(0x1e3),'sh',a109_0x2755fc(0x1f3),a109_0x2755fc(0x1de),a109_0x2755fc(0x1ef),a109_0x2755fc(0x1e7),'dash',a109_0x2755fc(0x205),a109_0x2755fc(0x202),'nu',a109_0x2755fc(0x1eb),a109_0x2755fc(0x1f7),a109_0x2755fc(0x1fd)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a109_0x2755fc(0x1f4),a109_0x2755fc(0x1e9)]);function getProcessInfoWindows(_0x3d29b3){const _0x27386b=a109_0x2755fc;try{if(!Number[_0x27386b(0x1ff)](_0x3d29b3)||_0x3d29b3<=0x0)return null;const _0x59795e=execSync(_0x27386b(0x1fc)+_0x3d29b3+_0x27386b(0x1d9),{'encoding':_0x27386b(0x1dc),'windowsHide':!![]})[_0x27386b(0x1e5)](),_0x218b67=_0x59795e[_0x27386b(0x1ed)]('\x0a')['filter'](_0x30bb1f=>_0x30bb1f[_0x27386b(0x1e5)]());if(_0x218b67['length']<0x2)return null;const _0x3a65c4=_0x218b67[_0x218b67[_0x27386b(0x1f1)]-0x1][_0x27386b(0x1ed)](',');if(_0x3a65c4[_0x27386b(0x1f1)]<0x3)return null;const _0x18d6bf=_0x3a65c4[0x1]?.['trim']()||'',_0x2b1a42=parseInt(_0x3a65c4[0x2]?.[_0x27386b(0x1e5)]()||'0',0xa);if(isNaN(_0x2b1a42)||!_0x18d6bf)return null;return{'pid':_0x3d29b3,'ppid':_0x2b1a42,'comm':_0x18d6bf[_0x27386b(0x1f5)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x3fea3a){const _0x30e930=a109_0x2755fc;try{const _0x32bea1=0x400000;if(!Number[_0x30e930(0x1ff)](_0x3fea3a)||_0x3fea3a<=0x0||_0x3fea3a>_0x32bea1)return null;const _0x4ea339=execSync('ps\x20-p\x20'+_0x3fea3a+'\x20-o\x20ppid=,comm=',{'encoding':_0x30e930(0x1dc),'stdio':_0x30e930(0x201)})[_0x30e930(0x1e5)](),[_0x2153e4,..._0x24a22a]=_0x4ea339[_0x30e930(0x1ed)](/\s+/),_0x356037=parseInt(_0x2153e4,0xa),_0x38e294=_0x24a22a[_0x30e930(0x200)]('\x20');if(isNaN(_0x356037))return null;return{'pid':_0x3fea3a,'ppid':_0x356037,'comm':_0x38e294};}catch{return null;}}function a109_0xc791(_0x1853aa,_0xc65ff3){_0x1853aa=_0x1853aa-0x1d8;const _0x580ebc=a109_0x580e();let _0xc7911a=_0x580ebc[_0x1853aa];return _0xc7911a;}function getProcessInfo(_0x514986){const _0x4d61a2=a109_0x2755fc;if(process[_0x4d61a2(0x1e6)]==='win32')return getProcessInfoWindows(_0x514986);return getProcessInfoPosix(_0x514986);}function getBasename(_0x54c77f){const _0xfa633=a109_0x2755fc;return _0x54c77f[_0xfa633(0x1f5)](/^-/,'')[_0xfa633(0x1ed)]('/')['pop']()?.['toLowerCase']()||'';}function a109_0x580e(){const _0x1d9eaa=['trim','platform','csh','pid','cursor','10355lXBMzz','ion','58116xKJNOf','split','388600kXOKxZ','tcsh','win32','length','ignore','fish','code','replace','unref','elvish','1342CxSHVw','3078210njBNBr','ppid','80292lUbJGv','wmic\x20process\x20where\x20ProcessId=','xonsh','56IJdRvI','isInteger','join','pipe','powershell','start','has','pwsh','darwin','\x20get\x20ParentProcessId,Name\x20/format:csv','kill','1356PCPSBE','utf-8','xdg-open','ksh','1756182goczBr','45fegNOK','5270274fongnw','comm','zsh','6Qvjbgr'];a109_0x580e=function(){return _0x1d9eaa;};return a109_0x580e();}function isShell(_0x1a4df0){const _0x5c9fed=a109_0x2755fc;return SHELL_NAMES[_0x5c9fed(0x204)](getBasename(_0x1a4df0));}function isEphemeralShellSpawner(_0xe99121){const _0x3ad8b8=a109_0x2755fc;return EPHEMERAL_SHELL_SPAWNERS[_0x3ad8b8(0x204)](getBasename(_0xe99121));}let cachedShellPID;function findShellPID(){const _0x18aeba=a109_0x2755fc;if(process[_0x18aeba(0x1fa)]===undefined)return process[_0x18aeba(0x1e8)];let _0x49fa80=process[_0x18aeba(0x1fa)];const _0x3713e4=0xa;let _0x3ef523=0x0;while(_0x3ef523<_0x3713e4){const _0x52dc98=getProcessInfo(_0x49fa80);if(!_0x52dc98)break;if(isShell(_0x52dc98[_0x18aeba(0x1e2)])){const _0x1ef691=getProcessInfo(_0x52dc98[_0x18aeba(0x1fa)]);if(_0x1ef691&&isEphemeralShellSpawner(_0x1ef691[_0x18aeba(0x1e2)])){_0x49fa80=_0x52dc98[_0x18aeba(0x1fa)],_0x3ef523++;continue;}return _0x52dc98[_0x18aeba(0x1e8)];}if(_0x52dc98['ppid']===0x0||_0x52dc98[_0x18aeba(0x1fa)]===0x1){if(isShell(_0x52dc98[_0x18aeba(0x1e2)]))return _0x52dc98[_0x18aeba(0x1e8)];break;}_0x49fa80=_0x52dc98[_0x18aeba(0x1fa)],_0x3ef523++;}return process[_0x18aeba(0x1fa)]!==undefined?process[_0x18aeba(0x1fa)]:process[_0x18aeba(0x1e8)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x296255){const _0x2e0e34=a109_0x2755fc;if(!Number[_0x2e0e34(0x1ff)](_0x296255)||_0x296255<=0x0)return![];try{return process[_0x2e0e34(0x1da)](_0x296255,0x0),!![];}catch{return![];}}export function openBrowser(_0x11ca7a){const _0x1c4943=a109_0x2755fc,_0x36b507=process['platform'],_0x19d7d5=_0x36b507===_0x1c4943(0x1d8)?'open':_0x36b507===_0x1c4943(0x1f0)?_0x1c4943(0x203):_0x1c4943(0x1dd);spawn(_0x19d7d5,[_0x11ca7a],{'detached':!![],'stdio':_0x1c4943(0x1f2)})[_0x1c4943(0x1f6)]();}
1
+ const a109_0x5628c2=a109_0x1913;(function(_0x69042c,_0x554bf6){const _0x1c165b=a109_0x1913,_0x35f332=_0x69042c();while(!![]){try{const _0x2fdbfd=parseInt(_0x1c165b(0x15d))/0x1+-parseInt(_0x1c165b(0x14f))/0x2*(parseInt(_0x1c165b(0x153))/0x3)+-parseInt(_0x1c165b(0x164))/0x4+-parseInt(_0x1c165b(0x16b))/0x5*(parseInt(_0x1c165b(0x155))/0x6)+-parseInt(_0x1c165b(0x16e))/0x7*(-parseInt(_0x1c165b(0x152))/0x8)+-parseInt(_0x1c165b(0x169))/0x9+parseInt(_0x1c165b(0x168))/0xa;if(_0x2fdbfd===_0x554bf6)break;else _0x35f332['push'](_0x35f332['shift']());}catch(_0x3132e3){_0x35f332['push'](_0x35f332['shift']());}}}(a109_0x38b5,0xbc8f2));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a109_0x5628c2(0x173),'zsh','sh',a109_0x5628c2(0x162),a109_0x5628c2(0x15e),a109_0x5628c2(0x14c),'csh',a109_0x5628c2(0x16a),'pwsh',a109_0x5628c2(0x161),'nu','ion',a109_0x5628c2(0x16c),a109_0x5628c2(0x14e)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a109_0x5628c2(0x163),a109_0x5628c2(0x170),'cursor']);function getProcessInfoWindows(_0x393ebd){const _0x4debb7=a109_0x5628c2;try{if(!Number['isInteger'](_0x393ebd)||_0x393ebd<=0x0)return null;const _0x3d2301=execSync(_0x4debb7(0x159)+_0x393ebd+_0x4debb7(0x160),{'encoding':_0x4debb7(0x175),'windowsHide':!![]})['trim'](),_0x401d86=_0x3d2301[_0x4debb7(0x157)]('\x0a')[_0x4debb7(0x16f)](_0x53f784=>_0x53f784['trim']());if(_0x401d86[_0x4debb7(0x154)]<0x2)return null;const _0x19e2da=_0x401d86[_0x401d86[_0x4debb7(0x154)]-0x1][_0x4debb7(0x157)](',');if(_0x19e2da[_0x4debb7(0x154)]<0x3)return null;const _0x1f2078=_0x19e2da[0x1]?.[_0x4debb7(0x166)]()||'',_0x4c14b1=parseInt(_0x19e2da[0x2]?.[_0x4debb7(0x166)]()||'0',0xa);if(isNaN(_0x4c14b1)||!_0x1f2078)return null;return{'pid':_0x393ebd,'ppid':_0x4c14b1,'comm':_0x1f2078[_0x4debb7(0x172)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x5e3274){const _0x23c943=a109_0x5628c2;try{const _0x1c70bc=0x400000;if(!Number[_0x23c943(0x15f)](_0x5e3274)||_0x5e3274<=0x0||_0x5e3274>_0x1c70bc)return null;const _0x5be7fe=execSync(_0x23c943(0x151)+_0x5e3274+'\x20-o\x20ppid=,comm=',{'encoding':_0x23c943(0x175),'stdio':'pipe'})[_0x23c943(0x166)](),[_0x1c5533,..._0x5af6c7]=_0x5be7fe[_0x23c943(0x157)](/\s+/),_0x441844=parseInt(_0x1c5533,0xa),_0x3dda2f=_0x5af6c7[_0x23c943(0x14d)]('\x20');if(isNaN(_0x441844))return null;return{'pid':_0x5e3274,'ppid':_0x441844,'comm':_0x3dda2f};}catch{return null;}}function getProcessInfo(_0x5edc64){const _0x32b427=a109_0x5628c2;if(process['platform']===_0x32b427(0x15b))return getProcessInfoWindows(_0x5edc64);return getProcessInfoPosix(_0x5edc64);}function getBasename(_0x5ab559){const _0x43bb45=a109_0x5628c2;return _0x5ab559[_0x43bb45(0x172)](/^-/,'')[_0x43bb45(0x157)]('/')[_0x43bb45(0x167)]()?.['toLowerCase']()||'';}function isShell(_0x577fdb){const _0x2e5364=a109_0x5628c2;return SHELL_NAMES[_0x2e5364(0x171)](getBasename(_0x577fdb));}function a109_0x38b5(){const _0x12c170=['powershell','fish','claude','5542728nFRYXR','unref','trim','pop','41290870hgVXeV','10076913IhJdhG','dash','2237485iNmPQy','elvish','platform','778351LWTkET','filter','code','has','replace','bash','xdg-open','utf-8','open','tcsh','join','xonsh','1475374PcFhhG','kill','ps\x20-p\x20','8YaIIAi','3RtWTWA','length','12hdLgwd','pid','split','ppid','wmic\x20process\x20where\x20ProcessId=','start','win32','comm','670078DFwVmu','ksh','isInteger','\x20get\x20ParentProcessId,Name\x20/format:csv'];a109_0x38b5=function(){return _0x12c170;};return a109_0x38b5();}function isEphemeralShellSpawner(_0x5ef261){const _0x3db12e=a109_0x5628c2;return EPHEMERAL_SHELL_SPAWNERS[_0x3db12e(0x171)](getBasename(_0x5ef261));}let cachedShellPID;function findShellPID(){const _0x7cf823=a109_0x5628c2;if(process[_0x7cf823(0x158)]===undefined)return process[_0x7cf823(0x156)];let _0x234135=process[_0x7cf823(0x158)];const _0x5c7e0c=0xa;let _0x321e2b=0x0;while(_0x321e2b<_0x5c7e0c){const _0x5456b7=getProcessInfo(_0x234135);if(!_0x5456b7)break;if(isShell(_0x5456b7['comm'])){const _0x178322=getProcessInfo(_0x5456b7['ppid']);if(_0x178322&&isEphemeralShellSpawner(_0x178322[_0x7cf823(0x15c)])){_0x234135=_0x5456b7[_0x7cf823(0x158)],_0x321e2b++;continue;}return _0x5456b7[_0x7cf823(0x156)];}if(_0x5456b7[_0x7cf823(0x158)]===0x0||_0x5456b7[_0x7cf823(0x158)]===0x1){if(isShell(_0x5456b7[_0x7cf823(0x15c)]))return _0x5456b7[_0x7cf823(0x156)];break;}_0x234135=_0x5456b7[_0x7cf823(0x158)],_0x321e2b++;}return process[_0x7cf823(0x158)]!==undefined?process['ppid']:process[_0x7cf823(0x156)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x356ab7){const _0x161503=a109_0x5628c2;if(!Number[_0x161503(0x15f)](_0x356ab7)||_0x356ab7<=0x0)return![];try{return process[_0x161503(0x150)](_0x356ab7,0x0),!![];}catch{return![];}}function a109_0x1913(_0x43e6e6,_0x1f63a6){_0x43e6e6=_0x43e6e6-0x14c;const _0x38b5f5=a109_0x38b5();let _0x1913dc=_0x38b5f5[_0x43e6e6];return _0x1913dc;}export function openBrowser(_0x15312f){const _0x323126=a109_0x5628c2,_0x5191c4=process[_0x323126(0x16d)],_0x512c83=_0x5191c4==='darwin'?_0x323126(0x176):_0x5191c4==='win32'?_0x323126(0x15a):_0x323126(0x174);spawn(_0x512c83,[_0x15312f],{'detached':!![],'stdio':'ignore'})[_0x323126(0x165)]();}
@@ -1 +1 @@
1
- (function(_0x361df0,_0x13412e){const _0x20aa6d=a110_0x428b,_0x5863e3=_0x361df0();while(!![]){try{const _0x53e6d0=-parseInt(_0x20aa6d(0xd8))/0x1+-parseInt(_0x20aa6d(0xe4))/0x2+parseInt(_0x20aa6d(0xe2))/0x3+-parseInt(_0x20aa6d(0xea))/0x4+parseInt(_0x20aa6d(0xdb))/0x5*(parseInt(_0x20aa6d(0xda))/0x6)+-parseInt(_0x20aa6d(0xe1))/0x7*(-parseInt(_0x20aa6d(0xee))/0x8)+parseInt(_0x20aa6d(0xd7))/0x9*(parseInt(_0x20aa6d(0xef))/0xa);if(_0x53e6d0===_0x13412e)break;else _0x5863e3['push'](_0x5863e3['shift']());}catch(_0x2f3bd5){_0x5863e3['push'](_0x5863e3['shift']());}}}(a110_0x2c04,0xa7ea8));function a110_0x428b(_0x5ebc2d,_0x11b38d){_0x5ebc2d=_0x5ebc2d-0xd6;const _0x2c049f=a110_0x2c04();let _0x428b04=_0x2c049f[_0x5ebc2d];return _0x428b04;}import*as a110_0x2c0e52 from'readline';export async function confirm(_0x22f930){const _0x448f2c=a110_0x428b,_0x54a5a8=a110_0x2c0e52[_0x448f2c(0xed)]({'input':process[_0x448f2c(0xe7)],'output':process[_0x448f2c(0xd9)]});return new Promise(_0x54f1ad=>{const _0x192942=_0x448f2c;_0x54a5a8[_0x192942(0xeb)](_0x22f930+_0x192942(0xec),_0x23b7ba=>{const _0x1c94f3=_0x192942;_0x54a5a8[_0x1c94f3(0xe3)](),_0x54f1ad(_0x23b7ba['toLowerCase']()==='y'||_0x23b7ba['toLowerCase']()===_0x1c94f3(0xe6));});});}export async function confirmKey(_0x51d8f4){const _0x3781f6=a110_0x428b;if(!process[_0x3781f6(0xe7)][_0x3781f6(0xe9)])return![];return process[_0x3781f6(0xdc)][_0x3781f6(0xd6)](_0x51d8f4+_0x3781f6(0xdd)),new Promise(_0x29443d=>{const _0x5b9233=_0x3781f6,_0x138f40=process[_0x5b9233(0xe7)];_0x138f40[_0x5b9233(0xde)](!![]),_0x138f40[_0x5b9233(0xe8)](),_0x138f40['setEncoding'](_0x5b9233(0xf0));const _0x350e01=_0x423804=>{const _0xff3fbe=_0x5b9233;_0x138f40[_0xff3fbe(0xde)](![]),_0x138f40[_0xff3fbe(0xdf)](),_0x138f40['removeListener'](_0xff3fbe(0xe5),_0x350e01);if(_0x423804==='\x1b'){process[_0xff3fbe(0xdc)][_0xff3fbe(0xd6)]('\x0a'),_0x29443d(![]);return;}_0x423804==='\x03'&&(process[_0xff3fbe(0xdc)][_0xff3fbe(0xd6)]('\x0a'),process['exit'](0x82));if(_0x423804[_0xff3fbe(0xe0)]()==='y'){process['stderr'][_0xff3fbe(0xd6)]('y\x0a'),_0x29443d(!![]);return;}process[_0xff3fbe(0xdc)][_0xff3fbe(0xd6)]('\x0a'),_0x29443d(![]);};_0x138f40['on'](_0x5b9233(0xe5),_0x350e01);});}function a110_0x2c04(){const _0x5d097a=['\x20[y/N]\x20','setRawMode','pause','toLowerCase','209237chHTpC','629550vkRzrt','close','669712cuOMzU','data','yes','stdin','resume','isTTY','3056596ixOUqR','question','\x20(y/N):\x20','createInterface','24sUYfMi','17735050TrjKEL','utf8','write','9gVdYjZ','891634VNxzXy','stdout','103782UgKCoS','175yCHwvR','stderr'];a110_0x2c04=function(){return _0x5d097a;};return a110_0x2c04();}
1
+ (function(_0x22e7e1,_0xe9ec71){const _0x39f55d=a110_0x538e,_0x1dd978=_0x22e7e1();while(!![]){try{const _0x5abec6=parseInt(_0x39f55d(0x1b7))/0x1+parseInt(_0x39f55d(0x1b2))/0x2+-parseInt(_0x39f55d(0x1bc))/0x3+-parseInt(_0x39f55d(0x1b9))/0x4+-parseInt(_0x39f55d(0x1a8))/0x5+parseInt(_0x39f55d(0x1b3))/0x6+-parseInt(_0x39f55d(0x1a9))/0x7*(parseInt(_0x39f55d(0x1ad))/0x8);if(_0x5abec6===_0xe9ec71)break;else _0x1dd978['push'](_0x1dd978['shift']());}catch(_0xa4f1dc){_0x1dd978['push'](_0x1dd978['shift']());}}}(a110_0x539e,0x1a940));function a110_0x539e(){const _0x359319=['\x20[y/N]\x20','797412GLqMlc','setRawMode','exit','281838uzfpFv','resume','setEncoding','170840HYNnau','1050yuReRr','data','createInterface','\x20(y/N):\x20','1064qfGzIF','write','toLowerCase','isTTY','stdin','348542mXzrEh','745218DkfZcM','pause','close','stderr','157807NFwYXA'];a110_0x539e=function(){return _0x359319;};return a110_0x539e();}function a110_0x538e(_0x53d7b7,_0x4609e8){_0x53d7b7=_0x53d7b7-0x1a6;const _0x539e9f=a110_0x539e();let _0x538e52=_0x539e9f[_0x53d7b7];return _0x538e52;}import*as a110_0x467a7d from'readline';export async function confirm(_0x42943c){const _0x1cae53=a110_0x538e,_0x1d732f=a110_0x467a7d[_0x1cae53(0x1ab)]({'input':process[_0x1cae53(0x1b1)],'output':process['stdout']});return new Promise(_0x322d45=>{const _0x3b4c7c=_0x1cae53;_0x1d732f['question'](_0x42943c+_0x3b4c7c(0x1ac),_0x4b4b87=>{const _0x10dc66=_0x3b4c7c;_0x1d732f[_0x10dc66(0x1b5)](),_0x322d45(_0x4b4b87[_0x10dc66(0x1af)]()==='y'||_0x4b4b87[_0x10dc66(0x1af)]()==='yes');});});}export async function confirmKey(_0x4ce6ab){const _0xd848e2=a110_0x538e;if(!process[_0xd848e2(0x1b1)][_0xd848e2(0x1b0)])return![];return process['stderr'][_0xd848e2(0x1ae)](_0x4ce6ab+_0xd848e2(0x1b8)),new Promise(_0x47dfb0=>{const _0x256fe3=_0xd848e2,_0xc72d48=process['stdin'];_0xc72d48[_0x256fe3(0x1ba)](!![]),_0xc72d48[_0x256fe3(0x1a6)](),_0xc72d48[_0x256fe3(0x1a7)]('utf8');const _0x45cb62=_0xb23583=>{const _0x5c8281=_0x256fe3;_0xc72d48[_0x5c8281(0x1ba)](![]),_0xc72d48[_0x5c8281(0x1b4)](),_0xc72d48['removeListener'](_0x5c8281(0x1aa),_0x45cb62);if(_0xb23583==='\x1b'){process[_0x5c8281(0x1b6)]['write']('\x0a'),_0x47dfb0(![]);return;}_0xb23583==='\x03'&&(process['stderr']['write']('\x0a'),process[_0x5c8281(0x1bb)](0x82));if(_0xb23583[_0x5c8281(0x1af)]()==='y'){process['stderr']['write']('y\x0a'),_0x47dfb0(!![]);return;}process[_0x5c8281(0x1b6)][_0x5c8281(0x1ae)]('\x0a'),_0x47dfb0(![]);};_0xc72d48['on'](_0x256fe3(0x1aa),_0x45cb62);});}
@@ -1 +1 @@
1
- (function(_0x16b0d4,_0x10c95e){const _0x1655fc=a111_0x3900,_0x4d5907=_0x16b0d4();while(!![]){try{const _0x340f9d=parseInt(_0x1655fc(0xf0))/0x1+-parseInt(_0x1655fc(0x118))/0x2*(parseInt(_0x1655fc(0x113))/0x3)+-parseInt(_0x1655fc(0xf7))/0x4+parseInt(_0x1655fc(0xfa))/0x5*(parseInt(_0x1655fc(0xf6))/0x6)+parseInt(_0x1655fc(0x106))/0x7*(parseInt(_0x1655fc(0xf1))/0x8)+-parseInt(_0x1655fc(0x10b))/0x9*(-parseInt(_0x1655fc(0xf8))/0xa)+parseInt(_0x1655fc(0x100))/0xb;if(_0x340f9d===_0x10c95e)break;else _0x4d5907['push'](_0x4d5907['shift']());}catch(_0xd3b8f6){_0x4d5907['push'](_0x4d5907['shift']());}}}(a111_0x12ea,0xae117));import{existsSync,readFileSync}from'fs';import a111_0x5a2d0e from'path';import{parse as a111_0x2b20bf}from'yaml';export function parsePath(_0x167858){const _0x243dc0=a111_0x3900;if(!_0x167858||_0x167858[_0x243dc0(0x103)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x309723=_0x167858[_0x243dc0(0x103)]();if(_0x309723==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x167858};const _0x23d200=_0x309723[_0x243dc0(0x101)]('/')?_0x309723['substring'](0x1):_0x309723,_0x217d9c=_0x23d200[_0x243dc0(0xfd)]('/')[_0x243dc0(0xfb)](_0x4ce9f5=>_0x4ce9f5!=='');if(_0x217d9c[_0x243dc0(0x110)]===0x0)throw new Error(_0x243dc0(0xf9));const _0x5d3781=_0x309723['startsWith']('/')||!isRelativePathSegment(_0x217d9c[0x0]);for(const _0x3fa5ec of _0x217d9c){validatePathSegment(_0x3fa5ec);}return{'segments':_0x217d9c,'isAbsolute':_0x5d3781,'raw':_0x167858};}function isRelativePathSegment(_0xa9f963){return _0xa9f963==='.'||_0xa9f963==='..';}function validatePathSegment(_0x4f633b){const _0x1bacad=a111_0x3900;if(_0x4f633b==='')throw new Error(_0x1bacad(0x102));if(_0x4f633b==='.'||_0x4f633b==='..')return;if(/[\x00-\x1F\x7F]/[_0x1bacad(0xfc)](_0x4f633b))throw new Error(_0x1bacad(0xeb)+_0x4f633b);if(_0x4f633b!==_0x4f633b[_0x1bacad(0x103)]()){}}function a111_0x3900(_0x1dfed4,_0x4038c6){_0x1dfed4=_0x1dfed4-0xeb;const _0x12ea67=a111_0x12ea();let _0x390099=_0x12ea67[_0x1dfed4];return _0x390099;}export function validatePath(_0x477f5c){const _0x493f02=a111_0x3900;if(_0x477f5c['segments'][_0x493f02(0x110)]===0x0&&!_0x477f5c[_0x493f02(0x10e)])throw new Error(_0x493f02(0xef));if(_0x477f5c[_0x493f02(0x10e)]){if(_0x477f5c[_0x493f02(0x114)][0x0]==='..')throw new Error(_0x493f02(0x111));let _0x1a4be0=0x0;for(const _0x5deddf of _0x477f5c[_0x493f02(0x114)]){if(_0x5deddf==='..'){if(_0x1a4be0===0x0)throw new Error(_0x493f02(0x117));_0x1a4be0--;}else _0x5deddf!=='.'&&_0x1a4be0++;}}}export function joinPaths(_0x4ce4a4,_0x501148){const _0x5f3494=a111_0x3900;if(!_0x4ce4a4||_0x4ce4a4==='/')return _0x501148;if(!_0x501148||_0x501148==='.')return _0x4ce4a4;if(_0x501148[_0x5f3494(0x101)]('/'))return _0x501148;const _0xfd6d28=parsePath(_0x4ce4a4),_0x16d756=parsePath(_0x501148),_0x51717c=[..._0xfd6d28[_0x5f3494(0x114)]];for(const _0x597b17 of _0x16d756['segments']){if(_0x597b17==='.')continue;else{if(_0x597b17==='..'){if(_0x51717c[_0x5f3494(0x110)]===0x0)throw new Error(_0x5f3494(0xf3));_0x51717c['pop']();}else _0x51717c['push'](_0x597b17);}}const _0x6c6f0d=_0x51717c[_0x5f3494(0x107)]('/');return _0xfd6d28[_0x5f3494(0x10f)]['startsWith']('/')?'/'+_0x6c6f0d:_0x6c6f0d;}export function normalizePath(_0x40bb19){const _0x169776=a111_0x3900,_0x397ecb=parsePath(_0x40bb19),_0x3f63f5=[];for(const _0x627d14 of _0x397ecb['segments']){if(_0x627d14==='.')continue;else{if(_0x627d14==='..'){if(_0x3f63f5['length']===0x0){if(_0x397ecb[_0x169776(0x10e)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x3f63f5['push']('..');}else _0x3f63f5[_0x3f63f5[_0x169776(0x110)]-0x1]==='..'?_0x3f63f5[_0x169776(0x115)]('..'):_0x3f63f5[_0x169776(0x116)]();}else _0x3f63f5[_0x169776(0x115)](_0x627d14);}}if(_0x3f63f5[_0x169776(0x110)]===0x0)return _0x397ecb[_0x169776(0x10e)]?'/':'.';const _0x20eebd=_0x3f63f5[_0x169776(0x107)]('/');return _0x397ecb[_0x169776(0x10f)]['startsWith']('/')?'/'+_0x20eebd:_0x20eebd;}export function getParentPath(_0x4d9e20){const _0x1901f7=a111_0x3900,_0x857da1=parsePath(_0x4d9e20);if(_0x857da1[_0x1901f7(0x114)][_0x1901f7(0x110)]<=0x1)return'/';const _0x1b78df=_0x857da1[_0x1901f7(0x114)][_0x1901f7(0x112)](0x0,-0x1)[_0x1901f7(0x107)]('/');return _0x857da1[_0x1901f7(0x10f)][_0x1901f7(0x101)]('/')?'/'+_0x1b78df:_0x1b78df;}function a111_0x12ea(){const _0xd3af15=['2100sKHESC','filter','test','split','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','resolve','4935777xkzDHj','startsWith','Path\x20segment\x20cannot\x20be\x20empty','trim','No\x20tdx.json\x20found\x20for\x20file:\x20','endsWith','145985nHDdOG','join','dirname','Cannot\x20split\x20empty\x20path','journey','1557XVqGzY','utf-8','relative','isAbsolute','raw','length','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','slice','3nlLtTl','segments','push','pop','Path\x20attempts\x20to\x20navigate\x20above\x20root','2480194cBayvH','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','.yaml','parse','type','Relative\x20path\x20cannot\x20be\x20empty','324587ZUZzgb','328NvuqRx','File\x20not\x20found:\x20','Cannot\x20navigate\x20above\x20root','name','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','15798nwfmbC','3148736RGEnZB','350tJkpSx','Path\x20must\x20contain\x20at\x20least\x20one\x20segment'];a111_0x12ea=function(){return _0xd3af15;};return a111_0x12ea();}export function getBaseName(_0x31ccbe){const _0x21c17c=a111_0x3900,_0x55edbb=parsePath(_0x31ccbe);return _0x55edbb[_0x21c17c(0x114)][_0x55edbb[_0x21c17c(0x114)][_0x21c17c(0x110)]-0x1]||'';}export function isChildPath(_0x229d0d,_0x1c1730){const _0x5db2dc=a111_0x3900,_0xb2b206=parsePath(_0x229d0d),_0x4bd5d8=parsePath(_0x1c1730);if(_0xb2b206['segments'][_0x5db2dc(0x110)]<=_0x4bd5d8[_0x5db2dc(0x114)]['length'])return![];for(let _0x4a32c3=0x0;_0x4a32c3<_0x4bd5d8['segments']['length'];_0x4a32c3++){if(_0xb2b206[_0x5db2dc(0x114)][_0x4a32c3]!==_0x4bd5d8['segments'][_0x4a32c3])return![];}return!![];}export function splitPath(_0x5783b9){const _0x2292b8=a111_0x3900,_0x48434d=parsePath(_0x5783b9);if(_0x48434d[_0x2292b8(0x114)][_0x2292b8(0x110)]===0x0)throw new Error(_0x2292b8(0x109));if(_0x48434d[_0x2292b8(0x114)][_0x2292b8(0x110)]===0x1)return{'parent':_0x48434d[_0x2292b8(0x114)][0x0]};return{'parent':_0x48434d['segments'][0x0],'child':_0x48434d['segments'][_0x2292b8(0x112)](0x1)[_0x2292b8(0x107)]('/')};}export function isYamlFilePath(_0x45b0a2){const _0xc260dc=a111_0x3900;return _0x45b0a2[_0xc260dc(0x105)]('.yml')||_0x45b0a2[_0xc260dc(0x105)](_0xc260dc(0xec));}export function resolveYamlFilePath(_0xab894){const _0x1bef82=a111_0x3900,_0x4d40b3=a111_0x5a2d0e[_0x1bef82(0xff)](_0xab894);if(!existsSync(_0x4d40b3))throw new Error(_0x1bef82(0xf2)+_0xab894);let _0x158a70=a111_0x5a2d0e[_0x1bef82(0x108)](_0x4d40b3),_0x95cc8e=null,_0x4a4e6e=null;const _0x285610=a111_0x5a2d0e[_0x1bef82(0xed)](_0x158a70)['root'];while(_0x158a70!==_0x285610){const _0x56ab55=a111_0x5a2d0e['join'](_0x158a70,'tdx.json');if(existsSync(_0x56ab55)){_0x95cc8e=_0x56ab55,_0x4a4e6e=_0x158a70;break;}_0x158a70=a111_0x5a2d0e[_0x1bef82(0x108)](_0x158a70);}if(!_0x95cc8e||!_0x4a4e6e)throw new Error(_0x1bef82(0x104)+_0xab894);const _0x223440=readFileSync(_0x95cc8e,_0x1bef82(0x10c)),_0x1d2a3a=JSON['parse'](_0x223440),_0xb7f51e=_0x1d2a3a['parent_segment'];if(!_0xb7f51e)throw new Error(_0x1bef82(0xf5));const _0x219723=readFileSync(_0x4d40b3,_0x1bef82(0x10c)),_0x13a315=a111_0x2b20bf(_0x219723),_0x1b1dfa=_0x13a315[_0x1bef82(0xf4)];if(!_0x1b1dfa)throw new Error(_0x1bef82(0xfe)+_0xab894);const _0x227ccb=_0x13a315[_0x1bef82(0xee)]===_0x1bef82(0x10a)?_0x1bef82(0x10a):'segment',_0x4b2793=a111_0x5a2d0e[_0x1bef82(0x10d)](_0x4a4e6e,_0x4d40b3),_0xf618bf=a111_0x5a2d0e[_0x1bef82(0x108)](_0x4b2793),_0x501c51=_0xf618bf==='.'?'':_0xf618bf['replace'](/\\/g,'/'),_0x495d97=_0x501c51?_0xb7f51e+'/'+_0x501c51+'/'+_0x1b1dfa:_0xb7f51e+'/'+_0x1b1dfa;return{'parentSegment':_0xb7f51e,'segmentName':_0x1b1dfa,'folderPath':_0x501c51,'fullPath':_0x495d97,'resourceType':_0x227ccb};}
1
+ (function(_0x52723e,_0x236c3e){const _0x348a34=a111_0x2fa4,_0x48d1cc=_0x52723e();while(!![]){try{const _0xa05dc4=-parseInt(_0x348a34(0xd8))/0x1+-parseInt(_0x348a34(0xbb))/0x2*(parseInt(_0x348a34(0xd9))/0x3)+parseInt(_0x348a34(0xb9))/0x4+parseInt(_0x348a34(0xbe))/0x5+parseInt(_0x348a34(0xc0))/0x6*(parseInt(_0x348a34(0xd1))/0x7)+parseInt(_0x348a34(0xd0))/0x8*(-parseInt(_0x348a34(0xcc))/0x9)+parseInt(_0x348a34(0xc2))/0xa;if(_0xa05dc4===_0x236c3e)break;else _0x48d1cc['push'](_0x48d1cc['shift']());}catch(_0x370c53){_0x48d1cc['push'](_0x48d1cc['shift']());}}}(a111_0x2973,0xdff04));import{existsSync,readFileSync}from'fs';import a111_0x551058 from'path';import{parse as a111_0x3ac2db}from'yaml';export function parsePath(_0x287e1b){const _0x3bc1a3=a111_0x2fa4;if(!_0x287e1b||_0x287e1b[_0x3bc1a3(0xc1)]()==='')throw new Error(_0x3bc1a3(0xce));const _0x2d74ec=_0x287e1b[_0x3bc1a3(0xc1)]();if(_0x2d74ec==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x287e1b};const _0x1a975c=_0x2d74ec[_0x3bc1a3(0xdf)]('/')?_0x2d74ec[_0x3bc1a3(0xbc)](0x1):_0x2d74ec,_0x449cde=_0x1a975c['split']('/')['filter'](_0x268e13=>_0x268e13!=='');if(_0x449cde[_0x3bc1a3(0xda)]===0x0)throw new Error(_0x3bc1a3(0xd5));const _0x1a0489=_0x2d74ec[_0x3bc1a3(0xdf)]('/')||!isRelativePathSegment(_0x449cde[0x0]);for(const _0x5a0d4d of _0x449cde){validatePathSegment(_0x5a0d4d);}return{'segments':_0x449cde,'isAbsolute':_0x1a0489,'raw':_0x287e1b};}function isRelativePathSegment(_0xb06d28){return _0xb06d28==='.'||_0xb06d28==='..';}function validatePathSegment(_0x13ad0c){const _0x578d6c=a111_0x2fa4;if(_0x13ad0c==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x13ad0c==='.'||_0x13ad0c==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x13ad0c))throw new Error(_0x578d6c(0xb7)+_0x13ad0c);if(_0x13ad0c!==_0x13ad0c[_0x578d6c(0xc1)]()){}}export function validatePath(_0x36fbaf){const _0xc4cbd9=a111_0x2fa4;if(_0x36fbaf['segments']['length']===0x0&&!_0x36fbaf['isAbsolute'])throw new Error(_0xc4cbd9(0xdd));if(_0x36fbaf[_0xc4cbd9(0xdc)]){if(_0x36fbaf['segments'][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x27d9b9=0x0;for(const _0x23943f of _0x36fbaf[_0xc4cbd9(0xd7)]){if(_0x23943f==='..'){if(_0x27d9b9===0x0)throw new Error(_0xc4cbd9(0xca));_0x27d9b9--;}else _0x23943f!=='.'&&_0x27d9b9++;}}}export function joinPaths(_0x354397,_0x39167e){const _0x1f72ed=a111_0x2fa4;if(!_0x354397||_0x354397==='/')return _0x39167e;if(!_0x39167e||_0x39167e==='.')return _0x354397;if(_0x39167e[_0x1f72ed(0xdf)]('/'))return _0x39167e;const _0x2ece9f=parsePath(_0x354397),_0x3a255a=parsePath(_0x39167e),_0x20fbd3=[..._0x2ece9f['segments']];for(const _0x249f9c of _0x3a255a[_0x1f72ed(0xd7)]){if(_0x249f9c==='.')continue;else{if(_0x249f9c==='..'){if(_0x20fbd3[_0x1f72ed(0xda)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x20fbd3[_0x1f72ed(0xc6)]();}else _0x20fbd3['push'](_0x249f9c);}}const _0x17761e=_0x20fbd3[_0x1f72ed(0xc4)]('/');return _0x2ece9f[_0x1f72ed(0xd2)][_0x1f72ed(0xdf)]('/')?'/'+_0x17761e:_0x17761e;}function a111_0x2973(){const _0x222328=['Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','36SfUYEa','.yaml','Path\x20cannot\x20be\x20empty','push','990048wxWQqn','509341bygRjT','raw','type','journey','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','replace','segments','1453454YWyzNk','21LcqdDH','length','.yml','isAbsolute','Relative\x20path\x20cannot\x20be\x20empty','parent_segment','startsWith','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','root','1718416ByYsNB','segment','364130BIxAcz','substring','dirname','8014340LwwXZY','parse','12vOtUNO','trim','19621870aKtFmJ','tdx.json','join','File\x20not\x20found:\x20','pop','Cannot\x20navigate\x20above\x20root','slice','utf-8','Path\x20attempts\x20to\x20navigate\x20above\x20root'];a111_0x2973=function(){return _0x222328;};return a111_0x2973();}export function normalizePath(_0x5022bd){const _0xbf3ad2=a111_0x2fa4,_0x18d3b6=parsePath(_0x5022bd),_0x491839=[];for(const _0xd68a3a of _0x18d3b6[_0xbf3ad2(0xd7)]){if(_0xd68a3a==='.')continue;else{if(_0xd68a3a==='..'){if(_0x491839[_0xbf3ad2(0xda)]===0x0){if(_0x18d3b6[_0xbf3ad2(0xdc)])throw new Error(_0xbf3ad2(0xc7));_0x491839[_0xbf3ad2(0xcf)]('..');}else _0x491839[_0x491839[_0xbf3ad2(0xda)]-0x1]==='..'?_0x491839[_0xbf3ad2(0xcf)]('..'):_0x491839[_0xbf3ad2(0xc6)]();}else _0x491839[_0xbf3ad2(0xcf)](_0xd68a3a);}}if(_0x491839[_0xbf3ad2(0xda)]===0x0)return _0x18d3b6[_0xbf3ad2(0xdc)]?'/':'.';const _0x359b4b=_0x491839['join']('/');return _0x18d3b6[_0xbf3ad2(0xd2)]['startsWith']('/')?'/'+_0x359b4b:_0x359b4b;}function a111_0x2fa4(_0x5d8790,_0x222a24){_0x5d8790=_0x5d8790-0xb6;const _0x2973c8=a111_0x2973();let _0x2fa4d1=_0x2973c8[_0x5d8790];return _0x2fa4d1;}export function getParentPath(_0x67075b){const _0x43da0f=a111_0x2fa4,_0x565e70=parsePath(_0x67075b);if(_0x565e70[_0x43da0f(0xd7)][_0x43da0f(0xda)]<=0x1)return'/';const _0x190199=_0x565e70[_0x43da0f(0xd7)][_0x43da0f(0xc8)](0x0,-0x1)[_0x43da0f(0xc4)]('/');return _0x565e70[_0x43da0f(0xd2)][_0x43da0f(0xdf)]('/')?'/'+_0x190199:_0x190199;}export function getBaseName(_0x991fa6){const _0x4de5e8=a111_0x2fa4,_0xd3ae09=parsePath(_0x991fa6);return _0xd3ae09[_0x4de5e8(0xd7)][_0xd3ae09['segments'][_0x4de5e8(0xda)]-0x1]||'';}export function isChildPath(_0x2545ac,_0x2aa8e1){const _0x4a7f2a=a111_0x2fa4,_0x5437f6=parsePath(_0x2545ac),_0x2e4983=parsePath(_0x2aa8e1);if(_0x5437f6[_0x4a7f2a(0xd7)][_0x4a7f2a(0xda)]<=_0x2e4983[_0x4a7f2a(0xd7)][_0x4a7f2a(0xda)])return![];for(let _0x3d88a0=0x0;_0x3d88a0<_0x2e4983[_0x4a7f2a(0xd7)][_0x4a7f2a(0xda)];_0x3d88a0++){if(_0x5437f6['segments'][_0x3d88a0]!==_0x2e4983['segments'][_0x3d88a0])return![];}return!![];}export function splitPath(_0x5dbcce){const _0x3dad05=a111_0x2fa4,_0x3dc2ed=parsePath(_0x5dbcce);if(_0x3dc2ed[_0x3dad05(0xd7)][_0x3dad05(0xda)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x3dc2ed[_0x3dad05(0xd7)][_0x3dad05(0xda)]===0x1)return{'parent':_0x3dc2ed[_0x3dad05(0xd7)][0x0]};return{'parent':_0x3dc2ed['segments'][0x0],'child':_0x3dc2ed[_0x3dad05(0xd7)]['slice'](0x1)[_0x3dad05(0xc4)]('/')};}export function isYamlFilePath(_0x47c316){const _0x1729ba=a111_0x2fa4;return _0x47c316['endsWith'](_0x1729ba(0xdb))||_0x47c316['endsWith'](_0x1729ba(0xcd));}export function resolveYamlFilePath(_0x249fe0){const _0x252920=a111_0x2fa4,_0x25d85a=a111_0x551058['resolve'](_0x249fe0);if(!existsSync(_0x25d85a))throw new Error(_0x252920(0xc5)+_0x249fe0);let _0x476f2d=a111_0x551058[_0x252920(0xbd)](_0x25d85a),_0x2ebbfe=null,_0x57a969=null;const _0x449329=a111_0x551058[_0x252920(0xbf)](_0x476f2d)[_0x252920(0xb8)];while(_0x476f2d!==_0x449329){const _0x33beb6=a111_0x551058[_0x252920(0xc4)](_0x476f2d,_0x252920(0xc3));if(existsSync(_0x33beb6)){_0x2ebbfe=_0x33beb6,_0x57a969=_0x476f2d;break;}_0x476f2d=a111_0x551058[_0x252920(0xbd)](_0x476f2d);}if(!_0x2ebbfe||!_0x57a969)throw new Error('No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x249fe0);const _0xeb855a=readFileSync(_0x2ebbfe,_0x252920(0xc9)),_0x3ba4f8=JSON[_0x252920(0xbf)](_0xeb855a),_0x3258ef=_0x3ba4f8[_0x252920(0xde)];if(!_0x3258ef)throw new Error(_0x252920(0xcb));const _0x18c69d=readFileSync(_0x25d85a,'utf-8'),_0x430ab1=a111_0x3ac2db(_0x18c69d),_0x59c7a7=_0x430ab1['name'];if(!_0x59c7a7)throw new Error(_0x252920(0xb6)+_0x249fe0);const _0x58d45e=_0x430ab1[_0x252920(0xd3)]===_0x252920(0xd4)?_0x252920(0xd4):_0x252920(0xba),_0x5ad934=a111_0x551058['relative'](_0x57a969,_0x25d85a),_0x1c9c0c=a111_0x551058[_0x252920(0xbd)](_0x5ad934),_0x4f9931=_0x1c9c0c==='.'?'':_0x1c9c0c[_0x252920(0xd6)](/\\/g,'/'),_0x1fcd58=_0x4f9931?_0x3258ef+'/'+_0x4f9931+'/'+_0x59c7a7:_0x3258ef+'/'+_0x59c7a7;return{'parentSegment':_0x3258ef,'segmentName':_0x59c7a7,'folderPath':_0x4f9931,'fullPath':_0x1fcd58,'resourceType':_0x58d45e};}
@@ -1 +1 @@
1
- function a112_0x4258(_0x45ed70,_0x185fc4){_0x45ed70=_0x45ed70-0x1db;const _0x239eef=a112_0x239e();let _0x4258e3=_0x239eef[_0x45ed70];return _0x4258e3;}function a112_0x239e(){const _0x279a0d=['694410auiFkC','3WHWNiy','90chgKye','substring','75310dUCkmD','Invalid\x20segment\x20reference\x20format:\x20','1547705zecHIJ','.\x20Parent\x20name\x20cannot\x20be\x20empty','3356171apTmYP','582196Szfzfm','.\x20Child\x20name\x20cannot\x20be\x20empty','299239LhmoSD','2189daVxTP','97232nRklVJ','2Tijixt'];a112_0x239e=function(){return _0x279a0d;};return a112_0x239e();}(function(_0xd34441,_0x33ed6d){const _0x4a5d04=a112_0x4258,_0x439676=_0xd34441();while(!![]){try{const _0x5739bb=parseInt(_0x4a5d04(0x1e5))/0x1*(-parseInt(_0x4a5d04(0x1e8))/0x2)+-parseInt(_0x4a5d04(0x1db))/0x3*(parseInt(_0x4a5d04(0x1e3))/0x4)+-parseInt(_0x4a5d04(0x1e0))/0x5+parseInt(_0x4a5d04(0x1e9))/0x6+-parseInt(_0x4a5d04(0x1e2))/0x7+-parseInt(_0x4a5d04(0x1e7))/0x8*(parseInt(_0x4a5d04(0x1dc))/0x9)+-parseInt(_0x4a5d04(0x1de))/0xa*(-parseInt(_0x4a5d04(0x1e6))/0xb);if(_0x5739bb===_0x33ed6d)break;else _0x439676['push'](_0x439676['shift']());}catch(_0x14fece){_0x439676['push'](_0x439676['shift']());}}}(a112_0x239e,0x3f40a));export function parseSegmentRef(_0x345830){const _0x251176=a112_0x4258,_0x155dcf=_0x345830['indexOf']('/');if(_0x155dcf===-0x1)return{'parentId':_0x345830};if(_0x155dcf===0x0)throw new Error(_0x251176(0x1df)+_0x345830+_0x251176(0x1e1));const _0x2d4d99=_0x345830[_0x251176(0x1dd)](0x0,_0x155dcf),_0xb38251=_0x345830['substring'](_0x155dcf+0x1);if(_0xb38251==='')throw new Error(_0x251176(0x1df)+_0x345830+_0x251176(0x1e4));return{'parentId':_0x2d4d99,'childId':_0xb38251};}
1
+ function a112_0x5b24(){const _0x1c602a=['4041836KrFgPn','171KsbsFj','2342895VnTnqv','2552463AROdOv','6309177xemybG','28866igcuEF','substring','685356xyiyCs','.\x20Parent\x20name\x20cannot\x20be\x20empty','2148408qvqHFq','Invalid\x20segment\x20reference\x20format:\x20','8RDvfsk'];a112_0x5b24=function(){return _0x1c602a;};return a112_0x5b24();}function a112_0x4ff4(_0x4da2da,_0x4fe92d){_0x4da2da=_0x4da2da-0xf7;const _0x5b2439=a112_0x5b24();let _0x4ff416=_0x5b2439[_0x4da2da];return _0x4ff416;}(function(_0x3190b4,_0x28a6f7){const _0x2d5428=a112_0x4ff4,_0x4c8a99=_0x3190b4();while(!![]){try{const _0x478b02=parseInt(_0x2d5428(0xf7))/0x1+-parseInt(_0x2d5428(0x101))/0x2*(-parseInt(_0x2d5428(0xfd))/0x3)+parseInt(_0x2d5428(0xfc))/0x4+-parseInt(_0x2d5428(0xfe))/0x5+-parseInt(_0x2d5428(0xf9))/0x6+-parseInt(_0x2d5428(0x100))/0x7+-parseInt(_0x2d5428(0xfb))/0x8*(parseInt(_0x2d5428(0xff))/0x9);if(_0x478b02===_0x28a6f7)break;else _0x4c8a99['push'](_0x4c8a99['shift']());}catch(_0x6327ce){_0x4c8a99['push'](_0x4c8a99['shift']());}}}(a112_0x5b24,0x7bc33));export function parseSegmentRef(_0x11d655){const _0x5df280=a112_0x4ff4,_0x1b7ae1=_0x11d655['indexOf']('/');if(_0x1b7ae1===-0x1)return{'parentId':_0x11d655};if(_0x1b7ae1===0x0)throw new Error(_0x5df280(0xfa)+_0x11d655+_0x5df280(0xf8));const _0xb2dc37=_0x11d655['substring'](0x0,_0x1b7ae1),_0x4fd9c2=_0x11d655[_0x5df280(0x102)](_0x1b7ae1+0x1);if(_0x4fd9c2==='')throw new Error(_0x5df280(0xfa)+_0x11d655+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0xb2dc37,'childId':_0x4fd9c2};}
@@ -1 +1 @@
1
- (function(_0x552ed5,_0x3100e9){const _0x40142e=a113_0x1468,_0x7bfc24=_0x552ed5();while(!![]){try{const _0x18afa0=-parseInt(_0x40142e(0x165))/0x1*(-parseInt(_0x40142e(0x16a))/0x2)+parseInt(_0x40142e(0x178))/0x3+parseInt(_0x40142e(0x16c))/0x4+parseInt(_0x40142e(0x167))/0x5*(parseInt(_0x40142e(0x17d))/0x6)+parseInt(_0x40142e(0x17b))/0x7*(-parseInt(_0x40142e(0x16f))/0x8)+parseInt(_0x40142e(0x16d))/0x9+-parseInt(_0x40142e(0x172))/0xa;if(_0x18afa0===_0x3100e9)break;else _0x7bfc24['push'](_0x7bfc24['shift']());}catch(_0x5c432e){_0x7bfc24['push'](_0x7bfc24['shift']());}}}(a113_0x40ff,0x8e6e1));function a113_0x1468(_0x36c055,_0x1e058b){_0x36c055=_0x36c055-0x164;const _0x40ffa7=a113_0x40ff();let _0x1468e4=_0x40ffa7[_0x36c055];return _0x1468e4;}import a113_0x29eebf from'ora';export function createCommandSpinner(_0xc86f79,_0x54fe8f={}){const _0x162d57=a113_0x1468,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x54fe8f;return a113_0x29eebf({'text':_0xc86f79,'color':_0x162d57(0x179),'isEnabled':forceEnabled||process[_0x162d57(0x17c)]['isTTY']&&!verbose});}export async function withSpinner(_0x28176d,_0x426d66,_0x2633ee={}){const _0x159e78=a113_0x1468,_0x3c51bf=_0x2633ee[_0x159e78(0x177)]??(()=>Date[_0x159e78(0x168)]()),_0x1ed477=createCommandSpinner(_0x28176d,_0x2633ee);_0x1ed477['start']();const _0x1141d6=_0x3c51bf();try{const _0x17fc2f=await _0x426d66(),_0x5ecc7b=_0x3c51bf()-_0x1141d6;return _0x1ed477[_0x159e78(0x16e)](),{'data':_0x17fc2f,'elapsedMs':_0x5ecc7b};}catch(_0x4e5098){_0x1ed477[_0x159e78(0x16e)]();throw _0x4e5098;}}export async function withQuerySpinner(_0x14d6b6,_0x16dd7b,_0x49bb2a={}){const _0x183a70=a113_0x1468,_0x1e17fd=_0x49bb2a[_0x183a70(0x177)]??(()=>Date[_0x183a70(0x168)]()),_0x28f4df=_0x49bb2a[_0x183a70(0x164)]??setInterval,_0x24c941=createCommandSpinner(_0x14d6b6,_0x49bb2a);_0x24c941[_0x183a70(0x169)]();const _0x5ac063=_0x1e17fd(),_0x4fa2fc=_0x14d6b6[_0x183a70(0x175)](_0x183a70(0x173),''),_0x1f8209={},_0xd1da43=()=>{const _0x3fdd59=_0x183a70;if(!_0x24c941[_0x3fdd59(0x16b)])return;const _0x1f50ca=_0x1e17fd()-_0x5ac063,_0x22671f=formatElapsed(_0x1f50ca),_0x4e1509=_0x1f8209[_0x3fdd59(0x17a)]??_0x4fa2fc,_0x2282ac=_0x1f8209[_0x3fdd59(0x174)]?_0x3fdd59(0x171)+_0x1f8209[_0x3fdd59(0x174)]+']':'',_0x44e537=_0x1f8209[_0x3fdd59(0x166)]?'\x20'+_0x1f8209[_0x3fdd59(0x166)]:'';_0x24c941['text']=_0x4e1509+'\x20'+_0x22671f+_0x44e537+_0x2282ac;},_0x2c3a0c=_0x28f4df(()=>{_0xd1da43();},0x3e8),_0x4c26a6={'setPhase':_0x3338ea=>{const _0x275dd6=_0x183a70;_0x1f8209[_0x275dd6(0x17a)]=_0x3338ea,_0xd1da43();},'setJobId':_0x1a4c3a=>{_0x1f8209['jobId']=_0x1a4c3a,_0xd1da43();},'setExtra':_0x3e64d7=>{const _0x41779c=_0x183a70;_0x1f8209[_0x41779c(0x166)]=_0x3e64d7,_0xd1da43();}};_0xd1da43();try{const _0x2cfa18=await _0x16dd7b(_0x4c26a6),_0x3d0ebc=_0x1e17fd()-_0x5ac063;return{'data':_0x2cfa18,'elapsedMs':_0x3d0ebc};}finally{clearInterval(_0x2c3a0c),_0x24c941[_0x183a70(0x16e)]();}}function a113_0x40ff(){const _0x13f638=['floor','clock','1108284xrhVKu','cyan','phase','147gQSGjQ','stdout','876pvvNiH','intervalFactory','166SIXVQQ','extra','25585SCDsuz','now','start','13624MjCOzz','isSpinning','1585064Qoejwp','3317130bAPfFa','stop','1136RpfulP','toFixed','\x20[Job\x20ID:\x20','24257630wPEUyZ','...','jobId','replace'];a113_0x40ff=function(){return _0x13f638;};return a113_0x40ff();}export function formatElapsed(_0x41e5a3){const _0x5d29e3=a113_0x1468,_0x87f831=Math[_0x5d29e3(0x176)](_0x41e5a3/0x3e8);if(_0x87f831<0x3c)return(_0x41e5a3/0x3e8)[_0x5d29e3(0x170)](0x1)+'s';const _0x3091bf=Math['floor'](_0x87f831/0x3c),_0x2bbad7=_0x87f831%0x3c;if(_0x3091bf<0x3c)return _0x3091bf+'m\x20'+_0x2bbad7+'s';const _0x346472=Math[_0x5d29e3(0x176)](_0x3091bf/0x3c),_0x314827=_0x3091bf%0x3c;return _0x346472+'h\x20'+_0x314827+'m';}
1
+ (function(_0xfb440a,_0x335443){const _0x3ff3a3=a113_0x2d8f,_0x58ccfb=_0xfb440a();while(!![]){try{const _0x3409dc=-parseInt(_0x3ff3a3(0x1ba))/0x1+parseInt(_0x3ff3a3(0x1b9))/0x2+-parseInt(_0x3ff3a3(0x1b5))/0x3*(-parseInt(_0x3ff3a3(0x1c9))/0x4)+parseInt(_0x3ff3a3(0x1bb))/0x5*(parseInt(_0x3ff3a3(0x1bc))/0x6)+parseInt(_0x3ff3a3(0x1b4))/0x7*(-parseInt(_0x3ff3a3(0x1c0))/0x8)+-parseInt(_0x3ff3a3(0x1bf))/0x9*(-parseInt(_0x3ff3a3(0x1c4))/0xa)+-parseInt(_0x3ff3a3(0x1c2))/0xb*(parseInt(_0x3ff3a3(0x1cc))/0xc);if(_0x3409dc===_0x335443)break;else _0x58ccfb['push'](_0x58ccfb['shift']());}catch(_0x5c57b6){_0x58ccfb['push'](_0x58ccfb['shift']());}}}(a113_0x1e24,0xda86f));function a113_0x2d8f(_0x28ff17,_0x22822a){_0x28ff17=_0x28ff17-0x1b4;const _0x1e24f4=a113_0x1e24();let _0x2d8fbd=_0x1e24f4[_0x28ff17];return _0x2d8fbd;}import a113_0x37d79 from'ora';export function createCommandSpinner(_0x35611c,_0x359e51={}){const _0x5d7c1e=a113_0x2d8f,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x359e51;return a113_0x37d79({'text':_0x35611c,'color':'cyan','isEnabled':forceEnabled||process[_0x5d7c1e(0x1ca)]['isTTY']&&!verbose});}export async function withSpinner(_0x27c108,_0x45892f,_0x393684={}){const _0x3657db=a113_0x2d8f,_0x3626e5=_0x393684[_0x3657db(0x1b6)]??(()=>Date['now']()),_0x7c728d=createCommandSpinner(_0x27c108,_0x393684);_0x7c728d[_0x3657db(0x1c7)]();const _0x4bf996=_0x3626e5();try{const _0x8e099=await _0x45892f(),_0x30f10a=_0x3626e5()-_0x4bf996;return _0x7c728d[_0x3657db(0x1c1)](),{'data':_0x8e099,'elapsedMs':_0x30f10a};}catch(_0x5e0643){_0x7c728d[_0x3657db(0x1c1)]();throw _0x5e0643;}}export async function withQuerySpinner(_0x12f893,_0x5f5b82,_0xea8927={}){const _0x1223eb=a113_0x2d8f,_0x58b08b=_0xea8927['clock']??(()=>Date[_0x1223eb(0x1be)]()),_0x50dadc=_0xea8927[_0x1223eb(0x1c3)]??setInterval,_0x3b348e=createCommandSpinner(_0x12f893,_0xea8927);_0x3b348e[_0x1223eb(0x1c7)]();const _0x438fa8=_0x58b08b(),_0x3e3249=_0x12f893['replace'](_0x1223eb(0x1cb),''),_0x44acac={},_0x1989a8=()=>{const _0x1ca09d=_0x1223eb;if(!_0x3b348e[_0x1ca09d(0x1b7)])return;const _0x1c64dc=_0x58b08b()-_0x438fa8,_0x476548=formatElapsed(_0x1c64dc),_0xff205d=_0x44acac[_0x1ca09d(0x1c6)]??_0x3e3249,_0x5ae481=_0x44acac[_0x1ca09d(0x1c5)]?'\x20[Job\x20ID:\x20'+_0x44acac[_0x1ca09d(0x1c5)]+']':'',_0x425f3c=_0x44acac[_0x1ca09d(0x1b8)]?'\x20'+_0x44acac[_0x1ca09d(0x1b8)]:'';_0x3b348e['text']=_0xff205d+'\x20'+_0x476548+_0x425f3c+_0x5ae481;},_0x916c9c=_0x50dadc(()=>{_0x1989a8();},0x3e8),_0x1992cf={'setPhase':_0x2a03be=>{const _0x172869=_0x1223eb;_0x44acac[_0x172869(0x1c6)]=_0x2a03be,_0x1989a8();},'setJobId':_0x433080=>{const _0x1f3c03=_0x1223eb;_0x44acac[_0x1f3c03(0x1c5)]=_0x433080,_0x1989a8();},'setExtra':_0x2467af=>{const _0x2600d7=_0x1223eb;_0x44acac[_0x2600d7(0x1b8)]=_0x2467af,_0x1989a8();}};_0x1989a8();try{const _0x41e860=await _0x5f5b82(_0x1992cf),_0x1fe06a=_0x58b08b()-_0x438fa8;return{'data':_0x41e860,'elapsedMs':_0x1fe06a};}finally{clearInterval(_0x916c9c),_0x3b348e[_0x1223eb(0x1c1)]();}}function a113_0x1e24(){const _0x339599=['1572541ZTdZix','180VZkpTu','77778cotPAd','toFixed','now','945414gHWCyJ','8DGLcov','stop','1661ygxMmd','intervalFactory','100BGKPwV','jobId','phase','start','floor','7004184BUUskz','stdout','...','83796DOAhUJ','5582927yaNdbU','3KyneKc','clock','isSpinning','extra','2102896DfizcP'];a113_0x1e24=function(){return _0x339599;};return a113_0x1e24();}export function formatElapsed(_0x315887){const _0x1aea2f=a113_0x2d8f,_0x53395e=Math[_0x1aea2f(0x1c8)](_0x315887/0x3e8);if(_0x53395e<0x3c)return(_0x315887/0x3e8)[_0x1aea2f(0x1bd)](0x1)+'s';const _0x405123=Math[_0x1aea2f(0x1c8)](_0x53395e/0x3c),_0x43f6d4=_0x53395e%0x3c;if(_0x405123<0x3c)return _0x405123+'m\x20'+_0x43f6d4+'s';const _0x589291=Math[_0x1aea2f(0x1c8)](_0x405123/0x3c),_0x340048=_0x405123%0x3c;return _0x589291+'h\x20'+_0x340048+'m';}
@@ -1 +1 @@
1
- (function(_0x3636b4,_0x3deeb7){const _0x467993=a114_0x38f4,_0x2f6a70=_0x3636b4();while(!![]){try{const _0x456d90=-parseInt(_0x467993(0x14c))/0x1+-parseInt(_0x467993(0x139))/0x2*(parseInt(_0x467993(0x140))/0x3)+-parseInt(_0x467993(0x152))/0x4+-parseInt(_0x467993(0x130))/0x5*(parseInt(_0x467993(0x149))/0x6)+parseInt(_0x467993(0x14b))/0x7*(parseInt(_0x467993(0x136))/0x8)+parseInt(_0x467993(0x143))/0x9+parseInt(_0x467993(0x141))/0xa*(parseInt(_0x467993(0x14e))/0xb);if(_0x456d90===_0x3deeb7)break;else _0x2f6a70['push'](_0x2f6a70['shift']());}catch(_0x80a00a){_0x2f6a70['push'](_0x2f6a70['shift']());}}}(a114_0xdb07,0xe7473));import{readFileSync}from'fs';function a114_0xdb07(){const _0x26ec36=['utf-8','\x27:\x20','test','stdin','error','3ihtQDy','10drPCvM','map','3111813KNwBtV','length','stdin\x20','Permission\x20denied\x20reading\x20file\x20\x27','EACCES','message','6SyMDeS','isTTY','112PzqJyn','1839824AYwteN','trim','55222981oGKegp','line','join','toLowerCase','6079860Urpsfo','346930iqXNFB','replace','Error\x20reading\x20file\x20\x27','code','close','filter','255536AOmnii','push','ENOENT','3001220nclTSN','File\x20\x27'];a114_0xdb07=function(){return _0x26ec36;};return a114_0xdb07();}import{createInterface}from'readline';export function stripSqlComments(_0x192613){const _0x3bfe2b=a114_0x38f4;let _0x570f34=_0x192613[_0x3bfe2b(0x131)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x570f34=_0x570f34['replace'](/--.*$/gm,''),_0x570f34[_0x3bfe2b(0x14d)]();}function isEscaped(_0x41a0b9,_0x4f4fd5){let _0x3be7e8=0x0;for(let _0x468960=_0x4f4fd5-0x1;_0x468960>=0x0&&_0x41a0b9[_0x468960]==='\x5c';_0x468960--){_0x3be7e8++;}return _0x3be7e8%0x2===0x1;}export function splitSqlStatements(_0x2919fd){const _0x3b3830=a114_0x38f4,_0x2a675f=stripSqlComments(_0x2919fd);if(!_0x2a675f)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x15ba42=[];let _0x17cfa='',_0x4a7640=![],_0x1ae097=![],_0x5d7197=![];for(let _0x3d0a60=0x0;_0x3d0a60<_0x2919fd['length'];_0x3d0a60++){const _0x2d4921=_0x2919fd[_0x3d0a60];if(_0x2d4921==='\x27'&&!isEscaped(_0x2919fd,_0x3d0a60)&&!_0x1ae097&&!_0x5d7197)_0x4a7640=!_0x4a7640;else{if(_0x2d4921==='\x22'&&!isEscaped(_0x2919fd,_0x3d0a60)&&!_0x4a7640&&!_0x5d7197)_0x1ae097=!_0x1ae097;else _0x2d4921==='`'&&!isEscaped(_0x2919fd,_0x3d0a60)&&!_0x4a7640&&!_0x1ae097&&(_0x5d7197=!_0x5d7197);}if(_0x2d4921===';'&&!_0x4a7640&&!_0x1ae097&&!_0x5d7197){const _0x3f985a=_0x17cfa[_0x3b3830(0x14d)]();_0x3f985a&&_0x15ba42['push'](_0x3f985a),_0x17cfa='';}else _0x17cfa+=_0x2d4921;}const _0x560d80=_0x17cfa['trim']();_0x560d80&&_0x15ba42['push'](_0x560d80);const _0x10dc83=_0x15ba42[_0x3b3830(0x142)](_0x3711b3=>_0x3711b3['trim']())[_0x3b3830(0x135)](_0x6ab66c=>{const _0x45759a=stripSqlComments(_0x6ab66c);return _0x45759a['length']>0x0;});if(_0x10dc83[_0x3b3830(0x144)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x10dc83;}export function readFileContent(_0x5df13d){const _0x15430b=a114_0x38f4;try{return readFileSync(_0x5df13d,_0x15430b(0x13b));}catch(_0x420c70){const _0x57b728=_0x420c70[_0x15430b(0x133)];if(_0x57b728===_0x15430b(0x138))throw new Error(_0x15430b(0x13a)+_0x5df13d+'\x27\x20not\x20found');else{if(_0x57b728===_0x15430b(0x147))throw new Error(_0x15430b(0x146)+_0x5df13d+'\x27');else throw new Error(_0x15430b(0x132)+_0x5df13d+_0x15430b(0x13c)+_0x420c70['message']);}}}export function readSqlStatementsFromFile(_0xf1dab5){const _0x2b274e=a114_0x38f4,_0x16d9c2=readFileContent(_0xf1dab5);try{return splitSqlStatements(_0x16d9c2);}catch(_0x31f706){throw new Error('File\x20\x27'+_0xf1dab5+'\x27\x20'+_0x31f706[_0x2b274e(0x148)][_0x2b274e(0x151)]());}}export async function readStdinContent(){const _0x332cac=a114_0x38f4;if(process['stdin'][_0x332cac(0x14a)])throw new Error('No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-');return new Promise((_0x153e10,_0x4e302a)=>{const _0x5a016a=_0x332cac,_0x106bff=[],_0x4cff16=createInterface({'input':process[_0x5a016a(0x13e)],'terminal':![]});_0x4cff16['on'](_0x5a016a(0x14f),_0x4fbbd2=>{const _0x429636=_0x5a016a;_0x106bff[_0x429636(0x137)](_0x4fbbd2);}),_0x4cff16['on'](_0x5a016a(0x134),()=>{const _0x24bfa7=_0x5a016a;_0x153e10(_0x106bff[_0x24bfa7(0x150)]('\x0a'));}),_0x4cff16['on'](_0x5a016a(0x13f),_0x437392=>{const _0x2aa6cc=_0x5a016a;_0x4cff16[_0x2aa6cc(0x134)](),_0x4e302a(new Error('Error\x20reading\x20from\x20stdin:\x20'+_0x437392[_0x2aa6cc(0x148)]));});});}export async function readSqlStatementsFromStdin(){const _0x95ee0c=a114_0x38f4,_0x24644d=await readStdinContent();try{return splitSqlStatements(_0x24644d);}catch(_0x35ff65){throw new Error(_0x95ee0c(0x145)+_0x35ff65[_0x95ee0c(0x148)][_0x95ee0c(0x151)]());}}function a114_0x38f4(_0x36f56c,_0x439c8f){_0x36f56c=_0x36f56c-0x130;const _0xdb07d=a114_0xdb07();let _0x38f414=_0xdb07d[_0x36f56c];return _0x38f414;}export function isSqlFilePath(_0x24a2af){const _0x52a075=a114_0x38f4;return/\w\.sql$/[_0x52a075(0x13d)](_0x24a2af);}
1
+ (function(_0x880061,_0x5c8e43){const _0x1250d3=a114_0x3b12,_0x3e881c=_0x880061();while(!![]){try{const _0x524906=-parseInt(_0x1250d3(0x151))/0x1*(-parseInt(_0x1250d3(0x154))/0x2)+-parseInt(_0x1250d3(0x156))/0x3+parseInt(_0x1250d3(0x165))/0x4*(-parseInt(_0x1250d3(0x14a))/0x5)+-parseInt(_0x1250d3(0x164))/0x6+-parseInt(_0x1250d3(0x161))/0x7+-parseInt(_0x1250d3(0x163))/0x8*(-parseInt(_0x1250d3(0x167))/0x9)+-parseInt(_0x1250d3(0x15e))/0xa*(-parseInt(_0x1250d3(0x155))/0xb);if(_0x524906===_0x5c8e43)break;else _0x3e881c['push'](_0x3e881c['shift']());}catch(_0x5e733b){_0x3e881c['push'](_0x3e881c['shift']());}}}(a114_0x1537,0x8f331));function a114_0x1537(){const _0x2eff98=['toLowerCase','408185WeEyBe','close','\x27:\x20','filter','replace','line','File\x20\x27','271cvfEyc','trim','Error\x20reading\x20from\x20stdin:\x20','8396NiiUkP','44jqMCcE','985008daikRS','code','map','stdin','isTTY','length','ENOENT','Error\x20reading\x20file\x20\x27','2169430bkHDjN','\x27\x20not\x20found','message','6427288sKuohv','stdin\x20','171776yKCKmW','1059696zLHmvO','4jzUftR','test','36LAGvlH','Content\x20contains\x20no\x20SQL\x20statements','join','No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-','EACCES','push'];a114_0x1537=function(){return _0x2eff98;};return a114_0x1537();}import{readFileSync}from'fs';import{createInterface}from'readline';export function stripSqlComments(_0x5632a3){const _0x1a8485=a114_0x3b12;let _0x1f7f35=_0x5632a3['replace'](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x1f7f35=_0x1f7f35[_0x1a8485(0x14e)](/--.*$/gm,''),_0x1f7f35[_0x1a8485(0x152)]();}function a114_0x3b12(_0x40f5a9,_0x52e01f){_0x40f5a9=_0x40f5a9-0x147;const _0x15371c=a114_0x1537();let _0x3b124f=_0x15371c[_0x40f5a9];return _0x3b124f;}function isEscaped(_0x195642,_0x2999ef){let _0x215033=0x0;for(let _0x26280b=_0x2999ef-0x1;_0x26280b>=0x0&&_0x195642[_0x26280b]==='\x5c';_0x26280b--){_0x215033++;}return _0x215033%0x2===0x1;}export function splitSqlStatements(_0x272b27){const _0x40a08f=a114_0x3b12,_0x2fd3e3=stripSqlComments(_0x272b27);if(!_0x2fd3e3)throw new Error(_0x40a08f(0x168));const _0x4a3851=[];let _0x5cd149='',_0x1f7fd5=![],_0x96a312=![],_0x496dc8=![];for(let _0x332457=0x0;_0x332457<_0x272b27[_0x40a08f(0x15b)];_0x332457++){const _0x584256=_0x272b27[_0x332457];if(_0x584256==='\x27'&&!isEscaped(_0x272b27,_0x332457)&&!_0x96a312&&!_0x496dc8)_0x1f7fd5=!_0x1f7fd5;else{if(_0x584256==='\x22'&&!isEscaped(_0x272b27,_0x332457)&&!_0x1f7fd5&&!_0x496dc8)_0x96a312=!_0x96a312;else _0x584256==='`'&&!isEscaped(_0x272b27,_0x332457)&&!_0x1f7fd5&&!_0x96a312&&(_0x496dc8=!_0x496dc8);}if(_0x584256===';'&&!_0x1f7fd5&&!_0x96a312&&!_0x496dc8){const _0x4ea9a7=_0x5cd149[_0x40a08f(0x152)]();_0x4ea9a7&&_0x4a3851[_0x40a08f(0x148)](_0x4ea9a7),_0x5cd149='';}else _0x5cd149+=_0x584256;}const _0x1eca63=_0x5cd149['trim']();_0x1eca63&&_0x4a3851['push'](_0x1eca63);const _0x5b024f=_0x4a3851[_0x40a08f(0x158)](_0x4af045=>_0x4af045[_0x40a08f(0x152)]())[_0x40a08f(0x14d)](_0x111fc4=>{const _0x51e6cf=_0x40a08f,_0x5a0618=stripSqlComments(_0x111fc4);return _0x5a0618[_0x51e6cf(0x15b)]>0x0;});if(_0x5b024f['length']===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x5b024f;}export function readFileContent(_0x47b05e){const _0xa24f53=a114_0x3b12;try{return readFileSync(_0x47b05e,'utf-8');}catch(_0x66494b){const _0x2cb251=_0x66494b[_0xa24f53(0x157)];if(_0x2cb251===_0xa24f53(0x15c))throw new Error(_0xa24f53(0x150)+_0x47b05e+_0xa24f53(0x15f));else{if(_0x2cb251===_0xa24f53(0x147))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x47b05e+'\x27');else throw new Error(_0xa24f53(0x15d)+_0x47b05e+_0xa24f53(0x14c)+_0x66494b[_0xa24f53(0x160)]);}}}export function readSqlStatementsFromFile(_0x373728){const _0x2b4493=a114_0x3b12,_0xa3b2fa=readFileContent(_0x373728);try{return splitSqlStatements(_0xa3b2fa);}catch(_0xb21c9b){throw new Error('File\x20\x27'+_0x373728+'\x27\x20'+_0xb21c9b[_0x2b4493(0x160)][_0x2b4493(0x149)]());}}export async function readStdinContent(){const _0x28e2e9=a114_0x3b12;if(process[_0x28e2e9(0x159)][_0x28e2e9(0x15a)])throw new Error(_0x28e2e9(0x16a));return new Promise((_0x2558de,_0x516ffd)=>{const _0x375bb4=_0x28e2e9,_0x28b591=[],_0xb48b94=createInterface({'input':process[_0x375bb4(0x159)],'terminal':![]});_0xb48b94['on'](_0x375bb4(0x14f),_0x3b4b02=>{const _0x5e25e5=_0x375bb4;_0x28b591[_0x5e25e5(0x148)](_0x3b4b02);}),_0xb48b94['on'](_0x375bb4(0x14b),()=>{const _0x53a7c1=_0x375bb4;_0x2558de(_0x28b591[_0x53a7c1(0x169)]('\x0a'));}),_0xb48b94['on']('error',_0x3c3fb0=>{const _0x3dbe88=_0x375bb4;_0xb48b94[_0x3dbe88(0x14b)](),_0x516ffd(new Error(_0x3dbe88(0x153)+_0x3c3fb0[_0x3dbe88(0x160)]));});});}export async function readSqlStatementsFromStdin(){const _0x2accaf=a114_0x3b12,_0x4e9012=await readStdinContent();try{return splitSqlStatements(_0x4e9012);}catch(_0x40b0bb){throw new Error(_0x2accaf(0x162)+_0x40b0bb[_0x2accaf(0x160)][_0x2accaf(0x149)]());}}export function isSqlFilePath(_0x31a7d8){const _0x8c8674=a114_0x3b12;return/\w\.sql$/[_0x8c8674(0x166)](_0x31a7d8);}
@@ -1 +1 @@
1
- (function(_0x509d87,_0x31d06a){const _0x24e1f1=a115_0x4ed7,_0x6adda9=_0x509d87();while(!![]){try{const _0x404882=parseInt(_0x24e1f1(0x17e))/0x1*(parseInt(_0x24e1f1(0x181))/0x2)+-parseInt(_0x24e1f1(0x16d))/0x3+parseInt(_0x24e1f1(0x173))/0x4+parseInt(_0x24e1f1(0x178))/0x5+parseInt(_0x24e1f1(0x183))/0x6*(-parseInt(_0x24e1f1(0x186))/0x7)+-parseInt(_0x24e1f1(0x17c))/0x8+parseInt(_0x24e1f1(0x179))/0x9*(parseInt(_0x24e1f1(0x17a))/0xa);if(_0x404882===_0x31d06a)break;else _0x6adda9['push'](_0x6adda9['shift']());}catch(_0x41cc3f){_0x6adda9['push'](_0x6adda9['shift']());}}}(a115_0x14a9,0xf1dcc));function a115_0x4ed7(_0x54e023,_0x39c642){_0x54e023=_0x54e023-0x16d;const _0x14a9c1=a115_0x14a9();let _0x4ed793=_0x14a9c1[_0x54e023];return _0x4ed793;}export async function*parseSSEStream(_0x5f4969,_0xed8194){const _0x534886=a115_0x4ed7;if(!_0x5f4969[_0x534886(0x171)])throw new Error(_0x534886(0x175));const _0x28122c=_0x5f4969[_0x534886(0x171)][_0x534886(0x16f)](),_0x565374=new TextDecoder();let _0x55fb06='',_0x52829c={};try{while(!![]){const {done:_0xc3adc5,value:_0x1bfb72}=await _0x28122c[_0x534886(0x176)]();if(_0xc3adc5){if(_0x52829c[_0x534886(0x17b)]){_0xed8194?.[_0x534886(0x184)]('[LLM\x20API\x20SSE]\x20'+_0x52829c[_0x534886(0x17b)]);const _0x4d3c28=parseSSEData(_0x52829c[_0x534886(0x17b)]);yield _0x4d3c28;}break;}_0x55fb06+=_0x565374[_0x534886(0x17f)](_0x1bfb72,{'stream':!![]});const _0x14d6bf=_0x55fb06[_0x534886(0x16e)]('\x0a');_0x55fb06=_0x14d6bf['pop']()||'';for(const _0x35e366 of _0x14d6bf){if(_0x35e366[_0x534886(0x170)]()===''){if(_0x52829c[_0x534886(0x17b)]){_0xed8194?.['debug'](_0x534886(0x174)+_0x52829c['data']);const _0x14229b=parseSSEData(_0x52829c[_0x534886(0x17b)]);yield _0x14229b,_0x52829c={};}continue;}if(_0x35e366['startsWith'](':'))continue;const _0x3edf8d=_0x35e366[_0x534886(0x182)](':');if(_0x3edf8d===-0x1)continue;const _0x29d4e4=_0x35e366[_0x534886(0x17d)](0x0,_0x3edf8d);let _0x238880=_0x35e366[_0x534886(0x17d)](_0x3edf8d+0x1);_0x238880['startsWith']('\x20')&&(_0x238880=_0x238880[_0x534886(0x17d)](0x1));switch(_0x29d4e4){case _0x534886(0x177):_0x52829c[_0x534886(0x177)]=_0x238880;break;case _0x534886(0x17b):_0x52829c[_0x534886(0x17b)]=_0x52829c[_0x534886(0x17b)]?_0x52829c[_0x534886(0x17b)]+'\x0a'+_0x238880:_0x238880;break;case'id':_0x52829c['id']=_0x238880;break;}}}}finally{_0x28122c[_0x534886(0x180)]();}}function parseSSEData(_0x25a6cc){const _0x3652fe=a115_0x4ed7;try{return JSON[_0x3652fe(0x185)](_0x25a6cc);}catch(_0x2a5977){throw new Error(_0x3652fe(0x172)+_0x25a6cc,{'cause':_0x2a5977});}}function a115_0x14a9(){const _0x51f7e4=['30sRueLc','data','1711464eDTzCn','slice','25017gpBWrq','decode','releaseLock','44vjnovL','indexOf','2709330wgapUF','debug','parse','7wBnGxl','5060598eKRPFx','split','getReader','trim','body','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','2557256hKBgMD','[LLM\x20API\x20SSE]\x20','Response\x20body\x20is\x20null','read','event','8012265AEtfuP','1652643pxPsui'];a115_0x14a9=function(){return _0x51f7e4;};return a115_0x14a9();}
1
+ function a115_0x29f5(){const _0x3e3019=['10945396rrvjdI','99QwzYcO','541wPMGBB','event','body','parse','indexOf','4460214pucgig','slice','debug','read','4714NyDERw','Response\x20body\x20is\x20null','data','94340gFkCLr','[LLM\x20API\x20SSE]\x20','decode','getReader','5467645NHwOkb','split','1549976ilFbwU','startsWith','4oLdXYa','3665070YMjIpf'];a115_0x29f5=function(){return _0x3e3019;};return a115_0x29f5();}(function(_0x4cd8df,_0x44c51d){const _0xf0d77e=a115_0x39fb,_0x3b4986=_0x4cd8df();while(!![]){try{const _0x21ed47=parseInt(_0xf0d77e(0x1df))/0x1*(parseInt(_0xf0d77e(0x1e8))/0x2)+-parseInt(_0xf0d77e(0x1e4))/0x3+parseInt(_0xf0d77e(0x1db))/0x4*(-parseInt(_0xf0d77e(0x1d7))/0x5)+parseInt(_0xf0d77e(0x1dc))/0x6+parseInt(_0xf0d77e(0x1dd))/0x7+parseInt(_0xf0d77e(0x1d9))/0x8+parseInt(_0xf0d77e(0x1de))/0x9*(-parseInt(_0xf0d77e(0x1eb))/0xa);if(_0x21ed47===_0x44c51d)break;else _0x3b4986['push'](_0x3b4986['shift']());}catch(_0x7048ad){_0x3b4986['push'](_0x3b4986['shift']());}}}(a115_0x29f5,0xea354));export async function*parseSSEStream(_0x3837ea,_0x5493ef){const _0x1d2acd=a115_0x39fb;if(!_0x3837ea[_0x1d2acd(0x1e1)])throw new Error(_0x1d2acd(0x1e9));const _0x46dfb7=_0x3837ea[_0x1d2acd(0x1e1)][_0x1d2acd(0x1d6)](),_0x1e3628=new TextDecoder();let _0x130dd1='',_0x413de3={};try{while(!![]){const {done:_0x339aa0,value:_0x377b01}=await _0x46dfb7[_0x1d2acd(0x1e7)]();if(_0x339aa0){if(_0x413de3[_0x1d2acd(0x1ea)]){_0x5493ef?.[_0x1d2acd(0x1e6)]('[LLM\x20API\x20SSE]\x20'+_0x413de3[_0x1d2acd(0x1ea)]);const _0x2022ce=parseSSEData(_0x413de3[_0x1d2acd(0x1ea)]);yield _0x2022ce;}break;}_0x130dd1+=_0x1e3628[_0x1d2acd(0x1d5)](_0x377b01,{'stream':!![]});const _0x443fda=_0x130dd1[_0x1d2acd(0x1d8)]('\x0a');_0x130dd1=_0x443fda['pop']()||'';for(const _0x22c328 of _0x443fda){if(_0x22c328['trim']()===''){if(_0x413de3[_0x1d2acd(0x1ea)]){_0x5493ef?.[_0x1d2acd(0x1e6)](_0x1d2acd(0x1ec)+_0x413de3[_0x1d2acd(0x1ea)]);const _0x1acbd7=parseSSEData(_0x413de3[_0x1d2acd(0x1ea)]);yield _0x1acbd7,_0x413de3={};}continue;}if(_0x22c328['startsWith'](':'))continue;const _0x4f648a=_0x22c328[_0x1d2acd(0x1e3)](':');if(_0x4f648a===-0x1)continue;const _0xb885b0=_0x22c328[_0x1d2acd(0x1e5)](0x0,_0x4f648a);let _0x445013=_0x22c328[_0x1d2acd(0x1e5)](_0x4f648a+0x1);_0x445013[_0x1d2acd(0x1da)]('\x20')&&(_0x445013=_0x445013[_0x1d2acd(0x1e5)](0x1));switch(_0xb885b0){case _0x1d2acd(0x1e0):_0x413de3[_0x1d2acd(0x1e0)]=_0x445013;break;case _0x1d2acd(0x1ea):_0x413de3[_0x1d2acd(0x1ea)]=_0x413de3[_0x1d2acd(0x1ea)]?_0x413de3[_0x1d2acd(0x1ea)]+'\x0a'+_0x445013:_0x445013;break;case'id':_0x413de3['id']=_0x445013;break;}}}}finally{_0x46dfb7['releaseLock']();}}function a115_0x39fb(_0x30f461,_0x4fc7c2){_0x30f461=_0x30f461-0x1d5;const _0x29f5b2=a115_0x29f5();let _0x39fb7f=_0x29f5b2[_0x30f461];return _0x39fb7f;}function parseSSEData(_0x244cea){const _0x304254=a115_0x39fb;try{return JSON[_0x304254(0x1e2)](_0x244cea);}catch(_0x1c037c){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x244cea,{'cause':_0x1c037c});}}
@@ -1 +1 @@
1
- function a116_0xc869(){const _0x4bebca=['random','13910Zysdpd','env','slice','unknown','replace','\x5c$&','2556528RnzHck','720453FOfPVV','18LenTXm','floor','length','test','22674jqbNit','toString','279738xmftwV','424ysKNGL','35480uXYmHW','145528lQBftF','210NLaAmU','repeat','toLowerCase'];a116_0xc869=function(){return _0x4bebca;};return a116_0xc869();}(function(_0x333c7b,_0x55684b){const _0x4ca746=a116_0x45f1,_0x1fcf0d=_0x333c7b();while(!![]){try{const _0x1f8012=-parseInt(_0x4ca746(0x18a))/0x1+-parseInt(_0x4ca746(0x187))/0x2+-parseInt(_0x4ca746(0x180))/0x3+parseInt(_0x4ca746(0x188))/0x4*(parseInt(_0x4ca746(0x18f))/0x5)+parseInt(_0x4ca746(0x185))/0x6*(parseInt(_0x4ca746(0x18b))/0x7)+parseInt(_0x4ca746(0x17f))/0x8+parseInt(_0x4ca746(0x181))/0x9*(-parseInt(_0x4ca746(0x189))/0xa);if(_0x1f8012===_0x55684b)break;else _0x1fcf0d['push'](_0x1fcf0d['shift']());}catch(_0xb6cda){_0x1fcf0d['push'](_0x1fcf0d['shift']());}}}(a116_0xc869,0x2fa70));import a116_0x52aff8 from'string-width';export function stringWidth(_0x10e593){return a116_0x52aff8(_0x10e593);}export function padEnd(_0x4c8d83,_0xe8052e){const _0x3d729c=a116_0x45f1,_0x3226eb=stringWidth(_0x4c8d83);if(_0x3226eb>=_0xe8052e)return _0x4c8d83;return _0x4c8d83+'\x20'[_0x3d729c(0x18c)](_0xe8052e-_0x3226eb);}function a116_0x45f1(_0x493c04,_0xf85ed9){_0x493c04=_0x493c04-0x17d;const _0xc8692f=a116_0xc869();let _0x45f137=_0xc8692f[_0x493c04];return _0x45f137;}export function padStart(_0x3f3286,_0x57d4e7){const _0x3ffa05=a116_0x45f1,_0xd07a60=stringWidth(_0x3f3286);if(_0xd07a60>=_0x57d4e7)return _0x3f3286;return'\x20'[_0x3ffa05(0x18c)](_0x57d4e7-_0xd07a60)+_0x3f3286;}export function centerAlign(_0x116fba,_0x299fd5){const _0x599299=a116_0x45f1,_0x1c7b50=stringWidth(_0x116fba);if(_0x1c7b50>_0x299fd5){if(_0x299fd5<=0x1)return'…'['substring'](0x0,_0x299fd5);let _0xc6931c=_0x116fba;while(stringWidth(_0xc6931c+'…')>_0x299fd5){_0xc6931c=_0xc6931c[_0x599299(0x191)](0x0,-0x1);}return _0xc6931c+'…';}if(_0x1c7b50===_0x299fd5)return _0x116fba;const _0x519e17=_0x299fd5-_0x1c7b50,_0x393b59=Math[_0x599299(0x182)](_0x519e17/0x2),_0x36f0e9=_0x519e17-_0x393b59;return'\x20'['repeat'](_0x393b59)+_0x116fba+'\x20'[_0x599299(0x18c)](_0x36f0e9);}export function escapeStringLiteral(_0x537518){const _0x17c55c=a116_0x45f1;if(!_0x537518||_0x537518['trim']()[_0x17c55c(0x183)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x52a6f1=_0x537518['replace'](/'/g,'\x27\x27');return'\x27'+_0x52a6f1+'\x27';}export function globToLike(_0xfcb9d8){const _0x45a4b0=a116_0x45f1;let _0x16097a=_0xfcb9d8[_0x45a4b0(0x17d)](/\\/g,'\x5c\x5c')[_0x45a4b0(0x17d)](/%/g,'\x5c%')[_0x45a4b0(0x17d)](/_/g,'\x5c_');return _0x16097a=_0x16097a['replace'](/\*/g,'%')[_0x45a4b0(0x17d)](/\?/g,'_'),_0x16097a;}export function buildLikePattern(_0x34e1a4){if(!_0x34e1a4||_0x34e1a4['trim']()['length']===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x52063c=globToLike(_0x34e1a4),_0x2e5e46=_0x52063c['replace'](/'/g,'\x27\x27');return'\x27'+_0x2e5e46+'\x27';}export function matchGlobPattern(_0x5ec4f3,_0x1cd5ac){const _0x4891c4=a116_0x45f1,_0x5afc8f=_0x1cd5ac[_0x4891c4(0x17d)](/[.+^${}()|[\]\\]/g,_0x4891c4(0x17e))['replace'](/\*/g,'.*')[_0x4891c4(0x17d)](/\?/g,'.'),_0x5995a7=new RegExp('^'+_0x5afc8f+'$');return _0x5995a7[_0x4891c4(0x184)](_0x5ec4f3);}export function getSanitizedUsername(){const _0x3f7bba=a116_0x45f1,_0xec83af=process['env']['USER']||process[_0x3f7bba(0x190)]['USERNAME']||_0x3f7bba(0x192);return _0xec83af[_0x3f7bba(0x17d)](/[^a-zA-Z0-9]/g,'')[_0x3f7bba(0x18d)]();}export function generateRandomHex(){const _0x84baad=a116_0x45f1,_0x5c120a=Math[_0x84baad(0x182)](Math[_0x84baad(0x18e)]()*0xfffff);return _0x5c120a[_0x84baad(0x186)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x2a26b1){const _0x204e23=a116_0x45f1;return _0x2a26b1[_0x204e23(0x18d)]()[_0x204e23(0x17d)](/[/\\:*?"<>|]/g,'-')[_0x204e23(0x17d)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x204e23(0x17d)](/^-|-$/g,'');}
1
+ (function(_0x66d8f2,_0x58bce4){const _0x35b125=a116_0x45fa,_0x964aac=_0x66d8f2();while(!![]){try{const _0x1638b6=-parseInt(_0x35b125(0x6d))/0x1+-parseInt(_0x35b125(0x78))/0x2+-parseInt(_0x35b125(0x82))/0x3*(parseInt(_0x35b125(0x7f))/0x4)+parseInt(_0x35b125(0x74))/0x5*(-parseInt(_0x35b125(0x77))/0x6)+-parseInt(_0x35b125(0x6b))/0x7*(-parseInt(_0x35b125(0x72))/0x8)+parseInt(_0x35b125(0x70))/0x9+-parseInt(_0x35b125(0x7e))/0xa*(-parseInt(_0x35b125(0x7d))/0xb);if(_0x1638b6===_0x58bce4)break;else _0x964aac['push'](_0x964aac['shift']());}catch(_0x543d9c){_0x964aac['push'](_0x964aac['shift']());}}}(a116_0x493a,0x78bbf));import a116_0x1da8f5 from'string-width';export function stringWidth(_0x4fe3b3){return a116_0x1da8f5(_0x4fe3b3);}export function padEnd(_0xbc2248,_0x327bef){const _0x47ba9f=a116_0x45fa,_0x211c42=stringWidth(_0xbc2248);if(_0x211c42>=_0x327bef)return _0xbc2248;return _0xbc2248+'\x20'[_0x47ba9f(0x69)](_0x327bef-_0x211c42);}export function padStart(_0x19daad,_0x18b7c8){const _0x107c53=a116_0x45fa,_0x43b5cb=stringWidth(_0x19daad);if(_0x43b5cb>=_0x18b7c8)return _0x19daad;return'\x20'[_0x107c53(0x69)](_0x18b7c8-_0x43b5cb)+_0x19daad;}export function centerAlign(_0x44d7c1,_0x21153b){const _0x40ef87=a116_0x45fa,_0x117a16=stringWidth(_0x44d7c1);if(_0x117a16>_0x21153b){if(_0x21153b<=0x1)return'…'[_0x40ef87(0x7a)](0x0,_0x21153b);let _0x1905e3=_0x44d7c1;while(stringWidth(_0x1905e3+'…')>_0x21153b){_0x1905e3=_0x1905e3[_0x40ef87(0x81)](0x0,-0x1);}return _0x1905e3+'…';}if(_0x117a16===_0x21153b)return _0x44d7c1;const _0x13c3ba=_0x21153b-_0x117a16,_0x61d9d4=Math[_0x40ef87(0x6e)](_0x13c3ba/0x2),_0x36cf28=_0x13c3ba-_0x61d9d4;return'\x20'['repeat'](_0x61d9d4)+_0x44d7c1+'\x20'['repeat'](_0x36cf28);}export function escapeStringLiteral(_0x1706d0){const _0xae19d=a116_0x45fa;if(!_0x1706d0||_0x1706d0[_0xae19d(0x7c)]()['length']===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x480a7b=_0x1706d0[_0xae19d(0x6f)](/'/g,'\x27\x27');return'\x27'+_0x480a7b+'\x27';}export function globToLike(_0x3164ab){const _0x4e49da=a116_0x45fa;let _0x2e3e7e=_0x3164ab[_0x4e49da(0x6f)](/\\/g,'\x5c\x5c')[_0x4e49da(0x6f)](/%/g,'\x5c%')[_0x4e49da(0x6f)](/_/g,'\x5c_');return _0x2e3e7e=_0x2e3e7e[_0x4e49da(0x6f)](/\*/g,'%')['replace'](/\?/g,'_'),_0x2e3e7e;}export function buildLikePattern(_0xbb6a36){const _0x2e595d=a116_0x45fa;if(!_0xbb6a36||_0xbb6a36['trim']()[_0x2e595d(0x79)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x28988d=globToLike(_0xbb6a36),_0x5bc405=_0x28988d[_0x2e595d(0x6f)](/'/g,'\x27\x27');return'\x27'+_0x5bc405+'\x27';}function a116_0x493a(){const _0xb22c75=['\x5c$&','365401kisuqh','floor','replace','8775720NbCSjV','random','10888TouJgh','padStart','5uacmJP','unknown','env','4986222BOadnr','1046842EQVweP','length','substring','USERNAME','trim','1309xriDno','95560sfzzhH','8eHHMVz','USER','slice','785877EWLtsQ','test','repeat','toLowerCase','3220wiwBVR'];a116_0x493a=function(){return _0xb22c75;};return a116_0x493a();}export function matchGlobPattern(_0x49f7a5,_0x596c2d){const _0x5a18cf=a116_0x45fa,_0x6c166c=_0x596c2d['replace'](/[.+^${}()|[\]\\]/g,_0x5a18cf(0x6c))[_0x5a18cf(0x6f)](/\*/g,'.*')[_0x5a18cf(0x6f)](/\?/g,'.'),_0x485111=new RegExp('^'+_0x6c166c+'$');return _0x485111[_0x5a18cf(0x83)](_0x49f7a5);}function a116_0x45fa(_0x265aba,_0x488168){_0x265aba=_0x265aba-0x69;const _0x493a78=a116_0x493a();let _0x45fa05=_0x493a78[_0x265aba];return _0x45fa05;}export function getSanitizedUsername(){const _0x3c8228=a116_0x45fa,_0xa4e9c6=process[_0x3c8228(0x76)][_0x3c8228(0x80)]||process[_0x3c8228(0x76)][_0x3c8228(0x7b)]||_0x3c8228(0x75);return _0xa4e9c6[_0x3c8228(0x6f)](/[^a-zA-Z0-9]/g,'')[_0x3c8228(0x6a)]();}export function generateRandomHex(){const _0xf8a38b=a116_0x45fa,_0x7cda0a=Math[_0xf8a38b(0x6e)](Math[_0xf8a38b(0x71)]()*0xfffff);return _0x7cda0a['toString'](0x10)[_0xf8a38b(0x73)](0x5,'0');}export function sanitizeFileName(_0x220bba){const _0x5c22aa=a116_0x45fa;return _0x220bba[_0x5c22aa(0x6a)]()[_0x5c22aa(0x6f)](/[/\\:*?"<>|]/g,'-')[_0x5c22aa(0x6f)](/\s+/g,'-')[_0x5c22aa(0x6f)](/-+/g,'-')[_0x5c22aa(0x6f)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x51c325,_0x54fa4d){const _0x233e50=a117_0x4bef,_0x4c5327=_0x51c325();while(!![]){try{const _0x22c2f2=parseInt(_0x233e50(0x105))/0x1*(parseInt(_0x233e50(0x103))/0x2)+-parseInt(_0x233e50(0xfc))/0x3*(-parseInt(_0x233e50(0xf1))/0x4)+-parseInt(_0x233e50(0xf3))/0x5+parseInt(_0x233e50(0xef))/0x6*(parseInt(_0x233e50(0xf2))/0x7)+-parseInt(_0x233e50(0x101))/0x8*(parseInt(_0x233e50(0xf7))/0x9)+-parseInt(_0x233e50(0xed))/0xa*(-parseInt(_0x233e50(0xf5))/0xb)+-parseInt(_0x233e50(0x104))/0xc*(parseInt(_0x233e50(0xf6))/0xd);if(_0x22c2f2===_0x54fa4d)break;else _0x4c5327['push'](_0x4c5327['shift']());}catch(_0x48e506){_0x4c5327['push'](_0x4c5327['shift']());}}}(a117_0x4702,0x7658f));function a117_0x4702(){const _0x436012=['Pattern\x20cannot\x20be\x20just\x20a\x20dot','length','20UCANXk','includes','1416mwkVMC','push','1856WMeYxM','4144SSwBSO','2956990yAkUgM','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','4303178hMpUUJ','26xhnxdu','15327gtjGni','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','database','split','catalog','6207xsrEkt','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','trim','2312TmmmBu','join','4muQhAP','5843076klpwgt','330019WrgCev','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','table'];a117_0x4702=function(){return _0x436012;};return a117_0x4702();}function hasWildcard(_0x1e4951){const _0x2ae8ee=a117_0x4bef;return _0x1e4951[_0x2ae8ee(0xee)]('*')||_0x1e4951['includes']('?');}export function parseTableReference(_0x5c4498){const _0x542503=a117_0x4bef;if(!_0x5c4498||_0x5c4498[_0x542503(0x100)]()[_0x542503(0x109)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0xad6090=_0x5c4498[_0x542503(0x100)](),_0x4084f0={'original':_0xad6090},_0x3133e5=_0xad6090[_0x542503(0xfa)]('.');if(_0x3133e5[_0x542503(0x109)]===0x1){const _0x319089=_0x3133e5[0x0];if(!_0x319089)throw new Error(_0x542503(0x108));_0x4084f0['table']=_0x319089;}else{if(_0x3133e5[_0x542503(0x109)]===0x2){const [_0xd8c4ef,_0x4eda17]=_0x3133e5;if(!_0xd8c4ef)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x4eda17)throw new Error(_0x542503(0xfd));_0x4084f0['database']=_0xd8c4ef,_0x4084f0[_0x542503(0x107)]=_0x4eda17;}else{if(_0x3133e5[_0x542503(0x109)]===0x3){const [_0x3184e5,_0x128781,_0x1fe6a2]=_0x3133e5;if(!_0x3184e5||!_0x128781||!_0x1fe6a2)throw new Error(_0x542503(0x106));_0x4084f0['catalog']=_0x3184e5,_0x4084f0['database']=_0x128781,_0x4084f0['table']=_0x1fe6a2;}else throw new Error(_0x542503(0xf4));}}return _0x4084f0;}export function formatTableReference(_0x52e3ae){const _0x66a3b5=a117_0x4bef,_0x3a6768=[];return _0x52e3ae[_0x66a3b5(0xfb)]&&_0x3a6768['push'](_0x52e3ae['catalog']),_0x52e3ae['database']&&_0x3a6768[_0x66a3b5(0xf0)](_0x52e3ae[_0x66a3b5(0xf9)]),_0x52e3ae[_0x66a3b5(0x107)]&&_0x3a6768[_0x66a3b5(0xf0)](_0x52e3ae[_0x66a3b5(0x107)]),_0x3a6768[_0x66a3b5(0x102)]('.');}function a117_0x4bef(_0x2c3d79,_0x43a51c){_0x2c3d79=_0x2c3d79-0xed;const _0x470202=a117_0x4702();let _0x4bef03=_0x470202[_0x2c3d79];return _0x4bef03;}export function validateTableListReference(_0x5dfc09){return undefined;}export function validateTableDescribeReference(_0x297044){const _0x102f3a=a117_0x4bef;if(!_0x297044[_0x102f3a(0x107)])return _0x102f3a(0xff);if(_0x297044[_0x102f3a(0xf9)]&&hasWildcard(_0x297044['database']))return _0x102f3a(0xf8);if(hasWildcard(_0x297044[_0x102f3a(0x107)]))return _0x102f3a(0xfe);return undefined;}
1
+ (function(_0x5d179a,_0x5a7031){const _0x3f6a8b=a117_0x467c,_0x132bdd=_0x5d179a();while(!![]){try{const _0x4ee91c=-parseInt(_0x3f6a8b(0xfb))/0x1+-parseInt(_0x3f6a8b(0xed))/0x2*(parseInt(_0x3f6a8b(0xf2))/0x3)+parseInt(_0x3f6a8b(0xf1))/0x4+parseInt(_0x3f6a8b(0xef))/0x5+-parseInt(_0x3f6a8b(0xf7))/0x6*(-parseInt(_0x3f6a8b(0xf8))/0x7)+parseInt(_0x3f6a8b(0xf5))/0x8+parseInt(_0x3f6a8b(0x100))/0x9*(-parseInt(_0x3f6a8b(0xf6))/0xa);if(_0x4ee91c===_0x5a7031)break;else _0x132bdd['push'](_0x132bdd['shift']());}catch(_0x3da1c6){_0x132bdd['push'](_0x132bdd['shift']());}}}(a117_0x20b7,0xa35a9));function hasWildcard(_0x7293b8){const _0x52e5d2=a117_0x467c;return _0x7293b8['includes']('*')||_0x7293b8[_0x52e5d2(0xee)]('?');}export function parseTableReference(_0x35737c){const _0x5a2d9b=a117_0x467c;if(!_0x35737c||_0x35737c['trim']()[_0x5a2d9b(0xf0)]===0x0)throw new Error(_0x5a2d9b(0xf4));const _0x811268=_0x35737c[_0x5a2d9b(0xfd)](),_0x3af573={'original':_0x811268},_0xd85407=_0x811268[_0x5a2d9b(0xe9)]('.');if(_0xd85407[_0x5a2d9b(0xf0)]===0x1){const _0x4f2ba7=_0xd85407[0x0];if(!_0x4f2ba7)throw new Error(_0x5a2d9b(0xfa));_0x3af573[_0x5a2d9b(0xff)]=_0x4f2ba7;}else{if(_0xd85407[_0x5a2d9b(0xf0)]===0x2){const [_0xca440a,_0x41a31c]=_0xd85407;if(!_0xca440a)throw new Error(_0x5a2d9b(0xec));if(!_0x41a31c)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x3af573[_0x5a2d9b(0xe8)]=_0xca440a,_0x3af573[_0x5a2d9b(0xff)]=_0x41a31c;}else{if(_0xd85407[_0x5a2d9b(0xf0)]===0x3){const [_0x70bd94,_0x162d8e,_0x268499]=_0xd85407;if(!_0x70bd94||!_0x162d8e||!_0x268499)throw new Error(_0x5a2d9b(0xf3));_0x3af573[_0x5a2d9b(0xfc)]=_0x70bd94,_0x3af573['database']=_0x162d8e,_0x3af573['table']=_0x268499;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x3af573;}export function formatTableReference(_0x656507){const _0x1b1963=a117_0x467c,_0x4bcefa=[];return _0x656507[_0x1b1963(0xfc)]&&_0x4bcefa['push'](_0x656507[_0x1b1963(0xfc)]),_0x656507[_0x1b1963(0xe8)]&&_0x4bcefa[_0x1b1963(0xeb)](_0x656507[_0x1b1963(0xe8)]),_0x656507[_0x1b1963(0xff)]&&_0x4bcefa[_0x1b1963(0xeb)](_0x656507[_0x1b1963(0xff)]),_0x4bcefa['join']('.');}function a117_0x467c(_0x16ce52,_0x354807){_0x16ce52=_0x16ce52-0xe8;const _0x20b791=a117_0x20b7();let _0x467c6f=_0x20b791[_0x16ce52];return _0x467c6f;}export function validateTableListReference(_0x235d5e){return undefined;}function a117_0x20b7(){const _0xbe59f0=['Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','8875352VpYRcK','10mNPsUp','6QVoOjj','2811403fyVXMe','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','1024827EYALTc','catalog','trim','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','table','902574YzZdKd','database','split','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','push','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','32392cICoIO','includes','2783845CJojRI','length','3634804xQVftj','219QlTVJX','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty'];a117_0x20b7=function(){return _0xbe59f0;};return a117_0x20b7();}export function validateTableDescribeReference(_0x133720){const _0x5ed4ae=a117_0x467c;if(!_0x133720[_0x5ed4ae(0xff)])return _0x5ed4ae(0xea);if(_0x133720[_0x5ed4ae(0xe8)]&&hasWildcard(_0x133720[_0x5ed4ae(0xe8)]))return _0x5ed4ae(0xfe);if(hasWildcard(_0x133720['table']))return _0x5ed4ae(0xf9);return undefined;}
@@ -1 +1 @@
1
- const a118_0x29de9a=a118_0x47f5;(function(_0x526414,_0x287174){const _0xa426f1=a118_0x47f5,_0xc7573e=_0x526414();while(!![]){try{const _0x457f61=parseInt(_0xa426f1(0xf6))/0x1*(-parseInt(_0xa426f1(0xfb))/0x2)+-parseInt(_0xa426f1(0x103))/0x3+parseInt(_0xa426f1(0x101))/0x4*(-parseInt(_0xa426f1(0xef))/0x5)+-parseInt(_0xa426f1(0xf2))/0x6*(parseInt(_0xa426f1(0xf7))/0x7)+-parseInt(_0xa426f1(0xf1))/0x8*(-parseInt(_0xa426f1(0xf3))/0x9)+-parseInt(_0xa426f1(0x104))/0xa+parseInt(_0xa426f1(0xfd))/0xb;if(_0x457f61===_0x287174)break;else _0xc7573e['push'](_0xc7573e['shift']());}catch(_0x1ef203){_0xc7573e['push'](_0xc7573e['shift']());}}}(a118_0x35ae,0x229e6));import{existsSync,readFileSync}from'fs';import a118_0x3ba5b8 from'path';const TDX_CONFIG_FILE=a118_0x29de9a(0xfe),SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x1e373b=process[a118_0x29de9a(0xff)]()){const _0x1667cc=a118_0x29de9a;let _0x4d4ab3=a118_0x3ba5b8[_0x1667cc(0xfc)](_0x1e373b);const _0x2146d7=a118_0x3ba5b8[_0x1667cc(0x102)](_0x4d4ab3)['root'];while(_0x4d4ab3!==_0x2146d7){const _0x382e57=a118_0x3ba5b8[_0x1667cc(0xf0)](_0x4d4ab3,TDX_CONFIG_FILE);if(existsSync(_0x382e57))return _0x382e57;_0x4d4ab3=a118_0x3ba5b8[_0x1667cc(0xf5)](_0x4d4ab3);}return null;}export function loadTdxConfig(_0x51314c){const _0x1d0ef4=a118_0x29de9a,_0x1bf16f=readFileSync(_0x51314c,_0x1d0ef4(0xf9));let _0xfed1b4;try{_0xfed1b4=JSON[_0x1d0ef4(0x102)](_0x1bf16f);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x51314c);}if(!_0xfed1b4||typeof _0xfed1b4!==_0x1d0ef4(0xf8))throw new Error(_0x1d0ef4(0xed));const _0x516c76=_0xfed1b4;if(!_0x516c76[_0x1d0ef4(0xfa)]||typeof _0x516c76[_0x1d0ef4(0xfa)]!==_0x1d0ef4(0x100))throw new Error('Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field');return{'parent_segment':_0x516c76['parent_segment']};}export function findTdxConfig(_0x1c4b4e=process[a118_0x29de9a(0xff)]()){const _0x52fade=a118_0x29de9a,_0x2dd654=findTdxConfigPath(_0x1c4b4e);if(!_0x2dd654)throw new Error(_0x52fade(0x106));const _0x231f8a=loadTdxConfig(_0x2dd654),_0x44c941=a118_0x3ba5b8[_0x52fade(0xf5)](_0x2dd654);return{'config':_0x231f8a,'configPath':_0x2dd654,'configDir':_0x44c941};}function a118_0x47f5(_0x8b62e8,_0x194e13){_0x8b62e8=_0x8b62e8-0xed;const _0x35aeee=a118_0x35ae();let _0x47f5d0=_0x35aeee[_0x8b62e8];return _0x47f5d0;}export function getSegmentRootDir(_0x263b17,_0x553cc1=process[a118_0x29de9a(0xff)]()){return a118_0x3ba5b8['join'](_0x553cc1,SEGMENTS_DIR,_0x263b17);}export function getTdxConfigPath(_0x209a6c,_0x17debb=process['cwd']()){const _0x18b588=a118_0x29de9a;return a118_0x3ba5b8[_0x18b588(0xf0)](getSegmentRootDir(_0x209a6c,_0x17debb),TDX_CONFIG_FILE);}function a118_0x35ae(){const _0x3fc14c=['Invalid\x20tdx.json:\x20expected\x20object','replace','630265wvWsrT','join','62416HLvlPL','317778tVXyhA','279LpGvrc','stringify','dirname','569lWDSkj','21eyDfTV','object','utf-8','parent_segment','922fIwGBT','resolve','6976640grHWkR','tdx.json','cwd','string','4ZOIPAZ','parse','61500mMMRCn','1665530eSqiZi','startsWith','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.'];a118_0x35ae=function(){return _0x3fc14c;};return a118_0x35ae();}export function getRelativePathFromConfig(_0x69f845,_0x1f77b7){const _0x4ec1bf=a118_0x29de9a,_0x3c5825=a118_0x3ba5b8[_0x4ec1bf(0xfc)](_0x69f845),_0x198e91=a118_0x3ba5b8['relative'](_0x1f77b7,_0x3c5825);if(_0x198e91[_0x4ec1bf(0x105)]('..'))return'';return _0x198e91;}export function localPathToTdFolderPath(_0x163bc4){const _0x102f97=a118_0x29de9a,_0x20de26=a118_0x3ba5b8[_0x102f97(0xf5)](_0x163bc4);if(_0x20de26==='.'||_0x20de26==='')return'';return _0x20de26[_0x102f97(0xee)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x44da55,_0x1077e6){const _0x46ea30=a118_0x29de9a;if(!_0x44da55)return _0x1077e6;return a118_0x3ba5b8[_0x46ea30(0xf0)](_0x1077e6,_0x44da55);}export function createTdxConfigContent(_0x203936){const _0x2bcd1d=a118_0x29de9a,_0xda336b={'parent_segment':_0x203936};return JSON[_0x2bcd1d(0xf4)](_0xda336b,null,0x2)+'\x0a';}
1
+ const a118_0x559e9b=a118_0x12bf;function a118_0x3195(){const _0x3b72cb=['5652140eScRcT','dirname','utf-8','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field','segments','24QzzmMi','resolve','685123hBTeKb','2246288MxYxqQ','Invalid\x20JSON\x20in\x20','Invalid\x20tdx.json:\x20expected\x20object','2028702HoxqXY','join','297695zjKqdO','replace','678958CzqGXp','parse','6KxkNqF','object','stringify','cwd','root','parent_segment','11174472jdelZd','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','string','4rastnH'];a118_0x3195=function(){return _0x3b72cb;};return a118_0x3195();}(function(_0x327ee5,_0x5d0e8e){const _0x2e0b69=a118_0x12bf,_0x14cf57=_0x327ee5();while(!![]){try{const _0x1f5fa4=parseInt(_0x2e0b69(0x10e))/0x1*(-parseInt(_0x2e0b69(0x121))/0x2)+parseInt(_0x2e0b69(0x112))/0x3+-parseInt(_0x2e0b69(0x10f))/0x4+-parseInt(_0x2e0b69(0x114))/0x5*(parseInt(_0x2e0b69(0x118))/0x6)+parseInt(_0x2e0b69(0x116))/0x7*(parseInt(_0x2e0b69(0x10c))/0x8)+parseInt(_0x2e0b69(0x11e))/0x9+parseInt(_0x2e0b69(0x122))/0xa;if(_0x1f5fa4===_0x5d0e8e)break;else _0x14cf57['push'](_0x14cf57['shift']());}catch(_0x5e2384){_0x14cf57['push'](_0x14cf57['shift']());}}}(a118_0x3195,0xbf159));import{existsSync,readFileSync}from'fs';import a118_0x3ce395 from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a118_0x559e9b(0x126);export function findTdxConfigPath(_0x40c38c=process[a118_0x559e9b(0x11b)]()){const _0x53344c=a118_0x559e9b;let _0x4ec54b=a118_0x3ce395['resolve'](_0x40c38c);const _0x2698fc=a118_0x3ce395[_0x53344c(0x117)](_0x4ec54b)[_0x53344c(0x11c)];while(_0x4ec54b!==_0x2698fc){const _0xd48ed1=a118_0x3ce395['join'](_0x4ec54b,TDX_CONFIG_FILE);if(existsSync(_0xd48ed1))return _0xd48ed1;_0x4ec54b=a118_0x3ce395[_0x53344c(0x123)](_0x4ec54b);}return null;}export function loadTdxConfig(_0x5793eb){const _0x384066=a118_0x559e9b,_0x4107e6=readFileSync(_0x5793eb,_0x384066(0x124));let _0x16994f;try{_0x16994f=JSON[_0x384066(0x117)](_0x4107e6);}catch{throw new Error(_0x384066(0x110)+_0x5793eb);}if(!_0x16994f||typeof _0x16994f!==_0x384066(0x119))throw new Error(_0x384066(0x111));const _0xa9ddf6=_0x16994f;if(!_0xa9ddf6[_0x384066(0x11d)]||typeof _0xa9ddf6[_0x384066(0x11d)]!==_0x384066(0x120))throw new Error(_0x384066(0x125));return{'parent_segment':_0xa9ddf6[_0x384066(0x11d)]};}export function findTdxConfig(_0x3d77e6=process['cwd']()){const _0x1f49e0=a118_0x559e9b,_0x2e91bf=findTdxConfigPath(_0x3d77e6);if(!_0x2e91bf)throw new Error(_0x1f49e0(0x11f));const _0x2947a6=loadTdxConfig(_0x2e91bf),_0x231648=a118_0x3ce395[_0x1f49e0(0x123)](_0x2e91bf);return{'config':_0x2947a6,'configPath':_0x2e91bf,'configDir':_0x231648};}export function getSegmentRootDir(_0x1e1c5b,_0x563849=process[a118_0x559e9b(0x11b)]()){const _0x5d6970=a118_0x559e9b;return a118_0x3ce395[_0x5d6970(0x113)](_0x563849,SEGMENTS_DIR,_0x1e1c5b);}export function getTdxConfigPath(_0x507252,_0x5f2185=process[a118_0x559e9b(0x11b)]()){const _0xde421b=a118_0x559e9b;return a118_0x3ce395[_0xde421b(0x113)](getSegmentRootDir(_0x507252,_0x5f2185),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x505aaf,_0x41eef0){const _0xcf254d=a118_0x559e9b,_0x47a681=a118_0x3ce395[_0xcf254d(0x10d)](_0x505aaf),_0x50907d=a118_0x3ce395['relative'](_0x41eef0,_0x47a681);if(_0x50907d['startsWith']('..'))return'';return _0x50907d;}function a118_0x12bf(_0x3e7bd1,_0x262e0a){_0x3e7bd1=_0x3e7bd1-0x10c;const _0x3195c0=a118_0x3195();let _0x12bfb9=_0x3195c0[_0x3e7bd1];return _0x12bfb9;}export function localPathToTdFolderPath(_0x44f4dc){const _0x470ca0=a118_0x559e9b,_0x39f15e=a118_0x3ce395[_0x470ca0(0x123)](_0x44f4dc);if(_0x39f15e==='.'||_0x39f15e==='')return'';return _0x39f15e[_0x470ca0(0x115)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x56d0c9,_0x40ecb4){const _0x4987ee=a118_0x559e9b;if(!_0x56d0c9)return _0x40ecb4;return a118_0x3ce395[_0x4987ee(0x113)](_0x40ecb4,_0x56d0c9);}export function createTdxConfigContent(_0x5bef61){const _0x3430fe=a118_0x559e9b,_0x2e8893={'parent_segment':_0x5bef61};return JSON[_0x3430fe(0x11a)](_0x2e8893,null,0x2)+'\x0a';}