orcaq 1.0.33 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1379) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/63YtjFEq.js +1 -0
  3. package/.output/public/_nuxt/8tyEaimf.js +30 -0
  4. package/.output/public/_nuxt/AymhMj9v.js +1 -0
  5. package/.output/public/_nuxt/B2IKcIj2.js +1 -0
  6. package/.output/public/_nuxt/B46blMXm.js +7 -0
  7. package/.output/public/_nuxt/B5WGo5x7.js +1 -0
  8. package/.output/public/_nuxt/B6MkNyZd.js +132 -0
  9. package/.output/public/_nuxt/B73IHAoF.js +1 -0
  10. package/.output/public/_nuxt/B8TrrBEb.js +189 -0
  11. package/.output/public/_nuxt/B9uki8o2.js +1 -0
  12. package/.output/public/_nuxt/BEyCol50.js +1 -0
  13. package/.output/public/_nuxt/BJCrbji-.js +24 -0
  14. package/.output/public/_nuxt/BJVPtt2X.js +24 -0
  15. package/.output/public/_nuxt/BL__uYa3.js +1 -0
  16. package/.output/public/_nuxt/BPACuoI0.js +1 -0
  17. package/.output/public/_nuxt/BRFPdiIh.js +1 -0
  18. package/.output/public/_nuxt/BS-LtKx4.js +1 -0
  19. package/.output/public/_nuxt/BTYBVtfa.js +70 -0
  20. package/.output/public/_nuxt/BTheloyh.js +1 -0
  21. package/.output/public/_nuxt/BVUHbgGW.js +27 -0
  22. package/.output/public/_nuxt/BWZ7atse.js +1 -0
  23. package/.output/public/_nuxt/BWebIWit.js +39 -0
  24. package/.output/public/_nuxt/BcsKoAPU.js +984 -0
  25. package/.output/public/_nuxt/Bf6Q3Zl5.js +89 -0
  26. package/.output/public/_nuxt/Bj7ctTfH.js +1 -0
  27. package/.output/public/_nuxt/BjqbQLK3.js +1 -0
  28. package/.output/public/_nuxt/Bmgr9uz4.js +36 -0
  29. package/.output/public/_nuxt/Bmx1kTaZ.js +139 -0
  30. package/.output/public/_nuxt/BoIj4dtd.js +1 -0
  31. package/.output/public/_nuxt/BoMjapT5.js +220 -0
  32. package/.output/public/_nuxt/BogEzQi9.js +12 -0
  33. package/.output/public/_nuxt/BpLDGvqy.js +1 -0
  34. package/.output/public/_nuxt/BpUSbMUb.js +1 -0
  35. package/.output/public/_nuxt/BpvGVfME.js +1 -0
  36. package/.output/public/_nuxt/Bq47tjcm.js +1 -0
  37. package/.output/public/_nuxt/Bq7OeLM1.js +1 -0
  38. package/.output/public/_nuxt/BqU89KuH.js +2 -0
  39. package/.output/public/_nuxt/BrNfge84.js +34 -0
  40. package/.output/public/_nuxt/BtyzMl9p.js +1 -0
  41. package/.output/public/_nuxt/ByiJDSw8.js +68 -0
  42. package/.output/public/_nuxt/ByibjLZn.js +43 -0
  43. package/.output/public/_nuxt/BzvSm28k.js +67 -0
  44. package/.output/public/_nuxt/C2XHqDOf.js +1 -0
  45. package/.output/public/_nuxt/C3ZBsVV_.js +2 -0
  46. package/.output/public/_nuxt/C6dIAdHr.js +1 -0
  47. package/.output/public/_nuxt/C7BQpy74.js +1 -0
  48. package/.output/public/_nuxt/CAnr3OhD.js +1 -0
  49. package/.output/public/_nuxt/CDJKw_ak.js +1 -0
  50. package/.output/public/_nuxt/CHEpbbGc.js +1 -0
  51. package/.output/public/_nuxt/CMkzSwnO.js +61 -0
  52. package/.output/public/_nuxt/COAycMg4.js +1 -0
  53. package/.output/public/_nuxt/COHOh4Oe.js +1 -0
  54. package/.output/public/_nuxt/COq7mAG7.js +10 -0
  55. package/.output/public/_nuxt/CS5akSNT.js +1 -0
  56. package/.output/public/_nuxt/CS9hqyP3.js +1 -0
  57. package/.output/public/_nuxt/CSQ0xnqv.js +6 -0
  58. package/.output/public/_nuxt/C_7gtl40.js +1 -0
  59. package/.output/public/_nuxt/Ca0KO9Xq.js +9 -0
  60. package/.output/public/_nuxt/CerLmMsC.js +22 -0
  61. package/.output/public/_nuxt/Ci5B19-c.js +15 -0
  62. package/.output/public/_nuxt/Cnfx1zWl.js +10 -0
  63. package/.output/public/_nuxt/Cq-MDPLE.js +53 -0
  64. package/.output/public/_nuxt/CrNLwdoE.js +145 -0
  65. package/.output/public/_nuxt/CsRSZpa6.js +15 -0
  66. package/.output/public/_nuxt/CtWq1MER.js +7 -0
  67. package/.output/public/_nuxt/Cww9dXBK.js +1 -0
  68. package/.output/public/_nuxt/CycELG5y.js +65 -0
  69. package/.output/public/_nuxt/CzB2y8br.js +18 -0
  70. package/.output/public/_nuxt/D-9vaM6z.js +4 -0
  71. package/.output/public/_nuxt/D4pAW_0T.js +152 -0
  72. package/.output/public/_nuxt/DAr5YiBT.js +1 -0
  73. package/.output/public/_nuxt/DDebxXP-.js +1 -0
  74. package/.output/public/_nuxt/DEZMnZ2r.js +292 -0
  75. package/.output/public/_nuxt/DGvAu532.js +1 -0
  76. package/.output/public/_nuxt/DHAL8jJG.js +255 -0
  77. package/.output/public/_nuxt/DJH-4SVI.js +1 -0
  78. package/.output/public/_nuxt/DMmjWR_K.js +10 -0
  79. package/.output/public/_nuxt/DNB4Xmyo.js +37 -0
  80. package/.output/public/_nuxt/DNoTlUiY.js +7 -0
  81. package/.output/public/_nuxt/DPIEiNwW.js +1 -0
  82. package/.output/public/_nuxt/DSaBCmOg.js +162 -0
  83. package/.output/public/_nuxt/DVnDb6ua.js +1 -0
  84. package/.output/public/_nuxt/DWqOZJe7.js +1 -0
  85. package/.output/public/_nuxt/DcCF9IZB.js +1 -0
  86. package/.output/public/_nuxt/DfNTLojg.js +1 -0
  87. package/.output/public/_nuxt/DkD29_YA.js +73 -0
  88. package/.output/public/_nuxt/DpEV6S2O.js +1 -0
  89. package/.output/public/_nuxt/DpT8FO1Q.js +70 -0
  90. package/.output/public/_nuxt/Dq1JM9WZ.js +1 -0
  91. package/.output/public/_nuxt/DsmBazLf.js +20 -0
  92. package/.output/public/_nuxt/DuCDilAk.js +1 -0
  93. package/.output/public/_nuxt/FDw04QOj.js +2 -0
  94. package/.output/public/_nuxt/JOg_XIAv.js +1 -0
  95. package/.output/public/_nuxt/L2I3LmpB.js +68 -0
  96. package/.output/public/_nuxt/M6bBaUHa.js +1 -0
  97. package/.output/public/_nuxt/MW5K_zef.js +1 -0
  98. package/.output/public/_nuxt/MeLWmO7R.js +162 -0
  99. package/.output/public/_nuxt/Oe2GG0Lt.js +9 -0
  100. package/.output/public/_nuxt/S1qa1a4x.js +1 -0
  101. package/.output/public/_nuxt/Sf02B6Pt.js +3 -0
  102. package/.output/public/_nuxt/Y1gXUmjt.js +1 -0
  103. package/.output/public/_nuxt/_qKPTuua.js +1 -0
  104. package/.output/public/_nuxt/atdCACH-.js +1 -0
  105. package/.output/public/_nuxt/builds/latest.json +1 -1
  106. package/.output/public/_nuxt/builds/meta/7c171291-8bbd-4c4c-8904-0afae065b82e.json +1 -0
  107. package/.output/public/_nuxt/dNPwafbq.js +1 -0
  108. package/.output/public/_nuxt/dWu56FdP.js +3867 -0
  109. package/.output/public/_nuxt/default.B0xlD4Sl.css +1 -0
  110. package/.output/public/_nuxt/entry.DxCQuGXb.css +1 -0
  111. package/.output/public/_nuxt/iNy-Nl0_.js +1 -0
  112. package/.output/public/_nuxt/ioXB9E2w.js +1 -0
  113. package/.output/public/_nuxt/kvtnkChG.js +1 -0
  114. package/.output/public/_nuxt/qzrMNYut.js +1 -0
  115. package/.output/public/_nuxt/sk7V7xQl.js +1 -0
  116. package/.output/public/_nuxt/vhkvHdfO.js +1 -0
  117. package/.output/public/_nuxt/wRAs0MDn.js +2 -0
  118. package/.output/public/_nuxt/xOD4Ev56.js +1 -0
  119. package/.output/public/_nuxt/xp7rFxcm.js +1 -0
  120. package/.output/server/chunks/_/create-adapter.mjs +38 -7
  121. package/.output/server/chunks/_/create-adapter.mjs.map +1 -1
  122. package/.output/server/chunks/_/database-error.mjs +10 -0
  123. package/.output/server/chunks/_/database-error.mjs.map +1 -1
  124. package/.output/server/chunks/_/database-roles.factory.mjs +126 -22
  125. package/.output/server/chunks/_/database-roles.factory.mjs.map +1 -1
  126. package/.output/server/chunks/_/db-connection.mjs +1202 -81
  127. package/.output/server/chunks/_/db-connection.mjs.map +1 -1
  128. package/.output/server/chunks/_/functions.factory.mjs +97 -6
  129. package/.output/server/chunks/_/functions.factory.mjs.map +1 -1
  130. package/.output/server/chunks/_/instance-insights.factory.mjs +2130 -8
  131. package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -1
  132. package/.output/server/chunks/_/metadata.factory.mjs +1192 -43
  133. package/.output/server/chunks/_/metadata.factory.mjs.map +1 -1
  134. package/.output/server/chunks/_/native-backup-jobs.mjs +1302 -0
  135. package/.output/server/chunks/_/native-backup-jobs.mjs.map +1 -0
  136. package/.output/server/chunks/_/query.factory.mjs +536 -14
  137. package/.output/server/chunks/_/query.factory.mjs.map +1 -1
  138. package/.output/server/chunks/_/redis-browser.service.mjs +513 -0
  139. package/.output/server/chunks/_/redis-browser.service.mjs.map +1 -0
  140. package/.output/server/chunks/_/redis-instance-insights.service.mjs +442 -0
  141. package/.output/server/chunks/_/redis-instance-insights.service.mjs.map +1 -0
  142. package/.output/server/chunks/_/redis-pubsub.service.mjs +227 -0
  143. package/.output/server/chunks/_/redis-pubsub.service.mjs.map +1 -0
  144. package/.output/server/chunks/_/redis.client.mjs +129 -0
  145. package/.output/server/chunks/_/redis.client.mjs.map +1 -0
  146. package/.output/server/chunks/_/schemaMeta.type.mjs +13 -0
  147. package/.output/server/chunks/_/schemaMeta.type.mjs.map +1 -0
  148. package/.output/server/chunks/_/tables.factory.mjs +917 -37
  149. package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
  150. package/.output/server/chunks/_/type-alias.constants.mjs +242 -0
  151. package/.output/server/chunks/_/type-alias.constants.mjs.map +1 -0
  152. package/.output/server/chunks/_/views.factory.mjs +106 -8
  153. package/.output/server/chunks/_/views.factory.mjs.map +1 -1
  154. package/.output/server/chunks/build/client.manifest.mjs +776 -659
  155. package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
  156. package/.output/server/chunks/nitro/nitro.mjs +1152 -749
  157. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  158. package/.output/server/chunks/routes/api/ai/agent.mjs +33 -79
  159. package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -1
  160. package/.output/server/chunks/routes/api/database-export/export-database.mjs +29 -124
  161. package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
  162. package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs +55 -0
  163. package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs.map +1 -0
  164. package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs +46 -0
  165. package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs.map +1 -0
  166. package/.output/server/chunks/routes/api/database-import/import-database.mjs +72 -134
  167. package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
  168. package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs +46 -0
  169. package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs.map +1 -0
  170. package/.output/server/chunks/routes/api/database-roles/create-role.mjs +5 -0
  171. package/.output/server/chunks/routes/api/database-roles/create-role.mjs.map +1 -1
  172. package/.output/server/chunks/routes/api/database-roles/delete-role.mjs +5 -0
  173. package/.output/server/chunks/routes/api/database-roles/delete-role.mjs.map +1 -1
  174. package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs +5 -0
  175. package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs.map +1 -1
  176. package/.output/server/chunks/routes/api/database-roles/get-databases.mjs +5 -0
  177. package/.output/server/chunks/routes/api/database-roles/get-databases.mjs.map +1 -1
  178. package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs +5 -0
  179. package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs.map +1 -1
  180. package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs +5 -0
  181. package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs.map +1 -1
  182. package/.output/server/chunks/routes/api/database-roles/get-role.mjs +5 -0
  183. package/.output/server/chunks/routes/api/database-roles/get-role.mjs.map +1 -1
  184. package/.output/server/chunks/routes/api/database-roles/get-roles.mjs +5 -0
  185. package/.output/server/chunks/routes/api/database-roles/get-roles.mjs.map +1 -1
  186. package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs +5 -0
  187. package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs.map +1 -1
  188. package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs +5 -0
  189. package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs.map +1 -1
  190. package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs +5 -0
  191. package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs.map +1 -1
  192. package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs +5 -0
  193. package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs.map +1 -1
  194. package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs +5 -0
  195. package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -1
  196. package/.output/server/chunks/routes/api/functions/definition.post.mjs +6 -1
  197. package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -1
  198. package/.output/server/chunks/routes/api/functions/delete.post.mjs +6 -1
  199. package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -1
  200. package/.output/server/chunks/routes/api/functions/overview.post.mjs +6 -1
  201. package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -1
  202. package/.output/server/chunks/routes/api/functions/rename.post.mjs +6 -1
  203. package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -1
  204. package/.output/server/chunks/routes/api/functions/signature.post.mjs +6 -1
  205. package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -1
  206. package/.output/server/chunks/routes/api/functions/update.post.mjs +27 -6
  207. package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -1
  208. package/.output/server/chunks/routes/api/index.post.mjs +66 -0
  209. package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
  210. package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs +6 -1
  211. package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs.map +1 -1
  212. package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs +6 -1
  213. package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs.map +1 -1
  214. package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs +6 -1
  215. package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs.map +1 -1
  216. package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs +6 -1
  217. package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs.map +1 -1
  218. package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs +6 -1
  219. package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs.map +1 -1
  220. package/.output/server/chunks/routes/api/instance-insights/state.post.mjs +6 -1
  221. package/.output/server/chunks/routes/api/instance-insights/state.post.mjs.map +1 -1
  222. package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs +6 -1
  223. package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs.map +1 -1
  224. package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs +6 -1
  225. package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -1
  226. package/.output/server/chunks/routes/api/instance-insights/view.post.mjs +66 -0
  227. package/.output/server/chunks/routes/api/instance-insights/view.post.mjs.map +1 -0
  228. package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +16 -4
  229. package/.output/server/chunks/routes/api/managment-connection/health-check.mjs.map +1 -1
  230. package/.output/server/chunks/routes/api/metadata/erd.post.mjs +10 -1
  231. package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -1
  232. package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +9 -0
  233. package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs.map +1 -1
  234. package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs +10 -1
  235. package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -1
  236. package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +83 -7
  237. package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -1
  238. package/.output/server/chunks/routes/api/query/execute.post.mjs +8 -1
  239. package/.output/server/chunks/routes/api/query/execute.post.mjs.map +1 -1
  240. package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs +17 -3
  241. package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs.map +1 -1
  242. package/.output/server/chunks/routes/api/query/raw-execute.post.mjs +10 -1
  243. package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -1
  244. package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs +25 -0
  245. package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs.map +1 -0
  246. package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs +39 -0
  247. package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs.map +1 -0
  248. package/.output/server/chunks/routes/api/redis/browser/value.post.mjs +25 -0
  249. package/.output/server/chunks/routes/api/redis/browser/value.post.mjs.map +1 -0
  250. package/.output/server/chunks/routes/api/redis/index.post.mjs +37 -0
  251. package/.output/server/chunks/routes/api/redis/index.post.mjs.map +1 -0
  252. package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs +38 -0
  253. package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs.map +1 -0
  254. package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs +35 -0
  255. package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs.map +1 -0
  256. package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs +24 -0
  257. package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs.map +1 -0
  258. package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs +38 -0
  259. package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs.map +1 -0
  260. package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs +39 -0
  261. package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs.map +1 -0
  262. package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs +39 -0
  263. package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs.map +1 -0
  264. package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs +24 -0
  265. package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs.map +1 -0
  266. package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs +60 -0
  267. package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs.map +1 -0
  268. package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +12 -6
  269. package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs.map +1 -1
  270. package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs +12 -6
  271. package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -1
  272. package/.output/server/chunks/routes/api/tables/ddl.post.mjs +7 -2
  273. package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -1
  274. package/.output/server/chunks/routes/api/tables/export.post.mjs +8 -3
  275. package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -1
  276. package/.output/server/chunks/routes/api/tables/indexes.post.mjs +7 -2
  277. package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -1
  278. package/.output/server/chunks/routes/api/tables/meta.post.mjs +10 -3
  279. package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -1
  280. package/.output/server/chunks/routes/api/tables/overview.post.mjs +7 -2
  281. package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -1
  282. package/.output/server/chunks/routes/api/tables/rls.post.mjs +7 -2
  283. package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -1
  284. package/.output/server/chunks/routes/api/tables/rules.post.mjs +7 -2
  285. package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -1
  286. package/.output/server/chunks/routes/api/tables/size.post.mjs +7 -2
  287. package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -1
  288. package/.output/server/chunks/routes/api/tables/structure.post.mjs +7 -2
  289. package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -1
  290. package/.output/server/chunks/routes/api/tables/triggers.post.mjs +7 -2
  291. package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -1
  292. package/.output/server/chunks/routes/api/views/definition.post.mjs +5 -0
  293. package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -1
  294. package/.output/server/chunks/routes/api/views/dependencies.post.mjs +5 -0
  295. package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -1
  296. package/.output/server/chunks/routes/api/views/explain.post.mjs +5 -0
  297. package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -1
  298. package/.output/server/chunks/routes/api/views/indexes.post.mjs +5 -0
  299. package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -1
  300. package/.output/server/chunks/routes/api/views/meta.post.mjs +5 -0
  301. package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -1
  302. package/.output/server/chunks/routes/api/views/overview.post.mjs +5 -0
  303. package/.output/server/chunks/routes/api/views/overview.post.mjs.map +1 -1
  304. package/.output/server/chunks/routes/renderer.mjs +1 -1
  305. package/.output/server/index.mjs +1 -1
  306. package/.output/server/node_modules/@libsql/client/lib-esm/hrana.js +310 -0
  307. package/.output/server/node_modules/@libsql/client/lib-esm/http.js +230 -0
  308. package/.output/server/node_modules/@libsql/client/lib-esm/sql_cache.js +87 -0
  309. package/.output/server/node_modules/@libsql/client/package.json +123 -0
  310. package/.output/server/node_modules/@libsql/core/lib-esm/api.js +16 -0
  311. package/.output/server/node_modules/@libsql/core/lib-esm/config.js +136 -0
  312. package/.output/server/node_modules/@libsql/core/lib-esm/uri.js +120 -0
  313. package/.output/server/node_modules/@libsql/core/lib-esm/util.js +55 -0
  314. package/.output/server/node_modules/@libsql/core/package.json +91 -0
  315. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/batch.js +271 -0
  316. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/byte_queue.js +45 -0
  317. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/client.js +13 -0
  318. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/cursor.js +2 -0
  319. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/describe.js +8 -0
  320. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/index.js +4 -0
  321. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/decode.js +59 -0
  322. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/encode.js +72 -0
  323. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/decode.js +150 -0
  324. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/encode.js +95 -0
  325. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/util.js +6 -0
  326. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/errors.js +102 -0
  327. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/client.js +124 -0
  328. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/cursor.js +135 -0
  329. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_decode.js +62 -0
  330. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_encode.js +55 -0
  331. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js +44 -0
  332. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_encode.js +78 -0
  333. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/stream.js +363 -0
  334. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/id_alloc.js +47 -0
  335. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/index.js +42 -0
  336. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/libsql_url.js +75 -0
  337. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue.js +26 -0
  338. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue_microtask.js +13 -0
  339. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/result.js +48 -0
  340. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_decode.js +106 -0
  341. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_encode.js +71 -0
  342. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js +115 -0
  343. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_encode.js +85 -0
  344. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/sql.js +46 -0
  345. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stmt.js +76 -0
  346. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stream.js +57 -0
  347. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/util.js +4 -0
  348. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/value.js +83 -0
  349. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/client.js +318 -0
  350. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/cursor.js +80 -0
  351. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_decode.js +74 -0
  352. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_encode.js +77 -0
  353. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_decode.js +60 -0
  354. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_encode.js +115 -0
  355. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/stream.js +211 -0
  356. package/.output/server/node_modules/@libsql/hrana-client/package.json +60 -0
  357. package/.output/server/node_modules/@libsql/isomorphic-fetch/node.js +6 -0
  358. package/.output/server/node_modules/@libsql/isomorphic-fetch/package.json +51 -0
  359. package/.output/server/node_modules/@libsql/isomorphic-ws/node.mjs +2 -0
  360. package/.output/server/node_modules/@libsql/isomorphic-ws/package.json +53 -0
  361. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/ADD.js +19 -0
  362. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/CARD.js +16 -0
  363. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/EXISTS.js +19 -0
  364. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INFO.js +22 -0
  365. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INSERT.js +41 -0
  366. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/LOADCHUNK.js +19 -0
  367. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MADD.js +19 -0
  368. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MEXISTS.js +19 -0
  369. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/RESERVE.js +28 -0
  370. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/SCANDUMP.js +23 -0
  371. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/helpers.js +28 -0
  372. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/index.js +53 -0
  373. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INCRBY.js +28 -0
  374. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INFO.js +22 -0
  375. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYDIM.js +19 -0
  376. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYPROB.js +19 -0
  377. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/MERGE.js +33 -0
  378. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/QUERY.js +18 -0
  379. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/index.js +26 -0
  380. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADD.js +19 -0
  381. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADDNX.js +19 -0
  382. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/COUNT.js +18 -0
  383. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/DEL.js +19 -0
  384. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/EXISTS.js +19 -0
  385. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INFO.js +22 -0
  386. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERT.js +34 -0
  387. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERTNX.js +44 -0
  388. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/LOADCHUNK.js +19 -0
  389. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/RESERVE.js +31 -0
  390. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/SCANDUMP.js +23 -0
  391. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/index.js +41 -0
  392. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/index.js +18 -0
  393. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/ADD.js +20 -0
  394. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYRANK.js +26 -0
  395. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYREVRANK.js +41 -0
  396. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CDF.js +21 -0
  397. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CREATE.js +21 -0
  398. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/INFO.js +22 -0
  399. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MAX.js +17 -0
  400. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MERGE.js +27 -0
  401. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MIN.js +17 -0
  402. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/QUANTILE.js +21 -0
  403. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RANK.js +25 -0
  404. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RESET.js +16 -0
  405. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/REVRANK.js +41 -0
  406. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/TRIMMED_MEAN.js +20 -0
  407. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/index.js +50 -0
  408. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/ADD.js +18 -0
  409. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/COUNT.js +18 -0
  410. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INCRBY.js +28 -0
  411. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INFO.js +24 -0
  412. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST.js +16 -0
  413. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST_WITHCOUNT.js +26 -0
  414. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/QUERY.js +19 -0
  415. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/RESERVE.js +25 -0
  416. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/index.js +32 -0
  417. package/.output/server/node_modules/@redis/bloom/dist/lib/index.js +9 -0
  418. package/.output/server/node_modules/@redis/bloom/package.json +36 -0
  419. package/.output/server/node_modules/@redis/client/dist/index.js +53 -0
  420. package/.output/server/node_modules/@redis/client/dist/lib/RESP/decoder.js +727 -0
  421. package/.output/server/node_modules/@redis/client/dist/lib/RESP/encoder.js +24 -0
  422. package/.output/server/node_modules/@redis/client/dist/lib/RESP/verbatim-string.js +12 -0
  423. package/.output/server/node_modules/@redis/client/dist/lib/authx/credentials-provider.js +26 -0
  424. package/.output/server/node_modules/@redis/client/dist/lib/authx/index.js +12 -0
  425. package/.output/server/node_modules/@redis/client/dist/lib/authx/token-manager.js +184 -0
  426. package/.output/server/node_modules/@redis/client/dist/lib/authx/token.js +32 -0
  427. package/.output/server/node_modules/@redis/client/dist/lib/client/cache.js +634 -0
  428. package/.output/server/node_modules/@redis/client/dist/lib/client/commands-queue.js +497 -0
  429. package/.output/server/node_modules/@redis/client/dist/lib/client/enterprise-maintenance-manager.js +387 -0
  430. package/.output/server/node_modules/@redis/client/dist/lib/client/identity.js +65 -0
  431. package/.output/server/node_modules/@redis/client/dist/lib/client/index.js +1118 -0
  432. package/.output/server/node_modules/@redis/client/dist/lib/client/legacy-mode.js +119 -0
  433. package/.output/server/node_modules/@redis/client/dist/lib/client/linked-list.js +212 -0
  434. package/.output/server/node_modules/@redis/client/dist/lib/client/multi-command.js +118 -0
  435. package/.output/server/node_modules/@redis/client/dist/lib/client/parser.js +83 -0
  436. package/.output/server/node_modules/@redis/client/dist/lib/client/pool.js +373 -0
  437. package/.output/server/node_modules/@redis/client/dist/lib/client/pub-sub.js +351 -0
  438. package/.output/server/node_modules/@redis/client/dist/lib/client/socket.js +336 -0
  439. package/.output/server/node_modules/@redis/client/dist/lib/client/tracing.js +122 -0
  440. package/.output/server/node_modules/@redis/client/dist/lib/cluster/cluster-slots.js +657 -0
  441. package/.output/server/node_modules/@redis/client/dist/lib/cluster/index.js +425 -0
  442. package/.output/server/node_modules/@redis/client/dist/lib/cluster/multi-command.js +124 -0
  443. package/.output/server/node_modules/@redis/client/dist/lib/commander.js +91 -0
  444. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_CAT.js +19 -0
  445. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DELUSER.js +17 -0
  446. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DRYRUN.js +17 -0
  447. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GENPASS.js +19 -0
  448. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GETUSER.js +33 -0
  449. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LIST.js +15 -0
  450. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOAD.js +15 -0
  451. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG.js +39 -0
  452. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG_RESET.js +19 -0
  453. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SAVE.js +15 -0
  454. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SETUSER.js +18 -0
  455. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_USERS.js +15 -0
  456. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_WHOAMI.js +15 -0
  457. package/.output/server/node_modules/@redis/client/dist/lib/commands/APPEND.js +16 -0
  458. package/.output/server/node_modules/@redis/client/dist/lib/commands/ASKING.js +17 -0
  459. package/.output/server/node_modules/@redis/client/dist/lib/commands/AUTH.js +22 -0
  460. package/.output/server/node_modules/@redis/client/dist/lib/commands/BGREWRITEAOF.js +15 -0
  461. package/.output/server/node_modules/@redis/client/dist/lib/commands/BGSAVE.js +20 -0
  462. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITCOUNT.js +28 -0
  463. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD.js +33 -0
  464. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD_RO.js +23 -0
  465. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITOP.js +19 -0
  466. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITPOS.js +31 -0
  467. package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMOVE.js +21 -0
  468. package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMPOP.js +41 -0
  469. package/.output/server/node_modules/@redis/client/dist/lib/commands/BLPOP.js +25 -0
  470. package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOP.js +22 -0
  471. package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOPLPUSH.js +19 -0
  472. package/.output/server/node_modules/@redis/client/dist/lib/commands/BZMPOP.js +41 -0
  473. package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMAX.js +34 -0
  474. package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMIN.js +22 -0
  475. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_CACHING.js +16 -0
  476. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETNAME.js +15 -0
  477. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETREDIR.js +15 -0
  478. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_ID.js +15 -0
  479. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_INFO.js +62 -0
  480. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_KILL.js +66 -0
  481. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_LIST.js +35 -0
  482. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-EVICT.js +16 -0
  483. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-TOUCH.js +16 -0
  484. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_PAUSE.js +20 -0
  485. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_SETNAME.js +16 -0
  486. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKING.js +53 -0
  487. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKINGINFO.js +22 -0
  488. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_UNPAUSE.js +15 -0
  489. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTS.js +17 -0
  490. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTSRANGE.js +18 -0
  491. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_BUMPEPOCH.js +15 -0
  492. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNT-FAILURE-REPORTS.js +16 -0
  493. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNTKEYSINSLOT.js +16 -0
  494. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTS.js +17 -0
  495. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTSRANGE.js +18 -0
  496. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FAILOVER.js +24 -0
  497. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FLUSHSLOTS.js +15 -0
  498. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FORGET.js +16 -0
  499. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_GETKEYSINSLOT.js +17 -0
  500. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_INFO.js +15 -0
  501. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_KEYSLOT.js +16 -0
  502. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_LINKS.js +28 -0
  503. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MEET.js +17 -0
  504. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYID.js +15 -0
  505. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYSHARDID.js +15 -0
  506. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_NODES.js +15 -0
  507. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICAS.js +16 -0
  508. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICATE.js +16 -0
  509. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_RESET.js +19 -0
  510. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SAVECONFIG.js +15 -0
  511. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SET-CONFIG-EPOCH.js +16 -0
  512. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SETSLOT.js +28 -0
  513. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SLOTS.js +30 -0
  514. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND.js +19 -0
  515. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_COUNT.js +15 -0
  516. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYS.js +17 -0
  517. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYSANDFLAGS.js +25 -0
  518. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_INFO.js +20 -0
  519. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_LIST.js +25 -0
  520. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_GET.js +21 -0
  521. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_RESETSTAT.js +15 -0
  522. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_REWRITE.js +15 -0
  523. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_SET.js +25 -0
  524. package/.output/server/node_modules/@redis/client/dist/lib/commands/COPY.js +24 -0
  525. package/.output/server/node_modules/@redis/client/dist/lib/commands/DBSIZE.js +15 -0
  526. package/.output/server/node_modules/@redis/client/dist/lib/commands/DECR.js +15 -0
  527. package/.output/server/node_modules/@redis/client/dist/lib/commands/DECRBY.js +17 -0
  528. package/.output/server/node_modules/@redis/client/dist/lib/commands/DEL.js +16 -0
  529. package/.output/server/node_modules/@redis/client/dist/lib/commands/DELEX.js +43 -0
  530. package/.output/server/node_modules/@redis/client/dist/lib/commands/DIGEST.js +20 -0
  531. package/.output/server/node_modules/@redis/client/dist/lib/commands/DUMP.js +16 -0
  532. package/.output/server/node_modules/@redis/client/dist/lib/commands/ECHO.js +16 -0
  533. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL.js +31 -0
  534. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA.js +41 -0
  535. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA_RO.js +41 -0
  536. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL_RO.js +41 -0
  537. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXISTS.js +17 -0
  538. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRE.js +21 -0
  539. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIREAT.js +22 -0
  540. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRETIME.js +16 -0
  541. package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL.js +41 -0
  542. package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL_RO.js +41 -0
  543. package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHALL.js +24 -0
  544. package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHDB.js +19 -0
  545. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DELETE.js +16 -0
  546. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DUMP.js +15 -0
  547. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_FLUSH.js +19 -0
  548. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_KILL.js +15 -0
  549. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST.js +38 -0
  550. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST_WITHCODE.js +41 -0
  551. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LOAD.js +21 -0
  552. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_RESTORE.js +20 -0
  553. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_STATS.js +47 -0
  554. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOADD.js +41 -0
  555. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEODIST.js +26 -0
  556. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOHASH.js +19 -0
  557. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOPOS.js +27 -0
  558. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS.js +28 -0
  559. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER.js +28 -0
  560. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO.js +46 -0
  561. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO_WITH.js +46 -0
  562. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_STORE.js +53 -0
  563. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_WITH.js +36 -0
  564. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO.js +45 -0
  565. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO_WITH.js +27 -0
  566. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_STORE.js +53 -0
  567. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_WITH.js +56 -0
  568. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH.js +54 -0
  569. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCHSTORE.js +27 -0
  570. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH_WITH.js +55 -0
  571. package/.output/server/node_modules/@redis/client/dist/lib/commands/GET.js +17 -0
  572. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETBIT.js +19 -0
  573. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETDEL.js +16 -0
  574. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETEX.js +50 -0
  575. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETRANGE.js +20 -0
  576. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETSET.js +18 -0
  577. package/.output/server/node_modules/@redis/client/dist/lib/commands/HDEL.js +17 -0
  578. package/.output/server/node_modules/@redis/client/dist/lib/commands/HELLO.js +35 -0
  579. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXISTS.js +19 -0
  580. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRE.js +35 -0
  581. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIREAT.js +25 -0
  582. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRETIME.js +26 -0
  583. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGET.js +19 -0
  584. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETALL.js +22 -0
  585. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETDEL.js +18 -0
  586. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETEX.js +30 -0
  587. package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBY.js +18 -0
  588. package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBYFLOAT.js +18 -0
  589. package/.output/server/node_modules/@redis/client/dist/lib/commands/HKEYS.js +17 -0
  590. package/.output/server/node_modules/@redis/client/dist/lib/commands/HLEN.js +17 -0
  591. package/.output/server/node_modules/@redis/client/dist/lib/commands/HMGET.js +19 -0
  592. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_GET.js +131 -0
  593. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_RESET.js +25 -0
  594. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_START.js +60 -0
  595. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_STOP.js +27 -0
  596. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPERSIST.js +18 -0
  597. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRE.js +25 -0
  598. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIREAT.js +27 -0
  599. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRETIME.js +21 -0
  600. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPTTL.js +21 -0
  601. package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD.js +18 -0
  602. package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT.js +20 -0
  603. package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT_WITHVALUES.js +41 -0
  604. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN.js +35 -0
  605. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN_NOVALUES.js +27 -0
  606. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSET.js +55 -0
  607. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETEX.js +81 -0
  608. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETNX.js +21 -0
  609. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSTRLEN.js +21 -0
  610. package/.output/server/node_modules/@redis/client/dist/lib/commands/HTTL.js +19 -0
  611. package/.output/server/node_modules/@redis/client/dist/lib/commands/HVALS.js +17 -0
  612. package/.output/server/node_modules/@redis/client/dist/lib/commands/INCR.js +17 -0
  613. package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBY.js +19 -0
  614. package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBYFLOAT.js +19 -0
  615. package/.output/server/node_modules/@redis/client/dist/lib/commands/INFO.js +21 -0
  616. package/.output/server/node_modules/@redis/client/dist/lib/commands/KEYS.js +18 -0
  617. package/.output/server/node_modules/@redis/client/dist/lib/commands/LASTSAVE.js +17 -0
  618. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_DOCTOR.js +17 -0
  619. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_GRAPH.js +37 -0
  620. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTOGRAM.js +39 -0
  621. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTORY.js +18 -0
  622. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_LATEST.js +17 -0
  623. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_RESET.js +24 -0
  624. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS.js +19 -0
  625. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX.js +33 -0
  626. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX_WITHMATCHLEN.js +28 -0
  627. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_LEN.js +22 -0
  628. package/.output/server/node_modules/@redis/client/dist/lib/commands/LINDEX.js +21 -0
  629. package/.output/server/node_modules/@redis/client/dist/lib/commands/LINSERT.js +22 -0
  630. package/.output/server/node_modules/@redis/client/dist/lib/commands/LLEN.js +19 -0
  631. package/.output/server/node_modules/@redis/client/dist/lib/commands/LMOVE.js +22 -0
  632. package/.output/server/node_modules/@redis/client/dist/lib/commands/LMPOP.js +27 -0
  633. package/.output/server/node_modules/@redis/client/dist/lib/commands/LOLWUT.js +23 -0
  634. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP.js +17 -0
  635. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP_COUNT.js +23 -0
  636. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS.js +28 -0
  637. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS_COUNT.js +26 -0
  638. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSH.js +19 -0
  639. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSHX.js +19 -0
  640. package/.output/server/node_modules/@redis/client/dist/lib/commands/LRANGE.js +22 -0
  641. package/.output/server/node_modules/@redis/client/dist/lib/commands/LREM.js +22 -0
  642. package/.output/server/node_modules/@redis/client/dist/lib/commands/LSET.js +21 -0
  643. package/.output/server/node_modules/@redis/client/dist/lib/commands/LTRIM.js +20 -0
  644. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_DOCTOR.js +17 -0
  645. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_MALLOC-STATS.js +17 -0
  646. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_PURGE.js +17 -0
  647. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_STATS.js +39 -0
  648. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_USAGE.js +22 -0
  649. package/.output/server/node_modules/@redis/client/dist/lib/commands/MGET.js +19 -0
  650. package/.output/server/node_modules/@redis/client/dist/lib/commands/MIGRATE.js +48 -0
  651. package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LIST.js +28 -0
  652. package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LOAD.js +22 -0
  653. package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_UNLOAD.js +18 -0
  654. package/.output/server/node_modules/@redis/client/dist/lib/commands/MOVE.js +19 -0
  655. package/.output/server/node_modules/@redis/client/dist/lib/commands/MSET.js +46 -0
  656. package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETEX.js +104 -0
  657. package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETNX.js +19 -0
  658. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_ENCODING.js +18 -0
  659. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_FREQ.js +18 -0
  660. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_IDLETIME.js +18 -0
  661. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_REFCOUNT.js +18 -0
  662. package/.output/server/node_modules/@redis/client/dist/lib/commands/PERSIST.js +17 -0
  663. package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRE.js +24 -0
  664. package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIREAT.js +25 -0
  665. package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRETIME.js +18 -0
  666. package/.output/server/node_modules/@redis/client/dist/lib/commands/PFADD.js +22 -0
  667. package/.output/server/node_modules/@redis/client/dist/lib/commands/PFCOUNT.js +18 -0
  668. package/.output/server/node_modules/@redis/client/dist/lib/commands/PFMERGE.js +21 -0
  669. package/.output/server/node_modules/@redis/client/dist/lib/commands/PING.js +21 -0
  670. package/.output/server/node_modules/@redis/client/dist/lib/commands/PSETEX.js +20 -0
  671. package/.output/server/node_modules/@redis/client/dist/lib/commands/PTTL.js +18 -0
  672. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBLISH.js +20 -0
  673. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_CHANNELS.js +21 -0
  674. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMPAT.js +17 -0
  675. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMSUB.js +34 -0
  676. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDCHANNELS.js +21 -0
  677. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDNUMSUB.js +32 -0
  678. package/.output/server/node_modules/@redis/client/dist/lib/commands/RANDOMKEY.js +17 -0
  679. package/.output/server/node_modules/@redis/client/dist/lib/commands/READONLY.js +17 -0
  680. package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAME.js +19 -0
  681. package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAMENX.js +19 -0
  682. package/.output/server/node_modules/@redis/client/dist/lib/commands/REPLICAOF.js +19 -0
  683. package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE-ASKING.js +17 -0
  684. package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE.js +34 -0
  685. package/.output/server/node_modules/@redis/client/dist/lib/commands/ROLE.js +60 -0
  686. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP.js +17 -0
  687. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOPLPUSH.js +18 -0
  688. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP_COUNT.js +19 -0
  689. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSH.js +19 -0
  690. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSHX.js +19 -0
  691. package/.output/server/node_modules/@redis/client/dist/lib/commands/SADD.js +19 -0
  692. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCAN.js +71 -0
  693. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCARD.js +19 -0
  694. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_DEBUG.js +18 -0
  695. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_EXISTS.js +19 -0
  696. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_FLUSH.js +21 -0
  697. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_KILL.js +17 -0
  698. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_LOAD.js +18 -0
  699. package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFF.js +19 -0
  700. package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFFSTORE.js +19 -0
  701. package/.output/server/node_modules/@redis/client/dist/lib/commands/SET.js +61 -0
  702. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETBIT.js +21 -0
  703. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETEX.js +20 -0
  704. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETNX.js +19 -0
  705. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETRANGE.js +20 -0
  706. package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTER.js +19 -0
  707. package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERCARD.js +25 -0
  708. package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERSTORE.js +20 -0
  709. package/.output/server/node_modules/@redis/client/dist/lib/commands/SISMEMBER.js +21 -0
  710. package/.output/server/node_modules/@redis/client/dist/lib/commands/SMEMBERS.js +22 -0
  711. package/.output/server/node_modules/@redis/client/dist/lib/commands/SMISMEMBER.js +21 -0
  712. package/.output/server/node_modules/@redis/client/dist/lib/commands/SMOVE.js +21 -0
  713. package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT.js +53 -0
  714. package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_RO.js +40 -0
  715. package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_STORE.js +22 -0
  716. package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP.js +18 -0
  717. package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP_COUNT.js +20 -0
  718. package/.output/server/node_modules/@redis/client/dist/lib/commands/SPUBLISH.js +20 -0
  719. package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER.js +18 -0
  720. package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER_COUNT.js +23 -0
  721. package/.output/server/node_modules/@redis/client/dist/lib/commands/SREM.js +21 -0
  722. package/.output/server/node_modules/@redis/client/dist/lib/commands/SSCAN.js +35 -0
  723. package/.output/server/node_modules/@redis/client/dist/lib/commands/STRLEN.js +20 -0
  724. package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNION.js +20 -0
  725. package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNIONSTORE.js +21 -0
  726. package/.output/server/node_modules/@redis/client/dist/lib/commands/SWAPDB.js +17 -0
  727. package/.output/server/node_modules/@redis/client/dist/lib/commands/TIME.js +18 -0
  728. package/.output/server/node_modules/@redis/client/dist/lib/commands/TOUCH.js +19 -0
  729. package/.output/server/node_modules/@redis/client/dist/lib/commands/TTL.js +19 -0
  730. package/.output/server/node_modules/@redis/client/dist/lib/commands/TYPE.js +20 -0
  731. package/.output/server/node_modules/@redis/client/dist/lib/commands/UNLINK.js +19 -0
  732. package/.output/server/node_modules/@redis/client/dist/lib/commands/VADD.js +42 -0
  733. package/.output/server/node_modules/@redis/client/dist/lib/commands/VCARD.js +18 -0
  734. package/.output/server/node_modules/@redis/client/dist/lib/commands/VDIM.js +18 -0
  735. package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB.js +21 -0
  736. package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB_RAW.js +42 -0
  737. package/.output/server/node_modules/@redis/client/dist/lib/commands/VGETATTR.js +21 -0
  738. package/.output/server/node_modules/@redis/client/dist/lib/commands/VINFO.js +27 -0
  739. package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS.js +20 -0
  740. package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS_WITHSCORES.js +39 -0
  741. package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANDMEMBER.js +22 -0
  742. package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANGE.js +31 -0
  743. package/.output/server/node_modules/@redis/client/dist/lib/commands/VREM.js +20 -0
  744. package/.output/server/node_modules/@redis/client/dist/lib/commands/VSETATTR.js +27 -0
  745. package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM.js +51 -0
  746. package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM_WITHSCORES.js +32 -0
  747. package/.output/server/node_modules/@redis/client/dist/lib/commands/WAIT.js +20 -0
  748. package/.output/server/node_modules/@redis/client/dist/lib/commands/XACK.js +23 -0
  749. package/.output/server/node_modules/@redis/client/dist/lib/commands/XACKDEL.js +31 -0
  750. package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD.js +71 -0
  751. package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD_NOMKSTREAM.js +21 -0
  752. package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM.js +43 -0
  753. package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM_JUSTID.js +35 -0
  754. package/.output/server/node_modules/@redis/client/dist/lib/commands/XCFGSET.js +28 -0
  755. package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM.js +52 -0
  756. package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM_JUSTID.js +31 -0
  757. package/.output/server/node_modules/@redis/client/dist/lib/commands/XDEL.js +24 -0
  758. package/.output/server/node_modules/@redis/client/dist/lib/commands/XDELEX.js +29 -0
  759. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATE.js +29 -0
  760. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATECONSUMER.js +25 -0
  761. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DELCONSUMER.js +25 -0
  762. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DESTROY.js +24 -0
  763. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_SETID.js +26 -0
  764. package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_CONSUMERS.js +40 -0
  765. package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_GROUPS.js +46 -0
  766. package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_STREAM.js +72 -0
  767. package/.output/server/node_modules/@redis/client/dist/lib/commands/XLEN.js +23 -0
  768. package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING.js +42 -0
  769. package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING_RANGE.js +49 -0
  770. package/.output/server/node_modules/@redis/client/dist/lib/commands/XRANGE.js +50 -0
  771. package/.output/server/node_modules/@redis/client/dist/lib/commands/XREAD.js +57 -0
  772. package/.output/server/node_modules/@redis/client/dist/lib/commands/XREADGROUP.js +42 -0
  773. package/.output/server/node_modules/@redis/client/dist/lib/commands/XREVRANGE.js +49 -0
  774. package/.output/server/node_modules/@redis/client/dist/lib/commands/XSETID.js +18 -0
  775. package/.output/server/node_modules/@redis/client/dist/lib/commands/XTRIM.js +36 -0
  776. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD.js +73 -0
  777. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD_INCR.js +36 -0
  778. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCARD.js +23 -0
  779. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCOUNT.js +21 -0
  780. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF.js +16 -0
  781. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFFSTORE.js +18 -0
  782. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF_WITHSCORES.js +21 -0
  783. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINCRBY.js +19 -0
  784. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER.js +26 -0
  785. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERCARD.js +24 -0
  786. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERSTORE.js +20 -0
  787. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER_WITHSCORES.js +20 -0
  788. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZLEXCOUNT.js +21 -0
  789. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMPOP.js +47 -0
  790. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMSCORE.js +25 -0
  791. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX.js +34 -0
  792. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX_COUNT.js +19 -0
  793. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN.js +20 -0
  794. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN_COUNT.js +19 -0
  795. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER.js +16 -0
  796. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT.js +21 -0
  797. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT_WITHSCORES.js +22 -0
  798. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE.js +45 -0
  799. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYLEX.js +25 -0
  800. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE.js +25 -0
  801. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE_WITHSCORES.js +22 -0
  802. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGESTORE.js +37 -0
  803. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE_WITHSCORES.js +22 -0
  804. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK.js +19 -0
  805. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK_WITHSCORE.js +38 -0
  806. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREM.js +18 -0
  807. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYLEX.js +20 -0
  808. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYRANK.js +19 -0
  809. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYSCORE.js +20 -0
  810. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREVRANK.js +19 -0
  811. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCAN.js +26 -0
  812. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCORE.js +20 -0
  813. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION.js +21 -0
  814. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNIONSTORE.js +23 -0
  815. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION_WITHSCORES.js +21 -0
  816. package/.output/server/node_modules/@redis/client/dist/lib/commands/generic-transformers.js +492 -0
  817. package/.output/server/node_modules/@redis/client/dist/lib/commands/index.js +1161 -0
  818. package/.output/server/node_modules/@redis/client/dist/lib/errors.js +110 -0
  819. package/.output/server/node_modules/@redis/client/dist/lib/lua-script.js +16 -0
  820. package/.output/server/node_modules/@redis/client/dist/lib/multi-command.js +48 -0
  821. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/client-registry.js +84 -0
  822. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/index.js +81 -0
  823. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/metrics.js +647 -0
  824. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/types.js +120 -0
  825. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/error.util.js +199 -0
  826. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/index.js +32 -0
  827. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MASTER.js +18 -0
  828. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MONITOR.js +17 -0
  829. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_REPLICAS.js +25 -0
  830. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SENTINELS.js +25 -0
  831. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SET.js +18 -0
  832. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/index.js +23 -0
  833. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/index.js +1229 -0
  834. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/module.js +10 -0
  835. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/multi-commands.js +115 -0
  836. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/pub-sub-proxy.js +150 -0
  837. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/utils.js +98 -0
  838. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/wait-queue.js +24 -0
  839. package/.output/server/node_modules/@redis/client/dist/lib/single-entry-cache.js +38 -0
  840. package/.output/server/node_modules/@redis/client/dist/lib/utils/digest.js +34 -0
  841. package/.output/server/node_modules/@redis/client/dist/package.json +52 -0
  842. package/.output/server/node_modules/@redis/client/package.json +52 -0
  843. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRAPPEND.js +26 -0
  844. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINDEX.js +31 -0
  845. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINSERT.js +27 -0
  846. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRLEN.js +23 -0
  847. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRPOP.js +32 -0
  848. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRTRIM.js +22 -0
  849. package/.output/server/node_modules/@redis/json/dist/lib/commands/CLEAR.js +23 -0
  850. package/.output/server/node_modules/@redis/json/dist/lib/commands/DEBUG_MEMORY.js +23 -0
  851. package/.output/server/node_modules/@redis/json/dist/lib/commands/DEL.js +23 -0
  852. package/.output/server/node_modules/@redis/json/dist/lib/commands/FORGET.js +23 -0
  853. package/.output/server/node_modules/@redis/json/dist/lib/commands/GET.js +24 -0
  854. package/.output/server/node_modules/@redis/json/dist/lib/commands/MERGE.js +22 -0
  855. package/.output/server/node_modules/@redis/json/dist/lib/commands/MGET.js +23 -0
  856. package/.output/server/node_modules/@redis/json/dist/lib/commands/MSET.js +25 -0
  857. package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMINCRBY.js +26 -0
  858. package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMMULTBY.js +25 -0
  859. package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJKEYS.js +23 -0
  860. package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJLEN.js +23 -0
  861. package/.output/server/node_modules/@redis/json/dist/lib/commands/SET.js +35 -0
  862. package/.output/server/node_modules/@redis/json/dist/lib/commands/STRAPPEND.js +26 -0
  863. package/.output/server/node_modules/@redis/json/dist/lib/commands/STRLEN.js +23 -0
  864. package/.output/server/node_modules/@redis/json/dist/lib/commands/TOGGLE.js +20 -0
  865. package/.output/server/node_modules/@redis/json/dist/lib/commands/TYPE.js +29 -0
  866. package/.output/server/node_modules/@redis/json/dist/lib/commands/index.js +91 -0
  867. package/.output/server/node_modules/@redis/json/dist/lib/index.js +9 -0
  868. package/.output/server/node_modules/@redis/json/package.json +36 -0
  869. package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE.js +212 -0
  870. package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE_WITHCURSOR.js +40 -0
  871. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASADD.js +17 -0
  872. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASDEL.js +16 -0
  873. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASUPDATE.js +17 -0
  874. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALTER.js +19 -0
  875. package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_GET.js +23 -0
  876. package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_SET.js +17 -0
  877. package/.output/server/node_modules/@redis/search/dist/lib/commands/CREATE.js +277 -0
  878. package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_DEL.js +17 -0
  879. package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_READ.js +27 -0
  880. package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTADD.js +18 -0
  881. package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDEL.js +18 -0
  882. package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDUMP.js +19 -0
  883. package/.output/server/node_modules/@redis/search/dist/lib/commands/DROPINDEX.js +24 -0
  884. package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAIN.js +29 -0
  885. package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAINCLI.js +26 -0
  886. package/.output/server/node_modules/@redis/search/dist/lib/commands/HYBRID.js +273 -0
  887. package/.output/server/node_modules/@redis/search/dist/lib/commands/INFO.js +106 -0
  888. package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_AGGREGATE.js +58 -0
  889. package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_SEARCH.js +58 -0
  890. package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH.js +160 -0
  891. package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH_NOCONTENT.js +34 -0
  892. package/.output/server/node_modules/@redis/search/dist/lib/commands/SPELLCHECK.js +56 -0
  893. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGADD.js +28 -0
  894. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGDEL.js +18 -0
  895. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET.js +27 -0
  896. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHPAYLOADS.js +36 -0
  897. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES.js +51 -0
  898. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES_WITHPAYLOADS.js +53 -0
  899. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGLEN.js +15 -0
  900. package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNDUMP.js +27 -0
  901. package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNUPDATE.js +24 -0
  902. package/.output/server/node_modules/@redis/search/dist/lib/commands/TAGVALS.js +20 -0
  903. package/.output/server/node_modules/@redis/search/dist/lib/commands/_LIST.js +18 -0
  904. package/.output/server/node_modules/@redis/search/dist/lib/commands/index.js +125 -0
  905. package/.output/server/node_modules/@redis/search/dist/lib/dialect/default.js +5 -0
  906. package/.output/server/node_modules/@redis/search/dist/lib/index.js +17 -0
  907. package/.output/server/node_modules/@redis/search/package.json +37 -0
  908. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ADD.js +29 -0
  909. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ALTER.js +23 -0
  910. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATE.js +24 -0
  911. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATERULE.js +48 -0
  912. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DECRBY.js +40 -0
  913. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DEL.js +20 -0
  914. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DELETERULE.js +17 -0
  915. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/GET.js +33 -0
  916. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INCRBY.js +40 -0
  917. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO.js +58 -0
  918. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO_DEBUG.js +46 -0
  919. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MADD.js +20 -0
  920. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET.js +57 -0
  921. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_SELECTED_LABELS.js +23 -0
  922. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_WITHLABELS.js +43 -0
  923. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE.js +44 -0
  924. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_GROUPBY.js +96 -0
  925. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS.js +51 -0
  926. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS_GROUPBY.js +52 -0
  927. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS.js +59 -0
  928. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS_GROUPBY.js +52 -0
  929. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE.js +41 -0
  930. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_GROUPBY.js +41 -0
  931. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS.js +41 -0
  932. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS_GROUPBY.js +42 -0
  933. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS.js +41 -0
  934. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS_GROUPBY.js +41 -0
  935. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/QUERYINDEX.js +20 -0
  936. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/RANGE.js +66 -0
  937. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/REVRANGE.js +40 -0
  938. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/helpers.js +237 -0
  939. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/index.js +113 -0
  940. package/.output/server/node_modules/@redis/time-series/dist/lib/index.js +17 -0
  941. package/.output/server/node_modules/@redis/time-series/package.json +36 -0
  942. package/.output/server/node_modules/aws-ssl-profiles/lib/index.js +13 -0
  943. package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/defaults.js +2888 -0
  944. package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/proxies.js +111 -0
  945. package/.output/server/node_modules/aws-ssl-profiles/package.json +52 -0
  946. package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  947. package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
  948. package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
  949. package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  950. package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  951. package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  952. package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  953. package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  954. package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  955. package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  956. package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
  957. package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  958. package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  959. package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
  960. package/.output/server/node_modules/better-sqlite3/package.json +59 -0
  961. package/.output/server/node_modules/cluster-key-slot/lib/index.js +166 -0
  962. package/.output/server/node_modules/cluster-key-slot/package.json +56 -0
  963. package/.output/server/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
  964. package/.output/server/node_modules/cpu-features/lib/index.js +5 -0
  965. package/.output/server/node_modules/cpu-features/package.json +40 -0
  966. package/.output/server/node_modules/denque/index.js +481 -0
  967. package/.output/server/node_modules/denque/package.json +58 -0
  968. package/.output/server/node_modules/generate-function/index.js +181 -0
  969. package/.output/server/node_modules/generate-function/package.json +32 -0
  970. package/.output/server/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  971. package/.output/server/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  972. package/.output/server/node_modules/iconv-lite/encodings/index.js +23 -0
  973. package/.output/server/node_modules/iconv-lite/encodings/internal.js +218 -0
  974. package/.output/server/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  975. package/.output/server/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  976. package/.output/server/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  977. package/.output/server/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  978. package/.output/server/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  979. package/.output/server/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  980. package/.output/server/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  981. package/.output/server/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  982. package/.output/server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  983. package/.output/server/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  984. package/.output/server/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  985. package/.output/server/node_modules/iconv-lite/encodings/utf16.js +187 -0
  986. package/.output/server/node_modules/iconv-lite/encodings/utf32.js +307 -0
  987. package/.output/server/node_modules/iconv-lite/encodings/utf7.js +283 -0
  988. package/.output/server/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  989. package/.output/server/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  990. package/.output/server/node_modules/iconv-lite/lib/index.js +182 -0
  991. package/.output/server/node_modules/iconv-lite/lib/streams.js +105 -0
  992. package/.output/server/node_modules/iconv-lite/package.json +70 -0
  993. package/.output/server/node_modules/is-property/is-property.js +5 -0
  994. package/.output/server/node_modules/is-property/package.json +36 -0
  995. package/.output/server/node_modules/js-base64/base64.mjs +301 -0
  996. package/.output/server/node_modules/js-base64/package.json +43 -0
  997. package/.output/server/node_modules/long/package.json +58 -0
  998. package/.output/server/node_modules/long/umd/index.js +1622 -0
  999. package/.output/server/node_modules/long/umd/package.json +3 -0
  1000. package/.output/server/node_modules/lru.min/lib/index.js +248 -0
  1001. package/.output/server/node_modules/lru.min/package.json +87 -0
  1002. package/.output/server/node_modules/mysql2/index.js +77 -0
  1003. package/.output/server/node_modules/mysql2/lib/auth_41.js +95 -0
  1004. package/.output/server/node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js +115 -0
  1005. package/.output/server/node_modules/mysql2/lib/auth_plugins/index.js +8 -0
  1006. package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_clear_password.js +17 -0
  1007. package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_native_password.js +34 -0
  1008. package/.output/server/node_modules/mysql2/lib/auth_plugins/sha256_password.js +74 -0
  1009. package/.output/server/node_modules/mysql2/lib/base/connection.js +1139 -0
  1010. package/.output/server/node_modules/mysql2/lib/base/pool.js +343 -0
  1011. package/.output/server/node_modules/mysql2/lib/commands/auth_switch.js +151 -0
  1012. package/.output/server/node_modules/mysql2/lib/commands/binlog_dump.js +109 -0
  1013. package/.output/server/node_modules/mysql2/lib/commands/change_user.js +68 -0
  1014. package/.output/server/node_modules/mysql2/lib/commands/client_handshake.js +386 -0
  1015. package/.output/server/node_modules/mysql2/lib/commands/close_statement.js +18 -0
  1016. package/.output/server/node_modules/mysql2/lib/commands/command.js +54 -0
  1017. package/.output/server/node_modules/mysql2/lib/commands/execute.js +116 -0
  1018. package/.output/server/node_modules/mysql2/lib/commands/index.js +29 -0
  1019. package/.output/server/node_modules/mysql2/lib/commands/ping.js +36 -0
  1020. package/.output/server/node_modules/mysql2/lib/commands/prepare.js +143 -0
  1021. package/.output/server/node_modules/mysql2/lib/commands/query.js +365 -0
  1022. package/.output/server/node_modules/mysql2/lib/commands/quit.js +29 -0
  1023. package/.output/server/node_modules/mysql2/lib/commands/register_slave.js +27 -0
  1024. package/.output/server/node_modules/mysql2/lib/commands/reset_connection.js +29 -0
  1025. package/.output/server/node_modules/mysql2/lib/commands/server_handshake.js +205 -0
  1026. package/.output/server/node_modules/mysql2/lib/compressed_protocol.js +153 -0
  1027. package/.output/server/node_modules/mysql2/lib/connection.js +12 -0
  1028. package/.output/server/node_modules/mysql2/lib/connection_config.js +299 -0
  1029. package/.output/server/node_modules/mysql2/lib/constants/charset_encodings.js +317 -0
  1030. package/.output/server/node_modules/mysql2/lib/constants/charsets.js +317 -0
  1031. package/.output/server/node_modules/mysql2/lib/constants/client.js +39 -0
  1032. package/.output/server/node_modules/mysql2/lib/constants/commands.js +37 -0
  1033. package/.output/server/node_modules/mysql2/lib/constants/cursor.js +9 -0
  1034. package/.output/server/node_modules/mysql2/lib/constants/encoding_charset.js +50 -0
  1035. package/.output/server/node_modules/mysql2/lib/constants/errors.js +3973 -0
  1036. package/.output/server/node_modules/mysql2/lib/constants/field_flags.js +20 -0
  1037. package/.output/server/node_modules/mysql2/lib/constants/server_status.js +44 -0
  1038. package/.output/server/node_modules/mysql2/lib/constants/session_track.js +11 -0
  1039. package/.output/server/node_modules/mysql2/lib/constants/ssl_profiles.js +11 -0
  1040. package/.output/server/node_modules/mysql2/lib/constants/types.js +64 -0
  1041. package/.output/server/node_modules/mysql2/lib/create_connection.js +10 -0
  1042. package/.output/server/node_modules/mysql2/lib/create_pool.js +10 -0
  1043. package/.output/server/node_modules/mysql2/lib/create_pool_cluster.js +9 -0
  1044. package/.output/server/node_modules/mysql2/lib/helpers.js +83 -0
  1045. package/.output/server/node_modules/mysql2/lib/packet_parser.js +195 -0
  1046. package/.output/server/node_modules/mysql2/lib/packets/auth_next_factor.js +35 -0
  1047. package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request.js +38 -0
  1048. package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request_more_data.js +33 -0
  1049. package/.output/server/node_modules/mysql2/lib/packets/auth_switch_response.js +30 -0
  1050. package/.output/server/node_modules/mysql2/lib/packets/binary_row.js +95 -0
  1051. package/.output/server/node_modules/mysql2/lib/packets/binlog_dump.js +33 -0
  1052. package/.output/server/node_modules/mysql2/lib/packets/binlog_query_statusvars.js +115 -0
  1053. package/.output/server/node_modules/mysql2/lib/packets/change_user.js +97 -0
  1054. package/.output/server/node_modules/mysql2/lib/packets/close_statement.js +21 -0
  1055. package/.output/server/node_modules/mysql2/lib/packets/column_definition.js +291 -0
  1056. package/.output/server/node_modules/mysql2/lib/packets/encode_parameter.js +69 -0
  1057. package/.output/server/node_modules/mysql2/lib/packets/execute.js +177 -0
  1058. package/.output/server/node_modules/mysql2/lib/packets/handshake.js +112 -0
  1059. package/.output/server/node_modules/mysql2/lib/packets/handshake_response.js +173 -0
  1060. package/.output/server/node_modules/mysql2/lib/packets/index.js +154 -0
  1061. package/.output/server/node_modules/mysql2/lib/packets/packet.js +978 -0
  1062. package/.output/server/node_modules/mysql2/lib/packets/prepare_statement.js +27 -0
  1063. package/.output/server/node_modules/mysql2/lib/packets/prepared_statement_header.js +16 -0
  1064. package/.output/server/node_modules/mysql2/lib/packets/query.js +102 -0
  1065. package/.output/server/node_modules/mysql2/lib/packets/register_slave.js +46 -0
  1066. package/.output/server/node_modules/mysql2/lib/packets/reset_connection.js +17 -0
  1067. package/.output/server/node_modules/mysql2/lib/packets/resultset_header.js +124 -0
  1068. package/.output/server/node_modules/mysql2/lib/packets/ssl_request.js +25 -0
  1069. package/.output/server/node_modules/mysql2/lib/packets/text_row.js +47 -0
  1070. package/.output/server/node_modules/mysql2/lib/parsers/binary_parser.js +235 -0
  1071. package/.output/server/node_modules/mysql2/lib/parsers/parser_cache.js +68 -0
  1072. package/.output/server/node_modules/mysql2/lib/parsers/static_binary_parser.js +213 -0
  1073. package/.output/server/node_modules/mysql2/lib/parsers/static_text_parser.js +152 -0
  1074. package/.output/server/node_modules/mysql2/lib/parsers/string.js +50 -0
  1075. package/.output/server/node_modules/mysql2/lib/parsers/text_parser.js +214 -0
  1076. package/.output/server/node_modules/mysql2/lib/pool.js +12 -0
  1077. package/.output/server/node_modules/mysql2/lib/pool_cluster.js +375 -0
  1078. package/.output/server/node_modules/mysql2/lib/pool_config.js +34 -0
  1079. package/.output/server/node_modules/mysql2/lib/pool_connection.js +81 -0
  1080. package/.output/server/node_modules/mysql2/lib/promise/capture_local_err.js +25 -0
  1081. package/.output/server/node_modules/mysql2/lib/promise/connection.js +237 -0
  1082. package/.output/server/node_modules/mysql2/lib/promise/inherit_events.js +27 -0
  1083. package/.output/server/node_modules/mysql2/lib/promise/make_done_cb.js +16 -0
  1084. package/.output/server/node_modules/mysql2/lib/promise/pool.js +118 -0
  1085. package/.output/server/node_modules/mysql2/lib/promise/pool_cluster.js +59 -0
  1086. package/.output/server/node_modules/mysql2/lib/promise/pool_connection.js +19 -0
  1087. package/.output/server/node_modules/mysql2/lib/promise/prepared_statement_info.js +35 -0
  1088. package/.output/server/node_modules/mysql2/lib/server.js +37 -0
  1089. package/.output/server/node_modules/mysql2/lib/tracing.js +81 -0
  1090. package/.output/server/node_modules/mysql2/package.json +95 -0
  1091. package/.output/server/node_modules/mysql2/promise.js +209 -0
  1092. package/.output/server/node_modules/named-placeholders/index.js +179 -0
  1093. package/.output/server/node_modules/named-placeholders/package.json +36 -0
  1094. package/.output/server/node_modules/oracledb/index.js +27 -0
  1095. package/.output/server/node_modules/oracledb/lib/aqDeqOptions.js +186 -0
  1096. package/.output/server/node_modules/oracledb/lib/aqEnqOptions.js +81 -0
  1097. package/.output/server/node_modules/oracledb/lib/aqMessage.js +149 -0
  1098. package/.output/server/node_modules/oracledb/lib/aqQueue.js +293 -0
  1099. package/.output/server/node_modules/oracledb/lib/connection.js +1842 -0
  1100. package/.output/server/node_modules/oracledb/lib/constants.js +210 -0
  1101. package/.output/server/node_modules/oracledb/lib/dbObject.js +606 -0
  1102. package/.output/server/node_modules/oracledb/lib/errors.js +1046 -0
  1103. package/.output/server/node_modules/oracledb/lib/future.js +53 -0
  1104. package/.output/server/node_modules/oracledb/lib/impl/aqDeqOptions.js +206 -0
  1105. package/.output/server/node_modules/oracledb/lib/impl/aqEnqOptions.js +89 -0
  1106. package/.output/server/node_modules/oracledb/lib/impl/aqMessage.js +134 -0
  1107. package/.output/server/node_modules/oracledb/lib/impl/aqQueue.js +82 -0
  1108. package/.output/server/node_modules/oracledb/lib/impl/base.js +45 -0
  1109. package/.output/server/node_modules/oracledb/lib/impl/connection.js +671 -0
  1110. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/buffer.js +1214 -0
  1111. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/constants.js +110 -0
  1112. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/oson.js +852 -0
  1113. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/vector.js +197 -0
  1114. package/.output/server/node_modules/oracledb/lib/impl/dbObject.js +159 -0
  1115. package/.output/server/node_modules/oracledb/lib/impl/index.js +59 -0
  1116. package/.output/server/node_modules/oracledb/lib/impl/lob.js +113 -0
  1117. package/.output/server/node_modules/oracledb/lib/impl/pool.js +230 -0
  1118. package/.output/server/node_modules/oracledb/lib/impl/resultset.js +307 -0
  1119. package/.output/server/node_modules/oracledb/lib/impl/sodaCollection.js +175 -0
  1120. package/.output/server/node_modules/oracledb/lib/impl/sodaDatabase.js +82 -0
  1121. package/.output/server/node_modules/oracledb/lib/impl/sodaDocCursor.js +64 -0
  1122. package/.output/server/node_modules/oracledb/lib/impl/sodaDocument.js +89 -0
  1123. package/.output/server/node_modules/oracledb/lib/impl/sodaOperation.js +110 -0
  1124. package/.output/server/node_modules/oracledb/lib/lob.js +315 -0
  1125. package/.output/server/node_modules/oracledb/lib/oracledb.js +1716 -0
  1126. package/.output/server/node_modules/oracledb/lib/pool.js +873 -0
  1127. package/.output/server/node_modules/oracledb/lib/poolStatistics.js +143 -0
  1128. package/.output/server/node_modules/oracledb/lib/queryStream.js +119 -0
  1129. package/.output/server/node_modules/oracledb/lib/resultset.js +368 -0
  1130. package/.output/server/node_modules/oracledb/lib/settings.js +221 -0
  1131. package/.output/server/node_modules/oracledb/lib/sodaCollection.js +284 -0
  1132. package/.output/server/node_modules/oracledb/lib/sodaDatabase.js +176 -0
  1133. package/.output/server/node_modules/oracledb/lib/sodaDocCursor.js +82 -0
  1134. package/.output/server/node_modules/oracledb/lib/sodaDocument.js +125 -0
  1135. package/.output/server/node_modules/oracledb/lib/sodaOperation.js +236 -0
  1136. package/.output/server/node_modules/oracledb/lib/thin/aq.js +475 -0
  1137. package/.output/server/node_modules/oracledb/lib/thin/connection.js +1504 -0
  1138. package/.output/server/node_modules/oracledb/lib/thin/dbObject.js +737 -0
  1139. package/.output/server/node_modules/oracledb/lib/thin/index.js +40 -0
  1140. package/.output/server/node_modules/oracledb/lib/thin/lob.js +380 -0
  1141. package/.output/server/node_modules/oracledb/lib/thin/pool.js +738 -0
  1142. package/.output/server/node_modules/oracledb/lib/thin/protocol/capabilities.js +145 -0
  1143. package/.output/server/node_modules/oracledb/lib/thin/protocol/constants.js +872 -0
  1144. package/.output/server/node_modules/oracledb/lib/thin/protocol/encryptDecrypt.js +197 -0
  1145. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqArray.js +238 -0
  1146. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqBase.js +305 -0
  1147. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqDeq.js +164 -0
  1148. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqEnq.js +135 -0
  1149. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/auth.js +376 -0
  1150. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/base.js +568 -0
  1151. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/commit.js +56 -0
  1152. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/dataType.js +401 -0
  1153. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/execute.js +358 -0
  1154. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fastAuth.js +83 -0
  1155. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fetch.js +64 -0
  1156. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/index.js +59 -0
  1157. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/lobOp.js +195 -0
  1158. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/logOff.js +52 -0
  1159. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/ping.js +56 -0
  1160. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/protocol.js +97 -0
  1161. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/rollback.js +56 -0
  1162. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/sessionRelease.js +60 -0
  1163. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionChangeState.js +99 -0
  1164. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionSwitch.js +147 -0
  1165. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/withData.js +920 -0
  1166. package/.output/server/node_modules/oracledb/lib/thin/protocol/packet.js +631 -0
  1167. package/.output/server/node_modules/oracledb/lib/thin/protocol/protocol.js +240 -0
  1168. package/.output/server/node_modules/oracledb/lib/thin/protocol/utils.js +82 -0
  1169. package/.output/server/node_modules/oracledb/lib/thin/resultSet.js +122 -0
  1170. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ANO.js +438 -0
  1171. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/connStrategy.js +316 -0
  1172. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/constants.js +210 -0
  1173. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ezConnectResolver.js +466 -0
  1174. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/navNodes.js +904 -0
  1175. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/networkSession.js +733 -0
  1176. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js +609 -0
  1177. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/nvStrToNvPair.js +780 -0
  1178. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/packet.js +439 -0
  1179. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/paramParser.js +239 -0
  1180. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/sessionAtts.js +198 -0
  1181. package/.output/server/node_modules/oracledb/lib/thin/statement.js +573 -0
  1182. package/.output/server/node_modules/oracledb/lib/thin/statementCache.js +195 -0
  1183. package/.output/server/node_modules/oracledb/lib/thin/util.js +254 -0
  1184. package/.output/server/node_modules/oracledb/lib/traceHandler.js +133 -0
  1185. package/.output/server/node_modules/oracledb/lib/transformer.js +279 -0
  1186. package/.output/server/node_modules/oracledb/lib/types.js +592 -0
  1187. package/.output/server/node_modules/oracledb/lib/util.js +648 -0
  1188. package/.output/server/node_modules/oracledb/lib/version.js +36 -0
  1189. package/.output/server/node_modules/oracledb/package.json +48 -0
  1190. package/.output/server/node_modules/promise-limit/index.js +88 -0
  1191. package/.output/server/node_modules/promise-limit/package.json +39 -0
  1192. package/.output/server/node_modules/redis/dist/index.js +77 -0
  1193. package/.output/server/node_modules/redis/package.json +36 -0
  1194. package/.output/server/node_modules/sql-escaper/lib/index.js +398 -0
  1195. package/.output/server/node_modules/sql-escaper/package.json +81 -0
  1196. package/.output/server/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
  1197. package/.output/server/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  1198. package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
  1199. package/.output/server/node_modules/ws/lib/constants.js +19 -0
  1200. package/.output/server/node_modules/ws/lib/event-target.js +292 -0
  1201. package/.output/server/node_modules/ws/lib/extension.js +203 -0
  1202. package/.output/server/node_modules/ws/lib/limiter.js +55 -0
  1203. package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
  1204. package/.output/server/node_modules/ws/lib/receiver.js +706 -0
  1205. package/.output/server/node_modules/ws/lib/sender.js +602 -0
  1206. package/.output/server/node_modules/ws/lib/stream.js +161 -0
  1207. package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
  1208. package/.output/server/node_modules/ws/lib/validation.js +152 -0
  1209. package/.output/server/node_modules/ws/lib/websocket-server.js +554 -0
  1210. package/.output/server/node_modules/ws/lib/websocket.js +1393 -0
  1211. package/.output/server/node_modules/ws/package.json +69 -0
  1212. package/.output/server/node_modules/ws/wrapper.mjs +8 -0
  1213. package/.output/server/package.json +29 -18
  1214. package/package.json +9 -3
  1215. package/.output/public/_nuxt/0-wJGyFY.js +0 -2
  1216. package/.output/public/_nuxt/1ntlIJ3J.js +0 -61
  1217. package/.output/public/_nuxt/3c6UPAJG.js +0 -73
  1218. package/.output/public/_nuxt/ACQvpkWm.js +0 -15
  1219. package/.output/public/_nuxt/B-5Px-78.js +0 -1
  1220. package/.output/public/_nuxt/B2GYb2Zp.js +0 -34
  1221. package/.output/public/_nuxt/B2RqwDKD.js +0 -1
  1222. package/.output/public/_nuxt/B8ibHW1N.js +0 -53
  1223. package/.output/public/_nuxt/B9-NZWuC.js +0 -4
  1224. package/.output/public/_nuxt/BBGY5Dij.js +0 -70
  1225. package/.output/public/_nuxt/BC7xWBZm.js +0 -1
  1226. package/.output/public/_nuxt/BCC0qnRS.js +0 -1
  1227. package/.output/public/_nuxt/BEqwcled.js +0 -65
  1228. package/.output/public/_nuxt/BHBluah9.js +0 -39
  1229. package/.output/public/_nuxt/BKKBkPNN.js +0 -160
  1230. package/.output/public/_nuxt/BKltSiU0.js +0 -1
  1231. package/.output/public/_nuxt/BKokR8_i.js +0 -2
  1232. package/.output/public/_nuxt/BL9A1tZd.js +0 -7
  1233. package/.output/public/_nuxt/BOzTRnyW.js +0 -1
  1234. package/.output/public/_nuxt/BP3TGvlW.js +0 -36
  1235. package/.output/public/_nuxt/BPj7cOdr.js +0 -9
  1236. package/.output/public/_nuxt/BSs9H74b.js +0 -1
  1237. package/.output/public/_nuxt/BTp4hJJX.js +0 -30
  1238. package/.output/public/_nuxt/BUolzwzd.js +0 -1
  1239. package/.output/public/_nuxt/BWSKnXVC.js +0 -1
  1240. package/.output/public/_nuxt/BX8ZW8Wz.js +0 -1
  1241. package/.output/public/_nuxt/BZOx0xl6.js +0 -1
  1242. package/.output/public/_nuxt/B_IzdKBm.js +0 -1
  1243. package/.output/public/_nuxt/BaseCodeEditor.SAr2eD8R.css +0 -1
  1244. package/.output/public/_nuxt/BbHeTL4H.js +0 -1
  1245. package/.output/public/_nuxt/Bdd_MGHp.js +0 -1
  1246. package/.output/public/_nuxt/Bdtn2mn5.js +0 -1
  1247. package/.output/public/_nuxt/Bf6dfiAn.js +0 -1
  1248. package/.output/public/_nuxt/BfStSYv5.js +0 -10
  1249. package/.output/public/_nuxt/BiCaG3fA.js +0 -1
  1250. package/.output/public/_nuxt/BiZhfq--.js +0 -1
  1251. package/.output/public/_nuxt/Bj9pfQd-.js +0 -10
  1252. package/.output/public/_nuxt/BjU0QAaV.js +0 -732
  1253. package/.output/public/_nuxt/Bpvd5Z9l.js +0 -132
  1254. package/.output/public/_nuxt/BvXVax75.js +0 -162
  1255. package/.output/public/_nuxt/BwI9KIOm.js +0 -255
  1256. package/.output/public/_nuxt/C-3-JfbB.js +0 -1
  1257. package/.output/public/_nuxt/C-xlKweX.js +0 -1
  1258. package/.output/public/_nuxt/CEj-unU2.js +0 -1
  1259. package/.output/public/_nuxt/CEza5aSi.js +0 -1
  1260. package/.output/public/_nuxt/CJWptbcK.js +0 -1
  1261. package/.output/public/_nuxt/CKSjfllY.js +0 -1
  1262. package/.output/public/_nuxt/CMpNcsXd.js +0 -12
  1263. package/.output/public/_nuxt/CPabAXsJ.js +0 -24
  1264. package/.output/public/_nuxt/CPipTUnI.js +0 -152
  1265. package/.output/public/_nuxt/CQ45OBWa.js +0 -89
  1266. package/.output/public/_nuxt/CQAA248G.js +0 -1
  1267. package/.output/public/_nuxt/CRM1vXw3.js +0 -2
  1268. package/.output/public/_nuxt/CUIMPQKu.js +0 -70
  1269. package/.output/public/_nuxt/CUvvUJMD.js +0 -1
  1270. package/.output/public/_nuxt/CWE6B2ZO.js +0 -1
  1271. package/.output/public/_nuxt/CY1oztNj.js +0 -1
  1272. package/.output/public/_nuxt/Cb_5VLq-.js +0 -1
  1273. package/.output/public/_nuxt/Cc9Pv3NC.js +0 -67
  1274. package/.output/public/_nuxt/CdeKF_Y5.js +0 -1
  1275. package/.output/public/_nuxt/Ceqb0tnW.js +0 -9
  1276. package/.output/public/_nuxt/Cf4SYIMN.js +0 -15
  1277. package/.output/public/_nuxt/CfJy-WiZ.js +0 -2
  1278. package/.output/public/_nuxt/Ch9DdZ1v.js +0 -1
  1279. package/.output/public/_nuxt/Chnnd034.js +0 -1
  1280. package/.output/public/_nuxt/CmPpU8kK.js +0 -7
  1281. package/.output/public/_nuxt/CoTGLOo-.js +0 -10
  1282. package/.output/public/_nuxt/CqvBmMuN.js +0 -1
  1283. package/.output/public/_nuxt/CtJG7C0n.js +0 -1
  1284. package/.output/public/_nuxt/Cv13FokC.js +0 -24
  1285. package/.output/public/_nuxt/CyIart-B.js +0 -1
  1286. package/.output/public/_nuxt/Czb-ugrz.js +0 -1
  1287. package/.output/public/_nuxt/D0HVzqS-.js +0 -1
  1288. package/.output/public/_nuxt/D5MxrHN6.js +0 -1
  1289. package/.output/public/_nuxt/DBC_DJ4H.js +0 -292
  1290. package/.output/public/_nuxt/DD0_MMyC.js +0 -22
  1291. package/.output/public/_nuxt/DLBa45iT.js +0 -68
  1292. package/.output/public/_nuxt/DNX5WjhQ.js +0 -1
  1293. package/.output/public/_nuxt/DS5KvVtc.js +0 -1
  1294. package/.output/public/_nuxt/DeHEBoXc.js +0 -43
  1295. package/.output/public/_nuxt/DiVOI330.js +0 -1
  1296. package/.output/public/_nuxt/DkFAxPAy.js +0 -162
  1297. package/.output/public/_nuxt/DonU4d08.js +0 -3
  1298. package/.output/public/_nuxt/Dsj6LIQK.js +0 -220
  1299. package/.output/public/_nuxt/DuEMN8L_.js +0 -189
  1300. package/.output/public/_nuxt/Dv-XdIM2.js +0 -68
  1301. package/.output/public/_nuxt/DyxiJtlL.js +0 -72
  1302. package/.output/public/_nuxt/Dzy5OQn7.js +0 -139
  1303. package/.output/public/_nuxt/EJAhTysQ.js +0 -1
  1304. package/.output/public/_nuxt/GoTwJjoS.js +0 -39
  1305. package/.output/public/_nuxt/L22G0LO0.js +0 -2
  1306. package/.output/public/_nuxt/MT_t-3iM.js +0 -145
  1307. package/.output/public/_nuxt/NPxge8Vj.js +0 -1
  1308. package/.output/public/_nuxt/PuW66QXY.js +0 -6
  1309. package/.output/public/_nuxt/RVJfUWby.js +0 -1
  1310. package/.output/public/_nuxt/Vvsm7Zcb.js +0 -1
  1311. package/.output/public/_nuxt/Yhg2AuOM.js +0 -1
  1312. package/.output/public/_nuxt/Yzrsuije.js +0 -1
  1313. package/.output/public/_nuxt/_pURwnjj.js +0 -1
  1314. package/.output/public/_nuxt/ak-AMfNO.js +0 -1
  1315. package/.output/public/_nuxt/bTGk4NZ_.js +0 -1
  1316. package/.output/public/_nuxt/builds/meta/b0b2d3d7-8491-43b2-b747-bf8ac00fec15.json +0 -1
  1317. package/.output/public/_nuxt/default.DC7ec2JI.css +0 -1
  1318. package/.output/public/_nuxt/entry.kqv_Ayaq.css +0 -1
  1319. package/.output/public/_nuxt/kehy-5uo.js +0 -1
  1320. package/.output/public/_nuxt/newKnrX1.js +0 -1
  1321. package/.output/public/_nuxt/oXG7qeES.js +0 -1
  1322. package/.output/public/_nuxt/rOvrJUdX.js +0 -1
  1323. package/.output/public/_nuxt/vnfYlYqV.js +0 -1
  1324. package/.output/public/_nuxt/x9AB1FGL.js +0 -3867
  1325. package/.output/server/node_modules/cross-spawn/index.js +0 -39
  1326. package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
  1327. package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
  1328. package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
  1329. package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  1330. package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  1331. package/.output/server/node_modules/cross-spawn/package.json +0 -73
  1332. package/.output/server/node_modules/execa/index.js +0 -268
  1333. package/.output/server/node_modules/execa/lib/command.js +0 -52
  1334. package/.output/server/node_modules/execa/lib/error.js +0 -88
  1335. package/.output/server/node_modules/execa/lib/kill.js +0 -115
  1336. package/.output/server/node_modules/execa/lib/promise.js +0 -46
  1337. package/.output/server/node_modules/execa/lib/stdio.js +0 -52
  1338. package/.output/server/node_modules/execa/lib/stream.js +0 -97
  1339. package/.output/server/node_modules/execa/package.json +0 -74
  1340. package/.output/server/node_modules/get-stream/buffer-stream.js +0 -52
  1341. package/.output/server/node_modules/get-stream/index.js +0 -61
  1342. package/.output/server/node_modules/get-stream/package.json +0 -47
  1343. package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
  1344. package/.output/server/node_modules/human-signals/build/src/main.js +0 -71
  1345. package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -19
  1346. package/.output/server/node_modules/human-signals/build/src/signals.js +0 -35
  1347. package/.output/server/node_modules/human-signals/package.json +0 -64
  1348. package/.output/server/node_modules/is-stream/index.js +0 -28
  1349. package/.output/server/node_modules/is-stream/package.json +0 -42
  1350. package/.output/server/node_modules/isexe/index.js +0 -57
  1351. package/.output/server/node_modules/isexe/mode.js +0 -41
  1352. package/.output/server/node_modules/isexe/package.json +0 -31
  1353. package/.output/server/node_modules/isexe/windows.js +0 -42
  1354. package/.output/server/node_modules/merge-stream/index.js +0 -41
  1355. package/.output/server/node_modules/merge-stream/package.json +0 -19
  1356. package/.output/server/node_modules/mimic-fn/index.js +0 -13
  1357. package/.output/server/node_modules/mimic-fn/package.json +0 -42
  1358. package/.output/server/node_modules/npm-run-path/index.js +0 -47
  1359. package/.output/server/node_modules/npm-run-path/package.json +0 -44
  1360. package/.output/server/node_modules/onetime/index.js +0 -44
  1361. package/.output/server/node_modules/onetime/package.json +0 -43
  1362. package/.output/server/node_modules/path-key/index.js +0 -16
  1363. package/.output/server/node_modules/path-key/package.json +0 -39
  1364. package/.output/server/node_modules/pg-dump-restore/lib/common.js +0 -33
  1365. package/.output/server/node_modules/pg-dump-restore/lib/index.js +0 -9
  1366. package/.output/server/node_modules/pg-dump-restore/lib/pg-dump.js +0 -95
  1367. package/.output/server/node_modules/pg-dump-restore/lib/pg-restore.js +0 -87
  1368. package/.output/server/node_modules/pg-dump-restore/package.json +0 -66
  1369. package/.output/server/node_modules/shebang-command/index.js +0 -19
  1370. package/.output/server/node_modules/shebang-command/package.json +0 -34
  1371. package/.output/server/node_modules/shebang-regex/index.js +0 -2
  1372. package/.output/server/node_modules/shebang-regex/package.json +0 -35
  1373. package/.output/server/node_modules/signal-exit/index.js +0 -202
  1374. package/.output/server/node_modules/signal-exit/package.json +0 -38
  1375. package/.output/server/node_modules/signal-exit/signals.js +0 -53
  1376. package/.output/server/node_modules/strip-final-newline/index.js +0 -16
  1377. package/.output/server/node_modules/strip-final-newline/package.json +0 -40
  1378. package/.output/server/node_modules/which/package.json +0 -43
  1379. package/.output/server/node_modules/which/which.js +0 -125
