orcaq 1.1.1 → 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 (999) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/63YtjFEq.js +1 -0
  3. package/.output/public/_nuxt/{BxDrCsPf.js → 8tyEaimf.js} +1 -1
  4. package/.output/public/_nuxt/AymhMj9v.js +1 -0
  5. package/.output/public/_nuxt/B2IKcIj2.js +1 -0
  6. package/.output/public/_nuxt/{CvcedJeQ.js → B46blMXm.js} +1 -1
  7. package/.output/public/_nuxt/B5WGo5x7.js +1 -0
  8. package/.output/public/_nuxt/{DHnNoguE.js → B6MkNyZd.js} +1 -1
  9. package/.output/public/_nuxt/B73IHAoF.js +1 -0
  10. package/.output/public/_nuxt/{DWBoXz89.js → B8TrrBEb.js} +1 -1
  11. package/.output/public/_nuxt/{CE8aasoy.js → B9uki8o2.js} +1 -1
  12. package/.output/public/_nuxt/{TuKV3Ilv.js → BEyCol50.js} +1 -1
  13. package/.output/public/_nuxt/{BvUhrUEH.js → BJCrbji-.js} +1 -1
  14. package/.output/public/_nuxt/{BnFDcr74.js → BJVPtt2X.js} +1 -1
  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/{BJYf67_H.js → BTYBVtfa.js} +1 -1
  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/{CS5ItJPR.js → BWebIWit.js} +1 -1
  24. package/.output/public/_nuxt/{4by6-f6q.js → BcsKoAPU.js} +315 -313
  25. package/.output/public/_nuxt/{B6hH0qos.js → Bf6Q3Zl5.js} +1 -1
  26. package/.output/public/_nuxt/Bj7ctTfH.js +1 -0
  27. package/.output/public/_nuxt/BjqbQLK3.js +1 -0
  28. package/.output/public/_nuxt/{C1jMZ4hc.js → Bmgr9uz4.js} +1 -1
  29. package/.output/public/_nuxt/{Bq7otXBA.js → Bmx1kTaZ.js} +1 -1
  30. package/.output/public/_nuxt/BoIj4dtd.js +1 -0
  31. package/.output/public/_nuxt/{Cx6s86aR.js → BoMjapT5.js} +1 -1
  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/{DESYlybj.js → Bq47tjcm.js} +1 -1
  37. package/.output/public/_nuxt/{H5m89x1B.js → Bq7OeLM1.js} +1 -1
  38. package/.output/public/_nuxt/BqU89KuH.js +2 -0
  39. package/.output/public/_nuxt/{CrLqg4B0.js → BrNfge84.js} +1 -1
  40. package/.output/public/_nuxt/BtyzMl9p.js +1 -0
  41. package/.output/public/_nuxt/{BGVGiigU.js → ByiJDSw8.js} +1 -1
  42. package/.output/public/_nuxt/{DJqZzQsX.js → ByibjLZn.js} +1 -1
  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/{F5lCgNdb.js → C6dIAdHr.js} +1 -1
  47. package/.output/public/_nuxt/C7BQpy74.js +1 -0
  48. package/.output/public/_nuxt/{B84SvUzr.js → CAnr3OhD.js} +1 -1
  49. package/.output/public/_nuxt/CDJKw_ak.js +1 -0
  50. package/.output/public/_nuxt/CHEpbbGc.js +1 -0
  51. package/.output/public/_nuxt/{DNdM2ZyK.js → CMkzSwnO.js} +1 -1
  52. package/.output/public/_nuxt/{BdDEVolW.js → COHOh4Oe.js} +1 -1
  53. package/.output/public/_nuxt/COq7mAG7.js +10 -0
  54. package/.output/public/_nuxt/CS5akSNT.js +1 -0
  55. package/.output/public/_nuxt/CS9hqyP3.js +1 -0
  56. package/.output/public/_nuxt/{CR6_eO9a.js → CSQ0xnqv.js} +1 -1
  57. package/.output/public/_nuxt/C_7gtl40.js +1 -0
  58. package/.output/public/_nuxt/Ca0KO9Xq.js +9 -0
  59. package/.output/public/_nuxt/CerLmMsC.js +22 -0
  60. package/.output/public/_nuxt/{DaKikgWm.js → Ci5B19-c.js} +1 -1
  61. package/.output/public/_nuxt/{TEF-nDfP.js → Cnfx1zWl.js} +1 -1
  62. package/.output/public/_nuxt/{Ci43mke5.js → Cq-MDPLE.js} +1 -1
  63. package/.output/public/_nuxt/{minLMBmY.js → CrNLwdoE.js} +1 -1
  64. package/.output/public/_nuxt/{PUe8M07P.js → CsRSZpa6.js} +1 -1
  65. package/.output/public/_nuxt/CtWq1MER.js +7 -0
  66. package/.output/public/_nuxt/Cww9dXBK.js +1 -0
  67. package/.output/public/_nuxt/{ZObQcd0X.js → CycELG5y.js} +1 -1
  68. package/.output/public/_nuxt/{b_MfGg1c.js → D-9vaM6z.js} +1 -1
  69. package/.output/public/_nuxt/{D9dEqMyH.js → D4pAW_0T.js} +1 -1
  70. package/.output/public/_nuxt/DAr5YiBT.js +1 -0
  71. package/.output/public/_nuxt/{DFM-aCBX.js → DDebxXP-.js} +1 -1
  72. package/.output/public/_nuxt/{CEvNlevo.js → DEZMnZ2r.js} +1 -1
  73. package/.output/public/_nuxt/{BeNILdbT.js → DGvAu532.js} +1 -1
  74. package/.output/public/_nuxt/{CREZ9f0O.js → DHAL8jJG.js} +4 -4
  75. package/.output/public/_nuxt/{BprXyYdv.js → DJH-4SVI.js} +1 -1
  76. package/.output/public/_nuxt/{Dpl6-lqE.js → DMmjWR_K.js} +1 -1
  77. package/.output/public/_nuxt/DNB4Xmyo.js +37 -0
  78. package/.output/public/_nuxt/{DkadXn5U.js → DNoTlUiY.js} +1 -1
  79. package/.output/public/_nuxt/DPIEiNwW.js +1 -0
  80. package/.output/public/_nuxt/{DQT4eICL.js → DSaBCmOg.js} +1 -1
  81. package/.output/public/_nuxt/DVnDb6ua.js +1 -0
  82. package/.output/public/_nuxt/DWqOZJe7.js +1 -0
  83. package/.output/public/_nuxt/DcCF9IZB.js +1 -0
  84. package/.output/public/_nuxt/DfNTLojg.js +1 -0
  85. package/.output/public/_nuxt/{Cvq07PgE.js → DkD29_YA.js} +1 -1
  86. package/.output/public/_nuxt/DpEV6S2O.js +1 -0
  87. package/.output/public/_nuxt/{DhKwXzSk.js → DpT8FO1Q.js} +1 -1
  88. package/.output/public/_nuxt/{D60Pzl_V.js → Dq1JM9WZ.js} +1 -1
  89. package/.output/public/_nuxt/{DXp9fCib.js → DsmBazLf.js} +1 -1
  90. package/.output/public/_nuxt/{ByOuUnNS.js → DuCDilAk.js} +1 -1
  91. package/.output/public/_nuxt/{CKqvNpN3.js → FDw04QOj.js} +1 -1
  92. package/.output/public/_nuxt/JOg_XIAv.js +1 -0
  93. package/.output/public/_nuxt/{BmU9CNkM.js → L2I3LmpB.js} +1 -1
  94. package/.output/public/_nuxt/M6bBaUHa.js +1 -0
  95. package/.output/public/_nuxt/MW5K_zef.js +1 -0
  96. package/.output/public/_nuxt/{YJvNy3iu.js → MeLWmO7R.js} +27 -27
  97. package/.output/public/_nuxt/{B4ebLeWY.js → Oe2GG0Lt.js} +3 -3
  98. package/.output/public/_nuxt/S1qa1a4x.js +1 -0
  99. package/.output/public/_nuxt/{CA99KAte.js → Sf02B6Pt.js} +2 -2
  100. package/.output/public/_nuxt/Y1gXUmjt.js +1 -0
  101. package/.output/public/_nuxt/_qKPTuua.js +1 -0
  102. package/.output/public/_nuxt/{CybtvDjH.js → atdCACH-.js} +1 -1
  103. package/.output/public/_nuxt/builds/latest.json +1 -1
  104. package/.output/public/_nuxt/builds/meta/7c171291-8bbd-4c4c-8904-0afae065b82e.json +1 -0
  105. package/.output/public/_nuxt/dNPwafbq.js +1 -0
  106. package/.output/public/_nuxt/dWu56FdP.js +3867 -0
  107. package/.output/public/_nuxt/default.B0xlD4Sl.css +1 -0
  108. package/.output/public/_nuxt/entry.DxCQuGXb.css +1 -0
  109. package/.output/public/_nuxt/iNy-Nl0_.js +1 -0
  110. package/.output/public/_nuxt/{C5bgdIOp.js → ioXB9E2w.js} +1 -1
  111. package/.output/public/_nuxt/{B7HEMfgt.js → kvtnkChG.js} +1 -1
  112. package/.output/public/_nuxt/{DNNdcUH4.js → qzrMNYut.js} +1 -1
  113. package/.output/public/_nuxt/{DaMyovpr.js → sk7V7xQl.js} +1 -1
  114. package/.output/public/_nuxt/vhkvHdfO.js +1 -0
  115. package/.output/public/_nuxt/wRAs0MDn.js +2 -0
  116. package/.output/public/_nuxt/xOD4Ev56.js +1 -0
  117. package/.output/public/_nuxt/xp7rFxcm.js +1 -0
  118. package/.output/server/chunks/_/create-adapter.mjs +2 -0
  119. package/.output/server/chunks/_/create-adapter.mjs.map +1 -1
  120. package/.output/server/chunks/_/db-connection.mjs +500 -19
  121. package/.output/server/chunks/_/db-connection.mjs.map +1 -1
  122. package/.output/server/chunks/_/instance-insights.factory.mjs +2037 -14
  123. package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -1
  124. package/.output/server/chunks/_/metadata.factory.mjs +302 -22
  125. package/.output/server/chunks/_/metadata.factory.mjs.map +1 -1
  126. package/.output/server/chunks/_/redis-browser.service.mjs +513 -0
  127. package/.output/server/chunks/_/redis-browser.service.mjs.map +1 -0
  128. package/.output/server/chunks/_/redis-instance-insights.service.mjs +442 -0
  129. package/.output/server/chunks/_/redis-instance-insights.service.mjs.map +1 -0
  130. package/.output/server/chunks/_/redis-pubsub.service.mjs +227 -0
  131. package/.output/server/chunks/_/redis-pubsub.service.mjs.map +1 -0
  132. package/.output/server/chunks/_/redis.client.mjs +129 -0
  133. package/.output/server/chunks/_/redis.client.mjs.map +1 -0
  134. package/.output/server/chunks/_/tables.factory.mjs +20 -8
  135. package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
  136. package/.output/server/chunks/build/client.manifest.mjs +748 -632
  137. package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
  138. package/.output/server/chunks/nitro/nitro.mjs +715 -606
  139. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  140. package/.output/server/chunks/routes/api/ai/agent.mjs +4 -1
  141. package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -1
  142. package/.output/server/chunks/routes/api/database-export/export-database.mjs +4 -1
  143. package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
  144. package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs +4 -1
  145. package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs.map +1 -1
  146. package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs +4 -1
  147. package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs.map +1 -1
  148. package/.output/server/chunks/routes/api/database-import/import-database.mjs +4 -1
  149. package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
  150. package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs +4 -1
  151. package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs.map +1 -1
  152. package/.output/server/chunks/routes/api/database-roles/create-role.mjs +4 -1
  153. package/.output/server/chunks/routes/api/database-roles/create-role.mjs.map +1 -1
  154. package/.output/server/chunks/routes/api/database-roles/delete-role.mjs +4 -1
  155. package/.output/server/chunks/routes/api/database-roles/delete-role.mjs.map +1 -1
  156. package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs +4 -1
  157. package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs.map +1 -1
  158. package/.output/server/chunks/routes/api/database-roles/get-databases.mjs +4 -1
  159. package/.output/server/chunks/routes/api/database-roles/get-databases.mjs.map +1 -1
  160. package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs +4 -1
  161. package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs.map +1 -1
  162. package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs +4 -1
  163. package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs.map +1 -1
  164. package/.output/server/chunks/routes/api/database-roles/get-role.mjs +4 -1
  165. package/.output/server/chunks/routes/api/database-roles/get-role.mjs.map +1 -1
  166. package/.output/server/chunks/routes/api/database-roles/get-roles.mjs +4 -1
  167. package/.output/server/chunks/routes/api/database-roles/get-roles.mjs.map +1 -1
  168. package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs +4 -1
  169. package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs.map +1 -1
  170. package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs +4 -1
  171. package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs.map +1 -1
  172. package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs +4 -1
  173. package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs.map +1 -1
  174. package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs +4 -1
  175. package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs.map +1 -1
  176. package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs +4 -1
  177. package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -1
  178. package/.output/server/chunks/routes/api/functions/definition.post.mjs +4 -1
  179. package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -1
  180. package/.output/server/chunks/routes/api/functions/delete.post.mjs +4 -1
  181. package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -1
  182. package/.output/server/chunks/routes/api/functions/overview.post.mjs +4 -1
  183. package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -1
  184. package/.output/server/chunks/routes/api/functions/rename.post.mjs +4 -1
  185. package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -1
  186. package/.output/server/chunks/routes/api/functions/signature.post.mjs +4 -1
  187. package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -1
  188. package/.output/server/chunks/routes/api/functions/update.post.mjs +4 -1
  189. package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -1
  190. package/.output/server/chunks/routes/api/index.post.mjs +5 -2
  191. package/.output/server/chunks/routes/api/index.post.mjs.map +1 -1
  192. package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs +5 -2
  193. package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs.map +1 -1
  194. package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs +5 -2
  195. package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs.map +1 -1
  196. package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs +5 -2
  197. package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs.map +1 -1
  198. package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs +5 -2
  199. package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs.map +1 -1
  200. package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs +5 -2
  201. package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs.map +1 -1
  202. package/.output/server/chunks/routes/api/instance-insights/state.post.mjs +5 -2
  203. package/.output/server/chunks/routes/api/instance-insights/state.post.mjs.map +1 -1
  204. package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs +5 -2
  205. package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs.map +1 -1
  206. package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs +5 -2
  207. package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -1
  208. package/.output/server/chunks/routes/api/instance-insights/view.post.mjs +66 -0
  209. package/.output/server/chunks/routes/api/instance-insights/view.post.mjs.map +1 -0
  210. package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +7 -1
  211. package/.output/server/chunks/routes/api/managment-connection/health-check.mjs.map +1 -1
  212. package/.output/server/chunks/routes/api/metadata/erd.post.mjs +7 -2
  213. package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -1
  214. package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +6 -1
  215. package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs.map +1 -1
  216. package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs +7 -2
  217. package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -1
  218. package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +4 -1
  219. package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -1
  220. package/.output/server/chunks/routes/api/query/execute.post.mjs +6 -1
  221. package/.output/server/chunks/routes/api/query/execute.post.mjs.map +1 -1
  222. package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs +15 -3
  223. package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs.map +1 -1
  224. package/.output/server/chunks/routes/api/query/raw-execute.post.mjs +8 -1
  225. package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -1
  226. package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs +25 -0
  227. package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs.map +1 -0
  228. package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs +39 -0
  229. package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs.map +1 -0
  230. package/.output/server/chunks/routes/api/redis/browser/value.post.mjs +25 -0
  231. package/.output/server/chunks/routes/api/redis/browser/value.post.mjs.map +1 -0
  232. package/.output/server/chunks/routes/api/redis/index.post.mjs +37 -0
  233. package/.output/server/chunks/routes/api/redis/index.post.mjs.map +1 -0
  234. package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs +38 -0
  235. package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs.map +1 -0
  236. package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs +35 -0
  237. package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs.map +1 -0
  238. package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs +24 -0
  239. package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs.map +1 -0
  240. package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs +38 -0
  241. package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs.map +1 -0
  242. package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs +39 -0
  243. package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs.map +1 -0
  244. package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs +39 -0
  245. package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs.map +1 -0
  246. package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs +24 -0
  247. package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs.map +1 -0
  248. package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs +60 -0
  249. package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs.map +1 -0
  250. package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +9 -5
  251. package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs.map +1 -1
  252. package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs +9 -5
  253. package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -1
  254. package/.output/server/chunks/routes/api/tables/ddl.post.mjs +4 -1
  255. package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -1
  256. package/.output/server/chunks/routes/api/tables/export.post.mjs +5 -2
  257. package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -1
  258. package/.output/server/chunks/routes/api/tables/indexes.post.mjs +4 -1
  259. package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -1
  260. package/.output/server/chunks/routes/api/tables/meta.post.mjs +7 -2
  261. package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -1
  262. package/.output/server/chunks/routes/api/tables/overview.post.mjs +4 -1
  263. package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -1
  264. package/.output/server/chunks/routes/api/tables/rls.post.mjs +4 -1
  265. package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -1
  266. package/.output/server/chunks/routes/api/tables/rules.post.mjs +4 -1
  267. package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -1
  268. package/.output/server/chunks/routes/api/tables/size.post.mjs +4 -1
  269. package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -1
  270. package/.output/server/chunks/routes/api/tables/structure.post.mjs +4 -1
  271. package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -1
  272. package/.output/server/chunks/routes/api/tables/triggers.post.mjs +4 -1
  273. package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -1
  274. package/.output/server/chunks/routes/api/views/definition.post.mjs +4 -1
  275. package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -1
  276. package/.output/server/chunks/routes/api/views/dependencies.post.mjs +4 -1
  277. package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -1
  278. package/.output/server/chunks/routes/api/views/explain.post.mjs +4 -1
  279. package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -1
  280. package/.output/server/chunks/routes/api/views/indexes.post.mjs +4 -1
  281. package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -1
  282. package/.output/server/chunks/routes/api/views/meta.post.mjs +4 -1
  283. package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -1
  284. package/.output/server/chunks/routes/api/views/overview.post.mjs +4 -1
  285. package/.output/server/chunks/routes/api/views/overview.post.mjs.map +1 -1
  286. package/.output/server/chunks/routes/renderer.mjs +1 -1
  287. package/.output/server/index.mjs +1 -1
  288. package/.output/server/node_modules/@libsql/client/lib-esm/hrana.js +310 -0
  289. package/.output/server/node_modules/@libsql/client/lib-esm/http.js +230 -0
  290. package/.output/server/node_modules/@libsql/client/lib-esm/sql_cache.js +87 -0
  291. package/.output/server/node_modules/@libsql/client/package.json +123 -0
  292. package/.output/server/node_modules/@libsql/core/lib-esm/api.js +16 -0
  293. package/.output/server/node_modules/@libsql/core/lib-esm/config.js +136 -0
  294. package/.output/server/node_modules/@libsql/core/lib-esm/uri.js +120 -0
  295. package/.output/server/node_modules/@libsql/core/lib-esm/util.js +55 -0
  296. package/.output/server/node_modules/@libsql/core/package.json +91 -0
  297. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/batch.js +271 -0
  298. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/byte_queue.js +45 -0
  299. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/client.js +13 -0
  300. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/cursor.js +2 -0
  301. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/describe.js +8 -0
  302. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/index.js +4 -0
  303. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/decode.js +59 -0
  304. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/encode.js +72 -0
  305. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/decode.js +150 -0
  306. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/encode.js +95 -0
  307. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/util.js +6 -0
  308. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/errors.js +102 -0
  309. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/client.js +124 -0
  310. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/cursor.js +135 -0
  311. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_decode.js +62 -0
  312. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_encode.js +55 -0
  313. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js +44 -0
  314. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_encode.js +78 -0
  315. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/stream.js +363 -0
  316. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/id_alloc.js +47 -0
  317. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/index.js +42 -0
  318. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/libsql_url.js +75 -0
  319. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue.js +26 -0
  320. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue_microtask.js +13 -0
  321. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/result.js +48 -0
  322. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_decode.js +106 -0
  323. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_encode.js +71 -0
  324. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js +115 -0
  325. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_encode.js +85 -0
  326. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/sql.js +46 -0
  327. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stmt.js +76 -0
  328. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stream.js +57 -0
  329. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/util.js +4 -0
  330. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/value.js +83 -0
  331. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/client.js +318 -0
  332. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/cursor.js +80 -0
  333. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_decode.js +74 -0
  334. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_encode.js +77 -0
  335. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_decode.js +60 -0
  336. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_encode.js +115 -0
  337. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/stream.js +211 -0
  338. package/.output/server/node_modules/@libsql/hrana-client/package.json +60 -0
  339. package/.output/server/node_modules/@libsql/isomorphic-fetch/node.js +6 -0
  340. package/.output/server/node_modules/@libsql/isomorphic-fetch/package.json +51 -0
  341. package/.output/server/node_modules/@libsql/isomorphic-ws/node.mjs +2 -0
  342. package/.output/server/node_modules/@libsql/isomorphic-ws/package.json +53 -0
  343. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/ADD.js +19 -0
  344. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/CARD.js +16 -0
  345. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/EXISTS.js +19 -0
  346. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INFO.js +22 -0
  347. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INSERT.js +41 -0
  348. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/LOADCHUNK.js +19 -0
  349. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MADD.js +19 -0
  350. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MEXISTS.js +19 -0
  351. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/RESERVE.js +28 -0
  352. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/SCANDUMP.js +23 -0
  353. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/helpers.js +28 -0
  354. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/index.js +53 -0
  355. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INCRBY.js +28 -0
  356. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INFO.js +22 -0
  357. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYDIM.js +19 -0
  358. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYPROB.js +19 -0
  359. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/MERGE.js +33 -0
  360. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/QUERY.js +18 -0
  361. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/index.js +26 -0
  362. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADD.js +19 -0
  363. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADDNX.js +19 -0
  364. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/COUNT.js +18 -0
  365. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/DEL.js +19 -0
  366. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/EXISTS.js +19 -0
  367. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INFO.js +22 -0
  368. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERT.js +34 -0
  369. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERTNX.js +44 -0
  370. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/LOADCHUNK.js +19 -0
  371. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/RESERVE.js +31 -0
  372. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/SCANDUMP.js +23 -0
  373. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/index.js +41 -0
  374. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/index.js +18 -0
  375. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/ADD.js +20 -0
  376. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYRANK.js +26 -0
  377. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYREVRANK.js +41 -0
  378. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CDF.js +21 -0
  379. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CREATE.js +21 -0
  380. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/INFO.js +22 -0
  381. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MAX.js +17 -0
  382. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MERGE.js +27 -0
  383. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MIN.js +17 -0
  384. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/QUANTILE.js +21 -0
  385. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RANK.js +25 -0
  386. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RESET.js +16 -0
  387. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/REVRANK.js +41 -0
  388. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/TRIMMED_MEAN.js +20 -0
  389. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/index.js +50 -0
  390. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/ADD.js +18 -0
  391. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/COUNT.js +18 -0
  392. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INCRBY.js +28 -0
  393. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INFO.js +24 -0
  394. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST.js +16 -0
  395. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST_WITHCOUNT.js +26 -0
  396. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/QUERY.js +19 -0
  397. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/RESERVE.js +25 -0
  398. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/index.js +32 -0
  399. package/.output/server/node_modules/@redis/bloom/dist/lib/index.js +9 -0
  400. package/.output/server/node_modules/@redis/bloom/package.json +36 -0
  401. package/.output/server/node_modules/@redis/client/dist/index.js +53 -0
  402. package/.output/server/node_modules/@redis/client/dist/lib/RESP/decoder.js +727 -0
  403. package/.output/server/node_modules/@redis/client/dist/lib/RESP/encoder.js +24 -0
  404. package/.output/server/node_modules/@redis/client/dist/lib/RESP/verbatim-string.js +12 -0
  405. package/.output/server/node_modules/@redis/client/dist/lib/authx/credentials-provider.js +26 -0
  406. package/.output/server/node_modules/@redis/client/dist/lib/authx/index.js +12 -0
  407. package/.output/server/node_modules/@redis/client/dist/lib/authx/token-manager.js +184 -0
  408. package/.output/server/node_modules/@redis/client/dist/lib/authx/token.js +32 -0
  409. package/.output/server/node_modules/@redis/client/dist/lib/client/cache.js +634 -0
  410. package/.output/server/node_modules/@redis/client/dist/lib/client/commands-queue.js +497 -0
  411. package/.output/server/node_modules/@redis/client/dist/lib/client/enterprise-maintenance-manager.js +387 -0
  412. package/.output/server/node_modules/@redis/client/dist/lib/client/identity.js +65 -0
  413. package/.output/server/node_modules/@redis/client/dist/lib/client/index.js +1118 -0
  414. package/.output/server/node_modules/@redis/client/dist/lib/client/legacy-mode.js +119 -0
  415. package/.output/server/node_modules/@redis/client/dist/lib/client/linked-list.js +212 -0
  416. package/.output/server/node_modules/@redis/client/dist/lib/client/multi-command.js +118 -0
  417. package/.output/server/node_modules/@redis/client/dist/lib/client/parser.js +83 -0
  418. package/.output/server/node_modules/@redis/client/dist/lib/client/pool.js +373 -0
  419. package/.output/server/node_modules/@redis/client/dist/lib/client/pub-sub.js +351 -0
  420. package/.output/server/node_modules/@redis/client/dist/lib/client/socket.js +336 -0
  421. package/.output/server/node_modules/@redis/client/dist/lib/client/tracing.js +122 -0
  422. package/.output/server/node_modules/@redis/client/dist/lib/cluster/cluster-slots.js +657 -0
  423. package/.output/server/node_modules/@redis/client/dist/lib/cluster/index.js +425 -0
  424. package/.output/server/node_modules/@redis/client/dist/lib/cluster/multi-command.js +124 -0
  425. package/.output/server/node_modules/@redis/client/dist/lib/commander.js +91 -0
  426. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_CAT.js +19 -0
  427. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DELUSER.js +17 -0
  428. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DRYRUN.js +17 -0
  429. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GENPASS.js +19 -0
  430. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GETUSER.js +33 -0
  431. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LIST.js +15 -0
  432. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOAD.js +15 -0
  433. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG.js +39 -0
  434. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG_RESET.js +19 -0
  435. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SAVE.js +15 -0
  436. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SETUSER.js +18 -0
  437. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_USERS.js +15 -0
  438. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_WHOAMI.js +15 -0
  439. package/.output/server/node_modules/@redis/client/dist/lib/commands/APPEND.js +16 -0
  440. package/.output/server/node_modules/@redis/client/dist/lib/commands/ASKING.js +17 -0
  441. package/.output/server/node_modules/@redis/client/dist/lib/commands/AUTH.js +22 -0
  442. package/.output/server/node_modules/@redis/client/dist/lib/commands/BGREWRITEAOF.js +15 -0
  443. package/.output/server/node_modules/@redis/client/dist/lib/commands/BGSAVE.js +20 -0
  444. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITCOUNT.js +28 -0
  445. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD.js +33 -0
  446. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD_RO.js +23 -0
  447. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITOP.js +19 -0
  448. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITPOS.js +31 -0
  449. package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMOVE.js +21 -0
  450. package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMPOP.js +41 -0
  451. package/.output/server/node_modules/@redis/client/dist/lib/commands/BLPOP.js +25 -0
  452. package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOP.js +22 -0
  453. package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOPLPUSH.js +19 -0
  454. package/.output/server/node_modules/@redis/client/dist/lib/commands/BZMPOP.js +41 -0
  455. package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMAX.js +34 -0
  456. package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMIN.js +22 -0
  457. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_CACHING.js +16 -0
  458. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETNAME.js +15 -0
  459. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETREDIR.js +15 -0
  460. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_ID.js +15 -0
  461. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_INFO.js +62 -0
  462. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_KILL.js +66 -0
  463. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_LIST.js +35 -0
  464. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-EVICT.js +16 -0
  465. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-TOUCH.js +16 -0
  466. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_PAUSE.js +20 -0
  467. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_SETNAME.js +16 -0
  468. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKING.js +53 -0
  469. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKINGINFO.js +22 -0
  470. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_UNPAUSE.js +15 -0
  471. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTS.js +17 -0
  472. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTSRANGE.js +18 -0
  473. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_BUMPEPOCH.js +15 -0
  474. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNT-FAILURE-REPORTS.js +16 -0
  475. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNTKEYSINSLOT.js +16 -0
  476. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTS.js +17 -0
  477. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTSRANGE.js +18 -0
  478. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FAILOVER.js +24 -0
  479. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FLUSHSLOTS.js +15 -0
  480. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FORGET.js +16 -0
  481. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_GETKEYSINSLOT.js +17 -0
  482. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_INFO.js +15 -0
  483. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_KEYSLOT.js +16 -0
  484. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_LINKS.js +28 -0
  485. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MEET.js +17 -0
  486. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYID.js +15 -0
  487. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYSHARDID.js +15 -0
  488. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_NODES.js +15 -0
  489. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICAS.js +16 -0
  490. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICATE.js +16 -0
  491. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_RESET.js +19 -0
  492. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SAVECONFIG.js +15 -0
  493. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SET-CONFIG-EPOCH.js +16 -0
  494. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SETSLOT.js +28 -0
  495. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SLOTS.js +30 -0
  496. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND.js +19 -0
  497. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_COUNT.js +15 -0
  498. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYS.js +17 -0
  499. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYSANDFLAGS.js +25 -0
  500. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_INFO.js +20 -0
  501. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_LIST.js +25 -0
  502. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_GET.js +21 -0
  503. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_RESETSTAT.js +15 -0
  504. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_REWRITE.js +15 -0
  505. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_SET.js +25 -0
  506. package/.output/server/node_modules/@redis/client/dist/lib/commands/COPY.js +24 -0
  507. package/.output/server/node_modules/@redis/client/dist/lib/commands/DBSIZE.js +15 -0
  508. package/.output/server/node_modules/@redis/client/dist/lib/commands/DECR.js +15 -0
  509. package/.output/server/node_modules/@redis/client/dist/lib/commands/DECRBY.js +17 -0
  510. package/.output/server/node_modules/@redis/client/dist/lib/commands/DEL.js +16 -0
  511. package/.output/server/node_modules/@redis/client/dist/lib/commands/DELEX.js +43 -0
  512. package/.output/server/node_modules/@redis/client/dist/lib/commands/DIGEST.js +20 -0
  513. package/.output/server/node_modules/@redis/client/dist/lib/commands/DUMP.js +16 -0
  514. package/.output/server/node_modules/@redis/client/dist/lib/commands/ECHO.js +16 -0
  515. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL.js +31 -0
  516. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA.js +41 -0
  517. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA_RO.js +41 -0
  518. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL_RO.js +41 -0
  519. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXISTS.js +17 -0
  520. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRE.js +21 -0
  521. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIREAT.js +22 -0
  522. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRETIME.js +16 -0
  523. package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL.js +41 -0
  524. package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL_RO.js +41 -0
  525. package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHALL.js +24 -0
  526. package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHDB.js +19 -0
  527. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DELETE.js +16 -0
  528. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DUMP.js +15 -0
  529. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_FLUSH.js +19 -0
  530. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_KILL.js +15 -0
  531. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST.js +38 -0
  532. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST_WITHCODE.js +41 -0
  533. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LOAD.js +21 -0
  534. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_RESTORE.js +20 -0
  535. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_STATS.js +47 -0
  536. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOADD.js +41 -0
  537. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEODIST.js +26 -0
  538. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOHASH.js +19 -0
  539. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOPOS.js +27 -0
  540. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS.js +28 -0
  541. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER.js +28 -0
  542. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO.js +46 -0
  543. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO_WITH.js +46 -0
  544. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_STORE.js +53 -0
  545. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_WITH.js +36 -0
  546. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO.js +45 -0
  547. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO_WITH.js +27 -0
  548. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_STORE.js +53 -0
  549. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_WITH.js +56 -0
  550. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH.js +54 -0
  551. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCHSTORE.js +27 -0
  552. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH_WITH.js +55 -0
  553. package/.output/server/node_modules/@redis/client/dist/lib/commands/GET.js +17 -0
  554. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETBIT.js +19 -0
  555. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETDEL.js +16 -0
  556. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETEX.js +50 -0
  557. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETRANGE.js +20 -0
  558. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETSET.js +18 -0
  559. package/.output/server/node_modules/@redis/client/dist/lib/commands/HDEL.js +17 -0
  560. package/.output/server/node_modules/@redis/client/dist/lib/commands/HELLO.js +35 -0
  561. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXISTS.js +19 -0
  562. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRE.js +35 -0
  563. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIREAT.js +25 -0
  564. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRETIME.js +26 -0
  565. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGET.js +19 -0
  566. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETALL.js +22 -0
  567. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETDEL.js +18 -0
  568. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETEX.js +30 -0
  569. package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBY.js +18 -0
  570. package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBYFLOAT.js +18 -0
  571. package/.output/server/node_modules/@redis/client/dist/lib/commands/HKEYS.js +17 -0
  572. package/.output/server/node_modules/@redis/client/dist/lib/commands/HLEN.js +17 -0
  573. package/.output/server/node_modules/@redis/client/dist/lib/commands/HMGET.js +19 -0
  574. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_GET.js +131 -0
  575. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_RESET.js +25 -0
  576. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_START.js +60 -0
  577. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_STOP.js +27 -0
  578. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPERSIST.js +18 -0
  579. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRE.js +25 -0
  580. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIREAT.js +27 -0
  581. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRETIME.js +21 -0
  582. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPTTL.js +21 -0
  583. package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD.js +18 -0
  584. package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT.js +20 -0
  585. package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT_WITHVALUES.js +41 -0
  586. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN.js +35 -0
  587. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN_NOVALUES.js +27 -0
  588. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSET.js +55 -0
  589. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETEX.js +81 -0
  590. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETNX.js +21 -0
  591. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSTRLEN.js +21 -0
  592. package/.output/server/node_modules/@redis/client/dist/lib/commands/HTTL.js +19 -0
  593. package/.output/server/node_modules/@redis/client/dist/lib/commands/HVALS.js +17 -0
  594. package/.output/server/node_modules/@redis/client/dist/lib/commands/INCR.js +17 -0
  595. package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBY.js +19 -0
  596. package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBYFLOAT.js +19 -0
  597. package/.output/server/node_modules/@redis/client/dist/lib/commands/INFO.js +21 -0
  598. package/.output/server/node_modules/@redis/client/dist/lib/commands/KEYS.js +18 -0
  599. package/.output/server/node_modules/@redis/client/dist/lib/commands/LASTSAVE.js +17 -0
  600. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_DOCTOR.js +17 -0
  601. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_GRAPH.js +37 -0
  602. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTOGRAM.js +39 -0
  603. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTORY.js +18 -0
  604. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_LATEST.js +17 -0
  605. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_RESET.js +24 -0
  606. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS.js +19 -0
  607. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX.js +33 -0
  608. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX_WITHMATCHLEN.js +28 -0
  609. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_LEN.js +22 -0
  610. package/.output/server/node_modules/@redis/client/dist/lib/commands/LINDEX.js +21 -0
  611. package/.output/server/node_modules/@redis/client/dist/lib/commands/LINSERT.js +22 -0
  612. package/.output/server/node_modules/@redis/client/dist/lib/commands/LLEN.js +19 -0
  613. package/.output/server/node_modules/@redis/client/dist/lib/commands/LMOVE.js +22 -0
  614. package/.output/server/node_modules/@redis/client/dist/lib/commands/LMPOP.js +27 -0
  615. package/.output/server/node_modules/@redis/client/dist/lib/commands/LOLWUT.js +23 -0
  616. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP.js +17 -0
  617. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP_COUNT.js +23 -0
  618. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS.js +28 -0
  619. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS_COUNT.js +26 -0
  620. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSH.js +19 -0
  621. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSHX.js +19 -0
  622. package/.output/server/node_modules/@redis/client/dist/lib/commands/LRANGE.js +22 -0
  623. package/.output/server/node_modules/@redis/client/dist/lib/commands/LREM.js +22 -0
  624. package/.output/server/node_modules/@redis/client/dist/lib/commands/LSET.js +21 -0
  625. package/.output/server/node_modules/@redis/client/dist/lib/commands/LTRIM.js +20 -0
  626. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_DOCTOR.js +17 -0
  627. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_MALLOC-STATS.js +17 -0
  628. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_PURGE.js +17 -0
  629. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_STATS.js +39 -0
  630. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_USAGE.js +22 -0
  631. package/.output/server/node_modules/@redis/client/dist/lib/commands/MGET.js +19 -0
  632. package/.output/server/node_modules/@redis/client/dist/lib/commands/MIGRATE.js +48 -0
  633. package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LIST.js +28 -0
  634. package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LOAD.js +22 -0
  635. package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_UNLOAD.js +18 -0
  636. package/.output/server/node_modules/@redis/client/dist/lib/commands/MOVE.js +19 -0
  637. package/.output/server/node_modules/@redis/client/dist/lib/commands/MSET.js +46 -0
  638. package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETEX.js +104 -0
  639. package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETNX.js +19 -0
  640. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_ENCODING.js +18 -0
  641. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_FREQ.js +18 -0
  642. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_IDLETIME.js +18 -0
  643. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_REFCOUNT.js +18 -0
  644. package/.output/server/node_modules/@redis/client/dist/lib/commands/PERSIST.js +17 -0
  645. package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRE.js +24 -0
  646. package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIREAT.js +25 -0
  647. package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRETIME.js +18 -0
  648. package/.output/server/node_modules/@redis/client/dist/lib/commands/PFADD.js +22 -0
  649. package/.output/server/node_modules/@redis/client/dist/lib/commands/PFCOUNT.js +18 -0
  650. package/.output/server/node_modules/@redis/client/dist/lib/commands/PFMERGE.js +21 -0
  651. package/.output/server/node_modules/@redis/client/dist/lib/commands/PING.js +21 -0
  652. package/.output/server/node_modules/@redis/client/dist/lib/commands/PSETEX.js +20 -0
  653. package/.output/server/node_modules/@redis/client/dist/lib/commands/PTTL.js +18 -0
  654. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBLISH.js +20 -0
  655. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_CHANNELS.js +21 -0
  656. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMPAT.js +17 -0
  657. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMSUB.js +34 -0
  658. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDCHANNELS.js +21 -0
  659. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDNUMSUB.js +32 -0
  660. package/.output/server/node_modules/@redis/client/dist/lib/commands/RANDOMKEY.js +17 -0
  661. package/.output/server/node_modules/@redis/client/dist/lib/commands/READONLY.js +17 -0
  662. package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAME.js +19 -0
  663. package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAMENX.js +19 -0
  664. package/.output/server/node_modules/@redis/client/dist/lib/commands/REPLICAOF.js +19 -0
  665. package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE-ASKING.js +17 -0
  666. package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE.js +34 -0
  667. package/.output/server/node_modules/@redis/client/dist/lib/commands/ROLE.js +60 -0
  668. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP.js +17 -0
  669. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOPLPUSH.js +18 -0
  670. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP_COUNT.js +19 -0
  671. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSH.js +19 -0
  672. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSHX.js +19 -0
  673. package/.output/server/node_modules/@redis/client/dist/lib/commands/SADD.js +19 -0
  674. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCAN.js +71 -0
  675. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCARD.js +19 -0
  676. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_DEBUG.js +18 -0
  677. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_EXISTS.js +19 -0
  678. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_FLUSH.js +21 -0
  679. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_KILL.js +17 -0
  680. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_LOAD.js +18 -0
  681. package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFF.js +19 -0
  682. package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFFSTORE.js +19 -0
  683. package/.output/server/node_modules/@redis/client/dist/lib/commands/SET.js +61 -0
  684. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETBIT.js +21 -0
  685. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETEX.js +20 -0
  686. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETNX.js +19 -0
  687. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETRANGE.js +20 -0
  688. package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTER.js +19 -0
  689. package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERCARD.js +25 -0
  690. package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERSTORE.js +20 -0
  691. package/.output/server/node_modules/@redis/client/dist/lib/commands/SISMEMBER.js +21 -0
  692. package/.output/server/node_modules/@redis/client/dist/lib/commands/SMEMBERS.js +22 -0
  693. package/.output/server/node_modules/@redis/client/dist/lib/commands/SMISMEMBER.js +21 -0
  694. package/.output/server/node_modules/@redis/client/dist/lib/commands/SMOVE.js +21 -0
  695. package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT.js +53 -0
  696. package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_RO.js +40 -0
  697. package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_STORE.js +22 -0
  698. package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP.js +18 -0
  699. package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP_COUNT.js +20 -0
  700. package/.output/server/node_modules/@redis/client/dist/lib/commands/SPUBLISH.js +20 -0
  701. package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER.js +18 -0
  702. package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER_COUNT.js +23 -0
  703. package/.output/server/node_modules/@redis/client/dist/lib/commands/SREM.js +21 -0
  704. package/.output/server/node_modules/@redis/client/dist/lib/commands/SSCAN.js +35 -0
  705. package/.output/server/node_modules/@redis/client/dist/lib/commands/STRLEN.js +20 -0
  706. package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNION.js +20 -0
  707. package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNIONSTORE.js +21 -0
  708. package/.output/server/node_modules/@redis/client/dist/lib/commands/SWAPDB.js +17 -0
  709. package/.output/server/node_modules/@redis/client/dist/lib/commands/TIME.js +18 -0
  710. package/.output/server/node_modules/@redis/client/dist/lib/commands/TOUCH.js +19 -0
  711. package/.output/server/node_modules/@redis/client/dist/lib/commands/TTL.js +19 -0
  712. package/.output/server/node_modules/@redis/client/dist/lib/commands/TYPE.js +20 -0
  713. package/.output/server/node_modules/@redis/client/dist/lib/commands/UNLINK.js +19 -0
  714. package/.output/server/node_modules/@redis/client/dist/lib/commands/VADD.js +42 -0
  715. package/.output/server/node_modules/@redis/client/dist/lib/commands/VCARD.js +18 -0
  716. package/.output/server/node_modules/@redis/client/dist/lib/commands/VDIM.js +18 -0
  717. package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB.js +21 -0
  718. package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB_RAW.js +42 -0
  719. package/.output/server/node_modules/@redis/client/dist/lib/commands/VGETATTR.js +21 -0
  720. package/.output/server/node_modules/@redis/client/dist/lib/commands/VINFO.js +27 -0
  721. package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS.js +20 -0
  722. package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS_WITHSCORES.js +39 -0
  723. package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANDMEMBER.js +22 -0
  724. package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANGE.js +31 -0
  725. package/.output/server/node_modules/@redis/client/dist/lib/commands/VREM.js +20 -0
  726. package/.output/server/node_modules/@redis/client/dist/lib/commands/VSETATTR.js +27 -0
  727. package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM.js +51 -0
  728. package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM_WITHSCORES.js +32 -0
  729. package/.output/server/node_modules/@redis/client/dist/lib/commands/WAIT.js +20 -0
  730. package/.output/server/node_modules/@redis/client/dist/lib/commands/XACK.js +23 -0
  731. package/.output/server/node_modules/@redis/client/dist/lib/commands/XACKDEL.js +31 -0
  732. package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD.js +71 -0
  733. package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD_NOMKSTREAM.js +21 -0
  734. package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM.js +43 -0
  735. package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM_JUSTID.js +35 -0
  736. package/.output/server/node_modules/@redis/client/dist/lib/commands/XCFGSET.js +28 -0
  737. package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM.js +52 -0
  738. package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM_JUSTID.js +31 -0
  739. package/.output/server/node_modules/@redis/client/dist/lib/commands/XDEL.js +24 -0
  740. package/.output/server/node_modules/@redis/client/dist/lib/commands/XDELEX.js +29 -0
  741. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATE.js +29 -0
  742. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATECONSUMER.js +25 -0
  743. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DELCONSUMER.js +25 -0
  744. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DESTROY.js +24 -0
  745. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_SETID.js +26 -0
  746. package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_CONSUMERS.js +40 -0
  747. package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_GROUPS.js +46 -0
  748. package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_STREAM.js +72 -0
  749. package/.output/server/node_modules/@redis/client/dist/lib/commands/XLEN.js +23 -0
  750. package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING.js +42 -0
  751. package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING_RANGE.js +49 -0
  752. package/.output/server/node_modules/@redis/client/dist/lib/commands/XRANGE.js +50 -0
  753. package/.output/server/node_modules/@redis/client/dist/lib/commands/XREAD.js +57 -0
  754. package/.output/server/node_modules/@redis/client/dist/lib/commands/XREADGROUP.js +42 -0
  755. package/.output/server/node_modules/@redis/client/dist/lib/commands/XREVRANGE.js +49 -0
  756. package/.output/server/node_modules/@redis/client/dist/lib/commands/XSETID.js +18 -0
  757. package/.output/server/node_modules/@redis/client/dist/lib/commands/XTRIM.js +36 -0
  758. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD.js +73 -0
  759. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD_INCR.js +36 -0
  760. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCARD.js +23 -0
  761. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCOUNT.js +21 -0
  762. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF.js +16 -0
  763. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFFSTORE.js +18 -0
  764. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF_WITHSCORES.js +21 -0
  765. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINCRBY.js +19 -0
  766. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER.js +26 -0
  767. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERCARD.js +24 -0
  768. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERSTORE.js +20 -0
  769. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER_WITHSCORES.js +20 -0
  770. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZLEXCOUNT.js +21 -0
  771. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMPOP.js +47 -0
  772. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMSCORE.js +25 -0
  773. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX.js +34 -0
  774. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX_COUNT.js +19 -0
  775. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN.js +20 -0
  776. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN_COUNT.js +19 -0
  777. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER.js +16 -0
  778. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT.js +21 -0
  779. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT_WITHSCORES.js +22 -0
  780. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE.js +45 -0
  781. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYLEX.js +25 -0
  782. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE.js +25 -0
  783. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE_WITHSCORES.js +22 -0
  784. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGESTORE.js +37 -0
  785. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE_WITHSCORES.js +22 -0
  786. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK.js +19 -0
  787. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK_WITHSCORE.js +38 -0
  788. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREM.js +18 -0
  789. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYLEX.js +20 -0
  790. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYRANK.js +19 -0
  791. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYSCORE.js +20 -0
  792. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREVRANK.js +19 -0
  793. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCAN.js +26 -0
  794. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCORE.js +20 -0
  795. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION.js +21 -0
  796. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNIONSTORE.js +23 -0
  797. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION_WITHSCORES.js +21 -0
  798. package/.output/server/node_modules/@redis/client/dist/lib/commands/generic-transformers.js +492 -0
  799. package/.output/server/node_modules/@redis/client/dist/lib/commands/index.js +1161 -0
  800. package/.output/server/node_modules/@redis/client/dist/lib/errors.js +110 -0
  801. package/.output/server/node_modules/@redis/client/dist/lib/lua-script.js +16 -0
  802. package/.output/server/node_modules/@redis/client/dist/lib/multi-command.js +48 -0
  803. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/client-registry.js +84 -0
  804. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/index.js +81 -0
  805. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/metrics.js +647 -0
  806. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/types.js +120 -0
  807. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/error.util.js +199 -0
  808. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/index.js +32 -0
  809. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MASTER.js +18 -0
  810. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MONITOR.js +17 -0
  811. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_REPLICAS.js +25 -0
  812. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SENTINELS.js +25 -0
  813. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SET.js +18 -0
  814. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/index.js +23 -0
  815. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/index.js +1229 -0
  816. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/module.js +10 -0
  817. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/multi-commands.js +115 -0
  818. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/pub-sub-proxy.js +150 -0
  819. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/utils.js +98 -0
  820. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/wait-queue.js +24 -0
  821. package/.output/server/node_modules/@redis/client/dist/lib/single-entry-cache.js +38 -0
  822. package/.output/server/node_modules/@redis/client/dist/lib/utils/digest.js +34 -0
  823. package/.output/server/node_modules/@redis/client/dist/package.json +52 -0
  824. package/.output/server/node_modules/@redis/client/package.json +52 -0
  825. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRAPPEND.js +26 -0
  826. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINDEX.js +31 -0
  827. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINSERT.js +27 -0
  828. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRLEN.js +23 -0
  829. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRPOP.js +32 -0
  830. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRTRIM.js +22 -0
  831. package/.output/server/node_modules/@redis/json/dist/lib/commands/CLEAR.js +23 -0
  832. package/.output/server/node_modules/@redis/json/dist/lib/commands/DEBUG_MEMORY.js +23 -0
  833. package/.output/server/node_modules/@redis/json/dist/lib/commands/DEL.js +23 -0
  834. package/.output/server/node_modules/@redis/json/dist/lib/commands/FORGET.js +23 -0
  835. package/.output/server/node_modules/@redis/json/dist/lib/commands/GET.js +24 -0
  836. package/.output/server/node_modules/@redis/json/dist/lib/commands/MERGE.js +22 -0
  837. package/.output/server/node_modules/@redis/json/dist/lib/commands/MGET.js +23 -0
  838. package/.output/server/node_modules/@redis/json/dist/lib/commands/MSET.js +25 -0
  839. package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMINCRBY.js +26 -0
  840. package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMMULTBY.js +25 -0
  841. package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJKEYS.js +23 -0
  842. package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJLEN.js +23 -0
  843. package/.output/server/node_modules/@redis/json/dist/lib/commands/SET.js +35 -0
  844. package/.output/server/node_modules/@redis/json/dist/lib/commands/STRAPPEND.js +26 -0
  845. package/.output/server/node_modules/@redis/json/dist/lib/commands/STRLEN.js +23 -0
  846. package/.output/server/node_modules/@redis/json/dist/lib/commands/TOGGLE.js +20 -0
  847. package/.output/server/node_modules/@redis/json/dist/lib/commands/TYPE.js +29 -0
  848. package/.output/server/node_modules/@redis/json/dist/lib/commands/index.js +91 -0
  849. package/.output/server/node_modules/@redis/json/dist/lib/index.js +9 -0
  850. package/.output/server/node_modules/@redis/json/package.json +36 -0
  851. package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE.js +212 -0
  852. package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE_WITHCURSOR.js +40 -0
  853. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASADD.js +17 -0
  854. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASDEL.js +16 -0
  855. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASUPDATE.js +17 -0
  856. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALTER.js +19 -0
  857. package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_GET.js +23 -0
  858. package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_SET.js +17 -0
  859. package/.output/server/node_modules/@redis/search/dist/lib/commands/CREATE.js +277 -0
  860. package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_DEL.js +17 -0
  861. package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_READ.js +27 -0
  862. package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTADD.js +18 -0
  863. package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDEL.js +18 -0
  864. package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDUMP.js +19 -0
  865. package/.output/server/node_modules/@redis/search/dist/lib/commands/DROPINDEX.js +24 -0
  866. package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAIN.js +29 -0
  867. package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAINCLI.js +26 -0
  868. package/.output/server/node_modules/@redis/search/dist/lib/commands/HYBRID.js +273 -0
  869. package/.output/server/node_modules/@redis/search/dist/lib/commands/INFO.js +106 -0
  870. package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_AGGREGATE.js +58 -0
  871. package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_SEARCH.js +58 -0
  872. package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH.js +160 -0
  873. package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH_NOCONTENT.js +34 -0
  874. package/.output/server/node_modules/@redis/search/dist/lib/commands/SPELLCHECK.js +56 -0
  875. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGADD.js +28 -0
  876. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGDEL.js +18 -0
  877. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET.js +27 -0
  878. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHPAYLOADS.js +36 -0
  879. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES.js +51 -0
  880. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES_WITHPAYLOADS.js +53 -0
  881. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGLEN.js +15 -0
  882. package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNDUMP.js +27 -0
  883. package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNUPDATE.js +24 -0
  884. package/.output/server/node_modules/@redis/search/dist/lib/commands/TAGVALS.js +20 -0
  885. package/.output/server/node_modules/@redis/search/dist/lib/commands/_LIST.js +18 -0
  886. package/.output/server/node_modules/@redis/search/dist/lib/commands/index.js +125 -0
  887. package/.output/server/node_modules/@redis/search/dist/lib/dialect/default.js +5 -0
  888. package/.output/server/node_modules/@redis/search/dist/lib/index.js +17 -0
  889. package/.output/server/node_modules/@redis/search/package.json +37 -0
  890. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ADD.js +29 -0
  891. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ALTER.js +23 -0
  892. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATE.js +24 -0
  893. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATERULE.js +48 -0
  894. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DECRBY.js +40 -0
  895. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DEL.js +20 -0
  896. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DELETERULE.js +17 -0
  897. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/GET.js +33 -0
  898. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INCRBY.js +40 -0
  899. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO.js +58 -0
  900. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO_DEBUG.js +46 -0
  901. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MADD.js +20 -0
  902. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET.js +57 -0
  903. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_SELECTED_LABELS.js +23 -0
  904. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_WITHLABELS.js +43 -0
  905. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE.js +44 -0
  906. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_GROUPBY.js +96 -0
  907. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS.js +51 -0
  908. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS_GROUPBY.js +52 -0
  909. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS.js +59 -0
  910. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS_GROUPBY.js +52 -0
  911. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE.js +41 -0
  912. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_GROUPBY.js +41 -0
  913. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS.js +41 -0
  914. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS_GROUPBY.js +42 -0
  915. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS.js +41 -0
  916. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS_GROUPBY.js +41 -0
  917. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/QUERYINDEX.js +20 -0
  918. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/RANGE.js +66 -0
  919. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/REVRANGE.js +40 -0
  920. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/helpers.js +237 -0
  921. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/index.js +113 -0
  922. package/.output/server/node_modules/@redis/time-series/dist/lib/index.js +17 -0
  923. package/.output/server/node_modules/@redis/time-series/package.json +36 -0
  924. package/.output/server/node_modules/cluster-key-slot/lib/index.js +166 -0
  925. package/.output/server/node_modules/cluster-key-slot/package.json +56 -0
  926. package/.output/server/node_modules/js-base64/base64.mjs +301 -0
  927. package/.output/server/node_modules/js-base64/package.json +43 -0
  928. package/.output/server/node_modules/promise-limit/index.js +88 -0
  929. package/.output/server/node_modules/promise-limit/package.json +39 -0
  930. package/.output/server/node_modules/redis/dist/index.js +77 -0
  931. package/.output/server/node_modules/redis/package.json +36 -0
  932. package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
  933. package/.output/server/node_modules/ws/lib/constants.js +19 -0
  934. package/.output/server/node_modules/ws/lib/event-target.js +292 -0
  935. package/.output/server/node_modules/ws/lib/extension.js +203 -0
  936. package/.output/server/node_modules/ws/lib/limiter.js +55 -0
  937. package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
  938. package/.output/server/node_modules/ws/lib/receiver.js +706 -0
  939. package/.output/server/node_modules/ws/lib/sender.js +602 -0
  940. package/.output/server/node_modules/ws/lib/stream.js +161 -0
  941. package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
  942. package/.output/server/node_modules/ws/lib/validation.js +152 -0
  943. package/.output/server/node_modules/ws/lib/websocket-server.js +554 -0
  944. package/.output/server/node_modules/ws/lib/websocket.js +1393 -0
  945. package/.output/server/node_modules/ws/package.json +69 -0
  946. package/.output/server/node_modules/ws/wrapper.mjs +8 -0
  947. package/.output/server/package.json +16 -1
  948. package/package.json +8 -2
  949. package/.output/public/_nuxt/8Ppmjv9D.js +0 -1
  950. package/.output/public/_nuxt/B1qjkRVO.js +0 -1
  951. package/.output/public/_nuxt/B3KEisfc.js +0 -1
  952. package/.output/public/_nuxt/BDXvbRNW.js +0 -1
  953. package/.output/public/_nuxt/BGRcizqy.js +0 -1
  954. package/.output/public/_nuxt/BOK5ZFNK.js +0 -1
  955. package/.output/public/_nuxt/BPY2ud8g.js +0 -1
  956. package/.output/public/_nuxt/BSONoRG4.js +0 -2
  957. package/.output/public/_nuxt/BT53m-su.js +0 -1
  958. package/.output/public/_nuxt/BTJSh8in.js +0 -2
  959. package/.output/public/_nuxt/BVpt8J3a.js +0 -1
  960. package/.output/public/_nuxt/Bdtn2mn5.js +0 -1
  961. package/.output/public/_nuxt/BqyO8OjC.js +0 -3867
  962. package/.output/public/_nuxt/Bs1og3h1.js +0 -10
  963. package/.output/public/_nuxt/Bs2DgR_z.js +0 -1
  964. package/.output/public/_nuxt/BxrwrGYE.js +0 -1
  965. package/.output/public/_nuxt/By0aUn7N.js +0 -1
  966. package/.output/public/_nuxt/C177_GoB.js +0 -1
  967. package/.output/public/_nuxt/C69a9jD3.js +0 -67
  968. package/.output/public/_nuxt/C8AyZ3_X.js +0 -2
  969. package/.output/public/_nuxt/C8KplD68.js +0 -1
  970. package/.output/public/_nuxt/CNF1h1lI.js +0 -1
  971. package/.output/public/_nuxt/CcK14gfI.js +0 -1
  972. package/.output/public/_nuxt/CjouDEjz.js +0 -1
  973. package/.output/public/_nuxt/Cp5lMcfd.js +0 -1
  974. package/.output/public/_nuxt/CpYiq1Wv.js +0 -1
  975. package/.output/public/_nuxt/CwmbX4-U.js +0 -1
  976. package/.output/public/_nuxt/D-YUpbah.js +0 -9
  977. package/.output/public/_nuxt/D9BYd7AV.js +0 -1
  978. package/.output/public/_nuxt/DCJ49Fnq.js +0 -1
  979. package/.output/public/_nuxt/DeBdxlx0.js +0 -1
  980. package/.output/public/_nuxt/Dkikh2OC.js +0 -22
  981. package/.output/public/_nuxt/DlOyXrKK.js +0 -1
  982. package/.output/public/_nuxt/DqA_edEU.js +0 -1
  983. package/.output/public/_nuxt/DqxL2Lpl.js +0 -1
  984. package/.output/public/_nuxt/Dt3rfvTn.js +0 -1
  985. package/.output/public/_nuxt/Dt5h0Tys.js +0 -1
  986. package/.output/public/_nuxt/DwrSZ8Vj.js +0 -1
  987. package/.output/public/_nuxt/DwyFZZT6.js +0 -1
  988. package/.output/public/_nuxt/EM8J-XL1.js +0 -7
  989. package/.output/public/_nuxt/ESKvsKwc.js +0 -1
  990. package/.output/public/_nuxt/V5LvXMJl.js +0 -1
  991. package/.output/public/_nuxt/builds/meta/455d4da4-6357-4478-8703-78a79ccbbc0f.json +0 -1
  992. package/.output/public/_nuxt/default.DC7ec2JI.css +0 -1
  993. package/.output/public/_nuxt/entry.qdzR7QFr.css +0 -1
  994. package/.output/public/_nuxt/fpuEgQ7C.js +0 -12
  995. package/.output/public/_nuxt/jU7fkvuR.js +0 -1
  996. package/.output/public/_nuxt/lHkFwi3L.js +0 -1
  997. package/.output/public/_nuxt/pQ8l8BR2.js +0 -1
  998. package/.output/public/_nuxt/xYXqL1eV.js +0 -1
  999. package/.output/public/_nuxt/xxfb8w7n.js +0 -1
