@treasuredata/tdx 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) 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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client/cdp-api-client.js +1 -1
  8. package/dist/client/engage-api-client.js +1 -1
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/rate-limiter.js +1 -1
  12. package/dist/client/td-api-client.js +1 -1
  13. package/dist/client/trino-api-client.js +1 -1
  14. package/dist/client/workflow-client.js +1 -1
  15. package/dist/commands/activations.js +1 -1
  16. package/dist/commands/api-command.js +1 -1
  17. package/dist/commands/auth-command.js +1 -1
  18. package/dist/commands/chat-command.js +1 -1
  19. package/dist/commands/claude-command.js +1 -1
  20. package/dist/commands/claude-statusline-command.js +1 -1
  21. package/dist/commands/claude-usage-command.js +1 -1
  22. package/dist/commands/command.js +1 -1
  23. package/dist/commands/connection-command.js +1 -1
  24. package/dist/commands/context-command.js +1 -1
  25. package/dist/commands/databases.js +1 -1
  26. package/dist/commands/describe.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/llm-command.js +1 -1
  30. package/dist/commands/llm-proxy.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profiles-command.js +1 -1
  33. package/dist/commands/query-command.d.ts.map +1 -1
  34. package/dist/commands/query-command.js +1 -1
  35. package/dist/commands/query-command.js.map +1 -1
  36. package/dist/commands/segment-command.d.ts.map +1 -1
  37. package/dist/commands/segment-command.js +1 -1
  38. package/dist/commands/segment-command.js.map +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.d.ts.map +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js.map +1 -1
  44. package/dist/commands/segment-push-command.d.ts.map +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-push-command.js.map +1 -1
  47. package/dist/commands/segment-update-command.js +1 -1
  48. package/dist/commands/segment-use-command.js +1 -1
  49. package/dist/commands/segments.d.ts.map +1 -1
  50. package/dist/commands/segments.js +1 -1
  51. package/dist/commands/segments.js.map +1 -1
  52. package/dist/commands/show.js +1 -1
  53. package/dist/commands/tables.js +1 -1
  54. package/dist/commands/use-command.js +1 -1
  55. package/dist/commands/user-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/config.js +1 -1
  59. package/dist/core/connection-cache.js +1 -1
  60. package/dist/core/credential-cache.js +1 -1
  61. package/dist/core/global-context.js +1 -1
  62. package/dist/core/keychain.js +1 -1
  63. package/dist/core/profile.js +1 -1
  64. package/dist/core/project-config.js +1 -1
  65. package/dist/core/session.js +1 -1
  66. package/dist/core/user-cache.js +1 -1
  67. package/dist/index.js +1 -1
  68. package/dist/proxy/anthropic-adapter.d.ts +21 -21
  69. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  70. package/dist/proxy/anthropic-adapter.js +1 -1
  71. package/dist/proxy/anthropic-adapter.js.map +1 -1
  72. package/dist/proxy/claude-usage-tracker.js +1 -1
  73. package/dist/proxy/context-signature.js +1 -1
  74. package/dist/proxy/conversation-utils.js +1 -1
  75. package/dist/proxy/conversation-utils.js.map +1 -1
  76. package/dist/proxy/server.d.ts.map +1 -1
  77. package/dist/proxy/server.js +1 -1
  78. package/dist/proxy/server.js.map +1 -1
  79. package/dist/proxy/session-cache.js +1 -1
  80. package/dist/sdk/api.js +1 -1
  81. package/dist/sdk/connection.js +1 -1
  82. package/dist/sdk/engage.js +1 -1
  83. package/dist/sdk/errors.d.ts +18 -0
  84. package/dist/sdk/errors.d.ts.map +1 -1
  85. package/dist/sdk/errors.js +1 -1
  86. package/dist/sdk/errors.js.map +1 -1
  87. package/dist/sdk/index.js +1 -1
  88. package/dist/sdk/job.js +1 -1
  89. package/dist/sdk/llm.js +1 -1
  90. package/dist/sdk/query.js +1 -1
  91. package/dist/sdk/segment/child-segment-yaml.d.ts +24 -5
  92. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  93. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  94. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  95. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  96. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  97. package/dist/sdk/segment.js +1 -1
  98. package/dist/sdk/user.js +1 -1
  99. package/dist/sdk/workflow.js +1 -1
  100. package/dist/types/endpoints.js +1 -1
  101. package/dist/types/index.d.ts +1 -0
  102. package/dist/types/index.d.ts.map +1 -1
  103. package/dist/types/index.js +1 -1
  104. package/dist/utils/agent-ref-parser.js +1 -1
  105. package/dist/utils/async.js +1 -1
  106. package/dist/utils/chat-cache.js +1 -1
  107. package/dist/utils/colors.js +1 -1
  108. package/dist/utils/command-output.js +1 -1
  109. package/dist/utils/constants.js +1 -1
  110. package/dist/utils/diff.js +1 -1
  111. package/dist/utils/fields-display.js +1 -1
  112. package/dist/utils/file-permissions.js +1 -1
  113. package/dist/utils/format-detector.js +1 -1
  114. package/dist/utils/formatters.js +1 -1
  115. package/dist/utils/json-loader.js +1 -1
  116. package/dist/utils/llm-backup-utils.js +1 -1
  117. package/dist/utils/model-aliases.js +1 -1
  118. package/dist/utils/model-factors.js +1 -1
  119. package/dist/utils/option-validation.js +1 -1
  120. package/dist/utils/port.js +1 -1
  121. package/dist/utils/process.d.ts +6 -0
  122. package/dist/utils/process.d.ts.map +1 -1
  123. package/dist/utils/process.js +1 -1
  124. package/dist/utils/process.js.map +1 -1
  125. package/dist/utils/prompt.js +1 -1
  126. package/dist/utils/segment-path-parser.js +1 -1
  127. package/dist/utils/segment-ref-parser.js +1 -1
  128. package/dist/utils/spinner.js +1 -1
  129. package/dist/utils/sql-parser.d.ts +37 -1
  130. package/dist/utils/sql-parser.d.ts.map +1 -1
  131. package/dist/utils/sql-parser.js +1 -1
  132. package/dist/utils/sql-parser.js.map +1 -1
  133. package/dist/utils/sse-parser.js +1 -1
  134. package/dist/utils/string-utils.js +1 -1
  135. package/dist/utils/table-ref-parser.js +1 -1
  136. package/dist/utils/tdx-config.js +1 -1
  137. package/dist/utils/tdx-logger.js +1 -1
  138. package/dist/utils/tree-formatter.d.ts +4 -0
  139. package/dist/utils/tree-formatter.d.ts.map +1 -1
  140. package/dist/utils/tree-formatter.js +1 -1
  141. package/dist/utils/tree-formatter.js.map +1 -1
  142. package/dist/utils/version-check.js +1 -1
  143. package/dist/utils/workflow-utils.js +1 -1
  144. package/package.json +3 -3