@@ -1,22 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DLBa45iT.js","./BjU0QAaV.js","./entry.kqv_Ayaq.css"])))=>i.map(i=>d[i]);
2
- var Os=Object.defineProperty;var Ps=(s,t,e)=>t in s?Os(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var ne=(s,t,e)=>Ps(s,typeof t!="symbol"?t+"":t,e);import{d as H,J as Yt,r as G,b as R,o as v,w as h,h as p,u as r,P as Jt,eu as yt,f as J,ev as dt,N as qs,cc as xt,c6 as Ze,V as Xt,O as we,a6 as ke,c9 as ze,T as mt,c as q,c8 as Zt,I as Ie,c3 as et,cQ as ae,C as f,c4 as Vs,e as Ce,c7 as Ds,aL as es,cC as bt,m as E,i as A,ba as _t,aa as Z,H as Y,G as j,t as I,j as ce,n as ue,aJ as re,A as Me,aK as le,aI as ie,p as Se,dx as Fs,b1 as Bs,b4 as Qs,a7 as pt,cH as zt,b6 as Us,dB as js,dC as Hs,b8 as Ws,ew as Gs,ex as Ks,B as ts,q as ss,s as ns,x as os,z as Ys,ey as Js,dW as Xs,dX as Zs,dY as en,ez as Pe,d2 as tn,ae as ge,K as Ct,L as as,aE as Ee,aD as Ae,aC as sn,M as Ne,ac as nn,a3 as ve,cl as rs,S as ls,eA as on,dM as an,a8 as tt,dQ as Mt,dR as rn,b9 as ln,eB as un,aB as Ve,a0 as cn,_ as is,ax as dn,eC as Lt,a5 as us,bU as mn,bl as St,bo as pn,bq as fn,bT as hn,bV as vn,bX as gn,bM as cs,aM as yn,aN as At,aO as xn,aP as bn,aQ as Nt,aS as nt,eD as It,bL as _n,dD as Cn,E as ds,eE as Sn,Q as wn,b0 as Tn,cF as En}from"./BjU0QAaV.js";import{s as Rn,_ as ms,b as $n,c as kn,a as zn}from"./DyxiJtlL.js";import{_ as Mn}from"./CKSjfllY.js";import{_ as Ln}from"./rOvrJUdX.js";import{_ as wt}from"./B_IzdKBm.js";import{M as An,a as Nn,b as ps,c as fs,d as hs,C as F,e as In,f as He,g as On,h as Pn,i as qn,j as Vn,_ as Dn}from"./Chnnd034.js";import{_ as Fn,a as Bn,b as Qn}from"./BCC0qnRS.js";import{f as ft,a as De,b as Qe}from"./-lZvfnzr.js";import{_ as Ot,a as Pt,b as qt,c as Vt}from"./BX8ZW8Wz.js";import{b as vs}from"./CdeKF_Y5.js";import{C as Un}from"./PuW66QXY.js";import{_ as jn}from"./vnfYlYqV.js";import{_ as Hn}from"./C-3-JfbB.js";import{j as Wn,g as Gn,i as Kn,_ as gs}from"./x9AB1FGL.js";import{k as Yn,m as ys,n as xs}from"./L22G0LO0.js";import{g as Je,b as Jn,s as Xn,r as Zn,u as eo,p as Dt}from"./BKKBkPNN.js";import{_ as to}from"./CUvvUJMD.js";import{u as so}from"./Cf4SYIMN.js";import{_ as Tt,c as Ft,a as ot,e as Bt,b as Qt}from"./Ceqb0tnW.js";import{f as no}from"./BKltSiU0.js";import{_ as oo,b as ao,c as ro}from"./BOzTRnyW.js";import{u as lo}from"./kehy-5uo.js";import{c as io,m as uo}from"./BbHeTL4H.js";import"./DNX5WjhQ.js";import"./EJAhTysQ.js";import"./Yhg2AuOM.js";import"./CEza5aSi.js";import"./Bdtn2mn5.js";import"./GoTwJjoS.js";import"./CPipTUnI.js";const[co,bs]=Yt(["MenuCheckboxItem","MenuRadioItem"],"MenuItemIndicatorContext");var mo=H({__name:"MenuItemIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(s){const t=co({modelValue:G(!1)});return(e,n)=>(v(),R(r(qs),{present:e.forceMount||r(dt)(r(t).modelValue.value)||r(t).modelValue.value===!0},{default:h(()=>[p(r(Jt),{as:e.as,"as-child":e.asChild,"data-state":r(yt)(r(t).modelValue.value)},{default:h(()=>[J(e.$slots,"default")]),_:3},8,["as","as-child","data-state"])]),_:3},8,["present"]))}}),po=mo,fo=H({__name:"MenuCheckboxItem",props:{modelValue:{type:[Boolean,String],required:!1,default:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select","update:modelValue"],setup(s,{emit:t}){const e=s,n=t,o=xt(e,["modelValue"]),a=Ze(o),l=Xt(e,"modelValue",n);return bs({modelValue:l}),(i,u)=>(v(),R(vs,we({role:"menuitemcheckbox"},r(a),{"aria-checked":r(dt)(r(l))?"mixed":r(l),"data-state":r(yt)(r(l)),onSelect:u[0]||(u[0]=async c=>{n("select",c),r(dt)(r(l))?l.value=!0:l.value=!r(l)})}),{default:h(()=>[J(i.$slots,"default",{modelValue:r(l)})]),_:3},16,["aria-checked","data-state"]))}}),ho=fo,vo=H({__name:"MenuGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(s){const t=s;return(e,n)=>(v(),R(r(Jt),we({role:"group"},t),{default:h(()=>[J(e.$slots,"default")]),_:3},16))}}),go=vo;const[yo,xo]=Yt("MenuRadioGroup");var bo=H({__name:"MenuRadioGroup",props:{modelValue:{type:null,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(s,{emit:t}){const e=s,n=t,o=xt(e,["modelValue"]),a=Ze(o),l=Xt(e,"modelValue",n);return xo({modelValue:l,onValueChange:i=>{l.value=i}}),(i,u)=>(v(),R(go,ke(ze(r(a))),{default:h(()=>[J(i.$slots,"default",{modelValue:r(l)})]),_:3},16))}}),_o=bo,Co=H({__name:"MenuRadioItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(s,{emit:t}){const e=s,n=t,o=xt(e,["value"]),a=Ze(o),{value:l}=mt(e),i=yo(),u=q(()=>i.modelValue.value===(l==null?void 0:l.value));return bs({modelValue:u}),(c,d)=>(v(),R(vs,we({role:"menuitemradio"},r(a),{"aria-checked":u.value,"data-state":r(yt)(u.value),onSelect:d[0]||(d[0]=async m=>{n("select",m),r(i).onValueChange(r(l))})}),{default:h(()=>[J(c.$slots,"default")]),_:3},16,["aria-checked","data-state"]))}}),So=Co,wo=H({__name:"DropdownMenuCheckboxItem",props:{modelValue:{type:[Boolean,String],required:!1},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select","update:modelValue"],setup(s,{emit:t}){const e=s,o=Zt(t);return Ie(),(a,l)=>(v(),R(r(ho),ke(ze({...e,...r(o)})),{default:h(()=>[J(a.$slots,"default")]),_:3},16))}}),To=wo,Eo=H({__name:"DropdownMenuItemIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(s){const t=s;return Ie(),(e,n)=>(v(),R(r(po),ke(ze(t)),{default:h(()=>[J(e.$slots,"default")]),_:3},16))}}),_s=Eo,Ro=H({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(s){const t=s;return Ie(),(e,n)=>(v(),R(r(An),ke(ze(t)),{default:h(()=>[J(e.$slots,"default")]),_:3},16))}}),$o=Ro,ko=H({__name:"DropdownMenuRadioGroup",props:{modelValue:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(s,{emit:t}){const e=s,o=Zt(t);return Ie(),(a,l)=>(v(),R(r(_o),ke(ze({...e,...r(o)})),{default:h(()=>[J(a.$slots,"default")]),_:3},16))}}),zo=ko,Mo=H({__name:"DropdownMenuRadioItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(s,{emit:t}){const o=et(s,t);return Ie(),(a,l)=>(v(),R(r(So),ke(ze(r(o))),{default:h(()=>[J(a.$slots,"default")]),_:3},16))}}),Lo=Mo,Ao=H({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(s){const t=s;return Ie(),(e,n)=>(v(),R(r(Nn),ke(ze(t)),{default:h(()=>[J(e.$slots,"default")]),_:3},16))}}),No=Ao;class Io{constructor(t){this.rawError=t}get nomaltliztionErrror(){var e;const t=((e=this.rawError)==null?void 0:e.message)||"Error parsing SQL execution.";if(!this.rawError)return{message:t};switch(this.rawError.dbType){case ae.POSTGRES:return this.normalizePostgresError(t);case ae.MYSQL:return this.normalizeMysqlError(t);case ae.SQLITE3:return this.normalizeSqliteError(t);default:return{message:t}}}normalizePostgresError(t){let e;return this.rawError.position&&(e=typeof this.rawError.position=="string"?Number(this.rawError.position):this.rawError.position,Number.isNaN(e)&&(e=void 0)),{message:this.rawError.message||t,position:e,hint:this.rawError.hint}}normalizeMysqlError(t){return{message:this.rawError.sqlMessage||this.rawError.message||t,hint:this.rawError.code?`Error Code: ${this.rawError.code}`:void 0}}normalizeSqliteError(t){return{message:this.rawError.message||t,hint:this.rawError.code?`Error Code: ${this.rawError.code}`:void 0}}}const Oo={class:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center"},Po=H({__name:"DropdownMenuCheckboxItem",props:{modelValue:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select","update:modelValue"],setup(s,{emit:t}){const e=s,n=t,o=q(()=>{const{class:l,...i}=e;return i}),a=et(o,n);return(l,i)=>(v(),R(r(To),we({"data-slot":"dropdown-menu-checkbox-item"},r(a),{class:r(Ce)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class)}),{default:h(()=>[f("span",Oo,[p(r(_s),null,{default:h(()=>[p(r(Vs),{class:"size-4"})]),_:1})]),J(l.$slots,"default")]),_:3},16,["class"]))}}),at=H({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(s){const t=s,e=Ds(t,"class","inset"),n=Ze(e);return(o,a)=>(v(),R(r($o),we({"data-slot":"dropdown-menu-label","data-inset":o.inset?"":void 0},r(n),{class:r(Ce)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t.class)}),{default:h(()=>[J(o.$slots,"default")]),_:3},16,["data-inset","class"]))}}),qo=H({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(s,{emit:t}){const o=et(s,t);return(a,l)=>(v(),R(r(zo),we({"data-slot":"dropdown-menu-radio-group"},r(o)),{default:h(()=>[J(a.$slots,"default")]),_:3},16))}}),Vo={class:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center"},rt=H({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(s,{emit:t}){const e=s,n=t,o=q(()=>{const{class:l,...i}=e;return i}),a=et(o,n);return(l,i)=>(v(),R(r(Lo),we({"data-slot":"dropdown-menu-radio-item"},r(a),{class:r(Ce)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class)}),{default:h(()=>[f("span",Vo,[p(r(_s),null,{default:h(()=>[p(r(Un),{class:"size-2 fill-current"})]),_:1})]),J(l.$slots,"default")]),_:3},16,["class"]))}}),lt=H({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(s){const t=s,e=q(()=>{const{class:n,...o}=t;return o});return(n,o)=>(v(),R(r(No),we({"data-slot":"dropdown-menu-separator"},e.value,{class:r(Ce)("bg-border -mx-1 my-1 h-px",t.class)}),null,16,["class"]))}});function Et(s,t){s.dispatch(Yn(s.state,t))}function Do(s){return s===ae.POSTGRES?"positional":"question-mark"}function Fo(s,t,e,n={}){if(!Object.keys(t).length)return s;const o=n.style??Do(e);let a=n.startIndex??1,l="",i=0;for(;i<s.length;){const u=s[i];if(u==="'"){const c=i++;for(;i<s.length;)if(s[i]==="'"&&s[i+1]==="'")i+=2;else if(s[i]==="'"){i++;break}else i++;l+=s.slice(c,i);continue}if(u==='"'){const c=i++;for(;i<s.length&&s[i]!=='"';)i++;i++,l+=s.slice(c,i);continue}if(u===":"&&i+1<s.length&&/[a-zA-Z_]/.test(s[i+1])){const c=i++;let d="";for(;i<s.length&&/[a-zA-Z0-9_]/.test(s[i]);)d+=s[i++];d in t?l+=o==="positional"?`$${a++}`:"?":l+=s.slice(c,i);continue}l+=u,i++}return l}function Bo(s,t,e){if(s===t)return e;let n=0,o=0;for(;o<e&&n<s.length;){const a=s[n],l=t[o],i=/\s/.test(a),u=/\s/.test(l);if(i&&u){n++,o++;continue}if(a===":"&&(l==="$"||l==="?")){for(;n<s.length&&/[:a-zA-Z0-9_]/.test(s[n]);)n++;if(l==="$")for(;o<t.length&&/[$0-9]/.test(t[o]);)o++;else o++;if(o>=e)return n;continue}a===l?(n++,o++):n++}return n}function Ut({editorView:s,originalSql:t,statementFrom:e,fileParameters:n={},errorDetail:o,clientType:a,queryPrefix:l}){if(!s||!o)return;const{message:i,position:u}=o.normalizeError||new Io(o).nomaltliztionErrror;if(!u){Uo(s,e,t,i);return}const c=`${l}${t}`,d=Fo(c,n,a),m=Bo(c,d,u),y=Math.max(m-1,0)-((l==null?void 0:l.length)||0),{from:x,to:S}=Qo(t,e,y);Et(s,[{from:x,to:S,severity:"error",message:i}])}function Qo(s,t,e){let n=e;for(;n<s.length&&!/[\s\n\r\t]/.test(s[n]);)n++;return{from:t+e,to:t+n}}function Uo(s,t,e,n){const o=[{from:t,to:t+e.length,severity:"error",message:n}];Et(s,o)}function jo(s){Et(s,[])}const Ho=s=>es.of([{key:"Mod-Enter",mac:"Cmd-Enter",run:t=>{const{currentStatements:e}=Je(t),n=Jn(t);return e.length&&s({currentStatements:e,treeNodes:n||[]}),!0},preventDefault:!0}]),Wo={},Go={class:"p-4 flex flex-col items-center justify-center h-full text-center space-y-4"},Ko={class:"text-muted-foreground space-y-3"},Yo={class:"list-disc text-sm list-inside text-left space-y-2"};function Jo(s,t){const e=Ln,n=Mn,o=wt;return v(),E("div",Go,[p(n,{class:"rounded-2xl size-20 shadow-md"},{default:h(()=>[p(e,{src:"/logo.png",alt:"@unovue"})]),_:1}),f("div",Ko,[t[7]||(t[7]=f("h2",{class:"text-md font-normal text-foreground"},"Getting Started",-1)),f("ol",Yo,[t[5]||(t[5]=f("li",null,[f("span",{class:"font-normal text-foreground"},"Write your query"),A(" in the editor. ")],-1)),t[6]||(t[6]=f("li",null,[f("span",{class:"font-normal text-foreground"},"Click inside your query"),A(" to select it. ")],-1)),f("li",null,[t[1]||(t[1]=A(" Click ")),t[2]||(t[2]=f("span",{class:"text-foreground font-normal"},"'Execute current'",-1)),t[3]||(t[3]=A(" or use shortcut ")),p(o,{class:"font-normal border rounded-md p-1 px-1.5 text-foreground"},{default:h(()=>t[0]||(t[0]=[A("⌘↵")])),_:1}),t[4]||(t[4]=A(" to run the query. "))])])])])}const Xo=bt(Wo,[["render",Jo]]),Zo={key:1,class:"text-xs text-muted-foreground ml-2"},ea=H({__name:"RawQueryEditorContextMenu",props:{contextMenuItems:{}},emits:["update:open"],setup(s,{emit:t}){const e=t,n=a=>typeof a>"u"?!0:!!a,o=a=>{e("update:open",a)};return(a,l)=>{const i=fs,u=In,c=ce,d=wt,m=He,y=On,x=qn,S=Vn,b=Pn,g=hs,_=ps;return v(),R(_,{"onUpdate:open":o},{default:h(()=>[p(i,{"as-child":""},{default:h(()=>[J(a.$slots,"default")]),_:3}),p(g,{class:"min-w-56",onCloseAutoFocus:l[0]||(l[0]=_t(()=>{},["prevent"]))},{default:h(()=>[(v(!0),E(Y,null,Z(a.contextMenuItems,(C,k)=>(v(),E(Y,{key:k},[C.type===r(F).LABEL&&n(C.condition)?(v(),R(u,{key:0,class:"font-medium text-xs text-muted-foreground"},{default:h(()=>[A(I(C.title),1)]),_:2},1024)):C.type===r(F).ACTION&&n(C.condition)?(v(),R(m,{key:1,onSelect:C.select,disabled:C.disabled},{default:h(()=>[C.icon?(v(),R(c,{key:0,name:C.icon,class:"size-4! min-w-4 text-muted-foreground"},null,8,["name"])):j("",!0),A(" "+I(C.title)+" ",1),C.shortcut?(v(),R(d,{key:1},{default:h(()=>[A(I(C.shortcut),1)]),_:2},1024)):j("",!0)]),_:2},1032,["onSelect","disabled"])):C.type===r(F).SEPARATOR&&n(C.condition)?(v(),R(y,{key:2})):C.type===r(F).SUBMENU&&n(C.condition)?(v(),R(b,{key:3,disabled:!C.items||C.items.length===0},{default:h(()=>[p(x,null,{default:h(()=>[C.icon?(v(),R(c,{key:0,name:C.icon,class:"size-4! min-w-4 text-muted-foreground mr-2"},null,8,["name"])):j("",!0),A(" "+I(C.title)+" ",1),C.desc?(v(),E("span",Zo,I(C.desc),1)):j("",!0)]),_:2},1024),p(S,{class:ue("min-w-52")},{default:h(()=>[(v(!0),E(Y,null,Z(C.items,(V,T)=>(v(),E(Y,{key:T},[V.type===r(F).ACTION&&n(V.condition)?(v(),R(m,{key:0,onSelect:V.select},{default:h(()=>[V.icon?(v(),R(c,{key:0,name:V.icon,class:"size-4! min-w-4 text-muted-foreground"},null,8,["name"])):j("",!0),A(" "+I(V.title)+" ",1),V.shortcut?(v(),R(d,{key:1},{default:h(()=>[A(I(V.shortcut),1)]),_:2},1024)):j("",!0)]),_:2},1032,["onSelect"])):V.type===r(F).LABEL&&n(V.condition)?(v(),R(u,{key:1,class:"font-medium text-xs text-muted-foreground"},{default:h(()=>[A(I(V.title),1)]),_:2},1024)):V.type===r(F).SEPARATOR&&n(V.condition)?(v(),R(y,{key:2})):j("",!0)],64))),128))]),_:2},1024)]),_:2},1032,["disabled"])):j("",!0)],64))),128))]),_:1})]),_:3})}}}),ta={},sa={class:"mb-2 flex items-center gap-1.5 text-sm font-semibold"};function na(s,t){const e=ce,n=Me,o=Bn,a=re,l=le,i=Qn,u=Fn,c=ie;return v(),R(c,null,{default:h(()=>[p(u,null,{default:h(()=>[p(a,{"as-child":""},{default:h(()=>[p(o,{"as-child":""},{default:h(()=>[p(n,{size:"iconSm",variant:"ghost",class:"h-4 w-4 p-0 text-muted-foreground hover:text-foreground",title:"How to use query variables","aria-label":"How to use query variables"},{default:h(()=>[p(e,{name:"hugeicons:help-circle",class:"size-3.5!"})]),_:1})]),_:1})]),_:1}),p(l,null,{default:h(()=>t[0]||(t[0]=[f("p",null,"How to use query variables",-1)])),_:1}),p(i,{side:"top",align:"start",class:"w-[440px] p-4 text-xs"},{default:h(()=>[f("p",sa,[p(e,{name:"hugeicons:help-circle",class:"size-4!"}),t[1]||(t[1]=A(" Passing variables in queries "))]),t[2]||(t[2]=f("p",{class:"mb-3 text-muted-foreground"},[A(" Use "),f("code",{class:"rounded bg-muted px-1"},":variable_name"),A(" syntax to bind parameters. For array operators, cast to the correct type: ")],-1)),t[3]||(t[3]=f("div",{class:"space-y-3"},[f("div",null,[f("p",{class:"mb-1 font-medium text-foreground"},[f("code",{class:"rounded bg-muted px-1"},"= ANY()")]),f("pre",{class:"overflow-x-auto whitespace-pre-wrap break-all rounded bg-muted p-2 text-xs"},`WHERE id = ANY (ARRAY[:your_variable]::integer[])
3
- WHERE status = ANY (ARRAY[:statuses]::text[])`)]),f("div",null,[f("p",{class:"mb-1 font-medium text-foreground"},[f("code",{class:"rounded bg-muted px-1"},"IN()")]),f("pre",{class:"overflow-x-auto whitespace-pre-wrap break-all rounded bg-muted p-2 text-xs"},`WHERE id IN (:your_variable)
4
- WHERE name IN (:names)`)]),f("div",null,[f("p",{class:"mb-1 font-medium text-foreground"},"Scalar variable"),f("pre",{class:"overflow-x-auto whitespace-pre-wrap break-all rounded bg-muted p-2 text-xs"},`WHERE created_at > :start_date
5
- WHERE user_id = :user_id`)])],-1)),t[4]||(t[4]=f("p",{class:"mt-3 border-t pt-2 text-muted-foreground"},[A(" Replace "),f("code",{class:"rounded bg-muted px-1"},"alias_type"),A(" with the actual PostgreSQL type, e.g. "),f("code",{class:"rounded bg-muted px-1"},"integer"),A(", "),f("code",{class:"rounded bg-muted px-1"},"uuid"),A(", "),f("code",{class:"rounded bg-muted px-1"},"text"),A(". ")],-1))]),_:1})]),_:1})]),_:1})}const oa=bt(ta,[["render",na]]),aa={class:"h-fit py-1 flex items-center justify-between px-2"},ra={class:"flex items-center gap-2"},la={class:"font-normal text-xs text-muted-foreground"},ia={key:0,class:"font-normal text-xs text-muted-foreground"},ua={key:0,class:"flex items-center gap-1"},ca={key:1,class:"flex items-center gap-1"},da={key:2},ma={key:0},pa={key:1},fa={class:"flex gap-1"},ha={class:"flex items-center"},va={class:"flex items-center"},ga={key:0},ya={key:1},xa=H({__name:"RawQueryEditorFooter",props:{cursorInfo:{},isHaveOneExecute:{type:Boolean},executeLoading:{type:Boolean},executeErrors:{type:Boolean},isStreaming:{type:Boolean},streamingRowCount:{},queryTime:{},rawQueryResultsLength:{},isRawViewMode:{type:Boolean},explainAnalyzeOptionItems:{},serializeMode:{}},emits:["onFormatCurrentStatement","onFormatAll","onExplainAnalyzeCurrent","toggleExplainOption","update:serializeMode","onExecuteCurrent","update:isRawViewMode","onCancelQuery"],setup(s){const t=G(!1);return(e,n)=>{const o=oa,a=ce,l=wt,i=Me;return v(),E("div",aa,[f("div",ra,[f("div",la," Ln "+I(e.cursorInfo.line)+", Col "+I(e.cursorInfo.column),1),p(o)]),e.isHaveOneExecute?(v(),E("div",ia,[e.isStreaming?(v(),E("span",ua,[p(a,{name:"hugeicons:loading-03",class:"size-4! animate-spin"}),A(" Streaming... "+I(r(ft)(e.streamingRowCount))+" rows ",1)])):e.executeLoading?(v(),E("span",ca,[n[9]||(n[9]=A("Processing ")),p(a,{name:"hugeicons:loading-03",class:"size-4! animate-spin"})])):(v(),E("span",da,[e.executeErrors?(v(),E("span",ma," Query: 1 error in "+I(r(De)(e.queryTime)),1)):(v(),E("span",pa," Query success: "+I(r(ft)(e.rawQueryResultsLength))+" rows in "+I(r(De)(e.queryTime)),1))]))])):j("",!0),f("div",fa,[p(r(ie),null,{default:h(()=>[p(r(re),null,{default:h(()=>[f("div",ha,[p(i,{onClick:n[0]||(n[0]=u=>e.$emit("onFormatCurrentStatement")),variant:"outline",size:"xxs",class:"rounded-r-none"},{default:h(()=>[p(a,{name:"hugeicons:magic-wand-01"}),n[11]||(n[11]=A(" Format ")),p(l,null,{default:h(()=>n[10]||(n[10]=[A("⌘S")])),_:1})]),_:1}),p(r(Ot),null,{default:h(()=>[p(r(Pt),{"as-child":""},{default:h(()=>[p(i,{variant:"outline",size:"iconSm",class:"rounded-l-none border-l-0 px-2"},{default:h(()=>[p(a,{name:"hugeicons:arrow-down-01",class:"size-4! min-w-4"})]),_:1})]),_:1}),p(r(qt),{align:"end",class:"min-w-44"},{default:h(()=>[p(r(at),{class:"py-0"},{default:h(()=>n[12]||(n[12]=[A("Format Options ")])),_:1}),p(r(lt)),p(r(Vt),{onClick:n[1]||(n[1]=u=>e.$emit("onFormatCurrentStatement")),class:"h-6 cursor-pointer"},{default:h(()=>[n[14]||(n[14]=A(" Current Statement ")),p(l,null,{default:h(()=>n[13]||(n[13]=[A("⌘S")])),_:1})]),_:1}),p(r(Vt),{onClick:n[2]||(n[2]=u=>e.$emit("onFormatAll")),class:"h-6 cursor-pointer"},{default:h(()=>[n[16]||(n[16]=A(" All Statement ")),p(l,null,{default:h(()=>n[15]||(n[15]=[A("⇧⌥F")])),_:1})]),_:1})]),_:1})]),_:1})])]),_:1}),p(r(le),null,{default:h(()=>n[17]||(n[17]=[f("p",null,"Format current statement (⌘S)",-1)])),_:1})]),_:1}),p(r(ie),null,{default:h(()=>[p(r(re),null,{default:h(()=>[f("div",va,[p(i,{onClick:n[3]||(n[3]=u=>e.$emit("onExplainAnalyzeCurrent")),variant:"outline",size:"xxs",class:"rounded-r-none"},{default:h(()=>[p(a,{name:"hugeicons:analytics-up"}),n[19]||(n[19]=A(" Explain ")),p(l,null,{default:h(()=>n[18]||(n[18]=[A("⌘E")])),_:1})]),_:1}),p(r(Ot),{open:r(t),"onUpdate:open":n[6]||(n[6]=u=>Se(t)?t.value=u:null)},{default:h(()=>[p(r(Pt),{"as-child":""},{default:h(()=>[p(i,{variant:"outline",size:"iconSm",class:"rounded-l-none border-l-0 px-2"},{default:h(()=>[p(a,{name:"hugeicons:arrow-down-01",class:"size-4! min-w-4"})]),_:1})]),_:1}),p(r(qt),{align:"end",class:"min-w-52"},{default:h(()=>[p(r(at),{class:"py-0"},{default:h(()=>n[20]||(n[20]=[A("Explain Analyze Options")])),_:1}),p(r(lt)),(v(!0),E(Y,null,Z(e.explainAnalyzeOptionItems,u=>(v(),R(r(Po),{key:u.key,"model-value":u.checked,onSelect:n[4]||(n[4]=_t(()=>{},["prevent"])),"onUpdate:modelValue":c=>e.$emit("toggleExplainOption",u.key),class:"h-6 cursor-pointer"},{default:h(()=>[A(I(u.label),1)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128)),p(r(lt)),p(r(at),{class:"py-0"},{default:h(()=>n[21]||(n[21]=[A("Serialize")])),_:1}),p(r(qo),{"model-value":e.serializeMode,"onUpdate:modelValue":n[5]||(n[5]=u=>e.$emit("update:serializeMode",u))},{default:h(()=>[p(r(rt),{value:"NONE",class:"h-6 cursor-pointer"},{default:h(()=>n[22]||(n[22]=[A("None")])),_:1}),p(r(rt),{value:"TEXT",class:"h-6 cursor-pointer"},{default:h(()=>n[23]||(n[23]=[A("Text")])),_:1}),p(r(rt),{value:"BINARY",class:"h-6 cursor-pointer"},{default:h(()=>n[24]||(n[24]=[A("Binary")])),_:1})]),_:1},8,["model-value"])]),_:1})]),_:1},8,["open"])])]),_:1}),p(r(le),null,{default:h(()=>n[25]||(n[25]=[f("p",null,"Run Explain Analyze (⌘E) or open options",-1)])),_:1})]),_:1}),p(r(ie),null,{default:h(()=>[p(r(re),{"as-child":""},{default:h(()=>[e.isStreaming||e.executeLoading?(v(),R(i,{key:0,onClick:n[7]||(n[7]=u=>e.$emit("onCancelQuery")),variant:"outline",size:"xxs"},{default:h(()=>[p(a,{name:"hugeicons:stop",class:"size-4! text-red-500"}),n[26]||(n[26]=A(" Cancel query "))]),_:1})):(v(),R(i,{key:1,onClick:n[8]||(n[8]=u=>e.$emit("onExecuteCurrent")),variant:"outline",size:"xxs"},{default:h(()=>[p(a,{name:"hugeicons:play"}),n[28]||(n[28]=A(" Execute current ")),p(l,null,{default:h(()=>n[27]||(n[27]=[A("⌘↵")])),_:1})]),_:1}))]),_:1}),p(r(le),null,{default:h(()=>[e.isStreaming||e.executeLoading?(v(),E("p",ga,"Cancel query")):(v(),E("p",ya,"Execute Query (⌘↵)"))]),_:1})]),_:1})])])}}}),ba={key:0,class:"flex items-center gap-2 truncate"},_a={key:1,class:"opacity-50"},Ca={class:"flex items-center gap-2"},Sa=H({__name:"PureConnectionSelector",props:{class:{},workspaceId:{},connectionId:{},connections:{},connection:{}},emits:["update:connectionId"],setup(s){const t=s,e=G(!1),{createConnection:n}=Fs(),o=G(!1),a=i=>{n(i)},l=()=>{o.value=!0,e.value=!1};return(i,u)=>{const c=ce,d=Hs,m=Us;return v(),E(Y,null,[p(r(Hn),{open:r(o),"editing-connection":null,"onUpdate:open":u[0]||(u[0]=y=>o.value=y),onAddNew:a,workspaceId:i.workspaceId},null,8,["open","workspaceId"]),p(r(Bs),{"onUpdate:modelValue":u[1]||(u[1]=y=>i.$emit("update:connectionId",y)),"model-value":i.connectionId,open:r(e),"onUpdate:open":u[2]||(u[2]=y=>Se(e)?e.value=y:null)},{default:h(()=>[p(r(Qs),{class:ue(r(Ce)(t.class," w-fit max-w-[12rem] cursor-pointer")),size:"sm"},{default:h(()=>{var y,x;return[i.connection?(v(),E("div",ba,[(v(),R(pt((y=r(zt)(i.connection.type))==null?void 0:y.icon),{class:"size-4! min-w-4!"})),A(" "+I((x=i.connection)==null?void 0:x.name),1)])):(v(),E("div",_a,"Select connection"))]}),_:1},8,["class"]),p(m,null,{default:h(()=>[p(r(js),null,{default:h(()=>[f("div",{class:"flex px-2 py-0.5 h-8 hover:bg-muted rounded-md font-normal text-sm items-center gap-1 cursor-pointer",onClick:l},[p(c,{name:"lucide:plus"}),u[3]||(u[3]=A(" Add new connection "))]),i.connections.length?(v(),R(d,{key:0})):j("",!0),(v(!0),E(Y,null,Z(i.connections,y=>(v(),R(r(Ws),{class:"cursor-pointer",value:y.id},{default:h(()=>{var x;return[f("div",Ca,[(v(),R(pt((x=r(zt)(y.type))==null?void 0:x.icon),{class:"size-4!"})),A(" "+I(y.name),1)])]}),_:2},1032,["value"]))),256))]),_:1})]),_:1})]),_:1},8,["model-value","open"])],64)}}}),Cs=H({__name:"VariableEditor",props:{fileVariables:{}},emits:["updateVariables"],setup(s,{emit:t}){const e=t,n=G({line:1,column:1}),o=[Gs(`Please input your json variable
6
- {
7
- "key": "value"
8
- }`),Rn(l=>{try{return Ks(l,{type:"space",size:2})}catch{return l}}),Wn(),ys(),xs(Gn())],a=l=>{e("updateVariables",l)};return(l,i)=>(v(),R(ms,{"onUpdate:modelValue":a,"onUpdate:cursorInfo":i[0]||(i[0]=u=>n.value=u),modelValue:l.fileVariables,extensions:o,disabled:!1,ref:"codeEditorRef"},null,8,["modelValue"]))}}),wa={class:"h-full flex flex-col overflow-y-auto"},Ta=H({__name:"AddVariableModal",props:{open:{},fileVariables:{}},emits:["update:open","updateVariables"],setup(s,{emit:t}){const e=t,n=async o=>{e("updateVariables",o)};return(o,a)=>(v(),R(r(ts),{class:"",open:!!o.open,"onUpdate:open":a[1]||(a[1]=l=>e("update:open",l))},{default:h(()=>[p(r(ss),{class:"w-[60vw] h-[50vh] flex flex-col justify-between min-w-[60vw]"},{default:h(()=>[p(r(ns),null,{default:h(()=>[p(r(os),null,{default:h(()=>a[2]||(a[2]=[A(" Add Variable "),f("a",{class:"underline",href:"https://www.w3schools.com/js/js_json_syntax.asp",target:"_blank"}," (JSON format)",-1)])),_:1})]),_:1}),f("div",wa,[p(Cs,{onUpdateVariables:n,fileVariables:o.fileVariables},null,8,["fileVariables"])]),p(r(Ys),{class:"mt-2"},{default:h(()=>[p(r(Me),{onClick:a[0]||(a[0]=l=>e("update:open",!1))},{default:h(()=>a[3]||(a[3]=[A(" Save ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]))}}),Ea=H({__name:"RawQueryConfigModal",props:{open:{}},emits:["update:open"],setup(s,{emit:t}){const e=t;return(n,o)=>(v(),R(r(ts),{class:"",open:!!n.open,"onUpdate:open":o[0]||(o[0]=a=>e("update:open",a))},{default:h(()=>[p(r(ss),{class:"w-[50vw] h-[70vh] flex flex-col justify-between min-w-[50vw]"},{default:h(()=>[p(r(ns),null,{default:h(()=>[p(r(os),null,{default:h(()=>o[1]||(o[1]=[A(" Editor configs ")])),_:1})]),_:1}),p(Js)]),_:1})]),_:1},8,["open"]))}}),Ra={class:"flex items-center justify-between p-1 rounded-md bg-muted"},$a={class:"flex gap-2 items-center"},ka=H({__name:"RawQueryEditorHeader",props:{currentFileInfo:{},fileVariables:{},workspaceId:{},connections:{},connection:{},codeEditorLayout:{}},emits:["update:connectionId","update:updateFileVariables"],setup(s){const t=G(!1),e=G(!1),n=G(!1),o=()=>{t.value=!0},a=()=>{e.value=!0};return(l,i)=>{const u=ce,c=jn,d=en,m=Zs,y=Xs,x=Me;return v(),E(Y,null,[p(Ta,{onUpdateVariables:i[0]||(i[0]=S=>l.$emit("update:updateFileVariables",S)),"file-variables":l.fileVariables,open:r(t),"onUpdate:open":i[1]||(i[1]=S=>Se(t)?t.value=S:null)},null,8,["file-variables","open"]),p(Ea,{open:r(e),"onUpdate:open":i[2]||(i[2]=S=>Se(e)?e.value=S:null)},null,8,["open"]),f("div",Ra,[f("div",null,[p(y,null,{default:h(()=>[p(m,{class:"gap-0!"},{default:h(()=>[p(d,null,{default:h(()=>[p(c,{class:"flex items-center gap-0.5"},{default:h(()=>{var S,b;return[p(u,{name:(S=l.currentFileInfo)==null?void 0:S.icon},null,8,["name"]),A(" "+I((b=l.currentFileInfo)==null?void 0:b.title),1)]}),_:1})]),_:1})]),_:1})]),_:1})]),f("div",$a,[l.codeEditorLayout===r(Pe).horizontal?(v(),R(r(ie),{key:0},{default:h(()=>[p(r(re),{"as-child":""},{default:h(()=>[p(x,{onClick:o,variant:"outline",size:"xs",class:"relative"},{default:h(()=>[r(n)?(v(),R(u,{key:0,name:"lucide:triangle-alert",class:"absolute -top-1 -right-1 text-red-400"})):j("",!0),p(u,{name:"hugeicons:absolute"}),i[4]||(i[4]=A(" Add variables "))]),_:1})]),_:1}),p(r(le),null,{default:h(()=>i[5]||(i[5]=[f("p",null,"Add variables",-1)])),_:1})]),_:1})):j("",!0),p(r(ie),null,{default:h(()=>[p(r(re),{"as-child":""},{default:h(()=>{var S;return[p(Sa,{connectionId:((S=l.currentFileInfo)==null?void 0:S.connectionId)||"","onUpdate:connectionId":i[3]||(i[3]=b=>l.$emit("update:connectionId",b)),connections:l.connections,connection:l.connection,class:"w-16 h-6! px-1.5",workspaceId:l.workspaceId},null,8,["connectionId","connections","connection","workspaceId"])]}),_:1}),p(r(le),null,{default:h(()=>i[6]||(i[6]=[f("p",null,"Select connection",-1)])),_:1})]),_:1}),p(r(ie),null,{default:h(()=>[p(r(re),{"as-child":""},{default:h(()=>[p(x,{onClick:a,variant:"outline",size:"iconSm"},{default:h(()=>[p(u,{name:"hugeicons:dashboard-square-02"})]),_:1})]),_:1}),p(r(le),null,{default:h(()=>i[7]||(i[7]=[f("p",null,"Query Settings",-1)])),_:1})]),_:1})])])],64)}}}),Ue={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(s,{emit:t}){const e=t,n=s,o=tn(),a=G([]),l=q(()=>a.value.reduce((w,$)=>(w[~~$.id]=$)&&w,{})),i=q(()=>a.value.length),u=G(null),c=G(!1),d=G({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=G({splitter:null,timeoutId:null}),y=q(()=>({[`splitpanes splitpanes--${n.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":d.value.dragging})),x=()=>{document.addEventListener("mousemove",g,{passive:!1}),document.addEventListener("mouseup",_),"ontouchstart"in window&&(document.addEventListener("touchmove",g,{passive:!1}),document.addEventListener("touchend",_))},S=()=>{document.removeEventListener("mousemove",g,{passive:!1}),document.removeEventListener("mouseup",_),"ontouchstart"in window&&(document.removeEventListener("touchmove",g,{passive:!1}),document.removeEventListener("touchend",_))},b=(w,$)=>{const L=w.target.closest(".splitpanes__splitter");if(L){const{left:z,top:M}=L.getBoundingClientRect(),{clientX:Q,clientY:K}="ontouchstart"in window&&w.touches?w.touches[0]:w;d.value.cursorOffset=n.horizontal?K-M:Q-z}x(),d.value.mouseDown=!0,d.value.activeSplitter=$},g=w=>{d.value.mouseDown&&(w.preventDefault(),d.value.dragging=!0,requestAnimationFrame(()=>{D(T(w)),me("resize",{event:w},!0)}))},_=w=>{d.value.dragging&&(window.getSelection().removeAllRanges(),me("resized",{event:w},!0)),d.value.mouseDown=!1,d.value.activeSplitter=null,setTimeout(()=>{d.value.dragging=!1,S()},100)},C=(w,$)=>{"ontouchstart"in window&&(w.preventDefault(),m.value.splitter===$?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,k(w,$),m.value.splitter=null):(m.value.splitter=$,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500))),d.value.dragging||me("splitter-click",{event:w,index:$},!0)},k=(w,$)=>{if(me("splitter-dblclick",{event:w,index:$},!0),n.maximizePanes){let L=0;a.value=a.value.map((z,M)=>(z.size=M===$?z.max:z.min,M!==$&&(L+=z.min),z)),a.value[$].size-=L,me("pane-maximize",{event:w,index:$,pane:a.value[$]}),me("resized",{event:w,index:$},!0)}},V=(w,$)=>{me("pane-click",{event:w,index:l.value[$].index,pane:l.value[$]})},T=w=>{const $=u.value.getBoundingClientRect(),{clientX:L,clientY:z}="ontouchstart"in window&&w.touches?w.touches[0]:w;return{x:L-(n.horizontal?0:d.value.cursorOffset)-$.left,y:z-(n.horizontal?d.value.cursorOffset:0)-$.top}},U=w=>{w=w[n.horizontal?"y":"x"];const $=u.value[n.horizontal?"clientHeight":"clientWidth"];return n.rtl&&!n.horizontal&&(w=$-w),w*100/$},D=w=>{const $=d.value.activeSplitter;let L={prevPanesSize:B($),nextPanesSize:O($),prevReachedMinPanes:0,nextReachedMinPanes:0};const z=0+(n.pushOtherPanes?0:L.prevPanesSize),M=100-(n.pushOtherPanes?0:L.nextPanesSize),Q=Math.max(Math.min(U(w),M),z);let K=[$,$+1],te=a.value[K[0]]||null,pe=a.value[K[1]]||null;const $t=te.max<100&&Q>=te.max+L.prevPanesSize,Is=pe.max<100&&Q<=100-(pe.max+O($+1));if($t||Is){$t?(te.size=te.max,pe.size=Math.max(100-te.max-L.prevPanesSize-L.nextPanesSize,0)):(te.size=Math.max(100-pe.max-L.prevPanesSize-O($+1),0),pe.size=pe.max);return}if(n.pushOtherPanes){const kt=N(L,Q);if(!kt)return;({sums:L,panesToResize:K}=kt),te=a.value[K[0]]||null,pe=a.value[K[1]]||null}te!==null&&(te.size=Math.min(Math.max(Q-L.prevPanesSize-L.prevReachedMinPanes,te.min),te.max)),pe!==null&&(pe.size=Math.min(Math.max(100-Q-L.nextPanesSize-L.nextReachedMinPanes,pe.min),pe.max))},N=(w,$)=>{const L=d.value.activeSplitter,z=[L,L+1];return $<w.prevPanesSize+a.value[z[0]].min&&(z[0]=P(L).index,w.prevReachedMinPanes=0,z[0]<L&&a.value.forEach((M,Q)=>{Q>z[0]&&Q<=L&&(M.size=M.min,w.prevReachedMinPanes+=M.min)}),w.prevPanesSize=B(z[0]),z[0]===void 0)?(w.prevReachedMinPanes=0,a.value[0].size=a.value[0].min,a.value.forEach((M,Q)=>{Q>0&&Q<=L&&(M.size=M.min,w.prevReachedMinPanes+=M.min)}),a.value[z[1]].size=100-w.prevReachedMinPanes-a.value[0].min-w.prevPanesSize-w.nextPanesSize,null):$>100-w.nextPanesSize-a.value[z[1]].min&&(z[1]=W(L).index,w.nextReachedMinPanes=0,z[1]>L+1&&a.value.forEach((M,Q)=>{Q>L&&Q<z[1]&&(M.size=M.min,w.nextReachedMinPanes+=M.min)}),w.nextPanesSize=O(z[1]-1),z[1]===void 0)?(w.nextReachedMinPanes=0,a.value.forEach((M,Q)=>{Q<i.value-1&&Q>=L+1&&(M.size=M.min,w.nextReachedMinPanes+=M.min)}),a.value[z[0]].size=100-w.prevPanesSize-O(z[0]-1),null):{sums:w,panesToResize:z}},B=w=>a.value.reduce(($,L,z)=>$+(z<w?L.size:0),0),O=w=>a.value.reduce(($,L,z)=>$+(z>w+1?L.size:0),0),P=w=>[...a.value].reverse().find($=>$.index<w&&$.size>$.min)||{},W=w=>a.value.find($=>$.index>w+1&&$.size>$.min)||{},X=()=>{var w;const $=Array.from(((w=u.value)==null?void 0:w.children)||[]);for(const L of $){const z=L.classList.contains("splitpanes__pane"),M=L.classList.contains("splitpanes__splitter");!z&&!M&&(L.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},ee=(w,$,L=!1)=>{const z=w-1,M=document.createElement("div");M.classList.add("splitpanes__splitter"),L||(M.onmousedown=Q=>b(Q,z),typeof window<"u"&&"ontouchstart"in window&&(M.ontouchstart=Q=>b(Q,z)),M.onclick=Q=>C(Q,z+1)),M.ondblclick=Q=>k(Q,z+1),$.parentNode.insertBefore(M,$)},Le=w=>{w.onmousedown=void 0,w.onclick=void 0,w.ondblclick=void 0,w.remove()},Te=()=>{var w;const $=Array.from(((w=u.value)==null?void 0:w.children)||[]);for(const z of $)z.className.includes("splitpanes__splitter")&&Le(z);let L=0;for(const z of $)z.className.includes("splitpanes__pane")&&(!L&&n.firstSplitter?ee(L,z,!0):L&&ee(L,z),L++)},Oe=({uid:w,...$})=>{const L=l.value[w];for(const[z,M]of Object.entries($))L[z]=M},de=w=>{var $;let L=-1;Array.from((($=u.value)==null?void 0:$.children)||[]).some(z=>(z.className.includes("splitpanes__pane")&&L++,z.isSameNode(w.el))),a.value.splice(L,0,{...w,index:L}),a.value.forEach((z,M)=>z.index=M),c.value&&ve(()=>{Te(),ye({addedPane:a.value[L]}),me("pane-add",{pane:a.value[L]})})},he=w=>{const $=a.value.findIndex(z=>z.id===w);a.value[$].el=null;const L=a.value.splice($,1)[0];a.value.forEach((z,M)=>z.index=M),ve(()=>{Te(),me("pane-remove",{pane:L}),ye({removedPane:{...L}})})},ye=(w={})=>{!w.addedPane&&!w.removedPane?Be():a.value.some($=>$.givenSize!==null||$.min||$.max<100)?As(w):be(),c.value&&me("resized")},be=()=>{const w=100/i.value;let $=0;const L=[],z=[];for(const M of a.value)M.size=Math.max(Math.min(w,M.max),M.min),$-=M.size,M.size>=M.max&&L.push(M.id),M.size<=M.min&&z.push(M.id);$>.1&&st($,L,z)},Be=()=>{let w=100;const $=[],L=[];let z=0;for(const Q of a.value)w-=Q.size,Q.givenSize!==null&&z++,Q.size>=Q.max&&$.push(Q.id),Q.size<=Q.min&&L.push(Q.id);let M=100;if(w>.1){for(const Q of a.value)Q.givenSize===null&&(Q.size=Math.max(Math.min(w/(i.value-z),Q.max),Q.min)),M-=Q.size;M>.1&&st(M,$,L)}},As=({addedPane:w,removedPane:$}={})=>{let L=100/i.value,z=0;const M=[],Q=[];((w==null?void 0:w.givenSize)??null)!==null&&(L=(100-w.givenSize)/(i.value-1));for(const K of a.value)z-=K.size,K.size>=K.max&&M.push(K.id),K.size<=K.min&&Q.push(K.id);if(!(Math.abs(z)<.1)){for(const K of a.value)(w==null?void 0:w.givenSize)!==null&&(w==null?void 0:w.id)===K.id||(K.size=Math.max(Math.min(L,K.max),K.min)),z-=K.size,K.size>=K.max&&M.push(K.id),K.size<=K.min&&Q.push(K.id);z>.1&&st(z,M,Q)}},st=(w,$,L)=>{let z;w>0?z=w/(i.value-$.length):z=w/(i.value-L.length),a.value.forEach((M,Q)=>{if(w>0&&!$.includes(M.id)){const K=Math.max(Math.min(M.size+z,M.max),M.min),te=K-M.size;w-=te,M.size=K}else if(!L.includes(M.id)){const K=Math.max(Math.min(M.size+z,M.max),M.min),te=K-M.size;w-=te,M.size=K}}),Math.abs(w)>.1&&ve(()=>{c.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},me=(w,$=void 0,L=!1)=>{const z=($==null?void 0:$.index)??d.value.activeSplitter??null;e(w,{...$,...z!==null&&{index:z},...L&&z!==null&&{prevPane:a.value[z-(n.firstSplitter?1:0)],nextPane:a.value[z+(n.firstSplitter?0:1)]},panes:a.value.map(M=>({min:M.min,max:M.max,size:M.size}))})};ge(()=>n.firstSplitter,()=>Te()),Ct(()=>{X(),Te(),ye(),me("ready"),c.value=!0}),as(()=>c.value=!1);const Ns=()=>{var w;return nn("div",{ref:u,class:y.value},(w=o.default)==null?void 0:w.call(o))};return Ee("panes",a),Ee("indexedPanes",l),Ee("horizontal",q(()=>n.horizontal)),Ee("requestUpdate",Oe),Ee("onPaneAdd",de),Ee("onPaneRemove",he),Ee("onPaneClick",V),(w,$)=>(v(),R(pt(Ns)))}},Re={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(s){var t;const e=s,n=Ae("requestUpdate"),o=Ae("onPaneAdd"),a=Ae("horizontal"),l=Ae("onPaneRemove"),i=Ae("onPaneClick"),u=(t=sn())==null?void 0:t.uid,c=Ae("indexedPanes"),d=q(()=>c.value[u]),m=G(null),y=q(()=>{const g=isNaN(e.size)||e.size===void 0?0:parseFloat(e.size);return Math.max(Math.min(g,S.value),x.value)}),x=q(()=>{const g=parseFloat(e.minSize);return isNaN(g)?0:g}),S=q(()=>{const g=parseFloat(e.maxSize);return isNaN(g)?100:g}),b=q(()=>{var g;return`${a.value?"height":"width"}: ${(g=d.value)==null?void 0:g.size}%`});return ge(()=>y.value,g=>n({uid:u,size:g})),ge(()=>x.value,g=>n({uid:u,min:g})),ge(()=>S.value,g=>n({uid:u,max:g})),Ct(()=>{o({id:u,el:m.value,min:x.value,max:S.value,givenSize:e.size===void 0?null:y.value,size:y.value})}),as(()=>l(u)),(g,_)=>(v(),E("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:_[0]||(_[0]=C=>r(i)(C,g._.uid)),style:Ne(b.value)},[J(g.$slots,"default")],4))}},za={class:"w-full h-full"},Ma={class:"flex flex-col w-full h-full overflow-y-auto"},La={class:"flex flex-col flex-1 h-full p-1"},Aa={class:"flex flex-col flex-1 h-full p-1 pl-0 relative"},Na=H({__name:"RawQueryLayout",props:{layout:{},customLayout:{},showResultPanel:{type:Boolean}},setup(s){const t=s,e=rs(),{editorLayoutSizes:n,editorLayoutInnerVariableSizes:o}=ls(e),a=T=>{n.value=[T[0].size,T[1].size]},l=T=>{o.value=[T[0].size,T[1].size]},i=q(()=>n.value[0]),u=q(()=>o.value[0]),c=q(()=>o.value[1]),d=q(()=>n.value[1]),m=q(()=>t.layout===Pe.horizontalWithVariables||t.layout===Pe.vertical),y=q(()=>t.layout===Pe.horizontalWithVariables),x=q(()=>!!t.customLayout),S=q(()=>{var T;return((T=t.customLayout)==null?void 0:T.direction)==="vertical"}),b=q(()=>{var T,U;return((U=(T=t.customLayout)==null?void 0:T.innerSplit)==null?void 0:U.direction)==="vertical"}),g=T=>{var N,B,O,P,W;const U=(N=t.customLayout)==null?void 0:N.id;if(!U)return((O=(B=t.customLayout)==null?void 0:B.panels[T])==null?void 0:O.defaultSize)??50;const D=e.customLayoutSizes[U];return(D==null?void 0:D.panels[T])??((W=(P=t.customLayout)==null?void 0:P.panels[T])==null?void 0:W.defaultSize)??50},_=T=>{var N,B,O,P,W,X,ee;const U=(N=t.customLayout)==null?void 0:N.id;if(!U)return((P=(O=(B=t.customLayout)==null?void 0:B.innerSplit)==null?void 0:O.panels[T])==null?void 0:P.defaultSize)??50;const D=e.customLayoutSizes[U];return(D==null?void 0:D.innerPanels[T])??((ee=(X=(W=t.customLayout)==null?void 0:W.innerSplit)==null?void 0:X.panels[T])==null?void 0:ee.defaultSize)??50},C=T=>{var D;const U=(D=t.customLayout)==null?void 0:D.id;U&&e.updateCustomLayoutSizes(U,T.map(N=>N.size))},k=T=>{var N,B,O;const U=(N=t.customLayout)==null?void 0:N.id;if(!U)return;const D=((B=e.customLayoutSizes[U])==null?void 0:B.panels)??((O=t.customLayout)==null?void 0:O.panels.map(P=>P.defaultSize))??[];e.updateCustomLayoutSizes(U,D,T.map(P=>P.size))},V={content:"flex flex-col w-full h-full overflow-y-auto",variables:"flex flex-col flex-1 h-full p-1",result:"flex flex-col flex-1 h-full p-1 pl-0 relative"};return(T,U)=>(v(),E("div",za,[r(x)&&T.customLayout?(v(),R(r(Ue),{key:0,class:"default-theme",horizontal:r(S),onResize:U[1]||(U[1]=D=>C(D.panes))},{default:h(()=>[(v(!0),E(Y,null,Z(T.customLayout.panels,(D,N)=>(v(),E(Y,{key:N},[T.customLayout.innerSplit&&T.customLayout.innerSplit.panelIndex===N?(v(),R(r(Re),{key:0,size:g(N),"min-size":D.minSize,"max-size":D.maxSize},{default:h(()=>[p(r(Ue),{horizontal:r(b),class:"default-theme",onResize:U[0]||(U[0]=B=>k(B.panes))},{default:h(()=>[(v(!0),E(Y,null,Z(T.customLayout.innerSplit.panels,(B,O)=>(v(),R(r(Re),{key:`inner-${O}`,size:_(O),"min-size":B.minSize,"max-size":B.maxSize},{default:h(()=>[f("div",{class:ue(V[B.slot])},[J(T.$slots,B.slot)],2)]),_:2},1032,["size","min-size","max-size"]))),128))]),_:3},8,["horizontal"])]),_:2},1032,["size","min-size","max-size"])):(v(),R(r(Re),{key:1,size:g(N),"min-size":D.minSize,"max-size":D.maxSize},{default:h(()=>[f("div",{class:ue(V[D.slot])},[J(T.$slots,D.slot)],2)]),_:2},1032,["size","min-size","max-size"]))],64))),128))]),_:3},8,["horizontal"])):(v(),R(r(Ue),{key:1,onResize:U[3]||(U[3]=D=>a(D.panes)),class:"default-theme",horizontal:T.layout===r(Pe).vertical},{default:h(()=>[p(r(Re),{size:r(i)},{default:h(()=>[p(r(Ue),{horizontal:r(y),onResize:U[2]||(U[2]=D=>r(m)?l(D.panes):null)},{default:h(()=>[p(r(Re),{size:r(m)?r(u):100,"min-size":"30"},{default:h(()=>[f("div",Ma,[J(T.$slots,"content")])]),_:3},8,["size"]),r(m)?(v(),R(r(Re),{key:0,size:r(c),"min-size":"0","max-size":"70"},{default:h(()=>[f("div",La,[J(T.$slots,"variables")])]),_:3},8,["size"])):j("",!0)]),_:3},8,["horizontal"])]),_:3},8,["size"]),t.showResultPanel!==!1?(v(),R(r(Re),{key:0,size:r(d),"min-size":"0","max-size":"80"},{default:h(()=>[f("div",Aa,[J(T.$slots,"result")])]),_:3},8,["size"])):j("",!0)]),_:3},8,["horizontal"]))]))}}),Ia={class:"h-full flex flex-col p-2"},Oa={class:"flex items-center justify-between mb-2"},Pa={class:"flex items-center gap-2 text-xs text-muted-foreground"},qa={key:0,class:"mb-3 p-2 bg-muted/50 rounded-md border text-xs"},Va={class:"text-muted-foreground mb-1 flex items-center gap-1"},Da={class:"text-[11px] line-clamp-2"},Fa={key:1,class:"mb-3 p-3 bg-red-50 border border-red-200 rounded-md text-sm text-red-600"},Ba={class:"flex items-center gap-2"},Qa={key:2,class:"flex-1 flex items-center justify-center text-muted-foreground"},Ua={class:"text-center"},ja={class:"text-sm mb-1"},Ha={class:"flex flex-wrap justify-center gap-2"},Wa={key:0,class:"whitespace-pre-wrap"},Ga={key:1,class:"prose prose-sm dark:prose-invert max-w-none prose-pre:bg-muted prose-pre:text-foreground"},Ka={key:0,class:"whitespace-pre-wrap"},Ya={key:1,class:"flex gap-3"},Ja={class:"bg-muted rounded-lg p-3 text-sm"},Xa={class:"flex items-center gap-2"},Za={key:4,class:"flex flex-col gap-2"},er=H({__name:"ResultTabAgentView",props:{activeTab:{}},setup(s){const t=s,e=q(()=>t.activeTab.metadata.statementQuery),{selectedProvider:n,selectedModel:o,isLoading:a,error:l,messages:i,hasApiKey:u,currentProvider:c,sendMessage:d,clearChat:m}=so({body:()=>({sqlContext:e.value})}),{openSettings:y}=an(),x=G(""),S=G(null),b=async C=>{if(C.preventDefault(),!x.value.trim()||a.value)return;const k=x.value;x.value="",await d(k),await ve(),g()},g=()=>{S.value&&(S.value.scrollTop=S.value.scrollHeight)};ge(()=>i.value.length,()=>{ve(()=>g())}),ge(()=>{const C=i.value[i.value.length-1];return C!=null&&C.parts?C.parts.filter(k=>k.type==="text").map(k=>k.text).join(""):""},()=>{ve(()=>g())});const _=async C=>{await d(C),await ve(),g()};return(C,k)=>{var N,B,O;const V=ce,T=Me,U=tt,D=to;return v(),E("div",Ia,[f("div",Oa,[f("div",Pa,[p(V,{name:"hugeicons:chat-bot",class:"size-4"}),k[8]||(k[8]=f("span",null,"SQL Assistant",-1)),f("div",null,[p(r(ie),null,{default:h(()=>[p(r(re),{"as-child":""},{default:h(()=>[f("div",null,[p(on,{provider:r(n),"onUpdate:provider":k[0]||(k[0]=P=>Se(n)?n.value=P:null),model:r(o),"onUpdate:model":k[1]||(k[1]=P=>Se(o)?o.value=P:null),class:"min-w-[160px] h-6!"},null,8,["provider","model"])])]),_:1}),p(r(le),null,{default:h(()=>k[7]||(k[7]=[f("p",null,"Select AI Model",-1)])),_:1})]),_:1})])]),p(r(ie),null,{default:h(()=>[p(r(re),{"as-child":""},{default:h(()=>[p(T,{variant:"ghost",size:"xs",onClick:r(m),disabled:r(i).length===0},{default:h(()=>[p(V,{name:"lucide:trash-2",class:"size-3.5"})]),_:1},8,["onClick","disabled"])]),_:1}),p(r(le),null,{default:h(()=>k[9]||(k[9]=[f("p",null,"Clear chat history",-1)])),_:1})]),_:1})]),r(e)?(v(),E("div",qa,[f("div",Va,[p(V,{name:"hugeicons:sql",class:"size-3"}),k[10]||(k[10]=A(" Current Query Context: "))]),f("code",Da,I(r(e)),1)])):j("",!0),r(l)?(v(),E("div",Fa,[f("div",Ba,[p(V,{name:"lucide:alert-circle",class:"size-4"}),A(" "+I(r(l)),1)])])):j("",!0),r(u)?(v(),E("div",{key:3,ref_key:"messagesContainer",ref:S,class:"flex-1 overflow-y-auto space-y-4 mb-4"},[r(i).length===0?(v(),R(U,{key:0,title:"Agent Chat",desc:"Ask me anything about your SQL query"},{default:h(()=>[f("div",Ha,[p(T,{variant:"outline",size:"xs",onClick:k[3]||(k[3]=P=>_("Explain this query"))},{default:h(()=>k[14]||(k[14]=[A(" Explain this query ")])),_:1}),p(T,{variant:"outline",size:"xs",onClick:k[4]||(k[4]=P=>_("How can I optimize this query?"))},{default:h(()=>k[15]||(k[15]=[A(" Optimize query ")])),_:1}),p(T,{variant:"outline",size:"xs",onClick:k[5]||(k[5]=P=>_("What are potential issues with this query?"))},{default:h(()=>k[16]||(k[16]=[A(" Find issues ")])),_:1})])]),_:1})):j("",!0),(v(!0),E(Y,null,Z(r(i),P=>(v(),E("div",{key:P.id,class:ue(["flex gap-3",P.role==="user"?"justify-end":"justify-start"])},[f("div",{class:ue(["max-w-[80%] rounded-lg p-3 text-sm",P.role==="user"?"bg-primary text-primary-foreground":"bg-muted"])},[P.role==="user"?(v(!0),E(Y,{key:0},Z(P.parts,(W,X)=>(v(),E(Y,{key:X},[W.type==="text"?(v(),E("span",Wa,I(W.text),1)):j("",!0)],64))),128)):(v(),E("div",Ga,[(v(!0),E(Y,null,Z(P.parts,(W,X)=>(v(),E(Y,{key:X},[W.type==="text"?(v(),E("span",Ka,I(W.text),1)):j("",!0)],64))),128))]))],2)],2))),128)),r(a)&&(!((N=r(i)[r(i).length-1])!=null&&N.parts)||((O=(B=r(i)[r(i).length-1])==null?void 0:B.parts)==null?void 0:O.length)===0)?(v(),E("div",Ya,[f("div",Ja,[f("div",Xa,[p(V,{name:"hugeicons:loading-03",class:"size-4 animate-spin"}),k[17]||(k[17]=f("span",{class:"text-muted-foreground"},"Thinking...",-1))])])])):j("",!0)],512)):(v(),E("div",Qa,[f("div",Ua,[p(V,{name:"lucide:key",class:"size-12 mb-3 opacity-50 mx-auto"}),f("p",ja," No API key configured for "+I(r(c).name),1),k[13]||(k[13]=f("p",{class:"text-xs text-muted-foreground mb-3"}," Configure your API keys in Settings → Agent ",-1)),p(r(ie),null,{default:h(()=>[p(r(re),{"as-child":""},{default:h(()=>[p(T,{variant:"outline",size:"sm",class:"text-xs",onClick:k[2]||(k[2]=P=>r(y)("Agent"))},{default:h(()=>[p(V,{name:"lucide:settings",class:"size-4 mr-1"}),k[11]||(k[11]=A(" Open Settings "))]),_:1})]),_:1}),p(r(le),null,{default:h(()=>k[12]||(k[12]=[f("p",null,"Open functionality settings",-1)])),_:1})]),_:1})])])),r(u)?(v(),E("div",Za,[f("form",{onSubmit:b,class:"flex gap-2 relative"},[p(D,{modelValue:r(x),"onUpdate:modelValue":k[6]||(k[6]=P=>Se(x)?x.value=P:null),placeholder:"Ask about your SQL query...",disabled:r(a),class:"min-h-4!"},null,8,["modelValue","disabled"]),p(r(ie),null,{default:h(()=>[p(r(re),{"as-child":""},{default:h(()=>[p(T,{type:"submit",size:"iconSm",class:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full",disabled:!r(x).trim()||r(a)},{default:h(()=>[p(V,{name:r(a)?"hugeicons:loading-03":"lucide:arrow-up",class:ue(["size-4",r(a)?"animate-spin":""])},null,8,["name","class"])]),_:1},8,["disabled"])]),_:1}),p(r(le),null,{default:h(()=>k[18]||(k[18]=[f("p",null,"Send message",-1)])),_:1})]),_:1})],32)])):j("",!0)])}}}),tr={class:"h-full p-2 overflow-y-auto"},sr={key:0,class:"space-y-2"},nr={class:"flex items-center justify-between gap-2"},or={class:"flex items-center gap-1"},ar={class:"text-sm pl-5 text-muted-foreground decoration-wavy underline decoration-red-600"},rr={key:0,class:"pl-5 mt-1 text-sm text-amber-600/90 font-medium"},lr={class:"pt-2 border-t"},ir={class:"error-query-container"},ur={key:0,class:"pt-2 border-t"},cr=H({__name:"ResultTabErrorView",props:{activeTab:{}},emits:["onChangeView"],setup(s,{emit:t}){const e=s,n=t,o=x=>!!x.metadata.executeErrors,a=q(()=>{var S,b;const x=(S=e.activeTab.metadata.executeErrors)==null?void 0:S.data;return((b=x==null?void 0:x.normalizeError)==null?void 0:b.position)||null}),l=q(()=>{var b;const x=e.activeTab.metadata.executeErrors,S=x==null?void 0:x.data;return((b=S==null?void 0:S.normalizeError)==null?void 0:b.message)||(x==null?void 0:x.message)||""}),i=q(()=>{var S,b;const x=(S=e.activeTab.metadata.executeErrors)==null?void 0:S.data;return((b=x==null?void 0:x.normalizeError)==null?void 0:b.hint)||null}),u=q(()=>{const x=e.activeTab.metadata.statementQuery;if(!x)return[];const S=a.value,b=[];if(S&&S>0){const g=S-1;let _=g;for(;_<x.length&&x[_]!==`
9
- `&&x[_]!=="\r"&&x[_]!==" "&&x[_]!==" ";)_++;_<=g&&(_=Math.min(g+1,x.length)),b.push({start:g,end:_,properties:{class:"error-highlight"}})}return b}),c=async()=>{if(typeof window>"u")return;await ve();const x=document.querySelector(".error-query-container .error-highlight");x&&x.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};ge(()=>u.value,()=>{c()},{flush:"post"});const d=q(()=>{var S;const x={...((S=e.activeTab.metadata.executeErrors)==null?void 0:S.data)||{}};return x==null||delete x.normalizeError,x?typeof x=="string"?x:JSON.stringify(x,null,2):""}),m=q(()=>e.activeTab.metadata.statementQuery||""),y=()=>{n("onChangeView","agent")};return(x,S)=>{var _;const b=ce,g=Tt;return v(),E("div",tr,[o(x.activeTab)?(v(),E("div",sr,[f("div",nr,[f("div",null,[f("div",or,[p(b,{name:"hugeicons:alert-02",class:"size-4 text-red-500 mt-0.5"}),S[0]||(S[0]=f("div",{class:"font-medium text-red-600"},"Error Message",-1))]),f("span",ar,I(l.value),1),i.value?(v(),E("div",rr," Hint: "+I(i.value),1)):j("",!0)]),p(r(Me),{onClick:y,size:"xs",variant:"outline"},{default:h(()=>[p(b,{name:"hugeicons:ai-brain-04",class:"size-4"}),S[1]||(S[1]=A(" Ask AI to fix this error "))]),_:1})]),f("div",lr,[S[2]||(S[2]=f("div",{class:"mb-2"},[f("span",{class:"font-normal text-sm text-muted-foreground flex items-center gap-1"}," View executed query : ")],-1)),f("div",ir,[p(g,{code:m.value,decorations:u.value,"show-copy-button":""},null,8,["code","decorations"])])]),(_=x.activeTab.metadata.executeErrors)!=null&&_.data?(v(),E("div",ur,[S[3]||(S[3]=f("div",{class:"flex items-center justify-between mb-2"},[f("div",{class:"text-sm text-muted-foreground"},"Error Details:")],-1)),p(g,{code:d.value,language:"json"},null,8,["code"])])):j("",!0)])):j("",!0)])}}}),dr=bt(cr,[["__scopeId","data-v-d4daf140"]]),mr={class:"h-full p-4 space-y-3 overflow-y-auto"},pr={class:"space-y-2"},fr={class:"flex items-center gap-2 text-sm"},hr={class:"font-medium"},vr={class:"flex items-center gap-2 text-sm"},gr={class:"font-medium"},yr={class:"flex items-center gap-2 text-sm"},xr={class:"font-medium"},br={class:"flex items-center gap-2 text-sm"},_r={class:"font-medium"},Cr={class:"flex items-center gap-2 text-sm"},Sr={class:"font-medium"},wr={key:0,class:"flex items-center gap-2 text-sm"},Tr={class:"font-medium"},Er={class:"pt-3 border-t"},Rr={key:0,class:"pt-3 border-t"},$r={class:"flex flex-wrap gap-1"},kr=H({__name:"ResultTabInfoView",props:{activeTab:{}},setup(s){const t=s,e=typeof TextEncoder<"u"?new TextEncoder:null,n=q(()=>{var a;const o=((a=t.activeTab)==null?void 0:a.result)??[];if(!e)return{bytes:0,formatted:"N/A"};try{const l=JSON.stringify(o),i=l?e.encode(l).length:0;return{bytes:i,formatted:no(i)}}catch{return{bytes:0,formatted:"N/A"}}});return(o,a)=>{var u,c,d,m;const l=ce,i=Tt;return v(),E("div",mr,[f("div",pr,[f("div",fr,[p(l,{name:"hugeicons:clock-01",class:"size-4 text-muted-foreground"}),a[0]||(a[0]=f("span",{class:"text-muted-foreground"},"Query Time:",-1)),f("span",hr,I(r(De)(o.activeTab.metadata.queryTime)),1)]),f("div",vr,[p(l,{name:"hugeicons:summation-01",class:"size-4 text-muted-foreground"}),a[1]||(a[1]=f("span",{class:"text-muted-foreground"},"Rows:",-1)),f("span",gr,I(r(ft)(((u=o.activeTab.result)==null?void 0:u.length)||0)),1)]),f("div",yr,[p(l,{name:"hugeicons:file-02",class:"size-4 text-muted-foreground"}),a[2]||(a[2]=f("span",{class:"text-muted-foreground"},"Result Size:",-1)),f("span",xr,I(n.value.formatted),1)]),f("div",br,[p(l,{name:"hugeicons:chart-column",class:"size-4 text-muted-foreground"}),a[3]||(a[3]=f("span",{class:"text-muted-foreground"},"Columns:",-1)),f("span",_r,I(((c=o.activeTab.metadata.fieldDefs)==null?void 0:c.length)||0),1)]),f("div",Cr,[p(l,{name:"hugeicons:calendar-03",class:"size-4 text-muted-foreground"}),a[4]||(a[4]=f("span",{class:"text-muted-foreground"},"Executed At:",-1)),f("span",Sr,I(((d=o.activeTab.metadata.executedAt)==null?void 0:d.toLocaleString())||"N/A"),1)]),o.activeTab.metadata.connection?(v(),E("div",wr,[p(l,{name:"hugeicons:plug-socket",class:"size-4 text-muted-foreground"}),a[5]||(a[5]=f("span",{class:"text-muted-foreground"},"Connection:",-1)),f("span",Tr,I(o.activeTab.metadata.connection.name||"Unknown"),1)])):j("",!0)]),f("div",Er,[a[6]||(a[6]=f("div",{class:"text-sm text-muted-foreground mb-2"},"Query:",-1)),p(i,{code:o.activeTab.metadata.statementQuery||""},null,8,["code"])]),(m=o.activeTab.metadata.fieldDefs)!=null&&m.length?(v(),E("div",Rr,[a[7]||(a[7]=f("div",{class:"text-sm text-muted-foreground mb-2"},"Fields:",-1)),f("div",$r,[(v(!0),E(Y,null,Z(o.activeTab.metadata.fieldDefs,y=>(v(),E("span",{key:y.name,class:"text-xs bg-muted px-2 py-1 rounded"},I(y.name),1))),128))])])):j("",!0)])}}}),zr={class:"h-full flex flex-col flex-1 overflow-hidden"},Mr=H({__name:"ResultTabRawView",props:{formattedData:{},executeLoading:{type:Boolean},isStreaming:{type:Boolean}},setup(s){const t=s;return(e,n)=>{const o=tt;return v(),E("div",zr,[t.formattedData.length===0&&!e.executeLoading&&!e.isStreaming?(v(),R(o,{key:0,title:"No Raw Data",desc:"The query returned no records to display as JSON."})):(v(),R(r(Kn),{key:1,modelValue:t.formattedData,mode:"text",readOnly:!0,navigationBar:!1,class:"h-full"},null,8,["modelValue"]))])}}}),Ss={SELECT:"DML",INSERT:"DML",UPDATE:"DML",DELETE:"DML",MERGE:"DML",VALUES:"DML",TRUNCATE:"DML",COPY:"DML",CREATE:"DDL",ALTER:"DDL",DROP:"DDL",COMMENT:"DDL",ANALYZE:"DDL",VACUUM:"DDL",REINDEX:"DDL",CLUSTER:"DDL","REFRESH MATERIALIZED VIEW":"DDL","IMPORT FOREIGN SCHEMA":"DDL","SECURITY LABEL":"DDL",GRANT:"DCL",REVOKE:"DCL",BEGIN:"TCL",COMMIT:"TCL",ROLLBACK:"TCL",SAVEPOINT:"TCL","RELEASE SAVEPOINT":"TCL","ROLLBACK TO SAVEPOINT":"TCL","PREPARE TRANSACTION":"TCL","COMMIT PREPARED":"TCL","ROLLBACK PREPARED":"TCL","SET TRANSACTION":"TCL",SET:"SYSTEM",SHOW:"SYSTEM",RESET:"SYSTEM",DISCARD:"SYSTEM",EXPLAIN:"SYSTEM",LOAD:"SYSTEM",LOCK:"SYSTEM",MOVE:"SYSTEM",FETCH:"SYSTEM",CLOSE:"SYSTEM",DECLARE:"SYSTEM",DEALLOCATE:"SYSTEM",PREPARE:"SYSTEM",EXECUTE:"SYSTEM",LISTEN:"SYSTEM",UNLISTEN:"SYSTEM",NOTIFY:"SYSTEM",DO:"SYSTEM",ABORT:"SYSTEM",CHECKPOINT:"SYSTEM"},Lr=s=>{const t=s.toUpperCase().trim();if(["SELECT","VALUES","SHOW","EXPLAIN","TABLE"].some(o=>t===o||t.startsWith(o+" ")))return!1;const n=Ss[t];return!!(["INSERT","UPDATE","DELETE","TRUNCATE","COPY","MERGE","CALL","DO"].includes(t)||n==="DDL"||n==="DCL"||["SET","RESET","GRANT","REVOKE","COMMENT","ANALYZE","VACUUM","REINDEX","CLUSTER"].includes(t)||t.startsWith("CREATE")||t.startsWith("DROP")||t.startsWith("ALTER"))},Ar=(s,t)=>{const e=s||"Query",n=t??0;return["INSERT","UPDATE","DELETE"].includes(e.toUpperCase())?`${e} successful. ${n} rows affected.`:`${e} successful.`};class Fe{constructor(t,e){ne(this,"cmd");ne(this,"rowCount");this.cmd=t.toUpperCase().trim(),this.rowCount=e}isMutation(){return Lr(this.cmd)}getMessage(t){return t?Ar(this.cmd,this.rowCount):""}getCategory(){return Ss[this.cmd]??"UNKNOWN"}build(){const t=this.isMutation();return{isMutation:t,message:this.getMessage(t),category:this.getCategory()}}}class Nr extends Fe{isMutation(){return["VACUUM","ANALYZE","REINDEX","CLUSTER"].includes(this.cmd)?!0:super.isMutation()}}class ws extends Fe{isMutation(){return this.cmd.startsWith("OPTIMIZE")?!0:super.isMutation()}getMessage(t){return this.cmd==="TRUNCATE"||this.cmd.startsWith("TRUNCATE ")?"TRUNCATE successful.":super.getMessage(t)}}class Ir extends ws{}class Ts extends Fe{isMutation(){return this.cmd.startsWith("TRUNCATE")?!0:super.isMutation()}getMessage(t){return this.cmd==="INSERT"?`INSERT successful. Last insert row id: ${this.rowCount}.`:super.getMessage(t)}}class Or extends Ts{}class Pr extends Fe{getMessage(t){return this.cmd==="MERGE"?`MERGE successful. ${this.rowCount} rows affected.`:super.getMessage(t)}}class qr extends Fe{getMessage(t){return this.cmd==="TRUNCATE"||this.cmd.startsWith("TRUNCATE ")?"TRUNCATE successful.":this.cmd==="MERGE"?`MERGE successful. ${this.rowCount} rows affected.`:super.getMessage(t)}}const Vr={[ae.POSTGRES]:Nr,[ae.MYSQL]:ws,[ae.MYSQL2]:Ir,[ae.SQLITE3]:Ts,[ae.BETTER_SQLITE3]:Or,[ae.MSSQL]:Pr,[ae.ORACLE]:qr},Dr=(s,t=0,e=ae.POSTGRES)=>{const n=Vr[e];if(!n)throw new Error(`Unsupported database client type: "${e}"`);return new n(s,t).build()},Fr=H({__name:"RawQueryContextMenu",props:{cellContextMenu:{},cellHeaderContextMenu:{},data:{},selectedRows:{},tableName:{},schemaName:{}},emits:["onClearContextMenu"],setup(s,{emit:t}){const e=s,n=t,o=q(()=>{var b,g,_,C;return((g=(b=e.cellContextMenu)==null?void 0:b.column)==null?void 0:g.getColId())??((C=(_=e.cellHeaderContextMenu)==null?void 0:_.column)==null?void 0:C.getColId())}),a=q(()=>{var b,g,_;return((b=e.cellContextMenu)==null?void 0:b.column.getColDef().headerName)??((_=(g=e.cellHeaderContextMenu)==null?void 0:g.column)==null?void 0:_.getColDef().headerName)??""}),l=b=>{Ft(e.selectedRows||[],a.value??"",b)},i=b=>{Ft(e.data||[],a.value??"",b)},u=b=>ot(e.selectedRows||[],e.tableName||"table_data",b,e.schemaName),c=b=>ot(e.data||[],e.tableName||"table_data",b,e.schemaName),d=b=>Bt(e.selectedRows||[],e.tableName||"table_data",b,"selected",e.schemaName),m=b=>Bt(e.data||[],e.tableName||"table_data",b,"all",e.schemaName),y=()=>{var g;const b=(g=e.cellContextMenu)==null?void 0:g.value;if(b!==void 0){if(typeof b=="object")return Qt(JSON.stringify(b));Qt(String(b))}},x=()=>{var b;if(e.cellContextMenu){const g=(b=e.cellContextMenu)==null?void 0:b.data;ot([g],e.tableName||"table_data","csv-no-header",e.schemaName)}},S=q(()=>{var D;const b=!!e.cellContextMenu,g=e.selectedRows.length>0,_=e.selectedRows.length,C=((D=e.data)==null?void 0:D.length)||0,k=!!o.value,V=[{type:F.LABEL,title:`${_} selected`,condition:g&&b},{type:F.ACTION,title:"Copy as text",icon:"hugeicons:file-01",select:()=>l("list"),condition:g&&b},{type:F.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>l("json"),condition:g&&b},{type:F.SEPARATOR,condition:g&&b},{type:F.LABEL,title:"All data in column"},{type:F.ACTION,title:"Copy as text",icon:"hugeicons:file-01",select:()=>i("list")},{type:F.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>i("json")}],T=[{type:F.LABEL,title:`${_} selected row(s)`,condition:g},{type:F.ACTION,title:"Copy as CSV/TSV",icon:"hugeicons:csv-02",select:()=>u("csv-no-header"),condition:g},{type:F.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>u("json"),condition:g},{type:F.ACTION,title:"Copy as SQL",icon:"hugeicons:database",select:()=>u("sql"),condition:g},{type:F.SEPARATOR,condition:g},{type:F.LABEL,title:"All rows"},{type:F.ACTION,title:"Copy as CSV/TSV",icon:"hugeicons:csv-02",select:()=>c("csv-no-header")},{type:F.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>c("json")},{type:F.ACTION,title:"Copy as SQL",icon:"hugeicons:database",select:()=>c("sql")}],U=[{type:F.LABEL,title:`${_} selected row${_>1?"s":""}`,condition:g},{type:F.ACTION,title:"Export as CSV",icon:"hugeicons:csv-01",select:()=>d("csv-no-header"),condition:g},{type:F.ACTION,title:"Export as CSV (have headers)",icon:"hugeicons:csv-01",select:()=>d("csv-with-header"),condition:g},{type:F.ACTION,title:"Export as JSON",icon:"hugeicons:code",select:()=>d("json"),condition:g},{type:F.ACTION,title:"Export as SQL",icon:"hugeicons:database",select:()=>d("sql"),condition:g},{type:F.SEPARATOR,condition:g},{type:F.LABEL,title:`All ${C.toLocaleString()} row${C!==1?"s":""}`},{type:F.ACTION,title:"Export as CSV",icon:"hugeicons:csv-01",select:()=>m("csv-no-header")},{type:F.ACTION,title:"Export as CSV (have headers)",icon:"hugeicons:csv-01",select:()=>m("csv-with-header")},{type:F.ACTION,title:"Export as JSON",icon:"hugeicons:code",select:()=>m("json")},{type:F.ACTION,title:"Export as SQL",icon:"hugeicons:database",select:()=>m("sql")}];return[{type:F.ACTION,title:"Copy current cell",icon:"hugeicons:copy-02",select:y,condition:b},{type:F.ACTION,title:"Copy current row",icon:"hugeicons:copy-02",select:x,condition:g&&b},{type:F.SEPARATOR,condition:b},{type:F.SUBMENU,title:"Copy column",icon:"hugeicons:layout-3-column",items:V,condition:k,desc:a.value||"Select a column"},{type:F.SUBMENU,title:"Copy row(s)",icon:"hugeicons:layout-3-row",items:T},{type:F.SEPARATOR},{type:F.SUBMENU,title:"Export",icon:"hugeicons:file-download",items:U}]});return(b,g)=>(v(),R(r(Dn),{contextMenuItems:r(S),onOnClearContextMenu:g[0]||(g[0]=_=>n("onClearContextMenu"))},{default:h(()=>[J(b.$slots,"default")]),_:3},8,["contextMenuItems"]))}}),Br={class:"h-full w-full"},Qr=H({__name:"ResultTabResultView",props:{activeTab:{},activeTabColumns:{},formattedData:{},executeLoading:{type:Boolean},isStreaming:{type:Boolean}},setup(s){const t=s,e=G(),n=G([]),o=c=>{n.value=c},a=q(()=>{var d,m,y;const c=((d=t.activeTab)==null?void 0:d.metadata.fieldDefs)||[];return((y=(m=n.value)==null?void 0:m.map)==null?void 0:y.call(m,x=>{const S={};for(const[b,g]of Object.entries(x)){const _=c[Number(b)],C=(_==null?void 0:_.name)||"";C&&(S[C]=g)}return S}))||[]}),l=q(()=>{var c;return Dr(t.activeTab.metadata.command||"",t.activeTab.metadata.rowCount||0,(c=t.activeTab.metadata.connection)==null?void 0:c.type)}),i=q(()=>l.value.isMutation),u=q(()=>l.value.message);return(c,d)=>{var x,S;const m=tt,y=gs;return v(),E("div",Br,[c.activeTab.result.length===0&&r(i)&&!c.executeLoading&&!c.isStreaming?(v(),R(m,{key:0,desc:r(u),hiddenIcon:"",class:"h-full"},null,8,["desc"])):c.activeTab.result.length===0&&!c.executeLoading&&!c.isStreaming?(v(),R(m,{key:1,title:"No Results",desc:"The query returned no records.",class:"h-full"})):(v(),R(Fr,{key:2,data:c.formattedData||[],selectedRows:r(a)||[],cellContextMenu:(x=r(e))==null?void 0:x.cellContextMenu,cellHeaderContextMenu:(S=r(e))==null?void 0:S.cellHeaderContextMenu,onOnClearContextMenu:d[0]||(d[0]=b=>{var g;return(g=r(e))==null?void 0:g.clearCellContextMenu()})},{default:h(()=>[p(y,{ref_key:"rawQueryTableRef",ref:e,columns:c.activeTabColumns,data:c.activeTab.result||[],selectedRows:r(n),onOnSelectedRows:o,class:"h-full","skip-re-column-size":"",columnKeyBy:"index"},null,8,["columns","data","selectedRows"])]),_:1},8,["data","selectedRows","cellContextMenu","cellHeaderContextMenu"]))])}}});var We=(s=>(s.GRID="grid",s.TIMELINE="time-line",s.RAW="raw",s))(We||{});const Ur=[{value:"time-line",label:"Timeline",icon:"hugeicons:chart-line-data-01"},{value:"grid",label:"Grid",icon:"hugeicons:grid-table"},{value:"raw",label:"Raw",icon:"hugeicons:3rd-bracket"}],jr={class:"flex items-center justify-between px-3 py-2 border-b shrink-0"},Hr={class:"flex items-center gap-3 min-w-0"},Wr={class:"flex items-center gap-2 flex-wrap"},Gr={class:"flex flex-col gap-1 max-w-[250px] sm:max-w-xs"},Kr={class:"text-[11px] text-muted-foreground list-disc pl-3 break-words whitespace-normal"},Yr={class:"flex flex-col gap-1 max-w-[250px] sm:max-w-xs"},Jr={class:"text-[11px] text-muted-foreground list-disc pl-3 break-words whitespace-normal"},Xr={class:"flex flex-col gap-1 max-w-[250px] sm:max-w-xs"},Zr={class:"text-[11px] text-muted-foreground list-disc pl-3 break-words whitespace-normal"},el={class:"flex items-center gap-2 shrink-0"},tl=H({__name:"ExplainPlanHeader",props:Mt({summaryStats:{},isExpanded:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:Mt(["toggle-expand"],["update:modelValue"]),setup(s,{emit:t}){const e=t,n=rn(s,"modelValue");return(o,a)=>{const l=ce,i=ln,u=re,c=le,d=ie,m=ro,y=ao,x=oo,S=Me;return v(),E("div",jr,[f("div",Hr,[p(l,{name:"hugeicons:analytics-up",class:"size-4 text-muted-foreground"}),a[6]||(a[6]=f("span",{class:"text-sm font-medium"},"Execution Plan",-1)),f("div",Wr,[o.summaryStats.executionTime!==void 0?(v(),R(i,{key:0,variant:"outline",class:"text-[11px] h-5 gap-1"},{default:h(()=>[p(l,{name:"hugeicons:clock-01",class:"size-3"}),A(" "+I(r(De)(o.summaryStats.executionTime)),1)]),_:1})):j("",!0),o.summaryStats.planningTime!==void 0?(v(),R(i,{key:1,variant:"outline",class:"text-[11px] h-5 gap-1"},{default:h(()=>[A(" Planning: "+I(r(De)(o.summaryStats.planningTime)),1)]),_:1})):j("",!0),o.summaryStats.nodeCount>0?(v(),R(d,{key:2},{default:h(()=>{var b;return[p(u,{"as-child":""},{default:h(()=>[p(i,{variant:"outline",class:"text-[11px] h-5 gap-1 cursor-help"},{default:h(()=>[A(I(o.summaryStats.nodeCount)+" nodes ",1)]),_:1})]),_:1}),(b=o.summaryStats.allNodes)!=null&&b.length?(v(),R(c,{key:0},{default:h(()=>[f("div",Gr,[a[2]||(a[2]=f("span",{class:"font-medium text-xs"},"Nodes:",-1)),f("ul",Kr,[(v(!0),E(Y,null,Z(o.summaryStats.allNodes,g=>(v(),E("li",{key:g.id},I(g.label),1))),128))])])]),_:1})):j("",!0)]}),_:1})):(v(),R(i,{key:3,variant:"outline",class:"text-[11px] h-5 gap-1"},{default:h(()=>a[3]||(a[3]=[A(" 0 nodes ")])),_:1})),o.summaryStats.expensiveCount>0?(v(),R(d,{key:4},{default:h(()=>{var b;return[p(u,{"as-child":""},{default:h(()=>[p(i,{variant:"outline",class:"text-[11px] h-5 gap-1 border-amber-300 text-amber-700 dark:text-amber-400 cursor-help"},{default:h(()=>[A(I(o.summaryStats.expensiveCount)+" expensive ",1)]),_:1})]),_:1}),(b=o.summaryStats.expensiveNodes)!=null&&b.length?(v(),R(c,{key:0},{default:h(()=>[f("div",Yr,[a[4]||(a[4]=f("span",{class:"font-medium text-xs"},"Expensive Nodes:",-1)),f("ul",Jr,[(v(!0),E(Y,null,Z(o.summaryStats.expensiveNodes,g=>(v(),E("li",{key:g.id},I(g.label),1))),128))])])]),_:1})):j("",!0)]}),_:1})):j("",!0),o.summaryStats.slowCount>0?(v(),R(d,{key:5},{default:h(()=>{var b;return[p(u,{"as-child":""},{default:h(()=>[p(i,{variant:"outline",class:"text-[11px] h-5 gap-1 border-red-300 text-red-700 dark:text-red-400 cursor-help"},{default:h(()=>[A(I(o.summaryStats.slowCount)+" slowest ",1)]),_:1})]),_:1}),(b=o.summaryStats.slowNodes)!=null&&b.length?(v(),R(c,{key:0},{default:h(()=>[f("div",Xr,[a[5]||(a[5]=f("span",{class:"font-medium text-xs"},"Slowest Node(s):",-1)),f("ul",Zr,[(v(!0),E(Y,null,Z(o.summaryStats.slowNodes,g=>(v(),E("li",{key:g.id},I(g.label),1))),128))])])]),_:1})):j("",!0)]}),_:1})):j("",!0)])]),f("div",el,[p(x,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=b=>n.value=b),class:"gap-0"},{default:h(()=>[p(y,{class:"h-6"},{default:h(()=>[(v(!0),E(Y,null,Z(r(Ur),b=>(v(),R(m,{key:b.value,value:b.value,class:"text-xs px-1 rounded-sm cursor-pointer"},{default:h(()=>[p(l,{name:b.icon,class:"size-3.5!"},null,8,["name"]),A(" "+I(b.label),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"]),p(S,{variant:"outline",size:"iconSm",onClick:a[1]||(a[1]=b=>e("toggle-expand"))},{default:h(()=>[p(l,{name:o.isExpanded?"hugeicons:arrow-shrink":"hugeicons:arrow-expand",class:"size-3.5"},null,8,["name"])]),_:1})])])}}}),sl={class:"flex items-center text-xs h-full w-full overflow-hidden whitespace-nowrap"},nl={key:0,class:"text-muted-foreground shrink-0 whitespace-pre",style:{"font-family":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important"}},ol={key:1,class:"font-normal shrink-0"},al={key:2,class:"text-[10px] pl-0.5 text-muted-foreground truncate shrink min-w-0"},rl=H({__name:"ExplainOperationCell",props:{params:{}},setup(s){const t=s,e=q(()=>{var n;return((n=t.params)==null?void 0:n.data)??{}});return(n,o)=>(v(),E("div",sl,[r(e).treePrefix?(v(),E("span",nl,I(r(e).treePrefix),1)):j("",!0),r(e).nodeType?(v(),E("span",ol,I(r(e).nodeType),1)):j("",!0),r(e).contextLabel?(v(),E("span",al,I(r(e).contextLabel),1)):j("",!0)]))}}),jt={"Seq Scan":"scan","Index Scan":"scan","Index Only Scan":"scan","Bitmap Index Scan":"scan","Bitmap Heap Scan":"scan","CTE Scan":"scan","Function Scan":"scan","Values Scan":"scan","Subquery Scan":"scan",Aggregate:"agg",HashAggregate:"agg",GroupAggregate:"agg",Sort:"sort","Incremental Sort":"sort",Hash:"hash","Hash Join":"join","Merge Join":"join","Nested Loop":"join"},oe=s=>s?String(s).replace(/^[\[]|[\]]$/g,"").replace(/"/g,"").trim():"",ll=s=>s==="Seq Scan"?"bad":jt[s]?jt[s]:s.includes("Join")?"join":s.includes("Scan")?"scan":s.includes("Aggregate")?"agg":s.includes("Sort")?"sort":"other",Ht=(s,t,e)=>{for(let n=t+1;n<s.length;n++){const o=s[n].depth??0;if(o<e)return!1;if(o===e)return!0}return!1},il=(s,t)=>{const n=s[t].depth??0;if(n===0)return"";const o=[];for(let l=1;l<n;l++)o.push(Ht(s,t,l)?"│ ":" ");const a=!Ht(s,t,n);return o.push(a?"└─ ":"├─ "),o.join("")},ul=s=>{const t=oe(s.hashCond),e=oe(s.mergeCond),n=oe(s.joinFilter),o=oe(s.joinType).toLowerCase();if(o||t||e||n){const b=t||e||n,g=o?`${o} `:"";return{label:b?`${g}on ${b}`.trim():`${g}join`.trim(),kind:"join"}}const a=oe(s.indexCond),l=oe(s.recheckCond),i=oe(s.tidCond);if(a)return{label:`on ${a}`,kind:"relation"};if(l)return{label:`recheck: ${l}`,kind:"relation"};if(i)return{label:`tid: ${i}`,kind:"relation"};const u=oe(s.sortKey);if(u)return{label:`by ${u}`,kind:"sort"};const c=oe(s.groupKey),d=oe(s.hashKey);if(c||d)return{label:`by ${c||d}`,kind:"group"};const m=oe(s.oneTimeFilter);if(m)return{label:`one-time: ${m}`,kind:"relation"};const y=oe(s.filter);if(y)return{label:`filter: ${y}`,kind:"relation"};const x=oe(s.cteName);if(x)return{label:`cte: ${x}`,kind:"relation"};const S=oe(s.subplanName);if(S)return{label:`subplan: ${S}`,kind:"relation"};if(s.relation){const b=s.alias&&s.alias!==s.relation?` (${s.alias})`:"";return{label:`on ${s.relation}${b}`,kind:"relation"}}return{label:"",kind:""}},cl=s=>[...s].map(t=>{var c,d;const e=t["Plan Rows"]||0,n=t["Actual Rows"]||0,o=t.estimateRatio,a=t["Actual Startup Time"]||0,l=t["Plan Width"]||0,i=t.rowEstimateAccuracy||"accurate",u=[`Node: ${t["Node Type"]}`,t["Relation Name"]?`Relation: ${t["Relation Name"]}`:"",`Depth: ${t.depth}`,`Startup time: ${a.toFixed(3)} ms`,`Total time: ${(t["Actual Total Time"]||0).toFixed(3)} ms`,`Actual rows: ${n.toLocaleString()}`,`Plan rows: ${e.toLocaleString()}`,o!==void 0?`Estimate ratio: ${o}x (${i})`:"Estimate ratio: -",`Total cost: ${(t["Total Cost"]||0).toFixed(2)}`,`Plan width: ${l}`,`Loops: ${(t["Actual Loops"]||0).toLocaleString()}`,`Slowest: ${t.isSlowest?"yes":"no"}`,`Expensive: ${t.isExpensive?"yes":"no"}`].filter(Boolean).join(`
10
- `);return{id:t.id,order:t.index,nodeType:t["Node Type"],relation:t["Relation Name"],alias:t.Alias,sortKey:((c=t["Sort Key"])==null?void 0:c.join(", "))??"",joinType:t["Join Type"]??"",groupKey:((d=t["Group Key"])==null?void 0:d.join(", "))??"",hashKey:"",filter:t.Filter??"",joinFilter:"",oneTimeFilter:"",indexCond:"",hashCond:t["Hash Cond"]??"",mergeCond:t["Merge Cond"]??"",recheckCond:"",tidCond:"",cteName:"",subplanName:"",timeMs:t["Actual Total Time"]||0,rows:n,planRows:e,estimateRatio:o,cost:t["Total Cost"]||0,width:l,loops:t["Actual Loops"]||0,depth:t.depth,indentPx:t.depth*16,hitReadRatio:t.hitReadRatio,isSlowest:t.isSlowest,isExpensive:t.isExpensive,tooltipLines:u}}),dl=s=>{const t=s.reduce((e,n)=>e+(n.timeMs||0),0)||1;return s.map((e,n)=>{const o=il(s,n),{label:a,kind:l}=ul(e),i=e.isSlowest?"slowest":e.isExpensive?"expensive":"normal";return{order:e.order,timeMs:e.timeMs,rows:e.rows,planRows:e.planRows,estimateRatioValue:e.estimateRatio,cost:e.cost,width:e.width,loops:e.loops,hitReadRatio:e.hitReadRatio,isSlowest:e.isSlowest,isExpensive:e.isExpensive,orderLabel:`${e.order}`,queryPercentLabel:`${(e.timeMs/t*100).toFixed(2)}%`,timeSpentLabel:`${e.timeMs.toFixed(3)} ms`,rowsLabel:e.rows.toLocaleString(),planRowsLabel:e.planRows.toLocaleString(),estimateLabel:e.estimateRatio!==void 0?`${e.estimateRatio}×`:"-",costLabel:e.cost.toFixed(2),widthLabel:e.width,loopsLabel:e.loops.toLocaleString(),hitReadRatioLabel:e.hitReadRatio!==void 0?`${(e.hitReadRatio*100).toFixed(2)}%`:"-",statusLabel:i,treePrefix:o,nodeType:e.nodeType,nodeTypeCategory:ll(e.nodeType),contextLabel:a,contextKind:l}})},ml={class:"h-full p-2"},pl=H({__name:"ExplainGridPane",props:{nodes:{}},setup(s){const t=s,e=q(()=>cl(t.nodes)),n=q(()=>dl(e.value)),o=q(()=>[{headerName:"#",field:"orderLabel",width:30,sortable:!0,resizable:!0,filter:!1,cellClass:"cellCenter"},{headerName:"Operation",field:"operationLabel",width:350,sortable:!1,resizable:!0,filter:!0,cellRenderer:"ExplainOperationCell",cellClass:"operation-cell",valueGetter:l=>`${l.data.treePrefix}${l.data.nodeType} ${l.data.contextLabel}`},{headerName:"Status",field:"statusLabel",width:96,sortable:!0,resizable:!0,filter:!0,cellClass:l=>{const i=l.value;return i==="slowest"?"cellCenter bg-red-300! dark:bg-red-900":i==="expensive"?"cellCenter bg-orange-100! dark:bg-orange-900":"cellCenter"}},{headerName:"Time Spent",field:"timeSpentLabel",width:110,sortable:!0,resizable:!0,filter:!0,cellClass:"cellCenter "},{headerName:"% of Query",field:"queryPercentLabel",width:96,sortable:!0,resizable:!0,filter:!0,cellClass:"cellCenter "},{headerName:"Actual Rows",field:"rowsLabel",width:96,sortable:!0,resizable:!0,filter:!0,cellClass:"cellCenter "},{headerName:"Plan Rows",field:"planRowsLabel",width:88,sortable:!0,resizable:!0,filter:!0,cellClass:"cellCenter "},{headerName:"Estim",field:"estimateLabel",width:76,sortable:!0,resizable:!0,filter:!0,cellClass:l=>{var u;const i=Number((u=l.data)==null?void 0:u.estimateRatioValue);return Number.isFinite(i)?i<.1||i>10?"cellCenter bg-red-200 dark:bg-red-900":i>=.1&&i<.5||i>2&&i<=10?"cellCenter bg-orange-100 dark:bg-orange-900":"cellCenter ":"cellCenter "}},{headerName:"Cost",field:"costLabel",width:88,sortable:!0,resizable:!0,filter:!0,cellClass:"cellCenter "},{headerName:"Hit Read Ratio",field:"hitReadRatioLabel",width:110,sortable:!0,resizable:!0,filter:!0,cellClass:"cellCenter "},{headerName:"Width",field:"widthLabel",width:72,sortable:!0,resizable:!0,filter:!0,cellClass:"cellCenter "},{headerName:"Loops",field:"loopsLabel",width:72,sortable:!0,resizable:!0,filter:!0,cellClass:"cellCenter "}]),a={ExplainOperationCell:rl};return(l,i)=>(v(),E("div",ml,[p(r(gs),{class:"h-full",columns:[],data:[],"column-key-by":"index","skip-re-column-size":"","has-hash-index":!1,"override-column-defs":r(o),"override-row-data":r(n),"external-components":a},null,8,["override-column-defs","override-row-data"])]))}}),fl={class:"h-full p-2"},hl={class:"rounded-lg border p-2 flex flex-col h-full min-h-0"},vl={class:"flex justify-between items-center mb-4"},gl={class:"text-sm font-bold text-muted-foreground uppercase flex items-center gap-2"},yl={key:0,class:"h-full grid place-items-center text-sm text-muted-foreground"},xl={key:1,class:"flex-1 overflow-auto relative"},bl={class:"min-w-[680px] text-xs"},_l={class:"flex border-b pb-2 mb-2 sticky top-0 bg-background z-10 font-medium text-muted-foreground"},Cl={class:"flex-1 relative h-4"},Sl={class:"absolute right-0"},wl={class:"pb-2"},Tl=["onMouseenter"],El={class:"w-[28%] min-w-[190px] max-w-[260px] px-2 flex items-center overflow-hidden"},Rl={class:"truncate flex items-center gap-1"},$l={class:"font-mono text-[10px] text-right shrink-0 text-muted-foreground"},kl={class:"flex flex-col truncate"},zl=["title"],Ml={key:0,class:"text-muted-foreground text-[10px] truncate"},Ll={key:0},Al={class:"flex-1 relative h-6 mx-2"},Nl={class:"space-y-2 text-xs"},Il={class:"font-semibold flex items-center gap-1"},Ol={class:"grid grid-cols-2 gap-x-3 gap-y-1 text-[11px]"},Pl={class:"font-mono"},ql={class:"font-mono"},Vl={class:"font-mono"},Dl={class:"font-mono"},Fl={class:"font-mono"},Bl={class:"font-mono"},Ql={class:"font-mono"},Ul={class:"font-mono"},jl={key:0,class:"text-[11px] text-muted-foreground"},Hl={key:0},je=14,Wl=H({__name:"ExplainTimelineChartPane",props:{nodes:{},totalTime:{}},setup(s){const t=s,e=G(null),n=q(()=>{const m=[...t.nodes].filter(x=>typeof x["Actual Startup Time"]=="number"&&typeof x["Actual Total Time"]=="number").map(x=>{const S=x["Actual Startup Time"]||0,b=x["Actual Total Time"]||0,g=Math.max(0,b-S);return{id:x.id,nodeType:x["Node Type"],relation:x["Relation Name"],alias:x.Alias,depth:x.depth,actualRows:x["Actual Rows"],actualLoops:x["Actual Loops"],planRows:x["Plan Rows"],totalCost:x["Total Cost"],start:S,end:b,duration:g}}),y=(x,S)=>{for(let b=x+1;b<m.length;b+=1){const g=m[b].depth;if(g<S)return!1;if(g===S)return!0}return!1};return m.map((x,S)=>{const b=[];for(let g=1;g<x.depth;g+=1)y(S,g)&&b.push(g);return{...x,continuationLevels:b,hasNextSibling:x.depth>0?y(S,x.depth):!1}})}),o=q(()=>{const m=n.value.length?Math.max(...n.value.map(y=>y.end)):0;return Math.max(t.totalTime||0,m,1)}),a=(m,y)=>{const x=o.value>0?o.value:1,S=m/x*100,b=Math.max(y/x*100,.5);return{left:`${S}%`,width:`${b}%`}},l=m=>{const y=o.value>0?o.value:1;return(m/y*100).toFixed(2)},i=m=>`${Math.max(m,0)*je}px`,u=m=>`${(m-1)*je+je/2}px`,c=`${je/2}px`,d=m=>m==="Seq Scan"?"bg-gray-400 dark:bg-gray-600":m.includes("Scan")?"bg-gray-300 dark:bg-gray-700":m.includes("Join")?"bg-gray-500 dark:bg-gray-500":m==="Sort"?"bg-gray-300 dark:bg-gray-600":(m.includes("Aggregate"),"bg-gray-400 dark:bg-gray-600");return(m,y)=>{const x=ce,S=re,b=le,g=ie;return v(),E("div",fl,[f("div",hl,[f("div",vl,[f("h3",gl,[p(x,{name:"hugeicons:clock-01",class:"size-4"}),y[1]||(y[1]=A(" Execution Plan Timeline "))]),y[2]||(y[2]=f("span",{class:"text-xs text-muted-foreground"},"Hover for details",-1))]),r(n).length===0?(v(),E("div",yl," No timeline data available ")):(v(),E("div",xl,[f("div",bl,[f("div",_l,[y[7]||(y[7]=f("div",{class:"w-[28%] min-w-[190px] max-w-[260px] pl-2"}," Node Hierarchy ",-1)),f("div",Cl,[y[3]||(y[3]=f("div",{class:"absolute left-0"},"0ms",-1)),f("div",Sl,I(r(Qe)(r(o))),1),y[4]||(y[4]=f("div",{class:"absolute left-1/4 border-l h-full"},null,-1)),y[5]||(y[5]=f("div",{class:"absolute left-1/2 border-l h-full"},null,-1)),y[6]||(y[6]=f("div",{class:"absolute left-3/4 border-l h-full"},null,-1))])]),f("div",wl,[(v(!0),E(Y,null,Z(r(n),_=>(v(),E("div",{key:_.id,class:ue(["flex items-center group rounded transition-colors hover:bg-muted",r(e)===_.id?"bg-muted/40":""]),onMouseenter:C=>e.value=_.id,onMouseleave:y[0]||(y[0]=C=>e.value=null)},[f("div",El,[f("div",{class:"relative shrink-0 h-7",style:Ne({width:i(_.depth)})},[(v(!0),E(Y,null,Z(_.continuationLevels,C=>(v(),E("div",{key:`${_.id}-v-${C}`,class:"absolute top-0 bottom-0 border-l border-dashed border-muted-foreground/35",style:Ne({left:u(C)})},null,4))),128)),_.depth>0?(v(),E(Y,{key:0},[f("div",{class:"absolute top-0 border-l border-dashed border-muted-foreground/45",style:Ne({left:u(_.depth),height:_.hasNextSibling?"100%":"50%"})},null,4),f("div",{class:"absolute top-1/2 -translate-y-1/2 border-t border-dashed border-muted-foreground/45",style:Ne({left:u(_.depth),width:c})},null,4)],64)):j("",!0)],4),f("div",Rl,[f("span",$l," #"+I(_.id.replace("ep-","")),1),f("div",kl,[f("span",{class:"truncate font-medium text-sm",title:_.nodeType},I(_.nodeType),9,zl),_.relation?(v(),E("span",Ml,[A(I(_.relation)+" ",1),_.alias&&_.alias!==_.relation?(v(),E("span",Ll,"("+I(_.alias)+")",1)):j("",!0)])):j("",!0)])])]),f("div",Al,[y[16]||(y[16]=un('<div class="absolute top-0 bottom-0 left-0 w-px bg-muted"></div><div class="absolute top-0 bottom-0 right-0 w-px bg-muted"></div><div class="absolute top-0 bottom-0 left-1/4 w-px bg-muted"></div><div class="absolute top-0 bottom-0 left-1/2 w-px bg-muted"></div><div class="absolute top-0 bottom-0 left-3/4 w-px bg-muted"></div>',5)),p(g,null,{default:h(()=>[p(S,{"as-child":""},{default:h(()=>[f("div",{class:ue(["absolute top-1 bottom-1 rounded-sm transition-all shadow-sm opacity-90 cursor-default",[d(_.nodeType),r(e)===_.id?"brightness-105 ring-2 ring-border z-10":""]]),style:Ne(a(_.start,_.duration))},null,6)]),_:2},1024),p(b,{side:"top","side-offset":8,class:"max-w-[360px]"},{default:h(()=>{var C,k,V,T;return[f("div",Nl,[f("div",Il,[p(x,{name:"hugeicons:flow-square",class:"size-3.5"}),A(" "+I(_.nodeType),1)]),f("div",Ol,[y[8]||(y[8]=f("span",{class:"text-muted-foreground"},"Start",-1)),f("span",Pl,I(r(Qe)(_.start)),1),y[9]||(y[9]=f("span",{class:"text-muted-foreground"},"End",-1)),f("span",ql,I(r(Qe)(_.end)),1),y[10]||(y[10]=f("span",{class:"text-muted-foreground"},"Duration",-1)),f("span",Vl,I(r(Qe)(_.duration)),1),y[11]||(y[11]=f("span",{class:"text-muted-foreground"},"Share",-1)),f("span",Dl,I(l(_.duration))+"%",1),y[12]||(y[12]=f("span",{class:"text-muted-foreground"},"Rows",-1)),f("span",Fl,I(((C=_.actualRows)==null?void 0:C.toLocaleString())??"-"),1),y[13]||(y[13]=f("span",{class:"text-muted-foreground"},"Plan Rows",-1)),f("span",Bl,I(((k=_.planRows)==null?void 0:k.toLocaleString())??"-"),1),y[14]||(y[14]=f("span",{class:"text-muted-foreground"},"Loops",-1)),f("span",Ql,I(((V=_.actualLoops)==null?void 0:V.toLocaleString())??"-"),1),y[15]||(y[15]=f("span",{class:"text-muted-foreground"},"Total Cost",-1)),f("span",Ul,I(((T=_.totalCost)==null?void 0:T.toFixed(2))??"-"),1)]),_.relation?(v(),E("div",jl,[A(" Relation: "+I(_.relation)+" ",1),_.alias&&_.alias!==_.relation?(v(),E("span",Hl,"("+I(_.alias)+")",1)):j("",!0)])):j("",!0)])]}),_:2},1024)]),_:2},1024)])],42,Tl))),128))])])]))])])}}}),Gl={class:"h-full overflow-auto p-2"},Kl=H({__name:"ExplainRawPane",props:{rawText:{}},setup(s){const t=s,e=q(()=>{const n=t.rawText.trim();return n.startsWith("{")||n.startsWith("[")?"json":"sql"});return(n,o)=>{const a=Tt;return v(),E("div",Gl,[p(a,{code:n.rawText,language:e.value,"max-height":"100%"},null,8,["code","language"])])}}});let Xe=0;const Yl=()=>(Xe+=1,`ep-${Xe}`),Wt=s=>s==null?"":typeof s=="string"?s:typeof s=="number"||typeof s=="boolean"?String(s):JSON.stringify(s),Jl=s=>{const t=(s["Shared Hit Blocks"]??0)+(s["Local Hit Blocks"]??0),e=(s["Shared Read Blocks"]??0)+(s["Local Read Blocks"]??0),n=t+e;if(!(n<=0))return Number((t/n).toFixed(4))},Xl=(s,t)=>{const e=t["Plan Rows"],n=t["Actual Rows"];if(e!==void 0&&n!==void 0&&e>0&&n>=0){s.estimateRatio=Number((n/e).toFixed(2));const o=n/e;o>10?s.rowEstimateAccuracy="underestimate":o<.1?s.rowEstimateAccuracy="overestimate":s.rowEstimateAccuracy="accurate"}s.hitReadRatio=Jl(t),(t["Total Cost"]!==void 0&&t["Total Cost"]>1e3||t["Actual Total Time"]!==void 0&&t["Actual Total Time"]>100)&&(s.isExpensive=!0)},Zl=s=>{let t=0,e="";for(const o of s){const a=o.children.reduce((i,u)=>i+(u["Actual Total Time"]??0)*(u["Actual Loops"]??1),0)/(o["Actual Loops"]??1),l=Math.max(0,(o["Actual Total Time"]??0)-a);l>t&&(t=l,e=o.id)}const n=s.find(o=>o.id===e);n&&(n.isSlowest=!0)},Es=(s,t,e)=>{const{Plans:n,...o}=s,a=s["Node Type"]||"Unknown Node",l=s["Relation Name"],i={...o,id:Yl(),index:Xe,label:l?`${a} on ${l}`:a,estimateRatio:void 0,hitReadRatio:void 0,isExpensive:!1,isSlowest:!1,rowEstimateAccuracy:void 0,depth:t,children:(n??[]).map(u=>Es(u,t+1,e))};return e.push(i),Xl(i,s),i},ei=(s,t)=>{Xe=0;const e=[],n=Es(s.Plan,0,e),o={"Planning Time":s["Planning Time"],"Execution Time":s["Execution Time"],totalCost:n["Total Cost"],triggersInfo:(s.Triggers??[]).map(Wt),jitInfo:[],settingsInfo:s.Settings?Object.entries(s.Settings).map(([l,i])=>`${l}: ${Wt(i)}`):[],rawText:t};Zl(e);const a=[...e].sort((l,i)=>l.index-i.index);return{root:n,summary:o,allNodes:a}},ti=s=>{const t={triggersInfo:[],jitInfo:[],settingsInfo:[],rawText:s},e=s.match(/Planning Time:\s*(\d+\.?\d*)\s*ms/i),n=s.match(/Execution Time:\s*(\d+\.?\d*)\s*ms/i);return e&&(t["Planning Time"]=Number.parseFloat(e[1])),n&&(t["Execution Time"]=Number.parseFloat(n[1])),{root:null,summary:t,allNodes:[]}},ht=s=>{if(!s)return null;if(typeof s=="string")try{return ht(JSON.parse(s))}catch{return null}return Array.isArray(s)?s.length?ht(s[0]):null:typeof s=="object"&&s!==null&&"Plan"in s&&typeof s.Plan=="object"?s:null},Rs=(s,t)=>{var e;if(!(s!=null&&s.length))return null;if(Array.isArray(s[0]))return s[0][0]??null;if(typeof s[0]=="object"&&s[0]!==null){const n=s[0],o=Object.keys(n).find(a=>a.toUpperCase()==="QUERY PLAN")||((e=t==null?void 0:t[0])==null?void 0:e.name)||Object.keys(n)[0];return o?n[o]??null:null}return s[0]??null},si=(s,t)=>{const e=Rs(s,t);return e==null?"":typeof e=="string"?e:JSON.stringify(e,null,2)},ni=s=>{const t=typeof s=="string"?s:JSON.stringify(s,null,2),e=ht(s);return e?ei(e,t):ti(t)},oi={class:"h-full min-h-0"},ai={key:0,class:"h-full flex flex-col items-center justify-center gap-2 text-muted-foreground"},ri=H({__name:"ResultTabExplainView",props:{activeTab:{}},setup(s){const t=s,e=G(We.GRID),n=G(!1),o=q(()=>Rs(t.activeTab.result,t.activeTab.metadata.fieldDefs)),a=q(()=>si(t.activeTab.result,t.activeTab.metadata.fieldDefs)),l=q(()=>ni(o.value)),i=q(()=>{const u=l.value.allNodes,c=u.filter(m=>m.isExpensive),d=u.filter(m=>m.isSlowest);return{planningTime:l.value.summary["Planning Time"],executionTime:l.value.summary["Execution Time"],nodeCount:u.length,expensiveCount:c.length,slowCount:d.length,allNodes:u,expensiveNodes:c,slowNodes:d}});return(u,c)=>{const d=tl,m=ce,y=pl,x=Wl,S=Kl;return v(),E("div",oi,[r(n)?(v(),E("div",{key:0,class:"fixed inset-0 z-40 bg-background/70 backdrop-blur-[1px]",onClick:c[0]||(c[0]=b=>n.value=!1)})):j("",!0),f("div",{class:ue(["flex flex-col",r(n)?"fixed z-50 left-1/2 top-1/2 h-[90vh] w-[95vw] -translate-x-1/2 -translate-y-1/2 rounded-xl border bg-background shadow-2xl":"h-full min-h-0 overflow-hidden"])},[p(d,{modelValue:r(e),"onUpdate:modelValue":c[1]||(c[1]=b=>Se(e)?e.value=b:null),"summary-stats":r(i),"is-expanded":r(n),onToggleExpand:c[2]||(c[2]=b=>n.value=!r(n))},null,8,["modelValue","summary-stats","is-expanded"]),f("div",{class:ue(["flex-1 min-h-0",r(n)?"overflow-hidden":"overflow-y-auto"])},[r(l).root?r(e)===r(We).GRID?(v(),R(y,{key:1,nodes:r(l).allNodes},null,8,["nodes"])):r(e)===r(We).TIMELINE?(v(),R(x,{key:2,nodes:r(l).allNodes,"total-time":r(i).executionTime},null,8,["nodes","total-time"])):(v(),R(S,{key:3,"raw-text":r(a)},null,8,["raw-text"])):(v(),E("div",ai,[p(m,{name:"hugeicons:alert-02",class:"size-8 opacity-50"}),c[3]||(c[3]=f("p",{class:"text-sm"},"Could not parse execution plan",-1))]))],2)],2)])}}}),li={class:"h-full flex w-full"},ii={key:0,class:"flex mt-7 [writing-mode:vertical-rl]"},ui=["onClick"],ci={class:"h-full w-full flex flex-col"},di={class:"flex items-end overflow-x-auto pt-0.5"},mi=["onClick","onContextmenu"],pi={class:"truncate text-xs font-medium"},fi=["onClick"],hi={class:"h-full w-full border rounded-md rounded-tl-none overflow-hidden"},vi=H({__name:"RawQueryResultTabs",props:{executedResults:{},activeTabId:{},executeLoading:{type:Boolean},isStreaming:{type:Boolean}},emits:["update:activeTab","close-tab","close-other-tabs","close-tabs-to-right","update:view"],setup(s,{emit:t}){const e=s,n=t,o=G(null),a=q(()=>{if(!o.value)return!1;const g=Array.from(e.executedResults.keys()),_=g.indexOf(o.value);return _>=0&&_<g.length-1}),l=[{value:"result",label:"Result"},{value:"explain",label:"Explain"},{value:"raw",label:"Raw"},{value:"info",label:"Info"},{value:"error",label:"Errors"},{value:"agent",label:"Agent"}],i=new Map,u=Ve([]);let c=null;const d=q(()=>e.activeTabId&&e.executedResults.get(e.activeTabId)||null),m=q(()=>{var g;return((g=d.value)==null?void 0:g.view)||"result"}),y=q(()=>{var g;return(g=d.value)!=null&&g.metadata.fieldDefs?d.value.metadata.fieldDefs.map((_,C)=>{var k;return{index:C,originalName:_.name,aliasFieldName:_.name,queryFieldName:_.name,isPrimaryKey:!1,isForeignKey:!1,type:((k=_.dataTypeID)==null?void 0:k.toString())||"unknown",tableName:""}}):[]}),x=g=>{var T,U;const _=((T=g.result)==null?void 0:T.length)||0,C=`${g.id}_${_}`;if(i.has(C))return i.get(C);const k=g.metadata.fieldDefs||[],V=((U=g.result)==null?void 0:U.map(D=>{var B;const N={};for(const[O,P]of Object.entries(D)){const W=((B=k[Number(O)])==null?void 0:B.name)||"";W&&(N[W]=P)}return N}))??[];i.set(C,V);for(const D of i.keys())D.startsWith(`${g.id}_`)&&D!==C&&i.delete(D);return V};ge(d,g=>{c&&cancelAnimationFrame(c),c=requestAnimationFrame(()=>{u.value=g?x(g):[],c=null})},{immediate:!0}),cn(()=>{c&&cancelAnimationFrame(c)});const S=g=>{e.activeTabId&&n("update:view",e.activeTabId,g)},b=g=>!!g.metadata.executeErrors;return(g,_)=>{const C=ce,k=re,V=le,T=ie,U=is,D=tt;return v(),E("div",li,[r(d)?(v(),E("div",ii,[(v(),E(Y,null,Z(l,N=>f("div",{key:N.value,onClick:B=>b(r(d))&&(N.value==="result"||N.value==="raw")||N.value==="error"&&!b(r(d))?null:S(N.value),class:ue(r(Ce)("border px-1 text-xs font-normal transition-colors",r(m)===N.value?"bg-muted border-transparent border-r-border":"border-transparent",N.value==="error"&&b(r(d))?"hover:bg-muted cursor-pointer":N.value==="explain"&&!r(d).metadata.statementQuery.startsWith("EXPLAIN")?null:"",N.value==="error"&&!b(r(d))?"opacity-40 cursor-not-allowed":"",(N.value==="result"||N.value==="raw")&&b(r(d))?"opacity-40 cursor-not-allowed":"",N.value==="explain"&&!r(d).metadata.statementQuery.startsWith("EXPLAIN")?"opacity-40 cursor-not-allowed":"",N.value==="error"&&!b(r(d))||(N.value==="result"||N.value==="raw")&&b(r(d))||N.value==="explain"&&!r(d).metadata.statementQuery.startsWith("EXPLAIN")?"":"hover:bg-muted cursor-pointer"))},I(N.label),11,ui)),64))])):j("",!0),f("div",ci,[f("div",di,[p(r(ps),null,{default:h(()=>[p(r(fs),{class:"flex items-end"},{default:h(()=>[(v(!0),E(Y,null,Z(g.executedResults,([N,B])=>(v(),R(T,{key:N},{default:h(()=>[p(k,{"as-child":""},{default:h(()=>[f("div",{onClick:O=>g.$emit("update:activeTab",N),onContextmenu:O=>o.value=N,class:ue(r(Ce)("h-6! flex gap-0.5 rounded-t-md max-w-44 justify-start! items-center font-normal p-1! hover:[&>div]:opacity-100 transition-all duration-200 border rounded-b-none cursor-pointer relative",N===g.activeTabId?"border-b-transparent bg-background dark:bg-accent":"border-transparent bg-muted/30"))},[p(C,{name:b(B)?"hugeicons:alert-02":"hugeicons:sql",class:ue(r(Ce)("min-w-4",b(B)?"text-red-500":""))},null,8,["name","class"]),f("div",pi," Query "+I(B.seqIndex)+" - "+I(B.metadata.statementQuery),1),f("div",{onClick:_t(O=>g.$emit("close-tab",N),["stop"]),class:"hover:bg-accent h-5 w-5 flex items-center justify-center rounded-full opacity-0"},[p(C,{name:"lucide:x",class:"stroke-[2.5]! size-3!"})],8,fi)],42,mi)]),_:2},1024),p(V,{class:"max-w-xl"},{default:h(()=>[f("p",null,I(B.metadata.statementQuery),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),r(o)?(v(),R(r(hs),{key:0,hideWhenDetached:"",class:"w-56"},{default:h(()=>[p(r(He),{onSelect:_[0]||(_[0]=N=>g.$emit("close-tab",r(o)))},{default:h(()=>_[4]||(_[4]=[A(" Close ")])),_:1}),p(r(He),{onSelect:_[1]||(_[1]=N=>g.$emit("close-other-tabs",r(o)))},{default:h(()=>_[5]||(_[5]=[A(" Close Others ")])),_:1}),p(r(He),{disabled:!r(a),onSelect:_[2]||(_[2]=N=>g.$emit("close-tabs-to-right",r(o)))},{default:h(()=>_[6]||(_[6]=[A(" Close to the Right ")])),_:1},8,["disabled"])]),_:1})):j("",!0)]),_:1})]),f("div",hi,[g.executeLoading&&g.activeTabId?(v(),R(U,{key:0,visible:""})):j("",!0),r(d)?r(d)&&r(m)==="result"?(v(),R(Qr,{"active-tab":r(d),"active-tab-columns":r(y),"formatted-data":r(u),"execute-loading":g.executeLoading,"is-streaming":g.isStreaming,key:r(d).id},null,8,["active-tab","active-tab-columns","formatted-data","execute-loading","is-streaming"])):r(d)&&r(m)==="explain"?(v(),R(ri,{key:3,"active-tab":r(d)},null,8,["active-tab"])):r(d)&&r(m)==="raw"?(v(),R(Mr,{key:4,"formatted-data":r(u),"execute-loading":g.executeLoading,"is-streaming":g.isStreaming},null,8,["formatted-data","execute-loading","is-streaming"])):r(d)&&r(m)==="info"?(v(),R(kr,{key:5,"active-tab":r(d)},null,8,["active-tab"])):r(d)&&r(m)==="error"?(v(),R(dr,{key:6,"active-tab":r(d),onOnChangeView:_[3]||(_[3]=N=>S(N))},null,8,["active-tab"])):r(d)&&r(m)==="agent"?(v(),R(er,{key:7,"active-tab":r(d)},null,8,["active-tab"])):j("",!0):(v(),R(D,{key:1,title:"No results",desc:"Execute a query to see results"}))])])])}}});function gi({query:s,dbConnectionString:t,params:e,onMeta:n,onRows:o,onDone:a,onError:l}){const i=new AbortController;let u=0;return(async()=>{var d;try{const m=await fetch("/api/query/raw-execute-stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:s,dbConnectionString:t,params:e||{}}),signal:i.signal});if(!m.ok){const b=await m.text();l==null||l(b||`HTTP ${m.status}`);return}const y=(d=m.body)==null?void 0:d.getReader();if(!y){l==null||l("No readable stream available");return}const x=new TextDecoder;let S="";for(;;){const{done:b,value:g}=await y.read();if(b)break;S+=x.decode(g,{stream:!0});const _=S.split(`
11
- `);S=_.pop()||"";for(const C of _){const k=C.trim();if(k)try{const V=JSON.parse(k);switch(V.type){case"meta":n==null||n(V.fields,V.command);break;case"rows":u+=V.data.length,o==null||o(V.data,u);break;case"done":a==null||a(V.rowCount,V.queryTime);break;case"error":l==null||l(V.message,V.error);break}}catch{console.warn("[StreamingQuery] Malformed NDJSON line:",k)}}}if(S.trim())try{const b=JSON.parse(S.trim());b.type==="done"?a==null||a(b.rowCount,b.queryTime):b.type==="error"&&(l==null||l(b.message))}catch{}}catch(m){if(m.name==="AbortError")return;l==null||l(m.message||"Stream connection failed")}})(),{abort:()=>i.abort()}}function yi({getEditorView:s,connection:t,fileVariables:e,fieldDefs:n,resultTabs:o,buildExplainAnalyzePrefix:a}){const l=Ve([]),i=Ve({}),u=Ve(0),c=dn({isHaveOneExecute:!1,executeLoading:!1,isStreaming:!1,streamingRowCount:0,queryTime:0,executeErrors:void 0,currentStatementQuery:""});let d=null;const m=async({currentStatements:b,queryPrefix:g})=>{var N,B;if(!b.length)return;const _=b[0];c.isHaveOneExecute=!0,c.currentStatementQuery=_.text;let C=_.text,k={};try{k=JSON.parse(e.value||"{}")}catch(O){console.log("fileParameters error::",O)}let V="result";g&&(C=`${g} ${C}`,g.startsWith("EXPLAIN")&&(V="explain")),n.value=[],l.value=[],i.value={},c.executeLoading=!0,c.isStreaming=!1,c.streamingRowCount=0,d&&(d(),d=null),u.value++;const T={id:lo(),metadata:{queryTime:0,statementQuery:C,executedAt:new Date,executeErrors:void 0,fieldDefs:void 0,connection:void 0},result:[],view:V,seqIndex:u.value};o.addResultTab(T),jo(s());const U=[];if(g&&V==="explain"){try{const O=await $fetch("/api/query/raw-execute",{method:"POST",body:{dbConnectionString:(N=t.value)==null?void 0:N.connectionString,query:C,params:k},onResponseError:({response:P})=>{var ee,Le;const W=(ee=P._data)==null?void 0:ee.data,X=s();X&&W&&Ut({editorView:X,originalSql:_.text,statementFrom:Number(_.from),fileParameters:k,errorDetail:W,clientType:((Le=t.value)==null?void 0:Le.type)||ae.POSTGRES,queryPrefix:g})}});n.value=O.fields,T.metadata.fieldDefs=O.fields,T.result=O.rows,T.metadata.queryTime=O.queryTime||0,T.metadata.connection=t.value,i.value=O,l.value=O.rows,c.executeErrors=void 0,c.queryTime=O.queryTime||0}catch(O){c.executeErrors=O.data,T.metadata.executeErrors=O.data,T.view="error"}c.executeLoading=!1,o.refreshResultTab(T.id,T);return}c.isStreaming=!0,c.executeLoading=!1;const{abort:D}=gi({query:C,dbConnectionString:((B=t.value)==null?void 0:B.connectionString)||"",params:k,onMeta:(O,P)=>{n.value=O,T.metadata.fieldDefs=O,T.metadata.connection=t.value,T.metadata.command=P,o.refreshResultTab(T.id,T)},onRows:(O,P)=>{U.push(...O),c.streamingRowCount=P,T.result=U,T.metadata.rowCount=P,l.value=U,o.refreshResultTab(T.id,T)},onDone:(O,P)=>{c.executeLoading=!1,c.isStreaming=!1,c.queryTime=P,c.executeErrors=void 0,c.streamingRowCount=O,T.metadata.queryTime=P,T.metadata.rowCount=O,i.value={rows:T.result,fields:n.value,queryTime:P},o.refreshResultTab(T.id,T),d=null},onError:(O,P)=>{var ee;const W={message:O,data:P||{message:O}};c.executeLoading=!1,c.isStreaming=!1,c.executeErrors=W,T.metadata.executeErrors=W,T.view="error";const X=s();X&&P&&Ut({editorView:X,originalSql:_.text,statementFrom:Number(_.from),fileParameters:k,errorDetail:P,clientType:((ee=t.value)==null?void 0:ee.type)||ae.POSTGRES}),o.refreshResultTab(T.id,T),d=null}});d=D};return{currentRawQueryResult:l,rawResponse:i,queryProcessState:c,executeCurrentStatement:m,onExecuteCurrent:()=>{const b=s();if(!b)return;const{currentStatements:g}=Je(b);m({currentStatements:g})},onExplainAnalyzeCurrent:()=>{const b=s();if(!b)return;const{currentStatements:g}=Je(b);m({currentStatements:g,queryPrefix:a()})},cancelStreamingQuery:()=>{d&&(d(),d=null,c.executeLoading=!1,c.isStreaming=!1)}}}function xi(){const s=G({BUFFERS:!0,COSTS:!0,GENERIC_PLAN:!1,MEMORY:!1,SETTINGS:!0,SUMMARY:!0,TIMING:!0,VERBOSE:!0,WAL:!0}),t=G("NONE"),e=l=>{s.value[l]=!s.value[l]},n=l=>{t.value=l};return{explainAnalyzeOptionItems:q(()=>Lt.filter(l=>l.key!=="SERIALIZE").map(l=>({key:l.key,label:l.label,checked:s.value[l.key]}))),serializeMode:t,toggleExplainOption:e,setSerializeMode:n,buildExplainAnalyzePrefix:()=>{const l=Lt.filter(c=>c.key!=="SERIALIZE"&&s.value[c.key]).map(c=>c.key).flatMap(c=>c==="GENERIC_PLAN"?[]:[c]),i=t.value==="NONE"?[]:[`SERIALIZE ${t.value}`];return`EXPLAIN (${["ANALYZE","FORMAT JSON",...l,...i].join(", ")})`}}}function bi(){const s=Ve(new Map),t=G(null),e=d=>{const m=new Map;m.set(d.id,d),s.value.forEach((y,x)=>{m.set(x,y)}),s.value=m,t.value=d.id},n=(d,m)=>{const y=new Map(s.value);y.set(d,{...m}),s.value=y};return{executedResults:s,activeResultTabId:t,addResultTab:e,refreshResultTab:n,setActiveResultTab:d=>{s.value.has(d)&&(t.value=d)},closeResultTab:d=>{const m=new Map(s.value);if(m.delete(d),s.value=m,t.value===d){const y=Array.from(m.keys());t.value=y.length>0?y[y.length-1]:null}},updateResultTabView:(d,m)=>{const y=s.value.get(d);y&&n(d,{...y,view:m})},closeOtherResultTabs:d=>{const m=s.value.get(d);if(!m)return;const y=new Map;y.set(d,m),s.value=y,t.value=d},closeResultTabsToRight:d=>{const m=Array.from(s.value.keys()),y=m.indexOf(d);if(y<0)return;const x=new Map;for(let S=0;S<=y;S++){const b=m[S],g=s.value.get(b);g&&x.set(b,g)}s.value=x,x.has(t.value||"")||(t.value=d)},updateResultTabResult:(d,m)=>{const x=new Map(s.value).get(d);x&&(x.result=m)}}}function qe(s,...t){}const _i=s=>{let t;return async()=>(t||(t=s()),await t)};class Rt{constructor(t={}){ne(this,"opts");ne(this,"parser",null);ne(this,"offsetRecord",{});ne(this,"getParser",_i(async()=>{if(this.parser)return this.parser;const t=await us(()=>import("./DLBa45iT.js").then(n=>n.i),__vite__mapDeps([0,1,2]),import.meta.url),{Parser:e}=t.default||t;return this.parser=new e,this.parser}));this.opts=t}async parse(t,e){var a,l;this.offsetRecord={};const n=(l=(a=this.opts).getParserOptions)==null?void 0:l.call(a,e.state),o=await this.sanitizeSql(t,n);try{const i=await this.getParser();if((n==null?void 0:n.database)==="DuckDB")return this.parseWithDuckDBSupport(o,n);const u=i.astify(o,n);return{success:!0,errors:[],ast:u}}catch(i){return{success:!1,errors:[this.extractErrorInfo(i,o)]}}}async sanitizeSql(t,e){if(e!=null&&e.ignoreBrackets){const{sql:n,offsetRecord:o}=wi(t);return this.offsetRecord=o,n}return t}async parseWithDuckDBSupport(t,e){const n=await this.getParser(),o=Ci(t).trimStart().toLowerCase();if(o.startsWith("from")||o.includes("macro"))return qe(),{success:!0,errors:[]};let a=t;o.includes("create or replace table")&&(this.offsetRecord[t.indexOf("create or replace table")]=-11,a=t.replace(/create or replace table/i,"create table"));try{const l={...e,database:"PostgreSQL"},i=n.astify(a,l);return{success:!0,errors:[],ast:i}}catch(l){return{success:!1,errors:[this.extractErrorInfo(l,t)]}}}extractErrorInfo(t,e){var i,u,c;let n=1,o=1;const a=(t==null?void 0:t.message)||"SQL parsing error",l=t;if(l!=null&&l.location)n=((i=l.location.start)==null?void 0:i.line)||1,o=((u=l.location.start)==null?void 0:u.column)||1;else if(l!=null&&l.hash)n=l.hash.line||1,o=((c=l.hash.loc)==null?void 0:c.first_column)||1;else{const d=a.match(/line (\d+)/i),m=a.match(/column (\d+)/i);d!=null&&d[1]&&(n=parseInt(d[1],10)),m!=null&&m[1]&&(o=parseInt(m[1],10))}for(const[d,m]of Object.entries(this.offsetRecord))o>parseInt(d,10)&&(o-=m);return o>e.length&&(o=e.length),{message:this.cleanErrorMessage(a),line:Math.max(1,n),column:o,severity:"error"}}cleanErrorMessage(t){return t.replace(/^Error: /,"").replace(/Expected .* but .* found\./i,e=>e.replace(/but .* found/,"found unexpected token")).trim()}async validateSql(t,e){return(await this.parse(t,e)).errors}async extractTableReferences(t,e){var o,a;const n=e?(a=(o=this.opts).getParserOptions)==null?void 0:a.call(o,e.state):void 0;try{return(await this.getParser()).tableList(t,n).map(u=>{const c=u.split("::");return c[c.length-1]||u})}catch{return[]}}async extractColumnReferences(t,e){var o,a;const n=e!=null&&e.state?(a=(o=this.opts).getParserOptions)==null?void 0:a.call(o,e.state):void 0;try{return(await this.getParser()).columnList(t,n).map(c=>{const d=c.split("::");return d[d.length-1]||c})}catch{return[]}}}function Ci(s,t=["/*","--"]){const e=[];if(t.includes("/*")&&e.push("/\\*[\\s\\S]*?\\*/"),t.includes("--")&&e.push("--[^\\n]*"),e.length===0)return s;const n=new RegExp(`^\\s*(${e.join("|")})\\s*`,"");let o=s,a="";for(;o!==a;)a=o,o=o.replace(n,"");return o}const Si=2;function wi(s){const t={};return{sql:s.replace(/("(?:[^"\\]|\\.)*")|('(?:[^'\\]|\\.)*')|(\{[^}]*\})/g,(n,o,a,l,i)=>o||a?n:l?(t[i]=Si,`'${l}'`):n),offsetRecord:t}}const Ti=750;function Ei(s,t){const n=t.line(s.line).from+Math.max(0,s.column-1),o=n+1;return{from:n,to:o,severity:s.severity,message:s.message,source:"sql-parser"}}function Ri(s={}){const t=s.parser||new Rt;return xs(async e=>{const n=e.state.doc,o=n.toString();return o.trim()?(await t.validateSql(o,{state:e.state})).map(l=>Ei(l,n)):[]},{delay:s.delay||Ti})}function $e(s){return typeof s=="object"&&!Array.isArray(s)&&!("self"in s)}function xe(s){return typeof s=="object"&&!Array.isArray(s)&&"self"in s&&"children"in s}function fe(s){return Array.isArray(s)}function se(s,t,e,n){const o=s.length;if(t==="string"||t==="completion"&&n&&fe(n))return"column";if(t==="namespace"&&e){if(fe(e))return"table";if($e(e))return Object.values(e).some(l=>fe(l)||xe(l)&&fe(l.children))?o<=1?"database":"schema":o===0?"database":"namespace"}if(t==="completion"&&e)return fe(e)?"table":($e(e)&&Object.values(e).some(l=>fe(l)||xe(l)&&fe(l.children)),o<=1?"database":"schema");switch(o){case 0:return"database";case 1:return"schema";default:return"namespace"}}function $s(s,t,e={}){const{maxDepth:n=10}=e;if(t===""&&xe(s)){const a=se([],"completion",s.children);return{completion:s.self,path:[],type:"completion",semanticType:a,namespace:s.children}}const o=t.split(".").filter(a=>a.length>0);return o.length===0||o.length>n?null:vt(s,o,[],e)}function vt(s,t,e,n,o){if(t.length===0){if(xe(s)){const c=se(e,"completion",s.children,o);return{completion:s.self,path:e,type:"completion",semanticType:c,namespace:s.children}}const u=se(e,"namespace",s,o);return{path:e,type:"namespace",semanticType:u,namespace:s}}const[a,...l]=t,{caseSensitive:i=!1}=n;if(!a)return null;if($e(s)){const u=i?Object.keys(s).find(c=>c===a):Object.keys(s).find(c=>c.toLowerCase()===a.toLowerCase());if(u){const c=s[u];if(c)return vt(c,l,[...e,u],n,s)}}else{if(xe(s))return vt(s.children,t,e,n,s);if(fe(s)){for(const u of s)if(typeof u=="string"){if((i?u===a:u.toLowerCase()===a.toLowerCase())&&l.length===0){const d=se([...e,u],"string",void 0,s);return{value:u,path:[...e,u],type:"string",semanticType:d}}}else if((i?u.label===a:u.label.toLowerCase()===a.toLowerCase())&&l.length===0){const d=se([...e,u.label],"completion",void 0,s);return{completion:u,path:[...e,u.label],type:"completion",semanticType:d}}}}return null}function $i(s,t,e={}){const n=[];if(t.includes(".")){const o=t.lastIndexOf("."),a=t.substring(0,o),l=t.substring(o+1),i=$s(s,a,e);if(i!=null&&i.namespace)return gt(i.namespace,l,i.path,e)}else return gt(s,t,[],e);return n}function gt(s,t,e,n){const o=[],{caseSensitive:a=!1,allowPartialMatch:l=!0}=n;if($e(s)){for(const[i,u]of Object.entries(s))if(l?a?i.startsWith(t):i.toLowerCase().startsWith(t.toLowerCase()):a?i===t:i.toLowerCase()===t.toLowerCase())if(xe(u)){const d=se([...e,i],"completion",u.children,s);o.push({completion:u.self,path:[...e,i],type:"completion",semanticType:d,namespace:u.children})}else{const d=se([...e,i],"namespace",u,s);o.push({path:[...e,i],type:"namespace",semanticType:d,namespace:u})}}else if(xe(s)){if(l?a?s.self.label.startsWith(t):s.self.label.toLowerCase().startsWith(t.toLowerCase()):a?s.self.label===t:s.self.label.toLowerCase()===t.toLowerCase()){const u=se([...e,s.self.label],"completion",s.children);o.push({completion:s.self,path:[...e,s.self.label],type:"completion",semanticType:u,namespace:s.children})}o.push(...gt(s.children,t,e,n))}else if(fe(s)){for(const i of s)if(typeof i=="string"){if(l?a?i.startsWith(t):i.toLowerCase().startsWith(t.toLowerCase()):a?i===t:i.toLowerCase()===t.toLowerCase()){const c=se([...e,i],"string",void 0,s);o.push({value:i,path:[...e,i],type:"string",semanticType:c})}}else if(l?a?i.label.startsWith(t):i.label.toLowerCase().startsWith(t.toLowerCase()):a?i.label===t:i.label.toLowerCase()===t.toLowerCase()){const c=se([...e,i.label],"completion",void 0,s);o.push({completion:i,path:[...e,i.label],type:"completion",semanticType:c})}}return o}function ki(s,t,e={}){const n=[],{maxDepth:o=10}=e;Ge(s,[],n,o);const{caseSensitive:a=!1}=e;return n.filter(i=>i.path.some(u=>a?u===t:u.toLowerCase()===t.toLowerCase())).sort((i,u)=>{var m,y;const c=a?i.path[i.path.length-1]===t:((m=i.path[i.path.length-1])==null?void 0:m.toLowerCase())===t.toLowerCase(),d=a?u.path[u.path.length-1]===t:((y=u.path[u.path.length-1])==null?void 0:y.toLowerCase())===t.toLowerCase();return c&&!d?-1:!c&&d?1:i.path.length-u.path.length})}function Ge(s,t,e,n){if(!(t.length>=n)){if($e(s))for(const[o,a]of Object.entries(s)){const l=[...t,o];if(xe(a)){const i=se(l,"completion",a.children,s);e.push({completion:a.self,path:l,type:"completion",semanticType:i,namespace:a.children}),Ge(a.children,l,e,n)}else{const i=se(l,"namespace",a,s);e.push({path:l,type:"namespace",semanticType:i,namespace:a}),Ge(a,l,e,n)}}else if(xe(s)){const o=se(t,"completion",s.children);e.push({completion:s.self,path:t,type:"completion",semanticType:o,namespace:s.children}),Ge(s.children,t,e,n)}else if(fe(s))for(const o of s)if(typeof o=="string"){const a=se([...t,o],"string",void 0,s);e.push({value:o,path:[...t,o],type:"string",semanticType:a})}else{const a=se([...t,o.label],"completion",void 0,s);e.push({completion:o,path:[...t,o.label],type:"completion",semanticType:a})}}}function Gt(s,t,e={}){const{enableFuzzySearch:n=!1}=e,o=$s(s,t,e);if(o)return o;const a=$i(s,t,e);if(a.length>0)return a[0]||null;if(n){const l=ki(s,t,e);if(l.length>0)return l[0]||null}return null}function ks(s,t){if(t.size===0)return{};if($e(s)){const e={};for(const[n,o]of Object.entries(s))if(Array.from(t).some(l=>l.toLowerCase()===n.toLowerCase()))e[n]=o;else if($e(o)){const l=ks(o,t);Object.keys(l).length>0&&(e[n]=l)}return e}return s}function zi(s={}){const{schema:t={},keywords:e={},hoverTime:n=300,enableKeywords:o=!0,enableTables:a=!0,enableColumns:l=!0,enableFuzzySearch:i=!0,parser:u=new Rt,tooltipRender:c,tooltipRenderers:d={}}=s;let m=null;return mn(async(y,x,S)=>{const{from:b,to:g,text:_}=y.state.doc.lineAt(x);let C=x,k=x;m===null&&(m=typeof e=="function"?e(y):Promise.resolve(e));const V=await m;for(;C>b&&/[\w.]/.test(_[C-b-1]??"");)C--;for(;k<g&&/[\w.]/.test(_[k-b]??"");)k++;if(C===x&&S<0||k===x&&S>0)return null;const T=_.slice(C-b,k-b).toLowerCase();if(!T||T.length===0)return null;const U=typeof t=="function"?t(y):t;let D=null;if(qe(),!D&&o&&V[T]){qe("keywordResult",T,V[T]);const N={keyword:T,info:V[T]};D={word:T,view:y,pos:x,tooltipType:"keyword",keywordData:N}}if(!D&&(a||l)&&U){const N=y.state.doc.toString(),B=await u.extractTableReferences(N),O=new Set(B.map(X=>X.toLowerCase())),P=ks(U,O);let W=Gt(P,T,{enableFuzzySearch:i});if(!W&&O.size===0&&(W=Gt(U,T,{enableFuzzySearch:i})),W){qe("namespaceResult (query-aware)",T,W,"tableRefs:",Array.from(O));const X={item:W,word:T,resolvedSchema:O.size>0?P:U};D={word:T,view:y,pos:x,tooltipType:"namespace",namespaceData:X}}else qe("No namespace item found for:",T)}return D?{pos:C,end:k,above:!0,create(N){if(c){const P=c(T,N,x);if(P)return{dom:P}}let B=null;if(D.tooltipType==="keyword"&&D.keywordData)B=d.keyword?d.keyword(D.keywordData):Li(D.keywordData);else if(D.tooltipType==="namespace"&&D.namespaceData){const P=D.namespaceData,{semanticType:W}=P.item;W==="table"&&d.table?B=d.table(P):W==="column"&&d.column?B=d.column(P):(W==="database"||W==="schema"||W==="namespace")&&d.namespace?B=d.namespace(P):B=Mi(P.item)}if(!B)return{dom:document.createElement("div")};const O=document.createElement("div");return O.className="cm-sql-hover-tooltip",O.innerHTML=B,{dom:O}}}:null},{hoverTime:n})}function Mi(s){var o,a,l,i,u,c,d;const t=s.path.join("."),e=((o=s.completion)==null?void 0:o.label)||s.value||s.path[s.path.length-1]||"unknown";let n=`<div class="sql-hover-${s.semanticType}">`;switch(n+=`<div class="sql-hover-header"><strong>${e}</strong> <span class="sql-hover-type">${s.semanticType}</span></div>`,s.semanticType){case"database":if(n+=`<div class="sql-hover-description">Database${(a=s.completion)!=null&&a.detail?`: ${s.completion.detail}`:""}</div>`,s.namespace){const m=Ke(s.namespace);m>0&&(n+=`<div class="sql-hover-children">Contains ${m} schema${m!==1?"s":""}</div>`)}break;case"schema":if(n+=`<div class="sql-hover-description">Schema${(l=s.completion)!=null&&l.detail?`: ${s.completion.detail}`:""}</div>`,t&&(n+=`<div class="sql-hover-path"><strong>Path:</strong> <code>${t}</code></div>`),s.namespace){const m=Ke(s.namespace);m>0&&(n+=`<div class="sql-hover-children">Contains ${m} table${m!==1?"s":""}</div>`)}break;case"table":if(n+=`<div class="sql-hover-description">Table${(i=s.completion)!=null&&i.detail?`: ${s.completion.detail}`:""}</div>`,t){const m=s.path;m.length>1&&(n+=`<div class="sql-hover-path"><strong>Schema:</strong> <code>${m.slice(0,-1).join(".")}</code></div>`)}if(s.namespace&&fe(s.namespace)){const m=s.namespace;if(m.length>0){n+=`<div class="sql-hover-columns"><strong>Columns (${m.length}):</strong><br>`;const x=m.slice(0,8).map(S=>typeof S=="string"?S:S.label);n+=x.map(S=>`<code>${S}</code>`).join(", "),m.length>8&&(n+=`, <em>and ${m.length-8} more...</em>`),n+="</div>"}}break;case"column":if(n+=`<div class="sql-hover-description">Column${(u=s.completion)!=null&&u.detail?`: ${s.completion.detail}`:""}</div>`,t){const m=s.path;m.length>1&&(n+=`<div class="sql-hover-path"><strong>Table:</strong> <code>${m.slice(0,-1).join(".")}</code></div>`)}break;default:if(n+=`<div class="sql-hover-description">Namespace${(c=s.completion)!=null&&c.detail?`: ${s.completion.detail}`:""}</div>`,t&&(n+=`<div class="sql-hover-path"><strong>Path:</strong> <code>${t}</code></div>`),s.namespace){const m=Ke(s.namespace);m>0&&(n+=`<div class="sql-hover-children">Contains ${m} item${m!==1?"s":""}</div>`)}break}return(d=s.completion)!=null&&d.info&&typeof s.completion.info=="string"&&(n+=`<div class="sql-hover-info">${s.completion.info}</div>`),n+="</div>",n}function Ke(s){return Array.isArray(s)?s.length:typeof s=="object"&&s!==null?"self"in s&&"children"in s?1+Ke(s.children):Object.keys(s).length:0}function Li(s){const{keyword:t,info:e}=s;let n='<div class="sql-hover-keyword">';if(n+=`<div class="sql-hover-header"><strong>${t.toUpperCase()}</strong> <span class="sql-hover-type">keyword</span></div>`,n+=`<div class="sql-hover-description">${e.description}</div>`,e.syntax&&(n+=`<div class="sql-hover-syntax"><strong>Syntax:</strong> <code>${e.syntax}</code></div>`),e.example&&(n+=`<div class="sql-hover-example"><strong>Example:</strong><br><code>${e.example}</code></div>`),e.metadata&&typeof e.metadata=="object"&&Object.keys(e.metadata).length>0){n+='<div class="sql-hover-metadata">';for(const[o,a]of Object.entries(e.metadata))n+=`<span class="sql-hover-tag" title="${o}">${a}</span> `;n+="</div>"}return n+="</div>",n}const Ai=(s="light")=>{const n=s==="dark"?{tooltipBg:"#1f2937",tooltipBorder:"#374151",tooltipText:"#f9fafb",tooltipTypeBg:"#374151",tooltipTypeText:"#9ca3af",tooltipChildren:"#9ca3af",codeBg:"#374151",codeText:"#f3f4f6",strong:"#ffffff",em:"#9ca3af",header:"#ffffff",info:"#d1d5db",related:"#d1d5db",path:"#d1d5db",example:"#d1d5db",columns:"#d1d5db",syntax:"#d1d5db"}:{tooltipBg:"#ffffff",tooltipBorder:"#e5e7eb",tooltipText:"#374151",tooltipTypeBg:"#f3f4f6",tooltipTypeText:"#6b7280",tooltipChildren:"#6b7280",codeBg:"#f9fafb",codeText:"#1f2937",strong:"#111827",em:"#6b7280",header:"#111827",info:"#374151",related:"#374151",path:"#374151",example:"#374151",columns:"#374151",syntax:"#374151"};return St.theme({".cm-sql-hover-tooltip":{padding:"8px 12px",backgroundColor:n.tooltipBg,border:`1px solid ${n.tooltipBorder}`,borderRadius:"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",fontSize:"13px",lineHeight:"1.4",maxWidth:"320px",fontFamily:"system-ui, -apple-system, sans-serif",color:n.tooltipText},".cm-sql-hover-tooltip .sql-hover-header":{marginBottom:"6px",display:"flex",alignItems:"center",gap:"6px",color:n.header},".cm-sql-hover-tooltip .sql-hover-type":{fontSize:"11px",padding:"2px 6px",backgroundColor:n.tooltipTypeBg,color:n.tooltipTypeText,borderRadius:"4px",fontWeight:"500"},".cm-sql-hover-tooltip .sql-hover-description":{color:n.info,marginBottom:"8px"},".cm-sql-hover-tooltip .sql-hover-syntax":{marginBottom:"8px",color:n.syntax},".cm-sql-hover-tooltip .sql-hover-example":{marginBottom:"4px",color:n.example},".cm-sql-hover-tooltip .sql-hover-columns":{marginBottom:"4px",color:n.columns},".cm-sql-hover-tooltip .sql-hover-related":{marginBottom:"4px",color:n.related},".cm-sql-hover-tooltip .sql-hover-path":{marginBottom:"4px",color:n.path},".cm-sql-hover-tooltip .sql-hover-info":{marginBottom:"4px",color:n.info},".cm-sql-hover-tooltip .sql-hover-children":{marginBottom:"4px",color:n.tooltipChildren,fontSize:"12px"},".cm-sql-hover-tooltip code":{backgroundColor:n.codeBg,padding:"1px 4px",borderRadius:"3px",fontSize:"12px",fontFamily:"ui-monospace, 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace",color:n.codeText},".cm-sql-hover-tooltip strong":{fontWeight:"600",color:n.strong},".cm-sql-hover-tooltip em":{fontStyle:"italic",color:n.em}})};class Ni{constructor(t){ne(this,"parser");ne(this,"cache",new Map);ne(this,"MAX_CACHE_SIZE",10);this.parser=t}async analyzeDocument(t){const e=t.doc.toString(),n=this.generateCacheKey(e),o=this.cache.get(n);if(o)return o;const a=await this.extractStatements(e,t);if(this.cache.set(n,a),this.cache.size>this.MAX_CACHE_SIZE){const l=this.cache.keys().next().value;l!==void 0&&this.cache.delete(l)}return a}async getStatementAtPosition(t,e){return(await this.analyzeDocument(t)).find(o=>e>=o.from&&e<=o.to)||null}async getStatementsInRange(t,e,n){return(await this.analyzeDocument(t)).filter(a=>a.from<=n&&a.to>=e)}async extractStatements(t,e){const n=[],o=this.splitByStatementSeparators(t);let a=0;for(const l of o){const i=l.trim();if(i.length===0){a+=l.length;continue}const u=a+l.indexOf(i),c=u+i.length,d=e.doc.lineAt(u),m=e.doc.lineAt(c),y=this.stripComments(i);if(y.trim().length===0||y.trim()===";"){a+=l.length;continue}const x=await this.parser.parse(y,{state:e}),S=this.determineStatementType(y),b=y.endsWith(";")?y.slice(0,-1).trim():y.trim();n.push({from:u,to:c,lineFrom:d.number,lineTo:m.number,content:b,type:S,isValid:x.success}),a+=l.length}return n}splitByStatementSeparators(t){const e=[];let n="",o=!1,a="",l=!1,i=!1,u=0;for(;u<t.length;){const c=t[u],d=t[u+1];if(!o&&!i&&c==="-"&&d==="-"){l=!0,n+=c+d,u+=2;continue}if(!o&&!l&&c==="/"&&d==="*"){i=!0,n+=c+d,u+=2;continue}if(i&&c==="*"&&d==="/"){i=!1,n+=c+d,u+=2;continue}if(l&&(c===`
12
- `||c==="\r")){l=!1,n+=c,u++;continue}if(l||i){n+=c,u++;continue}if(!o&&(c==="'"||c==='"'||c==="`"))o=!0,a=c,n+=c;else if(o&&c===a){if(d===a){n+=c+d,u+=2;continue}o=!1,a="",n+=c}else!o&&c===";"?(n+=c,e.push(n),n=""):n+=c;u++}return n.trim()&&e.push(n),e}determineStatementType(t){const e=t.trim().toLowerCase();return e.startsWith("select")?"select":e.startsWith("insert")?"insert":e.startsWith("update")?"update":e.startsWith("delete")?"delete":e.startsWith("create")?"create":e.startsWith("drop")?"drop":e.startsWith("alter")?"alter":e.startsWith("use")?"use":"other"}stripComments(t){let e="",n=!1,o="",a=!1,l=!1,i=0;for(;i<t.length;){const u=t[i],c=t[i+1];if(!n&&!l&&u==="-"&&c==="-"){a=!0,i+=2;continue}if(!n&&!a&&u==="/"&&c==="*"){l=!0,i+=2;continue}if(l&&u==="*"&&c==="/"){l=!1,i+=2;continue}if(a&&(u===`
13
- `||u==="\r")){a=!1,e+=u,i++;continue}if(a||l){i++;continue}if(!n&&(u==="'"||u==='"'||u==="`"))n=!0,o=u,e+=u;else if(n&&u===o){if(c===o){e+=u+c,i+=2;continue}n=!1,o="",e+=u}else e+=u;i++}return e}generateCacheKey(t){let e=0;for(let n=0;n<t.length;n++){const o=t.charCodeAt(n);e=(e<<5)-e+o,e=e&e}return e.toString()}clearCache(){this.cache.clear()}}const zs=fn.define(),Ms=pn.define({create(){return{currentStatement:null,allStatements:[],cursorPosition:0,isFocused:!0}},update(s,t){for(const e of t.effects)if(e.is(zs))return e.value;return s}});class Ii extends gn{constructor(e,n,o=!0,a=!0){super();ne(this,"config");ne(this,"isCurrent");ne(this,"isValid");ne(this,"isFocused");this.config=e,this.isCurrent=n,this.isValid=o,this.isFocused=a}toDOM(){const e=document.createElement("div");e.className="cm-sql-gutter-marker";let n=this.config.backgroundColor||"#3b82f6";!this.isValid&&this.config.showInvalid!==!1&&(n=this.config.errorBackgroundColor||"#ef4444");let o;return this.isFocused?o=this.isCurrent?"1":(this.config.inactiveOpacity||"0.3").toString():this.config.unfocusedOpacity!==void 0?o=this.config.unfocusedOpacity.toString():this.config.hideWhenNotFocused?o="0":o=this.isCurrent?"1":(this.config.inactiveOpacity||"0.3").toString(),e.style.cssText=`
14
- background: ${n};
15
- height: 100%;
16
- width: 100%;
17
- opacity: ${o};
18
- transition: opacity 150ms ease-in-out;
19
- border-radius: 1px;
20
- `,e}eq(e){return this.isCurrent===e.isCurrent&&this.isValid===e.isValid&&this.isFocused===e.isFocused&&this.config===e.config}}function Oi(s,t){var i;let e=vn.empty;if((i=t.whenHide)!=null&&i.call(t,s))return e;const n=s.state.field(Ms,!1);if(!n)return e;const{currentStatement:o,allStatements:a,isFocused:l}=n;try{for(const u of a){const c=(o==null?void 0:o.from)===u.from&&(o==null?void 0:o.to)===u.to;if(!u.isValid&&t.showInvalid===!1)continue;const d=new Ii(t,c,u.isValid,l);for(let m=u.lineFrom;m<=u.lineTo;m++)try{if(m<1||m>s.state.doc.lines)continue;const y=s.state.doc.line(m);e=e.update({add:[d.range(y.from)]})}catch(y){console.warn("SqlGutter: Invalid line number",m,y)}}}catch(u){console.warn("SqlGutter: Error creating markers",u)}return e}function Pi(s){return St.updateListener.of(async t=>{if(!t.docChanged&&!t.selectionSet&&!t.focusChanged)return;const{state:e}=t.view,{main:n}=e.selection,o=n.head,a=await s.analyzeDocument(e),i={currentStatement:await s.getStatementAtPosition(e,o),allStatements:a,cursorPosition:o,isFocused:t.view.hasFocus};t.view.dispatch({effects:zs.of(i)})})}function qi(s){const t=s.width||3;return St.baseTheme({".cm-sql-gutter":{width:`${t}px`,minWidth:`${t}px`},".cm-sql-gutter .cm-gutterElement":{width:`${t}px`,padding:"0",margin:"0"},".cm-sql-gutter-marker":{width:"100%",height:"100%",display:"block"},".cm-lineNumbers .cm-gutterElement":{paddingLeft:"8px",paddingRight:"8px"}})}function Vi(s){return hn({class:`cm-sql-gutter ${s.className||""}`,markers:t=>Oi(t,s)})}function Di(s={}){const t=s.parser||new Rt,e=new Ni(t);return[Ms,Pi(e),qi(s),Vi(s)]}function Fi(s={}){const t=[],{enableLinting:e=!0,enableGutterMarkers:n=!0,enableHover:o=!0,linterConfig:a,gutterConfig:l,hoverConfig:i}=s;return e&&t.push(Ri(a)),n&&t.push(Di(l)),o&&(t.push(zi(i)),i!=null&&i.theme?t.push(i.theme):t.push(Ai())),t}const Ye='(?:"(?:[^"]|"")+"|[A-Za-z_][A-Za-z0-9_$]*)',Bi=new RegExp(`(${Ye})\\s*\\.\\s*([A-Za-z_][A-Za-z0-9_$]*)?$`),Kt=new RegExp(`\\b(?:FROM|JOIN)\\s+(${Ye}(?:\\s*\\.\\s*${Ye})*)(?:\\s+(?:AS\\s+)?(${Ye}))?`,"gi"),Qi=new Set(["all","cross","except","fetch","for","from","full","group","having","inner","intersect","join","left","limit","offset","on","order","outer","right","select","union","where"]);function _e(s){const t=s.trim();return t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1).replace(/""/g,'"'):t.toLowerCase()}function Ls(s){const t=[];let e="",n=!1;for(let o=0;o<s.length;o++){const a=s[o];if(a==='"'){if(e+=a,n&&s[o+1]==='"'){e+=s[o+1],o++;continue}n=!n;continue}if(!n&&a==="."){e.trim()&&t.push(e.trim()),e="";continue}e+=a}return e.trim()&&t.push(e.trim()),t}function Ui(s,t){let n=cs(s).resolveInner(t,-1);for(;n;){if(n.type.name==="Statement")return n;n=n.parent}return null}function ji(s){const t=new Map;let e=Kt.exec(s);for(;e!==null;){const n=e[1],o=e[2];if(n){const l=Ls(n).at(-1);if(l&&t.set(_e(l),n),o){const i=_e(o);Qi.has(i)||t.set(i,n)}}e=Kt.exec(s)}return t}function Hi(s){return/Comment|String/.test(s.type.name)}function it(s,t){if(!s.tableDetails)return null;for(const[e,n]of Object.entries(s.tableDetails))if(_e(e)===t)return{tableName:e,schemaName:s.name,tableInfo:n};return null}function ut({tableReference:s,tableName:t,schemaName:e,tableInfo:n}){var o,a;return{tableName:t,schemaName:e,tableReference:s,columns:n.columns||[],primaryKeyColumns:new Set(((o=n.primary_keys)==null?void 0:o.map(l=>l.column))||[]),foreignKeysByColumn:new Map(((a=n.foreign_keys)==null?void 0:a.map(l=>[l.column,l]))||[])}}function Wi({tableReference:s,schemas:t,defaultSchemaName:e}){if(!(t!=null&&t.length))return null;const n=Ls(s).map(i=>_e(i));if(!n.length)return null;const o=n[n.length-1],a=n.length>1?n[n.length-2]:void 0;if(a){const i=t.find(u=>_e(u.name)===a);if(i){const u=it(i,o);if(u)return ut({tableReference:s,tableName:u.tableName,schemaName:u.schemaName,tableInfo:u.tableInfo})}}const l=_e(e);if(l){const i=t.find(u=>_e(u.name)===l);if(i){const u=it(i,o);if(u)return ut({tableReference:s,tableName:u.tableName,schemaName:u.schemaName,tableInfo:u.tableInfo})}}for(const i of t){const u=it(i,o);if(u)return ut({tableReference:s,tableName:u.tableName,schemaName:u.schemaName,tableInfo:u.tableInfo})}return null}function Gi(s){return[...s.columns].sort((e,n)=>(e.ordinal_position||0)-(n.ordinal_position||0)).map(e=>io({column:e,tableName:s.tableName,schemaName:s.schemaName,isPrimaryKey:s.primaryKeyColumns.has(e.name),foreignKey:s.foreignKeysByColumn.get(e.name)}))}function Ki(s,t){const e=cs(s.state).resolveInner(s.pos,-1);if(Hi(e))return null;const n=Ui(s.state,s.pos);if(!n)return null;const o=s.state.doc.sliceString(n.from,s.pos),a=Bi.exec(o);if(!a)return null;const l=a[1],i=a[2]||"",u=_e(l),c=s.state.doc.sliceString(n.from,n.to),m=ji(c).get(u)||l,y=Wi({tableReference:m,schemas:t.schemas,defaultSchemaName:t.defaultSchemaName});return y?{from:s.pos-i.length,options:Gi(y),validFor:/^[A-Za-z0-9_$]*$/}:null}function Yi(s){return t=>Ki(t,s)}const Ji=async()=>(await us(()=>import("./BiOIaWuc.js"),[],import.meta.url)).default.keywords;function Xi({codeEditorRef:s,fileVariables:t,onExecuteStatement:e,onExplainAnalyzeCurrent:n}){const o=yn(),{schemasByContext:a,activeSchema:l}=ls(o),i=G({line:1,column:1}),u=()=>{var C;return(C=s.value)==null?void 0:C.editorView},c=q(()=>{var C;return((C=l.value)==null?void 0:C.name)||"public"}),d=q(()=>uo({schemas:a.value,defaultSchemaName:c.value,fileVariables:t.value})),m=new At,y=new At,x=()=>Yi({schemas:a.value,defaultSchemaName:c.value}),{onHandleFormatCurrentStatement:S,onHandleFormatCode:b}=Zn({getEditorView:()=>u()}),g=[Ho(e),es.of([{key:"Mod-s",run:()=>(S(),!0),preventDefault:!0},{key:"Shift-Alt-f",run:()=>(b(),!0),preventDefault:!0},{key:"Mod-e",run:()=>(n(),!0),preventDefault:!0},{key:"Mod-i",run:xn},{key:"Tab",run:bn}]),m.of(Nt({dialect:It.PostgreSQL,upperCaseKeywords:!0,keywordCompletion:Dt,tables:d.value.variableCompletions,schema:d.value.schema,defaultSchema:d.value.defaultSchema})),y.of(nt.language.data.of({autocomplete:x()})),$n,kn,...zn(),ys(),Fi({enableLinting:!1,enableGutterMarkers:!1,enableHover:!0,hoverConfig:{hoverTime:250,enableKeywords:!0,keywords:async()=>await Ji(),enableTables:!1,enableColumns:!1,enableFuzzySearch:!1}}),Xn],_=()=>{const C=u();C&&C.dispatch({effects:[eo.of({dialect:nt,isEnable:!0}),m.reconfigure(Nt({dialect:It.PostgreSQL,upperCaseKeywords:!0,keywordCompletion:Dt,tables:d.value.variableCompletions,schema:d.value.schema,defaultSchema:d.value.defaultSchema})),y.reconfigure(nt.language.data.of({autocomplete:x()}))]})};return ge(()=>{var C;return[(C=l.value)==null?void 0:C.name,a.value]},()=>{var C;(C=l.value)!=null&&C.name&&_()},{deep:!0,immediate:!0}),{extensions:g,sqlCompartment:m,cursorInfo:i,onHandleFormatCode:b,onHandleFormatCurrentStatement:S,reloadSqlCompartment:_}}function Zi({fileVariables:s,connection:t,fieldDefs:e}){const n=G(null),{explainAnalyzeOptionItems:o,serializeMode:a,toggleExplainOption:l,setSerializeMode:i,buildExplainAnalyzePrefix:u}=xi(),c=bi(),m=yi({getEditorView:()=>{var x;return((x=n.value)==null?void 0:x.editorView)??null},connection:t,fileVariables:s,fieldDefs:e,resultTabs:c,buildExplainAnalyzePrefix:u}),y=Xi({codeEditorRef:n,fileVariables:s,onExecuteStatement:m.executeCurrentStatement,onExplainAnalyzeCurrent:m.onExplainAnalyzeCurrent});return{codeEditorRef:n,currentRawQueryResult:m.currentRawQueryResult,rawResponse:m.rawResponse,queryProcessState:m.queryProcessState,onExecuteCurrent:m.onExecuteCurrent,extensions:y.extensions,sqlCompartment:y.sqlCompartment,cursorInfo:y.cursorInfo,onHandleFormatCode:y.onHandleFormatCode,onHandleFormatCurrentStatement:y.onHandleFormatCurrentStatement,onExplainAnalyzeCurrent:m.onExplainAnalyzeCurrent,explainAnalyzeOptionItems:o,serializeMode:a,toggleExplainOption:l,setSerializeMode:i,reloadSqlCompartment:y.reloadSqlCompartment,cancelStreamingQuery:m.cancelStreamingQuery,executedResults:c.executedResults,activeResultTabId:c.activeResultTabId,setActiveResultTab:c.setActiveResultTab,closeResultTab:c.closeResultTab,closeOtherResultTabs:c.closeOtherResultTabs,closeResultTabsToRight:c.closeResultTabsToRight,updateResultTabView:c.updateResultTabView}}const ct=s=>{const{currentStatements:t}=Je(s);if(!t.length)return null;const e=Math.min(...t.map(a=>a.from)),n=Math.max(...t.map(a=>a.to));return{text:t.map(a=>a.text).join(`
21
- `),from:e,to:n}};function eu(s){const t=G(!1),e=G(!1),n=()=>{const u=s.getEditorView();if(!u)return;const c=ct(u);c&&navigator.clipboard.writeText(c.text)},o=()=>{const u=s.getEditorView();if(!u)return;const c=u.state.doc.toString();c&&navigator.clipboard.writeText(c)},a=()=>{const u=s.getEditorView();if(!u)return;const c=ct(u);if(!c)return;let d=c.to;const m=u.state.doc.length;for(;d<m;){const y=u.state.sliceDoc(d,d+1);if(y===`
22
- `||y==="\r"){d++;break}if(y===" "||y===" ")d++;else break}u.dispatch({changes:{from:c.from,to:d,insert:""},annotations:[_n.addToHistory.of(!0)]}),u.focus()};return{contextMenuItems:q(()=>{const u=!t.value,c=!e.value;return[{type:F.ACTION,title:"Execute",icon:"hugeicons:play",shortcut:"⌘↵",select:s.onExecuteCurrent,disabled:u},{type:F.ACTION,title:"Analyze Query",icon:"hugeicons:analytics-01",shortcut:"⌘E",select:s.onExplainAnalyzeCurrent,disabled:u},{type:F.SEPARATOR},{type:F.ACTION,title:"Format Current",icon:"hugeicons:magic-wand-01",shortcut:"⌘S",select:s.onHandleFormatCurrentStatement,disabled:u},{type:F.ACTION,title:"Format All",icon:"hugeicons:text-align-left",shortcut:"⇧⌥F",select:s.onHandleFormatCode,disabled:c},{type:F.SEPARATOR},{type:F.ACTION,title:"Copy Statement",icon:"hugeicons:copy-02",select:n,disabled:u},{type:F.ACTION,title:"Copy All",icon:"hugeicons:copy-01",select:o,disabled:c},{type:F.SEPARATOR},{type:F.ACTION,title:"Delete Statement",icon:"hugeicons:delete-02",select:a,disabled:u}]}),onContextMenuOpen:u=>{if(!u)return;const c=s.getEditorView();if(!c){t.value=!1,e.value=!1;return}e.value=c.state.doc.length>0,t.value=!!ct(c)}}}function tu(){const{workspaceId:s}=Cn(),t=ds(),e=Sn(),n=wn(),o=e.getFileContentByIdSync(t.params.fileId),a=G((o==null?void 0:o.contents)??""),l=G((o==null?void 0:o.variables)??""),i=G([]),u=q(()=>{var _;return(_=e==null?void 0:e.flatNodes)==null?void 0:_.find(C=>C.id===t.params.fileId)}),c=q(()=>n.getConnectionsByWorkspaceId(s.value)),d=q(()=>c.value.find(_=>{var C;return _.id===((C=u.value)==null?void 0:C.connectionId)}));return{fieldDefs:i,fileContents:a,fileVariables:l,currentFile:u,updateFileConnection:async _=>{var C;(C=u.value)!=null&&C.id&&await e.updateFile({id:u.value.id,connectionId:_})},updateFileContent:async _=>{var C;(C=u.value)!=null&&C.id&&(a.value=_,e.updateFileContent({contents:_,id:u.value.id,variables:l.value||""}))},updateFileVariables:async _=>{var C;(C=u.value)!=null&&C.id&&(l.value=_,e.updateFileContent({contents:a.value,id:u.value.id,variables:_}))},connection:d,connectionsByWsId:c,updateFileCursorPos:_=>{var C;(C=u.value)!=null&&C.id&&e.updateFile({id:u.value.id,cursorPos:_})},loadFileContent:async()=>{const{contents:_,variables:C}=await e.getFileContentById(t.params.fileId);a.value=_,l.value=C},isFromCache:o!==null}}const su={class:"flex flex-col h-full p-1"},nu={class:"flex flex-col h-full border rounded-md"},ou={class:"h-full flex flex-col overflow-y-auto"},au={class:"flex flex-col h-full border rounded-md bg-muted"},ru={class:"flex items-center gap-1 font-normal text-sm px-2 py-1"},lu={class:"h-full flex flex-col overflow-y-auto"},iu=H({__name:"RawQuery",setup(s){const t=ds(),e=rs(),n=tu(),{connection:o,currentFile:a,fileContents:l,fileVariables:i,updateFileConnection:u,updateFileContent:c,updateFileVariables:d,connectionsByWsId:m,fieldDefs:y}=mt(n),x=Zi({connection:o,fieldDefs:y,fileVariables:i}),{cursorInfo:S,extensions:b,codeEditorRef:g,onExecuteCurrent:_,onHandleFormatCode:C,onHandleFormatCurrentStatement:k,onExplainAnalyzeCurrent:V,explainAnalyzeOptionItems:T,serializeMode:U,currentRawQueryResult:D,queryProcessState:N,executedResults:B,activeResultTabId:O}=mt(x),{contextMenuItems:P,onContextMenuOpen:W}=eu({onExecuteCurrent:x.onExecuteCurrent,onExplainAnalyzeCurrent:x.onExplainAnalyzeCurrent,onHandleFormatCurrentStatement:x.onHandleFormatCurrentStatement,onHandleFormatCode:x.onHandleFormatCode,getEditorView:()=>{var de;return(de=g.value)==null?void 0:de.editorView}}),X=G(0),ee=G(!0);Tn([{key:"mod+j",callback:()=>{ee.value=!ee.value}},{key:"ctrl+j",callback:()=>{ee.value=!ee.value}}]),ge(i,()=>{x.reloadSqlCompartment()});const Le=({column:de,from:he,line:ye,to:be})=>{S.value={column:de,line:ye},n.updateFileCursorPos({from:he,to:be})},Te=(de=!0)=>{var be,Be;if(!((be=a.value)!=null&&be.cursorPos)||!((Be=g.value)!=null&&Be.editorView))return;const he=a.value.cursorPos.from??0,ye=a.value.cursorPos.to||0;g.value.setCursorPosition({from:he,to:ye,allowScroll:de})},Oe=G(!n.isFromCache);return Ct(async()=>{Oe.value&&(await n.loadFileContent(),Oe.value=!1,await ve()),Te()}),En(async()=>{var de;await ve(),Te(!1),(de=g.value)!=null&&de.editorView&&(g.value.editorView.scrollDOM.scrollTop=X.value)}),(de,he)=>{const ye=ce;return v(),R(Na,{layout:r(e).codeEditorLayout,customLayout:r(e).activeCustomLayout,"show-result-panel":r(ee)},{content:h(()=>[f("div",su,[f("div",nu,[p(ka,{"onUpdate:connectionId":r(u),connections:r(m),connection:r(o),workspaceId:r(t).params.workspaceId,"file-variables":r(i),"code-editor-layout":r(e).codeEditorLayout,currentFileInfo:r(a),"onUpdate:updateFileVariables":r(d)},null,8,["onUpdate:connectionId","connections","connection","workspaceId","file-variables","code-editor-layout","currentFileInfo","onUpdate:updateFileVariables"]),f("div",ou,[p(ea,{"context-menu-items":r(P),"onUpdate:open":r(W)},{default:h(()=>[r(Oe)?(v(),R(r(is),{key:0,visible:""})):(v(),R(ms,{key:1,"onUpdate:modelValue":r(c),"onUpdate:cursorInfo":Le,"onUpdate:onScrollTop":he[0]||(he[0]=be=>X.value=be),modelValue:r(l),extensions:r(b),ref_key:"codeEditorRef",ref:g},null,8,["onUpdate:modelValue","modelValue","extensions"]))]),_:1},8,["context-menu-items","onUpdate:open"])]),p(xa,{"cursor-info":r(S),"execute-loading":r(N).executeLoading,"execute-errors":!!r(N).executeErrors,"is-have-one-execute":r(N).isHaveOneExecute,"is-streaming":r(N).isStreaming,"streaming-row-count":r(N).streamingRowCount,queryTime:r(N).queryTime,"raw-query-results-length":r(D).length,"explain-analyze-option-items":r(T),"serialize-mode":r(U),onOnFormatCurrentStatement:r(k),onOnFormatAll:r(C),onOnExplainAnalyzeCurrent:r(V),onToggleExplainOption:r(x).toggleExplainOption,"onUpdate:serializeMode":r(x).setSerializeMode,onOnExecuteCurrent:r(_),onOnCancelQuery:r(x).cancelStreamingQuery},null,8,["cursor-info","execute-loading","execute-errors","is-have-one-execute","is-streaming","streaming-row-count","queryTime","raw-query-results-length","explain-analyze-option-items","serialize-mode","onOnFormatCurrentStatement","onOnFormatAll","onOnExplainAnalyzeCurrent","onToggleExplainOption","onUpdate:serializeMode","onOnExecuteCurrent","onOnCancelQuery"])])])]),variables:h(()=>[f("div",au,[f("div",ru,[p(ye,{name:"hugeicons:absolute"}),he[1]||(he[1]=A(" Variables "))]),f("div",lu,[p(Cs,{onUpdateVariables:r(d),"file-variables":r(i)},null,8,["onUpdateVariables","file-variables"])])])]),result:h(()=>[r(B).size===0?(v(),R(Xo,{key:0})):(v(),R(vi,{key:1,"executed-results":r(B),"active-tab-id":r(O),"execute-loading":r(N).executeLoading,"is-streaming":r(N).isStreaming,"onUpdate:activeTab":r(x).setActiveResultTab,onCloseTab:r(x).closeResultTab,onCloseOtherTabs:r(x).closeOtherResultTabs,onCloseTabsToRight:r(x).closeResultTabsToRight,"onUpdate:view":r(x).updateResultTabView},null,8,["executed-results","active-tab-id","execute-loading","is-streaming","onUpdate:activeTab","onCloseTab","onCloseOtherTabs","onCloseTabsToRight","onUpdate:view"]))]),_:1},8,["layout","customLayout","show-result-panel"])}}}),Du=H({__name:"[fileId]",setup(s){return(t,e)=>(v(),R(iu))}});export{Du as default};