@@ -1,10 +0,0 @@
1
- import{b5 as co,bp as uo,r as M,ar as Fe,aU as dt,aT as mo,dp as po,dq as fo,dr as vo,ds as yo,dt as go,ah as Ie,c as C,d as Y,ax as Sn,e as x,o as h,f as o,w as m,l as g,t as B,g as e,k as P,m as U,an as Pe,F as de,q as ke,n as De,y as le,a3 as _e,du as Nt,bU as xn,dv as it,dw as W,dx as mt,dy as ho,bP as Ct,bW as tn,bO as bo,b$ as _o,b_ as wo,c2 as ft,aA as nn,dz as Rt,dA as on,dB as an,dC as Co,D as we,d8 as Nn,dD as So,av as Le,K as Ye,aV as qe,aj as Ft,am as St,S as Qe,az as Xe,aF as xo,cg as No,i as Ee,bG as st,aP as ye,aR as ge,Z as Ce,x as E,aS as he,bq as sn,bA as ct,bd as pt,aQ as Ae,cf as To,dE as ln,bt as Dt,bu as Pt,bv as Mt,dF as Ro,dG as $o,dH as rn,dI as cn,_ as Lt,h as Bt,bF as Ut,s as Vt,v as Kt,b3 as Je,A as Tn,B as Qt,dJ as Io,cz as ko,dK as un,bK as Oo,d3 as qt,a0 as Eo,dL as Ao,dM as Fo,ci as Rn,J as Oe,bs as Tt,aD as xt,b6 as $n,dN as dn,dO as In,$ as Do,V as Po,X as Mo,dP as Lo,dQ as Bo,dR as mn,dS as Uo,dT as Vo,p as Ko,aa as Qo,U as qo,dU as zo,cN as jo,bj as Ho,as as Wo,ch as Go,dV as pn}from"./4by6-f6q.js";import{e as kn,c as On,d as Yo,_ as En,a as An,b as Fn}from"./CpYiq1Wv.js";import{u as Ne,r as ze}from"./C5bgdIOp.js";import{d as Jo,c as Dn,u as Xo,a as Zo,b as ea,e as ta,F as na,f as oa,_ as Ze}from"./BqyO8OjC.js";import{_ as Pn}from"./H5m89x1B.js";import{_ as Mn}from"./CcK14gfI.js";import{_ as Ln}from"./Cp5lMcfd.js";import{H as ut,D as aa,a as sa,b as la}from"./Bdtn2mn5.js";import{d as ra,t as ia,e as ca}from"./B4ebLeWY.js";import{_ as ua}from"./BdDEVolW.js";import{_ as da,a as ma,b as fn}from"./B1qjkRVO.js";import{_ as zt}from"./By0aUn7N.js";import{_ as pa,j as fa,k as va}from"./8Ppmjv9D.js";import{_ as ya,a as ga,C as z,b as ha}from"./ESKvsKwc.js";import{_ as ba}from"./DqA_edEU.js";import{_ as Et,c as vn,a as Ot,e as yn,b as gn}from"./D-YUpbah.js";import{f as hn,a as _a}from"./DXp9fCib.js";import{b as et,a as tt}from"./BVmBXPoG.js";import{_ as je,a as He}from"./DlOyXrKK.js";import{c as wa,a as Ca,p as Sa,b as xa}from"./D9dEqMyH.js";import{a as Na}from"./-lZvfnzr.js";import"./CS5ItJPR.js";import"./CR6_eO9a.js";const Ta=d=>{if(!Array.isArray(d)||d.length===0)return;let t="";d.forEach((r,n)=>{const s=Object.entries(r).map(([v,i])=>`${i}`).join(" ");t+=s,n<d.length-1&&(t+=`
2
- `)}),navigator.clipboard.writeText(t).catch(r=>{console.error("Failed to copy: ",r)})},Bn=co("quick-query-logs",()=>{const d=po(),{workspaceId:t,connectionId:r}=uo(),n=M([]),s=({tableName:l,schemaName:w})=>n.value.filter(b=>b.tableName===l&&b.schemaName===w&&b.connectionId===r.value),v=async l=>{if(!r.value||!t.value){console.error("connectionId or schemaId not found");return}let w=`
3
- ${l.logs}`;l.errorMessage&&(w+=`
4
- -- Error: ${l.errorMessage}`);const b={...l,logs:w,connectionId:r.value,workspaceId:t.value,createdAt:mo().toISOString(),id:dt()};await d.quickQueryLogStorage.create(b),n.value.push(b)},i=async({tableName:l,schemaName:w})=>{if(!r.value){console.error("connectionId or schemaId not found");return}await d.quickQueryLogStorage.delete({connectionId:r.value,tableName:l,schemaName:w}),await p(r.value)},u=async()=>{if(!r.value){console.error("connectionId not found");return}await d.quickQueryLogStorage.delete({connectionId:r.value}),await p(r.value)},p=async l=>{const w=await d.quickQueryLogStorage.getByContext({connectionId:l});n.value=w};return Fe(()=>[r.value],async()=>{if(!r.value){console.error("connectionId not found");return}await p(r.value)},{deep:!0,immediate:!0}),{qqLogs:n,getLogsByTableId:s,deleteAllLogs:u,deleteLogsOfTable:i,createLog:v}},{persist:!1});function Ra(d){return vo(yo,d)}function $a(d){return fo(go,d)}const Ia=({tableName:d,schemaName:t})=>{var i;const r=Ie(),{data:n,status:s}=Ne("/api/tables/size",{method:"POST",body:{tableName:d,dbConnectionString:(i=r.selectedConnection)==null?void 0:i.connectionString,schema:t},key:`table-size-${d}-${t}`},"$1Ta2y3cNQa");return{tableSize:C(()=>n.value||{}),status:s}},ka={class:"gap-0 flex flex-col h-full w-full p-2"},Oa={class:"flex flex-col gap-y-1"},Ea={class:"flex items-center justify-between w-full"},Aa={class:"text-xs opacity-75"},Fa={class:"flex items-center justify-between gap-4"},Da={class:"text-xs opacity-75"},Pa={class:"flex items-center justify-between gap-4"},Ma={class:"text-xs opacity-75"},La=["onClick"],Ba={class:"flex justify-between text-xs w-full overflow-hidden"},Ua=["title"],Va={class:"opacity-50 w-1/4 min-w-[100px] text-right"},Ka=Y({__name:"QuickQueryTableSummary",props:{tableName:{},schemaName:{},columns:{},selectedColumnFieldId:{},handleSelectColumn:{type:Function},columnTypes:{}},emits:["resetSelectedCol"],setup(d,{emit:t}){const r=t,{tableSize:n}=Ia({tableName:d.tableName,schemaName:d.schemaName}),s=C(()=>{var i;return(((i=d.columns)==null?void 0:i.map(u=>{var l;const p=(l=d.columnTypes)==null?void 0:l.find(w=>w.name===u.field&&w.name);return p?{...u,type:(p==null?void 0:p.type)||""}:u}))||[]).slice(1)}),v=i=>i==="timestamp without time zone"?"timestamp":i||"";return Sn(i=>{i(()=>{d.selectedColumnFieldId!==void 0&&r("resetSelectedCol")})}),(i,u)=>{const p=kn,l=On,w=Pe,b=le;return h(),x("div",ka,[o(l,{class:"py-1 rounded-md"},{default:m(()=>[o(p,{class:"px-2"},{default:m(()=>[g("div",Oa,[g("div",Ea,[u[0]||(u[0]=g("span",{class:"text-xs font-medium"},"Table Size:",-1)),g("span",Aa,B(e(n).tableSize),1)]),g("div",Fa,[u[1]||(u[1]=g("span",{class:"text-xs font-medium"},"Data Size:",-1)),g("span",Da,B(e(n).dataSize),1)]),g("div",Pa,[u[2]||(u[2]=g("span",{class:"text-xs font-medium"},"Index Size:",-1)),g("span",Ma,B(e(n).indexSize),1)])])]),_:1})]),_:1}),o(l,{class:"mt-1 py-2 px-1 h-full overflow-y-auto custom-scrollbar rounded-md"},{default:m(()=>[o(p,{class:"px-0"},{default:m(()=>[e(s).length===0?(h(),P(w,{key:0,title:"No columns",desc:"This table has no columns to display."})):U("",!0),(h(!0),x(de,null,ke(e(s),f=>(h(),x("div",{key:f==null?void 0:f.field,class:De(["cursor-pointer hover:bg-accent/50 rounded-sm",e(Yo)(i.selectedColumnFieldId===(f==null?void 0:f.field)&&"bg-accent/90")])},[g("div",{class:"flex items-center gap-2 justify-start p-1",onClick:_=>i.handleSelectColumn(f==null?void 0:f.field)},[o(b,{name:"hugeicons:layout-3-column",class:"size-4 min-w-3"}),g("div",Ba,[g("span",{class:"w-3/4 truncate max-w-[220px] overflow-hidden text-ellipsis whitespace-nowrap inline-block",title:f==null?void 0:f.headerName},B((f==null?void 0:f.headerName)||""),9,Ua),g("span",Va,B(v(Array.isArray(f==null?void 0:f.type)?f==null?void 0:f.type.join(", "):f==null?void 0:f.type)),1)])],8,La)],2))),128))]),_:1})]),_:1})])}}}),Qa=xn({isSelect:tn().optional(),fieldName:Ct(),operator:Ct().optional(),search:ho(d=>Un(d),bo([Ct(),_o(),tn(),wo()])).optional()}),Un=d=>{if(d!==void 0)return d===null||typeof d=="string"||typeof d=="number"||typeof d=="boolean"?d:typeof d=="bigint"?d.toString():JSON.stringify(d)},jt=d=>d==null?"":String(d),qa=d=>t=>d===_e.POSTGRES?`$${t}`:"?",Vn=d=>t=>d===_e.POSTGRES||d===_e.ORACLE?`"${t}"`:`\`${t}\``,bn=({col:d,op:t})=>({where:`${d} ${t}`,params:[]}),_n=({col:d,op:t,search:r,nextPlaceholder:n})=>{const s=jt(r).split(",").map(i=>i.trim()).filter(Boolean);if(!s.length)return{where:"",params:[]};const v=s.map(()=>n()).join(", ");return{where:`${d} ${t} (${v})`,params:s}},wn=({col:d,op:t,search:r})=>({where:`${d} ${t} ${jt(r)}`,params:[]}),Re=({col:d,op:t,search:r,db:n,nextPlaceholder:s})=>{const v=t.toUpperCase().startsWith("NOT"),i=t.toUpperCase().startsWith("ILIKE"),u=n===_e.POSTGRES&&i?"ILIKE":"LIKE";let p=jt(r);return t.endsWith("%VALUE%")?p=`%${r}%`:t.endsWith("%VALUE")?p=`%${r}`:t.endsWith("VALUE%")&&(p=`${r}%`),{where:`${n===_e.POSTGRES?`${d}::TEXT`:d} ${v?" NOT ":" "}${u} ${s()}`,params:[p]}},at=({col:d,op:t,search:r,nextPlaceholder:n})=>({where:`${d} ${t} ${n()}`,params:[r]}),Kn={[W.IS_NULL]:bn,[W.IS_NOT_NULL]:bn,[W.IN]:_n,[W.NOT_IN]:_n,[W.BETWEEN]:wn,[W.NOT_BETWEEN]:wn,[W.LIKE]:Re,[W.ILIKE]:Re,[W.LIKE_CONTAINS]:Re,[W.LIKE_PREFIX]:Re,[W.LIKE_SUFFIX]:Re,[W.ILIKE_CONTAINS]:Re,[W.ILIKE_PREFIX]:Re,[W.ILIKE_SUFFIX]:Re,[W.NOT_LIKE_CONTAINS]:Re,[W.NOT_LIKE_PREFIX]:Re,[W.NOT_LIKE_SUFFIX]:Re,[W.NOT_ILIKE_CONTAINS]:Re,[W.NOT_ILIKE_PREFIX]:Re,[W.NOT_ILIKE_SUFFIX]:Re,[W.EQUAL]:at,[W.NOT_EQUAL]:at,[W.LESS]:at,[W.GREATER]:at,[W.LESS_EQUAL]:at,[W.GREATER_EQUAL]:at};function za({search:d,columns:t,db:r,op:n,nextPlaceholder:s}){const v=Vn(r),i=Kn[n],u=[],p=[];return t.forEach(l=>{const w=v(l),b=i({col:w,op:n,search:d,db:r,nextPlaceholder:s});b.where&&(u.push(b.where),p.push(...b.params))}),{where:u.length?`(${u.join(" OR ")})`:"",params:p}}function ja({filters:d,db:t,columns:r=[],composeWith:n=mt.AND}){const s=[],v=[];let i=1;const u=qa(t),p=()=>u(i++),l=Vn(t),w=({where:f,params:_})=>{f&&(s.push(f),v.push(..._))},b=new Set((Nt[t]??Nt[_e.MYSQL]??[]).map(f=>f.value.toUpperCase()));return d.forEach(f=>{if(!(f!=null&&f.isSelect))return;const _=Qa.parse(f);if(_.fieldName===it.AnyField){const S=za({search:_.search??"",columns:r,db:t,op:_.operator,nextPlaceholder:p});S.where&&(s.push(S.where),v.push(...S.params));return}if(_.fieldName===it.RawQuery){if(!_.search)return;s.push(`(${_.search})`);return}const a=l(_.fieldName),y=(_.operator??W.LIKE_CONTAINS).toUpperCase(),c=b.has(y)?y:W.LIKE_CONTAINS;w(Kn[c]({col:a,op:c,search:_.search??"",db:t,nextPlaceholder:p}))}),{where:s.length?`WHERE ${s.join(` ${n} `)}`:"",params:v}}function At({filters:d,db:t,columns:r=[],composeWith:n}){const{where:s,params:v}=ja({filters:d,db:t,columns:r,composeWith:n});if(!s)return"";const i=u=>u===null?"NULL":typeof u=="boolean"?u?"TRUE":"FALSE":typeof u=="number"?String(u):`'${String(u).replace(/'/g,"''")}'`;if(t===_e.POSTGRES){let u=s;return v.forEach((p,l)=>{u=u.replace(new RegExp(`\\$${l+1}\\b`,"g"),i(p))}),u}else{let u=0;return s.replace(/\?/g,()=>i(v[u++]))}}function Ha(d){const t=d.toUpperCase().trim();return t==="IS NULL"||t==="IS NOT NULL"?"":t==="IN"||t==="NOT IN"?"value1,value2,value3":t==="BETWEEN"||t==="NOT BETWEEN"?"value1 AND value2":t.includes("LIKE")?t.endsWith("%VALUE%")?"contains":t.endsWith("VALUE%")?"prefix*":t.endsWith("%VALUE")?"*suffix":"pattern":"value"}function Wa({schemaName:d,tableName:t,pKeys:r,update:n,pKeyValue:s}){if(!t||!(r!=null&&r.length)||!n||!Object.keys(n).length)throw new Error("Invalid input: tableName, pKeys, and update object are required");const v=Object.entries(n).map(([p,l])=>l===null?`"${p}" = NULL`:typeof l=="string"?`"${p}" = '${l.replace(/'/g,"''")}'`:`"${p}" = ${l}`).join(", "),i=r.map(p=>`"${p}" = '${s[p]}'`).join(" AND ");return`UPDATE "${d}"."${t}" SET ${v} WHERE ${i}`}function Ga({schemaName:d,tableName:t,pKeys:r,pKeyValue:n}){if(!t||!(r!=null&&r.length))throw new Error("Invalid input: tableName and pKeys are required");const s=r.map(i=>`"${i}" = '${n[i]}'`).join(" AND ");return`DELETE FROM "${d}"."${t}" WHERE ${s}`}function Ya({schemaName:d,tableName:t,insertData:r}){if(!t||!r)throw new Error("Invalid input: tableName, insertData object are required");if(!Object.keys(r).length)return`INSERT INTO "${d}"."${t}" DEFAULT VALUES`;const n=Object.entries(r).map(([i])=>`"${i}"`).join(", "),s=Object.values(r).map(i=>i===null?"NULL":typeof i=="string"?`'${i.replace(/'/g,"''")}'`:i).join(", ");return`INSERT INTO "${d}"."${t}" (${n}) VALUES (${s})`}function Qn(d){const t=d.toLowerCase();if(t.startsWith("_"))return`${Qn(t.substring(1))}[]`;switch(t){case"char":case"varchar":case"text":case"uuid":case"citext":case"money":case"inet":case"cidr":case"macaddr":case"macaddr8":case"tsvector":case"tsquery":case"xml":case"bytea":return"string";case"int2":case"int4":case"int8":case"numeric":case"float4":case"float8":case"decimal":case"oid":return"number";case"bool":case"boolean":return"boolean";case"json":case"jsonb":return"any";case"date":case"timestamp":case"timestamptz":case"time":case"timetz":case"interval":return"string";case"bit":case"varbit":return"string";default:return"unknown"}}const qn=({tableName:d,connection:t,primaryKeys:r,columns:n,isPersist:s=!0,schemaName:v,workspaceId:i,connectionId:u,initFilters:p,initComposeWith:l})=>{const w=ft(),b=Bn(),f=M(!1),_=M(""),a=nn({limit:Rt,offset:0}),y=M([]),c=nn({}),S=M(!1),N=M(mt.AND),ee=C(()=>{var Q;const k=w.tableAppearanceConfigs.nullOrderPreference,L=(Q=t.value)==null?void 0:Q.type;return k===on.Unset||L!==_e.POSTGRES&&L!==_e.ORACLE?"":k===on.NullsFirst?"NULLS FIRST":"NULLS LAST"}),ie=C(()=>{var L;const k=(L=t.value)==null?void 0:L.type;return k===_e.MYSQL||k===_e.MYSQL2||k===_e.MARIADB?Q=>`\`${Q}\``:Q=>`"${Q}"`}),J=C(()=>{const k=ie.value;return`${an} ${k(v)}.${k(d)}`}),me=C(()=>{var k;return S.value?At({columns:n.value,db:((k=t.value)==null?void 0:k.type)||_e.POSTGRES,filters:y.value,composeWith:N.value}):""}),ce=C(()=>{let k="";const L=(c==null?void 0:c.order)||"ASC",Q=(c==null?void 0:c.columnName)||r.value[0]||n.value[0],ne=ie.value;Q&&(k=`ORDER BY ${ne(Q)} ${L}`,ee.value&&(k=`${k} ${ee.value}`));const xe=`LIMIT ${a.limit}`,Te=`OFFSET ${a.offset}`;return`${an} ${ne(v)}.${ne(d)} ${me.value||""} ${k} ${xe} ${Te}`}),pe=C(()=>{const k=ie.value;return`${Co} ${k(v)}.${k(d)} ${me.value||""}`}),Z=(k,L=0,Q,ne)=>{b.createLog({tableName:d,schemaName:v,logs:k,queryTime:L,error:Q,errorMessage:ne})},{data:ve,status:be,refresh:T}=Ne("/api/query/execute",{method:"POST",body:{query:ce,...we(t.value)},watch:!1,immediate:!1,key:d,cache:"default",onResponseError:k=>{var Q,ne,xe,Te;const L=(ne=(Q=k.response)==null?void 0:Q._data)==null?void 0:ne.data;f.value=!0,_.value=((Te=(xe=k.response)==null?void 0:xe._data)==null?void 0:Te.message)||"",Z(ce.value,0,L,_.value)},onResponse:({response:k})=>{var L;k.ok&&Z(ce.value,(L=k._data)==null?void 0:L.queryTime)}},"$CR5sijiGqB"),{refresh:O,data:H,status:I}=Ne("/api/query/execute",{method:"POST",body:{query:pe,...we(t.value)},watch:!1,immediate:!1,key:`${d}-count`,cache:"default",onResponse:({response:k})=>{var L;k.ok&&Z(pe.value,(L=k._data)==null?void 0:L.queryTime)}},"$2oQhQUxDSL"),V=C(()=>{var k,L,Q;return Number(((Q=(L=(k=H.value)==null?void 0:k.result)==null?void 0:L[0])==null?void 0:Q.count)||0)}),K=C(()=>a.offset+a.limit<V.value),$=C(()=>a.offset>0),R=({limit:k,offset:L})=>{k<=0||L<0||(a.limit=k,a.offset=L,T())},D=({columnName:k,order:L})=>{c.columnName=k,c.order=L,T()},A=()=>{K&&(a.offset+=a.limit,T())},F=()=>{if(!$)return;const k=a.offset-a.limit;k<0?a.offset=0:a.offset=k,T()},q=k=>{N.value=k,a.offset=0,T(),O()},ue=()=>{a.offset=0,T(),O()},X=()=>So.queryBuilderKey((i==null?void 0:i.value)??"",(u==null?void 0:u.value)??"",v,d);Fe([y,a,c,S,N],Jo(()=>{if(!s)return;const k=X();localStorage.setItem(k,JSON.stringify({filters:y.value,pagination:{...a},orderBy:{...c},isShowFilters:S.value,composeWith:N.value}))},Nn),{deep:!0}),(()=>{if(!s){p&&(y.value=p,S.value=!0),l&&(N.value=l);return}const k=X(),L=localStorage.getItem(k),Q=L?JSON.parse(L):null;if(Q){const{filters:ne,pagination:xe,orderBy:Te,isShowFilters:Be,composeWith:Ue}=Q;Te&&(c.columnName=Te.columnName,c.order=Te.order),xe&&(a.limit=xe.limit,a.offset=xe.offset),ne&&(y.value=ne),Ue&&(N.value=Ue),S.value=!!Be}})();const se=C(()=>be.value==="pending"),Se=C(()=>{var k;return((k=ve.value)==null?void 0:k.result)||[]});return{whereClauses:me,pagination:a,queryString:ce,onUpdatePagination:R,isAllowNextPage:K,isAllowPreviousPage:$,onNextPage:A,onPreviousPage:F,queryCountString:pe,data:Se,isFetchingTableData:se,refreshTableData:T,refreshCount:O,totalRows:V,onApplyNewFilter:ue,baseQueryString:J,openErrorModal:f,onUpdateOrderBy:D,orderBy:c,errorMessage:_,filters:y,addHistoryLog:Z,isShowFilters:S,onChangeComposeWith:q,composeWith:N}};var re=(d=>(d.Data="Data",d.Structure="Structure",d.Erd="Erd",d))(re||{});const zn=()=>{const d=M(),t=M(),r=M([]),n=M(void 0),s=M(!1);return{quickQueryFilterRef:d,quickQueryTableRef:t,selectedRows:r,isMutating:s,focusedCell:n}},Ja=({columnName:d,cellValue:t})=>d?{fieldName:d,isSelect:!0,operator:W.EQUAL,search:Un(t)}:null,jn=({quickQueryFilterRef:d,quickQueryTableRef:t,filters:r,onApplyNewFilter:n})=>{const s=i=>{r.value=[...r.value,i]};return{appendFilter:s,onAddFilterByContextCell:async()=>{var p,l;const i=(p=t.value)==null?void 0:p.cellContextMenu;if(!i)return;const u=Ja({columnName:i.colDef.field,cellValue:i.value});u&&(s(u),await Le(),(l=d.value)==null||l.onShowSearch(),n())}}};function Hn(d){const{tableName:t,schemaName:r,primaryKeys:n,columnNames:s,data:v,selectedRows:i,pagination:u,addHistoryLog:p,refreshTableData:l,refreshCount:w,openErrorModal:b,errorMessage:f,quickQueryTableRef:_,focusedCell:a,safeModeEnabled:y,onRequestSafeModeConfirm:c,connection:S}=d,N=M(!1),ee=async()=>{var R;const $=(R=_.value)==null?void 0:R.gridApi;$&&($==null||$.deselectAll(),$==null||$.clearFocusedCell(),w(),l())},ie=$=>{i.value=$},J=$=>{a&&(a.value=$)},me=()=>{var $;return(($=_.value)==null?void 0:$.editedCells)??[]},ce=()=>me().filter($=>$.isNewRow||Object.keys($.changedData).length>0),pe=async()=>{var D;const $=ce();if(!v.value||!$.length){Ye.info("No changes to save.");return}const R=[];if($.forEach(A=>{var te;const F=!!Object.keys(A.changedData).length,q=(te=v.value)==null?void 0:te[A.rowId],ue=F&&q&&!A.isNewRow,X=A.isNewRow||!q&&F;if(ue){const se=Wa({tableName:t,schemaName:r,update:A.changedData,pKeys:n.value,pKeyValue:q});R.push(se)}else if(X){const se=Ya({tableName:t,schemaName:r,insertData:A.changedData});R.push(se)}}),!R.length){Ye.info("No valid changes to save.");return}if(!(y!=null&&y.value&&c&&!await c(R.join(`
5
- `),"save"))){N.value=!0;try{const{queryTime:A}=await $fetch("/api/tables/bulk-update",{method:"POST",body:{sqlUpdateStatements:R,...we(S.value)},onResponseError({response:F}){var X,te,se;const q=(te=(X=F==null?void 0:F._data)==null?void 0:X.data)==null?void 0:te.driverError,ue=(se=F==null?void 0:F._data)==null?void 0:se.message;b.value=!0,console.error("Error during bulk update:",F==null?void 0:F._data),f.value=ue||"An unknown error occurred during update.",p(R.join(`
6
- `),0,q,ue)}});(D=_.value)!=null&&D.editedCells&&(_.value.editedCells=[]),p(R.join(`
7
- `),A),w(),l(),Ye.success("Data saved successfully!")}catch(A){console.error("Fetch error in onSaveData:",A)}finally{N.value=!1}}},Z=async()=>{var R,D;if(!i.value.length){Ye.info("No rows selected for deletion.");return}const $=[];if(i.value.forEach(A=>{const F=Ga({tableName:t,schemaName:r,pKeys:n.value,pKeyValue:A});$.push(F)}),!(y!=null&&y.value&&c&&!await c($.join(`
8
- `),"delete"))){N.value=!0;try{const{queryTime:A}=await $fetch("/api/tables/bulk-delete",{method:"POST",body:{sqlDeleteStatements:$,...we(S.value)},onResponseError({response:q}){var te,se,Se;const ue=(se=(te=q==null?void 0:q._data)==null?void 0:te.data)==null?void 0:se.driverError,X=(Se=q==null?void 0:q._data)==null?void 0:Se.message;b.value=!0,f.value=X||"An unknown error occurred during deletion.",p($.join(`
9
- `),0,ue,X)}});if(((R=i.value)==null?void 0:R.length)===((D=v.value)==null?void 0:D.length)&&u.offset>0){const q=u.offset-u.limit;u.offset=q>0?q:0}p($.join(`
10
- `),A||0),w(),l(),Ye.success("Rows deleted successfully!")}catch(A){console.error("Fetch error in onDeleteRows:",A)}finally{N.value=!1}}},ve=()=>{var ue,X;const $=(ue=_.value)==null?void 0:ue.gridApi;if(!$){Ye.error("Table grid API not available to add row.");return}let R=0;$.forEachNode(()=>R++);const D=R,A={[ut]:D+1,...Object.fromEntries(s.value.map(te=>[te,void 0]))};$.applyTransaction({add:[A],addIndex:D});const F=me();if(!((X=_.value)!=null&&X.editedCells))return;_.value.editedCells=[...F,{rowId:D,changedData:{},isNewRow:!0}],$.setFocusedCell(D,s.value[0]);const q=$.getRowNode(D.toString());q&&($.deselectAll(),q.setSelected(!0))},be=()=>{!_.value||!ce().length||(_.value.editedCells=[],ee(),Ye.info("Changes discarded."))},T=C(()=>ce().length),O=C(()=>T.value>0);return{onAddEmptyRow:ve,onDiscardChanges:be,onDeleteRows:Z,onSaveData:pe,isMutating:N,hasEditedRows:O,pendingChangesCount:T,onCopyRows:()=>{const $=i.value;if(!$)return;const R=$.map(D=>{var F;const A=((D==null?void 0:D[ut])||1)-1;return(F=v.value)==null?void 0:F[A]});Ta(R)},onPasteRows:async()=>{var D,A;const $=(D=_.value)==null?void 0:D.gridApi;if(!$)return;const R=$.getFocusedCell();R&&(R==null||R.rowIndex,(A=R==null?void 0:R.column)==null||A.getColId(),await navigator.clipboard.readText())},onRefresh:ee,onSelectedRowsChange:ie,onCopySelectedCell:async()=>{a!=null&&a.value&&await navigator.clipboard.writeText(Dn(a.value)||"")},onFocusedCellChange:J,onDeselectAll:()=>{var R;(R=_.value)!=null&&R.gridApi}}}const Wn=({tableName:d,schemaName:t,connectionId:r,tabViewType:n})=>{const s=qe(),{schemas:v}=Ft(s),i=C(()=>{const a=v.value[r];if(a)return a.find(y=>y.name===t)}),u=C(()=>{var a,y,c,S;switch(n){case St.TableDetail:return(y=(a=i.value)==null?void 0:a.tableDetails)==null?void 0:y[d];case St.ViewDetail:{const N=(S=(c=i.value)==null?void 0:c.viewDetails)==null?void 0:S[d];return{columns:N==null?void 0:N.columns,foreign_keys:[],primary_keys:[],table_id:N==null?void 0:N.view_id}}default:return null}}),p=C(()=>n===St.ViewDetail),l=C(()=>{var a,y;return((y=(a=u.value)==null?void 0:a.columns)==null?void 0:y.map(c=>c.name))||[]}),w=C(()=>{var a;return(((a=u.value)==null?void 0:a.foreign_keys)||[]).map(y=>y.column)}),b=C(()=>{var a;return((a=u.value)==null?void 0:a.foreign_keys)||[]}),f=C(()=>{var a;return(((a=u.value)==null?void 0:a.primary_keys)||[]).map(y=>y.column)}),_=C(()=>{var a,y;return((y=(a=u.value)==null?void 0:a.columns)==null?void 0:y.map(c=>({name:c.name,type:c.short_type_name})))||[]});return{primaryKeyColumns:f,foreignKeys:b,columnNames:l,tableMetaData:u,columnTypes:_,foreignKeyColumns:w,isVirtualTable:p}},Xa=()=>({[re.Data]:!0,[re.Structure]:!1,[re.Erd]:!1}),Gn=({initialTab:d=re.Data,onTabChanged:t}={})=>{const r=M(d),n=M(Xa());return Fe(r,s=>{n.value[s]=!0,t==null||t(s)}),{quickQueryTabView:r,openedQuickQueryTab:n}},Ht=({schemaName:d,tableName:t})=>{const r=qe(),{activeReservedSchemas:n}=Ft(r),s=C(()=>(n.value||[]).find(p=>p.table===t&&p.schema===d)),v=C(()=>{var p,l;const u=new Map;return(l=(p=s.value)==null?void 0:p.used_by)==null||l.forEach(w=>{u.set(w.referenced_column,!0)}),u});return{activeReservedSchemas:n,reverseTables:s,isHaveRelationByFieldName:u=>v.value.has(u)}};function Yn(){const d=M(!1),t=M(""),r=M("save");let n=null;return{safeModeDialogOpen:d,safeModeDialogSql:t,safeModeDialogType:r,onRequestSafeModeConfirm:(u,p)=>new Promise(l=>{t.value=u,r.value=p,d.value=!0,n=l}),onSafeModeConfirm:()=>{n&&(n(!0),n=null),d.value=!1},onSafeModeCancel:()=>{n&&(n(!1),n=null),d.value=!1}}}const Za=["for"],es=["for"],ts=Y({__name:"DynamicForm",props:{fields:{},validationSchema:{},class:{}},setup(d,{expose:t}){const r=d,n=ra({validationSchema:ia(r.validationSchema),name:`dynamic-form-${dt()}`});return t({form:n}),(s,v)=>(h(),x("div",{class:De(r.class)},[(h(!0),x(de,null,ke(s.fields,i=>Qe((h(),x("div",{key:i.name},[g("div",{class:De(["flex justify-between pb-0.5",i.titleClass])},[g("label",{class:"text-xs text-right",for:i.name},B(i.label),9,Za),g("label",{class:"text-xs text-right text-primary/80",for:i.name},B(i.type),9,es)],2),o(e(ca),{as:i.as,id:i.name,name:i.name,class:De(i.class),placeholder:i.placeholder},null,8,["as","id","name","class","placeholder"])])),[[Xe,i.isShow]])),128))],2))}}),ns={class:"p-2 pb-0"},os={class:"relative w-full"},as={class:"absolute left-1.5 top-1.5 w-4"},ss=Y({__name:"PreviewSelectedRow",props:{columnTypes:{},selectedRow:{}},setup(d){const t=d,r=C(()=>{const w={};return t.columnTypes.forEach(b=>{const f=Qn(b.type);f==="boolean"?w[b.name]=$a().optional():f==="number"?w[b.name]=Ra().optional():w[b.name]=Ct().optional()}),w}),n=xo(""),s=No(n,Nn),v=C(()=>{const w=[],b=s.value.toLowerCase().trim();return t.columnTypes.forEach(f=>{const _=f.name.toLowerCase(),a=b?_.includes(b):!0;w.push({label:f.name,type:f.type,as:ua,name:f.name,class:"px-1 py-0.5 h-fit min-h-6! text-primary/80 font-normal!",placeholder:"NULL",isShow:a})}),w}),i=C(()=>{const w=s.value.toLowerCase().trim();return w?!t.columnTypes.some(b=>b.name.toLowerCase().includes(w)):!1}),u=C(()=>xn(r.value)),p=M(),l=w=>{const b=Object.entries(w).reduce((f,[_,a])=>(f[_]=Dn(a||""),f),{});Le(()=>{var f;(f=p.value)==null||f.form.setValues(b)})};return Fe(()=>[t.selectedRow,p],([w])=>{w&&l(w)},{immediate:!0,deep:!0}),(w,b)=>{const f=le,_=st;return h(),x(de,null,[g("div",ns,[g("div",os,[g("div",as,[o(f,{name:"lucide:search",class:"stroke-3!"})]),o(_,{type:"text",placeholder:"Search fields ...",class:"pr-6 pl-6 w-full h-8",modelValue:e(n),"onUpdate:modelValue":b[0]||(b[0]=a=>Ee(n)?n.value=a:null)},null,8,["modelValue"]),e(n)?(h(),x("div",{key:0,class:"absolute right-2 top-1.5 w-4 cursor-pointer rounded-md hover:bg-accent",onClick:b[1]||(b[1]=a=>n.value="")},[o(f,{name:"lucide:x",class:"stroke-3! text-muted-foreground"})])):U("",!0)])]),e(i)?(h(),P(e(Pe),{key:0,title:"No results",desc:"No fields match your search."})):(h(),P(ts,{key:1,ref_key:"dynamicForm",ref:p,class:"space-y-1 p-2 overflow-y-auto",fields:e(v),"validation-schema":e(u)},null,8,["fields","validation-schema"]))],64)}}}),ls={class:"grid gap-3"},rs={class:"grid gap-2"},is={class:"grid grid-cols-3 items-center gap-4"},cs={class:"grid grid-cols-3 items-center gap-4"},us={class:"flex justify-center"},ds=Y({__name:"QuickPagination",props:{limit:{},offset:{},totalRows:{}},emits:["onPaginate"],setup(d,{emit:t}){const r=d,n=t,s=M(0),v=M(0),i=M(!1),u=()=>{s.value=r.limit,v.value=r.offset},p=()=>{if(v.value>r.totalRows){v.value=r.totalRows-1;return}v.value<0&&(v.value=r.offset)},l=()=>{if(s.value>r.totalRows){s.value=r.totalRows;return}s.value<0&&(s.value=r.limit)},w=()=>{p(),l(),n("onPaginate",{limit:s.value,offset:v.value}),i.value=!1};return(b,f)=>(h(),P(e(ye),null,{default:m(()=>[o(e(En),{open:i.value,"onUpdate:open":f[2]||(f[2]=_=>i.value=_)},{default:m(()=>[o(e(An),{"as-child":""},{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(e(Ce),{onClick:u,variant:"outline",size:"xxs"},{default:m(()=>[E(B(b.limit),1)]),_:1})]),_:1}),o(e(he),null,{default:m(()=>f[3]||(f[3]=[g("p",null,"Pagination settings",-1)])),_:1})]),_:1}),o(e(Fn),{class:"w-64"},{default:m(()=>[g("div",ls,[f[7]||(f[7]=g("div",{class:"space-y-2"},[g("h4",{class:"font-medium leading-none"},"Pagination"),g("p",{class:"text-sm text-muted-foreground"},"Set limit and offset")],-1)),g("div",rs,[g("div",is,[o(e(sn),{for:"limit"},{default:m(()=>f[4]||(f[4]=[E("Limit")])),_:1}),o(e(st),{id:"limit",type:"number",modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=_=>s.value=_),modelModifiers:{number:!0},class:"col-span-2 h-6",min:"1",onBlur:l,onKeyup:ct(w,["enter"])},null,8,["modelValue"])]),g("div",cs,[o(e(sn),{for:"offset"},{default:m(()=>f[5]||(f[5]=[E("Offset")])),_:1}),o(e(st),{id:"offset",type:"number",modelValue:v.value,"onUpdate:modelValue":f[1]||(f[1]=_=>v.value=_),modelModifiers:{number:!0},class:"col-span-2 h-6",min:"0",onBlur:p,onKeyup:ct(w,["enter"])},null,8,["modelValue"])])]),g("div",us,[o(e(Ce),{size:"xs",class:"px-6",onClick:w},{default:m(()=>f[6]||(f[6]=[E("Go")])),_:1})])])]),_:1})]),_:1},8,["open"])]),_:1}))}}),ms=Y({__name:"RefreshButton",emits:["onRefresh"],setup(d,{emit:t}){const r=t,n=M(0),s=()=>{n.value+=360,r("onRefresh")};return pt([{key:"meta+r",callback:()=>{s()}}],{isPreventDefault:!0}),(v,i)=>(h(),P(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(e(Ce),{variant:"outline",size:"xxs",onClick:s,"aria-label":"Refresh table"},{default:m(()=>[o(e(le),{name:"hugeicons:refresh",style:Ae({transform:`rotate(${n.value}deg)`}),class:"icon-transition"},null,8,["style"]),o(e(zt),null,{default:m(()=>i[0]||(i[0]=[E("⌘R")])),_:1})]),_:1})]),_:1}),o(e(he),null,{default:m(()=>i[1]||(i[1]=[g("p",null,"Refresh data",-1)])),_:1})]),_:1}))}}),ps=To(ms,[["__scopeId","data-v-d56d89e4"]]),fs={key:0,class:"flex items-center gap-1"},vs={key:0,class:"absolute -right-1.5 -top-1.5 min-w-4 rounded-full bg-green-700 px-1 text-xxs font-medium leading-4 text-white"},ys={key:4,class:"font-normal text-xs text-primary/60"},gs={key:5,class:"font-normal text-sm text-primary"},hs={key:1},bs={key:2,class:"flex items-center gap-2"},_s={class:"font-normal text-sm text-primary/80"},ws={key:3},Cs={class:"flex items-center gap-1"},Jn=Y({__name:"QuickQueryControlBar",props:{isAllowNextPage:{type:Boolean},isAllowPreviousPage:{type:Boolean},totalRows:{},limit:{},offset:{},currentTotalRows:{},totalSelectedRows:{},hasEditedRows:{type:Boolean},pendingChangesCount:{},tabView:{},isViewVirtualTable:{type:Boolean}},emits:["onRefresh","onPaginate","onNextPage","onPreviousPage","onShowFilter","onSaveData","onAddEmptyRow","onDiscardChanges","onDeleteRows","onToggleHistoryPanel","update:tabView"],setup(d,{emit:t}){const r=ft(),{openSettings:n}=Ro(),s=d,v=t,i=M(),u=C(()=>s.tabView===re.Data);return C(()=>{var p;return((p=ln.find(l=>l.value===r.tableAppearanceConfigs.nullOrderPreference))==null?void 0:p.label)||"Unset"}),(p,l)=>{const w=zt,b=Ce,f=Mt,_=Pt,a=Dt,y=$o("auto-animate");return h(),x("div",{ref_key:"quickQueryControlBarRef",ref:i,class:De(["w-full select-none h-9 flex items-center justify-between"])},[e(u)?Qe((h(),x("div",fs,[o(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",onClick:l[0]||(l[0]=c=>v("onShowFilter"))},{default:m(()=>[o(e(le),{name:"lucide:filter"}),o(w,null,{default:m(()=>l[14]||(l[14]=[E("⌘F")])),_:1})]),_:1})]),_:1}),o(e(he),null,{default:m(()=>l[15]||(l[15]=[g("p",null,"Filter data",-1)])),_:1})]),_:1}),o(ps,{onOnRefresh:l[1]||(l[1]=c=>v("onRefresh"))}),o(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",onClick:l[2]||(l[2]=c=>v("onToggleHistoryPanel"))},{default:m(()=>[o(e(le),{name:"lucide:terminal"}),o(w,null,{default:m(()=>l[16]||(l[16]=[E("⌘j")])),_:1})]),_:1})]),_:1}),o(e(he),null,{default:m(()=>l[17]||(l[17]=[g("p",null,"History logs",-1)])),_:1})]),_:1}),p.isViewVirtualTable?U("",!0):(h(),P(e(ye),{key:0},{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",class:"font-normal",size:"xxs",onClick:l[3]||(l[3]=c=>v("onAddEmptyRow"))},{default:m(()=>[o(e(le),{name:"hugeicons:plus-sign"}),l[18]||(l[18]=E(" Row "))]),_:1})]),_:1}),o(e(he),null,{default:m(()=>l[19]||(l[19]=[g("p",null,"Add new record",-1)])),_:1})]),_:1})),p.hasEditedRows&&!p.isViewVirtualTable?(h(),P(e(ye),{key:1},{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",class:"relative overflow-visible",onClick:l[4]||(l[4]=c=>v("onSaveData"))},{default:m(()=>[o(e(le),{name:"lucide:save"}),p.pendingChangesCount?(h(),x("span",vs,B(p.pendingChangesCount),1)):U("",!0),o(w,null,{default:m(()=>l[20]||(l[20]=[E("⌘S")])),_:1})]),_:1})]),_:1}),o(e(he),null,{default:m(()=>l[21]||(l[21]=[g("p",null,"Save changes",-1)])),_:1})]),_:1})):U("",!0),p.hasEditedRows&&!p.isViewVirtualTable?(h(),P(e(ye),{key:2},{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",class:"font-normal",onClick:l[5]||(l[5]=c=>v("onDiscardChanges"))},{default:m(()=>[o(e(le),{name:"hugeicons:undo-02"}),l[22]||(l[22]=E(" Discard "))]),_:1})]),_:1}),o(e(he),null,{default:m(()=>l[23]||(l[23]=[g("p",null,"Discard changes",-1)])),_:1})]),_:1})):U("",!0),p.totalSelectedRows&&!p.isViewVirtualTable?(h(),P(e(ye),{key:3},{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",onClick:l[6]||(l[6]=c=>v("onDeleteRows"))},{default:m(()=>[o(e(le),{name:"lucide:trash"}),o(w,null,{default:m(()=>l[24]||(l[24]=[E("⌥⌘⌫")])),_:1})]),_:1})]),_:1}),o(e(he),null,{default:m(()=>[g("p",null,"Delete "+B(p.totalSelectedRows)+" selected rows",1)]),_:1})]),_:1})):U("",!0),p.totalSelectedRows?(h(),x("p",ys," Selected ")):U("",!0),p.totalSelectedRows?(h(),x("p",gs,B(p.totalSelectedRows),1)):U("",!0)])),[[y]]):(h(),x("div",hs)),e(u)?(h(),x("div",bs,[o(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"iconSm",disabled:!p.isAllowPreviousPage,onClick:l[7]||(l[7]=c=>v("onPreviousPage"))},{default:m(()=>[o(e(le),{name:"lucide:chevron-left"})]),_:1},8,["disabled"])]),_:1}),o(e(he),null,{default:m(()=>l[25]||(l[25]=[g("p",null,"Previous page",-1)])),_:1})]),_:1}),g("div",_s,[E(B(p.offset+1)+"-"+B(p.offset+p.currentTotalRows)+" ",1),l[26]||(l[26]=g("p",{class:"font-normal text-xs text-primary/60 inline"},"of",-1)),E(" "+B(p.totalRows)+" ",1),l[27]||(l[27]=g("p",{class:"font-normal text-xs text-primary/60 inline"},"rows",-1))]),o(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"iconSm",disabled:!p.isAllowNextPage,onClick:l[8]||(l[8]=c=>v("onNextPage"))},{default:m(()=>[o(e(le),{name:"lucide:chevron-right"})]),_:1},8,["disabled"])]),_:1}),o(e(he),null,{default:m(()=>l[28]||(l[28]=[g("p",null,"Next page",-1)])),_:1})]),_:1}),o(ds,{limit:p.limit,offset:p.offset,totalRows:p.totalRows,onOnPaginate:l[9]||(l[9]=c=>v("onPaginate",c))},null,8,["limit","offset","totalRows"])])):(h(),x("div",ws)),g("div",Cs,[o(a,{"model-value":p.tabView,"onUpdate:modelValue":l[10]||(l[10]=c=>p.$emit("update:tabView",c))},{default:m(()=>[o(_,{class:"grid w-full grid-cols-3 h-[1.625rem]!"},{default:m(()=>[o(f,{value:e(re).Data,class:"h-5! px-1 font-medium text-xs cursor-pointer text-primary/80"},{default:m(()=>l[29]||(l[29]=[E(" Data ")])),_:1},8,["value"]),o(f,{value:e(re).Structure,class:"h-5! px-1 font-medium text-xs cursor-pointer text-primary/80"},{default:m(()=>l[30]||(l[30]=[E(" Structure ")])),_:1},8,["value"]),o(f,{value:e(re).Erd,class:"h-5! px-1 font-medium text-xs cursor-pointer text-primary/80",disabled:p.isViewVirtualTable},{default:m(()=>l[31]||(l[31]=[E(" ERD ")])),_:1},8,["value","disabled"])]),_:1})]),_:1},8,["model-value"]),o(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"ghost",size:"iconSm",onClick:l[11]||(l[11]=c=>e(n)("Quick Query"))},{default:m(()=>[e(r).quickQuerySafeModeEnabled?(h(),P(e(le),{key:0,name:"hugeicons:security-check",class:"size-4!"})):(h(),P(e(le),{key:1,name:"lucide:shield-minus",class:"size-4! text-muted-foreground"}))]),_:1})]),_:1}),o(e(he),null,{default:m(()=>[g("p",null," Safe Mode: "+B(e(r).quickQuerySafeModeEnabled?"Enabled":"Disabled"),1),l[32]||(l[32]=g("p",{class:"text-xs text-muted-foreground"},"Click to configure",-1))]),_:1})]),_:1}),o(e(pa),null,{default:m(()=>[o(e(fa),{"as-child":""},{default:m(()=>[o(b,{variant:"ghost",size:"xxs"},{default:m(()=>[o(e(le),{name:"hugeicons:arrow-up-down",class:"size-4!"})]),_:1})]),_:1}),o(e(va),{align:"end",class:"min-w-44"},{default:m(()=>[o(e(ya),{class:"py-0"},{default:m(()=>l[33]||(l[33]=[E("Null ordering")])),_:1}),o(e(ga)),o(e(da),{"model-value":e(r).tableAppearanceConfigs.nullOrderPreference,"onUpdate:modelValue":l[12]||(l[12]=c=>e(r).tableAppearanceConfigs.nullOrderPreference=c)},{default:m(()=>[(h(!0),x(de,null,ke(e(ln),c=>(h(),P(e(ma),{key:c.value,value:c.value,class:"h-7 cursor-pointer"},{default:m(()=>[E(B(c.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["model-value"])]),_:1})]),_:1}),o(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(b,{variant:"ghost",size:"iconSm",onClick:l[13]||(l[13]=c=>e(n)("Appearance"))},{default:m(()=>[o(e(le),{name:"hugeicons:settings-04",class:"size-4!"})]),_:1})]),_:1}),o(e(he),null,{default:m(()=>l[34]||(l[34]=[g("p",null,"Table appearance settings",-1)])),_:1})]),_:1})])],512)}}}),Ss={class:"sticky top-0 z-10 bg-popover"},xs={class:"p-1"},Ns={key:3,class:"px-2 py-1 text-sm text-muted-foreground"},Ts=Y({__name:"ColumnSelector",props:{columns:{},value:{}},emits:["update:value","update:open"],setup(d,{emit:t}){const r=d,n=t,s=M(""),v=C(()=>s.value.trim().toLowerCase()),i=C(()=>new rn(r.columns,{threshold:.35,ignoreLocation:!0,minMatchCharLength:1})),u=C(()=>new rn(cn,{keys:["label","value"],threshold:.35,ignoreLocation:!0,minMatchCharLength:1})),p=C(()=>{const b=v.value;return b?i.value.search(b).map(f=>f.item):r.columns}),l=C(()=>{const b=v.value;return b?u.value.search(b).map(f=>f.item):cn}),w=b=>{n("update:open",b),b||(s.value="")};return(b,f)=>{const _=Ut,a=Bt,y=st,c=Tn,S=Qt,N=Kt,ee=Vt,ie=Lt;return h(),P(ie,{"model-value":b.value,"onUpdate:modelValue":f[4]||(f[4]=J=>n("update:value",J)),"onUpdate:open":w},{default:m(()=>[o(a,{class:"w-36 min-w-36 h-6! text-sm cursor-pointer px-2"},{default:m(()=>[o(_,{placeholder:"Select field"})]),_:1}),o(ee,null,{default:m(()=>[o(N,null,{default:m(()=>[g("div",Ss,[g("div",xs,[o(y,{"model-value":e(s),"onUpdate:modelValue":f[0]||(f[0]=J=>Ee(s)?s.value=J:null),type:"text",placeholder:"Search fields",class:"h-7 text-sm",autocomplete:"off",onClick:f[1]||(f[1]=Je(()=>{},["stop"])),onMousedown:f[2]||(f[2]=Je(()=>{},["stop"])),onKeydown:f[3]||(f[3]=Je(()=>{},["stop"]))},null,8,["model-value"])]),o(c)]),e(p).length?(h(!0),x(de,{key:0},ke(e(p),J=>(h(),P(S,{key:J,class:"h-6 text-sm cursor-pointer",value:J},{default:m(()=>[E(B(J),1)]),_:2},1032,["value"]))),128)):U("",!0),e(p).length&&e(l).length?(h(),P(c,{key:1})):U("",!0),e(l).length?(h(!0),x(de,{key:2},ke(e(l),J=>(h(),P(S,{key:J.value,class:"h-6 text-sm cursor-pointer",value:J.value},{default:m(()=>[E(B(J.label),1)]),_:2},1032,["value"]))),128)):U("",!0),!e(p).length&&!e(l).length?(h(),x("div",Ns," No fields found ")):U("",!0)]),_:1})]),_:1})]),_:1},8,["model-value"])}}}),Rs=Y({__name:"OperatorSelector",props:{dbType:{},value:{}},emits:["update:value","update:open"],setup(d){const t=d,r=C(()=>Nt[t.dbType]??Nt[_e.MYSQL]??[]);return(n,s)=>{const v=Ut,i=Bt,u=Qt,p=Kt,l=Vt,w=Lt;return h(),P(w,{"model-value":n.value,"onUpdate:modelValue":s[0]||(s[0]=b=>n.$emit("update:value",b)),"onUpdate:open":s[1]||(s[1]=b=>n.$emit("update:open",b))},{default:m(()=>[o(i,{class:"w-36 min-w-36 h-6! text-sm cursor-pointer px-2"},{default:m(()=>[o(v,{placeholder:"Select operator"})]),_:1}),o(l,null,{default:m(()=>[o(p,null,{default:m(()=>[(h(!0),x(de,null,ke(e(r),b=>(h(),x(de,null,[b.value===e(Io).value?(h(),P(e(Tn),{key:0})):(h(),P(u,{key:1,class:"h-6 text-sm cursor-pointer",value:b.value},{default:m(()=>[E(B(b.label),1)]),_:2},1032,["value"]))],64))),256))]),_:1})]),_:1})]),_:1},8,["model-value"])}}}),$s={class:"text-xs font-medium"},Is={class:"text-xs font-medium"},ks=Y({__name:"ViewParserFilterApply",props:{getParserApplyFilter:{type:Function},getParserAllFilter:{type:Function}},setup(d){const t=d,r=M(""),n=M(""),s=()=>{r.value=hn(t.getParserApplyFilter(),{language:"postgresql",keywordCase:"upper"}),n.value=hn(t.getParserAllFilter(),{language:"postgresql",keywordCase:"upper"})};return(v,i)=>(h(),P(e(ye),null,{default:m(()=>[o(e(En),null,{default:m(()=>[o(e(An),{"as-child":""},{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(e(Ce),{onClick:s,size:"xxs",variant:"outline"},{default:m(()=>i[0]||(i[0]=[E(" SQL ")])),_:1})]),_:1}),o(e(he),null,{default:m(()=>i[1]||(i[1]=[g("p",null,"View SQL query",-1)])),_:1})]),_:1}),o(e(Fn),{class:"w-[40rem] p-2 space-y-2","restore-focus":!0},{default:m(()=>[g("div",$s,[i[2]||(i[2]=E(" Curren filter ")),o(e(Et),{code:e(r),language:"sql","max-height":"15rem",class:"mt-1"},null,8,["code"])]),g("div",Is,[i[3]||(i[3]=E(" Apply all filter ")),o(e(Et),{code:e(n),language:"sql","max-height":"15rem",class:"mt-1"},null,8,["code"])])]),_:1})]),_:1})]),_:1}))}}),Os={class:"flex justify-between"},Es={class:"flex items-center gap-0.5 text-xs"},As={class:"text-xs flex items-center gap-2"},Fs=Y({__name:"QuickQueryFilterGuide",props:{getParserApplyFilter:{type:Function},getParserAllFilter:{type:Function},composeWith:{}},emits:["onChangeComposeWith"],setup(d,{emit:t}){const r=t;return(n,s)=>{const v=Ut,i=Bt,u=Qt,p=Kt,l=Vt,w=Lt,b=zt;return h(),x("div",Os,[g("div",Es,[s[3]||(s[3]=E(" Compose with: ")),o(w,{modelValue:n.composeWith,"onUpdate:modelValue":s[0]||(s[0]=f=>r("onChangeComposeWith",f))},{default:m(()=>[o(i,{class:"w-14 h-5! text-xs cursor-pointer px-1 border-none gap-1 shadow-none"},{default:m(()=>[o(v,{placeholder:"Select operator"})]),_:1}),o(l,null,{default:m(()=>[o(p,null,{default:m(()=>[o(u,{class:"h-5 text-xs cursor-pointer",value:e(mt).AND},{default:m(()=>s[1]||(s[1]=[E(" AND ")])),_:1},8,["value"]),o(u,{class:"h-5 text-xs cursor-pointer",value:e(mt).OR},{default:m(()=>s[2]||(s[2]=[E(" OR ")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),g("div",As,[g("div",null,[o(b,null,{default:m(()=>s[4]||(s[4]=[E("⌘F")])),_:1}),s[5]||(s[5]=E(": Show"))]),g("div",null,[o(b,null,{default:m(()=>s[6]||(s[6]=[E("Esc")])),_:1}),s[7]||(s[7]=E(": Exit"))]),o(e(ko),{orientation:"vertical",class:"h-3/4!"}),g("div",null,[o(b,null,{default:m(()=>s[8]||(s[8]=[E("⌘I")])),_:1}),s[9]||(s[9]=E(": Insert"))]),g("div",null,[o(b,null,{default:m(()=>s[10]||(s[10]=[E("⌘⌫")])),_:1}),s[11]||(s[11]=E(": Delete"))]),g("div",null,[o(b,null,{default:m(()=>s[12]||(s[12]=[E("⌘↵")])),_:1}),s[13]||(s[13]=E(": Apply all"))])]),g("div",null,[o(ks,{getParserApplyFilter:n.getParserApplyFilter,getParserAllFilter:n.getParserAllFilter},null,8,["getParserApplyFilter","getParserAllFilter"])])])}}}),Xn=Y({__name:"QuickQueryFilter",props:un({columns:{},dbType:{},baseQuery:{},initFilters:{},composeWith:{}},{isShowFilters:{},isShowFiltersModifiers:{}}),emits:un(["onSearch","onUpdateFilters","onChangeComposeWith"],["update:isShowFilters"]),setup(d,{expose:t,emit:r}){const n=d,s=Oo(d,"isShowFilters"),v=r,i=M(),u=qt("filterSearchRefs"),p=C(()=>n.initFilters||[]),l=()=>p.value.map(T=>({...T})),w=T=>{v("onUpdateFilters",T)},b=(T,O)=>{const H=l(),I=H[T];I&&(H[T]={...I,...O},w(H))},f=(T,O)=>{const H=l();H.splice(T,0,{...O}),w(H)},_=T=>{const O=l();O.splice(T,1),w(O)},a=T=>{f(T+1,{isSelect:!0,fieldName:it.AnyField,operator:W.LIKE_CONTAINS})},y=(T,O)=>{var K;const H=(K=p.value)==null?void 0:K[T],I=(H==null?void 0:H.fieldName)===it.RawQuery,V=!(H!=null&&H.operator);I&&V?b(T,{...H,fieldName:O,operator:W.LIKE_CONTAINS}):b(T,{...H,fieldName:O})},c=()=>`${n.baseQuery} ${At({columns:n.columns,db:n.dbType,filters:p.value,composeWith:n.composeWith})};`,S=()=>`${n.baseQuery} ${At({columns:n.columns,db:n.dbType,filters:p.value.map(T=>({...T,isSelect:!0})),composeWith:n.composeWith})};`,N=(T=!1)=>{if(T){v("onSearch");return}v("onSearch")},ee=T=>{var H;const O=(H=p.value)==null?void 0:H[T];O!=null&&O.isSelect||b(T,{...O,isSelect:!0}),N()},ie=()=>{w(p.value.map(T=>({...T,isSelect:!0}))),N()},J=async T=>{var I;const O=(I=p.value)==null?void 0:I[T],H=!!(O!=null&&O.isSelect);_(T),await Le(),T!==0&&Z(T-1),H&&N()},me=T=>T==null?"":String(T),ce=(T,O)=>{b(T,{search:O})},pe=async(T,O)=>{b(T,{isSelect:O}),await N()},Z=T=>{var O,H;u.value&&((H=(O=u.value)==null?void 0:O[T])==null||H.$el.focus())},ve=()=>{p.value.length||a(-1),s.value=!0,Le(()=>{const T=p.value.length-1||0;Z(T)})},be=()=>u.value?u.value.findIndex(O=>O.$el===document.activeElement):void 0;return pt([{key:"meta+backspace",callback:async()=>{const T=be();T===void 0||T<0||J(T)}},{key:"meta+enter",callback:()=>{const T=be();T!==void 0&&T>=0&&ie()}},{key:"meta+i",callback:async()=>{const T=be();T===void 0||T<0||(a(T),await Le(),Z(T+1))}},{key:"escape",callback:()=>{s.value=!1,N(!0)}}],{target:i}),t({onShowSearch:ve,insert:f}),(T,O)=>{const H=ba,I=st,V=Ce;return s.value?(h(),x("div",{key:0,ref_key:"quickQueryFilterRef",ref:i,class:De(["h-fit space-y-1",e(p).length&&"pb-2"])},[(h(!0),x(de,null,ke(e(p),(K,$)=>(h(),x("div",{class:"flex gap-1 items-center",key:$},[o(H,{"model-value":K.isSelect,onClick:O[0]||(O[0]=Je(()=>{},["stop"])),onKeydown:O[1]||(O[1]=ct(Je(()=>{},["stop","prevent"]),["enter"])),onKeyup:O[2]||(O[2]=ct(Je(()=>{},["stop"]),["enter"])),"onUpdate:modelValue":R=>pe($,!!R)},null,8,["model-value","onUpdate:modelValue"]),o(Ts,{columns:T.columns,value:K.fieldName,"onUpdate:value":R=>{y($,R)},"onUpdate:open":R=>{R||T.$nextTick(()=>Z($))}},null,8,["columns","value","onUpdate:value","onUpdate:open"]),K.fieldName!==e(it).RawQuery?(h(),P(Rs,{key:0,"db-type":T.dbType,value:K.operator,"onUpdate:value":R=>b($,{operator:R==null?void 0:String(R)}),"onUpdate:open":R=>{R||T.$nextTick(()=>Z($))}},null,8,["db-type","value","onUpdate:value","onUpdate:open"])):U("",!0),o(I,{"model-value":me(K.search),type:"text",placeholder:e(Ha)(K.operator||""),class:"w-full h-6 px-2",ref_for:!0,ref_key:"filterSearchRefs",ref:u,onKeyup:O[3]||(O[3]=ct(Je(()=>N(),["stop"]),["enter"])),"onUpdate:modelValue":R=>ce($,String(R))},null,8,["model-value","placeholder","onUpdate:modelValue"]),o(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(V,{size:"xxs",variant:"outline",onClick:R=>ee($)},{default:m(()=>O[5]||(O[5]=[E(" Apply ")])),_:2},1032,["onClick"])]),_:2},1024),o(e(he),null,{default:m(()=>O[6]||(O[6]=[g("p",null,"Apply this filter",-1)])),_:1})]),_:2},1024),o(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(V,{size:"iconSm",variant:"outline",onClick:R=>J($)},{default:m(()=>[o(e(le),{name:"hugeicons:minus-sign"})]),_:2},1032,["onClick"])]),_:2},1024),o(e(he),null,{default:m(()=>O[7]||(O[7]=[g("p",null,"Remove filter (Meta+Backspace)",-1)])),_:1})]),_:2},1024),o(e(ye),null,{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(V,{size:"iconSm",variant:"outline",onClick:()=>a($)},{default:m(()=>[o(e(le),{name:"hugeicons:plus-sign"})]),_:2},1032,["onClick"])]),_:2},1024),o(e(he),null,{default:m(()=>O[8]||(O[8]=[g("p",null,"Add new filter (Meta+I)",-1)])),_:1})]),_:2},1024)]))),128)),e(p).length?(h(),P(Fs,{key:0,getParserApplyFilter:c,getParserAllFilter:S,"compose-with":T.composeWith,onOnChangeComposeWith:O[4]||(O[4]=K=>v("onChangeComposeWith",K))},null,8,["compose-with"])):U("",!0)],2)):U("",!0)}}}),Zn=Y({__name:"QuickQueryContextMenu",props:{totalSelectedRows:{},hasEditedRows:{type:Boolean},isReferencedTable:{type:Boolean},cellContextMenu:{},cellHeaderContextMenu:{},data:{},selectedRows:{},tableName:{},schemaName:{}},emits:["onRefresh","onSaveData","onAddEmptyRow","onDeleteRows","onCopyRows","onPasteRows","onCopySelectedCell","onFilterByValue","onClearContextMenu"],setup(d,{emit:t}){const r=ft(),n=d,s=t,v=C(()=>{var c,S,N,ee;return((S=(c=n.cellContextMenu)==null?void 0:c.column)==null?void 0:S.getColId())??((ee=(N=n.cellHeaderContextMenu)==null?void 0:N.column)==null?void 0:ee.getColId())}),i=C(()=>{var c,S,N;return((c=n.cellContextMenu)==null?void 0:c.column.getColDef().headerName)??((N=(S=n.cellHeaderContextMenu)==null?void 0:S.column)==null?void 0:N.getColDef().headerName)??""}),u=c=>{vn(n.selectedRows||[],i.value??"",c)},p=c=>{vn(n.data||[],i.value??"",c)},l=c=>Ot(n.selectedRows||[],n.tableName||"table_data",c,n.schemaName),w=c=>Ot(n.data||[],n.tableName||"table_data",c,n.schemaName),b=c=>yn(n.selectedRows||[],n.tableName||"table_data",c,"selected",n.schemaName),f=c=>yn(n.data||[],n.tableName||"table_data",c,"all",n.schemaName),_=()=>{var S;const c=(S=n.cellContextMenu)==null?void 0:S.value;if(c!==void 0){if(typeof c=="object")return gn(JSON.stringify(c));gn(String(c))}},a=()=>{var c;if(n.cellContextMenu){const S=(c=n.cellContextMenu)==null?void 0:c.data;Ot([S],n.tableName||"table_data","csv-no-header",n.schemaName)}},y=C(()=>{var pe;const c=!!n.cellContextMenu,S=n.selectedRows.length>0,N=n.selectedRows.length,ee=((pe=n.data)==null?void 0:pe.length)||0,ie=!!v.value,J=[{type:z.LABEL,title:`${N} selected`,condition:S&&c},{type:z.ACTION,title:"Copy as text",icon:"hugeicons:file-01",select:()=>u("list"),condition:S&&c},{type:z.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>u("json"),condition:S&&c},{type:z.SEPARATOR,condition:S&&c},{type:z.LABEL,title:"All data in column"},{type:z.ACTION,title:"Copy as text",icon:"hugeicons:file-01",select:()=>p("list")},{type:z.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>p("json")}],me=[{type:z.LABEL,title:`${N} selected row(s)`,condition:S},{type:z.ACTION,title:"Copy as CSV/TSV",icon:"hugeicons:csv-02",select:()=>l("csv-no-header"),condition:S},{type:z.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>l("json"),condition:S},{type:z.ACTION,title:"Copy as SQL",icon:"hugeicons:database",select:()=>l("sql"),condition:S},{type:z.SEPARATOR,condition:S},{type:z.LABEL,title:"All rows"},{type:z.ACTION,title:"Copy as CSV/TSV",icon:"hugeicons:csv-02",select:()=>w("csv-no-header")},{type:z.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>w("json")},{type:z.ACTION,title:"Copy as SQL",icon:"hugeicons:database",select:()=>w("sql")}],ce=[{type:z.LABEL,title:`${N} selected row${N>1?"s":""}`,condition:S},{type:z.ACTION,title:"Export as CSV",icon:"hugeicons:csv-01",select:()=>b("csv-no-header"),condition:S},{type:z.ACTION,title:"Export as CSV (have headers)",icon:"hugeicons:csv-01",select:()=>b("csv-with-header"),condition:S},{type:z.ACTION,title:"Export as JSON",icon:"hugeicons:code",select:()=>b("json"),condition:S},{type:z.ACTION,title:"Export as SQL",icon:"hugeicons:database",select:()=>b("sql"),condition:S},{type:z.SEPARATOR,condition:S},{type:z.LABEL,title:`All ${ee.toLocaleString()} row${ee!==1?"s":""}`},{type:z.ACTION,title:"Export as CSV",icon:"hugeicons:csv-01",select:()=>f("csv-no-header")},{type:z.ACTION,title:"Export as CSV (have headers)",icon:"hugeicons:csv-01",select:()=>f("csv-with-header")},{type:z.ACTION,title:"Export as JSON",icon:"hugeicons:code",select:()=>f("json")},{type:z.ACTION,title:"Export as SQL",icon:"hugeicons:database",select:()=>f("sql")}];return[{title:"View row detail",icon:"hugeicons:view",type:z.ACTION,select:()=>{r.onShowSecondSidebar()},condition:!n.isReferencedTable&&!!n.cellContextMenu},{title:"Filter by value",icon:"lucide:filter",type:z.ACTION,shortcut:"⌘F",select:()=>{s("onFilterByValue")},condition:!!n.cellContextMenu},{title:"Refresh",icon:"hugeicons:refresh",type:z.ACTION,shortcut:"⌘R",select:()=>{s("onRefresh")}},{type:z.SEPARATOR},{type:z.ACTION,title:"Copy current cell",icon:"hugeicons:copy-02",select:_,condition:c},{type:z.ACTION,title:"Copy current row",icon:"hugeicons:copy-02",select:a,condition:S&&c},{type:z.SEPARATOR,condition:c},{type:z.SUBMENU,title:"Copy column",icon:"hugeicons:layout-3-column",items:J,condition:ie,desc:i.value||"Select a column"},{type:z.SUBMENU,title:"Copy row(s)",icon:"hugeicons:layout-3-row",items:me},{type:z.SEPARATOR},{type:z.SUBMENU,title:"Export",icon:"hugeicons:file-download",items:ce}]});return(c,S)=>{const N=ha;return h(),P(N,{contextMenuItems:e(y),onOnClearContextMenu:S[0]||(S[0]=ee=>s("onClearContextMenu"))},{default:m(()=>[Eo(c.$slots,"default")]),_:3},8,["contextMenuItems"])}}});function Ds({fieldType:d,isObjectColumn:t,value:r}){const n=t?JSON.stringify(r):r;return d==="bool"?!!n:n===""||n===null||n===void 0?null:n}const Ps={class:"flex items-center justify-between"},Ms={class:"truncate"},Ls=Y({__name:"CustomCellUuid",props:{params:{}},setup(d){return(t,r)=>{var n,s;return h(),x("div",Ps,[g("span",Ms,B(((s=(n=t.params)==null?void 0:n.formatValue)==null?void 0:s.call(n,t.params.value))||t.params.value),1),t.params.isPrimaryKey&&t.params.value?(h(),P(e(le),{key:0,onClick:r[0]||(r[0]=()=>{t.params.onOpenPreviewReverseTableModal(t.params.value)}),name:"hugeicons:view",class:"min-w-4 w-4! cursor-pointer hover:bg-amber-500"})):U("",!0)])}}}),Bs={class:"ag-header-cell-text items-center flex gap-0.5","data-ref":"eText"},Us={class:"text-[10px]!"},Vs={key:0,class:"ag-sort-indicator-container","data-ref":"eSortIndicator"},Ks={key:0,class:"ag-sort-indicator-icon ag-sort-ascending-icon","data-ref":"eSortAsc","aria-hidden":"true"},Qs={key:1,class:"ag-sort-indicator-icon ag-sort-descending-icon","data-ref":"eSortDesc","aria-hidden":"true"},qs=Y({__name:"CustomHeaderTable",props:{params:{}},setup(d){const t=d,r=()=>{if(!t.params.allowSorting)return;const n=t.params.sort,s=t.params.onUpdateSort;s(n==="ASC"?{order:"DESC",columnName:t.params.displayName}:n==="DESC"?{}:{order:"ASC",columnName:t.params.displayName})};return(n,s)=>(h(),x("div",{class:"ag-header-cell-label cursor-pointer","data-ref":"eLabel",role:"presentation",onClick:r},[g("span",Bs,[t.params.isPrimaryKey?(h(),P(e(le),{key:0,name:"lucide:key-round",class:"min-w-3! text-yellow-500"})):U("",!0),t.params.isForeignKey?(h(),P(e(le),{key:1,name:"lucide:key-round",class:"min-w-3!"})):U("",!0),E(" "+B(t.params.displayName)+" ",1),g("p",Us,B(t.params.dataType),1)]),n.params.sort?(h(),x("span",Vs,[n.params.sort==="ASC"?(h(),x("span",Ks,s[0]||(s[0]=[g("span",{class:"ag-icon ag-icon-asc",role:"presentation",unselectable:"on"},null,-1)]))):(h(),x("span",Qs,s[1]||(s[1]=[g("span",{class:"ag-icon ag-icon-desc",role:"presentation",unselectable:"on"},null,-1)])))])):U("",!0)]))}}),eo=Y({__name:"QuickQueryTable",props:{data:{},defaultPageSize:{},orderBy:{},foreignKeys:{},foreignKeyColumns:{},primaryKeyColumns:{},columnTypes:{},offset:{},class:{},isHaveRelationByFieldName:{type:Function},selectedColumnFieldId:{},currentTableName:{},currentSchemaName:{},selectedRows:{},isViewOnly:{type:Boolean}},emits:["onClickOutSide","update:orderBy","onSelectedRows","onOpenBackReferencedTableModal","onFocusCell","onOpenForwardReferencedTableModal"],setup(d,{expose:t,emit:r}){const n=d,s=r,v=M(n.defaultPageSize??Rt),{gridApi:i,onGridReady:u}=Xo(),p=qt("agGridRef"),l=M(),w=M();Ao(p,I=>{s("onFocusCell",void 0),s("onClickOutSide",I)});const b=M([]),f=C(()=>(n.data??[]).map((I,V)=>({[ut]:V+n.offset+1,...I}))),{handleCellMouseOverDebounced:_,handleCellMouseDown:a}=Zo({gridApi:i,gridRef:p}),y=C(()=>new Map(n.columnTypes.map(I=>[I.name,I]))),c=I=>{var K;const V=((K=y.value.get(I))==null?void 0:K.type)||"";return["object","json","jsonb"].includes(V)},S=I=>{var q,ue,X;const{colDef:V,newValue:K,rowIndex:$}=I,R=Number($),D=V.field,A=c(D??""),F=((q=y.value.get(D??""))==null?void 0:q.type)||"";if(R!==null&&D){const te=(X=(ue=n==null?void 0:n.data)==null?void 0:ue[R])==null?void 0:X[D];let se=te!==K;A&&(se=JSON.stringify(te)!==JSON.stringify(K));const Se=b.value.some(L=>L.rowId===R),k=Ds({fieldType:F,isObjectColumn:A,value:K});if(se&&!Se){b.value.push({rowId:R,changedData:{[D]:k}});return}se?b.value=b.value.map(L=>L.rowId===R?{...L,changedData:{...L.changedData,[D]:k}}:L):b.value=b.value.map(L=>{if(L.rowId!==R)return L;const Q={...L.changedData};return delete Q[D],{...L,changedData:Q}}).filter(L=>L.isNewRow||Object.keys(L.changedData).length>0)}},N=C(()=>{var R;if(!((R=n.columnTypes)!=null&&R.length))return[];const I=[];I.push({colId:ut,headerName:sa,field:ut,filter:!1,resizable:!0,editable:!1,sortable:!1,type:"indexColumn",headerComponentParams:{allowSorting:!1},pinned:"left",width:aa});const V=new Set(n.primaryKeyColumns),K=new Set(n.foreignKeyColumns),$=new Map(n.foreignKeys.map(D=>[D.column,D]));return n.columnTypes.forEach(({name:D,type:A})=>{const F=D,q=n.orderBy.columnName===F?n.orderBy.order:void 0,ue=V.has(F),X=K.has(F),te=$.get(F),se=n.isHaveRelationByFieldName(F),Se=ue&&se||X&&te,k=["json","jsonb"].includes(A),L={headerName:F,field:F,colId:F,filter:!1,resizable:!0,editable:!0,sortable:!1,type:"editableColumn",headerComponentParams:{allowSorting:!0,sort:q,onUpdateSort:Q=>{s("update:orderBy",Q)},fieldId:F,isPrimaryKey:ue,isForeignKey:X},cellRenderer:Se?Ls:void 0,cellRendererParams:{isPrimaryKey:Se,onOpenPreviewReverseTableModal:Q=>{X&&te?s("onOpenForwardReferencedTableModal",{id:Q,tableName:te.referenced_table,columnName:te.referenced_column,schemaName:te.referenced_table_schema}):s("onOpenBackReferencedTableModal",{id:Q,columnName:F,tableName:n.currentTableName,schemaName:n.currentSchemaName})}},cellEditorSelector:Q=>{if(k)return{component:"AgJsonCellEditor",popup:!0,popupPosition:"under"}},valueFormatter:Q=>{const ne=Q.value;return typeof ne=="number"||typeof ne=="bigint"?ne.toString():ne===null?"NULL":k?JSON.stringify(ne,null,2):ne??""},valueSetter:Q=>{if(n.isViewOnly)return!1;if(k)try{const ne=JSON.parse(Q.newValue);return Q.data[F]=ne,!0}catch(ne){return console.error(`Invalid JSON format in column ${F}:`,ne),!1}else return Q.data[F]=Q.newValue,!0}};I.push(L)}),I});function ee(I){const K=I.event.key;return["Backspace","Delete"].some(function(F){return F===K||K.toUpperCase()===F})}const ie=M({headerComponent:qs,suppressKeyboardEvent:ee}),J=M({editableColumn:{cellStyle:I=>{const V=I.colDef.colId??"";if(!V||!n.data)return;const K=c(V??""),$=Number(I.node.id??I.node.rowIndex),R=n.data[$];if(R===void 0)return{backgroundColor:"var(--color-green-100)"};const D={},A=R[V],F=I.value;(A===null||F===null)&&(D.color="var(--muted-foreground)");let q=!1;return K?q=JSON.stringify(A)!==JSON.stringify(F):q=A!==F,q?(D.backgroundColor="var(--color-orange-200)",delete D.color):D.backgroundColor="unset",D},cellClass:I=>I.column.getColId()===n.selectedColumnFieldId?"col-highlight-cell cellCenter":"cellCenter"}}),me=ea();Fe(me,I=>{var V;(V=i.value)==null||V.updateGridOptions({theme:I})});const ce=C(()=>({components:{AgJsonCellEditor:ta},paginationPageSize:v.value,rowBuffer:Fo,rowClass:"class-row-border-none",getRowStyle:V=>{if((V.node.rowIndex||0)%2===0)return{background:"var(--muted)"}},rowSelection:{mode:"multiRow",checkboxes:!1,headerCheckbox:!1,enableSelectionWithoutKeys:!1,enableClickSelection:"enableSelection",copySelectedRows:!1},theme:me.value,pagination:!1,undoRedoCellEditing:!0,undoRedoCellEditingLimit:25,animateRows:!0,onCellMouseDown:a,onCellMouseOver:_,defaultColDef:ie.value,columnTypes:J.value})),pe=()=>{if(i.value){const I=i.value.getSelectedRows();Z(I)}},Z=I=>{s("onSelectedRows",I)},ve=()=>{var V,K,$;const I=(V=i.value)==null?void 0:V.getFocusedCell();if(I){const R=(K=i.value)==null?void 0:K.getDisplayedRowAtIndex(I.rowIndex),D=I.column.getColId(),A=($=R==null?void 0:R.data)==null?void 0:$[D];s("onFocusCell",A??void 0)}},be=I=>{var V,K;(V=n.selectedRows)!=null&&V.length||(K=I==null?void 0:I.node)==null||K.setSelected(!0),l.value=I},T=I=>{w.value=I};Fe(()=>n.selectedColumnFieldId,async()=>{var I;await Le(),(I=i.value)==null||I.refreshCells({force:!0})},{flush:"post"});const O=()=>{if(!i.value)return;const I=i.value.getAllGridColumns()||[],V=(n.data||[]).slice(0,10),K=oa({columns:I,rows:V}),$=new Set(n.primaryKeyColumns),R=new Set(n.foreignKeyColumns);i.value.updateGridOptions({columnDefs:I.map(D=>{const A=D.getColDef().field,F=$.has(A),q=R.has(A),X=F||q?la:0;return{...D.getColDef(),width:K[A]+X}})})};return t({gridApi:i,editedCells:b,columnDefs:N,cellContextMenu:l,cellHeaderContextMenu:w,clearCellContextMenu:()=>{l.value=void 0,w.value=void 0}}),Rn(async()=>{var R,D,A;if(!i.value)return;await Le();const I=i.value.getState(),V=document.querySelector(".ag-body-viewport");V&&(V.scrollTop=((R=I.scroll)==null?void 0:R.top)||0);const K=((D=i.value)==null?void 0:D.getAllGridColumns())||[];let $=0;for(const F of K){if($>=(((A=I.scroll)==null?void 0:A.left)||0)){i.value.ensureColumnVisible(F.getColId(),"start");break}$+=F.getActualWidth()}}),(I,V)=>(h(),P(e(na),{onSelectionChanged:pe,onCellValueChanged:S,onGridReady:e(u),onCellFocused:ve,onRowDataUpdated:O,onCellContextMenu:be,onColumnHeaderContextMenu:T,class:De(n.class),"grid-options":e(ce),columnDefs:e(N),rowData:e(f),ref_key:"agGridRef",ref:p},null,8,["onGridReady","class","grid-options","columnDefs","rowData"]))}}),We=320,Cn=34,zs=24,nt=d=>d<=0?Cn:Math.min(We,Cn+d*zs),js={class:"relative"},Hs={key:0,class:"p-2"},Ws={key:2,class:"flex items-center justify-center py-6"},Gs=Y({__name:"IndexesTab",props:{schema:{},tableName:{},connectionId:{}},setup(d){const t=d,r=["index_name","method","is_unique","is_primary","definition"],n=qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=M(null),i=Ie(),u=C(()=>t.connectionId?i.connections.find(a=>a.id===t.connectionId):i.selectedConnection),{data:p,status:l}=Ne("/api/tables/indexes",{method:"POST",body:C(()=>({...we(u.value),schema:t.schema,table:t.tableName})),key:`indexes-${s.value}`,getCachedData:()=>{const a=n.indexesMap[s.value];return a!=null&&a.length?a:void 0},onResponse({response:a}){a._data&&(n.indexesMap[s.value]=a._data)},onResponseError({response:a}){var y;v.value=((y=a._data)==null?void 0:y.message)||"Failed to load indexes"}},"$NyxkuxC1vx"),w=C(()=>(p.value||[]).map(a=>({index_name:a.indexName,method:a.method,is_unique:a.isUnique,is_primary:a.isPrimary,definition:a.definition}))),b=C(()=>w.value.length>0?et(w.value):tt(r)),f=C(()=>`${nt(w.value.length)}px`),_=()=>{v.value=null,ze(`indexes-${s.value}`)};return(a,y)=>{const c=Oe,S=Pe;return h(),x("div",js,[o(c,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",Hs,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[g("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:_},{default:m(()=>y[0]||(y[0]=[E("Retry")])),_:1})]),_:1})]),_:1})])):e(w).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(f)})},[o(e(Ze),{columns:e(b),data:e(w),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",Ws,[o(S,{title:"No Indexes",desc:"This table has no indexes."})])):U("",!0)])}}}),Ys={class:"relative"},Js={key:0,class:"p-2"},Xs={key:1,class:"flex items-center justify-center py-3"},Zs=Y({__name:"RlsTab",props:{schema:{},tableName:{},connectionId:{}},setup(d){const t=d,r=["policy_name","permissive","command","roles","using_expression","with_check_expression"],n=qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=M(null),i=Ie(),u=C(()=>t.connectionId?i.connections.find(y=>y.id===t.connectionId):i.selectedConnection),{data:p,status:l}=Ne("/api/tables/rls",{method:"POST",body:C(()=>({...we(u.value),schema:t.schema,table:t.tableName})),key:`rls-${s.value}`,getCachedData:()=>{const y=n.rlsMap[s.value];if(y!=null&&y.length)return{enabled:!0,policies:y}},onResponse({response:y}){var c;(c=y._data)!=null&&c.policies&&(n.rlsMap[s.value]=y._data.policies)},onResponseError({response:y}){var c;v.value=((c=y._data)==null?void 0:c.message)||"Failed to load RLS policies"}},"$EinB8Z7zho"),w=y=>{if(Array.isArray(y))return y.map(N=>String(N));if(typeof y!="string")return[];const c=y.trim();if(!c)return[];const S=c.startsWith("{")&&c.endsWith("}")?c.slice(1,-1):c;return S?S.split(",").map(N=>N.trim().replace(/^"|"$/g,"")).filter(Boolean):[]},b=C(()=>{var y;return(((y=p.value)==null?void 0:y.policies)||[]).map(c=>({policy_name:c.policyName,permissive:c.permissive,command:c.command,roles:w(c.roles).join(", ")||"—",using_expression:c.usingExpression||"—",with_check_expression:c.withCheckExpression||"—"}))}),f=C(()=>b.value.length>0?et(b.value):tt(r)),_=C(()=>`${nt(b.value.length)}px`),a=()=>{v.value=null,ze(`rls-${s.value}`)};return(y,c)=>{const S=Oe,N=Pe;return h(),x("div",Ys,[o(S,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",Js,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[g("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:a},{default:m(()=>c[0]||(c[0]=[E("Retry")])),_:1})]),_:1})]),_:1})])):e(p)?(h(),x(de,{key:1},[e(b).length?(h(),x("div",{key:0,style:Ae({maxHeight:`${e(We)}px`,height:e(_)})},[o(e(Ze),{columns:e(f),data:e(b),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",Xs,[o(N,{title:"No Policies",desc:"No RLS policies are defined for this table."})])):U("",!0)],64)):U("",!0)])}}}),el={class:"relative"},tl={key:0,class:"p-2"},nl={key:2,class:"flex items-center justify-center py-3"},ol=Y({__name:"RulesTab",props:{schema:{},tableName:{},connectionId:{}},setup(d){const t=d,r=["rule_name","event","action_type","definition"],n=qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=M(null),i=Ie(),u=C(()=>t.connectionId?i.connections.find(a=>a.id===t.connectionId):i.selectedConnection),{data:p,status:l}=Ne("/api/tables/rules",{method:"POST",body:C(()=>({...we(u.value),schema:t.schema,table:t.tableName})),key:`rules-${s.value}`,getCachedData:()=>{const a=n.rulesMap[s.value];return a!=null&&a.length?a:void 0},onResponse({response:a}){a._data&&(n.rulesMap[s.value]=a._data)},onResponseError({response:a}){var y;v.value=((y=a._data)==null?void 0:y.message)||"Failed to load rules"}},"$u5D1mSLK0A"),w=C(()=>(p.value||[]).map(a=>({rule_name:a.ruleName,event:a.event,action_type:a.actionType,definition:a.definition}))),b=C(()=>w.value.length>0?et(w.value):tt(r)),f=C(()=>`${nt(w.value.length)}px`),_=()=>{v.value=null,ze(`rules-${s.value}`)};return(a,y)=>{const c=Oe,S=Pe;return h(),x("div",el,[o(c,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",tl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[g("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:_},{default:m(()=>y[0]||(y[0]=[E("Retry")])),_:1})]),_:1})]),_:1})])):e(w).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(f)})},[o(e(Ze),{columns:e(b),data:e(w),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",nl,[o(S,{title:"No Rules",desc:"This table has no rewrite rules."})])):U("",!0)])}}}),al={class:"rounded-md border p-2.5"},sl={key:0,class:"p-2"},ll={key:1,class:"space-y-1.5"},rl={class:"flex items-center gap-1 flex-wrap"},il={class:"inline-flex items-center gap-1 rounded-md border bg-muted/20 px-1.5 py-0.5"},cl={class:"text-[11px] font-mono leading-none text-foreground"},ul={class:"flex flex-wrap gap-1"},dl={class:"text-[10px] text-muted-foreground"},ml=Y({__name:"TableMetaInfo",props:{schema:{},tableName:{},connectionId:{}},setup(d){const t=d,r={table:"Table",partitioned:"Partitioned Table",foreign:"Foreign Table"},n=M(null),s=C(()=>`${t.schema}.${t.tableName}`),v=Ie(),i=C(()=>t.connectionId?v.connections.find(f=>f.id===t.connectionId):v.selectedConnection),{data:u,status:p}=Ne("/api/tables/meta",{method:"POST",body:C(()=>({...we(i.value),schema:t.schema,tableName:t.tableName})),key:`table-meta-${s.value}`,onResponseError({response:f}){var _;n.value=((_=f._data)==null?void 0:_.message)||"Failed to load table metadata"}},"$AYAykbrhiy"),l=C(()=>{var _;const f=(_=u.value)==null?void 0:_.type;return f?r[f]??f:"Unknown"}),w=C(()=>{var f,_,a,y,c;return[{label:"Rows",value:((_=(f=u.value)==null?void 0:f.rowEstimate)==null?void 0:_.toLocaleString())??"—",mono:!0},{label:"Total",value:((a=u.value)==null?void 0:a.totalSize)||"—"},{label:"Table",value:((y=u.value)==null?void 0:y.tableSize)||"—"},{label:"Index",value:((c=u.value)==null?void 0:c.indexSize)||"—"}]}),b=()=>{n.value=null,ze(`table-meta-${s.value}`)};return(f,_)=>{const a=Oe;return h(),x("div",al,[o(a,{visible:e(p)==="pending"},null,8,["visible"]),e(n)?(h(),x("div",sl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[g("span",null,B(e(n)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:b},{default:m(()=>_[0]||(_[0]=[E("Retry")])),_:1})]),_:1})]),_:1})])):e(u)?(h(),x("div",ll,[g("div",rl,[o(e(Tt),{variant:"secondary",class:"h-5 px-1.5 text-[10px]"},{default:m(()=>[E(B(e(l)),1)]),_:1}),g("span",il,[_[1]||(_[1]=g("span",{class:"text-[10px] text-muted-foreground"}," Owner ",-1)),g("span",cl,B(e(u).owner||"—"),1)])]),g("div",ul,[(h(!0),x(de,null,ke(e(w),y=>(h(),x("div",{key:y.label,class:"inline-flex items-center gap-1 rounded-md border bg-muted/20 px-1.5 py-0.5"},[g("span",dl,B(y.label),1),g("span",{class:De(["text-[11px] leading-none text-foreground",y.mono?"font-mono":"font-medium"])},B(y.value),3)]))),128))])])):U("",!0)])}}}),pl={class:"relative"},fl={key:0,class:"p-2"},vl={key:2,class:"flex items-center justify-center py-3"},yl=Y({__name:"TriggersTab",props:{schema:{},tableName:{},connectionId:{}},setup(d){const t=d,r=["trigger_name","enabled","timing","events","orientation","definition"],n=qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=M(null),i=Ie(),u=C(()=>t.connectionId?i.connections.find(a=>a.id===t.connectionId):i.selectedConnection),{data:p,status:l}=Ne("/api/tables/triggers",{method:"POST",body:C(()=>({...we(u.value),schema:t.schema,table:t.tableName})),key:`triggers-${s.value}`,getCachedData:()=>{const a=n.triggersMap[s.value];return a!=null&&a.length?a:void 0},onResponse({response:a}){a._data&&(n.triggersMap[s.value]=a._data)},onResponseError({response:a}){var y;v.value=((y=a._data)==null?void 0:y.message)||"Failed to load triggers"}},"$S3QU21QNI4"),w=C(()=>(p.value||[]).map(a=>{var y;return{trigger_name:a.triggerName,enabled:a.enabled?"Enabled":"Disabled",timing:a.timing,events:((y=a.events)==null?void 0:y.join(", "))||"—",orientation:a.orientation,definition:a.definition}})),b=C(()=>w.value.length>0?et(w.value):tt(r)),f=C(()=>`${nt(w.value.length)}px`),_=()=>{v.value=null,ze(`triggers-${s.value}`)};return(a,y)=>{const c=Oe,S=Pe;return h(),x("div",pl,[o(c,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",fl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[g("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:_},{default:m(()=>y[0]||(y[0]=[E("Retry")])),_:1})]),_:1})]),_:1})])):e(w).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(f)})},[o(e(Ze),{columns:e(b),data:e(w),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",vl,[o(S,{title:"No Triggers",desc:"This table has no triggers."})])):U("",!0)])}}}),gl={class:"relative"},hl={key:0,class:"p-2"},bl={key:2,class:"flex items-center justify-center py-6"},_l=Y({__name:"ViewDependencies",props:{schema:{},viewName:{},connectionId:{}},setup(d){const t=d,r=["depends_on"],n=M(null),s=C(()=>`${t.schema}.${t.viewName}`),v=Ie(),i=C(()=>t.connectionId?v.connections.find(_=>_.id===t.connectionId):v.selectedConnection),{data:u,status:p}=Ne("/api/views/dependencies",{method:"POST",body:C(()=>({...we(i.value),schema:t.schema,viewName:t.viewName})),key:`view-deps-${s.value}`,onResponseError({response:_}){var a;n.value=((a=_._data)==null?void 0:a.message)||"Failed to load dependencies"}},"$jEYg_hmjWR"),l=C(()=>(u.value||[]).map(_=>({depends_on:_.dependsOn}))),w=C(()=>l.value.length>0?et(l.value):tt(r)),b=C(()=>`${nt(l.value.length)}px`),f=()=>{n.value=null,ze(`view-deps-${s.value}`)};return(_,a)=>{const y=Oe,c=Pe;return h(),x("div",gl,[o(y,{visible:e(p)==="pending"},null,8,["visible"]),e(n)?(h(),x("div",hl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[g("span",null,B(e(n)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:f},{default:m(()=>a[0]||(a[0]=[E("Retry")])),_:1})]),_:1})]),_:1})])):e(l).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(b)})},[o(e(Ze),{columns:e(w),data:e(l),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(p)!=="pending"?(h(),x("div",bl,[o(c,{title:"No Dependencies",desc:"This view has no upstream dependencies."})])):U("",!0)])}}}),wl={class:"relative"},Cl={key:0,class:"p-2"},Sl={key:2,class:"flex items-center justify-center py-6"},xl=Y({__name:"ViewIndexesTab",props:{schema:{},viewName:{},connectionId:{}},setup(d){const t=d,r=["index_name","method","is_unique","definition"],n=M(null),s=C(()=>`${t.schema}.${t.viewName}`),v=Ie(),i=C(()=>t.connectionId?v.connections.find(_=>_.id===t.connectionId):v.selectedConnection),{data:u,status:p}=Ne("/api/views/indexes",{method:"POST",body:C(()=>({...we(i.value),schema:t.schema,viewName:t.viewName})),key:`view-indexes-${s.value}`,onResponseError({response:_}){var a;n.value=((a=_._data)==null?void 0:a.message)||"Failed to load indexes"}},"$44YnrMDjVX"),l=C(()=>(u.value||[]).map(_=>({index_name:_.indexName,method:_.method,is_unique:_.isUnique,definition:_.definition}))),w=C(()=>l.value.length>0?et(l.value):tt(r)),b=C(()=>`${nt(l.value.length)}px`),f=()=>{n.value=null,ze(`view-indexes-${s.value}`)};return(_,a)=>{const y=Oe,c=Pe;return h(),x("div",wl,[o(y,{visible:e(p)==="pending"},null,8,["visible"]),e(n)?(h(),x("div",Cl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[g("span",null,B(e(n)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:f},{default:m(()=>a[0]||(a[0]=[E("Retry")])),_:1})]),_:1})]),_:1})])):e(l).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(b)})},[o(e(Ze),{columns:e(w),data:e(l),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(p)!=="pending"?(h(),x("div",Sl,[o(c,{title:"No Indexes",desc:"This materialized view has no indexes."})])):U("",!0)])}}}),Nl={class:"rounded-md border p-2.5 relative"},Tl={key:0,class:"p-2"},Rl={key:1,class:"space-y-1.5"},$l={class:"flex items-center gap-1 flex-wrap"},Il={key:0,class:"flex flex-wrap gap-1"},kl={class:"text-[10px] text-muted-foreground"},Ol=Y({__name:"ViewMetaInfo",props:{schema:{},viewName:{},connectionId:{}},setup(d){const t=d,r=qe(),n=C(()=>`${t.schema}.${t.viewName}`),s=M(null),v=Ie(),i=C(()=>t.connectionId?v.connections.find(a=>a.id===t.connectionId):v.selectedConnection),{data:u,status:p}=Ne("/api/views/meta",{method:"POST",body:C(()=>({...we(i.value),schema:t.schema,viewName:t.viewName})),key:`view-meta-${n.value}`,getCachedData:()=>r.viewMetaMap[n.value]??void 0,onResponse({response:a}){a._data&&(r.viewMetaMap[n.value]=a._data)},onResponseError({response:a}){var y;s.value=((y=a._data)==null?void 0:y.message)||"Failed to load view metadata"}},"$pLysS3IkaY"),l=C(()=>{var a;return((a=u.value)==null?void 0:a.type)==="materialized"}),w=C(()=>l.value?"Materialized View":"Normal View"),b=C(()=>{var a,y,c,S;return l.value?{variant:(c=u.value)!=null&&c.isPopulated?"default":"destructive",label:`Populated: ${(S=u.value)!=null&&S.isPopulated?"Yes":"No"}`}:{variant:(a=u.value)!=null&&a.isUpdatable?"default":"outline",label:`Updatable: ${(y=u.value)!=null&&y.isUpdatable?"Yes":"No"}`}}),f=C(()=>{var a,y,c,S,N;return l.value?[{label:"Rows",value:((y=(a=u.value)==null?void 0:a.rowEstimate)==null?void 0:y.toLocaleString())??"—",mono:!0},{label:"Total",value:((c=u.value)==null?void 0:c.totalSize)??"—"},{label:"Table",value:((S=u.value)==null?void 0:S.tableSize)??"—"},{label:"Index",value:((N=u.value)==null?void 0:N.indexSize)??"—"}]:[]}),_=()=>{s.value=null,ze(`view-meta-${n.value}`)};return(a,y)=>{const c=Oe;return h(),x("div",Nl,[o(c,{visible:e(p)==="pending"},null,8,["visible"]),e(s)?(h(),x("div",Tl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[g("span",null,B(e(s)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:_},{default:m(()=>y[0]||(y[0]=[E("Retry")])),_:1})]),_:1})]),_:1})])):e(u)?(h(),x("div",Rl,[g("div",$l,[o(e(Tt),{variant:"secondary",class:"h-5 px-1.5 text-[10px]"},{default:m(()=>[E(B(e(w)),1)]),_:1}),o(e(Tt),{variant:e(b).variant,class:"h-5 px-1.5 text-[10px]"},{default:m(()=>[E(B(e(b).label),1)]),_:1},8,["variant"])]),e(f).length?(h(),x("div",Il,[(h(!0),x(de,null,ke(e(f),S=>(h(),x("div",{key:S.label,class:"inline-flex items-center gap-1 rounded-md border bg-muted/20 px-1.5 py-0.5"},[g("span",kl,B(S.label),1),g("span",{class:De(["text-[11px] leading-none text-foreground",S.mono?"font-mono":"font-medium"])},B(S.value),3)]))),128))])):U("",!0)])):U("",!0)])}}}),El=Y({__name:"VirtualTableDefinition",props:{schema:{},connectionId:{},viewName:{},viewId:{}},setup(d){const t=d,r=Ie(),n=C(()=>t.connectionId?r.connections.find(u=>u.id===t.connectionId):r.selectedConnection),{data:s,status:v}=Ne("/api/views/definition",{method:"POST",body:C(()=>({...we(n.value),viewId:t.viewId,schemaName:t.schema,viewName:t.viewName})),key:`${t.schema}.${t.viewId}`},"$ssZRsSgd3z"),i=C(()=>{var u;return(u=s.value)!=null&&u.definition?_a(s.value.definition):""});return(u,p)=>{const l=Oe,w=Et,b=Pe;return h(),x("div",{key:`${t.viewId}-${t.viewName}-${t.schema}`,class:"relative"},[o(l,{visible:e(v)==="pending"},null,8,["visible"]),e(i)?(h(),P(w,{key:0,code:e(i),"show-copy-button":"","max-height":"24rem"},null,8,["code"])):e(v)!=="pending"?(h(),P(b,{key:1,title:"No Definition",desc:"No SQL definition is available for this view."})):U("",!0)])}}}),Al={class:"h-full overflow-y-auto p-1.5"},Fl={class:"space-y-3 pb-2"},Dl={key:0,class:"space-y-1"},Pl={key:1,class:"space-y-1"},Ml={class:"space-y-1"},Ll={class:"space-y-1"},Bl={class:"rounded-md border"},Ul={class:"space-y-1"},Vl={class:"flex items-center gap-2"},Kl={class:"rounded-md border"},Ql={class:"space-y-1"},ql={class:"rounded-md border"},zl={class:"space-y-1"},jl={class:"rounded-md border"},Hl={key:0,class:"space-y-1"},Wl={key:1,class:"space-y-1"},Gl={class:"rounded-md border"},Yl={class:"space-y-1"},Jl={class:"rounded-md border"},to=Y({__name:"StructureTable",props:{schema:{},tableName:{},connectionId:{},isVirtualTable:{type:Boolean},virtualTableId:{}},setup(d){const t=d,r=["column_name","data_type","is_nullable","default_value","foreign_keys","on_update","on_delete","column_comment"],n=Ie(),s=C(()=>t.connectionId?n.connections.find(a=>a.id===t.connectionId):n.selectedConnection),{data:v,status:i}=Ne("/api/tables/structure",{method:"POST",body:C(()=>({...we(s.value),schema:t.schema,tableName:t.tableName})),key:`${t.schema}.${t.tableName}`},"$ALIsatagCk"),u=C(()=>{const a=v.value||[];return a.length>0?et(a):tt(r)}),p=qe(),l=C(()=>`${t.schema}.${t.tableName}`),{data:w}=Ne("/api/tables/rls",{method:"POST",body:C(()=>({...we(s.value),schema:t.schema,table:t.tableName})),key:`rls-${l.value}`,immediate:!t.isVirtualTable},"$SfWGG2Nw15"),{data:b}=Ne("/api/views/meta",{method:"POST",body:C(()=>({...we(s.value),schema:t.schema,viewName:t.tableName})),key:`view-meta-struct-${l.value}`,immediate:!!t.isVirtualTable,getCachedData:()=>{if(t.isVirtualTable)return p.viewMetaMap[l.value]},onResponse({response:a}){a._data&&t.isVirtualTable&&(p.viewMetaMap[l.value]=a._data)}},"$Et5thcVWGM"),f=C(()=>{var a;return((a=b.value)==null?void 0:a.type)==="materialized"}),_=C(()=>{const a=(v.value||[]).length;return`${nt(a)}px`});return(a,y)=>{const c=Oe;return h(),x("div",Al,[g("div",Fl,[a.isVirtualTable?(h(),x("section",Pl,[y[1]||(y[1]=g("div",null,[g("h3",{class:"text-sm font-medium"},"Meta Info"),g("p",{class:"text-xs text-muted-foreground"}," View type and storage metadata ")],-1)),o(Ol,{connectionId:a.connectionId,schema:a.schema,viewName:a.tableName},null,8,["connectionId","schema","viewName"])])):(h(),x("section",Dl,[y[0]||(y[0]=g("div",null,[g("h3",{class:"text-sm font-medium"},"Meta Info"),g("p",{class:"text-xs text-muted-foreground"}," Table type and storage metadata ")],-1)),o(ml,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])),g("section",Ml,[y[2]||(y[2]=g("div",null,[g("h3",{class:"text-sm font-medium"},"Columns"),g("p",{class:"text-xs text-muted-foreground"}," Table column structure and constraints ")],-1)),g("div",{class:"relative",style:Ae({maxHeight:`${e(We)}px`,height:e(_)})},[o(c,{visible:e(i)==="pending"},null,8,["visible"]),o(e(Ze),{columns:e(u),data:e(v)||[],class:"h-full border rounded-md",columnKeyBy:"field"},null,8,["columns","data"])],4)]),a.isVirtualTable?(h(),x(de,{key:3},[a.virtualTableId?(h(),x("section",Hl,[y[8]||(y[8]=g("div",null,[g("h3",{class:"text-sm font-medium"},"Definition"),g("p",{class:"text-xs text-muted-foreground"},"View SQL definition")],-1)),o(El,{connectionId:a.connectionId,schema:a.schema,viewName:a.tableName,viewId:a.virtualTableId},null,8,["connectionId","schema","viewName","viewId"])])):U("",!0),e(f)?(h(),x("section",Wl,[y[9]||(y[9]=g("div",null,[g("h3",{class:"text-sm font-medium"},"Indexes"),g("p",{class:"text-xs text-muted-foreground"}," Indexes on materialized view ")],-1)),g("div",Gl,[o(xl,{schema:a.schema,viewName:a.tableName,connectionId:a.connectionId},null,8,["schema","viewName","connectionId"])])])):U("",!0),g("section",Yl,[y[10]||(y[10]=g("div",null,[g("h3",{class:"text-sm font-medium"},"Dependencies"),g("p",{class:"text-xs text-muted-foreground"}," Objects referenced by this view ")],-1)),g("div",Jl,[o(_l,{schema:a.schema,viewName:a.tableName,connectionId:a.connectionId},null,8,["schema","viewName","connectionId"])])])],64)):(h(),x(de,{key:2},[g("section",Ll,[y[3]||(y[3]=g("div",null,[g("h3",{class:"text-sm font-medium"},"Indexes"),g("p",{class:"text-xs text-muted-foreground"}," Available indexes and definitions ")],-1)),g("div",Bl,[o(Gs,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])]),g("section",Ul,[g("div",null,[g("div",Vl,[y[4]||(y[4]=g("h3",{class:"text-sm font-medium"},"RLS",-1)),e(w)?(h(),P(e(Tt),{key:0,variant:e(w).enabled?"default":"secondary",class:"h-5 px-1.5 text-[10px]"},{default:m(()=>[E(B(e(w).enabled?"Enabled":"Disabled"),1)]),_:1},8,["variant"])):U("",!0)]),y[5]||(y[5]=g("p",{class:"text-xs text-muted-foreground"}," Row-level security status and policies ",-1))]),g("div",Kl,[o(Zs,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])]),g("section",Ql,[y[6]||(y[6]=g("div",null,[g("h3",{class:"text-sm font-medium"},"Rules"),g("p",{class:"text-xs text-muted-foreground"}," Rewrite rules configured on this table ")],-1)),g("div",ql,[o(ol,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])]),g("section",zl,[y[7]||(y[7]=g("div",null,[g("h3",{class:"text-sm font-medium"},"Triggers"),g("p",{class:"text-xs text-muted-foreground"}," Trigger status and trigger definitions ")],-1)),g("div",jl,[o(yl,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])])],64))])])}}}),Xl={class:"px-2"},Zl={class:"px-2"},er={class:"flex-1 overflow-hidden px-2 mb-0.5"},tr={key:1,class:"h-full"},no=Y({__name:"ReferencedTable",props:{tableName:{},schemaName:{},initFilters:{},connectionId:{},workspaceId:{}},emits:["onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal"],setup(d,{emit:t}){const r=d,n=M(),s=t,{quickQueryFilterRef:v,quickQueryTableRef:i,selectedRows:u,focusedCell:p}=zn(),l=ft(),w=Ie(),{onRequestSafeModeConfirm:b,onSafeModeCancel:f,onSafeModeConfirm:_,safeModeDialogOpen:a,safeModeDialogSql:y,safeModeDialogType:c}=Yn(),S=C(()=>w.connections.find(oe=>oe.id===r.connectionId)),{columnNames:N,foreignKeys:ee,primaryKeyColumns:ie,tableMetaData:J,columnTypes:me,foreignKeyColumns:ce}=Wn({tableName:r.tableName,schemaName:r.schemaName,connectionId:r.connectionId,tabViewType:St.TableDetail}),{onApplyNewFilter:pe,data:Z,baseQueryString:ve,refreshTableData:be,refreshCount:T,isAllowNextPage:O,isAllowPreviousPage:H,onNextPage:I,onPreviousPage:V,onUpdatePagination:K,totalRows:$,pagination:R,errorMessage:D,openErrorModal:A,orderBy:F,onUpdateOrderBy:q,addHistoryLog:ue,filters:X,isShowFilters:te,composeWith:se,onChangeComposeWith:Se,isFetchingTableData:k}=qn({connection:S,primaryKeys:ie,columns:N,connectionId:C(()=>r.connectionId),workspaceId:C(()=>r.workspaceId),tableName:r.tableName,schemaName:r.schemaName,isPersist:!1,initFilters:(r==null?void 0:r.initFilters)||[],initComposeWith:mt.OR});Fe(J,oe=>{oe&&(X.value=(r==null?void 0:r.initFilters)||[],T(),be())},{deep:!0,immediate:!0});const{isMutating:L,onAddEmptyRow:Q,onDiscardChanges:ne,onDeleteRows:xe,onSaveData:Te,hasEditedRows:Be,pendingChangesCount:Ue,onCopyRows:vt,onPasteRows:yt,onRefresh:gt,onSelectedRowsChange:ht,onCopySelectedCell:lt,onFocusedCellChange:$t,onDeselectAll:bt}=Hn({tableName:r.tableName,schemaName:r.schemaName,primaryKeys:ie,refreshTableData:be,columnNames:N,data:Z,addHistoryLog:ue,errorMessage:D,openErrorModal:A,selectedRows:u,pagination:R,quickQueryTableRef:i,refreshCount:T,focusedCell:p,connection:S,safeModeEnabled:xt(l,"quickQuerySafeModeEnabled"),onRequestSafeModeConfirm:b}),{quickQueryTabView:Me,openedQuickQueryTab:_t}=Gn(),{onAddFilterByContextCell:wt}=jn({quickQueryFilterRef:v,quickQueryTableRef:i,filters:X,onApplyNewFilter:pe}),{isHaveRelationByFieldName:It}=Ht({schemaName:r.schemaName,tableName:r.tableName});return pt([{key:"meta+a",callback:()=>{var oe,ae;(ae=(oe=i.value)==null?void 0:oe.gridApi)==null||ae.selectAll()},excludeInput:!0,isPreventDefault:!0},{key:"meta+c",callback:()=>{lt()},excludeInput:!0},{key:"meta+v",callback:()=>yt(),excludeInput:!0},{key:"meta+s",callback:()=>Te(),isPreventDefault:!0},{key:"meta+alt+backspace",callback:()=>{xe()},isPreventDefault:!0}],{target:n}),(oe,ae)=>{var Ge,rt;return h(),x(de,null,[o(Mn,{open:e(A),"onUpdate:open":ae[0]||(ae[0]=fe=>Ee(A)?A.value=fe:null),message:e(D)||""},null,8,["open","message"]),o(Ln,{open:e(a),"onUpdate:open":ae[1]||(ae[1]=fe=>Ee(a)?a.value=fe:null),sql:e(y),type:e(c),onConfirm:e(_),onCancel:e(f)},null,8,["open","sql","type","onConfirm","onCancel"]),g("div",{ref_key:"containerRef",ref:n,class:"flex flex-col h-full w-full relative",tabindex:"0"},[o(e(Oe),{visible:e(L)||e(k)},null,8,["visible"]),g("div",Xl,[o(Jn,{"total-selected-rows":(Ge=e(u))==null?void 0:Ge.length,isAllowNextPage:e(O),isAllowPreviousPage:e(H),totalRows:e($),limit:e(R).limit,currentTotalRows:((rt=e(Z))==null?void 0:rt.length)||0,offset:e(R).offset,"has-edited-rows":e(Be),"pending-changes-count":e(Ue),onOnPaginate:e(K),onOnNextPage:e(I),onOnPreviousPage:e(V),onOnRefresh:e(gt),onOnDiscardChanges:e(ne),onOnSaveData:e(Te),onOnDeleteRows:e(xe),onOnAddEmptyRow:e(Q),onOnShowFilter:ae[2]||(ae[2]=async()=>{var fe;await((fe=e(v))==null?void 0:fe.onShowSearch())}),tabView:e(Me),"onUpdate:tabView":ae[3]||(ae[3]=fe=>Ee(Me)?Me.value=fe:null)},null,8,["total-selected-rows","isAllowNextPage","isAllowPreviousPage","totalRows","limit","currentTotalRows","offset","has-edited-rows","pending-changes-count","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnDiscardChanges","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","tabView"])]),g("div",Zl,[e(Me)===e(re).Data?(h(),P(Xn,{key:0,ref_key:"quickQueryFilterRef",ref:v,onOnSearch:ae[4]||(ae[4]=()=>{e(pe)()}),onOnUpdateFilters:ae[5]||(ae[5]=fe=>{X.value=fe}),isShowFilters:e(te),"onUpdate:isShowFilters":ae[6]||(ae[6]=fe=>Ee(te)?te.value=fe:null),initFilters:e(X),baseQuery:e(ve),columns:e(N),dbType:e(_e).POSTGRES,composeWith:e(se),onOnChangeComposeWith:e(Se)},null,8,["isShowFilters","initFilters","baseQuery","columns","dbType","composeWith","onOnChangeComposeWith"])):U("",!0)]),g("div",er,[e(_t)[e(re).Erd]?Qe((h(),P(Pn,{key:0,tableId:e($n)({tableName:oe.tableName,schemaName:oe.schemaName})},null,8,["tableId"])),[[Xe,e(Me)===e(re).Erd]]):U("",!0),e(_t)[e(re).Structure]?Qe((h(),x("div",tr,[o(to,{schema:oe.schemaName,tableName:oe.tableName,connectionId:oe.connectionId},null,8,["schema","tableName","connectionId"])],512)),[[Xe,e(Me)===e(re).Structure]]):U("",!0),Qe(o(Zn,{"total-selected-rows":e(u).length,"has-edited-rows":e(Be),selectedRows:e(u),"table-name":oe.tableName,"schema-name":oe.schemaName,isReferencedTable:"",onOnPaginate:e(K),onOnNextPage:e(I),onOnPreviousPage:e(V),onOnRefresh:e(gt),onOnSaveData:e(Te),onOnDeleteRows:e(xe),onOnAddEmptyRow:e(Q),onOnFilterByValue:e(wt),onOnCopyRows:e(vt),onOnPasteRows:e(yt),onOnCopySelectedCell:e(lt)},{default:m(()=>[o(eo,{class:"h-full border rounded-md",ref_key:"quickQueryTableRef",ref:i,"selected-rows":e(u),data:e(Z)||[],orderBy:e(F),onOnSelectedRows:e(ht),"onUpdate:orderBy":e(q),onOnOpenBackReferencedTableModal:ae[7]||(ae[7]=fe=>s("onOpenBackReferencedTableModal",fe)),onOnOpenForwardReferencedTableModal:ae[8]||(ae[8]=fe=>s("onOpenForwardReferencedTableModal",fe)),isHaveRelationByFieldName:e(It),foreignKeyColumns:e(ce),foreignKeys:e(ee),primaryKeyColumns:e(ie),columnTypes:e(me),defaultPageSize:e(Rt),offset:e(R).offset,onOnFocusCell:e($t),"current-schema-name":oe.schemaName,"current-table-name":oe.tableName,onOnClickOutSide:e(bt)},null,8,["selected-rows","data","orderBy","onOnSelectedRows","onUpdate:orderBy","isHaveRelationByFieldName","foreignKeyColumns","foreignKeys","primaryKeyColumns","columnTypes","defaultPageSize","offset","onOnFocusCell","current-schema-name","current-table-name","onOnClickOutSide"])]),_:1},8,["total-selected-rows","has-edited-rows","selectedRows","table-name","schema-name","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnFilterByValue","onOnCopyRows","onOnPasteRows","onOnCopySelectedCell"]),[[Xe,e(Me)===e(re).Data]])])],512)],64)}}}),nr={class:"flex justify-between items-center gap-2 w-full"},or={class:"relative w-full"},ar={class:"flex flex-1"},sr=Y({__name:"BackReferencedTable",props:{tableName:{},schemaName:{},columnName:{},recordId:{},selectedTab:{},connectionId:{},workspaceId:{},rootSchemaName:{}},emits:["onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal","update:selectedTab"],setup(d,{emit:t}){const r=d,n=t,{reverseTables:s}=Ht({schemaName:r.schemaName,tableName:r.tableName}),v=M(""),i=C(()=>{var y;const f=new Map,_=dn((y=s.value)==null?void 0:y.used_by)||[];for(const c of _)c.referenced_column===r.columnName&&f.set(c.referencing_table,{table:c.referencing_table,schema:c.referencing_schema});let a=[...f.values()].sort((c,S)=>c.table.localeCompare(S.table));if(v.value){const c=v.value.toLowerCase();a=a.filter(S=>S.table.toLowerCase().includes(c))}return a});Sn(()=>{!r.selectedTab&&i.value.length>0&&n("update:selectedTab",i.value[0].table,i.value[0].schema)});const u=f=>{var y;if(!f)return[];const _=[],a=dn((y=s.value)==null?void 0:y.used_by)||[];for(const c of a)if(c.referencing_table===f){const S={fieldName:c.fk_column,operator:W.EQUAL,search:r.recordId,isSelect:!0};_.push(S)}return _},p=f=>{const{schemaName:_,tableName:a}=b(f);n("update:selectedTab",a,_)},l=f=>{const _=f.target;_ instanceof HTMLElement&&_.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},w=f=>`${f.schema}.${f.table}`,b=f=>{const[_,a]=f.split(".");return{schemaName:_,tableName:a}};return(f,_)=>{const a=Mt,y=Pt,c=le,S=Dt;return h(),P(S,{"model-value":w({table:f.selectedTab||"",schema:f.schemaName}),"onUpdate:modelValue":_[4]||(_[4]=N=>p(N)),class:"flex-1 flex-wrap h-full w-full"},{default:m(()=>[g("div",nr,[o(y,{class:"overflow-x-auto w-full justify-start!"},{default:m(()=>[(h(!0),x(de,null,ke(e(i),N=>(h(),P(a,{class:"cursor-pointer font-normal! flex-none!",onClick:l,value:w(N),key:w(N)},{default:m(()=>[E(B(f.rootSchemaName===N.schema?null:`${N.schema}.`)+B(N.table),1)]),_:2},1032,["value"]))),128))]),_:1}),g("div",null,[g("div",or,[o(e(st),{type:"text",placeholder:"Search tables",class:"pr-6 w-48 h-8",modelValue:e(v),"onUpdate:modelValue":_[0]||(_[0]=N=>Ee(v)?v.value=N:null)},null,8,["modelValue"]),e(v)?(h(),x("div",{key:0,class:"absolute right-2 top-1.5 w-4 cursor-pointer hover:bg-accent",onClick:_[1]||(_[1]=N=>v.value="")},[o(c,{name:"lucide:x",class:"stroke-3! text-muted-foreground"})])):U("",!0)])])]),g("div",ar,[(h(),P(In,null,[(h(),P(no,{key:f.selectedTab,tableName:f.selectedTab||"","schema-name":f.schemaName,"init-filters":u(f.selectedTab),connectionId:r.connectionId,workspaceId:r.workspaceId,onOnOpenBackReferencedTableModal:_[2]||(_[2]=N=>n("onOpenBackReferencedTableModal",N)),onOnOpenForwardReferencedTableModal:_[3]||(_[3]=N=>n("onOpenForwardReferencedTableModal",N))},null,8,["tableName","schema-name","init-filters","connectionId","workspaceId"]))],1024))])]),_:1},8,["model-value"])}}}),lr={class:"flex flex-1"},rr=Y({__name:"ForwardReferencedTable",props:{tableName:{},schemaName:{},columnName:{},recordId:{},connectionId:{},workspaceId:{}},emits:["onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal"],setup(d,{emit:t}){const r=d,n=t,s=()=>[{fieldName:r.columnName,operator:W.EQUAL,search:r.recordId,isSelect:!0}];return(v,i)=>(h(),x("div",lr,[(h(),P(no,{key:e(dt)(),tableName:v.tableName,"schema-name":v.schemaName,"init-filters":s(),connectionId:r.connectionId,workspaceId:r.workspaceId,onOnOpenBackReferencedTableModal:i[0]||(i[0]=u=>n("onOpenBackReferencedTableModal",u)),onOnOpenForwardReferencedTableModal:i[1]||(i[1]=u=>n("onOpenForwardReferencedTableModal",u))},null,8,["tableName","schema-name","init-filters","connectionId","workspaceId"]))]))}}),ir={class:"flex items-center"},cr=Y({__name:"PreviewRelationTable",props:{open:{type:Boolean},breadcrumbs:{},currentTableName:{},connectionId:{},workspaceId:{},rootSchemaName:{}},emits:["onBackPreviousBreadcrumbByIndex","onBackPreviousBreadcrumb","clearBreadcrumb","onUpdateSelectedTabInBreadcrumb","onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal"],setup(d,{emit:t}){const r=t,n=d,s=C(()=>n.breadcrumbs.length?n.breadcrumbs[n.breadcrumbs.length-1]:null),v=(u,p)=>{r("onUpdateSelectedTabInBreadcrumb",n.breadcrumbs.length-1,u,p)},i=u=>u.type==="backReferenced"?n.rootSchemaName===u.schemaName?u.selectedTab:`${u.schemaName}.${u.selectedTab}`:`${u.schemaName}.${u.tableName}`;return(u,p)=>{const l=le,w=Ce,b=Uo,f=Bo,_=Lo,a=Mo,y=Po;return h(),P(e(Do),{open:u.open,"onUpdate:open":p[4]||(p[4]=c=>u.$emit("clearBreadcrumb"))},{default:m(()=>[o(e(qo),{class:"w-[98dvw]! max-w-[98dvw]! max-h-[95dvh] h-[95dvh] gap-1 p-3 flex flex-col flex-1 flex-wrap overflow-hidden"},{default:m(()=>{var c;return[o(y,null,{default:m(()=>[o(a,null,{default:m(()=>[g("div",ir,[o(w,{onClick:p[0]||(p[0]=S=>u.$emit("onBackPreviousBreadcrumb")),size:"iconMd",variant:"secondary"},{default:m(()=>[o(l,{name:"hugeicons:arrow-left-02",class:"size-4!"})]),_:1}),o(_,null,{default:m(()=>[o(f,{class:"gap-0.5!"},{default:m(()=>[o(e(mn),{class:"hover:cursor-pointer"},{default:m(()=>[o(e(fn),{onClick:p[1]||(p[1]=S=>r("clearBreadcrumb"))},{default:m(()=>[E(B(u.currentTableName),1)]),_:1})]),_:1}),o(b),(h(!0),x(de,null,ke(u.breadcrumbs,(S,N)=>(h(),x(de,null,[o(e(mn),{class:De([N!==u.breadcrumbs.length-1&&"hover:cursor-pointer"])},{default:m(()=>[N===u.breadcrumbs.length-1?(h(),P(e(Vo),{key:0},{default:m(()=>[E(B(i(S)),1)]),_:2},1024)):(h(),P(e(fn),{key:1,onClick:ee=>r("onBackPreviousBreadcrumbByIndex",N)},{default:m(()=>[E(B(i(S)),1)]),_:2},1032,["onClick"]))]),_:2},1032,["class"]),N<u.breadcrumbs.length-1?(h(),P(b,{key:0})):U("",!0)],64))),256))]),_:1})]),_:1})])]),_:1})]),_:1}),(h(),P(In,null,[e(s)?(h(),P(Ko(((c=e(s))==null?void 0:c.type)==="backReferenced"?sr:rr),Qo({key:e(s).id},{columnName:e(s).columnName,recordId:e(s).recordId,schemaName:e(s).schemaName,tableName:e(s).tableName,selectedTab:e(s).selectedTab,connectionId:n.connectionId,workspaceId:n.workspaceId,rootSchemaName:n.rootSchemaName},{onOnOpenBackReferencedTableModal:p[2]||(p[2]=S=>r("onOpenBackReferencedTableModal",S)),onOnOpenForwardReferencedTableModal:p[3]||(p[3]=S=>r("onOpenForwardReferencedTableModal",S)),"onUpdate:selectedTab":v}),null,16)):U("",!0)],1024))]}),_:1})]),_:1},8,["open"])}}}),ur=["innerHTML"],dr=Y({__name:"QuickQueryHistoryLogItem",props:{log:{},highlighter:{}},setup(d){const t=d,r=M("");return Fe([()=>t.log,()=>t.highlighter],async()=>{const n=(t.log||"").trim();t.highlighter&&(r.value=t.highlighter.codeToHtml(n,{lang:"plsql",theme:"catppuccin-latte"}))},{immediate:!0}),(n,s)=>(h(),x("div",{class:"[&_code]:text-wrap w-full [&>.catppuccin-latte]:bg-background!",innerHTML:r.value},null,8,ur))}}),mr={class:"flex flex-1 flex-col h-full"},pr={class:"flex flex-1 h-full items-center justify-between"},fr={class:"flex items-center gap-1"},vr={key:0,class:"flex items-center justify-center h-full w-full"},yr=["data-index"],gr={class:"pb-2 leading-relaxed text-xs"},hr={class:"text-[10px]"},br={class:"text-[10px]"},_r=Y({__name:"QuickQueryHistoryLogsPanel",props:{tableName:{},schemaName:{}},setup(d){const t=d,r=M("all"),n=Bn(),{qqLogs:s}=Ft(n),v=C(()=>r.value==="all"?s.value:n.getLogsByTableId(t)),i=qt("wrapperRef"),{height:u}=zo(i),p=M(null),l=jo({get count(){return v.value.length},getScrollElement:()=>p.value,estimateSize:()=>39}),w=C(()=>l.value.getVirtualItems()),b=C(()=>l.value.getTotalSize()),f=y=>{y&&l.value.measureElement(y)},_=y=>new Date(y).toLocaleString(),a=M();return Ho(async()=>{const y=wa({themes:[xa],langs:[Sa],engine:Ca()});a.value=await y}),Wo(async()=>{l.value&&(await Le(),l.value.scrollToIndex(v.value.length-1))}),Fe(()=>v.value,async()=>{l.value&&(await Le(),l.value.scrollToIndex(v.value.length-1))},{deep:!0}),(y,c)=>{const S=Mt,N=Pt,ee=Dt,ie=le,J=Ce,me=Pe,ce=kn,pe=On;return h(),x("div",mr,[g("div",pr,[o(ee,{modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=Z=>r.value=Z),class:"pt-1"},{default:m(()=>[o(N,{class:"h-7!"},{default:m(()=>[o(S,{value:"all",class:"h-5! font-medium text-xs cursor-pointer text-primary/80"},{default:m(()=>c[2]||(c[2]=[E(" All logs ")])),_:1},8,["value"]),o(S,{value:"one-table",class:"h-5! font-medium text-xs cursor-pointer text-primary/80"},{default:m(()=>c[3]||(c[3]=[E(" Only this table ")])),_:1},8,["value"])]),_:1})]),_:1},8,["modelValue"]),c[8]||(c[8]=g("div",null,[g("p",{class:"font-medium text-xs"},"Logs history")],-1)),g("div",fr,[r.value==="all"?(h(),P(e(ye),{key:0},{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(J,{variant:"outline",size:"xxs",onClick:e(n).deleteAllLogs},{default:m(()=>[o(ie,{name:"lucide:trash"}),c[4]||(c[4]=g("p",{class:"font-normal"},"Delete all logs",-1))]),_:1},8,["onClick"])]),_:1}),o(e(he),null,{default:m(()=>c[5]||(c[5]=[g("p",null,"Delete all logs",-1)])),_:1})]),_:1})):(h(),P(e(ye),{key:1},{default:m(()=>[o(e(ge),{"as-child":""},{default:m(()=>[o(J,{variant:"outline",size:"xxs",onClick:c[1]||(c[1]=Z=>e(n).deleteLogsOfTable(t))},{default:m(()=>[o(ie,{name:"lucide:trash"}),c[6]||(c[6]=g("p",{class:"font-normal"},"Delete logs",-1))]),_:1})]),_:1}),o(e(he),null,{default:m(()=>c[7]||(c[7]=[g("p",null,"Delete logs for this table",-1)])),_:1})]),_:1}))])]),v.value.length?(h(),P(pe,{key:1,class:"py-0 mt-1 h-full rounded-none shadow-none border-none overflow-auto",ref_key:"wrapperRef",ref:i},{default:m(()=>[o(ce,{class:"p-0"},{default:m(()=>{var Z;return[g("div",{ref_key:"parentRef",ref:p,style:Ae({height:`${e(u)}px`}),class:"w-full overflow-y-auto contain-strict h-full"},[g("div",{style:Ae({height:`${b.value}px`,width:"100%",position:"relative"})},[g("div",{style:Ae({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${((Z=w.value[0])==null?void 0:Z.start)??0}px)`})},[(h(!0),x(de,null,ke(w.value,ve=>(h(),x("div",{key:ve.key.toString(),"data-index":ve.index,ref_for:!0,ref:f},[g("div",gr,[g("span",hr,"["+B(_(v.value[ve.index].createdAt))+"] ",1),g("span",br," : "+B(e(Na)(v.value[ve.index].queryTime||0)),1),o(dr,{highlighter:a.value,log:v.value[ve.index].logs},null,8,["highlighter","log"])])],8,yr))),128))],4)],4)],4)]}),_:1})]),_:1},512)):(h(),x("div",vr,[o(me,{title:"No logs found",desc:"There are no execution logs to display for this table."})]))])}}}),wr=({quickQueryTableRef:d})=>{const t=M(void 0),r=()=>{var v,i,u,p,l,w,b;t.value=void 0,(u=(i=(v=d.value)==null?void 0:v.gridApi)==null?void 0:i.ensureIndexVisible)==null||u.call(i,0,"top"),(l=(p=d.value)==null?void 0:p.gridApi)==null||l.refreshHeader(),(b=(w=d.value)==null?void 0:w.gridApi)==null||b.refreshCells({force:!0})},n=v=>{var i,u,p,l,w,b;v&&((u=(i=d.value)==null?void 0:i.gridApi)==null||u.ensureColumnVisible(v,"middle"),(l=(p=d.value)==null?void 0:p.gridApi)==null||l.refreshCells({force:!0}),(b=(w=d.value)==null?void 0:w.gridApi)==null||b.refreshHeader())};return{resetGridState:r,selectedColumnFieldId:t,handleSelectColumn:v=>{t.value=v,n(v)}}},Cr={class:"px-1"},Sr={class:"px-2"},xr={class:"flex-1 overflow-hidden px-1 mb-0.5"},Nr={key:1,class:"h-full"},Gr=Y({__name:"QuickQuery",props:{connectionId:{},workspaceId:{},tableName:{},schemaName:{},tabViewType:{},virtualTableId:{}},setup(d){const t=d,r=ft(),n=Ie(),s=C(()=>{const j=n.connections.find(G=>G.id===t.connectionId);return(j==null?void 0:j.connectionString)||""}),v=C(()=>t.tableName),i=C(()=>t.schemaName),u=M([]),p=M(),{onRequestSafeModeConfirm:l,onSafeModeCancel:w,onSafeModeConfirm:b,safeModeDialogOpen:f,safeModeDialogSql:_,safeModeDialogType:a}=Yn(),{quickQueryFilterRef:y,quickQueryTableRef:c,selectedRows:S,focusedCell:N}=zn(),{columnNames:ee,foreignKeys:ie,primaryKeyColumns:J,tableMetaData:me,columnTypes:ce,foreignKeyColumns:pe,isVirtualTable:Z}=Wn({tableName:v.value,schemaName:i.value,connectionId:t.connectionId,tabViewType:t.tabViewType}),{onApplyNewFilter:ve,data:be,baseQueryString:T,refreshTableData:O,refreshCount:H,isAllowNextPage:I,isAllowPreviousPage:V,onNextPage:K,onPreviousPage:$,onUpdatePagination:R,totalRows:D,pagination:A,errorMessage:F,openErrorModal:q,orderBy:ue,onUpdateOrderBy:X,addHistoryLog:te,filters:se,isShowFilters:Se,onChangeComposeWith:k,composeWith:L,isFetchingTableData:Q}=qn({connection:xt(n,"selectedConnection"),primaryKeys:J,columns:ee,connectionId:C(()=>t.connectionId),workspaceId:C(()=>t.workspaceId),tableName:v.value,schemaName:i.value});Fe(me,j=>{j!=null&&j.columns&&j.columns.length>0&&(H(),O())},{deep:!0,immediate:!0});const{isMutating:ne,onAddEmptyRow:xe,onDiscardChanges:Te,onDeleteRows:Be,onSaveData:Ue,hasEditedRows:vt,pendingChangesCount:yt,onCopyRows:gt,onPasteRows:ht,onRefresh:lt,onSelectedRowsChange:$t,onCopySelectedCell:bt,onFocusedCellChange:Me}=Hn({tableName:v.value,schemaName:i.value,primaryKeys:J,refreshTableData:O,columnNames:ee,data:be,addHistoryLog:te,errorMessage:F,openErrorModal:q,selectedRows:S,pagination:A,quickQueryTableRef:c,refreshCount:H,focusedCell:N,safeModeEnabled:xt(r,"quickQuerySafeModeEnabled"),onRequestSafeModeConfirm:l,connection:xt(n,"selectedConnection")}),{handleSelectColumn:_t,selectedColumnFieldId:wt,resetGridState:It}=wr({quickQueryTableRef:c}),{quickQueryTabView:oe,openedQuickQueryTab:ae}=Gn({onTabChanged:j=>{j!==re.Data&&r.onCloseBottomPanel()}}),Ge=M(!0);Rn(()=>{Ge.value=!0}),Go(()=>{Ge.value=!1});const rt=({id:j,tableName:G,columnName:Ve,schemaName:Ke})=>{u.value.push({id:dt(),type:"backReferenced",schemaName:Ke,tableName:G,columnName:Ve,recordId:j})},fe=({id:j,tableName:G,columnName:Ve,schemaName:Ke})=>{u.value.push({id:dt(),type:"forwardReferenced",schemaName:Ke,tableName:G,columnName:Ve,recordId:j})},{onAddFilterByContextCell:oo}=jn({quickQueryFilterRef:y,quickQueryTableRef:c,filters:se,onApplyNewFilter:ve}),{isHaveRelationByFieldName:ao}=Ht({schemaName:i.value,tableName:v.value}),ot=C(()=>u.value.length>0),kt=C(()=>Z.value);pt([{key:"meta+a",callback:()=>{var j,G;ot.value||(G=(j=c.value)==null?void 0:j.gridApi)==null||G.selectAll()},excludeInput:!0,isPreventDefault:!0},{key:"meta+c",callback:()=>{ot.value||bt()},excludeInput:!0},{key:"meta+v",callback:()=>{ot.value||ht()},excludeInput:!0},{key:"meta+s",callback:()=>{ot.value||kt.value||Ue()},isPreventDefault:!0},{key:"meta+alt+backspace",callback:()=>{ot.value||kt.value||Be()},isPreventDefault:!0}],{target:p}),pt([{key:"meta+f",callback:async()=>{var j;ot.value||await((j=y.value)==null?void 0:j.onShowSearch())}}]);const Wt=M();Fe(()=>{var j;return(j=c.value)==null?void 0:j.columnDefs},()=>{var j,G;(j=c.value)!=null&&j.columnDefs&&(Wt.value=(G=c.value)==null?void 0:G.columnDefs)},{immediate:!0,deep:!0});const so=(j,G,Ve)=>{u.value[j]&&(u.value[j].selectedTab=G,u.value[j].schemaName=Ve)},lo=()=>{u.value=[]},ro=()=>{u.value.pop()},io=j=>{const G=u.value.filter((Ve,Ke)=>Ke<=j);u.value=G};return(j,G)=>{var Ke,Gt,Yt,Jt,Xt,Zt;const Ve=Oe;return h(),x(de,null,[e(u).length?(h(),P(cr,{key:0,open:e(u).length>0,breadcrumbs:e(u),currentTableName:e(v),connectionId:j.connectionId,workspaceId:j.workspaceId,rootSchemaName:e(i),onClearBreadcrumb:lo,onOnOpenBackReferencedTableModal:rt,onOnOpenForwardReferencedTableModal:fe,onOnUpdateSelectedTabInBreadcrumb:so,onOnBackPreviousBreadcrumb:ro,onOnBackPreviousBreadcrumbByIndex:io},null,8,["open","breadcrumbs","currentTableName","connectionId","workspaceId","rootSchemaName"])):U("",!0),o(Ln,{open:e(f),"onUpdate:open":G[0]||(G[0]=$e=>Ee(f)?f.value=$e:null),sql:e(_),type:e(a),onConfirm:e(b),onCancel:e(w)},null,8,["open","sql","type","onConfirm","onCancel"]),e(Ge)?(h(),P(pn,{key:1,defer:"",to:"#preview-select-row"},[((Ke=e(S))==null?void 0:Ke.length)!==1||e(oe)!==e(re).Data?(h(),P(Ka,{key:0,"table-name":e(v),"schema-name":e(i),columns:e(Wt),columnTypes:e(ce),selectedColumnFieldId:e(wt),handleSelectColumn:e(_t),onResetSelectedCol:e(It)},null,8,["table-name","schema-name","columns","columnTypes","selectedColumnFieldId","handleSelectColumn","onResetSelectedCol"])):(h(),P(ss,{key:1,columnTypes:e(ce),selectedRow:(Gt=e(S))!=null&&Gt.length?e(S)[0]:null},null,8,["columnTypes","selectedRow"]))])):U("",!0),e(Ge)?(h(),P(pn,{key:2,defer:"",to:"#bottom-panel"},[o(_r,{tableName:e(v),"schema-name":e(i)},null,8,["tableName","schema-name"])])):U("",!0),o(Mn,{open:e(q),"onUpdate:open":G[1]||(G[1]=$e=>Ee(q)?q.value=$e:null),message:e(F)||""},null,8,["open","message"]),g("div",{ref_key:"containerRef",ref:p,class:"flex flex-col h-full w-full relative",tabindex:"0"},[o(Ve,{visible:e(ne)||e(Q)},null,8,["visible"]),g("div",Cr,[o(Jn,{"total-selected-rows":(Yt=e(S))==null?void 0:Yt.length,isAllowNextPage:e(I),isAllowPreviousPage:e(V),totalRows:e(D),limit:e(A).limit,currentTotalRows:((Jt=e(be))==null?void 0:Jt.length)||0,offset:e(A).offset,"has-edited-rows":e(vt),"pending-changes-count":e(yt),isViewVirtualTable:e(Z),onOnPaginate:e(R),onOnNextPage:e(K),onOnPreviousPage:e($),onOnRefresh:e(lt),onOnDiscardChanges:e(Te),onOnSaveData:e(Ue),onOnDeleteRows:e(Be),onOnAddEmptyRow:e(xe),onOnShowFilter:G[2]||(G[2]=()=>{var $e;($e=e(y))==null||$e.onShowSearch()}),onOnToggleHistoryPanel:e(r).onToggleBottomPanel,tabView:e(oe),"onUpdate:tabView":G[3]||(G[3]=$e=>Ee(oe)?oe.value=$e:null)},null,8,["total-selected-rows","isAllowNextPage","isAllowPreviousPage","totalRows","limit","currentTotalRows","offset","has-edited-rows","pending-changes-count","isViewVirtualTable","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnDiscardChanges","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnToggleHistoryPanel","tabView"])]),g("div",Sr,[e(oe)===e(re).Data?(h(),P(Xn,{key:0,ref_key:"quickQueryFilterRef",ref:y,onOnSearch:G[4]||(G[4]=()=>{e(ve)()}),onOnUpdateFilters:G[5]||(G[5]=$e=>{se.value=$e}),isShowFilters:e(Se),"onUpdate:isShowFilters":G[6]||(G[6]=$e=>Ee(Se)?Se.value=$e:null),initFilters:e(se),baseQuery:e(T),columns:e(ee),dbType:e(_e).POSTGRES,composeWith:e(L),onOnChangeComposeWith:e(k)},null,8,["isShowFilters","initFilters","baseQuery","columns","dbType","composeWith","onOnChangeComposeWith"])):U("",!0)]),g("div",xr,[e(ae)[e(re).Erd]?Qe((h(),P(Pn,{key:0,tableId:e($n)({tableName:e(v),schemaName:e(i)})},null,8,["tableId"])),[[Xe,e(oe)===e(re).Erd]]):U("",!0),e(ae)[e(re).Structure]?Qe((h(),x("div",Nr,[o(to,{isVirtualTable:e(Z),schema:e(i),tableName:e(v),connectionString:e(s),virtualTableId:t.virtualTableId},null,8,["isVirtualTable","schema","tableName","connectionString","virtualTableId"])],512)),[[Xe,e(oe)===e(re).Structure]]):U("",!0),Qe(o(Zn,{data:e(be),"total-selected-rows":e(S).length,"has-edited-rows":e(vt),cellContextMenu:(Xt=e(c))==null?void 0:Xt.cellContextMenu,cellHeaderContextMenu:(Zt=e(c))==null?void 0:Zt.cellHeaderContextMenu,selectedRows:e(S),"table-name":e(v),"schema-name":e(i),onOnClearContextMenu:G[7]||(G[7]=$e=>{var en;return(en=e(c))==null?void 0:en.clearCellContextMenu()}),onOnPaginate:e(R),onOnNextPage:e(K),onOnPreviousPage:e($),onOnRefresh:e(lt),onOnSaveData:e(Ue),onOnDeleteRows:e(Be),onOnAddEmptyRow:e(xe),onOnFilterByValue:e(oo),onOnCopyRows:e(gt),onOnPasteRows:e(ht),onOnCopySelectedCell:e(bt)},{default:m(()=>[o(eo,{class:"h-full border rounded-md",ref_key:"quickQueryTableRef",ref:c,"selected-rows":e(S),data:e(be)||[],orderBy:e(ue),onOnSelectedRows:e($t),"onUpdate:orderBy":e(X),onOnOpenBackReferencedTableModal:rt,onOnOpenForwardReferencedTableModal:fe,isHaveRelationByFieldName:e(ao),foreignKeyColumns:e(pe),foreignKeys:e(ie),primaryKeyColumns:e(J),columnTypes:e(ce),defaultPageSize:e(Rt),offset:e(A).offset,onOnFocusCell:e(Me),selectedColumnFieldId:e(wt),"current-schema-name":e(i),"current-table-name":e(v),isViewOnly:e(kt)},null,8,["selected-rows","data","orderBy","onOnSelectedRows","onUpdate:orderBy","isHaveRelationByFieldName","foreignKeyColumns","foreignKeys","primaryKeyColumns","columnTypes","defaultPageSize","offset","onOnFocusCell","selectedColumnFieldId","current-schema-name","current-table-name","isViewOnly"])]),_:1},8,["data","total-selected-rows","has-edited-rows","cellContextMenu","cellHeaderContextMenu","selectedRows","table-name","schema-name","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnFilterByValue","onOnCopyRows","onOnPasteRows","onOnCopySelectedCell"]),[[Xe,e(oe)===e(re).Data]])])],512)],64)}}});export{Gr as default};
@@ -1 +0,0 @@
1
- import{d as v,ah as h,ai as w,aj as S,c as o,D as C,e as b,o as y,f as i,g as n,J as g}from"./4by6-f6q.js";import{b as I,a as V}from"./BVmBXPoG.js";import{u as E}from"./C5bgdIOp.js";import{_ as O}from"./BqyO8OjC.js";import"./Bdtn2mn5.js";const M={class:"h-full relative p-1"},k=v({__name:"ViewOverview",props:{connectionId:{}},setup(m){const l=["name","schema","type","owner","comment"],t=m,s=h(),u=w(),{schemaId:a}=S(u),d=o(()=>t.connectionId?s.connections.find(e=>e.id===t.connectionId):s.selectedConnection),c=o(()=>({...C(d.value),schema:a.value})),{data:r,status:p}=E("/api/views/overview",{method:"POST",body:c,watch:[a,c]},"$Vc52vsyWw1"),f=o(()=>{const e=r.value||[];return e.length>0?I(e):V(l)});return(e,W)=>{const _=g;return y(),b("div",M,[i(_,{visible:n(p)==="pending"},null,8,["visible"]),i(n(O),{columns:n(f),data:n(r)||[],class:"h-full border rounded-md",columnKeyBy:"field"},null,8,["columns","data"])])}}});export{k as default};
@@ -1 +0,0 @@
1
- import{d as h,ah as v,ai as S,aj as b,c as o,D as w,e as C,o as g,f as i,g as n,J as y}from"./4by6-f6q.js";import{b as E,a as I}from"./BVmBXPoG.js";import{u as O}from"./C5bgdIOp.js";import{_ as x}from"./BqyO8OjC.js";import"./Bdtn2mn5.js";const B={class:"h-full relative p-1"},K=h({__name:"TableOverview",props:{connectionId:{}},setup(m){const d=["name","schema","kind","owner","estimated_row","total_size","data_size","index_size","comment"],t=m,s=v(),l=S(),{schemaId:a}=b(l),u=o(()=>t.connectionId?s.connections.find(e=>e.id===t.connectionId):s.selectedConnection),c=o(()=>({...w(u.value),schema:a.value})),{data:r,status:p}=O("/api/tables/overview",{method:"POST",body:c,watch:[a,c]},"$x2_S2ch44V"),_=o(()=>{const e=r.value||[];return e.length>0?E(e):I(d)});return(e,M)=>{const f=y;return g(),C("div",B,[i(f,{visible:n(p)==="pending"},null,8,["visible"]),i(n(x),{columns:n(_),data:n(r)||[],class:"h-full border rounded-md",columnKeyBy:"field"},null,8,["columns","data"])])}}});export{K as default};
@@ -1 +0,0 @@
1
- import{d as a,e as o,n,g as r,j as c,a0 as l,o as u}from"./4by6-f6q.js";const d=a({__name:"ContextMenuShortcut",props:{class:{}},setup(t){const e=t;return(s,m)=>(u(),o("span",{"data-slot":"context-menu-shortcut",class:n(r(c)("text-muted-foreground ml-auto text-xs tracking-widest",e.class))},[l(s.$slots,"default")],2))}});export{d as _};
@@ -1 +0,0 @@
1
- import{s as e,b as r,a,S as s}from"./Cx6s86aR.js";import{_ as i}from"./CREZ9f0O.js";import"./B7HEMfgt.js";import"./BeNILdbT.js";import"./4by6-f6q.js";var p={parser:a,get db(){return new s(2)},renderer:r,styles:e,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{p as diagram};