@@ -1 +1 @@
1
- const a78_0x4c9a79=a78_0x5a08;function a78_0x5a08(_0x397a3d,_0x267217){_0x397a3d=_0x397a3d-0xc6;const _0xbe320c=a78_0xbe32();let _0x5a0898=_0xbe320c[_0x397a3d];return _0x5a0898;}(function(_0x39f825,_0x54154a){const _0x4794f2=a78_0x5a08,_0x4d32ef=_0x39f825();while(!![]){try{const _0x3b5ef4=parseInt(_0x4794f2(0x105))/0x1+-parseInt(_0x4794f2(0xf8))/0x2*(parseInt(_0x4794f2(0xf3))/0x3)+parseInt(_0x4794f2(0x10c))/0x4+parseInt(_0x4794f2(0xd1))/0x5*(parseInt(_0x4794f2(0xd0))/0x6)+parseInt(_0x4794f2(0xd3))/0x7*(-parseInt(_0x4794f2(0xcf))/0x8)+parseInt(_0x4794f2(0xcb))/0x9*(parseInt(_0x4794f2(0xcd))/0xa)+-parseInt(_0x4794f2(0xf5))/0xb;if(_0x3b5ef4===_0x54154a)break;else _0x4d32ef['push'](_0x4d32ef['shift']());}catch(_0x2b37a1){_0x4d32ef['push'](_0x4d32ef['shift']());}}}(a78_0xbe32,0xbacb9));export const TD_ENDPOINTS={'us01':a78_0x4c9a79(0x108),'jp01':a78_0x4c9a79(0xe5),'eu01':a78_0x4c9a79(0xe3),'ap02':a78_0x4c9a79(0xfe),'ap03':a78_0x4c9a79(0xda),'dev-us01':a78_0x4c9a79(0xfb),'dev-eu01':a78_0x4c9a79(0xd6),'stg-us01':a78_0x4c9a79(0xd2),'stg-jp01':a78_0x4c9a79(0xf7),'stg-ap03':a78_0x4c9a79(0xc8)};export const CDP_ENDPOINTS={'us01':a78_0x4c9a79(0x10a),'jp01':'https://api-cdp.treasuredata.co.jp','eu01':'https://api-cdp.eu01.treasuredata.com','ap02':a78_0x4c9a79(0xe9),'ap03':a78_0x4c9a79(0x103),'dev-us01':a78_0x4c9a79(0xd8),'dev-eu01':a78_0x4c9a79(0xca),'stg-us01':a78_0x4c9a79(0xed),'stg-jp01':'https://api-staging-cdp.treasuredata.co.jp','stg-ap03':'https://api-staging-cdp.ap03.treasuredata.com'};export const WORKFLOW_ENDPOINTS={'us01':'https://api-workflow.treasuredata.com','jp01':a78_0x4c9a79(0xe8),'eu01':a78_0x4c9a79(0xf9),'ap02':a78_0x4c9a79(0x104),'ap03':'https://api-workflow.ap03.treasuredata.com','dev-us01':'https://api-development-workflow.us01.treasuredata.com','dev-eu01':a78_0x4c9a79(0xdb),'stg-us01':a78_0x4c9a79(0xff),'stg-jp01':a78_0x4c9a79(0xe1),'stg-ap03':a78_0x4c9a79(0xe2)};export const TRINO_ENDPOINTS={'us01':a78_0x4c9a79(0xf4),'jp01':a78_0x4c9a79(0x102),'eu01':a78_0x4c9a79(0xf6),'ap02':'https://api-presto.ap02.treasuredata.com','ap03':a78_0x4c9a79(0xce),'dev-us01':a78_0x4c9a79(0xdf),'dev-eu01':a78_0x4c9a79(0x10b),'stg-us01':'https://api-staging-presto.treasuredata.com','stg-jp01':a78_0x4c9a79(0xd7),'stg-ap03':a78_0x4c9a79(0xf2)};export const LLM_ENDPOINTS={'us01':'https://llm-api.treasuredata.com','jp01':'https://llm-api.treasuredata.co.jp','eu01':'https://llm-api.eu01.treasuredata.com','ap02':a78_0x4c9a79(0xea),'ap03':a78_0x4c9a79(0xc9),'dev-us01':a78_0x4c9a79(0x107),'dev-eu01':a78_0x4c9a79(0xe0),'stg-us01':a78_0x4c9a79(0xec),'stg-jp01':a78_0x4c9a79(0x100),'stg-ap03':a78_0x4c9a79(0xfd)};export const ENGAGE_ENDPOINTS={'us01':'https://engage-api.treasuredata.com','jp01':a78_0x4c9a79(0x109),'eu01':a78_0x4c9a79(0xf1),'ap02':a78_0x4c9a79(0xeb),'ap03':'https://engage-api.ap03.treasuredata.com','dev-us01':a78_0x4c9a79(0xd4),'dev-eu01':a78_0x4c9a79(0xdc),'stg-us01':a78_0x4c9a79(0xe4),'stg-jp01':'https://engage-api-staging.treasuredata.co.jp','stg-ap03':a78_0x4c9a79(0xcc)};export const CONSOLE_ENDPOINTS={'us01':a78_0x4c9a79(0x10d),'jp01':a78_0x4c9a79(0xfa),'eu01':a78_0x4c9a79(0x101),'ap02':'https://console.ap02.treasuredata.com','ap03':a78_0x4c9a79(0xe7),'dev-us01':a78_0x4c9a79(0xdd),'dev-eu01':'https://console-development.eu01.treasuredata.com','stg-us01':a78_0x4c9a79(0xd9),'stg-jp01':'https://console-staging.treasuredata.co.jp','stg-ap03':'https://console-staging.ap03.treasuredata.com'};export const CONSOLE_NEXT_ENDPOINTS={'us01':a78_0x4c9a79(0xef),'jp01':a78_0x4c9a79(0xfc),'eu01':'https://console-next.eu01.treasuredata.com','ap02':a78_0x4c9a79(0xd5),'ap03':a78_0x4c9a79(0x10f),'dev-us01':a78_0x4c9a79(0xf0),'dev-eu01':a78_0x4c9a79(0x106),'stg-us01':a78_0x4c9a79(0x10e),'stg-jp01':'https://console-staging-next.treasuredata.co.jp','stg-ap03':'https://console-staging-next.ap03.treasuredata.com'};function a78_0xbe32(){const _0xe23b6c=['https://api.ap02.treasuredata.com','https://api-staging-workflow.us01.treasuredata.com','https://llm-api-staging.treasuredata.co.jp','https://console.eu01.treasuredata.com','https://api-presto.treasuredata.co.jp','https://api-cdp.ap03.treasuredata.com','https://api-workflow.ap02.treasuredata.com','72270bMOzIJ','https://console-development-next.eu01.treasuredata.com','https://llm-api-development.us01.treasuredata.com','https://api.treasuredata.com','https://engage-api.treasuredata.co.jp','https://api-cdp.treasuredata.com','https://api-development-presto.eu01.treasuredata.com','4036676PAYpUW','https://console.treasuredata.com','https://console-staging-next.us01.treasuredata.com','https://console-next.ap03.treasuredata.com','https://console.','\x27\x20and\x20site\x20\x27','https://api-staging.ap03.treasuredata.com','https://llm-api.ap03.treasuredata.com','https://api-development-cdp.eu01.treasuredata.com','231003bTIxMr','https://engage-api-staging.ap03.treasuredata.com','420LdCTfP','https://api-presto.ap03.treasuredata.com','24wOZHmy','6078bGdHXQ','5515URHdAk','https://api-staging.us01.treasuredata.com','1053416WFSnDf','https://engage-api-development.us01.treasuredata.com','https://console-next.ap02.treasuredata.com','https://api-development.eu01.treasuredata.com','https://api-staging-presto.treasuredata.co.jp','https://api-development-cdp.us01.treasuredata.com','https://console-staging.us01.treasuredata.com','https://api.ap03.treasuredata.com','https://api-development-workflow.eu01.treasuredata.com','https://engage-api-development.eu01.treasuredata.com','https://console-development.treasuredata.com','.treasuredata.com','https://api-development-presto.treasuredata.com','https://llm-api-development.eu01.treasuredata.com','https://api-staging-workflow.treasuredata.co.jp','https://api-staging-workflow.ap03.treasuredata.com','https://api.eu01.treasuredata.com','https://engage-api-staging.us01.treasuredata.com','https://api.treasuredata.co.jp','No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27','https://console.ap03.treasuredata.com','https://api-workflow.treasuredata.co.jp','https://api-cdp.ap02.treasuredata.com','https://llm-api.ap02.treasuredata.com','https://engage-api.ap02.treasuredata.com','https://llm-api-staging.us01.treasuredata.com','https://api-staging-cdp.us01.treasuredata.com','https://console-next.','https://console-next.us01.treasuredata.com','https://console-development-next.us01.treasuredata.com','https://engage-api.eu01.treasuredata.com','https://api-staging-presto.ap03.treasuredata.com','132210BcJCLO','https://api-presto.treasuredata.com','18784205nAeEHz','https://api-presto.eu01.treasuredata.com','https://api-staging.treasuredata.co.jp','16FTnUVN','https://api-workflow.eu01.treasuredata.com','https://console.treasuredata.co.jp','https://api-development.treasuredata.com','https://console-next.treasuredata.co.jp','https://llm-api-staging.ap03.treasuredata.com'];a78_0xbe32=function(){return _0xe23b6c;};return a78_0xbe32();}export function getConsoleUrl(_0x4f700c,_0x4533e4){const _0x45d6ef=a78_0x4c9a79,_0x532580=CONSOLE_ENDPOINTS[_0x4f700c]||_0x45d6ef(0xc6)+_0x4f700c+_0x45d6ef(0xde);return _0x4533e4?''+_0x532580+_0x4533e4:_0x532580;}export function getConsoleNextUrl(_0x34d50b,_0x1fb629){const _0x11c440=a78_0x4c9a79,_0x3db63e=CONSOLE_NEXT_ENDPOINTS[_0x34d50b]||_0x11c440(0xee)+_0x34d50b+_0x11c440(0xde);return _0x1fb629?''+_0x3db63e+_0x1fb629:_0x3db63e;}export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS,'engage':ENGAGE_ENDPOINTS};export function getEndpoint(_0x257b58,_0x3872c2='td'){const _0x1ddc51=a78_0x4c9a79,_0x2fc693=API_ENDPOINTS[_0x3872c2]?.[_0x257b58];if(!_0x2fc693)throw new Error(_0x1ddc51(0xe6)+_0x3872c2+_0x1ddc51(0xc7)+_0x257b58+'\x27');return _0x2fc693;}
1
+ const a78_0x3350ec=a78_0x3fcf;(function(_0x514ace,_0x2a3ac5){const _0x422541=a78_0x3fcf,_0x445cbf=_0x514ace();while(!![]){try{const _0x34aa33=-parseInt(_0x422541(0x1a9))/0x1*(-parseInt(_0x422541(0x180))/0x2)+parseInt(_0x422541(0x1b3))/0x3+parseInt(_0x422541(0x1b5))/0x4+-parseInt(_0x422541(0x18a))/0x5*(parseInt(_0x422541(0x1a4))/0x6)+parseInt(_0x422541(0x19f))/0x7+-parseInt(_0x422541(0x1bd))/0x8*(-parseInt(_0x422541(0x1ae))/0x9)+-parseInt(_0x422541(0x195))/0xa*(parseInt(_0x422541(0x17f))/0xb);if(_0x34aa33===_0x2a3ac5)break;else _0x445cbf['push'](_0x445cbf['shift']());}catch(_0x559ea5){_0x445cbf['push'](_0x445cbf['shift']());}}}(a78_0x487b,0x70b06));export const TD_ENDPOINTS={'us01':a78_0x3350ec(0x17d),'jp01':a78_0x3350ec(0x18c),'eu01':a78_0x3350ec(0x1b8),'ap02':a78_0x3350ec(0x1b9),'ap03':a78_0x3350ec(0x19a),'dev-us01':a78_0x3350ec(0x1b2),'dev-eu01':'https://api-development.eu01.treasuredata.com','stg-us01':'https://api-staging.us01.treasuredata.com','stg-jp01':a78_0x3350ec(0x1c2),'stg-ap03':a78_0x3350ec(0x184)};export const CDP_ENDPOINTS={'us01':a78_0x3350ec(0x182),'jp01':a78_0x3350ec(0x198),'eu01':a78_0x3350ec(0x1a3),'ap02':a78_0x3350ec(0x1b7),'ap03':'https://api-cdp.ap03.treasuredata.com','dev-us01':a78_0x3350ec(0x193),'dev-eu01':a78_0x3350ec(0x1a8),'stg-us01':a78_0x3350ec(0x192),'stg-jp01':a78_0x3350ec(0x196),'stg-ap03':a78_0x3350ec(0x190)};export const WORKFLOW_ENDPOINTS={'us01':a78_0x3350ec(0x1bc),'jp01':'https://api-workflow.treasuredata.co.jp','eu01':'https://api-workflow.eu01.treasuredata.com','ap02':'https://api-workflow.ap02.treasuredata.com','ap03':a78_0x3350ec(0x189),'dev-us01':a78_0x3350ec(0x1aa),'dev-eu01':a78_0x3350ec(0x1bb),'stg-us01':a78_0x3350ec(0x19e),'stg-jp01':'https://api-staging-workflow.treasuredata.co.jp','stg-ap03':a78_0x3350ec(0x1a2)};export const TRINO_ENDPOINTS={'us01':'https://api-presto.treasuredata.com','jp01':'https://api-presto.treasuredata.co.jp','eu01':'https://api-presto.eu01.treasuredata.com','ap02':'https://api-presto.ap02.treasuredata.com','ap03':a78_0x3350ec(0x1b0),'dev-us01':a78_0x3350ec(0x188),'dev-eu01':'https://api-development-presto.eu01.treasuredata.com','stg-us01':a78_0x3350ec(0x179),'stg-jp01':a78_0x3350ec(0x1a6),'stg-ap03':a78_0x3350ec(0x194)};export const LLM_ENDPOINTS={'us01':'https://llm-api.treasuredata.com','jp01':a78_0x3350ec(0x185),'eu01':a78_0x3350ec(0x1b6),'ap02':a78_0x3350ec(0x17b),'ap03':'https://llm-api.ap03.treasuredata.com','dev-us01':a78_0x3350ec(0x1a5),'dev-eu01':a78_0x3350ec(0x191),'stg-us01':a78_0x3350ec(0x1be),'stg-jp01':a78_0x3350ec(0x18e),'stg-ap03':a78_0x3350ec(0x18b)};export const ENGAGE_ENDPOINTS={'us01':'https://engage-api.treasuredata.com','jp01':a78_0x3350ec(0x197),'eu01':'https://engage-api.eu01.treasuredata.com','ap02':a78_0x3350ec(0x18f),'ap03':a78_0x3350ec(0x1ba),'dev-us01':a78_0x3350ec(0x19d),'dev-eu01':a78_0x3350ec(0x19c),'stg-us01':a78_0x3350ec(0x1c1),'stg-jp01':a78_0x3350ec(0x1ac),'stg-ap03':a78_0x3350ec(0x1ad)};export const CONSOLE_ENDPOINTS={'us01':'https://console.treasuredata.com','jp01':a78_0x3350ec(0x17e),'eu01':'https://console.eu01.treasuredata.com','ap02':'https://console.ap02.treasuredata.com','ap03':a78_0x3350ec(0x1af),'dev-us01':a78_0x3350ec(0x183),'dev-eu01':a78_0x3350ec(0x186),'stg-us01':a78_0x3350ec(0x1a0),'stg-jp01':'https://console-staging.treasuredata.co.jp','stg-ap03':a78_0x3350ec(0x19b)};export const CONSOLE_NEXT_ENDPOINTS={'us01':a78_0x3350ec(0x17c),'jp01':a78_0x3350ec(0x1a7),'eu01':a78_0x3350ec(0x1b1),'ap02':'https://console-next.ap02.treasuredata.com','ap03':a78_0x3350ec(0x1bf),'dev-us01':a78_0x3350ec(0x18d),'dev-eu01':a78_0x3350ec(0x1b4),'stg-us01':a78_0x3350ec(0x187),'stg-jp01':'https://console-staging-next.treasuredata.co.jp','stg-ap03':a78_0x3350ec(0x1c0)};function a78_0x3fcf(_0x4099de,_0x587f18){_0x4099de=_0x4099de-0x179;const _0x487b10=a78_0x487b();let _0x3fcf3b=_0x487b10[_0x4099de];return _0x3fcf3b;}export function getConsoleUrl(_0xc68184,_0x18d74d){const _0x549f6c=a78_0x3350ec,_0x2e98ff=CONSOLE_ENDPOINTS[_0xc68184]||_0x549f6c(0x1ab)+_0xc68184+'.treasuredata.com';return _0x18d74d?''+_0x2e98ff+_0x18d74d:_0x2e98ff;}export function getConsoleNextUrl(_0x31371d,_0x39f28d){const _0x5b64fe=a78_0x3350ec,_0x88e16a=CONSOLE_NEXT_ENDPOINTS[_0x31371d]||_0x5b64fe(0x1a1)+_0x31371d+_0x5b64fe(0x181);return _0x39f28d?''+_0x88e16a+_0x39f28d:_0x88e16a;}export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS,'engage':ENGAGE_ENDPOINTS};export function getEndpoint(_0x44a4bc,_0x1d7b11='td'){const _0x45b974=a78_0x3350ec,_0x132af9=API_ENDPOINTS[_0x1d7b11]?.[_0x44a4bc];if(!_0x132af9)throw new Error(_0x45b974(0x17a)+_0x1d7b11+_0x45b974(0x199)+_0x44a4bc+'\x27');return _0x132af9;}function a78_0x487b(){const _0x154755=['https://console-next.us01.treasuredata.com','https://api.treasuredata.com','https://console.treasuredata.co.jp','1573xhTsAW','8SeScvv','.treasuredata.com','https://api-cdp.treasuredata.com','https://console-development.treasuredata.com','https://api-staging.ap03.treasuredata.com','https://llm-api.treasuredata.co.jp','https://console-development.eu01.treasuredata.com','https://console-staging-next.us01.treasuredata.com','https://api-development-presto.treasuredata.com','https://api-workflow.ap03.treasuredata.com','5475Hibuni','https://llm-api-staging.ap03.treasuredata.com','https://api.treasuredata.co.jp','https://console-development-next.us01.treasuredata.com','https://llm-api-staging.treasuredata.co.jp','https://engage-api.ap02.treasuredata.com','https://api-staging-cdp.ap03.treasuredata.com','https://llm-api-development.eu01.treasuredata.com','https://api-staging-cdp.us01.treasuredata.com','https://api-development-cdp.us01.treasuredata.com','https://api-staging-presto.ap03.treasuredata.com','78620OZNjHZ','https://api-staging-cdp.treasuredata.co.jp','https://engage-api.treasuredata.co.jp','https://api-cdp.treasuredata.co.jp','\x27\x20and\x20site\x20\x27','https://api.ap03.treasuredata.com','https://console-staging.ap03.treasuredata.com','https://engage-api-development.eu01.treasuredata.com','https://engage-api-development.us01.treasuredata.com','https://api-staging-workflow.us01.treasuredata.com','1716218JuqPPr','https://console-staging.us01.treasuredata.com','https://console-next.','https://api-staging-workflow.ap03.treasuredata.com','https://api-cdp.eu01.treasuredata.com','3696PmBpLh','https://llm-api-development.us01.treasuredata.com','https://api-staging-presto.treasuredata.co.jp','https://console-next.treasuredata.co.jp','https://api-development-cdp.eu01.treasuredata.com','100829AdgBBa','https://api-development-workflow.us01.treasuredata.com','https://console.','https://engage-api-staging.treasuredata.co.jp','https://engage-api-staging.ap03.treasuredata.com','9vuGCWS','https://console.ap03.treasuredata.com','https://api-presto.ap03.treasuredata.com','https://console-next.eu01.treasuredata.com','https://api-development.treasuredata.com','889638UkDFRW','https://console-development-next.eu01.treasuredata.com','2610612pSfddQ','https://llm-api.eu01.treasuredata.com','https://api-cdp.ap02.treasuredata.com','https://api.eu01.treasuredata.com','https://api.ap02.treasuredata.com','https://engage-api.ap03.treasuredata.com','https://api-development-workflow.eu01.treasuredata.com','https://api-workflow.treasuredata.com','5301368FJvdde','https://llm-api-staging.us01.treasuredata.com','https://console-next.ap03.treasuredata.com','https://console-staging-next.ap03.treasuredata.com','https://engage-api-staging.us01.treasuredata.com','https://api-staging.treasuredata.co.jp','https://api-staging-presto.treasuredata.com','No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27','https://llm-api.ap02.treasuredata.com'];a78_0x487b=function(){return _0x154755;};return a78_0x487b();}
@@ -83,6 +83,7 @@ export interface GlobalOptions {
83
83
  clear?: boolean;
84
84
  recursive?: boolean;
85
85
  maxDepth?: number;
86
+ web?: boolean;
86
87
  database?: string;
87
88
  parentSegment?: string;
88
89
  segmentPath?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,MAAM,GACd,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAO/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,KAAK,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,OAAO,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,OAAO;IACtC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAGD,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGrD,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG7D,YAAY,EACV,aAAa,EACb,OAAO,EACP,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,+BAA+B,EAC/B,cAAc,EACd,0BAA0B,EAC1B,2BAA2B,EAC3B,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAGlB,YAAY,EACV,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,mBAAmB,EACnB,eAAe,EAEf,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EACzB,SAAS,EACT,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,uBAAuB,EACvB,SAAS,EACT,aAAa,EACb,WAAW,EACX,SAAS,EACT,qBAAqB,EACrB,aAAa,EACb,cAAc,GACf,MAAM,UAAU,CAAC;AAGlB,YAAY,EACV,eAAe,EACf,QAAQ,EACR,eAAe,EACf,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAGvB,YAAY,EAEV,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,oBAAoB,EAEpB,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,aAAa,EACb,oBAAoB,EAEpB,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,oBAAoB,EAEpB,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAGrB,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- const a80_0x5adad3=a80_0x5214;function a80_0x5214(_0x52f0de,_0x3d03f8){_0x52f0de=_0x52f0de-0x130;const _0x3b7055=a80_0x3b70();let _0x5214a8=_0x3b7055[_0x52f0de];return _0x5214a8;}function a80_0x3b70(){const _0x500e25=['442204JfAuyO','7122EnJdOw','6452OpeMGh','137yYiUxj','477213waTeXk','80GkEHtt','1893710SUVgGq','us01','27CtVpGq','56eVuMJK','24IPfDIR','jp01','222332woGoaM','2005056bNsiis','stg-us01'];a80_0x3b70=function(){return _0x500e25;};return a80_0x3b70();}(function(_0x58b00c,_0x47e317){const _0x35a31b=a80_0x5214,_0x5b548c=_0x58b00c();while(!![]){try{const _0x4d8c1d=parseInt(_0x35a31b(0x138))/0x1*(parseInt(_0x35a31b(0x137))/0x2)+parseInt(_0x35a31b(0x13d))/0x3*(-parseInt(_0x35a31b(0x132))/0x4)+parseInt(_0x35a31b(0x13a))/0x5*(parseInt(_0x35a31b(0x136))/0x6)+parseInt(_0x35a31b(0x135))/0x7*(parseInt(_0x35a31b(0x13e))/0x8)+-parseInt(_0x35a31b(0x133))/0x9+parseInt(_0x35a31b(0x13b))/0xa+-parseInt(_0x35a31b(0x139))/0xb*(-parseInt(_0x35a31b(0x130))/0xc);if(_0x4d8c1d===_0x47e317)break;else _0x5b548c['push'](_0x5b548c['shift']());}catch(_0x409ca5){_0x5b548c['push'](_0x5b548c['shift']());}}}(a80_0x3b70,0x6f648));export const SITE_ALIASES={'us':a80_0x5adad3(0x13c),'aws':a80_0x5adad3(0x13c),'jp':a80_0x5adad3(0x131),'aws-tokyo':'jp01','dev':'dev-us01','stg':a80_0x5adad3(0x134)};export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';
1
+ function a80_0x5e89(){const _0x5dd9c4=['5SUptmb','23030YGrAVp','22gvczwK','1816155jzXRJL','102244RZuTGD','266yIQNen','43440XAyTjx','527916rxzPFI','32093UuYIBM','595032YfitxP','jp01','209CphrGw','us01'];a80_0x5e89=function(){return _0x5dd9c4;};return a80_0x5e89();}const a80_0x4fef1f=a80_0x4c1d;(function(_0x4c3bd6,_0x3c9309){const _0x2c0b4e=a80_0x4c1d,_0x432e22=_0x4c3bd6();while(!![]){try{const _0x1c01e1=-parseInt(_0x2c0b4e(0x1a8))/0x1*(-parseInt(_0x2c0b4e(0x1af))/0x2)+-parseInt(_0x2c0b4e(0x1a7))/0x3+-parseInt(_0x2c0b4e(0x1a4))/0x4+parseInt(_0x2c0b4e(0x1ad))/0x5*(parseInt(_0x2c0b4e(0x1a9))/0x6)+-parseInt(_0x2c0b4e(0x1a5))/0x7*(-parseInt(_0x2c0b4e(0x1a6))/0x8)+-parseInt(_0x2c0b4e(0x1a3))/0x9+parseInt(_0x2c0b4e(0x1ae))/0xa*(-parseInt(_0x2c0b4e(0x1ab))/0xb);if(_0x1c01e1===_0x3c9309)break;else _0x432e22['push'](_0x432e22['shift']());}catch(_0x19d01d){_0x432e22['push'](_0x432e22['shift']());}}}(a80_0x5e89,0x339fa));export const SITE_ALIASES={'us':'us01','aws':a80_0x4fef1f(0x1ac),'jp':a80_0x4fef1f(0x1aa),'aws-tokyo':a80_0x4fef1f(0x1aa),'dev':'dev-us01','stg':'stg-us01'};function a80_0x4c1d(_0x4518a,_0x4d3d56){_0x4518a=_0x4518a-0x1a3;const _0x5e89ef=a80_0x5e89();let _0x4c1d05=_0x5e89ef[_0x4518a];return _0x4c1d05;}export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';
@@ -1 +1 @@
1
- function a85_0x42a6(){const _0x4cef81=['5pJcdaR','1201995fNUZDQ','Agent\x20reference\x20cannot\x20be\x20empty','367986HiueWH','4088707vKTukb','16KXGGkH','trim','3037304YWRUNO','8465040VSAhxn','Invalid\x20agent\x20reference\x20format:\x20','Project\x20name\x20cannot\x20be\x20empty','3029817PDpVOX','1219401pfUCLO'];a85_0x42a6=function(){return _0x4cef81;};return a85_0x42a6();}(function(_0x19e80c,_0x4e96f4){const _0x106b8b=a85_0x5e64,_0x470eea=_0x19e80c();while(!![]){try{const _0x2b77ae=parseInt(_0x106b8b(0x128))/0x1+parseInt(_0x106b8b(0x12c))/0x2+-parseInt(_0x106b8b(0x127))/0x3+-parseInt(_0x106b8b(0x123))/0x4*(-parseInt(_0x106b8b(0x129))/0x5)+-parseInt(_0x106b8b(0x124))/0x6+-parseInt(_0x106b8b(0x12d))/0x7*(-parseInt(_0x106b8b(0x12e))/0x8)+-parseInt(_0x106b8b(0x12a))/0x9;if(_0x2b77ae===_0x4e96f4)break;else _0x470eea['push'](_0x470eea['shift']());}catch(_0x236f1e){_0x470eea['push'](_0x470eea['shift']());}}}(a85_0x42a6,0xbd98c));function a85_0x5e64(_0x8a36b1,_0x3e9676){_0x8a36b1=_0x8a36b1-0x122;const _0x42a691=a85_0x42a6();let _0x5e64ea=_0x42a691[_0x8a36b1];return _0x5e64ea;}export function parseAgentRef(_0x1eed88){const _0x341085=a85_0x5e64;if(!_0x1eed88||_0x1eed88[_0x341085(0x122)]()==='')throw new Error(_0x341085(0x12b));const _0x59221d=_0x1eed88[_0x341085(0x122)](),_0x15b7f2=_0x59221d['split']('/');if(_0x15b7f2['length']===0x1)return{'projectName':_0x15b7f2[0x0],'agentName':undefined};else{if(_0x15b7f2['length']===0x2){const [_0x268881,_0x3436f9]=_0x15b7f2;if(!_0x268881||_0x268881[_0x341085(0x122)]()==='')throw new Error(_0x341085(0x126));if(!_0x3436f9||_0x3436f9[_0x341085(0x122)]()==='')throw new Error('Agent\x20name\x20cannot\x20be\x20empty');return{'projectName':_0x268881[_0x341085(0x122)](),'agentName':_0x3436f9[_0x341085(0x122)]()};}else throw new Error(_0x341085(0x125)+_0x1eed88+'.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22');}}
1
+ function a85_0x2fef(_0x47d5e8,_0xf32e68){_0x47d5e8=_0x47d5e8-0x1e2;const _0x54f0a9=a85_0x54f0();let _0x2fef9b=_0x54f0a9[_0x47d5e8];return _0x2fef9b;}(function(_0x10e5d1,_0x3f2436){const _0x5462d3=a85_0x2fef,_0x5bea49=_0x10e5d1();while(!![]){try{const _0x49c7ae=parseInt(_0x5462d3(0x1e3))/0x1+-parseInt(_0x5462d3(0x1e5))/0x2*(-parseInt(_0x5462d3(0x1f0))/0x3)+-parseInt(_0x5462d3(0x1ec))/0x4+parseInt(_0x5462d3(0x1e9))/0x5+-parseInt(_0x5462d3(0x1e6))/0x6*(-parseInt(_0x5462d3(0x1ef))/0x7)+parseInt(_0x5462d3(0x1ea))/0x8+-parseInt(_0x5462d3(0x1e4))/0x9;if(_0x49c7ae===_0x3f2436)break;else _0x5bea49['push'](_0x5bea49['shift']());}catch(_0x1e3249){_0x5bea49['push'](_0x5bea49['shift']());}}}(a85_0x54f0,0x9005d));export function parseAgentRef(_0x45c77c){const _0x44d3d9=a85_0x2fef;if(!_0x45c77c||_0x45c77c[_0x44d3d9(0x1e8)]()==='')throw new Error(_0x44d3d9(0x1e7));const _0x195726=_0x45c77c[_0x44d3d9(0x1e8)](),_0x117988=_0x195726[_0x44d3d9(0x1ee)]('/');if(_0x117988['length']===0x1)return{'projectName':_0x117988[0x0],'agentName':undefined};else{if(_0x117988[_0x44d3d9(0x1ed)]===0x2){const [_0x59d8d7,_0x32bd38]=_0x117988;if(!_0x59d8d7||_0x59d8d7['trim']()==='')throw new Error('Project\x20name\x20cannot\x20be\x20empty');if(!_0x32bd38||_0x32bd38['trim']()==='')throw new Error('Agent\x20name\x20cannot\x20be\x20empty');return{'projectName':_0x59d8d7['trim'](),'agentName':_0x32bd38['trim']()};}else throw new Error(_0x44d3d9(0x1eb)+_0x45c77c+_0x44d3d9(0x1e2));}}function a85_0x54f0(){const _0x4958e8=['3993260kYsaSE','7807232vtGGXQ','Invalid\x20agent\x20reference\x20format:\x20','1540700rYTgig','length','split','1659xStzVs','3MUrkeJ','.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22','68571ErPFJW','16957611QqtSBG','242938sCcOjf','22650ajQMhC','Agent\x20reference\x20cannot\x20be\x20empty','trim'];a85_0x54f0=function(){return _0x4958e8;};return a85_0x54f0();}
@@ -1 +1 @@
1
- (function(_0x58a169,_0x40cf8a){const _0x1135f0=a86_0x4200,_0x11a4b6=_0x58a169();while(!![]){try{const _0x1f36a2=parseInt(_0x1135f0(0xaf))/0x1*(-parseInt(_0x1135f0(0xac))/0x2)+parseInt(_0x1135f0(0xae))/0x3*(parseInt(_0x1135f0(0xb5))/0x4)+-parseInt(_0x1135f0(0xb3))/0x5*(parseInt(_0x1135f0(0xb1))/0x6)+-parseInt(_0x1135f0(0xaa))/0x7+-parseInt(_0x1135f0(0xab))/0x8*(parseInt(_0x1135f0(0xad))/0x9)+parseInt(_0x1135f0(0xb2))/0xa+parseInt(_0x1135f0(0xb4))/0xb;if(_0x1f36a2===_0x40cf8a)break;else _0x11a4b6['push'](_0x11a4b6['shift']());}catch(_0x47c419){_0x11a4b6['push'](_0x11a4b6['shift']());}}}(a86_0x1a82,0x8dd07));function a86_0x1a82(){const _0x379818=['12nfvrOk','10324420sJLsdP','2688535hRIFWI','14114441CacWyD','258028BXlKSX','3875865GvvlpJ','8XVYTJV','6kEhIFJ','1360467plupRY','9tusYeV','49317NEfcgr','slice'];a86_0x1a82=function(){return _0x379818;};return a86_0x1a82();}function a86_0x4200(_0x332b3a,_0x1c5d8f){_0x332b3a=_0x332b3a-0xaa;const _0x1a821=a86_0x1a82();let _0x42004f=_0x1a821[_0x332b3a];return _0x42004f;}export async function batchAsync(_0xc4f792,_0x37fcc1,_0x149d92=0xa){const _0x5bcbcd=a86_0x4200,_0x549fc3=[];for(let _0x21c33b=0x0;_0x21c33b<_0xc4f792['length'];_0x21c33b+=_0x149d92){const _0x9ea979=_0xc4f792[_0x5bcbcd(0xb0)](_0x21c33b,_0x21c33b+_0x149d92),_0x1cd382=await Promise['all'](_0x9ea979['map'](_0x37fcc1));_0x549fc3['push'](..._0x1cd382);}return _0x549fc3;}
1
+ function a86_0x23e8(){const _0x39a163=['1819096pGGsgw','224603nKXRrW','1884789oTDZtn','4YpDKca','4286986KQRmJe','19626iaIJof','1340XWpPox','map','push','3369290FYzyCr','2MJgPZi','slice','2802JRQYGE','7uuwvLw'];a86_0x23e8=function(){return _0x39a163;};return a86_0x23e8();}function a86_0x1884(_0x9c6367,_0x445a22){_0x9c6367=_0x9c6367-0xce;const _0x23e8b2=a86_0x23e8();let _0x1884c8=_0x23e8b2[_0x9c6367];return _0x1884c8;}(function(_0x92f48d,_0x77633e){const _0x7ead5f=a86_0x1884,_0x18ad7b=_0x92f48d();while(!![]){try{const _0x19689d=-parseInt(_0x7ead5f(0xd8))/0x1*(parseInt(_0x7ead5f(0xd3))/0x2)+parseInt(_0x7ead5f(0xce))/0x3*(-parseInt(_0x7ead5f(0xda))/0x4)+-parseInt(_0x7ead5f(0xcf))/0x5*(-parseInt(_0x7ead5f(0xd5))/0x6)+-parseInt(_0x7ead5f(0xd6))/0x7*(parseInt(_0x7ead5f(0xd7))/0x8)+-parseInt(_0x7ead5f(0xd9))/0x9+parseInt(_0x7ead5f(0xd2))/0xa+parseInt(_0x7ead5f(0xdb))/0xb;if(_0x19689d===_0x77633e)break;else _0x18ad7b['push'](_0x18ad7b['shift']());}catch(_0x3209cc){_0x18ad7b['push'](_0x18ad7b['shift']());}}}(a86_0x23e8,0x2ce32));export async function batchAsync(_0x511603,_0x1ef9ea,_0x4998e3=0xa){const _0x26cff4=a86_0x1884,_0x4a0bc9=[];for(let _0x9843d6=0x0;_0x9843d6<_0x511603['length'];_0x9843d6+=_0x4998e3){const _0x3abd31=_0x511603[_0x26cff4(0xd4)](_0x9843d6,_0x9843d6+_0x4998e3),_0x472faf=await Promise['all'](_0x3abd31[_0x26cff4(0xd0)](_0x1ef9ea));_0x4a0bc9[_0x26cff4(0xd1)](..._0x472faf);}return _0x4a0bc9;}
@@ -1 +1 @@
1
- (function(_0xe9b117,_0x13cbf5){const _0x2edcd4=a87_0x743e,_0x39188c=_0xe9b117();while(!![]){try{const _0x27d2b5=parseInt(_0x2edcd4(0xb6))/0x1+parseInt(_0x2edcd4(0xb7))/0x2*(parseInt(_0x2edcd4(0xbf))/0x3)+parseInt(_0x2edcd4(0xbe))/0x4+parseInt(_0x2edcd4(0xbd))/0x5+-parseInt(_0x2edcd4(0xbc))/0x6*(-parseInt(_0x2edcd4(0xb5))/0x7)+-parseInt(_0x2edcd4(0xb9))/0x8*(parseInt(_0x2edcd4(0xb8))/0x9)+-parseInt(_0x2edcd4(0xb4))/0xa;if(_0x27d2b5===_0x13cbf5)break;else _0x39188c['push'](_0x39188c['shift']());}catch(_0x320df7){_0x39188c['push'](_0x39188c['shift']());}}}(a87_0x4ce5,0xecee7));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0x352b3d=a87_0x743e;return join(process[_0x352b3d(0xb2)](),_0x352b3d(0xb3),'tdx');}function getLastChatIdPath(){const _0x13b7a6=a87_0x743e;return join(getCacheDir(),_0x13b7a6(0xbb));}function a87_0x4ce5(){const _0x7f54e=['133VikTEk','1572263uEbNBq','3718636jREYdk','9jsQLgK','12919168wxUjbW','utf-8','last_chat_id','50142fztdTJ','2240490lRyJqu','1238752vsCIKp','3JpmqtE','cwd','.cache','17627830KYBJWz'];a87_0x4ce5=function(){return _0x7f54e;};return a87_0x4ce5();}function ensureCacheDir(){const _0x5e6eb0=getCacheDir();!existsSync(_0x5e6eb0)&&mkdirSync(_0x5e6eb0,{'recursive':!![]});}export function saveLastChatId(_0x3b644d){const _0x184154=a87_0x743e;ensureCacheDir();const _0x4f70a2=getLastChatIdPath();writeFileSync(_0x4f70a2,_0x3b644d,_0x184154(0xba));}function a87_0x743e(_0x1bdbff,_0x3f0f22){_0x1bdbff=_0x1bdbff-0xb2;const _0x4ce5a8=a87_0x4ce5();let _0x743e1e=_0x4ce5a8[_0x1bdbff];return _0x743e1e;}export function loadLastChatId(){const _0x447190=a87_0x743e,_0x518a4e=getLastChatIdPath();if(!existsSync(_0x518a4e))return undefined;try{const _0x3e04b2=readFileSync(_0x518a4e,_0x447190(0xba))['trim']();return _0x3e04b2||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x5649e9=a87_0x743e,_0x26066d=getLastChatIdPath();if(existsSync(_0x26066d))try{writeFileSync(_0x26066d,'',_0x5649e9(0xba));}catch{}}
1
+ (function(_0xf7e84c,_0x3c1c5f){const _0x287ea7=a87_0x17f2,_0x506a1d=_0xf7e84c();while(!![]){try{const _0x11d388=parseInt(_0x287ea7(0xbb))/0x1*(parseInt(_0x287ea7(0xb0))/0x2)+-parseInt(_0x287ea7(0xbc))/0x3*(parseInt(_0x287ea7(0xb1))/0x4)+parseInt(_0x287ea7(0xbd))/0x5+-parseInt(_0x287ea7(0xb6))/0x6+parseInt(_0x287ea7(0xb9))/0x7+parseInt(_0x287ea7(0xb8))/0x8*(-parseInt(_0x287ea7(0xaf))/0x9)+parseInt(_0x287ea7(0xba))/0xa;if(_0x11d388===_0x3c1c5f)break;else _0x506a1d['push'](_0x506a1d['shift']());}catch(_0x14411a){_0x506a1d['push'](_0x506a1d['shift']());}}}(a87_0x1b66,0x263a8));function a87_0x17f2(_0x153b8a,_0x1699a1){_0x153b8a=_0x153b8a-0xaf;const _0x1b66bd=a87_0x1b66();let _0x17f281=_0x1b66bd[_0x153b8a];return _0x17f281;}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0x540e4a=a87_0x17f2;return join(process[_0x540e4a(0xb5)](),_0x540e4a(0xb3),_0x540e4a(0xb7));}function a87_0x1b66(){const _0x2974c1=['24044fvoFbU','utf-8','.cache','last_chat_id','cwd','1097808viHqhD','tdx','1944yoDJaR','2085566sEkXpV','2827940gzWcdk','27133lQObnV','123LfNBoC','665090TwpADc','9756CVecmg','10avNcfJ'];a87_0x1b66=function(){return _0x2974c1;};return a87_0x1b66();}function getLastChatIdPath(){const _0x1d699c=a87_0x17f2;return join(getCacheDir(),_0x1d699c(0xb4));}function ensureCacheDir(){const _0x2a36fa=getCacheDir();!existsSync(_0x2a36fa)&&mkdirSync(_0x2a36fa,{'recursive':!![]});}export function saveLastChatId(_0x25a2db){const _0x5e5183=a87_0x17f2;ensureCacheDir();const _0x253c14=getLastChatIdPath();writeFileSync(_0x253c14,_0x25a2db,_0x5e5183(0xb2));}export function loadLastChatId(){const _0x8d0e2f=getLastChatIdPath();if(!existsSync(_0x8d0e2f))return undefined;try{const _0x75a9cb=readFileSync(_0x8d0e2f,'utf-8')['trim']();return _0x75a9cb||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x476d37=a87_0x17f2,_0x41c146=getLastChatIdPath();if(existsSync(_0x41c146))try{writeFileSync(_0x41c146,'',_0x476d37(0xb2));}catch{}}
@@ -1 +1 @@
1
- (function(_0x5d22f7,_0x1f5252){const _0x543162=a88_0x3e9f,_0x1b9bbc=_0x5d22f7();while(!![]){try{const _0x1aea04=parseInt(_0x543162(0xbc))/0x1*(-parseInt(_0x543162(0xc3))/0x2)+-parseInt(_0x543162(0xb0))/0x3+-parseInt(_0x543162(0xa9))/0x4+-parseInt(_0x543162(0xc1))/0x5+-parseInt(_0x543162(0xc4))/0x6*(-parseInt(_0x543162(0xaa))/0x7)+parseInt(_0x543162(0xbe))/0x8*(parseInt(_0x543162(0xb9))/0x9)+parseInt(_0x543162(0xa7))/0xa*(parseInt(_0x543162(0xae))/0xb);if(_0x1aea04===_0x1f5252)break;else _0x1b9bbc['push'](_0x1b9bbc['shift']());}catch(_0x391190){_0x1b9bbc['push'](_0x1b9bbc['shift']());}}}(a88_0x4efd,0x8f0f0));import{Chalk}from'chalk';export function shouldUseColor(_0x3cd433={}){const _0x19bb75=a88_0x3e9f;if(_0x3cd433['noColor']===!![])return![];if(_0x3cd433['color']===!![])return!![];if(process[_0x19bb75(0xb4)][_0x19bb75(0xc2)]!==undefined)return![];return process[_0x19bb75(0xb8)][_0x19bb75(0xc0)]??![];}export function getChalk(_0x4516d0={}){if(shouldUseColor(_0x4516d0))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x59834a,_0x45dc66={}){const _0x5846d1=a88_0x3e9f;return getChalk(_0x45dc66)[_0x5846d1(0xb7)](_0x59834a);}export function colorHeader(_0x1769fd,_0x5163e1={}){const _0x571b66=a88_0x3e9f;return getChalk(_0x5163e1)[_0x571b66(0xb3)](_0x1769fd);}function a88_0x4efd(){const _0x252d33=['stdout','604863uKShZc','repeat','isArray','10MInkZD','length','112oulOdu','string','isTTY','2981645YaChUa','NO_COLOR','92008WGDTTp','18dhEuZo','236010ubxlVI','object','1365304cCfpKa','2362857xuacIZ','entries','join','green','297vQqZmP','stringify','1821345Njgukj','boolean','null','cyan','env','blue','map','dim'];a88_0x4efd=function(){return _0x252d33;};return a88_0x4efd();}export function colorType(_0x245790,_0x408c50={}){const _0x1cda39=a88_0x3e9f;return getChalk(_0x408c50)[_0x1cda39(0xb7)](_0x245790);}export function colorJSONKey(_0x399029,_0x584fc8={}){const _0x364093=a88_0x3e9f;return getChalk(_0x584fc8)[_0x364093(0xb5)](_0x399029);}export function colorJSONString(_0x16ff04,_0x34a57b={}){const _0x473ae7=a88_0x3e9f;return getChalk(_0x34a57b)[_0x473ae7(0xad)](_0x16ff04);}export function colorJSONNumber(_0x487c81,_0x544de8={}){const _0x4f409e=a88_0x3e9f;return getChalk(_0x544de8)[_0x4f409e(0xb3)](_0x487c81);}export function colorJSONBoolean(_0x43b28e,_0x27919c={}){return getChalk(_0x27919c)['yellow'](_0x43b28e);}export function colorJSONNull(_0x1a8032,_0x4824fa={}){const _0x350787=a88_0x3e9f;return getChalk(_0x4824fa)[_0x350787(0xb7)](_0x1a8032);}export function colorizeJSONCompact(_0x3006c7,_0x31df30={}){const _0xe82374=a88_0x3e9f;if(!shouldUseColor(_0x31df30))return JSON[_0xe82374(0xaf)](_0x3006c7);if(_0x3006c7===null)return colorJSONNull('null',_0x31df30);if(typeof _0x3006c7===_0xe82374(0xb1))return colorJSONBoolean(String(_0x3006c7),_0x31df30);if(typeof _0x3006c7==='number')return colorJSONNumber(String(_0x3006c7),_0x31df30);if(typeof _0x3006c7===_0xe82374(0xbf))return colorJSONString(JSON[_0xe82374(0xaf)](_0x3006c7),_0x31df30);if(Array[_0xe82374(0xbb)](_0x3006c7)){if(_0x3006c7[_0xe82374(0xbd)]===0x0)return'[]';const _0x2ef116=_0x3006c7[_0xe82374(0xb6)](_0x2ec85a=>colorizeJSONCompact(_0x2ec85a,_0x31df30));return'['+_0x2ef116[_0xe82374(0xac)](',')+']';}if(typeof _0x3006c7===_0xe82374(0xa8)){const _0x5f1880=Object[_0xe82374(0xab)](_0x3006c7);if(_0x5f1880[_0xe82374(0xbd)]===0x0)return'{}';const _0x5442a5=_0x5f1880[_0xe82374(0xb6)](([_0x2c3522,_0x6e25eb])=>{const _0x1abb47=_0xe82374,_0x3539d5=colorJSONKey(JSON[_0x1abb47(0xaf)](_0x2c3522),_0x31df30),_0x2be2dd=colorizeJSONCompact(_0x6e25eb,_0x31df30);return _0x3539d5+':'+_0x2be2dd;});return'{'+_0x5442a5['join'](',')+'}';}return String(_0x3006c7);}function a88_0x3e9f(_0x115f7b,_0x3e5682){_0x115f7b=_0x115f7b-0xa7;const _0x4efd7e=a88_0x4efd();let _0x3e9fc2=_0x4efd7e[_0x115f7b];return _0x3e9fc2;}export function colorizeJSON(_0x1f8dad,_0x2b340b={},_0x2a3f6e=0x0){const _0x588a98=a88_0x3e9f;if(!shouldUseColor(_0x2b340b))return JSON[_0x588a98(0xaf)](_0x1f8dad,null,0x2);const _0x5d702f='\x20'['repeat'](_0x2a3f6e),_0xcfade7=_0x2a3f6e+0x2;if(_0x1f8dad===null)return colorJSONNull(_0x588a98(0xb2),_0x2b340b);if(typeof _0x1f8dad===_0x588a98(0xb1))return colorJSONBoolean(String(_0x1f8dad),_0x2b340b);if(typeof _0x1f8dad==='number')return colorJSONNumber(String(_0x1f8dad),_0x2b340b);if(typeof _0x1f8dad===_0x588a98(0xbf))return colorJSONString(JSON['stringify'](_0x1f8dad),_0x2b340b);if(Array[_0x588a98(0xbb)](_0x1f8dad)){if(_0x1f8dad[_0x588a98(0xbd)]===0x0)return'[]';const _0x437acc=_0x1f8dad[_0x588a98(0xb6)](_0x25ca76=>{const _0x4ba79d=_0x588a98,_0x28338c=colorizeJSON(_0x25ca76,_0x2b340b,_0xcfade7);return''+'\x20'[_0x4ba79d(0xba)](_0xcfade7)+_0x28338c;});return'[\x0a'+_0x437acc[_0x588a98(0xac)](',\x0a')+('\x0a'+_0x5d702f+']');}if(typeof _0x1f8dad===_0x588a98(0xa8)){const _0x178c27=Object[_0x588a98(0xab)](_0x1f8dad);if(_0x178c27[_0x588a98(0xbd)]===0x0)return'{}';const _0x3721bc=_0x178c27['map'](([_0x5e1c23,_0x5a714c])=>{const _0x1bf3cc=_0x588a98,_0x5be250=colorJSONKey(JSON[_0x1bf3cc(0xaf)](_0x5e1c23),_0x2b340b),_0xe740ce=colorizeJSON(_0x5a714c,_0x2b340b,_0xcfade7);return''+'\x20'['repeat'](_0xcfade7)+_0x5be250+':\x20'+_0xe740ce;});return'{\x0a'+_0x3721bc[_0x588a98(0xac)](',\x0a')+('\x0a'+_0x5d702f+'}');}return String(_0x1f8dad);}
1
+ (function(_0x21f089,_0x29251a){const _0x451d86=a88_0x427f,_0xec3eb7=_0x21f089();while(!![]){try{const _0x53537e=parseInt(_0x451d86(0x20d))/0x1*(parseInt(_0x451d86(0x205))/0x2)+-parseInt(_0x451d86(0x1fe))/0x3+parseInt(_0x451d86(0x1f5))/0x4+parseInt(_0x451d86(0x204))/0x5+-parseInt(_0x451d86(0x200))/0x6+-parseInt(_0x451d86(0x203))/0x7*(parseInt(_0x451d86(0x1f4))/0x8)+parseInt(_0x451d86(0x1f2))/0x9;if(_0x53537e===_0x29251a)break;else _0xec3eb7['push'](_0xec3eb7['shift']());}catch(_0x3ead59){_0xec3eb7['push'](_0xec3eb7['shift']());}}}(a88_0x5661,0x9e77d));function a88_0x5661(){const _0x4a1b8b=['dim','color','NO_COLOR','string','isArray','3024858RHyWxD','join','5741430nCXFeY','entries','boolean','3962FQUuMk','3918005FRcrsN','40290bzTMxm','length','object','stringify','env','blue','repeat','isTTY','2QwtFkv','yellow','9965511nHlzfQ','map','4792IpOTdv','4088560sEHYWs','number','green','null'];a88_0x5661=function(){return _0x4a1b8b;};return a88_0x5661();}import{Chalk}from'chalk';export function shouldUseColor(_0x20bd11={}){const _0x5b0062=a88_0x427f;if(_0x20bd11['noColor']===!![])return![];if(_0x20bd11[_0x5b0062(0x1fa)]===!![])return!![];if(process[_0x5b0062(0x209)][_0x5b0062(0x1fb)]!==undefined)return![];return process['stdout'][_0x5b0062(0x20c)]??![];}export function getChalk(_0x22f3cb={}){if(shouldUseColor(_0x22f3cb))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x30c84e,_0x5a5618={}){const _0x2a3527=a88_0x427f;return getChalk(_0x5a5618)[_0x2a3527(0x1f9)](_0x30c84e);}export function colorHeader(_0x3f09b3,_0x59e610={}){return getChalk(_0x59e610)['cyan'](_0x3f09b3);}export function colorType(_0x49c39d,_0x22abc5={}){return getChalk(_0x22abc5)['dim'](_0x49c39d);}export function colorJSONKey(_0x5e827b,_0x4e19f2={}){const _0x19c24f=a88_0x427f;return getChalk(_0x4e19f2)[_0x19c24f(0x20a)](_0x5e827b);}export function colorJSONString(_0x377d2f,_0x190634={}){const _0xbf658d=a88_0x427f;return getChalk(_0x190634)[_0xbf658d(0x1f7)](_0x377d2f);}export function colorJSONNumber(_0x323a9b,_0x22d9d6={}){return getChalk(_0x22d9d6)['cyan'](_0x323a9b);}function a88_0x427f(_0x5de9fe,_0x7fe78e){_0x5de9fe=_0x5de9fe-0x1f1;const _0x5661e6=a88_0x5661();let _0x427fde=_0x5661e6[_0x5de9fe];return _0x427fde;}export function colorJSONBoolean(_0x43695d,_0x50168d={}){const _0x540423=a88_0x427f;return getChalk(_0x50168d)[_0x540423(0x1f1)](_0x43695d);}export function colorJSONNull(_0x4e5784,_0xa70fa0={}){return getChalk(_0xa70fa0)['dim'](_0x4e5784);}export function colorizeJSONCompact(_0x12d269,_0x3bfc8f={}){const _0xb78ad0=a88_0x427f;if(!shouldUseColor(_0x3bfc8f))return JSON[_0xb78ad0(0x208)](_0x12d269);if(_0x12d269===null)return colorJSONNull(_0xb78ad0(0x1f8),_0x3bfc8f);if(typeof _0x12d269===_0xb78ad0(0x202))return colorJSONBoolean(String(_0x12d269),_0x3bfc8f);if(typeof _0x12d269===_0xb78ad0(0x1f6))return colorJSONNumber(String(_0x12d269),_0x3bfc8f);if(typeof _0x12d269==='string')return colorJSONString(JSON[_0xb78ad0(0x208)](_0x12d269),_0x3bfc8f);if(Array[_0xb78ad0(0x1fd)](_0x12d269)){if(_0x12d269[_0xb78ad0(0x206)]===0x0)return'[]';const _0xb4d374=_0x12d269[_0xb78ad0(0x1f3)](_0x469c99=>colorizeJSONCompact(_0x469c99,_0x3bfc8f));return'['+_0xb4d374[_0xb78ad0(0x1ff)](',')+']';}if(typeof _0x12d269==='object'){const _0x2898ef=Object['entries'](_0x12d269);if(_0x2898ef[_0xb78ad0(0x206)]===0x0)return'{}';const _0x5c4db7=_0x2898ef[_0xb78ad0(0x1f3)](([_0x18fbdf,_0x322c22])=>{const _0xffbee8=colorJSONKey(JSON['stringify'](_0x18fbdf),_0x3bfc8f),_0x1f5402=colorizeJSONCompact(_0x322c22,_0x3bfc8f);return _0xffbee8+':'+_0x1f5402;});return'{'+_0x5c4db7['join'](',')+'}';}return String(_0x12d269);}export function colorizeJSON(_0x38f102,_0x9104ae={},_0x8091a4=0x0){const _0x507279=a88_0x427f;if(!shouldUseColor(_0x9104ae))return JSON[_0x507279(0x208)](_0x38f102,null,0x2);const _0x599654='\x20'[_0x507279(0x20b)](_0x8091a4),_0x467527=_0x8091a4+0x2;if(_0x38f102===null)return colorJSONNull(_0x507279(0x1f8),_0x9104ae);if(typeof _0x38f102===_0x507279(0x202))return colorJSONBoolean(String(_0x38f102),_0x9104ae);if(typeof _0x38f102===_0x507279(0x1f6))return colorJSONNumber(String(_0x38f102),_0x9104ae);if(typeof _0x38f102===_0x507279(0x1fc))return colorJSONString(JSON[_0x507279(0x208)](_0x38f102),_0x9104ae);if(Array[_0x507279(0x1fd)](_0x38f102)){if(_0x38f102[_0x507279(0x206)]===0x0)return'[]';const _0x4fa3ec=_0x38f102[_0x507279(0x1f3)](_0x13013c=>{const _0x49ecf3=_0x507279,_0x882300=colorizeJSON(_0x13013c,_0x9104ae,_0x467527);return''+'\x20'[_0x49ecf3(0x20b)](_0x467527)+_0x882300;});return'[\x0a'+_0x4fa3ec[_0x507279(0x1ff)](',\x0a')+('\x0a'+_0x599654+']');}if(typeof _0x38f102===_0x507279(0x207)){const _0x3387cf=Object[_0x507279(0x201)](_0x38f102);if(_0x3387cf['length']===0x0)return'{}';const _0x5bb6ca=_0x3387cf[_0x507279(0x1f3)](([_0x107174,_0x5d3424])=>{const _0xb9fdb4=_0x507279,_0x5d2f93=colorJSONKey(JSON[_0xb9fdb4(0x208)](_0x107174),_0x9104ae),_0x509fc1=colorizeJSON(_0x5d3424,_0x9104ae,_0x467527);return''+'\x20'[_0xb9fdb4(0x20b)](_0x467527)+_0x5d2f93+':\x20'+_0x509fc1;});return'{\x0a'+_0x5bb6ca[_0x507279(0x1ff)](',\x0a')+('\x0a'+_0x599654+'}');}return String(_0x38f102);}
@@ -1 +1 @@
1
- function a89_0x7f11(){const _0x98f83e=['output','tsv','max','1113QxGyBr','isTTY','5RXchcQ','1873596riOJYS','length','write','trim','format','debug','magenta','rule','error','string','60GSoena','table','blue','forEach','1118MdBpgT','json','[params]','sdk-result','yellow','boolean','1667205PzaHAT','object','entries','cmdout','keys','resolve','-FXRSn','20OtgbMm','join','params','limit','jsonl','log','stderr','less','269476POtKWC','push','query','8388258RFbgdE','noColor','inherit','repeat','5793isgrCl','color','spawn','number','split','double','padEnd','close','[rule]','16357099ANzHom','stdin','[query]','FINISHED','Results\x20saved\x20to\x20','stringify','90488JMsnsx','map','bigint','No\x20data','cyan','─┴─','stdout','bold','isInteger'];a89_0x7f11=function(){return _0x98f83e;};return a89_0x7f11();}function a89_0x543e(_0x53fb83,_0xd6cefc){_0x53fb83=_0x53fb83-0x137;const _0x7f11d4=a89_0x7f11();let _0x543e63=_0x7f11d4[_0x53fb83];return _0x543e63;}(function(_0x3daffa,_0x336338){const _0x42e90e=a89_0x543e,_0x9a655f=_0x3daffa();while(!![]){try{const _0x2057d3=-parseInt(_0x42e90e(0x151))/0x1+parseInt(_0x42e90e(0x15f))/0x2*(-parseInt(_0x42e90e(0x17b))/0x3)+parseInt(_0x42e90e(0x174))/0x4+parseInt(_0x42e90e(0x150))/0x5*(-parseInt(_0x42e90e(0x177))/0x6)+parseInt(_0x42e90e(0x14e))/0x7*(-parseInt(_0x42e90e(0x142))/0x8)+parseInt(_0x42e90e(0x165))/0x9*(-parseInt(_0x42e90e(0x16c))/0xa)+parseInt(_0x42e90e(0x13c))/0xb*(parseInt(_0x42e90e(0x15b))/0xc);if(_0x2057d3===_0x336338)break;else _0x9a655f['push'](_0x9a655f['shift']());}catch(_0x177675){_0x9a655f['push'](_0x9a655f['shift']());}}}(a89_0x7f11,0xefd87));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a89_0x5b7f92 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function isStructuredFormat(_0x450a43){const _0x36d674=a89_0x543e;return _0x450a43['format']===_0x36d674(0x160)||_0x450a43['format']===_0x36d674(0x170)||_0x450a43[_0x36d674(0x155)]===_0x36d674(0x14c)||_0x450a43[_0x36d674(0x155)]===_0x36d674(0x15c)||_0x450a43[_0x36d674(0x160)]===!![]||_0x450a43[_0x36d674(0x170)]===!![]||_0x450a43[_0x36d674(0x14c)]===!![]||_0x450a43['table']===!![];}export function parseOutputOptions(_0x769d61){const _0x2dd128=a89_0x543e;return{'format':_0x769d61[_0x2dd128(0x155)]||_0x2dd128(0x15c),'output':_0x769d61[_0x2dd128(0x14b)]||'','limit':_0x769d61[_0x2dd128(0x16f)],'color':_0x769d61[_0x2dd128(0x17c)],'noColor':_0x769d61[_0x2dd128(0x178)]};}function convertSDKResultToQueryResult(_0x4740f8){const _0x193b47=a89_0x543e,_0x526655=[];if(_0x4740f8[_0x193b47(0x152)]>0x0){const _0x2e71b9=_0x4740f8[0x0];for(const [_0x43deed,_0x4b9a28]of Object[_0x193b47(0x167)](_0x2e71b9)){let _0x3121f8='varchar';if(typeof _0x4b9a28===_0x193b47(0x17e))_0x3121f8=Number[_0x193b47(0x14a)](_0x4b9a28)?_0x193b47(0x144):_0x193b47(0x138);else{if(typeof _0x4b9a28===_0x193b47(0x164))_0x3121f8=_0x193b47(0x164);else _0x4b9a28===null&&(_0x3121f8='varchar');}_0x526655['push']({'name':_0x43deed,'type':_0x3121f8});}}return{'queryId':_0x193b47(0x162),'columns':_0x526655,'data':_0x4740f8,'stats':{'state':_0x193b47(0x13f),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x4740f8[_0x193b47(0x152)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x42d0be,_0x471ade){const _0x36a1ce=convertSDKResultToQueryResult(_0x42d0be);return formatQueryOutput(_0x36a1ce,_0x471ade);}export async function formatQueryOutput(_0x52e1ec,_0x397419){const _0x2e98f4=a89_0x543e,{format:_0x1500a3,limit:_0x13b328,output:_0x1ac5bf,color:_0x34465f,noColor:_0x114d16}=_0x397419,_0x401c3c=Boolean(_0x1ac5bf)&&!_0x34465f,_0x4bc722={'color':_0x34465f,'noColor':_0x114d16||_0x401c3c};if(_0x1500a3==='table'){const _0x3e6055=shouldUseLess(_0x1500a3,_0x1ac5bf);return formatAsTable(_0x52e1ec,_0x13b328,_0x3e6055,_0x4bc722);}else{if(_0x1500a3===_0x2e98f4(0x160))return formatAsJSON(_0x52e1ec,_0x4bc722);else return _0x1500a3===_0x2e98f4(0x170)?formatAsJSONL(_0x52e1ec,_0x4bc722):formatQueryResult(_0x52e1ec,_0x1500a3);}}function shouldUseLess(_0x2a36da,_0x528a9e){const _0x25c8a1=a89_0x543e;return _0x2a36da===_0x25c8a1(0x15c)&&process[_0x25c8a1(0x148)][_0x25c8a1(0x14f)]&&!_0x528a9e;}export function resolveOutputOptions(_0x1066e4){const _0x6191bf=a89_0x543e,_0x56985f=resolveOutputFormat(_0x1066e4[_0x6191bf(0x155)],_0x1066e4[_0x6191bf(0x14b)],'table');let _0x33679c=typeof _0x1066e4[_0x6191bf(0x16f)]===_0x6191bf(0x17e)?_0x1066e4[_0x6191bf(0x16f)]:parseInt(_0x1066e4[_0x6191bf(0x16f)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x1fecc7=_0x1066e4['output']||'';return shouldUseLess(_0x56985f,_0x1fecc7)&&(_0x33679c=Infinity),{'format':_0x56985f,'output':_0x1fecc7,'limit':_0x33679c,'color':_0x1066e4[_0x6191bf(0x17c)],'noColor':_0x1066e4[_0x6191bf(0x178)]};}export function writeOutput(_0x43fa88,_0x5e0354,_0x223748){const _0x196c41=a89_0x543e;return _0x5e0354?(writeFileSync(_0x5e0354,_0x43fa88),console['error'](_0x196c41(0x140)+_0x5e0354),Promise[_0x196c41(0x16a)]()):shouldUseLess(_0x223748||'','')?new Promise(_0x5bdd56=>{const _0x3847ee=_0x196c41,_0x173983=spawn(_0x3847ee(0x173),[_0x3847ee(0x16b)],{'stdio':['pipe',_0x3847ee(0x179),_0x3847ee(0x179)]});let _0x581ff5=![];_0x173983['on'](_0x3847ee(0x159),()=>{!_0x581ff5&&(_0x581ff5=!![],console['log'](_0x43fa88),_0x5bdd56());}),_0x173983['on'](_0x3847ee(0x13a),()=>{!_0x581ff5&&(_0x581ff5=!![],_0x5bdd56());}),_0x173983['on'](_0x3847ee(0x17d),()=>{const _0x2165d5=_0x3847ee;!_0x581ff5&&_0x173983[_0x2165d5(0x13d)]&&(_0x173983['stdin']['on'](_0x2165d5(0x159),()=>{}),_0x173983['stdin'][_0x2165d5(0x153)](_0x43fa88),_0x173983[_0x2165d5(0x13d)]['end']());}),!_0x173983[_0x3847ee(0x13d)]&&(!_0x581ff5&&(_0x581ff5=!![],console[_0x3847ee(0x171)](_0x43fa88),_0x5bdd56()));}):(console['log'](_0x43fa88),Promise[_0x196c41(0x16a)]());}export async function handleSDKOutput(_0x30eb8f,_0x3c0626){const _0x32a4e7=a89_0x543e,_0x550b4e=resolveOutputOptions(_0x3c0626),_0x4a7337=await formatSDKOutput(_0x30eb8f,_0x550b4e);await writeOutput(_0x4a7337,_0x550b4e[_0x32a4e7(0x14b)]||undefined,_0x550b4e[_0x32a4e7(0x155)]);}export async function handleQueryOutput(_0x290907,_0x414c67){const _0x4325dd=a89_0x543e,_0x5b2175=resolveOutputOptions(_0x414c67),_0x8db5b=await formatQueryOutput(_0x290907,_0x5b2175);await writeOutput(_0x8db5b,_0x5b2175[_0x4325dd(0x14b)]||undefined,_0x5b2175[_0x4325dd(0x155)]);}async function formatSingleObject(_0x4f075a,_0x58399e){const _0x9f456d=a89_0x543e,{format:_0x52a472,color:_0x4b0cf5,noColor:_0x24c4cf}=_0x58399e,_0xb5e3a5={'color':_0x4b0cf5,'noColor':_0x24c4cf};if(_0x52a472==='json'){if(shouldUseColor(_0xb5e3a5))return colorizeJSON(_0x4f075a,_0xb5e3a5);return JSON['stringify'](_0x4f075a,null,0x2);}else{if(_0x52a472===_0x9f456d(0x170)){if(shouldUseColor(_0xb5e3a5))return colorizeJSONCompact(_0x4f075a,_0xb5e3a5);return JSON[_0x9f456d(0x141)](_0x4f075a);}else{if(_0x52a472===_0x9f456d(0x14c))return Object['entries'](_0x4f075a)['map'](([_0x24053b,_0x2dfbe5])=>_0x24053b+'\x09'+_0x2dfbe5)[_0x9f456d(0x16d)]('\x0a');else{const _0x45737d=Object[_0x9f456d(0x167)](_0x4f075a);if(_0x45737d[_0x9f456d(0x152)]===0x0)return _0x9f456d(0x145);const _0x58ee1f=_0x4f075a[_0x9f456d(0x156)],_0x32f1ac=_0x4f075a['query'],_0x3fcb3c=_0x4f075a[_0x9f456d(0x16e)],_0x5cf772=_0x4f075a[_0x9f456d(0x158)],_0x552ff9=_0x32f1ac?typeof _0x32f1ac===_0x9f456d(0x15a)?_0x32f1ac:JSON[_0x9f456d(0x141)](_0x32f1ac,null,0x2):undefined,_0x1a1820=_0x3fcb3c&&Object[_0x9f456d(0x169)](_0x3fcb3c)['length']>0x0?JSON['stringify'](_0x3fcb3c,null,0x2):undefined,_0x4b0c6d=_0x5cf772&&Object['keys'](_0x5cf772)['length']>0x0?JSON[_0x9f456d(0x141)](_0x5cf772,null,0x2):undefined,_0x48c2b1=_0x45737d['filter'](([_0x23fa13])=>_0x23fa13!==_0x9f456d(0x156)&&_0x23fa13!==_0x9f456d(0x176)&&_0x23fa13!=='params'&&_0x23fa13!==_0x9f456d(0x158)),_0x1ffa9d=Math[_0x9f456d(0x14d)](..._0x48c2b1[_0x9f456d(0x143)](([_0x578ef7])=>_0x578ef7['length'])),_0x4887a3=Math['max'](..._0x48c2b1[_0x9f456d(0x143)](([,_0x17a0e9])=>{const _0x3a730a=_0x9f456d;try{const _0x35c301=_0x17a0e9===null||_0x17a0e9===undefined?'':typeof _0x17a0e9===_0x3a730a(0x166)?JSON[_0x3a730a(0x141)](_0x17a0e9):String(_0x17a0e9),_0x40a85c=_0x35c301[_0x3a730a(0x137)]('\x0a');return Math[_0x3a730a(0x14d)](..._0x40a85c[_0x3a730a(0x143)](_0x11feef=>_0x11feef['length']),0x0);}catch{return 0x0;}}),0x14),_0x21dde9=[];_0x21dde9[_0x9f456d(0x175)](colorBorder('┌─'+'─'['repeat'](_0x1ffa9d)+'─┬─'+'─'[_0x9f456d(0x17a)](_0x4887a3)+'─┐',_0xb5e3a5)),_0x48c2b1[_0x9f456d(0x15e)](([_0x5fbe85,_0xfa7b21])=>{const _0x18a844=_0x9f456d;let _0x48f7ab;try{_0x48f7ab=_0xfa7b21===null||_0xfa7b21===undefined?'':typeof _0xfa7b21===_0x18a844(0x166)?JSON[_0x18a844(0x141)](_0xfa7b21):String(_0xfa7b21);}catch{_0x48f7ab='[Object]';}const _0xe168fa=_0x5fbe85[_0x18a844(0x139)](_0x1ffa9d),_0x55af69=_0x48f7ab[_0x18a844(0x137)]('\x0a');_0x55af69[_0x18a844(0x15e)]((_0xf56c7f,_0x370d96)=>{const _0x1bc08f=_0x18a844,_0x58f563=colorBorder('│',_0xb5e3a5);_0x370d96===0x0?_0x21dde9['push'](_0x58f563+'\x20'+_0xe168fa+'\x20'+_0x58f563+'\x20'+_0xf56c7f[_0x1bc08f(0x139)](_0x4887a3)+'\x20'+_0x58f563):_0x21dde9[_0x1bc08f(0x175)](_0x58f563+'\x20'+'\x20'['repeat'](_0x1ffa9d)+'\x20'+_0x58f563+'\x20'+_0xf56c7f[_0x1bc08f(0x139)](_0x4887a3)+'\x20'+_0x58f563);});}),_0x21dde9[_0x9f456d(0x175)](colorBorder('└─'+'─'[_0x9f456d(0x17a)](_0x1ffa9d)+_0x9f456d(0x147)+'─'['repeat'](_0x4887a3)+'─┘',_0xb5e3a5));_0x552ff9&&(_0x21dde9[_0x9f456d(0x175)](''),_0x21dde9[_0x9f456d(0x175)](String(a89_0x5b7f92[_0x9f456d(0x163)]['bold'](_0x9f456d(0x13e)))),_0x21dde9[_0x9f456d(0x175)](_0x552ff9));_0x1a1820&&(_0x21dde9[_0x9f456d(0x175)](''),_0x21dde9[_0x9f456d(0x175)](String(a89_0x5b7f92[_0x9f456d(0x15d)][_0x9f456d(0x149)](_0x9f456d(0x161)))),_0x21dde9['push'](_0x1a1820));_0x4b0c6d&&(_0x21dde9[_0x9f456d(0x175)](''),_0x21dde9[_0x9f456d(0x175)](String(a89_0x5b7f92[_0x9f456d(0x157)][_0x9f456d(0x149)](_0x9f456d(0x13b)))),_0x21dde9['push'](_0x4b0c6d));if(_0x58ee1f){if(_0x58ee1f[_0x9f456d(0x172)]){_0x21dde9[_0x9f456d(0x175)](''),_0x21dde9[_0x9f456d(0x175)](String(a89_0x5b7f92['red'][_0x9f456d(0x149)]('[error]')));const _0x2f20a6=_0x58ee1f[_0x9f456d(0x172)][_0x9f456d(0x137)]('\x0a');_0x2f20a6['forEach'](_0x4a85cc=>{const _0x32fe61=_0x9f456d;_0x4a85cc[_0x32fe61(0x154)]()&&_0x21dde9['push'](_0x4a85cc);});}if(_0x58ee1f[_0x9f456d(0x168)]){_0x21dde9['push'](''),_0x21dde9['push'](String(a89_0x5b7f92[_0x9f456d(0x146)][_0x9f456d(0x149)]('[logs]')));const _0x1ab803=_0x58ee1f['cmdout'][_0x9f456d(0x137)]('\x0a');_0x1ab803['forEach'](_0x454f2e=>{const _0x129e00=_0x9f456d;_0x454f2e[_0x129e00(0x154)]()&&_0x21dde9['push'](_0x454f2e);});}}return _0x21dde9['join']('\x0a');}}}}export async function handleSingleObjectOutput(_0x25fba9,_0x7dcbc0){const _0x52bd25=a89_0x543e;if(_0x7dcbc0[_0x52bd25(0x155)]===_0x52bd25(0x15c)){await handleSDKOutput([_0x25fba9],_0x7dcbc0);return;}const _0x58aaa3=resolveOutputOptions(_0x7dcbc0),_0x55ca03=await formatSingleObject(_0x25fba9,_0x58aaa3);await writeOutput(_0x55ca03,_0x58aaa3['output']||undefined,_0x58aaa3[_0x52bd25(0x155)]);}
1
+ (function(_0x2e238b,_0x4af1cf){const _0x2c8a4a=a89_0x2752,_0x7ddfe0=_0x2e238b();while(!![]){try{const _0xccc3cc=parseInt(_0x2c8a4a(0x16b))/0x1+-parseInt(_0x2c8a4a(0x19a))/0x2+-parseInt(_0x2c8a4a(0x159))/0x3+-parseInt(_0x2c8a4a(0x173))/0x4*(parseInt(_0x2c8a4a(0x166))/0x5)+-parseInt(_0x2c8a4a(0x189))/0x6+-parseInt(_0x2c8a4a(0x196))/0x7+-parseInt(_0x2c8a4a(0x155))/0x8*(-parseInt(_0x2c8a4a(0x168))/0x9);if(_0xccc3cc===_0x4af1cf)break;else _0x7ddfe0['push'](_0x7ddfe0['shift']());}catch(_0x465f57){_0x7ddfe0['push'](_0x7ddfe0['shift']());}}}(a89_0x4a56,0x57580));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a89_0x4c7441 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function isStructuredFormat(_0x125e4b){const _0x2a35f2=a89_0x2752;return _0x125e4b[_0x2a35f2(0x17f)]===_0x2a35f2(0x170)||_0x125e4b[_0x2a35f2(0x17f)]===_0x2a35f2(0x17d)||_0x125e4b[_0x2a35f2(0x17f)]===_0x2a35f2(0x16d)||_0x125e4b[_0x2a35f2(0x17f)]===_0x2a35f2(0x18a)||_0x125e4b['json']===!![]||_0x125e4b[_0x2a35f2(0x17d)]===!![]||_0x125e4b['tsv']===!![]||_0x125e4b[_0x2a35f2(0x18a)]===!![];}export function parseOutputOptions(_0x42490b){const _0x499673=a89_0x2752;return{'format':_0x42490b[_0x499673(0x17f)]||_0x499673(0x18a),'output':_0x42490b[_0x499673(0x191)]||'','limit':_0x42490b[_0x499673(0x197)],'color':_0x42490b[_0x499673(0x188)],'noColor':_0x42490b['noColor']};}function convertSDKResultToQueryResult(_0x31aaf9){const _0x5bfc7d=a89_0x2752,_0x5efd58=[];if(_0x31aaf9[_0x5bfc7d(0x199)]>0x0){const _0x174254=_0x31aaf9[0x0];for(const [_0x2b539b,_0x139143]of Object[_0x5bfc7d(0x17b)](_0x174254)){let _0x50bf71=_0x5bfc7d(0x185);if(typeof _0x139143===_0x5bfc7d(0x186))_0x50bf71=Number[_0x5bfc7d(0x193)](_0x139143)?_0x5bfc7d(0x18f):_0x5bfc7d(0x15e);else{if(typeof _0x139143===_0x5bfc7d(0x15b))_0x50bf71=_0x5bfc7d(0x15b);else _0x139143===null&&(_0x50bf71=_0x5bfc7d(0x185));}_0x5efd58['push']({'name':_0x2b539b,'type':_0x50bf71});}}return{'queryId':_0x5bfc7d(0x178),'columns':_0x5efd58,'data':_0x31aaf9,'stats':{'state':_0x5bfc7d(0x15f),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x31aaf9[_0x5bfc7d(0x199)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x33d562,_0x2dd69d){const _0x4ba3f3=convertSDKResultToQueryResult(_0x33d562);return formatQueryOutput(_0x4ba3f3,_0x2dd69d);}export async function formatQueryOutput(_0x147b67,_0x30fefd){const _0x1844ea=a89_0x2752,{format:_0x42050a,limit:_0x1f3337,output:_0xe6b711,color:_0x120657,noColor:_0x3c4807}=_0x30fefd,_0x3da262=Boolean(_0xe6b711)&&!_0x120657,_0x415058={'color':_0x120657,'noColor':_0x3c4807||_0x3da262};if(_0x42050a==='table'){const _0x225898=shouldUseLess(_0x42050a,_0xe6b711);return formatAsTable(_0x147b67,_0x1f3337,_0x225898,_0x415058);}else{if(_0x42050a===_0x1844ea(0x170))return formatAsJSON(_0x147b67,_0x415058);else return _0x42050a===_0x1844ea(0x17d)?formatAsJSONL(_0x147b67,_0x415058):formatQueryResult(_0x147b67,_0x42050a);}}function shouldUseLess(_0x419d0f,_0xe6768c){const _0x12e1a6=a89_0x2752;return _0x419d0f===_0x12e1a6(0x18a)&&process[_0x12e1a6(0x15d)][_0x12e1a6(0x164)]&&!_0xe6768c;}export function resolveOutputOptions(_0x171200){const _0x3d9b4e=a89_0x2752,_0x2c5c44=resolveOutputFormat(_0x171200[_0x3d9b4e(0x17f)],_0x171200[_0x3d9b4e(0x191)],_0x3d9b4e(0x18a));let _0x378844=typeof _0x171200[_0x3d9b4e(0x197)]===_0x3d9b4e(0x186)?_0x171200['limit']:parseInt(_0x171200['limit']||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x55b672=_0x171200[_0x3d9b4e(0x191)]||'';return shouldUseLess(_0x2c5c44,_0x55b672)&&(_0x378844=Infinity),{'format':_0x2c5c44,'output':_0x55b672,'limit':_0x378844,'color':_0x171200[_0x3d9b4e(0x188)],'noColor':_0x171200['noColor']};}export function writeOutput(_0x222007,_0x295290,_0xf0f662){const _0x559db1=a89_0x2752;return _0x295290?(writeFileSync(_0x295290,_0x222007),console[_0x559db1(0x18c)](_0x559db1(0x16a)+_0x295290),Promise[_0x559db1(0x158)]()):shouldUseLess(_0xf0f662||'','')?new Promise(_0x1f78d5=>{const _0x37198c=_0x559db1,_0xd817e1=spawn(_0x37198c(0x160),['-FXRSn'],{'stdio':[_0x37198c(0x156),_0x37198c(0x15c),_0x37198c(0x15c)]});let _0xd0fcb3=![];_0xd817e1['on'](_0x37198c(0x18c),()=>{const _0x16e975=_0x37198c;!_0xd0fcb3&&(_0xd0fcb3=!![],console[_0x16e975(0x167)](_0x222007),_0x1f78d5());}),_0xd817e1['on'](_0x37198c(0x194),()=>{!_0xd0fcb3&&(_0xd0fcb3=!![],_0x1f78d5());}),_0xd817e1['on'](_0x37198c(0x152),()=>{const _0x4db45e=_0x37198c;!_0xd0fcb3&&_0xd817e1[_0x4db45e(0x174)]&&(_0xd817e1['stdin']['on'](_0x4db45e(0x18c),()=>{}),_0xd817e1[_0x4db45e(0x174)]['write'](_0x222007),_0xd817e1[_0x4db45e(0x174)][_0x4db45e(0x15a)]());}),!_0xd817e1[_0x37198c(0x174)]&&(!_0xd0fcb3&&(_0xd0fcb3=!![],console[_0x37198c(0x167)](_0x222007),_0x1f78d5()));}):(console[_0x559db1(0x167)](_0x222007),Promise[_0x559db1(0x158)]());}function a89_0x2752(_0x1d9705,_0x5eb19a){_0x1d9705=_0x1d9705-0x151;const _0x4a5644=a89_0x4a56();let _0x275284=_0x4a5644[_0x1d9705];return _0x275284;}export async function handleSDKOutput(_0xa841b5,_0x35d603){const _0x504bd6=a89_0x2752,_0xab7baf=resolveOutputOptions(_0x35d603),_0x56e6da=await formatSDKOutput(_0xa841b5,_0xab7baf);await writeOutput(_0x56e6da,_0xab7baf[_0x504bd6(0x191)]||undefined,_0xab7baf[_0x504bd6(0x17f)]);}export async function handleQueryOutput(_0x2e02ac,_0x4bf35d){const _0xc061d4=a89_0x2752,_0x3cfaf4=resolveOutputOptions(_0x4bf35d),_0x518c9d=await formatQueryOutput(_0x2e02ac,_0x3cfaf4);await writeOutput(_0x518c9d,_0x3cfaf4[_0xc061d4(0x191)]||undefined,_0x3cfaf4[_0xc061d4(0x17f)]);}async function formatSingleObject(_0x88a031,_0x571308){const _0x214537=a89_0x2752,{format:_0xa9ad0b,color:_0x5185af,noColor:_0x8fcddc}=_0x571308,_0x3ca43b={'color':_0x5185af,'noColor':_0x8fcddc};if(_0xa9ad0b==='json'){if(shouldUseColor(_0x3ca43b))return colorizeJSON(_0x88a031,_0x3ca43b);return JSON['stringify'](_0x88a031,null,0x2);}else{if(_0xa9ad0b===_0x214537(0x17d)){if(shouldUseColor(_0x3ca43b))return colorizeJSONCompact(_0x88a031,_0x3ca43b);return JSON[_0x214537(0x198)](_0x88a031);}else{if(_0xa9ad0b==='tsv')return Object[_0x214537(0x17b)](_0x88a031)[_0x214537(0x177)](([_0x3f0e21,_0x499a34])=>_0x3f0e21+'\x09'+_0x499a34)[_0x214537(0x19b)]('\x0a');else{const _0x273ea9=Object[_0x214537(0x17b)](_0x88a031);if(_0x273ea9[_0x214537(0x199)]===0x0)return _0x214537(0x161);const _0x40a8b5=_0x88a031['debug'],_0x2b71ae=_0x88a031[_0x214537(0x172)],_0x2ac2ba=_0x88a031[_0x214537(0x187)],_0x58d695=_0x88a031['rule'],_0x2ebf32=_0x2b71ae?typeof _0x2b71ae===_0x214537(0x184)?_0x2b71ae:JSON[_0x214537(0x198)](_0x2b71ae,null,0x2):undefined,_0x53b6c2=_0x2ac2ba&&Object['keys'](_0x2ac2ba)['length']>0x0?JSON[_0x214537(0x198)](_0x2ac2ba,null,0x2):undefined,_0x42a83c=_0x58d695&&Object[_0x214537(0x171)](_0x58d695)[_0x214537(0x199)]>0x0?JSON[_0x214537(0x198)](_0x58d695,null,0x2):undefined,_0x3acf9b=_0x273ea9[_0x214537(0x162)](([_0x2e1291])=>_0x2e1291!==_0x214537(0x183)&&_0x2e1291!==_0x214537(0x172)&&_0x2e1291!==_0x214537(0x187)&&_0x2e1291!==_0x214537(0x169)),_0x333d46=Math[_0x214537(0x17c)](..._0x3acf9b[_0x214537(0x177)](([_0x5beda7])=>_0x5beda7[_0x214537(0x199)])),_0x2c0fcc=Math[_0x214537(0x17c)](..._0x3acf9b[_0x214537(0x177)](([,_0x321310])=>{const _0x29527d=_0x214537;try{const _0x22bb46=_0x321310===null||_0x321310===undefined?'':typeof _0x321310==='object'?JSON[_0x29527d(0x198)](_0x321310):String(_0x321310),_0x1d2138=_0x22bb46['split']('\x0a');return Math['max'](..._0x1d2138['map'](_0x340ae0=>_0x340ae0['length']),0x0);}catch{return 0x0;}}),0x14),_0x19bd09=[];_0x19bd09[_0x214537(0x18d)](colorBorder('┌─'+'─'[_0x214537(0x165)](_0x333d46)+_0x214537(0x182)+'─'[_0x214537(0x165)](_0x2c0fcc)+'─┐',_0x3ca43b)),_0x3acf9b['forEach'](([_0x5f0a36,_0x483bd1])=>{const _0x1b5ae3=_0x214537;let _0x5035d1;try{_0x5035d1=_0x483bd1===null||_0x483bd1===undefined?'':typeof _0x483bd1===_0x1b5ae3(0x18b)?JSON[_0x1b5ae3(0x198)](_0x483bd1):String(_0x483bd1);}catch{_0x5035d1=_0x1b5ae3(0x176);}const _0x24f62c=_0x5f0a36[_0x1b5ae3(0x157)](_0x333d46),_0x396efc=_0x5035d1[_0x1b5ae3(0x16f)]('\x0a');_0x396efc[_0x1b5ae3(0x195)]((_0x4b06b1,_0x145518)=>{const _0x539f05=_0x1b5ae3,_0x3af554=colorBorder('│',_0x3ca43b);_0x145518===0x0?_0x19bd09[_0x539f05(0x18d)](_0x3af554+'\x20'+_0x24f62c+'\x20'+_0x3af554+'\x20'+_0x4b06b1[_0x539f05(0x157)](_0x2c0fcc)+'\x20'+_0x3af554):_0x19bd09['push'](_0x3af554+'\x20'+'\x20'['repeat'](_0x333d46)+'\x20'+_0x3af554+'\x20'+_0x4b06b1[_0x539f05(0x157)](_0x2c0fcc)+'\x20'+_0x3af554);});}),_0x19bd09[_0x214537(0x18d)](colorBorder('└─'+'─'[_0x214537(0x165)](_0x333d46)+_0x214537(0x16c)+'─'[_0x214537(0x165)](_0x2c0fcc)+'─┘',_0x3ca43b));_0x2ebf32&&(_0x19bd09[_0x214537(0x18d)](''),_0x19bd09[_0x214537(0x18d)](String(a89_0x4c7441[_0x214537(0x18e)]['bold'](_0x214537(0x190)))),_0x19bd09[_0x214537(0x18d)](_0x2ebf32));_0x53b6c2&&(_0x19bd09[_0x214537(0x18d)](''),_0x19bd09[_0x214537(0x18d)](String(a89_0x4c7441[_0x214537(0x175)][_0x214537(0x154)](_0x214537(0x192)))),_0x19bd09[_0x214537(0x18d)](_0x53b6c2));_0x42a83c&&(_0x19bd09[_0x214537(0x18d)](''),_0x19bd09[_0x214537(0x18d)](String(a89_0x4c7441[_0x214537(0x153)][_0x214537(0x154)](_0x214537(0x17a)))),_0x19bd09[_0x214537(0x18d)](_0x42a83c));if(_0x40a8b5){if(_0x40a8b5[_0x214537(0x180)]){_0x19bd09[_0x214537(0x18d)](''),_0x19bd09['push'](String(a89_0x4c7441[_0x214537(0x179)][_0x214537(0x154)](_0x214537(0x16e))));const _0x10a025=_0x40a8b5[_0x214537(0x180)]['split']('\x0a');_0x10a025[_0x214537(0x195)](_0x2d0bda=>{const _0x4b968d=_0x214537;_0x2d0bda[_0x4b968d(0x17e)]()&&_0x19bd09[_0x4b968d(0x18d)](_0x2d0bda);});}if(_0x40a8b5[_0x214537(0x181)]){_0x19bd09[_0x214537(0x18d)](''),_0x19bd09['push'](String(a89_0x4c7441[_0x214537(0x163)][_0x214537(0x154)](_0x214537(0x151))));const _0x3a08fc=_0x40a8b5[_0x214537(0x181)][_0x214537(0x16f)]('\x0a');_0x3a08fc[_0x214537(0x195)](_0x1c2f65=>{const _0x29fa4f=_0x214537;_0x1c2f65[_0x29fa4f(0x17e)]()&&_0x19bd09['push'](_0x1c2f65);});}}return _0x19bd09[_0x214537(0x19b)]('\x0a');}}}}function a89_0x4a56(){const _0x65a715=['padEnd','resolve','782841diQFaG','end','boolean','inherit','stdout','double','FINISHED','less','No\x20data','filter','cyan','isTTY','repeat','247385jFDTyi','log','9HFfhqr','rule','Results\x20saved\x20to\x20','548438qPsqlG','─┴─','tsv','[error]','split','json','keys','query','20jdkLKr','stdin','blue','[Object]','map','sdk-result','red','[rule]','entries','max','jsonl','trim','format','stderr','cmdout','─┬─','debug','string','varchar','number','params','color','2213124qSULpg','table','object','error','push','yellow','bigint','[query]','output','[params]','isInteger','close','forEach','2155601hpgOOd','limit','stringify','length','1391292HpUxiN','join','[logs]','spawn','magenta','bold','13520776diiqsK','pipe'];a89_0x4a56=function(){return _0x65a715;};return a89_0x4a56();}export async function handleSingleObjectOutput(_0x5637ac,_0x5804c5){const _0x3346c8=a89_0x2752;if(_0x5804c5['format']===_0x3346c8(0x18a)){await handleSDKOutput([_0x5637ac],_0x5804c5);return;}const _0xdab8b=resolveOutputOptions(_0x5804c5),_0x30380a=await formatSingleObject(_0x5637ac,_0xdab8b);await writeOutput(_0x30380a,_0xdab8b[_0x3346c8(0x191)]||undefined,_0xdab8b[_0x3346c8(0x17f)]);}
@@ -1 +1 @@
1
- (function(_0x5cb005,_0x17506b){const _0x4c1217=a90_0x4237,_0x3961a6=_0x5cb005();while(!![]){try{const _0x47d76a=-parseInt(_0x4c1217(0x17b))/0x1*(-parseInt(_0x4c1217(0x17e))/0x2)+parseInt(_0x4c1217(0x184))/0x3*(parseInt(_0x4c1217(0x17d))/0x4)+-parseInt(_0x4c1217(0x182))/0x5+parseInt(_0x4c1217(0x181))/0x6+-parseInt(_0x4c1217(0x17f))/0x7*(parseInt(_0x4c1217(0x185))/0x8)+parseInt(_0x4c1217(0x183))/0x9+-parseInt(_0x4c1217(0x17c))/0xa;if(_0x47d76a===_0x17506b)break;else _0x3961a6['push'](_0x3961a6['shift']());}catch(_0x2b44b4){_0x3961a6['push'](_0x3961a6['shift']());}}}(a90_0x4ab2,0xd971c));function a90_0x4ab2(){const _0x4e688d=['8rQUiVy','94UBSnNJ','6634650lCHFgt','4ppWUjU','37274vocGnq','3550323lLXJud','number','9269526qeiRcU','8578935ocrWwk','2146779WyRHZH','725289wQPKTd'];a90_0x4ab2=function(){return _0x4e688d;};return a90_0x4ab2();}export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;function a90_0x4237(_0x2fab01,_0x420ddb){_0x2fab01=_0x2fab01-0x17b;const _0x4ab239=a90_0x4ab2();let _0x423720=_0x4ab239[_0x2fab01];return _0x423720;}export function resolveLimit(_0x3e55eb,_0x1764e6){const _0x223f36=a90_0x4237;if(_0x3e55eb===undefined)return _0x1764e6;if(typeof _0x3e55eb===_0x223f36(0x180))return _0x3e55eb;return parseInt(_0x3e55eb,0xa);}
1
+ (function(_0x15dbbe,_0x3d3204){const _0xa584ab=a90_0x1190,_0xb3c0d3=_0x15dbbe();while(!![]){try{const _0x426d41=-parseInt(_0xa584ab(0x14d))/0x1+parseInt(_0xa584ab(0x154))/0x2*(-parseInt(_0xa584ab(0x14b))/0x3)+-parseInt(_0xa584ab(0x14c))/0x4*(-parseInt(_0xa584ab(0x155))/0x5)+parseInt(_0xa584ab(0x14e))/0x6+-parseInt(_0xa584ab(0x150))/0x7+-parseInt(_0xa584ab(0x151))/0x8*(parseInt(_0xa584ab(0x152))/0x9)+parseInt(_0xa584ab(0x14f))/0xa;if(_0x426d41===_0x3d3204)break;else _0xb3c0d3['push'](_0xb3c0d3['shift']());}catch(_0xb2f73b){_0xb3c0d3['push'](_0xb3c0d3['shift']());}}}(a90_0x1e72,0x9298e));export const DEFAULT_DISPLAY_LIMIT=0x28;function a90_0x1190(_0x5bc5af,_0x2f549a){_0x5bc5af=_0x5bc5af-0x14b;const _0x1e7218=a90_0x1e72();let _0x119082=_0x1e7218[_0x5bc5af];return _0x119082;}export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x518c36,_0x5068ad){const _0x54955e=a90_0x1190;if(_0x518c36===undefined)return _0x5068ad;if(typeof _0x518c36===_0x54955e(0x153))return _0x518c36;return parseInt(_0x518c36,0xa);}function a90_0x1e72(){const _0xf12d29=['24pPkGly','660rugXPq','305364PohURb','7105788lhPeRs','18961290LcyZsy','6894335bByKcJ','7671384LiHySz','9KSSHlx','number','236182FNtjqS','21635fWIfTR'];a90_0x1e72=function(){return _0xf12d29;};return a90_0x1e72();}
@@ -1 +1 @@
1
- (function(_0x5f1b3a,_0x147d0c){const _0x25c64=a91_0x1b76,_0x46e623=_0x5f1b3a();while(!![]){try{const _0x4714f5=parseInt(_0x25c64(0x187))/0x1*(parseInt(_0x25c64(0x18c))/0x2)+parseInt(_0x25c64(0x17d))/0x3+parseInt(_0x25c64(0x194))/0x4+parseInt(_0x25c64(0x190))/0x5+parseInt(_0x25c64(0x17c))/0x6*(parseInt(_0x25c64(0x172))/0x7)+-parseInt(_0x25c64(0x176))/0x8+parseInt(_0x25c64(0x181))/0x9*(-parseInt(_0x25c64(0x177))/0xa);if(_0x4714f5===_0x147d0c)break;else _0x46e623['push'](_0x46e623['shift']());}catch(_0x407781){_0x46e623['push'](_0x46e623['shift']());}}}(a91_0x5bec,0x4d5de));import a91_0x217ae0 from'chalk';export function generateDiff(_0xa74f34,_0x3286d9){const _0x4255f6=a91_0x1b76,_0x6531b8=_0xa74f34['split']('\x0a'),_0x53a5cf=_0x3286d9[_0x4255f6(0x173)]('\x0a'),_0xc62426=[],_0x99d1e6=computeLCS(_0x6531b8,_0x53a5cf);let _0xa9277e=0x0,_0x58118c=0x0,_0x1b9fe5=0x0;while(_0xa9277e<_0x6531b8['length']||_0x58118c<_0x53a5cf[_0x4255f6(0x17b)]){if(_0x1b9fe5<_0x99d1e6['length']&&_0xa9277e<_0x6531b8[_0x4255f6(0x17b)]&&_0x6531b8[_0xa9277e]===_0x99d1e6[_0x1b9fe5])_0x58118c<_0x53a5cf[_0x4255f6(0x17b)]&&_0x53a5cf[_0x58118c]===_0x99d1e6[_0x1b9fe5]?(_0xc62426[_0x4255f6(0x195)]({'type':'unchanged','content':_0x6531b8[_0xa9277e]}),_0xa9277e++,_0x58118c++,_0x1b9fe5++):(_0xc62426[_0x4255f6(0x195)]({'type':_0x4255f6(0x191),'content':_0x53a5cf[_0x58118c]}),_0x58118c++);else{if(_0x1b9fe5<_0x99d1e6[_0x4255f6(0x17b)]&&_0x58118c<_0x53a5cf[_0x4255f6(0x17b)]&&_0x53a5cf[_0x58118c]===_0x99d1e6[_0x1b9fe5])_0xc62426[_0x4255f6(0x195)]({'type':_0x4255f6(0x192),'content':_0x6531b8[_0xa9277e]}),_0xa9277e++;else{if(_0xa9277e<_0x6531b8['length']&&(_0x1b9fe5>=_0x99d1e6[_0x4255f6(0x17b)]||_0x6531b8[_0xa9277e]!==_0x99d1e6[_0x1b9fe5]))_0xc62426[_0x4255f6(0x195)]({'type':_0x4255f6(0x192),'content':_0x6531b8[_0xa9277e]}),_0xa9277e++;else _0x58118c<_0x53a5cf['length']&&(_0xc62426['push']({'type':_0x4255f6(0x191),'content':_0x53a5cf[_0x58118c]}),_0x58118c++);}}}return _0xc62426;}function a91_0x1b76(_0x202ff3,_0x33bc0d){_0x202ff3=_0x202ff3-0x170;const _0x5becb3=a91_0x5bec();let _0x1b7641=_0x5becb3[_0x202ff3];return _0x1b7641;}function computeLCS(_0x1d89a3,_0xb6ee24){const _0xbaabf0=a91_0x1b76,_0x7c69bb=_0x1d89a3['length'],_0x3856f2=_0xb6ee24[_0xbaabf0(0x17b)],_0x514c23=Array(_0x7c69bb+0x1)[_0xbaabf0(0x183)](null)[_0xbaabf0(0x18e)](()=>Array(_0x3856f2+0x1)[_0xbaabf0(0x183)](0x0));for(let _0x9399ea=0x1;_0x9399ea<=_0x7c69bb;_0x9399ea++){for(let _0x27f0d8=0x1;_0x27f0d8<=_0x3856f2;_0x27f0d8++){_0x1d89a3[_0x9399ea-0x1]===_0xb6ee24[_0x27f0d8-0x1]?_0x514c23[_0x9399ea][_0x27f0d8]=_0x514c23[_0x9399ea-0x1][_0x27f0d8-0x1]+0x1:_0x514c23[_0x9399ea][_0x27f0d8]=Math[_0xbaabf0(0x18f)](_0x514c23[_0x9399ea-0x1][_0x27f0d8],_0x514c23[_0x9399ea][_0x27f0d8-0x1]);}}const _0x2c43e3=[];let _0x201b22=_0x7c69bb,_0x5a54b8=_0x3856f2;while(_0x201b22>0x0&&_0x5a54b8>0x0){if(_0x1d89a3[_0x201b22-0x1]===_0xb6ee24[_0x5a54b8-0x1])_0x2c43e3[_0xbaabf0(0x182)](_0x1d89a3[_0x201b22-0x1]),_0x201b22--,_0x5a54b8--;else _0x514c23[_0x201b22-0x1][_0x5a54b8]>_0x514c23[_0x201b22][_0x5a54b8-0x1]?_0x201b22--:_0x5a54b8--;}return _0x2c43e3;}function a91_0x5bec(){const _0x3b12b8=['fill','has','red','add','47994SwSGJW','repeat','unchanged','join','padStart','10URrVSX','size','map','max','677945Voutgz','added','removed','old','179180EPEDyG','push','green','min','type','2123758Sigmxm','split','content','forEach','2982136SZzXcn','77110ISione','\x20\x20...','cyan','dim','length','6qRwQOf','198468hhqGkb','some','\x20\x20\x20','new','117SfeVdX','unshift'];a91_0x5bec=function(){return _0x3b12b8;};return a91_0x5bec();}export function formatDiffWithColors(_0x2b116b,_0x35bdcd=0x3){const _0x156e46=a91_0x1b76,_0x2187d3=new Set();_0x2b116b[_0x156e46(0x175)]((_0x344188,_0x1035d7)=>{const _0x1b2758=_0x156e46;_0x344188[_0x1b2758(0x171)]!==_0x1b2758(0x189)&&_0x2187d3[_0x1b2758(0x186)](_0x1035d7);});if(_0x2187d3[_0x156e46(0x18d)]===0x0)return'';const _0x439da5=new Set();for(const _0x3a0a19 of _0x2187d3){for(let _0x5bc505=Math[_0x156e46(0x18f)](0x0,_0x3a0a19-_0x35bdcd);_0x5bc505<=Math[_0x156e46(0x170)](_0x2b116b[_0x156e46(0x17b)]-0x1,_0x3a0a19+_0x35bdcd);_0x5bc505++){_0x439da5[_0x156e46(0x186)](_0x5bc505);}}const _0x4a18fd=[];let _0x4e7445=-0x1;const _0x16ca0e=_0x2b116b[_0x156e46(0x17b)],_0x460495=Math[_0x156e46(0x18f)](0x3,String(_0x16ca0e)[_0x156e46(0x17b)]),_0x4e6695=[];let _0x4bba03=0x0,_0xf75ab6=0x0;for(const _0x20c246 of _0x2b116b){if(_0x20c246['type']===_0x156e46(0x192))_0x4bba03++,_0x4e6695[_0x156e46(0x195)]({'old':_0x4bba03,'new':0x0});else _0x20c246[_0x156e46(0x171)]===_0x156e46(0x191)?(_0xf75ab6++,_0x4e6695['push']({'old':0x0,'new':_0xf75ab6})):(_0x4bba03++,_0xf75ab6++,_0x4e6695[_0x156e46(0x195)]({'old':_0x4bba03,'new':_0xf75ab6}));}for(let _0x3c56c8=0x0;_0x3c56c8<_0x2b116b['length'];_0x3c56c8++){if(!_0x439da5[_0x156e46(0x184)](_0x3c56c8))continue;_0x4e7445!==-0x1&&_0x3c56c8>_0x4e7445+0x1&&_0x4a18fd[_0x156e46(0x195)](a91_0x217ae0[_0x156e46(0x179)](_0x156e46(0x178)));_0x4e7445=_0x3c56c8;const _0x242c2c=_0x2b116b[_0x3c56c8],_0x257e78=_0x4e6695[_0x3c56c8],_0x640968=_0x257e78[_0x156e46(0x193)]>0x0?String(_0x257e78['old'])[_0x156e46(0x18b)](_0x460495):'\x20'[_0x156e46(0x188)](_0x460495),_0x169d65=_0x257e78[_0x156e46(0x180)]>0x0?String(_0x257e78[_0x156e46(0x180)])[_0x156e46(0x18b)](_0x460495):'\x20'[_0x156e46(0x188)](_0x460495);switch(_0x242c2c[_0x156e46(0x171)]){case'removed':_0x4a18fd['push'](a91_0x217ae0[_0x156e46(0x185)](_0x640968+'\x20'+_0x169d65+'\x20-\x20'+_0x242c2c[_0x156e46(0x174)]));break;case _0x156e46(0x191):_0x4a18fd[_0x156e46(0x195)](a91_0x217ae0[_0x156e46(0x196)](_0x640968+'\x20'+_0x169d65+'\x20+\x20'+_0x242c2c[_0x156e46(0x174)]));break;default:_0x4a18fd[_0x156e46(0x195)](a91_0x217ae0[_0x156e46(0x17a)](_0x640968+'\x20'+_0x169d65+_0x156e46(0x17f)+_0x242c2c['content']));break;}}return _0x4a18fd[_0x156e46(0x18a)]('\x0a');}export function hasChanges(_0x364174){const _0x49cfc2=a91_0x1b76;return _0x364174[_0x49cfc2(0x17e)](_0x2a1aec=>_0x2a1aec['type']!=='unchanged');}
1
+ function a91_0x277b(){const _0x347807=['length','18626421bgNJsR','size','838051suxKQu','\x20-\x20','removed','2998rIJvfa','4837yRnzbK','map','padStart','cyan','2267316psZlBq','split','max','repeat','fill','some','type','15MHCmJJ','8384BzhgOj','added','\x20\x20\x20','red','unchanged','forEach','new','content','add','push','10QxHNdi','4680864LQNAkV','old','has','join','1881neUJtZ','539276hKkphM','unshift'];a91_0x277b=function(){return _0x347807;};return a91_0x277b();}(function(_0x4a2964,_0x52f125){const _0x423ce7=a91_0x2577,_0x369644=_0x4a2964();while(!![]){try{const _0x8bb0ff=-parseInt(_0x423ce7(0x91))/0x1+parseInt(_0x423ce7(0x94))/0x2*(parseInt(_0x423ce7(0x8b))/0x3)+-parseInt(_0x423ce7(0x8c))/0x4*(-parseInt(_0x423ce7(0xa0))/0x5)+-parseInt(_0x423ce7(0x99))/0x6+-parseInt(_0x423ce7(0x95))/0x7*(parseInt(_0x423ce7(0x7c))/0x8)+-parseInt(_0x423ce7(0x87))/0x9+parseInt(_0x423ce7(0x86))/0xa*(parseInt(_0x423ce7(0x8f))/0xb);if(_0x8bb0ff===_0x52f125)break;else _0x369644['push'](_0x369644['shift']());}catch(_0x5ddb7e){_0x369644['push'](_0x369644['shift']());}}}(a91_0x277b,0x8cfa0));import a91_0x45228d from'chalk';function a91_0x2577(_0x22aa5f,_0x4fab79){_0x22aa5f=_0x22aa5f-0x7c;const _0x277be3=a91_0x277b();let _0x257750=_0x277be3[_0x22aa5f];return _0x257750;}export function generateDiff(_0x1b7be9,_0x3bddbe){const _0x53a440=a91_0x2577,_0x2ea297=_0x1b7be9[_0x53a440(0x9a)]('\x0a'),_0x380cae=_0x3bddbe[_0x53a440(0x9a)]('\x0a'),_0x46acc4=[],_0x340267=computeLCS(_0x2ea297,_0x380cae);let _0x17710c=0x0,_0x16b2cb=0x0,_0x777470=0x0;while(_0x17710c<_0x2ea297[_0x53a440(0x8e)]||_0x16b2cb<_0x380cae[_0x53a440(0x8e)]){if(_0x777470<_0x340267[_0x53a440(0x8e)]&&_0x17710c<_0x2ea297[_0x53a440(0x8e)]&&_0x2ea297[_0x17710c]===_0x340267[_0x777470])_0x16b2cb<_0x380cae['length']&&_0x380cae[_0x16b2cb]===_0x340267[_0x777470]?(_0x46acc4[_0x53a440(0x85)]({'type':_0x53a440(0x80),'content':_0x2ea297[_0x17710c]}),_0x17710c++,_0x16b2cb++,_0x777470++):(_0x46acc4[_0x53a440(0x85)]({'type':_0x53a440(0x7d),'content':_0x380cae[_0x16b2cb]}),_0x16b2cb++);else{if(_0x777470<_0x340267[_0x53a440(0x8e)]&&_0x16b2cb<_0x380cae[_0x53a440(0x8e)]&&_0x380cae[_0x16b2cb]===_0x340267[_0x777470])_0x46acc4[_0x53a440(0x85)]({'type':'removed','content':_0x2ea297[_0x17710c]}),_0x17710c++;else{if(_0x17710c<_0x2ea297[_0x53a440(0x8e)]&&(_0x777470>=_0x340267[_0x53a440(0x8e)]||_0x2ea297[_0x17710c]!==_0x340267[_0x777470]))_0x46acc4[_0x53a440(0x85)]({'type':_0x53a440(0x93),'content':_0x2ea297[_0x17710c]}),_0x17710c++;else _0x16b2cb<_0x380cae[_0x53a440(0x8e)]&&(_0x46acc4['push']({'type':'added','content':_0x380cae[_0x16b2cb]}),_0x16b2cb++);}}}return _0x46acc4;}function computeLCS(_0x2ea168,_0x937de8){const _0x3777f4=a91_0x2577,_0x961102=_0x2ea168[_0x3777f4(0x8e)],_0x125680=_0x937de8['length'],_0x2317f5=Array(_0x961102+0x1)[_0x3777f4(0x9d)](null)[_0x3777f4(0x96)](()=>Array(_0x125680+0x1)[_0x3777f4(0x9d)](0x0));for(let _0x4c5188=0x1;_0x4c5188<=_0x961102;_0x4c5188++){for(let _0x302360=0x1;_0x302360<=_0x125680;_0x302360++){_0x2ea168[_0x4c5188-0x1]===_0x937de8[_0x302360-0x1]?_0x2317f5[_0x4c5188][_0x302360]=_0x2317f5[_0x4c5188-0x1][_0x302360-0x1]+0x1:_0x2317f5[_0x4c5188][_0x302360]=Math[_0x3777f4(0x9b)](_0x2317f5[_0x4c5188-0x1][_0x302360],_0x2317f5[_0x4c5188][_0x302360-0x1]);}}const _0x3f0b10=[];let _0x58e4b0=_0x961102,_0x5425a1=_0x125680;while(_0x58e4b0>0x0&&_0x5425a1>0x0){if(_0x2ea168[_0x58e4b0-0x1]===_0x937de8[_0x5425a1-0x1])_0x3f0b10[_0x3777f4(0x8d)](_0x2ea168[_0x58e4b0-0x1]),_0x58e4b0--,_0x5425a1--;else _0x2317f5[_0x58e4b0-0x1][_0x5425a1]>_0x2317f5[_0x58e4b0][_0x5425a1-0x1]?_0x58e4b0--:_0x5425a1--;}return _0x3f0b10;}export function formatDiffWithColors(_0x123d8e,_0x32dde5=0x3){const _0x185e4e=a91_0x2577,_0x424951=new Set();_0x123d8e[_0x185e4e(0x81)]((_0x5137f0,_0x3c0693)=>{const _0x4b40bd=_0x185e4e;_0x5137f0[_0x4b40bd(0x9f)]!==_0x4b40bd(0x80)&&_0x424951[_0x4b40bd(0x84)](_0x3c0693);});if(_0x424951[_0x185e4e(0x90)]===0x0)return'';const _0xde23d=new Set();for(const _0x46be83 of _0x424951){for(let _0x112550=Math[_0x185e4e(0x9b)](0x0,_0x46be83-_0x32dde5);_0x112550<=Math['min'](_0x123d8e[_0x185e4e(0x8e)]-0x1,_0x46be83+_0x32dde5);_0x112550++){_0xde23d[_0x185e4e(0x84)](_0x112550);}}const _0x23d4c2=[];let _0x283cc6=-0x1;const _0x5c60ca=_0x123d8e['length'],_0x142611=Math[_0x185e4e(0x9b)](0x3,String(_0x5c60ca)[_0x185e4e(0x8e)]),_0xf5f688=[];let _0x689b54=0x0,_0x1c7e77=0x0;for(const _0x4e8b5f of _0x123d8e){if(_0x4e8b5f['type']===_0x185e4e(0x93))_0x689b54++,_0xf5f688[_0x185e4e(0x85)]({'old':_0x689b54,'new':0x0});else _0x4e8b5f[_0x185e4e(0x9f)]===_0x185e4e(0x7d)?(_0x1c7e77++,_0xf5f688['push']({'old':0x0,'new':_0x1c7e77})):(_0x689b54++,_0x1c7e77++,_0xf5f688['push']({'old':_0x689b54,'new':_0x1c7e77}));}for(let _0x21c98a=0x0;_0x21c98a<_0x123d8e['length'];_0x21c98a++){if(!_0xde23d[_0x185e4e(0x89)](_0x21c98a))continue;_0x283cc6!==-0x1&&_0x21c98a>_0x283cc6+0x1&&_0x23d4c2[_0x185e4e(0x85)](a91_0x45228d[_0x185e4e(0x98)]('\x20\x20...'));_0x283cc6=_0x21c98a;const _0x45784a=_0x123d8e[_0x21c98a],_0x53409a=_0xf5f688[_0x21c98a],_0x184b55=_0x53409a[_0x185e4e(0x88)]>0x0?String(_0x53409a[_0x185e4e(0x88)])[_0x185e4e(0x97)](_0x142611):'\x20'[_0x185e4e(0x9c)](_0x142611),_0x432422=_0x53409a['new']>0x0?String(_0x53409a[_0x185e4e(0x82)])[_0x185e4e(0x97)](_0x142611):'\x20'[_0x185e4e(0x9c)](_0x142611);switch(_0x45784a['type']){case _0x185e4e(0x93):_0x23d4c2['push'](a91_0x45228d[_0x185e4e(0x7f)](_0x184b55+'\x20'+_0x432422+_0x185e4e(0x92)+_0x45784a['content']));break;case _0x185e4e(0x7d):_0x23d4c2[_0x185e4e(0x85)](a91_0x45228d['green'](_0x184b55+'\x20'+_0x432422+'\x20+\x20'+_0x45784a[_0x185e4e(0x83)]));break;default:_0x23d4c2[_0x185e4e(0x85)](a91_0x45228d['dim'](_0x184b55+'\x20'+_0x432422+_0x185e4e(0x7e)+_0x45784a[_0x185e4e(0x83)]));break;}}return _0x23d4c2[_0x185e4e(0x8a)]('\x0a');}export function hasChanges(_0x96e55a){const _0x2bf181=a91_0x2577;return _0x96e55a[_0x2bf181(0x9e)](_0x512133=>_0x512133[_0x2bf181(0x9f)]!=='unchanged');}
@@ -1 +1 @@
1
- (function(_0x37b035,_0xbf8297){const _0x132979=a92_0x20ea,_0x2dbe5c=_0x37b035();while(!![]){try{const _0x5613c6=-parseInt(_0x132979(0xf8))/0x1*(parseInt(_0x132979(0x10b))/0x2)+-parseInt(_0x132979(0xeb))/0x3+parseInt(_0x132979(0x10e))/0x4+parseInt(_0x132979(0xec))/0x5*(-parseInt(_0x132979(0x110))/0x6)+parseInt(_0x132979(0x105))/0x7+-parseInt(_0x132979(0x119))/0x8*(-parseInt(_0x132979(0x10a))/0x9)+-parseInt(_0x132979(0xf0))/0xa*(-parseInt(_0x132979(0x103))/0xb);if(_0x5613c6===_0xbf8297)break;else _0x2dbe5c['push'](_0x2dbe5c['shift']());}catch(_0x48fcae){_0x2dbe5c['push'](_0x2dbe5c['shift']());}}}(a92_0x32ef,0x4fa04));import a92_0x405b5c from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x3eef61){const _0x577490=a92_0x20ea,_0x3ac7b1=_0x3eef61[_0x577490(0xf2)][_0x577490(0xfd)](_0x2d7e56=>({'column_name':_0x2d7e56[_0x577490(0x113)],'column_type':_0x2d7e56[_0x577490(0xea)],'null':'YES','key':null,'default':null,'extra':null}));return{..._0x3eef61,'columns':[{'name':'column_name','type':'varchar'},{'name':_0x577490(0x11e),'type':_0x577490(0x102)},{'name':_0x577490(0xf1),'type':_0x577490(0x102)},{'name':_0x577490(0xe8),'type':_0x577490(0x102)},{'name':_0x577490(0xf9),'type':'varchar'},{'name':_0x577490(0x118),'type':'varchar'}],'data':_0x3ac7b1};}export async function executeSchemaQuery(_0x373035,_0x537d94,_0x2cb31e){const _0xa6bd=a92_0x20ea,_0xcc0515=_0x373035[_0xa6bd(0x11b)]()[_0xa6bd(0xfb)](/;+$/,''),_0x59e13c='SELECT\x20*\x20FROM\x20(\x0a'+_0xcc0515+'\x0a)\x20AS\x20segment_query\x20LIMIT\x200';_0x2cb31e[_0xa6bd(0xed)]&&console[_0xa6bd(0xff)](_0xa6bd(0xfa)+_0x59e13c);const _0x3416af=await withQuerySpinner(_0xa6bd(0xf7),async _0x1d5022=>{const _0x18288b=_0xa6bd,_0x285862=await _0x537d94['query'][_0x18288b(0x10c)](_0x59e13c,{'catalog':'td','schema':_0x18288b(0x111),'onJobId':_0x30bef4=>{const _0x4d2f36=_0x18288b;_0x1d5022[_0x4d2f36(0x100)](_0x30bef4);}});return _0x285862;},{'verbose':_0x2cb31e[_0xa6bd(0xed)]});return buildSchemaResult(_0x3416af[_0xa6bd(0x11a)]);}export function displayFieldsHumanReadable(_0xa4bd67,_0x350a4b){const _0x3f5450=a92_0x20ea,_0x1ad233=_0xa4bd67[_0x3f5450(0x107)](_0x7e6f94=>_0x7e6f94[_0x3f5450(0x117)]===_0x3f5450(0xf6)),_0x5eaec8=_0xa4bd67[_0x3f5450(0x107)](_0x117fee=>_0x117fee[_0x3f5450(0x117)]===_0x3f5450(0x10f)),_0xcd5f9=new Map();for(const _0x294ba9 of _0x1ad233){const _0x3b82e5=_0x294ba9[_0x3f5450(0x10d)]||_0x294ba9[_0x3f5450(0x115)]||_0x3f5450(0xfc),_0x55751e=_0xcd5f9['get'](_0x3b82e5);_0x55751e?_0x55751e[_0x3f5450(0x108)][_0x3f5450(0xef)](_0x294ba9):_0xcd5f9[_0x3f5450(0x11d)](_0x3b82e5,{'displayName':_0x3b82e5,'tableName':_0x294ba9['parentTableName'],'fields':[_0x294ba9]});}const _0x1b01bb=new Map();for(const _0x46931a of _0x5eaec8){const _0x31edc7=_0x46931a[_0x3f5450(0xe9)]||_0x3f5450(0xfc),_0x1d89d5=_0x1b01bb[_0x3f5450(0x114)](_0x31edc7)||[];_0x1d89d5[_0x3f5450(0xef)](_0x46931a),_0x1b01bb['set'](_0x31edc7,_0x1d89d5);}console[_0x3f5450(0xff)]('\x0a'+a92_0x405b5c['bold'](_0x350a4b));if(_0xcd5f9[_0x3f5450(0xf5)]>0x0){console[_0x3f5450(0xff)]('\x0a'+a92_0x405b5c[_0x3f5450(0x11c)](_0x3f5450(0x116)));const _0x599afe=[..._0xcd5f9[_0x3f5450(0xf3)]()][_0x3f5450(0x101)]((_0x2c2316,_0x50a06f)=>_0x2c2316[0x0][_0x3f5450(0x109)](_0x50a06f[0x0]));for(const [,_0x255202]of _0x599afe){const _0xa904f0=_0x255202[_0x3f5450(0x112)]&&_0x255202[_0x3f5450(0x112)]!==_0x255202[_0x3f5450(0x104)]?'\x20'+a92_0x405b5c[_0x3f5450(0x11c)]('('+_0x255202[_0x3f5450(0x112)]+')'):'';console[_0x3f5450(0xff)]('\x20\x20'+a92_0x405b5c['bold'](_0x255202[_0x3f5450(0x104)])+_0xa904f0);const _0x4a592c=[..._0x255202['fields']][_0x3f5450(0x101)]((_0x5e4fc7,_0x2d3adb)=>_0x5e4fc7[_0x3f5450(0x113)][_0x3f5450(0x109)](_0x2d3adb['name']));for(const _0x29e519 of _0x4a592c){const _0x3977d0=_0x29e519[_0x3f5450(0x106)]&&_0x29e519[_0x3f5450(0x106)]!==_0x29e519[_0x3f5450(0x113)]?'\x20'+a92_0x405b5c['dim']('('+_0x29e519[_0x3f5450(0x106)]+')'):'';console[_0x3f5450(0xff)]('\x20\x20\x20\x20'+_0x29e519[_0x3f5450(0x113)]+_0x3977d0+':\x20'+a92_0x405b5c['cyan'](_0x29e519[_0x3f5450(0xea)]));}}}if(_0x1b01bb[_0x3f5450(0xf5)]>0x0){console['error']('\x0a'+a92_0x405b5c[_0x3f5450(0x11c)]('Behaviors'));const _0x5e9e7b=[..._0x1b01bb['entries']()][_0x3f5450(0x101)]((_0x269c63,_0x25b126)=>_0x269c63[0x0]['localeCompare'](_0x25b126[0x0]));for(const [_0x48cc8f,_0x30108d]of _0x5e9e7b){const _0x1a67d1=_0x30108d[0x0],_0x23cd2d=_0x1a67d1?.['parentTableName']||'';console[_0x3f5450(0xff)]('\x20\x20'+a92_0x405b5c['bold'](_0x48cc8f)+(_0x23cd2d?'\x20'+a92_0x405b5c[_0x3f5450(0x11c)]('('+_0x23cd2d+')'):''));const _0x101e99=[..._0x30108d]['sort']((_0x4bd865,_0x192bae)=>_0x4bd865[_0x3f5450(0x113)]['localeCompare'](_0x192bae[_0x3f5450(0x113)]));for(const _0x39358b of _0x101e99){const _0x1c4762=_0x39358b[_0x3f5450(0x113)][_0x3f5450(0xee)](_0x48cc8f+'.')?_0x39358b[_0x3f5450(0x113)]['slice'](_0x48cc8f[_0x3f5450(0xfe)]+0x1):_0x39358b[_0x3f5450(0x113)],_0x5d68ec=_0x39358b[_0x3f5450(0x106)]&&_0x39358b[_0x3f5450(0x106)]!==_0x1c4762?'\x20'+a92_0x405b5c[_0x3f5450(0x11c)]('('+_0x39358b[_0x3f5450(0x106)]+')'):'';console['error']('\x20\x20\x20\x20'+_0x1c4762+_0x5d68ec+':\x20'+a92_0x405b5c[_0x3f5450(0xf4)](_0x39358b[_0x3f5450(0xea)]));}}}console['error']('');}function a92_0x20ea(_0x3c96d1,_0x493f20){_0x3c96d1=_0x3c96d1-0xe8;const _0x32ef87=a92_0x32ef();let _0x20ead3=_0x32ef87[_0x3c96d1];return _0x20ead3;}function a92_0x32ef(){const _0x952e2b=['21745nXugRY','verbose','startsWith','push','10RQVjEp','null','columns','entries','cyan','size','attribute','Fetching\x20schema...','1FVWYsF','default','Schema\x20query:\x0a','replace','Unknown','map','length','error','setJobId','sort','varchar','322432vJNNbR','displayName','4527418NvtsBY','parentColumn','filter','fields','localeCompare','71802pwVYze','1214006riFUjL','execute','groupingName','2370716HFCGLx','behavior','372mYbyYT','information_schema','tableName','name','get','parentTableName','Attributes','source','extra','104oThrce','data','trim','dim','set','column_type','key','behaviorName','type','509070IHXeEY'];a92_0x32ef=function(){return _0x952e2b;};return a92_0x32ef();}
1
+ (function(_0x41eaf5,_0x7c5450){const _0x2e46af=a92_0x9406,_0x3aa015=_0x41eaf5();while(!![]){try{const _0x4be5f4=-parseInt(_0x2e46af(0x1dc))/0x1*(-parseInt(_0x2e46af(0x1bb))/0x2)+parseInt(_0x2e46af(0x1b5))/0x3+parseInt(_0x2e46af(0x1da))/0x4*(parseInt(_0x2e46af(0x1c0))/0x5)+parseInt(_0x2e46af(0x1de))/0x6*(parseInt(_0x2e46af(0x1b8))/0x7)+-parseInt(_0x2e46af(0x1b7))/0x8*(parseInt(_0x2e46af(0x1be))/0x9)+-parseInt(_0x2e46af(0x1db))/0xa*(parseInt(_0x2e46af(0x1dd))/0xb)+-parseInt(_0x2e46af(0x1b3))/0xc*(-parseInt(_0x2e46af(0x1d0))/0xd);if(_0x4be5f4===_0x7c5450)break;else _0x3aa015['push'](_0x3aa015['shift']());}catch(_0x347372){_0x3aa015['push'](_0x3aa015['shift']());}}}(a92_0x40d2,0xedc0f));function a92_0x9406(_0x3562b4,_0x4d6e8c){_0x3562b4=_0x3562b4-0x1aa;const _0x40d210=a92_0x40d2();let _0x94066f=_0x40d210[_0x3562b4];return _0x94066f;}import a92_0x203417 from'chalk';import{withQuerySpinner}from'./spinner.js';function a92_0x40d2(){const _0x5ec608=['default','873zUsWHE','localeCompare','1095gwcWbi','displayName','data','Attributes','slice','filter','column_type','setJobId','type','push','fields','parentTableName','cyan','verbose','information_schema','column_name','26AmNUyU','set','SELECT\x20*\x20FROM\x20(\x0a','behavior','name','\x20\x20\x20\x20','tableName','source','attribute','size','6524wMUVRY','10hXBJJP','84NudypB','19136865ztgZBL','85446TIGIvn','extra','bold','entries','replace','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','Schema\x20query:\x0a','sort','error','parentColumn','null','key','Behaviors','varchar','4848744jOBSXb','dim','353010DRGvAh','trim','51864vBnZAj','378eykuQr','execute','Unknown','30724JZgLaC','query'];a92_0x40d2=function(){return _0x5ec608;};return a92_0x40d2();}export function buildSchemaResult(_0x2cea29){const _0x42ef94=a92_0x9406,_0x35000f=_0x2cea29['columns']['map'](_0x574790=>({'column_name':_0x574790[_0x42ef94(0x1d4)],'column_type':_0x574790['type'],'null':'YES','key':null,'default':null,'extra':null}));return{..._0x2cea29,'columns':[{'name':_0x42ef94(0x1cf),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1c6),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1af),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1b0),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1bd),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1df),'type':'varchar'}],'data':_0x35000f};}export async function executeSchemaQuery(_0x4e76d3,_0x221629,_0x2783eb){const _0x4bed1f=a92_0x9406,_0xf03066=_0x4e76d3[_0x4bed1f(0x1b6)]()[_0x4bed1f(0x1e2)](/;+$/,''),_0x4d4c19=_0x4bed1f(0x1d2)+_0xf03066+_0x4bed1f(0x1aa);_0x2783eb['verbose']&&console['error'](_0x4bed1f(0x1ab)+_0x4d4c19);const _0x526289=await withQuerySpinner('Fetching\x20schema...',async _0x5325df=>{const _0x1ae8a4=_0x4bed1f,_0x36c5ae=await _0x221629[_0x1ae8a4(0x1bc)][_0x1ae8a4(0x1b9)](_0x4d4c19,{'catalog':'td','schema':_0x1ae8a4(0x1ce),'onJobId':_0x456233=>{const _0x56817b=_0x1ae8a4;_0x5325df[_0x56817b(0x1c7)](_0x456233);}});return _0x36c5ae;},{'verbose':_0x2783eb[_0x4bed1f(0x1cd)]});return buildSchemaResult(_0x526289[_0x4bed1f(0x1c2)]);}export function displayFieldsHumanReadable(_0x374086,_0x4af8f9){const _0x1a0a6b=a92_0x9406,_0x381813=_0x374086[_0x1a0a6b(0x1c5)](_0x45500a=>_0x45500a['source']===_0x1a0a6b(0x1d8)),_0x17319f=_0x374086['filter'](_0x4c68fb=>_0x4c68fb[_0x1a0a6b(0x1d7)]===_0x1a0a6b(0x1d3)),_0x30b91b=new Map();for(const _0x52d475 of _0x381813){const _0xf8b3a6=_0x52d475['groupingName']||_0x52d475['parentTableName']||_0x1a0a6b(0x1ba),_0x24c354=_0x30b91b['get'](_0xf8b3a6);_0x24c354?_0x24c354['fields'][_0x1a0a6b(0x1c9)](_0x52d475):_0x30b91b[_0x1a0a6b(0x1d1)](_0xf8b3a6,{'displayName':_0xf8b3a6,'tableName':_0x52d475[_0x1a0a6b(0x1cb)],'fields':[_0x52d475]});}const _0x454c9f=new Map();for(const _0x3fd1e2 of _0x17319f){const _0x913271=_0x3fd1e2['behaviorName']||'Unknown',_0x23d93a=_0x454c9f['get'](_0x913271)||[];_0x23d93a[_0x1a0a6b(0x1c9)](_0x3fd1e2),_0x454c9f[_0x1a0a6b(0x1d1)](_0x913271,_0x23d93a);}console[_0x1a0a6b(0x1ad)]('\x0a'+a92_0x203417[_0x1a0a6b(0x1e0)](_0x4af8f9));if(_0x30b91b[_0x1a0a6b(0x1d9)]>0x0){console[_0x1a0a6b(0x1ad)]('\x0a'+a92_0x203417[_0x1a0a6b(0x1b4)](_0x1a0a6b(0x1c3)));const _0x488f6b=[..._0x30b91b[_0x1a0a6b(0x1e1)]()]['sort']((_0xb2a91b,_0x19ff57)=>_0xb2a91b[0x0]['localeCompare'](_0x19ff57[0x0]));for(const [,_0x2410ce]of _0x488f6b){const _0x3a3b4a=_0x2410ce[_0x1a0a6b(0x1d6)]&&_0x2410ce[_0x1a0a6b(0x1d6)]!==_0x2410ce[_0x1a0a6b(0x1c1)]?'\x20'+a92_0x203417[_0x1a0a6b(0x1b4)]('('+_0x2410ce[_0x1a0a6b(0x1d6)]+')'):'';console[_0x1a0a6b(0x1ad)]('\x20\x20'+a92_0x203417[_0x1a0a6b(0x1e0)](_0x2410ce[_0x1a0a6b(0x1c1)])+_0x3a3b4a);const _0x33f98a=[..._0x2410ce[_0x1a0a6b(0x1ca)]][_0x1a0a6b(0x1ac)]((_0x1ed70b,_0x4b6291)=>_0x1ed70b['name'][_0x1a0a6b(0x1bf)](_0x4b6291[_0x1a0a6b(0x1d4)]));for(const _0x397a82 of _0x33f98a){const _0xaaa4f8=_0x397a82['parentColumn']&&_0x397a82[_0x1a0a6b(0x1ae)]!==_0x397a82['name']?'\x20'+a92_0x203417[_0x1a0a6b(0x1b4)]('('+_0x397a82[_0x1a0a6b(0x1ae)]+')'):'';console[_0x1a0a6b(0x1ad)]('\x20\x20\x20\x20'+_0x397a82['name']+_0xaaa4f8+':\x20'+a92_0x203417[_0x1a0a6b(0x1cc)](_0x397a82[_0x1a0a6b(0x1c8)]));}}}if(_0x454c9f['size']>0x0){console[_0x1a0a6b(0x1ad)]('\x0a'+a92_0x203417['dim'](_0x1a0a6b(0x1b1)));const _0x50b32e=[..._0x454c9f[_0x1a0a6b(0x1e1)]()][_0x1a0a6b(0x1ac)]((_0x43fb76,_0x39f876)=>_0x43fb76[0x0]['localeCompare'](_0x39f876[0x0]));for(const [_0x77b33c,_0x584198]of _0x50b32e){const _0x1051c2=_0x584198[0x0],_0x5892f5=_0x1051c2?.['parentTableName']||'';console[_0x1a0a6b(0x1ad)]('\x20\x20'+a92_0x203417[_0x1a0a6b(0x1e0)](_0x77b33c)+(_0x5892f5?'\x20'+a92_0x203417['dim']('('+_0x5892f5+')'):''));const _0x158ea1=[..._0x584198][_0x1a0a6b(0x1ac)]((_0x3fbf99,_0x894237)=>_0x3fbf99[_0x1a0a6b(0x1d4)][_0x1a0a6b(0x1bf)](_0x894237['name']));for(const _0x21827f of _0x158ea1){const _0x2137d4=_0x21827f['name']['startsWith'](_0x77b33c+'.')?_0x21827f[_0x1a0a6b(0x1d4)][_0x1a0a6b(0x1c4)](_0x77b33c['length']+0x1):_0x21827f[_0x1a0a6b(0x1d4)],_0x108059=_0x21827f['parentColumn']&&_0x21827f[_0x1a0a6b(0x1ae)]!==_0x2137d4?'\x20'+a92_0x203417[_0x1a0a6b(0x1b4)]('('+_0x21827f[_0x1a0a6b(0x1ae)]+')'):'';console[_0x1a0a6b(0x1ad)](_0x1a0a6b(0x1d5)+_0x2137d4+_0x108059+':\x20'+a92_0x203417[_0x1a0a6b(0x1cc)](_0x21827f[_0x1a0a6b(0x1c8)]));}}}console['error']('');}
@@ -1 +1 @@
1
- function a93_0x3531(_0x3660f5,_0xb30301){_0x3660f5=_0x3660f5-0xf4;const _0x19f955=a93_0x19f9();let _0x353184=_0x19f955[_0x3660f5];return _0x353184;}(function(_0x17a46d,_0x5d48d4){const _0x5a9393=a93_0x3531,_0x3b4480=_0x17a46d();while(!![]){try{const _0x100ccc=-parseInt(_0x5a9393(0x107))/0x1*(-parseInt(_0x5a9393(0x105))/0x2)+parseInt(_0x5a9393(0xff))/0x3+parseInt(_0x5a9393(0xfa))/0x4+-parseInt(_0x5a9393(0xf9))/0x5*(parseInt(_0x5a9393(0x101))/0x6)+-parseInt(_0x5a9393(0x100))/0x7*(-parseInt(_0x5a9393(0x108))/0x8)+-parseInt(_0x5a9393(0xfc))/0x9*(parseInt(_0x5a9393(0xfd))/0xa)+-parseInt(_0x5a9393(0x104))/0xb;if(_0x100ccc===_0x5d48d4)break;else _0x3b4480['push'](_0x3b4480['shift']());}catch(_0x4cd611){_0x3b4480['push'](_0x3b4480['shift']());}}}(a93_0x19f9,0xa8fbb));import*as a93_0x1130bc from'node:fs';import*as a93_0x2d03e7 from'node:path';export function setSecureFilePermissions(_0xbaf3e8){const _0x33ac3e=a93_0x3531;try{a93_0x1130bc[_0x33ac3e(0x109)](_0xbaf3e8,0x180);}catch{console['warn'](_0x33ac3e(0xf6)+_0xbaf3e8);}}function a93_0x19f9(){const _0x5b0659=['2795utxnbQ','752488kZoUwc','Warning:\x20','3096mnKrdk','19110gvxLZa','dirname','3111873CzOVXz','35htSQjg','660qDGQDx',').\x20','existsSync','12725493PdXAZc','4272soTeqt','Should\x20be\x200600\x20or\x20more\x20restrictive.','194bxrlao','1484952geMZqQ','chmodSync','toString','mkdirSync','statSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','\x20has\x20insecure\x20permissions\x20(','warn'];a93_0x19f9=function(){return _0x5b0659;};return a93_0x19f9();}export function setSecureDirectoryPermissions(_0x3d9a5f){const _0x16d225=a93_0x3531;try{a93_0x1130bc['chmodSync'](_0x3d9a5f,0x1c0);}catch{console[_0x16d225(0xf8)](_0x16d225(0xf6)+_0x3d9a5f);}}export function createSecureDirectory(_0x574522){const _0x43f1b4=a93_0x3531;!a93_0x1130bc[_0x43f1b4(0x103)](_0x574522)&&(a93_0x1130bc[_0x43f1b4(0xf4)](_0x574522,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x574522));}export function validateSecureFilePermissions(_0x568ece){const _0x4ba5ff=a93_0x3531;try{const _0x28fad3=a93_0x1130bc[_0x4ba5ff(0xf5)](_0x568ece),_0x5147f9=_0x28fad3['mode']&0x1ff,_0x4e4805=(_0x5147f9&0x3f)!==0x0;if(_0x4e4805)return console[_0x4ba5ff(0xf8)](_0x4ba5ff(0xfb)+_0x568ece+_0x4ba5ff(0xf7)+_0x5147f9[_0x4ba5ff(0x10a)](0x8)+_0x4ba5ff(0x102)+_0x4ba5ff(0x106)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x82d14c,_0x1bb3a8){const _0x18c87d=a93_0x3531,_0x1c8406=a93_0x2d03e7[_0x18c87d(0xfe)](_0x82d14c);createSecureDirectory(_0x1c8406),a93_0x1130bc['writeFileSync'](_0x82d14c,_0x1bb3a8,{'mode':0x180}),setSecureFilePermissions(_0x82d14c);}
1
+ function a93_0x5c4f(){const _0x18bc8f=['6pNyPJP','1177704xTQTeG','28651xGuaJc','112130gOpNBS','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','warn','chmodSync',').\x20','mkdirSync','781PAxmOK','Should\x20be\x200600\x20or\x20more\x20restrictive.','455ouLnxy','1335993PEfucQ','9suYPyg','23340qRyQPy','132612PIwqBE','6ftrsMt','\x20has\x20insecure\x20permissions\x20(','mode','17140gEsaJW'];a93_0x5c4f=function(){return _0x18bc8f;};return a93_0x5c4f();}(function(_0x48c148,_0x3ac110){const _0x49cc84=a93_0x7ca4,_0x457dc8=_0x48c148();while(!![]){try{const _0x1b5aec=parseInt(_0x49cc84(0x107))/0x1*(-parseInt(_0x49cc84(0x108))/0x2)+parseInt(_0x49cc84(0x100))/0x3+-parseInt(_0x49cc84(0x102))/0x4*(-parseInt(_0x49cc84(0xff))/0x5)+-parseInt(_0x49cc84(0x104))/0x6*(parseInt(_0x49cc84(0x10a))/0x7)+parseInt(_0x49cc84(0x109))/0x8+parseInt(_0x49cc84(0x101))/0x9*(-parseInt(_0x49cc84(0x10b))/0xa)+parseInt(_0x49cc84(0xfd))/0xb*(-parseInt(_0x49cc84(0x103))/0xc);if(_0x1b5aec===_0x3ac110)break;else _0x457dc8['push'](_0x457dc8['shift']());}catch(_0x37d66e){_0x457dc8['push'](_0x457dc8['shift']());}}}(a93_0x5c4f,0x42736));import*as a93_0x29c7ab from'node:fs';import*as a93_0x21f2f2 from'node:path';export function setSecureFilePermissions(_0x310bfc){const _0x426629=a93_0x7ca4;try{a93_0x29c7ab['chmodSync'](_0x310bfc,0x180);}catch{console[_0x426629(0x10e)](_0x426629(0x10d)+_0x310bfc);}}export function setSecureDirectoryPermissions(_0x3d2c74){const _0x58d255=a93_0x7ca4;try{a93_0x29c7ab[_0x58d255(0x10f)](_0x3d2c74,0x1c0);}catch{console[_0x58d255(0x10e)](_0x58d255(0x10d)+_0x3d2c74);}}export function createSecureDirectory(_0x5ed6aa){const _0x3bf30e=a93_0x7ca4;!a93_0x29c7ab[_0x3bf30e(0x10c)](_0x5ed6aa)&&(a93_0x29c7ab[_0x3bf30e(0x111)](_0x5ed6aa,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5ed6aa));}function a93_0x7ca4(_0x3ccf66,_0x2b0100){_0x3ccf66=_0x3ccf66-0xfd;const _0x5c4f53=a93_0x5c4f();let _0x7ca466=_0x5c4f53[_0x3ccf66];return _0x7ca466;}export function validateSecureFilePermissions(_0x9f49e4){const _0x15ddba=a93_0x7ca4;try{const _0x4a21b7=a93_0x29c7ab['statSync'](_0x9f49e4),_0x3305e4=_0x4a21b7[_0x15ddba(0x106)]&0x1ff,_0x4c0f9f=(_0x3305e4&0x3f)!==0x0;if(_0x4c0f9f)return console[_0x15ddba(0x10e)]('Warning:\x20'+_0x9f49e4+_0x15ddba(0x105)+_0x3305e4['toString'](0x8)+_0x15ddba(0x110)+_0x15ddba(0xfe)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2c67fe,_0x24750d){const _0x5398ca=a93_0x21f2f2['dirname'](_0x2c67fe);createSecureDirectory(_0x5398ca),a93_0x29c7ab['writeFileSync'](_0x2c67fe,_0x24750d,{'mode':0x180}),setSecureFilePermissions(_0x2c67fe);}
@@ -1 +1 @@
1
- (function(_0x22ca52,_0x18b544){const _0x5de9da=a94_0x50a3,_0xbf686c=_0x22ca52();while(!![]){try{const _0x53d49d=parseInt(_0x5de9da(0x19f))/0x1+parseInt(_0x5de9da(0x1aa))/0x2*(-parseInt(_0x5de9da(0x1a7))/0x3)+-parseInt(_0x5de9da(0x1ae))/0x4*(parseInt(_0x5de9da(0x1a6))/0x5)+parseInt(_0x5de9da(0x1a5))/0x6*(parseInt(_0x5de9da(0x1a9))/0x7)+-parseInt(_0x5de9da(0x1a8))/0x8+-parseInt(_0x5de9da(0x1a1))/0x9*(-parseInt(_0x5de9da(0x1ab))/0xa)+parseInt(_0x5de9da(0x1a0))/0xb;if(_0x53d49d===_0x18b544)break;else _0xbf686c['push'](_0xbf686c['shift']());}catch(_0x4234a7){_0xbf686c['push'](_0xbf686c['shift']());}}}(a94_0xc9dc,0x419e6));export function detectFormatFromExtension(_0x394bbe){const _0x43c7b4=a94_0x50a3,_0x3e0452=_0x394bbe[_0x43c7b4(0x19d)]()[_0x43c7b4(0x1a2)]('.')[_0x43c7b4(0x19e)]();switch(_0x3e0452){case _0x43c7b4(0x1b0):return _0x43c7b4(0x1b0);case _0x43c7b4(0x1a4):return'jsonl';case _0x43c7b4(0x1ad):case'tab':return _0x43c7b4(0x1ad);case _0x43c7b4(0x1ac):case _0x43c7b4(0x1a3):return _0x43c7b4(0x1af);default:return undefined;}}export function resolveOutputFormat(_0x29353c,_0x36a88c,_0x3fc0bd){if(_0x29353c)return _0x29353c;if(_0x36a88c){const _0x1badb9=detectFormatFromExtension(_0x36a88c);if(_0x1badb9)return _0x1badb9;}return _0x3fc0bd;}function a94_0x50a3(_0x2394a1,_0x516a04){_0x2394a1=_0x2394a1-0x19d;const _0xc9dc08=a94_0xc9dc();let _0x50a3a6=_0xc9dc08[_0x2394a1];return _0x50a3a6;}function a94_0xc9dc(){const _0x24717a=['6xZQiPj','10gqMuVx','8193LwIvuz','1034032hKUQiU','1373022wOBieS','102uzGbIe','336090LEJbWj','txt','tsv','835932ienOIT','table','json','toLowerCase','pop','441395CHGflL','1276880ukOPAg','54WoFjvr','split','text','jsonl'];a94_0xc9dc=function(){return _0x24717a;};return a94_0xc9dc();}
1
+ function a94_0xd7f0(_0x4c5f29,_0x3cceb9){_0x4c5f29=_0x4c5f29-0x197;const _0x1fe370=a94_0x1fe3();let _0xd7f013=_0x1fe370[_0x4c5f29];return _0xd7f013;}(function(_0x2ac21b,_0x3b3e35){const _0x194e21=a94_0xd7f0,_0x359ffc=_0x2ac21b();while(!![]){try{const _0xd5a146=parseInt(_0x194e21(0x1a3))/0x1*(-parseInt(_0x194e21(0x1a8))/0x2)+-parseInt(_0x194e21(0x1a2))/0x3+parseInt(_0x194e21(0x19f))/0x4*(-parseInt(_0x194e21(0x197))/0x5)+-parseInt(_0x194e21(0x19e))/0x6+-parseInt(_0x194e21(0x1a7))/0x7*(-parseInt(_0x194e21(0x1a1))/0x8)+parseInt(_0x194e21(0x198))/0x9+parseInt(_0x194e21(0x19b))/0xa;if(_0xd5a146===_0x3b3e35)break;else _0x359ffc['push'](_0x359ffc['shift']());}catch(_0x50f043){_0x359ffc['push'](_0x359ffc['shift']());}}}(a94_0x1fe3,0x71a7c));function a94_0x1fe3(){const _0x41b137=['8apcQbM','toLowerCase','376616owEQoM','2718336DPAmZO','444098aNoSzt','text','tab','split','35VkeWyr','2dCBELw','2036135WJnXUG','6896151MtoKrQ','txt','json','19803510aGzHlu','tsv','jsonl','2110674BIQqEy'];a94_0x1fe3=function(){return _0x41b137;};return a94_0x1fe3();}export function detectFormatFromExtension(_0x126db9){const _0x498f84=a94_0xd7f0,_0x2147ab=_0x126db9[_0x498f84(0x1a0)]()[_0x498f84(0x1a6)]('.')['pop']();switch(_0x2147ab){case _0x498f84(0x19a):return _0x498f84(0x19a);case _0x498f84(0x19d):return _0x498f84(0x19d);case _0x498f84(0x19c):case _0x498f84(0x1a5):return _0x498f84(0x19c);case _0x498f84(0x199):case _0x498f84(0x1a4):return'table';default:return undefined;}}export function resolveOutputFormat(_0x4d1fbb,_0x504e4b,_0x53ded9){if(_0x4d1fbb)return _0x4d1fbb;if(_0x504e4b){const _0x43631c=detectFormatFromExtension(_0x504e4b);if(_0x43631c)return _0x43631c;}return _0x53ded9;}
@@ -1 +1 @@
1
- (function(_0x45f593,_0x5d9b0e){const _0x3dfdb8=a95_0x57a5,_0x353026=_0x45f593();while(!![]){try{const _0xe52263=parseInt(_0x3dfdb8(0x1ea))/0x1+parseInt(_0x3dfdb8(0x1fd))/0x2+-parseInt(_0x3dfdb8(0x201))/0x3+-parseInt(_0x3dfdb8(0x1fb))/0x4*(-parseInt(_0x3dfdb8(0x1ed))/0x5)+-parseInt(_0x3dfdb8(0x20d))/0x6+-parseInt(_0x3dfdb8(0x1f8))/0x7+parseInt(_0x3dfdb8(0x1f9))/0x8*(parseInt(_0x3dfdb8(0x1f7))/0x9);if(_0xe52263===_0x5d9b0e)break;else _0x353026['push'](_0x353026['shift']());}catch(_0xeeb99b){_0x353026['push'](_0x353026['shift']());}}}(a95_0x1f07,0xd1b64));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x5214fb=a95_0x57a5;return process[_0x5214fb(0x208)][_0x5214fb(0x211)]||Infinity;}export function formatAsTable(_0x3f4131,_0x159bbf=DEFAULT_MAX_DISPLAY_ROWS,_0x2c28a6=![],_0xc907b6={}){const _0x4b1d8f=a95_0x57a5;if(_0x3f4131[_0x4b1d8f(0x1ef)]['length']===0x0)return _0x4b1d8f(0x200);const _0x1eee47=_0x3f4131[_0x4b1d8f(0x211)]['map'](_0x2451be=>_0x2451be[_0x4b1d8f(0x1f2)]),_0x518a7d=_0x3f4131[_0x4b1d8f(0x211)]['map'](_0x535ab8=>simplifyType(_0x535ab8[_0x4b1d8f(0x1e3)])),_0x580fa5=_0x3f4131['data'][_0x4b1d8f(0x1fc)](0x0,_0x159bbf),_0x2d1d95=_0x3f4131['data'][_0x4b1d8f(0x1ee)],_0x9e97c5=_0x2d1d95>_0x159bbf,_0x291b96=[],_0x1611f3=getTerminalWidth(),_0x5b5a07=_0x1611f3!==Infinity,_0xf99dce=0x32;let _0x13bec5=_0x1eee47[_0x4b1d8f(0x1de)]((_0x57a709,_0x13d7d7)=>{const _0x4e26c6=_0x4b1d8f,_0x203372=stringWidth(_0x518a7d[_0x13d7d7]),_0x30c231=Math[_0x4e26c6(0x1f1)](..._0x580fa5[_0x4e26c6(0x1de)](_0x197af6=>{const _0x2f0234=_0x197af6[_0x57a709];return stringWidth(formatValue(_0x2f0234));})),_0x11b07a=Math['max'](stringWidth(_0x57a709),_0x203372,_0x30c231);return _0x2c28a6?_0x11b07a:Math[_0x4e26c6(0x206)](_0x11b07a,_0xf99dce);});if(_0x5b5a07&&!_0x2c28a6&&_0x1eee47['length']>0x0){const _0x4e4f48=_0x4cc603=>{let _0x19ef2e=0x1;for(const _0x425927 of _0x4cc603){_0x19ef2e+=_0x425927+0x3;}return _0x19ef2e+0x1;};let _0xa7c5c4=_0x4e4f48(_0x13bec5);if(_0xa7c5c4>_0x1611f3){const _0x1e87c5=0x3;for(let _0x5a3fd8=_0x13bec5[_0x4b1d8f(0x1ee)]-0x1;_0x5a3fd8>=0x0;_0x5a3fd8--){_0xa7c5c4=_0x4e4f48(_0x13bec5);if(_0xa7c5c4<=_0x1611f3)break;const _0x88a49c=_0x13bec5[_0x5a3fd8],_0x4ce5a2=_0xa7c5c4-_0x1611f3,_0x2f2776=_0x88a49c-_0x1e87c5,_0x5c6bbd=Math[_0x4b1d8f(0x206)](_0x4ce5a2,_0x2f2776);_0x5c6bbd>0x0&&(_0x13bec5[_0x5a3fd8]=_0x88a49c-_0x5c6bbd);}}}const _0x4846ad=_0x1eee47,_0x1609a1=_0x518a7d,_0x419570=_0x13bec5,_0x33f5b4=_0x13bec5;_0x291b96[_0x4b1d8f(0x209)](colorBorder('┌'+_0x33f5b4[_0x4b1d8f(0x1de)](_0x55cb7e=>'─'[_0x4b1d8f(0x20b)](_0x55cb7e+0x2))[_0x4b1d8f(0x1e5)]('┬')+'┐',_0xc907b6));const _0x3746b2=_0x4846ad[_0x4b1d8f(0x1de)]((_0x8cb66f,_0x3bd55e)=>centerAlign(_0x8cb66f,_0x419570[_0x3bd55e]));_0x291b96[_0x4b1d8f(0x209)](colorBorder('│',_0xc907b6)+'\x20'+_0x3746b2['join']('\x20'+colorBorder('│',_0xc907b6)+'\x20')+'\x20'+colorBorder('│',_0xc907b6));const _0x5ecde4=_0x1609a1[_0x4b1d8f(0x1de)]((_0x22ed58,_0x2a123d)=>colorType(centerAlign(_0x22ed58,_0x419570[_0x2a123d]),_0xc907b6));_0x291b96[_0x4b1d8f(0x209)](colorBorder('│',_0xc907b6)+'\x20'+_0x5ecde4[_0x4b1d8f(0x1e5)]('\x20'+colorBorder('│',_0xc907b6)+'\x20')+'\x20'+colorBorder('│',_0xc907b6)),_0x291b96[_0x4b1d8f(0x209)](colorBorder('├'+_0x33f5b4[_0x4b1d8f(0x1de)](_0x5f4e03=>'─'[_0x4b1d8f(0x20b)](_0x5f4e03+0x2))[_0x4b1d8f(0x1e5)]('┼')+'┤',_0xc907b6));const _0xea3d42=(_0x2adf5b,_0x3bd978)=>{const _0x1a4c34=_0x4b1d8f,_0x4c5389=stringWidth(_0x2adf5b);if(_0x4c5389<=_0x3bd978)return _0x2adf5b;let _0x2feef6=_0x2adf5b;while(stringWidth(_0x2feef6+'…')>_0x3bd978&&_0x2feef6[_0x1a4c34(0x1ee)]>0x0){_0x2feef6=_0x2feef6['slice'](0x0,-0x1);}return _0x2feef6+'…';};_0x580fa5[_0x4b1d8f(0x203)](_0x3b19c8=>{const _0x2afeeb=_0x4b1d8f,_0x2b2c26=_0x1eee47[_0x2afeeb(0x1de)]((_0x1a45cb,_0x380bbf)=>{const _0x4ce84c=_0x2afeeb,_0x2942c9=_0x3b19c8[_0x1a45cb],_0x465b6b=formatValue(_0x2942c9),_0x2671c9=_0x419570[_0x380bbf],_0x490aa7=_0xea3d42(_0x465b6b,_0x2671c9),_0x3becdd=typeof _0x2942c9==='number'||typeof _0x2942c9===_0x4ce84c(0x1f6)&&/^-?\d+$/[_0x4ce84c(0x1d9)](_0x2942c9);return _0x3becdd?padStart(_0x490aa7,_0x2671c9):padEnd(_0x490aa7,_0x2671c9);});_0x291b96['push'](colorBorder('│',_0xc907b6)+'\x20'+_0x2b2c26[_0x2afeeb(0x1e5)]('\x20'+colorBorder('│',_0xc907b6)+'\x20')+'\x20'+colorBorder('│',_0xc907b6));});const _0x302fea=_0x33f5b4[_0x4b1d8f(0x1dd)]((_0x5df0bb,_0x39bc9a)=>_0x5df0bb+_0x39bc9a+0x3,-0x1);_0x291b96[_0x4b1d8f(0x209)](colorBorder('├'+_0x33f5b4['map'](_0x355539=>'─'[_0x4b1d8f(0x20b)](_0x355539+0x2))[_0x4b1d8f(0x1e5)]('┴')+'┤',_0xc907b6));let _0x1dc0ab;_0x9e97c5?_0x1dc0ab=_0x2d1d95+_0x4b1d8f(0x1f3)+_0x159bbf+_0x4b1d8f(0x1f0):_0x1dc0ab=_0x2d1d95+_0x4b1d8f(0x1e8)+(_0x2d1d95===0x1?'':'s');const _0x3245ad=_0x1dc0ab[_0x4b1d8f(0x1f4)](_0x302fea-0x2);return _0x291b96['push'](colorBorder('│',_0xc907b6)+'\x20'+_0x3245ad+'\x20'+colorBorder('│',_0xc907b6)),_0x291b96[_0x4b1d8f(0x209)](colorBorder('└'+'─'[_0x4b1d8f(0x20b)](_0x302fea)+'┘',_0xc907b6)),_0x291b96['join']('\x0a');}function simplifyType(_0x2b9b49){const _0x12ee7d=a95_0x57a5,_0x559068={'varchar':_0x12ee7d(0x1f6),'bigint':_0x12ee7d(0x1e0),'integer':_0x12ee7d(0x207),'double':_0x12ee7d(0x20c),'boolean':_0x12ee7d(0x1e1),'date':_0x12ee7d(0x1e2),'timestamp':_0x12ee7d(0x205),'array':'array','map':_0x12ee7d(0x1de),'row':_0x12ee7d(0x1e7)},_0x7dfde9=_0x2b9b49[_0x12ee7d(0x1f5)]();for(const [_0x1664c3,_0x3a01fe]of Object[_0x12ee7d(0x204)](_0x559068)){if(_0x7dfde9[_0x12ee7d(0x20e)](_0x1664c3))return _0x3a01fe;}return _0x2b9b49[_0x12ee7d(0x1ee)]>0xa?_0x2b9b49[_0x12ee7d(0x1e4)](0x0,0xa):_0x2b9b49;}export function formatAsJSON(_0xb34da0,_0x5a2acb={}){const _0x40c997=a95_0x57a5;if(_0xb34da0[_0x40c997(0x1ef)][_0x40c997(0x1ee)]===0x0)return'[]';if(shouldUseColor(_0x5a2acb))return colorizeJSON(_0xb34da0[_0x40c997(0x1ef)],_0x5a2acb);const _0x41e4c2=_0xb34da0[_0x40c997(0x1ef)][_0x40c997(0x1de)](_0xa54174=>'\x20\x20'+JSON[_0x40c997(0x202)](_0xa54174));return'[\x0a'+_0x41e4c2[_0x40c997(0x1e5)](',\x0a')+'\x0a]';}function a95_0x57a5(_0x1ec234,_0x2e7f6b){_0x1ec234=_0x1ec234-0x1d8;const _0x1f07ba=a95_0x1f07();let _0x57a526=_0x1f07ba[_0x1ec234];return _0x57a526;}export function formatAsJSONL(_0x283ce4,_0x411a10={}){const _0x58a060=a95_0x57a5;if(_0x283ce4['data'][_0x58a060(0x1ee)]===0x0)return'';if(shouldUseColor(_0x411a10))return _0x283ce4[_0x58a060(0x1ef)][_0x58a060(0x1de)](_0x4a2b87=>colorizeJSONCompact(_0x4a2b87,_0x411a10))[_0x58a060(0x1e5)]('\x0a');return _0x283ce4[_0x58a060(0x1ef)][_0x58a060(0x1de)](_0x428692=>JSON[_0x58a060(0x202)](_0x428692))[_0x58a060(0x1e5)]('\x0a');}export function formatAsTSV(_0x522d71){const _0x551722=a95_0x57a5;if(_0x522d71[_0x551722(0x1ef)][_0x551722(0x1ee)]===0x0)return'';const _0x3b71fc=[],_0x38573d=_0x522d71[_0x551722(0x211)][_0x551722(0x1de)](_0x4d58c7=>_0x4d58c7['name']);return _0x3b71fc[_0x551722(0x209)](_0x38573d[_0x551722(0x1e5)]('\x09')),_0x522d71[_0x551722(0x1ef)][_0x551722(0x203)](_0x565547=>{const _0x348e70=_0x551722,_0x4dea34=_0x38573d[_0x348e70(0x1de)](_0xb16da8=>{const _0x24bb61=_0x565547[_0xb16da8];return formatValueForTSV(_0x24bb61);});_0x3b71fc[_0x348e70(0x209)](_0x4dea34[_0x348e70(0x1e5)]('\x09'));}),_0x3b71fc['join']('\x0a');}function formatValue(_0x111e63){const _0x19bc85=a95_0x57a5;if(_0x111e63===null||_0x111e63===undefined)return'';if(typeof _0x111e63==='string'){const _0x39db10=_0x111e63[_0x19bc85(0x1da)](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x19bc85(0x1da)](/\t/g,'\x5ct');return _0x39db10;}if(typeof _0x111e63===_0x19bc85(0x1ff))return String(_0x111e63);if(typeof _0x111e63===_0x19bc85(0x1fe))return _0x111e63?'true':_0x19bc85(0x20f);if(_0x111e63 instanceof Date)return _0x111e63[_0x19bc85(0x1e9)]();if(typeof _0x111e63==='object')return JSON[_0x19bc85(0x202)](_0x111e63);return String(_0x111e63);}function formatValueForTSV(_0x547a69){const _0x3f48e6=a95_0x57a5;if(_0x547a69===null||_0x547a69===undefined)return'';if(typeof _0x547a69===_0x3f48e6(0x1f6))return _0x547a69['replace'](/\t/g,'\x5ct')[_0x3f48e6(0x1da)](/\n/g,'\x5cn');if(typeof _0x547a69===_0x3f48e6(0x1ff)||typeof _0x547a69==='boolean')return String(_0x547a69);if(_0x547a69 instanceof Date)return _0x547a69['toISOString']();if(typeof _0x547a69===_0x3f48e6(0x1df))return JSON[_0x3f48e6(0x202)](_0x547a69);return String(_0x547a69);}export function formatQueryResult(_0x128dfa,_0x50dca5){const _0x25de9c=a95_0x57a5;switch(_0x50dca5){case _0x25de9c(0x1eb):return formatAsTable(_0x128dfa);case _0x25de9c(0x1db):return formatAsJSON(_0x128dfa);case _0x25de9c(0x1ec):return formatAsJSONL(_0x128dfa);case _0x25de9c(0x210):return formatAsTSV(_0x128dfa);default:return formatAsJSON(_0x128dfa);}}export function formatBytes(_0x5a0e7e){const _0x2cedb7=a95_0x57a5;if(_0x5a0e7e===0x0)return'0\x20B';const _0x40d100=['B','KB','MB','GB','TB'],_0xceb716=0x400,_0x668d51=Math['floor'](Math[_0x2cedb7(0x1e6)](_0x5a0e7e)/Math['log'](_0xceb716)),_0x59ec9e=_0x5a0e7e/Math[_0x2cedb7(0x20a)](_0xceb716,_0x668d51),_0xb77ef8=_0x59ec9e>=0xa?0x1:0x2;return _0x59ec9e[_0x2cedb7(0x1fa)](_0xb77ef8)+'\x20'+_0x40d100[_0x668d51];}function a95_0x1f07(){const _0x2affcf=['length','data','\x20shown)','max','name','\x20rows\x20(','padEnd','toLowerCase','string','9WmOMMM','4053266MXwOdF','998024OSoHeu','toFixed','6052144ZwLIOd','slice','1448400IyEDja','boolean','number','No\x20rows\x20returned','4540080tDJTye','stringify','forEach','entries','timestamp','min','int','stdout','push','pow','repeat','double','5202630NhNLYU','startsWith','false','tsv','columns','toString','test','replace','json','floor','reduce','map','object','long','bool','date','type','substring','join','log','row','\x20row','toISOString','1456494WyymaD','table','jsonl','5OIZDKT'];a95_0x1f07=function(){return _0x2affcf;};return a95_0x1f07();}export function formatRows(_0x456ed0){const _0x29ad71=a95_0x57a5;if(_0x456ed0==null)return'-';if(_0x456ed0===0x0)return'0';if(_0x456ed0<0x3e8)return _0x456ed0[_0x29ad71(0x1d8)]();const _0x1eb6f6=['','K','M','B','T'],_0x4bcd19=0x3e8,_0x1f5b33=Math[_0x29ad71(0x1dc)](Math[_0x29ad71(0x1e6)](_0x456ed0)/Math[_0x29ad71(0x1e6)](_0x4bcd19)),_0x582884=_0x456ed0/Math[_0x29ad71(0x20a)](_0x4bcd19,_0x1f5b33),_0x52cbbf=_0x582884>=0xa?0x1:0x2;return''+_0x582884['toFixed'](_0x52cbbf)+_0x1eb6f6[_0x1f5b33];}
1
+ (function(_0x449ba0,_0x10691b){const _0x6a35d7=a95_0x24ff,_0x4d8ec3=_0x449ba0();while(!![]){try{const _0x53f813=-parseInt(_0x6a35d7(0xe5))/0x1+parseInt(_0x6a35d7(0xea))/0x2*(-parseInt(_0x6a35d7(0xd0))/0x3)+parseInt(_0x6a35d7(0xcf))/0x4*(parseInt(_0x6a35d7(0xf4))/0x5)+parseInt(_0x6a35d7(0xd5))/0x6+parseInt(_0x6a35d7(0xfd))/0x7*(parseInt(_0x6a35d7(0xef))/0x8)+-parseInt(_0x6a35d7(0xdb))/0x9+-parseInt(_0x6a35d7(0xdd))/0xa*(-parseInt(_0x6a35d7(0xcb))/0xb);if(_0x53f813===_0x10691b)break;else _0x4d8ec3['push'](_0x4d8ec3['shift']());}catch(_0x1df72d){_0x4d8ec3['push'](_0x4d8ec3['shift']());}}}(a95_0x2cd7,0x35122));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a95_0x2cd7(){const _0x44077a=['name','false','175761NKiDSY','array','0\x20B','floor','push','8eTVFNY','true','padEnd','date','stringify','235960gfrCTb','startsWith','type','bool','entries','5awKAdc','length','replace','string','number','long','max','tsv','toString','77pXUSkw','jsonl','boolean','11AkuUYO','pow','test','\x20row','904016CLPgOV','232971ilgoAY','toFixed','table','data','toISOString','1670856vqRHXH','repeat','forEach','map','object','min','3575853XpvVZr','columns','2721590TKDkEF','stdout','join','toLowerCase','No\x20rows\x20returned','log'];a95_0x2cd7=function(){return _0x44077a;};return a95_0x2cd7();}const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x379179=a95_0x24ff;return process[_0x379179(0xde)][_0x379179(0xdc)]||Infinity;}export function formatAsTable(_0x1ac8c8,_0x4d1da2=DEFAULT_MAX_DISPLAY_ROWS,_0x48a32d=![],_0x54451c={}){const _0x4de7a1=a95_0x24ff;if(_0x1ac8c8[_0x4de7a1(0xd3)][_0x4de7a1(0xf5)]===0x0)return _0x4de7a1(0xe1);const _0x1c4074=_0x1ac8c8[_0x4de7a1(0xdc)][_0x4de7a1(0xd8)](_0x833e37=>_0x833e37['name']),_0x29912b=_0x1ac8c8[_0x4de7a1(0xdc)][_0x4de7a1(0xd8)](_0x3622c3=>simplifyType(_0x3622c3[_0x4de7a1(0xf1)])),_0x3fb815=_0x1ac8c8[_0x4de7a1(0xd3)]['slice'](0x0,_0x4d1da2),_0x19ac7b=_0x1ac8c8[_0x4de7a1(0xd3)]['length'],_0x2f8f7d=_0x19ac7b>_0x4d1da2,_0x46b67c=[],_0x7de7a3=getTerminalWidth(),_0x461f72=_0x7de7a3!==Infinity,_0x396a9f=0x32;let _0x53d9b1=_0x1c4074[_0x4de7a1(0xd8)]((_0x50f6d1,_0x5bebaf)=>{const _0x4b6db7=_0x4de7a1,_0x3e7f17=stringWidth(_0x29912b[_0x5bebaf]),_0x13df48=Math[_0x4b6db7(0xfa)](..._0x3fb815['map'](_0x115d11=>{const _0x13b77e=_0x115d11[_0x50f6d1];return stringWidth(formatValue(_0x13b77e));})),_0x97f7a9=Math[_0x4b6db7(0xfa)](stringWidth(_0x50f6d1),_0x3e7f17,_0x13df48);return _0x48a32d?_0x97f7a9:Math['min'](_0x97f7a9,_0x396a9f);});if(_0x461f72&&!_0x48a32d&&_0x1c4074['length']>0x0){const _0x4ba6b3=_0x3e1ca8=>{let _0x1bc46f=0x1;for(const _0x15b43e of _0x3e1ca8){_0x1bc46f+=_0x15b43e+0x3;}return _0x1bc46f+0x1;};let _0x5e883e=_0x4ba6b3(_0x53d9b1);if(_0x5e883e>_0x7de7a3){const _0x5a48bb=0x3;for(let _0x2e6890=_0x53d9b1[_0x4de7a1(0xf5)]-0x1;_0x2e6890>=0x0;_0x2e6890--){_0x5e883e=_0x4ba6b3(_0x53d9b1);if(_0x5e883e<=_0x7de7a3)break;const _0x2aa032=_0x53d9b1[_0x2e6890],_0x495fa7=_0x5e883e-_0x7de7a3,_0x2f0f3c=_0x2aa032-_0x5a48bb,_0x25542b=Math[_0x4de7a1(0xda)](_0x495fa7,_0x2f0f3c);_0x25542b>0x0&&(_0x53d9b1[_0x2e6890]=_0x2aa032-_0x25542b);}}}const _0x4e3077=_0x1c4074,_0x5b377c=_0x29912b,_0x10411b=_0x53d9b1,_0x49519f=_0x53d9b1;_0x46b67c[_0x4de7a1(0xe9)](colorBorder('┌'+_0x49519f['map'](_0x410cdd=>'─'['repeat'](_0x410cdd+0x2))[_0x4de7a1(0xdf)]('┬')+'┐',_0x54451c));const _0x53d4da=_0x4e3077[_0x4de7a1(0xd8)]((_0x2e7efa,_0x49f793)=>centerAlign(_0x2e7efa,_0x10411b[_0x49f793]));_0x46b67c[_0x4de7a1(0xe9)](colorBorder('│',_0x54451c)+'\x20'+_0x53d4da['join']('\x20'+colorBorder('│',_0x54451c)+'\x20')+'\x20'+colorBorder('│',_0x54451c));const _0x3f96d4=_0x5b377c[_0x4de7a1(0xd8)]((_0x182b0b,_0x388146)=>colorType(centerAlign(_0x182b0b,_0x10411b[_0x388146]),_0x54451c));_0x46b67c[_0x4de7a1(0xe9)](colorBorder('│',_0x54451c)+'\x20'+_0x3f96d4['join']('\x20'+colorBorder('│',_0x54451c)+'\x20')+'\x20'+colorBorder('│',_0x54451c)),_0x46b67c[_0x4de7a1(0xe9)](colorBorder('├'+_0x49519f[_0x4de7a1(0xd8)](_0x1d15ae=>'─'[_0x4de7a1(0xd6)](_0x1d15ae+0x2))[_0x4de7a1(0xdf)]('┼')+'┤',_0x54451c));const _0x2b953c=(_0x1b5e9e,_0x2a9ef8)=>{const _0x4b62f6=_0x4de7a1,_0x5d403b=stringWidth(_0x1b5e9e);if(_0x5d403b<=_0x2a9ef8)return _0x1b5e9e;let _0x5e5459=_0x1b5e9e;while(stringWidth(_0x5e5459+'…')>_0x2a9ef8&&_0x5e5459[_0x4b62f6(0xf5)]>0x0){_0x5e5459=_0x5e5459['slice'](0x0,-0x1);}return _0x5e5459+'…';};_0x3fb815['forEach'](_0x17cdd3=>{const _0x5e89b4=_0x4de7a1,_0x473547=_0x1c4074[_0x5e89b4(0xd8)]((_0x45fb30,_0x2bca07)=>{const _0x1c2c5a=_0x5e89b4,_0x1f3d2d=_0x17cdd3[_0x45fb30],_0x10685e=formatValue(_0x1f3d2d),_0x130a58=_0x10411b[_0x2bca07],_0x322001=_0x2b953c(_0x10685e,_0x130a58),_0x1e307a=typeof _0x1f3d2d===_0x1c2c5a(0xf8)||typeof _0x1f3d2d==='string'&&/^-?\d+$/[_0x1c2c5a(0xcd)](_0x1f3d2d);return _0x1e307a?padStart(_0x322001,_0x130a58):padEnd(_0x322001,_0x130a58);});_0x46b67c[_0x5e89b4(0xe9)](colorBorder('│',_0x54451c)+'\x20'+_0x473547[_0x5e89b4(0xdf)]('\x20'+colorBorder('│',_0x54451c)+'\x20')+'\x20'+colorBorder('│',_0x54451c));});const _0x58b8ab=_0x49519f['reduce']((_0x54daa8,_0x41676f)=>_0x54daa8+_0x41676f+0x3,-0x1);_0x46b67c[_0x4de7a1(0xe9)](colorBorder('├'+_0x49519f[_0x4de7a1(0xd8)](_0x2b9e9f=>'─'[_0x4de7a1(0xd6)](_0x2b9e9f+0x2))[_0x4de7a1(0xdf)]('┴')+'┤',_0x54451c));let _0x419177;_0x2f8f7d?_0x419177=_0x19ac7b+'\x20rows\x20('+_0x4d1da2+'\x20shown)':_0x419177=_0x19ac7b+_0x4de7a1(0xce)+(_0x19ac7b===0x1?'':'s');const _0x18c655=_0x419177[_0x4de7a1(0xec)](_0x58b8ab-0x2);return _0x46b67c[_0x4de7a1(0xe9)](colorBorder('│',_0x54451c)+'\x20'+_0x18c655+'\x20'+colorBorder('│',_0x54451c)),_0x46b67c[_0x4de7a1(0xe9)](colorBorder('└'+'─'[_0x4de7a1(0xd6)](_0x58b8ab)+'┘',_0x54451c)),_0x46b67c[_0x4de7a1(0xdf)]('\x0a');}function simplifyType(_0x52a48f){const _0x417e51=a95_0x24ff,_0x297bd6={'varchar':_0x417e51(0xf7),'bigint':_0x417e51(0xf9),'integer':'int','double':'double','boolean':_0x417e51(0xf2),'date':_0x417e51(0xed),'timestamp':'timestamp','array':_0x417e51(0xe6),'map':_0x417e51(0xd8),'row':'row'},_0x3b2e2e=_0x52a48f[_0x417e51(0xe0)]();for(const [_0x109a2b,_0x1e90fc]of Object[_0x417e51(0xf3)](_0x297bd6)){if(_0x3b2e2e[_0x417e51(0xf0)](_0x109a2b))return _0x1e90fc;}return _0x52a48f[_0x417e51(0xf5)]>0xa?_0x52a48f['substring'](0x0,0xa):_0x52a48f;}export function formatAsJSON(_0x486f4a,_0x26ac4a={}){const _0x2d518f=a95_0x24ff;if(_0x486f4a['data'][_0x2d518f(0xf5)]===0x0)return'[]';if(shouldUseColor(_0x26ac4a))return colorizeJSON(_0x486f4a[_0x2d518f(0xd3)],_0x26ac4a);const _0x2731a6=_0x486f4a[_0x2d518f(0xd3)][_0x2d518f(0xd8)](_0x25430d=>'\x20\x20'+JSON['stringify'](_0x25430d));return'[\x0a'+_0x2731a6[_0x2d518f(0xdf)](',\x0a')+'\x0a]';}function a95_0x24ff(_0x225b76,_0x4b6b3d){_0x225b76=_0x225b76-0xca;const _0x2cd7c1=a95_0x2cd7();let _0x24ffdb=_0x2cd7c1[_0x225b76];return _0x24ffdb;}export function formatAsJSONL(_0x3a7404,_0x54a0c9={}){const _0xc9ffa5=a95_0x24ff;if(_0x3a7404[_0xc9ffa5(0xd3)][_0xc9ffa5(0xf5)]===0x0)return'';if(shouldUseColor(_0x54a0c9))return _0x3a7404['data']['map'](_0x3d6c03=>colorizeJSONCompact(_0x3d6c03,_0x54a0c9))['join']('\x0a');return _0x3a7404[_0xc9ffa5(0xd3)][_0xc9ffa5(0xd8)](_0x286ca0=>JSON['stringify'](_0x286ca0))[_0xc9ffa5(0xdf)]('\x0a');}export function formatAsTSV(_0x32b61b){const _0x2a5f61=a95_0x24ff;if(_0x32b61b[_0x2a5f61(0xd3)][_0x2a5f61(0xf5)]===0x0)return'';const _0x1e6158=[],_0x386a45=_0x32b61b[_0x2a5f61(0xdc)][_0x2a5f61(0xd8)](_0x58ad27=>_0x58ad27[_0x2a5f61(0xe3)]);return _0x1e6158['push'](_0x386a45['join']('\x09')),_0x32b61b['data'][_0x2a5f61(0xd7)](_0x4f3a7c=>{const _0x5b3efd=_0x2a5f61,_0x1405c0=_0x386a45[_0x5b3efd(0xd8)](_0x150a45=>{const _0x6224cd=_0x4f3a7c[_0x150a45];return formatValueForTSV(_0x6224cd);});_0x1e6158[_0x5b3efd(0xe9)](_0x1405c0[_0x5b3efd(0xdf)]('\x09'));}),_0x1e6158[_0x2a5f61(0xdf)]('\x0a');}function formatValue(_0x42afd6){const _0x2e0fec=a95_0x24ff;if(_0x42afd6===null||_0x42afd6===undefined)return'';if(typeof _0x42afd6===_0x2e0fec(0xf7)){const _0x32e678=_0x42afd6['replace'](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x2e0fec(0xf6)](/\t/g,'\x5ct');return _0x32e678;}if(typeof _0x42afd6===_0x2e0fec(0xf8))return String(_0x42afd6);if(typeof _0x42afd6===_0x2e0fec(0xca))return _0x42afd6?_0x2e0fec(0xeb):_0x2e0fec(0xe4);if(_0x42afd6 instanceof Date)return _0x42afd6[_0x2e0fec(0xd4)]();if(typeof _0x42afd6===_0x2e0fec(0xd9))return JSON[_0x2e0fec(0xee)](_0x42afd6);return String(_0x42afd6);}function formatValueForTSV(_0x20d371){const _0x41e263=a95_0x24ff;if(_0x20d371===null||_0x20d371===undefined)return'';if(typeof _0x20d371===_0x41e263(0xf7))return _0x20d371[_0x41e263(0xf6)](/\t/g,'\x5ct')[_0x41e263(0xf6)](/\n/g,'\x5cn');if(typeof _0x20d371===_0x41e263(0xf8)||typeof _0x20d371===_0x41e263(0xca))return String(_0x20d371);if(_0x20d371 instanceof Date)return _0x20d371[_0x41e263(0xd4)]();if(typeof _0x20d371===_0x41e263(0xd9))return JSON['stringify'](_0x20d371);return String(_0x20d371);}export function formatQueryResult(_0x13de86,_0x55128f){const _0x32bba6=a95_0x24ff;switch(_0x55128f){case _0x32bba6(0xd2):return formatAsTable(_0x13de86);case'json':return formatAsJSON(_0x13de86);case _0x32bba6(0xfe):return formatAsJSONL(_0x13de86);case _0x32bba6(0xfb):return formatAsTSV(_0x13de86);default:return formatAsJSON(_0x13de86);}}export function formatBytes(_0x3c15be){const _0x4df238=a95_0x24ff;if(_0x3c15be===0x0)return _0x4df238(0xe7);const _0x12bc3b=['B','KB','MB','GB','TB'],_0x558a81=0x400,_0x5c4347=Math[_0x4df238(0xe8)](Math['log'](_0x3c15be)/Math[_0x4df238(0xe2)](_0x558a81)),_0xb1fb23=_0x3c15be/Math[_0x4df238(0xcc)](_0x558a81,_0x5c4347),_0x535e4a=_0xb1fb23>=0xa?0x1:0x2;return _0xb1fb23['toFixed'](_0x535e4a)+'\x20'+_0x12bc3b[_0x5c4347];}export function formatRows(_0x30c249){const _0x4cabc1=a95_0x24ff;if(_0x30c249==null)return'-';if(_0x30c249===0x0)return'0';if(_0x30c249<0x3e8)return _0x30c249[_0x4cabc1(0xfc)]();const _0x13a763=['','K','M','B','T'],_0x468e90=0x3e8,_0x492195=Math['floor'](Math['log'](_0x30c249)/Math[_0x4cabc1(0xe2)](_0x468e90)),_0x949c6=_0x30c249/Math['pow'](_0x468e90,_0x492195),_0xe22696=_0x949c6>=0xa?0x1:0x2;return''+_0x949c6[_0x4cabc1(0xd1)](_0xe22696)+_0x13a763[_0x492195];}
@@ -1 +1 @@
1
- function a96_0x59d0(){const _0x45f9f7=['2426600zOIXLb','ENOENT','933369QZCBHI','PERMISSION_DENIED','296pCjmRB','725000mSvwYg','EACCES','6486oDZDZl','\x27:\x20','1074042KfkoOB','153YXzlWE','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','message','4370597wOwypw','parse','File\x20not\x20found:\x20','INVALID_ARGUMENT','code','NOT_FOUND','Invalid\x20JSON\x20string:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','5398086zJWaJw'];a96_0x59d0=function(){return _0x45f9f7;};return a96_0x59d0();}function a96_0x37b3(_0xd92099,_0x515612){_0xd92099=_0xd92099-0x19a;const _0x59d03f=a96_0x59d0();let _0x37b34c=_0x59d03f[_0xd92099];return _0x37b34c;}(function(_0x52a859,_0xb501e7){const _0x270bda=a96_0x37b3,_0x2efb48=_0x52a859();while(!![]){try{const _0x367ef6=parseInt(_0x270bda(0x1a0))/0x1+parseInt(_0x270bda(0x1a7))/0x2+parseInt(_0x270bda(0x1a5))/0x3*(-parseInt(_0x270bda(0x1a2))/0x4)+parseInt(_0x270bda(0x19e))/0x5+parseInt(_0x270bda(0x19d))/0x6+-parseInt(_0x270bda(0x1ab))/0x7+-parseInt(_0x270bda(0x1a3))/0x8*(parseInt(_0x270bda(0x1a8))/0x9);if(_0x367ef6===_0xb501e7)break;else _0x2efb48['push'](_0x2efb48['shift']());}catch(_0x273bec){_0x2efb48['push'](_0x2efb48['shift']());}}}(a96_0x59d0,0x817e7));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1d3664,_0x68bda4){const _0x1881b8=a96_0x37b3;try{if(_0x68bda4){const _0x4206ec=await readFile(_0x1d3664,'utf-8');try{return JSON['parse'](_0x4206ec);}catch(_0x8d6f37){throw new SDKError(ErrorCode[_0x1881b8(0x1ae)],_0x1881b8(0x19c)+_0x1d3664+_0x1881b8(0x1a6)+(_0x8d6f37 instanceof Error?_0x8d6f37[_0x1881b8(0x1aa)]:String(_0x8d6f37)));}}else try{return JSON[_0x1881b8(0x1ac)](_0x1d3664);}catch(_0x307f2e){throw new SDKError(ErrorCode[_0x1881b8(0x1ae)],_0x1881b8(0x19b)+(_0x307f2e instanceof Error?_0x307f2e[_0x1881b8(0x1aa)]:String(_0x307f2e)));}}catch(_0xeded0e){if(_0xeded0e instanceof SDKError)throw _0xeded0e;if(_0xeded0e instanceof Error&&_0x1881b8(0x1af)in _0xeded0e){const _0x574b0d=_0xeded0e;if(_0x574b0d[_0x1881b8(0x1af)]===_0x1881b8(0x19f))throw new SDKError(ErrorCode[_0x1881b8(0x19a)],_0x1881b8(0x1ad)+_0x1d3664);else{if(_0x574b0d[_0x1881b8(0x1af)]===_0x1881b8(0x1a4))throw new SDKError(ErrorCode[_0x1881b8(0x1a1)],'Permission\x20denied\x20reading\x20file:\x20'+_0x1d3664);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0xeded0e instanceof Error?_0xeded0e[_0x1881b8(0x1aa)]:String(_0xeded0e)));}}export async function loadJSONFromOptions(_0x2e115c,_0xb42380){const _0x343d59=a96_0x37b3;if(_0x2e115c&&_0xb42380)throw new SDKError(ErrorCode[_0x343d59(0x1ae)],_0x343d59(0x1a9));if(_0x2e115c)return await loadJSON(_0x2e115c,![]);if(_0xb42380)return await loadJSON(_0xb42380,!![]);return undefined;}
1
+ (function(_0x46cf02,_0x439b63){const _0x519583=a96_0xe966,_0x1940ef=_0x46cf02();while(!![]){try{const _0x4cfe77=parseInt(_0x519583(0x86))/0x1+-parseInt(_0x519583(0x8e))/0x2+parseInt(_0x519583(0x96))/0x3*(parseInt(_0x519583(0x84))/0x4)+parseInt(_0x519583(0x94))/0x5*(parseInt(_0x519583(0x8b))/0x6)+parseInt(_0x519583(0x8f))/0x7*(parseInt(_0x519583(0x89))/0x8)+parseInt(_0x519583(0x87))/0x9+-parseInt(_0x519583(0x92))/0xa;if(_0x4cfe77===_0x439b63)break;else _0x1940ef['push'](_0x1940ef['shift']());}catch(_0x1945e8){_0x1940ef['push'](_0x1940ef['shift']());}}}(a96_0x36af,0xaee82));function a96_0x36af(){const _0x3c7f15=['9855333bcYVos','\x27:\x20','7067408zolBQt','File\x20not\x20found:\x20','336Gcytlw','INVALID_ARGUMENT','Invalid\x20JSON\x20string:\x20','62180QThAuy','7oAFKpX','PERMISSION_DENIED','Invalid\x20JSON\x20in\x20file\x20\x27','39623490uiYXOy','parse','69180XTCQoV','EACCES','45aNLRGZ','INTERNAL','Permission\x20denied\x20reading\x20file:\x20','utf-8','code','217988KXpAls','message','1139123JNcBBJ'];a96_0x36af=function(){return _0x3c7f15;};return a96_0x36af();}function a96_0xe966(_0x240be3,_0x3664f4){_0x240be3=_0x240be3-0x84;const _0x36afbc=a96_0x36af();let _0xe966c=_0x36afbc[_0x240be3];return _0xe966c;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x114fda,_0x160c0d){const _0x28be4b=a96_0xe966;try{if(_0x160c0d){const _0x57b8ae=await readFile(_0x114fda,_0x28be4b(0x99));try{return JSON[_0x28be4b(0x93)](_0x57b8ae);}catch(_0x2ee245){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x28be4b(0x91)+_0x114fda+_0x28be4b(0x88)+(_0x2ee245 instanceof Error?_0x2ee245['message']:String(_0x2ee245)));}}else try{return JSON[_0x28be4b(0x93)](_0x114fda);}catch(_0x5eda71){throw new SDKError(ErrorCode[_0x28be4b(0x8c)],_0x28be4b(0x8d)+(_0x5eda71 instanceof Error?_0x5eda71[_0x28be4b(0x85)]:String(_0x5eda71)));}}catch(_0xa0f757){if(_0xa0f757 instanceof SDKError)throw _0xa0f757;if(_0xa0f757 instanceof Error&&_0x28be4b(0x9a)in _0xa0f757){const _0x47ce11=_0xa0f757;if(_0x47ce11[_0x28be4b(0x9a)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x28be4b(0x8a)+_0x114fda);else{if(_0x47ce11[_0x28be4b(0x9a)]===_0x28be4b(0x95))throw new SDKError(ErrorCode[_0x28be4b(0x90)],_0x28be4b(0x98)+_0x114fda);}}throw new SDKError(ErrorCode[_0x28be4b(0x97)],'Failed\x20to\x20load\x20JSON:\x20'+(_0xa0f757 instanceof Error?_0xa0f757[_0x28be4b(0x85)]:String(_0xa0f757)));}}export async function loadJSONFromOptions(_0x4b6d17,_0x3f7f9c){const _0x2a50c9=a96_0xe966;if(_0x4b6d17&&_0x3f7f9c)throw new SDKError(ErrorCode[_0x2a50c9(0x8c)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x4b6d17)return await loadJSON(_0x4b6d17,![]);if(_0x3f7f9c)return await loadJSON(_0x3f7f9c,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x1f1336,_0x2281ad){const _0x5912da=a97_0x24c6,_0x2dbf06=_0x1f1336();while(!![]){try{const _0x4dc390=parseInt(_0x5912da(0x8e))/0x1*(parseInt(_0x5912da(0x91))/0x2)+-parseInt(_0x5912da(0x90))/0x3+-parseInt(_0x5912da(0x9c))/0x4+parseInt(_0x5912da(0x9d))/0x5*(-parseInt(_0x5912da(0x9b))/0x6)+parseInt(_0x5912da(0x93))/0x7+parseInt(_0x5912da(0x94))/0x8*(parseInt(_0x5912da(0x99))/0x9)+parseInt(_0x5912da(0x8d))/0xa*(parseInt(_0x5912da(0x92))/0xb);if(_0x4dc390===_0x2281ad)break;else _0x2dbf06['push'](_0x2dbf06['shift']());}catch(_0xbaa0d1){_0x2dbf06['push'](_0x2dbf06['shift']());}}}(a97_0x185d,0x261b7));export function canCreateAgent(_0x3e8bb6,_0x3b010d){const _0x4e8ffb=a97_0x24c6;for(const _0x14b776 of _0x3e8bb6['attributes'][_0x4e8ffb(0x96)]){if(_0x14b776[_0x4e8ffb(0x97)]&&!_0x3b010d['has'](_0x14b776['targetAgentId']))return![];}return!![];}function a97_0x24c6(_0x3ddb1e,_0x49bbb7){_0x3ddb1e=_0x3ddb1e-0x8d;const _0x185d20=a97_0x185d();let _0x24c67a=_0x185d20[_0x3ddb1e];return _0x24c67a;}export function remapToolIds(_0x542c86,_0x50949e,_0x258019){const _0x29412a=a97_0x24c6;return _0x542c86[_0x29412a(0x8f)](_0x36d217=>({..._0x36d217,'targetKnowledgeBaseId':_0x36d217[_0x29412a(0x95)]?_0x50949e[_0x29412a(0x98)](_0x36d217[_0x29412a(0x95)])||_0x36d217[_0x29412a(0x95)]:undefined,'targetAgentId':_0x36d217[_0x29412a(0x97)]?_0x258019[_0x29412a(0x98)](_0x36d217[_0x29412a(0x97)])||_0x36d217[_0x29412a(0x97)]:undefined}));}export function remapVariableIds(_0x2cede5,_0x104356){const _0x24f160=a97_0x24c6;return _0x2cede5[_0x24f160(0x8f)](_0xd90c93=>({..._0xd90c93,'targetKnowledgeBaseId':_0x104356[_0x24f160(0x98)](_0xd90c93[_0x24f160(0x95)])||_0xd90c93[_0x24f160(0x95)]}));}function a97_0x185d(){const _0x37d55a=['11620DPRKqe','671AhgQqd','424809SlQcAw','8EeUmhy','targetKnowledgeBaseId','tools','targetAgentId','get','1932273JIWMTN','1.0','6MyxEpG','723804pnAIWI','131855NryDbx','34010eMNFTX','18kBhxmN','map','672048bFLWjB'];a97_0x185d=function(){return _0x37d55a;};return a97_0x185d();}export function isSupportedBackupVersion(_0x1cb481){const _0x46ce4c=a97_0x24c6;return _0x1cb481===_0x46ce4c(0x9a);}
1
+ (function(_0x63a5b5,_0x2b1cb5){const _0x312180=a97_0xd3e4,_0x1157a2=_0x63a5b5();while(!![]){try{const _0x1719ec=parseInt(_0x312180(0x99))/0x1+parseInt(_0x312180(0xa2))/0x2+parseInt(_0x312180(0x96))/0x3*(-parseInt(_0x312180(0x9c))/0x4)+-parseInt(_0x312180(0x9a))/0x5*(-parseInt(_0x312180(0x97))/0x6)+parseInt(_0x312180(0x9b))/0x7+parseInt(_0x312180(0xa1))/0x8*(parseInt(_0x312180(0xa5))/0x9)+-parseInt(_0x312180(0xa4))/0xa;if(_0x1719ec===_0x2b1cb5)break;else _0x1157a2['push'](_0x1157a2['shift']());}catch(_0x20563a){_0x1157a2['push'](_0x1157a2['shift']());}}}(a97_0x393f,0x69812));export function canCreateAgent(_0x404b8d,_0x455c43){const _0x43be9a=a97_0xd3e4;for(const _0x38e845 of _0x404b8d[_0x43be9a(0x9e)][_0x43be9a(0x95)]){if(_0x38e845[_0x43be9a(0x9f)]&&!_0x455c43[_0x43be9a(0xa0)](_0x38e845[_0x43be9a(0x9f)]))return![];}return!![];}export function remapToolIds(_0x23d1f3,_0x579445,_0x129078){const _0x515086=a97_0xd3e4;return _0x23d1f3['map'](_0x14b6be=>({..._0x14b6be,'targetKnowledgeBaseId':_0x14b6be[_0x515086(0xa3)]?_0x579445['get'](_0x14b6be[_0x515086(0xa3)])||_0x14b6be[_0x515086(0xa3)]:undefined,'targetAgentId':_0x14b6be[_0x515086(0x9f)]?_0x129078['get'](_0x14b6be['targetAgentId'])||_0x14b6be[_0x515086(0x9f)]:undefined}));}function a97_0xd3e4(_0x12b555,_0xe49d2d){_0x12b555=_0x12b555-0x95;const _0x393fa0=a97_0x393f();let _0xd3e46d=_0x393fa0[_0x12b555];return _0xd3e46d;}export function remapVariableIds(_0x2d77fa,_0x4971c1){const _0x576c7d=a97_0xd3e4;return _0x2d77fa['map'](_0x4b9386=>({..._0x4b9386,'targetKnowledgeBaseId':_0x4971c1[_0x576c7d(0x98)](_0x4b9386[_0x576c7d(0xa3)])||_0x4b9386[_0x576c7d(0xa3)]}));}function a97_0x393f(){const _0x1ea9cf=['637911rOqhou','125YtckvY','2970170tLPpGp','24820oncVsh','1.0','attributes','targetAgentId','has','11576vVZnfs','503384uUKdrE','targetKnowledgeBaseId','15415590wsWQQl','3519kVLLWB','tools','111oueLYs','77664qblzvn','get'];a97_0x393f=function(){return _0x1ea9cf;};return a97_0x393f();}export function isSupportedBackupVersion(_0x2ac158){const _0x1f68af=a97_0xd3e4;return _0x2ac158===_0x1f68af(0x9d);}
@@ -1 +1 @@
1
- function a98_0x5c9c(_0x4d9c68,_0x1325a5){_0x4d9c68=_0x4d9c68-0x128;const _0x388a2b=a98_0x388a();let _0x5c9cbd=_0x388a2b[_0x4d9c68];return _0x5c9cbd;}const a98_0x8e2da1=a98_0x5c9c;function a98_0x388a(){const _0x16ce25=['2290PsxUoK','3lSkTCx','toLowerCase','match','3031wczfED','932868OeuTew','29358fekmee','46323znhOPd','5172CDeHEP','2428360fnFUVr','394693CQugMa','claude-4.5-haiku','claude-4.5-sonnet','983555CYJnMB'];a98_0x388a=function(){return _0x16ce25;};return a98_0x388a();}(function(_0xe4db94,_0x4caf0e){const _0x5063ca=a98_0x5c9c,_0x33fd97=_0xe4db94();while(!![]){try{const _0x27d04b=-parseInt(_0x5063ca(0x12b))/0x1+parseInt(_0x5063ca(0x135))/0x2+parseInt(_0x5063ca(0x130))/0x3*(-parseInt(_0x5063ca(0x134))/0x4)+-parseInt(_0x5063ca(0x12e))/0x5+-parseInt(_0x5063ca(0x129))/0x6*(parseInt(_0x5063ca(0x133))/0x7)+parseInt(_0x5063ca(0x12a))/0x8+-parseInt(_0x5063ca(0x128))/0x9*(-parseInt(_0x5063ca(0x12f))/0xa);if(_0x27d04b===_0x4caf0e)break;else _0x33fd97['push'](_0x33fd97['shift']());}catch(_0x1df619){_0x33fd97['push'](_0x33fd97['shift']());}}}(a98_0x388a,0x4900c));const MODEL_ALIASES={'haiku':a98_0x8e2da1(0x12c),'sonnet':a98_0x8e2da1(0x12d)};export function extractModelAlias(_0x44942d){const _0x350157=a98_0x8e2da1,_0x1930d5=_0x44942d[_0x350157(0x132)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x1930d5)return _0x1930d5[0x1][_0x350157(0x131)]();return _0x44942d;}export function resolveModelAlias(_0x164d49){return MODEL_ALIASES[_0x164d49['toLowerCase']()]||_0x164d49;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a98_0x188a4d=a98_0xfaf2;(function(_0x282c6a,_0x207d0c){const _0x3ee773=a98_0xfaf2,_0x1b5151=_0x282c6a();while(!![]){try{const _0x7eaf89=-parseInt(_0x3ee773(0xb8))/0x1+parseInt(_0x3ee773(0xbe))/0x2*(parseInt(_0x3ee773(0xb6))/0x3)+-parseInt(_0x3ee773(0xb7))/0x4+-parseInt(_0x3ee773(0xba))/0x5+-parseInt(_0x3ee773(0xbc))/0x6+parseInt(_0x3ee773(0xb4))/0x7+parseInt(_0x3ee773(0xbb))/0x8;if(_0x7eaf89===_0x207d0c)break;else _0x1b5151['push'](_0x1b5151['shift']());}catch(_0x376474){_0x1b5151['push'](_0x1b5151['shift']());}}}(a98_0x4144,0x6f22f));function a98_0xfaf2(_0x4b3318,_0x5085ad){_0x4b3318=_0x4b3318-0xb3;const _0x41441a=a98_0x4144();let _0xfaf2be=_0x41441a[_0x4b3318];return _0xfaf2be;}const MODEL_ALIASES={'haiku':a98_0x188a4d(0xb5),'sonnet':a98_0x188a4d(0xb9)};export function extractModelAlias(_0x23b9f0){const _0x56c2fa=a98_0x188a4d,_0x2a2b9b=_0x23b9f0[_0x56c2fa(0xbd)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x2a2b9b)return _0x2a2b9b[0x1][_0x56c2fa(0xb3)]();return _0x23b9f0;}export function resolveModelAlias(_0x32f0ac){const _0x1d6195=a98_0x188a4d;return MODEL_ALIASES[_0x32f0ac[_0x1d6195(0xb3)]()]||_0x32f0ac;}export function getModelAliases(){return{...MODEL_ALIASES};}function a98_0x4144(){const _0x2d2dc2=['match','116066fBHfbC','toLowerCase','430325nwiFLe','claude-4.5-haiku','33DahmlG','1618036bUioBS','893909EfEJtx','claude-4.5-sonnet','3211890qvzdjy','16366904oObLeF','2098140lZUEaR'];a98_0x4144=function(){return _0x2d2dc2;};return a98_0x4144();}