orcaq 1.0.33 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1379) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/63YtjFEq.js +1 -0
  3. package/.output/public/_nuxt/8tyEaimf.js +30 -0
  4. package/.output/public/_nuxt/AymhMj9v.js +1 -0
  5. package/.output/public/_nuxt/B2IKcIj2.js +1 -0
  6. package/.output/public/_nuxt/B46blMXm.js +7 -0
  7. package/.output/public/_nuxt/B5WGo5x7.js +1 -0
  8. package/.output/public/_nuxt/B6MkNyZd.js +132 -0
  9. package/.output/public/_nuxt/B73IHAoF.js +1 -0
  10. package/.output/public/_nuxt/B8TrrBEb.js +189 -0
  11. package/.output/public/_nuxt/B9uki8o2.js +1 -0
  12. package/.output/public/_nuxt/BEyCol50.js +1 -0
  13. package/.output/public/_nuxt/BJCrbji-.js +24 -0
  14. package/.output/public/_nuxt/BJVPtt2X.js +24 -0
  15. package/.output/public/_nuxt/BL__uYa3.js +1 -0
  16. package/.output/public/_nuxt/BPACuoI0.js +1 -0
  17. package/.output/public/_nuxt/BRFPdiIh.js +1 -0
  18. package/.output/public/_nuxt/BS-LtKx4.js +1 -0
  19. package/.output/public/_nuxt/BTYBVtfa.js +70 -0
  20. package/.output/public/_nuxt/BTheloyh.js +1 -0
  21. package/.output/public/_nuxt/BVUHbgGW.js +27 -0
  22. package/.output/public/_nuxt/BWZ7atse.js +1 -0
  23. package/.output/public/_nuxt/BWebIWit.js +39 -0
  24. package/.output/public/_nuxt/BcsKoAPU.js +984 -0
  25. package/.output/public/_nuxt/Bf6Q3Zl5.js +89 -0
  26. package/.output/public/_nuxt/Bj7ctTfH.js +1 -0
  27. package/.output/public/_nuxt/BjqbQLK3.js +1 -0
  28. package/.output/public/_nuxt/Bmgr9uz4.js +36 -0
  29. package/.output/public/_nuxt/Bmx1kTaZ.js +139 -0
  30. package/.output/public/_nuxt/BoIj4dtd.js +1 -0
  31. package/.output/public/_nuxt/BoMjapT5.js +220 -0
  32. package/.output/public/_nuxt/BogEzQi9.js +12 -0
  33. package/.output/public/_nuxt/BpLDGvqy.js +1 -0
  34. package/.output/public/_nuxt/BpUSbMUb.js +1 -0
  35. package/.output/public/_nuxt/BpvGVfME.js +1 -0
  36. package/.output/public/_nuxt/Bq47tjcm.js +1 -0
  37. package/.output/public/_nuxt/Bq7OeLM1.js +1 -0
  38. package/.output/public/_nuxt/BqU89KuH.js +2 -0
  39. package/.output/public/_nuxt/BrNfge84.js +34 -0
  40. package/.output/public/_nuxt/BtyzMl9p.js +1 -0
  41. package/.output/public/_nuxt/ByiJDSw8.js +68 -0
  42. package/.output/public/_nuxt/ByibjLZn.js +43 -0
  43. package/.output/public/_nuxt/BzvSm28k.js +67 -0
  44. package/.output/public/_nuxt/C2XHqDOf.js +1 -0
  45. package/.output/public/_nuxt/C3ZBsVV_.js +2 -0
  46. package/.output/public/_nuxt/C6dIAdHr.js +1 -0
  47. package/.output/public/_nuxt/C7BQpy74.js +1 -0
  48. package/.output/public/_nuxt/CAnr3OhD.js +1 -0
  49. package/.output/public/_nuxt/CDJKw_ak.js +1 -0
  50. package/.output/public/_nuxt/CHEpbbGc.js +1 -0
  51. package/.output/public/_nuxt/CMkzSwnO.js +61 -0
  52. package/.output/public/_nuxt/COAycMg4.js +1 -0
  53. package/.output/public/_nuxt/COHOh4Oe.js +1 -0
  54. package/.output/public/_nuxt/COq7mAG7.js +10 -0
  55. package/.output/public/_nuxt/CS5akSNT.js +1 -0
  56. package/.output/public/_nuxt/CS9hqyP3.js +1 -0
  57. package/.output/public/_nuxt/CSQ0xnqv.js +6 -0
  58. package/.output/public/_nuxt/C_7gtl40.js +1 -0
  59. package/.output/public/_nuxt/Ca0KO9Xq.js +9 -0
  60. package/.output/public/_nuxt/CerLmMsC.js +22 -0
  61. package/.output/public/_nuxt/Ci5B19-c.js +15 -0
  62. package/.output/public/_nuxt/Cnfx1zWl.js +10 -0
  63. package/.output/public/_nuxt/Cq-MDPLE.js +53 -0
  64. package/.output/public/_nuxt/CrNLwdoE.js +145 -0
  65. package/.output/public/_nuxt/CsRSZpa6.js +15 -0
  66. package/.output/public/_nuxt/CtWq1MER.js +7 -0
  67. package/.output/public/_nuxt/Cww9dXBK.js +1 -0
  68. package/.output/public/_nuxt/CycELG5y.js +65 -0
  69. package/.output/public/_nuxt/CzB2y8br.js +18 -0
  70. package/.output/public/_nuxt/D-9vaM6z.js +4 -0
  71. package/.output/public/_nuxt/D4pAW_0T.js +152 -0
  72. package/.output/public/_nuxt/DAr5YiBT.js +1 -0
  73. package/.output/public/_nuxt/DDebxXP-.js +1 -0
  74. package/.output/public/_nuxt/DEZMnZ2r.js +292 -0
  75. package/.output/public/_nuxt/DGvAu532.js +1 -0
  76. package/.output/public/_nuxt/DHAL8jJG.js +255 -0
  77. package/.output/public/_nuxt/DJH-4SVI.js +1 -0
  78. package/.output/public/_nuxt/DMmjWR_K.js +10 -0
  79. package/.output/public/_nuxt/DNB4Xmyo.js +37 -0
  80. package/.output/public/_nuxt/DNoTlUiY.js +7 -0
  81. package/.output/public/_nuxt/DPIEiNwW.js +1 -0
  82. package/.output/public/_nuxt/DSaBCmOg.js +162 -0
  83. package/.output/public/_nuxt/DVnDb6ua.js +1 -0
  84. package/.output/public/_nuxt/DWqOZJe7.js +1 -0
  85. package/.output/public/_nuxt/DcCF9IZB.js +1 -0
  86. package/.output/public/_nuxt/DfNTLojg.js +1 -0
  87. package/.output/public/_nuxt/DkD29_YA.js +73 -0
  88. package/.output/public/_nuxt/DpEV6S2O.js +1 -0
  89. package/.output/public/_nuxt/DpT8FO1Q.js +70 -0
  90. package/.output/public/_nuxt/Dq1JM9WZ.js +1 -0
  91. package/.output/public/_nuxt/DsmBazLf.js +20 -0
  92. package/.output/public/_nuxt/DuCDilAk.js +1 -0
  93. package/.output/public/_nuxt/FDw04QOj.js +2 -0
  94. package/.output/public/_nuxt/JOg_XIAv.js +1 -0
  95. package/.output/public/_nuxt/L2I3LmpB.js +68 -0
  96. package/.output/public/_nuxt/M6bBaUHa.js +1 -0
  97. package/.output/public/_nuxt/MW5K_zef.js +1 -0
  98. package/.output/public/_nuxt/MeLWmO7R.js +162 -0
  99. package/.output/public/_nuxt/Oe2GG0Lt.js +9 -0
  100. package/.output/public/_nuxt/S1qa1a4x.js +1 -0
  101. package/.output/public/_nuxt/Sf02B6Pt.js +3 -0
  102. package/.output/public/_nuxt/Y1gXUmjt.js +1 -0
  103. package/.output/public/_nuxt/_qKPTuua.js +1 -0
  104. package/.output/public/_nuxt/atdCACH-.js +1 -0
  105. package/.output/public/_nuxt/builds/latest.json +1 -1
  106. package/.output/public/_nuxt/builds/meta/7c171291-8bbd-4c4c-8904-0afae065b82e.json +1 -0
  107. package/.output/public/_nuxt/dNPwafbq.js +1 -0
  108. package/.output/public/_nuxt/dWu56FdP.js +3867 -0
  109. package/.output/public/_nuxt/default.B0xlD4Sl.css +1 -0
  110. package/.output/public/_nuxt/entry.DxCQuGXb.css +1 -0
  111. package/.output/public/_nuxt/iNy-Nl0_.js +1 -0
  112. package/.output/public/_nuxt/ioXB9E2w.js +1 -0
  113. package/.output/public/_nuxt/kvtnkChG.js +1 -0
  114. package/.output/public/_nuxt/qzrMNYut.js +1 -0
  115. package/.output/public/_nuxt/sk7V7xQl.js +1 -0
  116. package/.output/public/_nuxt/vhkvHdfO.js +1 -0
  117. package/.output/public/_nuxt/wRAs0MDn.js +2 -0
  118. package/.output/public/_nuxt/xOD4Ev56.js +1 -0
  119. package/.output/public/_nuxt/xp7rFxcm.js +1 -0
  120. package/.output/server/chunks/_/create-adapter.mjs +38 -7
  121. package/.output/server/chunks/_/create-adapter.mjs.map +1 -1
  122. package/.output/server/chunks/_/database-error.mjs +10 -0
  123. package/.output/server/chunks/_/database-error.mjs.map +1 -1
  124. package/.output/server/chunks/_/database-roles.factory.mjs +126 -22
  125. package/.output/server/chunks/_/database-roles.factory.mjs.map +1 -1
  126. package/.output/server/chunks/_/db-connection.mjs +1202 -81
  127. package/.output/server/chunks/_/db-connection.mjs.map +1 -1
  128. package/.output/server/chunks/_/functions.factory.mjs +97 -6
  129. package/.output/server/chunks/_/functions.factory.mjs.map +1 -1
  130. package/.output/server/chunks/_/instance-insights.factory.mjs +2130 -8
  131. package/.output/server/chunks/_/instance-insights.factory.mjs.map +1 -1
  132. package/.output/server/chunks/_/metadata.factory.mjs +1192 -43
  133. package/.output/server/chunks/_/metadata.factory.mjs.map +1 -1
  134. package/.output/server/chunks/_/native-backup-jobs.mjs +1302 -0
  135. package/.output/server/chunks/_/native-backup-jobs.mjs.map +1 -0
  136. package/.output/server/chunks/_/query.factory.mjs +536 -14
  137. package/.output/server/chunks/_/query.factory.mjs.map +1 -1
  138. package/.output/server/chunks/_/redis-browser.service.mjs +513 -0
  139. package/.output/server/chunks/_/redis-browser.service.mjs.map +1 -0
  140. package/.output/server/chunks/_/redis-instance-insights.service.mjs +442 -0
  141. package/.output/server/chunks/_/redis-instance-insights.service.mjs.map +1 -0
  142. package/.output/server/chunks/_/redis-pubsub.service.mjs +227 -0
  143. package/.output/server/chunks/_/redis-pubsub.service.mjs.map +1 -0
  144. package/.output/server/chunks/_/redis.client.mjs +129 -0
  145. package/.output/server/chunks/_/redis.client.mjs.map +1 -0
  146. package/.output/server/chunks/_/schemaMeta.type.mjs +13 -0
  147. package/.output/server/chunks/_/schemaMeta.type.mjs.map +1 -0
  148. package/.output/server/chunks/_/tables.factory.mjs +917 -37
  149. package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
  150. package/.output/server/chunks/_/type-alias.constants.mjs +242 -0
  151. package/.output/server/chunks/_/type-alias.constants.mjs.map +1 -0
  152. package/.output/server/chunks/_/views.factory.mjs +106 -8
  153. package/.output/server/chunks/_/views.factory.mjs.map +1 -1
  154. package/.output/server/chunks/build/client.manifest.mjs +776 -659
  155. package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
  156. package/.output/server/chunks/nitro/nitro.mjs +1152 -749
  157. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  158. package/.output/server/chunks/routes/api/ai/agent.mjs +33 -79
  159. package/.output/server/chunks/routes/api/ai/agent.mjs.map +1 -1
  160. package/.output/server/chunks/routes/api/database-export/export-database.mjs +29 -124
  161. package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -1
  162. package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs +55 -0
  163. package/.output/server/chunks/routes/api/database-export/jobs/_jobId/download.get.mjs.map +1 -0
  164. package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs +46 -0
  165. package/.output/server/chunks/routes/api/database-export/jobs/_jobId_.get.mjs.map +1 -0
  166. package/.output/server/chunks/routes/api/database-import/import-database.mjs +72 -134
  167. package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -1
  168. package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs +46 -0
  169. package/.output/server/chunks/routes/api/database-import/jobs/_jobId_.get.mjs.map +1 -0
  170. package/.output/server/chunks/routes/api/database-roles/create-role.mjs +5 -0
  171. package/.output/server/chunks/routes/api/database-roles/create-role.mjs.map +1 -1
  172. package/.output/server/chunks/routes/api/database-roles/delete-role.mjs +5 -0
  173. package/.output/server/chunks/routes/api/database-roles/delete-role.mjs.map +1 -1
  174. package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs +5 -0
  175. package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs.map +1 -1
  176. package/.output/server/chunks/routes/api/database-roles/get-databases.mjs +5 -0
  177. package/.output/server/chunks/routes/api/database-roles/get-databases.mjs.map +1 -1
  178. package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs +5 -0
  179. package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs.map +1 -1
  180. package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs +5 -0
  181. package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs.map +1 -1
  182. package/.output/server/chunks/routes/api/database-roles/get-role.mjs +5 -0
  183. package/.output/server/chunks/routes/api/database-roles/get-role.mjs.map +1 -1
  184. package/.output/server/chunks/routes/api/database-roles/get-roles.mjs +5 -0
  185. package/.output/server/chunks/routes/api/database-roles/get-roles.mjs.map +1 -1
  186. package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs +5 -0
  187. package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs.map +1 -1
  188. package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs +5 -0
  189. package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs.map +1 -1
  190. package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs +5 -0
  191. package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs.map +1 -1
  192. package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs +5 -0
  193. package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs.map +1 -1
  194. package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs +5 -0
  195. package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -1
  196. package/.output/server/chunks/routes/api/functions/definition.post.mjs +6 -1
  197. package/.output/server/chunks/routes/api/functions/definition.post.mjs.map +1 -1
  198. package/.output/server/chunks/routes/api/functions/delete.post.mjs +6 -1
  199. package/.output/server/chunks/routes/api/functions/delete.post.mjs.map +1 -1
  200. package/.output/server/chunks/routes/api/functions/overview.post.mjs +6 -1
  201. package/.output/server/chunks/routes/api/functions/overview.post.mjs.map +1 -1
  202. package/.output/server/chunks/routes/api/functions/rename.post.mjs +6 -1
  203. package/.output/server/chunks/routes/api/functions/rename.post.mjs.map +1 -1
  204. package/.output/server/chunks/routes/api/functions/signature.post.mjs +6 -1
  205. package/.output/server/chunks/routes/api/functions/signature.post.mjs.map +1 -1
  206. package/.output/server/chunks/routes/api/functions/update.post.mjs +27 -6
  207. package/.output/server/chunks/routes/api/functions/update.post.mjs.map +1 -1
  208. package/.output/server/chunks/routes/api/index.post.mjs +66 -0
  209. package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
  210. package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs +6 -1
  211. package/.output/server/chunks/routes/api/instance-insights/cancel-query.post.mjs.map +1 -1
  212. package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs +6 -1
  213. package/.output/server/chunks/routes/api/instance-insights/configuration.post.mjs.map +1 -1
  214. package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs +6 -1
  215. package/.output/server/chunks/routes/api/instance-insights/dashboard.post.mjs.map +1 -1
  216. package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs +6 -1
  217. package/.output/server/chunks/routes/api/instance-insights/drop-slot.post.mjs.map +1 -1
  218. package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs +6 -1
  219. package/.output/server/chunks/routes/api/instance-insights/replication.post.mjs.map +1 -1
  220. package/.output/server/chunks/routes/api/instance-insights/state.post.mjs +6 -1
  221. package/.output/server/chunks/routes/api/instance-insights/state.post.mjs.map +1 -1
  222. package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs +6 -1
  223. package/.output/server/chunks/routes/api/instance-insights/terminate-connection.post.mjs.map +1 -1
  224. package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs +6 -1
  225. package/.output/server/chunks/routes/api/instance-insights/toggle-slot-status.post.mjs.map +1 -1
  226. package/.output/server/chunks/routes/api/instance-insights/view.post.mjs +66 -0
  227. package/.output/server/chunks/routes/api/instance-insights/view.post.mjs.map +1 -0
  228. package/.output/server/chunks/routes/api/managment-connection/health-check.mjs +16 -4
  229. package/.output/server/chunks/routes/api/managment-connection/health-check.mjs.map +1 -1
  230. package/.output/server/chunks/routes/api/metadata/erd.post.mjs +10 -1
  231. package/.output/server/chunks/routes/api/metadata/erd.post.mjs.map +1 -1
  232. package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs +9 -0
  233. package/.output/server/chunks/routes/api/metadata/meta-data.post.mjs.map +1 -1
  234. package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs +10 -1
  235. package/.output/server/chunks/routes/api/metadata/reverse-schemas.post.mjs.map +1 -1
  236. package/.output/server/chunks/routes/api/metrics/monitor.post.mjs +83 -7
  237. package/.output/server/chunks/routes/api/metrics/monitor.post.mjs.map +1 -1
  238. package/.output/server/chunks/routes/api/query/execute.post.mjs +8 -1
  239. package/.output/server/chunks/routes/api/query/execute.post.mjs.map +1 -1
  240. package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs +17 -3
  241. package/.output/server/chunks/routes/api/query/raw-execute-stream.post.mjs.map +1 -1
  242. package/.output/server/chunks/routes/api/query/raw-execute.post.mjs +10 -1
  243. package/.output/server/chunks/routes/api/query/raw-execute.post.mjs.map +1 -1
  244. package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs +25 -0
  245. package/.output/server/chunks/routes/api/redis/browser/databases.post.mjs.map +1 -0
  246. package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs +39 -0
  247. package/.output/server/chunks/routes/api/redis/browser/value.patch.mjs.map +1 -0
  248. package/.output/server/chunks/routes/api/redis/browser/value.post.mjs +25 -0
  249. package/.output/server/chunks/routes/api/redis/browser/value.post.mjs.map +1 -0
  250. package/.output/server/chunks/routes/api/redis/index.post.mjs +37 -0
  251. package/.output/server/chunks/routes/api/redis/index.post.mjs.map +1 -0
  252. package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs +38 -0
  253. package/.output/server/chunks/routes/api/redis/instance-insights/kill-client.post.mjs.map +1 -0
  254. package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs +35 -0
  255. package/.output/server/chunks/routes/api/redis/instance-insights/overview.post.mjs.map +1 -0
  256. package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs +24 -0
  257. package/.output/server/chunks/routes/api/redis/pubsub/messages.post.mjs.map +1 -0
  258. package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs +38 -0
  259. package/.output/server/chunks/routes/api/redis/pubsub/overview.post.mjs.map +1 -0
  260. package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs +39 -0
  261. package/.output/server/chunks/routes/api/redis/pubsub/publish.post.mjs.map +1 -0
  262. package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs +39 -0
  263. package/.output/server/chunks/routes/api/redis/pubsub/subscribe.post.mjs.map +1 -0
  264. package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs +24 -0
  265. package/.output/server/chunks/routes/api/redis/pubsub/unsubscribe.post.mjs.map +1 -0
  266. package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs +60 -0
  267. package/.output/server/chunks/routes/api/redis/workbench/execute.post.mjs.map +1 -0
  268. package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs +12 -6
  269. package/.output/server/chunks/routes/api/tables/bulk-delete.post.mjs.map +1 -1
  270. package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs +12 -6
  271. package/.output/server/chunks/routes/api/tables/bulk-update.post.mjs.map +1 -1
  272. package/.output/server/chunks/routes/api/tables/ddl.post.mjs +7 -2
  273. package/.output/server/chunks/routes/api/tables/ddl.post.mjs.map +1 -1
  274. package/.output/server/chunks/routes/api/tables/export.post.mjs +8 -3
  275. package/.output/server/chunks/routes/api/tables/export.post.mjs.map +1 -1
  276. package/.output/server/chunks/routes/api/tables/indexes.post.mjs +7 -2
  277. package/.output/server/chunks/routes/api/tables/indexes.post.mjs.map +1 -1
  278. package/.output/server/chunks/routes/api/tables/meta.post.mjs +10 -3
  279. package/.output/server/chunks/routes/api/tables/meta.post.mjs.map +1 -1
  280. package/.output/server/chunks/routes/api/tables/overview.post.mjs +7 -2
  281. package/.output/server/chunks/routes/api/tables/overview.post.mjs.map +1 -1
  282. package/.output/server/chunks/routes/api/tables/rls.post.mjs +7 -2
  283. package/.output/server/chunks/routes/api/tables/rls.post.mjs.map +1 -1
  284. package/.output/server/chunks/routes/api/tables/rules.post.mjs +7 -2
  285. package/.output/server/chunks/routes/api/tables/rules.post.mjs.map +1 -1
  286. package/.output/server/chunks/routes/api/tables/size.post.mjs +7 -2
  287. package/.output/server/chunks/routes/api/tables/size.post.mjs.map +1 -1
  288. package/.output/server/chunks/routes/api/tables/structure.post.mjs +7 -2
  289. package/.output/server/chunks/routes/api/tables/structure.post.mjs.map +1 -1
  290. package/.output/server/chunks/routes/api/tables/triggers.post.mjs +7 -2
  291. package/.output/server/chunks/routes/api/tables/triggers.post.mjs.map +1 -1
  292. package/.output/server/chunks/routes/api/views/definition.post.mjs +5 -0
  293. package/.output/server/chunks/routes/api/views/definition.post.mjs.map +1 -1
  294. package/.output/server/chunks/routes/api/views/dependencies.post.mjs +5 -0
  295. package/.output/server/chunks/routes/api/views/dependencies.post.mjs.map +1 -1
  296. package/.output/server/chunks/routes/api/views/explain.post.mjs +5 -0
  297. package/.output/server/chunks/routes/api/views/explain.post.mjs.map +1 -1
  298. package/.output/server/chunks/routes/api/views/indexes.post.mjs +5 -0
  299. package/.output/server/chunks/routes/api/views/indexes.post.mjs.map +1 -1
  300. package/.output/server/chunks/routes/api/views/meta.post.mjs +5 -0
  301. package/.output/server/chunks/routes/api/views/meta.post.mjs.map +1 -1
  302. package/.output/server/chunks/routes/api/views/overview.post.mjs +5 -0
  303. package/.output/server/chunks/routes/api/views/overview.post.mjs.map +1 -1
  304. package/.output/server/chunks/routes/renderer.mjs +1 -1
  305. package/.output/server/index.mjs +1 -1
  306. package/.output/server/node_modules/@libsql/client/lib-esm/hrana.js +310 -0
  307. package/.output/server/node_modules/@libsql/client/lib-esm/http.js +230 -0
  308. package/.output/server/node_modules/@libsql/client/lib-esm/sql_cache.js +87 -0
  309. package/.output/server/node_modules/@libsql/client/package.json +123 -0
  310. package/.output/server/node_modules/@libsql/core/lib-esm/api.js +16 -0
  311. package/.output/server/node_modules/@libsql/core/lib-esm/config.js +136 -0
  312. package/.output/server/node_modules/@libsql/core/lib-esm/uri.js +120 -0
  313. package/.output/server/node_modules/@libsql/core/lib-esm/util.js +55 -0
  314. package/.output/server/node_modules/@libsql/core/package.json +91 -0
  315. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/batch.js +271 -0
  316. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/byte_queue.js +45 -0
  317. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/client.js +13 -0
  318. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/cursor.js +2 -0
  319. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/describe.js +8 -0
  320. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/index.js +4 -0
  321. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/decode.js +59 -0
  322. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/json/encode.js +72 -0
  323. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/decode.js +150 -0
  324. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/encode.js +95 -0
  325. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/util.js +6 -0
  326. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/errors.js +102 -0
  327. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/client.js +124 -0
  328. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/cursor.js +135 -0
  329. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_decode.js +62 -0
  330. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/json_encode.js +55 -0
  331. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js +44 -0
  332. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/protobuf_encode.js +78 -0
  333. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/http/stream.js +363 -0
  334. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/id_alloc.js +47 -0
  335. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/index.js +42 -0
  336. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/libsql_url.js +75 -0
  337. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue.js +26 -0
  338. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/queue_microtask.js +13 -0
  339. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/result.js +48 -0
  340. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_decode.js +106 -0
  341. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/json_encode.js +71 -0
  342. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js +115 -0
  343. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_encode.js +85 -0
  344. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/sql.js +46 -0
  345. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stmt.js +76 -0
  346. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/stream.js +57 -0
  347. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/util.js +4 -0
  348. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/value.js +83 -0
  349. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/client.js +318 -0
  350. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/cursor.js +80 -0
  351. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_decode.js +74 -0
  352. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/json_encode.js +77 -0
  353. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_decode.js +60 -0
  354. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_encode.js +115 -0
  355. package/.output/server/node_modules/@libsql/hrana-client/lib-esm/ws/stream.js +211 -0
  356. package/.output/server/node_modules/@libsql/hrana-client/package.json +60 -0
  357. package/.output/server/node_modules/@libsql/isomorphic-fetch/node.js +6 -0
  358. package/.output/server/node_modules/@libsql/isomorphic-fetch/package.json +51 -0
  359. package/.output/server/node_modules/@libsql/isomorphic-ws/node.mjs +2 -0
  360. package/.output/server/node_modules/@libsql/isomorphic-ws/package.json +53 -0
  361. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/ADD.js +19 -0
  362. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/CARD.js +16 -0
  363. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/EXISTS.js +19 -0
  364. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INFO.js +22 -0
  365. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/INSERT.js +41 -0
  366. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/LOADCHUNK.js +19 -0
  367. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MADD.js +19 -0
  368. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/MEXISTS.js +19 -0
  369. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/RESERVE.js +28 -0
  370. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/SCANDUMP.js +23 -0
  371. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/helpers.js +28 -0
  372. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/bloom/index.js +53 -0
  373. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INCRBY.js +28 -0
  374. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INFO.js +22 -0
  375. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYDIM.js +19 -0
  376. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYPROB.js +19 -0
  377. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/MERGE.js +33 -0
  378. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/QUERY.js +18 -0
  379. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/index.js +26 -0
  380. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADD.js +19 -0
  381. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/ADDNX.js +19 -0
  382. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/COUNT.js +18 -0
  383. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/DEL.js +19 -0
  384. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/EXISTS.js +19 -0
  385. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INFO.js +22 -0
  386. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERT.js +34 -0
  387. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/INSERTNX.js +44 -0
  388. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/LOADCHUNK.js +19 -0
  389. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/RESERVE.js +31 -0
  390. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/SCANDUMP.js +23 -0
  391. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/cuckoo/index.js +41 -0
  392. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/index.js +18 -0
  393. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/ADD.js +20 -0
  394. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYRANK.js +26 -0
  395. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/BYREVRANK.js +41 -0
  396. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CDF.js +21 -0
  397. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/CREATE.js +21 -0
  398. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/INFO.js +22 -0
  399. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MAX.js +17 -0
  400. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MERGE.js +27 -0
  401. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/MIN.js +17 -0
  402. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/QUANTILE.js +21 -0
  403. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RANK.js +25 -0
  404. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/RESET.js +16 -0
  405. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/REVRANK.js +41 -0
  406. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/TRIMMED_MEAN.js +20 -0
  407. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/t-digest/index.js +50 -0
  408. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/ADD.js +18 -0
  409. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/COUNT.js +18 -0
  410. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INCRBY.js +28 -0
  411. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/INFO.js +24 -0
  412. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST.js +16 -0
  413. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/LIST_WITHCOUNT.js +26 -0
  414. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/QUERY.js +19 -0
  415. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/RESERVE.js +25 -0
  416. package/.output/server/node_modules/@redis/bloom/dist/lib/commands/top-k/index.js +32 -0
  417. package/.output/server/node_modules/@redis/bloom/dist/lib/index.js +9 -0
  418. package/.output/server/node_modules/@redis/bloom/package.json +36 -0
  419. package/.output/server/node_modules/@redis/client/dist/index.js +53 -0
  420. package/.output/server/node_modules/@redis/client/dist/lib/RESP/decoder.js +727 -0
  421. package/.output/server/node_modules/@redis/client/dist/lib/RESP/encoder.js +24 -0
  422. package/.output/server/node_modules/@redis/client/dist/lib/RESP/verbatim-string.js +12 -0
  423. package/.output/server/node_modules/@redis/client/dist/lib/authx/credentials-provider.js +26 -0
  424. package/.output/server/node_modules/@redis/client/dist/lib/authx/index.js +12 -0
  425. package/.output/server/node_modules/@redis/client/dist/lib/authx/token-manager.js +184 -0
  426. package/.output/server/node_modules/@redis/client/dist/lib/authx/token.js +32 -0
  427. package/.output/server/node_modules/@redis/client/dist/lib/client/cache.js +634 -0
  428. package/.output/server/node_modules/@redis/client/dist/lib/client/commands-queue.js +497 -0
  429. package/.output/server/node_modules/@redis/client/dist/lib/client/enterprise-maintenance-manager.js +387 -0
  430. package/.output/server/node_modules/@redis/client/dist/lib/client/identity.js +65 -0
  431. package/.output/server/node_modules/@redis/client/dist/lib/client/index.js +1118 -0
  432. package/.output/server/node_modules/@redis/client/dist/lib/client/legacy-mode.js +119 -0
  433. package/.output/server/node_modules/@redis/client/dist/lib/client/linked-list.js +212 -0
  434. package/.output/server/node_modules/@redis/client/dist/lib/client/multi-command.js +118 -0
  435. package/.output/server/node_modules/@redis/client/dist/lib/client/parser.js +83 -0
  436. package/.output/server/node_modules/@redis/client/dist/lib/client/pool.js +373 -0
  437. package/.output/server/node_modules/@redis/client/dist/lib/client/pub-sub.js +351 -0
  438. package/.output/server/node_modules/@redis/client/dist/lib/client/socket.js +336 -0
  439. package/.output/server/node_modules/@redis/client/dist/lib/client/tracing.js +122 -0
  440. package/.output/server/node_modules/@redis/client/dist/lib/cluster/cluster-slots.js +657 -0
  441. package/.output/server/node_modules/@redis/client/dist/lib/cluster/index.js +425 -0
  442. package/.output/server/node_modules/@redis/client/dist/lib/cluster/multi-command.js +124 -0
  443. package/.output/server/node_modules/@redis/client/dist/lib/commander.js +91 -0
  444. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_CAT.js +19 -0
  445. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DELUSER.js +17 -0
  446. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_DRYRUN.js +17 -0
  447. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GENPASS.js +19 -0
  448. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_GETUSER.js +33 -0
  449. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LIST.js +15 -0
  450. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOAD.js +15 -0
  451. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG.js +39 -0
  452. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_LOG_RESET.js +19 -0
  453. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SAVE.js +15 -0
  454. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_SETUSER.js +18 -0
  455. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_USERS.js +15 -0
  456. package/.output/server/node_modules/@redis/client/dist/lib/commands/ACL_WHOAMI.js +15 -0
  457. package/.output/server/node_modules/@redis/client/dist/lib/commands/APPEND.js +16 -0
  458. package/.output/server/node_modules/@redis/client/dist/lib/commands/ASKING.js +17 -0
  459. package/.output/server/node_modules/@redis/client/dist/lib/commands/AUTH.js +22 -0
  460. package/.output/server/node_modules/@redis/client/dist/lib/commands/BGREWRITEAOF.js +15 -0
  461. package/.output/server/node_modules/@redis/client/dist/lib/commands/BGSAVE.js +20 -0
  462. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITCOUNT.js +28 -0
  463. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD.js +33 -0
  464. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITFIELD_RO.js +23 -0
  465. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITOP.js +19 -0
  466. package/.output/server/node_modules/@redis/client/dist/lib/commands/BITPOS.js +31 -0
  467. package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMOVE.js +21 -0
  468. package/.output/server/node_modules/@redis/client/dist/lib/commands/BLMPOP.js +41 -0
  469. package/.output/server/node_modules/@redis/client/dist/lib/commands/BLPOP.js +25 -0
  470. package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOP.js +22 -0
  471. package/.output/server/node_modules/@redis/client/dist/lib/commands/BRPOPLPUSH.js +19 -0
  472. package/.output/server/node_modules/@redis/client/dist/lib/commands/BZMPOP.js +41 -0
  473. package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMAX.js +34 -0
  474. package/.output/server/node_modules/@redis/client/dist/lib/commands/BZPOPMIN.js +22 -0
  475. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_CACHING.js +16 -0
  476. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETNAME.js +15 -0
  477. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_GETREDIR.js +15 -0
  478. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_ID.js +15 -0
  479. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_INFO.js +62 -0
  480. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_KILL.js +66 -0
  481. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_LIST.js +35 -0
  482. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-EVICT.js +16 -0
  483. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_NO-TOUCH.js +16 -0
  484. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_PAUSE.js +20 -0
  485. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_SETNAME.js +16 -0
  486. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKING.js +53 -0
  487. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_TRACKINGINFO.js +22 -0
  488. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLIENT_UNPAUSE.js +15 -0
  489. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTS.js +17 -0
  490. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_ADDSLOTSRANGE.js +18 -0
  491. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_BUMPEPOCH.js +15 -0
  492. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNT-FAILURE-REPORTS.js +16 -0
  493. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_COUNTKEYSINSLOT.js +16 -0
  494. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTS.js +17 -0
  495. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_DELSLOTSRANGE.js +18 -0
  496. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FAILOVER.js +24 -0
  497. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FLUSHSLOTS.js +15 -0
  498. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_FORGET.js +16 -0
  499. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_GETKEYSINSLOT.js +17 -0
  500. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_INFO.js +15 -0
  501. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_KEYSLOT.js +16 -0
  502. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_LINKS.js +28 -0
  503. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MEET.js +17 -0
  504. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYID.js +15 -0
  505. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_MYSHARDID.js +15 -0
  506. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_NODES.js +15 -0
  507. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICAS.js +16 -0
  508. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_REPLICATE.js +16 -0
  509. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_RESET.js +19 -0
  510. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SAVECONFIG.js +15 -0
  511. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SET-CONFIG-EPOCH.js +16 -0
  512. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SETSLOT.js +28 -0
  513. package/.output/server/node_modules/@redis/client/dist/lib/commands/CLUSTER_SLOTS.js +30 -0
  514. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND.js +19 -0
  515. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_COUNT.js +15 -0
  516. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYS.js +17 -0
  517. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_GETKEYSANDFLAGS.js +25 -0
  518. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_INFO.js +20 -0
  519. package/.output/server/node_modules/@redis/client/dist/lib/commands/COMMAND_LIST.js +25 -0
  520. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_GET.js +21 -0
  521. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_RESETSTAT.js +15 -0
  522. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_REWRITE.js +15 -0
  523. package/.output/server/node_modules/@redis/client/dist/lib/commands/CONFIG_SET.js +25 -0
  524. package/.output/server/node_modules/@redis/client/dist/lib/commands/COPY.js +24 -0
  525. package/.output/server/node_modules/@redis/client/dist/lib/commands/DBSIZE.js +15 -0
  526. package/.output/server/node_modules/@redis/client/dist/lib/commands/DECR.js +15 -0
  527. package/.output/server/node_modules/@redis/client/dist/lib/commands/DECRBY.js +17 -0
  528. package/.output/server/node_modules/@redis/client/dist/lib/commands/DEL.js +16 -0
  529. package/.output/server/node_modules/@redis/client/dist/lib/commands/DELEX.js +43 -0
  530. package/.output/server/node_modules/@redis/client/dist/lib/commands/DIGEST.js +20 -0
  531. package/.output/server/node_modules/@redis/client/dist/lib/commands/DUMP.js +16 -0
  532. package/.output/server/node_modules/@redis/client/dist/lib/commands/ECHO.js +16 -0
  533. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL.js +31 -0
  534. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA.js +41 -0
  535. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVALSHA_RO.js +41 -0
  536. package/.output/server/node_modules/@redis/client/dist/lib/commands/EVAL_RO.js +41 -0
  537. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXISTS.js +17 -0
  538. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRE.js +21 -0
  539. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIREAT.js +22 -0
  540. package/.output/server/node_modules/@redis/client/dist/lib/commands/EXPIRETIME.js +16 -0
  541. package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL.js +41 -0
  542. package/.output/server/node_modules/@redis/client/dist/lib/commands/FCALL_RO.js +41 -0
  543. package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHALL.js +24 -0
  544. package/.output/server/node_modules/@redis/client/dist/lib/commands/FLUSHDB.js +19 -0
  545. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DELETE.js +16 -0
  546. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_DUMP.js +15 -0
  547. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_FLUSH.js +19 -0
  548. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_KILL.js +15 -0
  549. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST.js +38 -0
  550. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LIST_WITHCODE.js +41 -0
  551. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_LOAD.js +21 -0
  552. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_RESTORE.js +20 -0
  553. package/.output/server/node_modules/@redis/client/dist/lib/commands/FUNCTION_STATS.js +47 -0
  554. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOADD.js +41 -0
  555. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEODIST.js +26 -0
  556. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOHASH.js +19 -0
  557. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOPOS.js +27 -0
  558. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS.js +28 -0
  559. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER.js +28 -0
  560. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO.js +46 -0
  561. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_RO_WITH.js +46 -0
  562. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_STORE.js +53 -0
  563. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUSBYMEMBER_WITH.js +36 -0
  564. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO.js +45 -0
  565. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_RO_WITH.js +27 -0
  566. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_STORE.js +53 -0
  567. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEORADIUS_WITH.js +56 -0
  568. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH.js +54 -0
  569. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCHSTORE.js +27 -0
  570. package/.output/server/node_modules/@redis/client/dist/lib/commands/GEOSEARCH_WITH.js +55 -0
  571. package/.output/server/node_modules/@redis/client/dist/lib/commands/GET.js +17 -0
  572. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETBIT.js +19 -0
  573. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETDEL.js +16 -0
  574. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETEX.js +50 -0
  575. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETRANGE.js +20 -0
  576. package/.output/server/node_modules/@redis/client/dist/lib/commands/GETSET.js +18 -0
  577. package/.output/server/node_modules/@redis/client/dist/lib/commands/HDEL.js +17 -0
  578. package/.output/server/node_modules/@redis/client/dist/lib/commands/HELLO.js +35 -0
  579. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXISTS.js +19 -0
  580. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRE.js +35 -0
  581. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIREAT.js +25 -0
  582. package/.output/server/node_modules/@redis/client/dist/lib/commands/HEXPIRETIME.js +26 -0
  583. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGET.js +19 -0
  584. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETALL.js +22 -0
  585. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETDEL.js +18 -0
  586. package/.output/server/node_modules/@redis/client/dist/lib/commands/HGETEX.js +30 -0
  587. package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBY.js +18 -0
  588. package/.output/server/node_modules/@redis/client/dist/lib/commands/HINCRBYFLOAT.js +18 -0
  589. package/.output/server/node_modules/@redis/client/dist/lib/commands/HKEYS.js +17 -0
  590. package/.output/server/node_modules/@redis/client/dist/lib/commands/HLEN.js +17 -0
  591. package/.output/server/node_modules/@redis/client/dist/lib/commands/HMGET.js +19 -0
  592. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_GET.js +131 -0
  593. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_RESET.js +25 -0
  594. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_START.js +60 -0
  595. package/.output/server/node_modules/@redis/client/dist/lib/commands/HOTKEYS_STOP.js +27 -0
  596. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPERSIST.js +18 -0
  597. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRE.js +25 -0
  598. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIREAT.js +27 -0
  599. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPEXPIRETIME.js +21 -0
  600. package/.output/server/node_modules/@redis/client/dist/lib/commands/HPTTL.js +21 -0
  601. package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD.js +18 -0
  602. package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT.js +20 -0
  603. package/.output/server/node_modules/@redis/client/dist/lib/commands/HRANDFIELD_COUNT_WITHVALUES.js +41 -0
  604. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN.js +35 -0
  605. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSCAN_NOVALUES.js +27 -0
  606. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSET.js +55 -0
  607. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETEX.js +81 -0
  608. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSETNX.js +21 -0
  609. package/.output/server/node_modules/@redis/client/dist/lib/commands/HSTRLEN.js +21 -0
  610. package/.output/server/node_modules/@redis/client/dist/lib/commands/HTTL.js +19 -0
  611. package/.output/server/node_modules/@redis/client/dist/lib/commands/HVALS.js +17 -0
  612. package/.output/server/node_modules/@redis/client/dist/lib/commands/INCR.js +17 -0
  613. package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBY.js +19 -0
  614. package/.output/server/node_modules/@redis/client/dist/lib/commands/INCRBYFLOAT.js +19 -0
  615. package/.output/server/node_modules/@redis/client/dist/lib/commands/INFO.js +21 -0
  616. package/.output/server/node_modules/@redis/client/dist/lib/commands/KEYS.js +18 -0
  617. package/.output/server/node_modules/@redis/client/dist/lib/commands/LASTSAVE.js +17 -0
  618. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_DOCTOR.js +17 -0
  619. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_GRAPH.js +37 -0
  620. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTOGRAM.js +39 -0
  621. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_HISTORY.js +18 -0
  622. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_LATEST.js +17 -0
  623. package/.output/server/node_modules/@redis/client/dist/lib/commands/LATENCY_RESET.js +24 -0
  624. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS.js +19 -0
  625. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX.js +33 -0
  626. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_IDX_WITHMATCHLEN.js +28 -0
  627. package/.output/server/node_modules/@redis/client/dist/lib/commands/LCS_LEN.js +22 -0
  628. package/.output/server/node_modules/@redis/client/dist/lib/commands/LINDEX.js +21 -0
  629. package/.output/server/node_modules/@redis/client/dist/lib/commands/LINSERT.js +22 -0
  630. package/.output/server/node_modules/@redis/client/dist/lib/commands/LLEN.js +19 -0
  631. package/.output/server/node_modules/@redis/client/dist/lib/commands/LMOVE.js +22 -0
  632. package/.output/server/node_modules/@redis/client/dist/lib/commands/LMPOP.js +27 -0
  633. package/.output/server/node_modules/@redis/client/dist/lib/commands/LOLWUT.js +23 -0
  634. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP.js +17 -0
  635. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOP_COUNT.js +23 -0
  636. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS.js +28 -0
  637. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPOS_COUNT.js +26 -0
  638. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSH.js +19 -0
  639. package/.output/server/node_modules/@redis/client/dist/lib/commands/LPUSHX.js +19 -0
  640. package/.output/server/node_modules/@redis/client/dist/lib/commands/LRANGE.js +22 -0
  641. package/.output/server/node_modules/@redis/client/dist/lib/commands/LREM.js +22 -0
  642. package/.output/server/node_modules/@redis/client/dist/lib/commands/LSET.js +21 -0
  643. package/.output/server/node_modules/@redis/client/dist/lib/commands/LTRIM.js +20 -0
  644. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_DOCTOR.js +17 -0
  645. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_MALLOC-STATS.js +17 -0
  646. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_PURGE.js +17 -0
  647. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_STATS.js +39 -0
  648. package/.output/server/node_modules/@redis/client/dist/lib/commands/MEMORY_USAGE.js +22 -0
  649. package/.output/server/node_modules/@redis/client/dist/lib/commands/MGET.js +19 -0
  650. package/.output/server/node_modules/@redis/client/dist/lib/commands/MIGRATE.js +48 -0
  651. package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LIST.js +28 -0
  652. package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_LOAD.js +22 -0
  653. package/.output/server/node_modules/@redis/client/dist/lib/commands/MODULE_UNLOAD.js +18 -0
  654. package/.output/server/node_modules/@redis/client/dist/lib/commands/MOVE.js +19 -0
  655. package/.output/server/node_modules/@redis/client/dist/lib/commands/MSET.js +46 -0
  656. package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETEX.js +104 -0
  657. package/.output/server/node_modules/@redis/client/dist/lib/commands/MSETNX.js +19 -0
  658. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_ENCODING.js +18 -0
  659. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_FREQ.js +18 -0
  660. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_IDLETIME.js +18 -0
  661. package/.output/server/node_modules/@redis/client/dist/lib/commands/OBJECT_REFCOUNT.js +18 -0
  662. package/.output/server/node_modules/@redis/client/dist/lib/commands/PERSIST.js +17 -0
  663. package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRE.js +24 -0
  664. package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIREAT.js +25 -0
  665. package/.output/server/node_modules/@redis/client/dist/lib/commands/PEXPIRETIME.js +18 -0
  666. package/.output/server/node_modules/@redis/client/dist/lib/commands/PFADD.js +22 -0
  667. package/.output/server/node_modules/@redis/client/dist/lib/commands/PFCOUNT.js +18 -0
  668. package/.output/server/node_modules/@redis/client/dist/lib/commands/PFMERGE.js +21 -0
  669. package/.output/server/node_modules/@redis/client/dist/lib/commands/PING.js +21 -0
  670. package/.output/server/node_modules/@redis/client/dist/lib/commands/PSETEX.js +20 -0
  671. package/.output/server/node_modules/@redis/client/dist/lib/commands/PTTL.js +18 -0
  672. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBLISH.js +20 -0
  673. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_CHANNELS.js +21 -0
  674. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMPAT.js +17 -0
  675. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_NUMSUB.js +34 -0
  676. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDCHANNELS.js +21 -0
  677. package/.output/server/node_modules/@redis/client/dist/lib/commands/PUBSUB_SHARDNUMSUB.js +32 -0
  678. package/.output/server/node_modules/@redis/client/dist/lib/commands/RANDOMKEY.js +17 -0
  679. package/.output/server/node_modules/@redis/client/dist/lib/commands/READONLY.js +17 -0
  680. package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAME.js +19 -0
  681. package/.output/server/node_modules/@redis/client/dist/lib/commands/RENAMENX.js +19 -0
  682. package/.output/server/node_modules/@redis/client/dist/lib/commands/REPLICAOF.js +19 -0
  683. package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE-ASKING.js +17 -0
  684. package/.output/server/node_modules/@redis/client/dist/lib/commands/RESTORE.js +34 -0
  685. package/.output/server/node_modules/@redis/client/dist/lib/commands/ROLE.js +60 -0
  686. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP.js +17 -0
  687. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOPLPUSH.js +18 -0
  688. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPOP_COUNT.js +19 -0
  689. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSH.js +19 -0
  690. package/.output/server/node_modules/@redis/client/dist/lib/commands/RPUSHX.js +19 -0
  691. package/.output/server/node_modules/@redis/client/dist/lib/commands/SADD.js +19 -0
  692. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCAN.js +71 -0
  693. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCARD.js +19 -0
  694. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_DEBUG.js +18 -0
  695. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_EXISTS.js +19 -0
  696. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_FLUSH.js +21 -0
  697. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_KILL.js +17 -0
  698. package/.output/server/node_modules/@redis/client/dist/lib/commands/SCRIPT_LOAD.js +18 -0
  699. package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFF.js +19 -0
  700. package/.output/server/node_modules/@redis/client/dist/lib/commands/SDIFFSTORE.js +19 -0
  701. package/.output/server/node_modules/@redis/client/dist/lib/commands/SET.js +61 -0
  702. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETBIT.js +21 -0
  703. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETEX.js +20 -0
  704. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETNX.js +19 -0
  705. package/.output/server/node_modules/@redis/client/dist/lib/commands/SETRANGE.js +20 -0
  706. package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTER.js +19 -0
  707. package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERCARD.js +25 -0
  708. package/.output/server/node_modules/@redis/client/dist/lib/commands/SINTERSTORE.js +20 -0
  709. package/.output/server/node_modules/@redis/client/dist/lib/commands/SISMEMBER.js +21 -0
  710. package/.output/server/node_modules/@redis/client/dist/lib/commands/SMEMBERS.js +22 -0
  711. package/.output/server/node_modules/@redis/client/dist/lib/commands/SMISMEMBER.js +21 -0
  712. package/.output/server/node_modules/@redis/client/dist/lib/commands/SMOVE.js +21 -0
  713. package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT.js +53 -0
  714. package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_RO.js +40 -0
  715. package/.output/server/node_modules/@redis/client/dist/lib/commands/SORT_STORE.js +22 -0
  716. package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP.js +18 -0
  717. package/.output/server/node_modules/@redis/client/dist/lib/commands/SPOP_COUNT.js +20 -0
  718. package/.output/server/node_modules/@redis/client/dist/lib/commands/SPUBLISH.js +20 -0
  719. package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER.js +18 -0
  720. package/.output/server/node_modules/@redis/client/dist/lib/commands/SRANDMEMBER_COUNT.js +23 -0
  721. package/.output/server/node_modules/@redis/client/dist/lib/commands/SREM.js +21 -0
  722. package/.output/server/node_modules/@redis/client/dist/lib/commands/SSCAN.js +35 -0
  723. package/.output/server/node_modules/@redis/client/dist/lib/commands/STRLEN.js +20 -0
  724. package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNION.js +20 -0
  725. package/.output/server/node_modules/@redis/client/dist/lib/commands/SUNIONSTORE.js +21 -0
  726. package/.output/server/node_modules/@redis/client/dist/lib/commands/SWAPDB.js +17 -0
  727. package/.output/server/node_modules/@redis/client/dist/lib/commands/TIME.js +18 -0
  728. package/.output/server/node_modules/@redis/client/dist/lib/commands/TOUCH.js +19 -0
  729. package/.output/server/node_modules/@redis/client/dist/lib/commands/TTL.js +19 -0
  730. package/.output/server/node_modules/@redis/client/dist/lib/commands/TYPE.js +20 -0
  731. package/.output/server/node_modules/@redis/client/dist/lib/commands/UNLINK.js +19 -0
  732. package/.output/server/node_modules/@redis/client/dist/lib/commands/VADD.js +42 -0
  733. package/.output/server/node_modules/@redis/client/dist/lib/commands/VCARD.js +18 -0
  734. package/.output/server/node_modules/@redis/client/dist/lib/commands/VDIM.js +18 -0
  735. package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB.js +21 -0
  736. package/.output/server/node_modules/@redis/client/dist/lib/commands/VEMB_RAW.js +42 -0
  737. package/.output/server/node_modules/@redis/client/dist/lib/commands/VGETATTR.js +21 -0
  738. package/.output/server/node_modules/@redis/client/dist/lib/commands/VINFO.js +27 -0
  739. package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS.js +20 -0
  740. package/.output/server/node_modules/@redis/client/dist/lib/commands/VLINKS_WITHSCORES.js +39 -0
  741. package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANDMEMBER.js +22 -0
  742. package/.output/server/node_modules/@redis/client/dist/lib/commands/VRANGE.js +31 -0
  743. package/.output/server/node_modules/@redis/client/dist/lib/commands/VREM.js +20 -0
  744. package/.output/server/node_modules/@redis/client/dist/lib/commands/VSETATTR.js +27 -0
  745. package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM.js +51 -0
  746. package/.output/server/node_modules/@redis/client/dist/lib/commands/VSIM_WITHSCORES.js +32 -0
  747. package/.output/server/node_modules/@redis/client/dist/lib/commands/WAIT.js +20 -0
  748. package/.output/server/node_modules/@redis/client/dist/lib/commands/XACK.js +23 -0
  749. package/.output/server/node_modules/@redis/client/dist/lib/commands/XACKDEL.js +31 -0
  750. package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD.js +71 -0
  751. package/.output/server/node_modules/@redis/client/dist/lib/commands/XADD_NOMKSTREAM.js +21 -0
  752. package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM.js +43 -0
  753. package/.output/server/node_modules/@redis/client/dist/lib/commands/XAUTOCLAIM_JUSTID.js +35 -0
  754. package/.output/server/node_modules/@redis/client/dist/lib/commands/XCFGSET.js +28 -0
  755. package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM.js +52 -0
  756. package/.output/server/node_modules/@redis/client/dist/lib/commands/XCLAIM_JUSTID.js +31 -0
  757. package/.output/server/node_modules/@redis/client/dist/lib/commands/XDEL.js +24 -0
  758. package/.output/server/node_modules/@redis/client/dist/lib/commands/XDELEX.js +29 -0
  759. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATE.js +29 -0
  760. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_CREATECONSUMER.js +25 -0
  761. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DELCONSUMER.js +25 -0
  762. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_DESTROY.js +24 -0
  763. package/.output/server/node_modules/@redis/client/dist/lib/commands/XGROUP_SETID.js +26 -0
  764. package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_CONSUMERS.js +40 -0
  765. package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_GROUPS.js +46 -0
  766. package/.output/server/node_modules/@redis/client/dist/lib/commands/XINFO_STREAM.js +72 -0
  767. package/.output/server/node_modules/@redis/client/dist/lib/commands/XLEN.js +23 -0
  768. package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING.js +42 -0
  769. package/.output/server/node_modules/@redis/client/dist/lib/commands/XPENDING_RANGE.js +49 -0
  770. package/.output/server/node_modules/@redis/client/dist/lib/commands/XRANGE.js +50 -0
  771. package/.output/server/node_modules/@redis/client/dist/lib/commands/XREAD.js +57 -0
  772. package/.output/server/node_modules/@redis/client/dist/lib/commands/XREADGROUP.js +42 -0
  773. package/.output/server/node_modules/@redis/client/dist/lib/commands/XREVRANGE.js +49 -0
  774. package/.output/server/node_modules/@redis/client/dist/lib/commands/XSETID.js +18 -0
  775. package/.output/server/node_modules/@redis/client/dist/lib/commands/XTRIM.js +36 -0
  776. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD.js +73 -0
  777. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZADD_INCR.js +36 -0
  778. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCARD.js +23 -0
  779. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZCOUNT.js +21 -0
  780. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF.js +16 -0
  781. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFFSTORE.js +18 -0
  782. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZDIFF_WITHSCORES.js +21 -0
  783. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINCRBY.js +19 -0
  784. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER.js +26 -0
  785. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERCARD.js +24 -0
  786. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTERSTORE.js +20 -0
  787. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZINTER_WITHSCORES.js +20 -0
  788. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZLEXCOUNT.js +21 -0
  789. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMPOP.js +47 -0
  790. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZMSCORE.js +25 -0
  791. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX.js +34 -0
  792. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMAX_COUNT.js +19 -0
  793. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN.js +20 -0
  794. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZPOPMIN_COUNT.js +19 -0
  795. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER.js +16 -0
  796. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT.js +21 -0
  797. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANDMEMBER_COUNT_WITHSCORES.js +22 -0
  798. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE.js +45 -0
  799. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYLEX.js +25 -0
  800. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE.js +25 -0
  801. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGEBYSCORE_WITHSCORES.js +22 -0
  802. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGESTORE.js +37 -0
  803. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANGE_WITHSCORES.js +22 -0
  804. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK.js +19 -0
  805. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZRANK_WITHSCORE.js +38 -0
  806. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREM.js +18 -0
  807. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYLEX.js +20 -0
  808. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYRANK.js +19 -0
  809. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREMRANGEBYSCORE.js +20 -0
  810. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZREVRANK.js +19 -0
  811. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCAN.js +26 -0
  812. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZSCORE.js +20 -0
  813. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION.js +21 -0
  814. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNIONSTORE.js +23 -0
  815. package/.output/server/node_modules/@redis/client/dist/lib/commands/ZUNION_WITHSCORES.js +21 -0
  816. package/.output/server/node_modules/@redis/client/dist/lib/commands/generic-transformers.js +492 -0
  817. package/.output/server/node_modules/@redis/client/dist/lib/commands/index.js +1161 -0
  818. package/.output/server/node_modules/@redis/client/dist/lib/errors.js +110 -0
  819. package/.output/server/node_modules/@redis/client/dist/lib/lua-script.js +16 -0
  820. package/.output/server/node_modules/@redis/client/dist/lib/multi-command.js +48 -0
  821. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/client-registry.js +84 -0
  822. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/index.js +81 -0
  823. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/metrics.js +647 -0
  824. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/types.js +120 -0
  825. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/error.util.js +199 -0
  826. package/.output/server/node_modules/@redis/client/dist/lib/opentelemetry/utils/index.js +32 -0
  827. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MASTER.js +18 -0
  828. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_MONITOR.js +17 -0
  829. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_REPLICAS.js +25 -0
  830. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SENTINELS.js +25 -0
  831. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/SENTINEL_SET.js +18 -0
  832. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/commands/index.js +23 -0
  833. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/index.js +1229 -0
  834. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/module.js +10 -0
  835. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/multi-commands.js +115 -0
  836. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/pub-sub-proxy.js +150 -0
  837. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/utils.js +98 -0
  838. package/.output/server/node_modules/@redis/client/dist/lib/sentinel/wait-queue.js +24 -0
  839. package/.output/server/node_modules/@redis/client/dist/lib/single-entry-cache.js +38 -0
  840. package/.output/server/node_modules/@redis/client/dist/lib/utils/digest.js +34 -0
  841. package/.output/server/node_modules/@redis/client/dist/package.json +52 -0
  842. package/.output/server/node_modules/@redis/client/package.json +52 -0
  843. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRAPPEND.js +26 -0
  844. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINDEX.js +31 -0
  845. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRINSERT.js +27 -0
  846. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRLEN.js +23 -0
  847. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRPOP.js +32 -0
  848. package/.output/server/node_modules/@redis/json/dist/lib/commands/ARRTRIM.js +22 -0
  849. package/.output/server/node_modules/@redis/json/dist/lib/commands/CLEAR.js +23 -0
  850. package/.output/server/node_modules/@redis/json/dist/lib/commands/DEBUG_MEMORY.js +23 -0
  851. package/.output/server/node_modules/@redis/json/dist/lib/commands/DEL.js +23 -0
  852. package/.output/server/node_modules/@redis/json/dist/lib/commands/FORGET.js +23 -0
  853. package/.output/server/node_modules/@redis/json/dist/lib/commands/GET.js +24 -0
  854. package/.output/server/node_modules/@redis/json/dist/lib/commands/MERGE.js +22 -0
  855. package/.output/server/node_modules/@redis/json/dist/lib/commands/MGET.js +23 -0
  856. package/.output/server/node_modules/@redis/json/dist/lib/commands/MSET.js +25 -0
  857. package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMINCRBY.js +26 -0
  858. package/.output/server/node_modules/@redis/json/dist/lib/commands/NUMMULTBY.js +25 -0
  859. package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJKEYS.js +23 -0
  860. package/.output/server/node_modules/@redis/json/dist/lib/commands/OBJLEN.js +23 -0
  861. package/.output/server/node_modules/@redis/json/dist/lib/commands/SET.js +35 -0
  862. package/.output/server/node_modules/@redis/json/dist/lib/commands/STRAPPEND.js +26 -0
  863. package/.output/server/node_modules/@redis/json/dist/lib/commands/STRLEN.js +23 -0
  864. package/.output/server/node_modules/@redis/json/dist/lib/commands/TOGGLE.js +20 -0
  865. package/.output/server/node_modules/@redis/json/dist/lib/commands/TYPE.js +29 -0
  866. package/.output/server/node_modules/@redis/json/dist/lib/commands/index.js +91 -0
  867. package/.output/server/node_modules/@redis/json/dist/lib/index.js +9 -0
  868. package/.output/server/node_modules/@redis/json/package.json +36 -0
  869. package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE.js +212 -0
  870. package/.output/server/node_modules/@redis/search/dist/lib/commands/AGGREGATE_WITHCURSOR.js +40 -0
  871. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASADD.js +17 -0
  872. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASDEL.js +16 -0
  873. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALIASUPDATE.js +17 -0
  874. package/.output/server/node_modules/@redis/search/dist/lib/commands/ALTER.js +19 -0
  875. package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_GET.js +23 -0
  876. package/.output/server/node_modules/@redis/search/dist/lib/commands/CONFIG_SET.js +17 -0
  877. package/.output/server/node_modules/@redis/search/dist/lib/commands/CREATE.js +277 -0
  878. package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_DEL.js +17 -0
  879. package/.output/server/node_modules/@redis/search/dist/lib/commands/CURSOR_READ.js +27 -0
  880. package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTADD.js +18 -0
  881. package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDEL.js +18 -0
  882. package/.output/server/node_modules/@redis/search/dist/lib/commands/DICTDUMP.js +19 -0
  883. package/.output/server/node_modules/@redis/search/dist/lib/commands/DROPINDEX.js +24 -0
  884. package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAIN.js +29 -0
  885. package/.output/server/node_modules/@redis/search/dist/lib/commands/EXPLAINCLI.js +26 -0
  886. package/.output/server/node_modules/@redis/search/dist/lib/commands/HYBRID.js +273 -0
  887. package/.output/server/node_modules/@redis/search/dist/lib/commands/INFO.js +106 -0
  888. package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_AGGREGATE.js +58 -0
  889. package/.output/server/node_modules/@redis/search/dist/lib/commands/PROFILE_SEARCH.js +58 -0
  890. package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH.js +160 -0
  891. package/.output/server/node_modules/@redis/search/dist/lib/commands/SEARCH_NOCONTENT.js +34 -0
  892. package/.output/server/node_modules/@redis/search/dist/lib/commands/SPELLCHECK.js +56 -0
  893. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGADD.js +28 -0
  894. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGDEL.js +18 -0
  895. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET.js +27 -0
  896. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHPAYLOADS.js +36 -0
  897. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES.js +51 -0
  898. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGGET_WITHSCORES_WITHPAYLOADS.js +53 -0
  899. package/.output/server/node_modules/@redis/search/dist/lib/commands/SUGLEN.js +15 -0
  900. package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNDUMP.js +27 -0
  901. package/.output/server/node_modules/@redis/search/dist/lib/commands/SYNUPDATE.js +24 -0
  902. package/.output/server/node_modules/@redis/search/dist/lib/commands/TAGVALS.js +20 -0
  903. package/.output/server/node_modules/@redis/search/dist/lib/commands/_LIST.js +18 -0
  904. package/.output/server/node_modules/@redis/search/dist/lib/commands/index.js +125 -0
  905. package/.output/server/node_modules/@redis/search/dist/lib/dialect/default.js +5 -0
  906. package/.output/server/node_modules/@redis/search/dist/lib/index.js +17 -0
  907. package/.output/server/node_modules/@redis/search/package.json +37 -0
  908. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ADD.js +29 -0
  909. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/ALTER.js +23 -0
  910. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATE.js +24 -0
  911. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/CREATERULE.js +48 -0
  912. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DECRBY.js +40 -0
  913. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DEL.js +20 -0
  914. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/DELETERULE.js +17 -0
  915. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/GET.js +33 -0
  916. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INCRBY.js +40 -0
  917. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO.js +58 -0
  918. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/INFO_DEBUG.js +46 -0
  919. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MADD.js +20 -0
  920. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET.js +57 -0
  921. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_SELECTED_LABELS.js +23 -0
  922. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MGET_WITHLABELS.js +43 -0
  923. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE.js +44 -0
  924. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_GROUPBY.js +96 -0
  925. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS.js +51 -0
  926. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_SELECTED_LABELS_GROUPBY.js +52 -0
  927. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS.js +59 -0
  928. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MRANGE_WITHLABELS_GROUPBY.js +52 -0
  929. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE.js +41 -0
  930. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_GROUPBY.js +41 -0
  931. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS.js +41 -0
  932. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_SELECTED_LABELS_GROUPBY.js +42 -0
  933. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS.js +41 -0
  934. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/MREVRANGE_WITHLABELS_GROUPBY.js +41 -0
  935. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/QUERYINDEX.js +20 -0
  936. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/RANGE.js +66 -0
  937. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/REVRANGE.js +40 -0
  938. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/helpers.js +237 -0
  939. package/.output/server/node_modules/@redis/time-series/dist/lib/commands/index.js +113 -0
  940. package/.output/server/node_modules/@redis/time-series/dist/lib/index.js +17 -0
  941. package/.output/server/node_modules/@redis/time-series/package.json +36 -0
  942. package/.output/server/node_modules/aws-ssl-profiles/lib/index.js +13 -0
  943. package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/defaults.js +2888 -0
  944. package/.output/server/node_modules/aws-ssl-profiles/lib/profiles/ca/proxies.js +111 -0
  945. package/.output/server/node_modules/aws-ssl-profiles/package.json +52 -0
  946. package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  947. package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
  948. package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
  949. package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  950. package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  951. package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  952. package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  953. package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  954. package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  955. package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  956. package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
  957. package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  958. package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  959. package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
  960. package/.output/server/node_modules/better-sqlite3/package.json +59 -0
  961. package/.output/server/node_modules/cluster-key-slot/lib/index.js +166 -0
  962. package/.output/server/node_modules/cluster-key-slot/package.json +56 -0
  963. package/.output/server/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
  964. package/.output/server/node_modules/cpu-features/lib/index.js +5 -0
  965. package/.output/server/node_modules/cpu-features/package.json +40 -0
  966. package/.output/server/node_modules/denque/index.js +481 -0
  967. package/.output/server/node_modules/denque/package.json +58 -0
  968. package/.output/server/node_modules/generate-function/index.js +181 -0
  969. package/.output/server/node_modules/generate-function/package.json +32 -0
  970. package/.output/server/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  971. package/.output/server/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  972. package/.output/server/node_modules/iconv-lite/encodings/index.js +23 -0
  973. package/.output/server/node_modules/iconv-lite/encodings/internal.js +218 -0
  974. package/.output/server/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  975. package/.output/server/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  976. package/.output/server/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  977. package/.output/server/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  978. package/.output/server/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  979. package/.output/server/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  980. package/.output/server/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  981. package/.output/server/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  982. package/.output/server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  983. package/.output/server/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  984. package/.output/server/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  985. package/.output/server/node_modules/iconv-lite/encodings/utf16.js +187 -0
  986. package/.output/server/node_modules/iconv-lite/encodings/utf32.js +307 -0
  987. package/.output/server/node_modules/iconv-lite/encodings/utf7.js +283 -0
  988. package/.output/server/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  989. package/.output/server/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  990. package/.output/server/node_modules/iconv-lite/lib/index.js +182 -0
  991. package/.output/server/node_modules/iconv-lite/lib/streams.js +105 -0
  992. package/.output/server/node_modules/iconv-lite/package.json +70 -0
  993. package/.output/server/node_modules/is-property/is-property.js +5 -0
  994. package/.output/server/node_modules/is-property/package.json +36 -0
  995. package/.output/server/node_modules/js-base64/base64.mjs +301 -0
  996. package/.output/server/node_modules/js-base64/package.json +43 -0
  997. package/.output/server/node_modules/long/package.json +58 -0
  998. package/.output/server/node_modules/long/umd/index.js +1622 -0
  999. package/.output/server/node_modules/long/umd/package.json +3 -0
  1000. package/.output/server/node_modules/lru.min/lib/index.js +248 -0
  1001. package/.output/server/node_modules/lru.min/package.json +87 -0
  1002. package/.output/server/node_modules/mysql2/index.js +77 -0
  1003. package/.output/server/node_modules/mysql2/lib/auth_41.js +95 -0
  1004. package/.output/server/node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js +115 -0
  1005. package/.output/server/node_modules/mysql2/lib/auth_plugins/index.js +8 -0
  1006. package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_clear_password.js +17 -0
  1007. package/.output/server/node_modules/mysql2/lib/auth_plugins/mysql_native_password.js +34 -0
  1008. package/.output/server/node_modules/mysql2/lib/auth_plugins/sha256_password.js +74 -0
  1009. package/.output/server/node_modules/mysql2/lib/base/connection.js +1139 -0
  1010. package/.output/server/node_modules/mysql2/lib/base/pool.js +343 -0
  1011. package/.output/server/node_modules/mysql2/lib/commands/auth_switch.js +151 -0
  1012. package/.output/server/node_modules/mysql2/lib/commands/binlog_dump.js +109 -0
  1013. package/.output/server/node_modules/mysql2/lib/commands/change_user.js +68 -0
  1014. package/.output/server/node_modules/mysql2/lib/commands/client_handshake.js +386 -0
  1015. package/.output/server/node_modules/mysql2/lib/commands/close_statement.js +18 -0
  1016. package/.output/server/node_modules/mysql2/lib/commands/command.js +54 -0
  1017. package/.output/server/node_modules/mysql2/lib/commands/execute.js +116 -0
  1018. package/.output/server/node_modules/mysql2/lib/commands/index.js +29 -0
  1019. package/.output/server/node_modules/mysql2/lib/commands/ping.js +36 -0
  1020. package/.output/server/node_modules/mysql2/lib/commands/prepare.js +143 -0
  1021. package/.output/server/node_modules/mysql2/lib/commands/query.js +365 -0
  1022. package/.output/server/node_modules/mysql2/lib/commands/quit.js +29 -0
  1023. package/.output/server/node_modules/mysql2/lib/commands/register_slave.js +27 -0
  1024. package/.output/server/node_modules/mysql2/lib/commands/reset_connection.js +29 -0
  1025. package/.output/server/node_modules/mysql2/lib/commands/server_handshake.js +205 -0
  1026. package/.output/server/node_modules/mysql2/lib/compressed_protocol.js +153 -0
  1027. package/.output/server/node_modules/mysql2/lib/connection.js +12 -0
  1028. package/.output/server/node_modules/mysql2/lib/connection_config.js +299 -0
  1029. package/.output/server/node_modules/mysql2/lib/constants/charset_encodings.js +317 -0
  1030. package/.output/server/node_modules/mysql2/lib/constants/charsets.js +317 -0
  1031. package/.output/server/node_modules/mysql2/lib/constants/client.js +39 -0
  1032. package/.output/server/node_modules/mysql2/lib/constants/commands.js +37 -0
  1033. package/.output/server/node_modules/mysql2/lib/constants/cursor.js +9 -0
  1034. package/.output/server/node_modules/mysql2/lib/constants/encoding_charset.js +50 -0
  1035. package/.output/server/node_modules/mysql2/lib/constants/errors.js +3973 -0
  1036. package/.output/server/node_modules/mysql2/lib/constants/field_flags.js +20 -0
  1037. package/.output/server/node_modules/mysql2/lib/constants/server_status.js +44 -0
  1038. package/.output/server/node_modules/mysql2/lib/constants/session_track.js +11 -0
  1039. package/.output/server/node_modules/mysql2/lib/constants/ssl_profiles.js +11 -0
  1040. package/.output/server/node_modules/mysql2/lib/constants/types.js +64 -0
  1041. package/.output/server/node_modules/mysql2/lib/create_connection.js +10 -0
  1042. package/.output/server/node_modules/mysql2/lib/create_pool.js +10 -0
  1043. package/.output/server/node_modules/mysql2/lib/create_pool_cluster.js +9 -0
  1044. package/.output/server/node_modules/mysql2/lib/helpers.js +83 -0
  1045. package/.output/server/node_modules/mysql2/lib/packet_parser.js +195 -0
  1046. package/.output/server/node_modules/mysql2/lib/packets/auth_next_factor.js +35 -0
  1047. package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request.js +38 -0
  1048. package/.output/server/node_modules/mysql2/lib/packets/auth_switch_request_more_data.js +33 -0
  1049. package/.output/server/node_modules/mysql2/lib/packets/auth_switch_response.js +30 -0
  1050. package/.output/server/node_modules/mysql2/lib/packets/binary_row.js +95 -0
  1051. package/.output/server/node_modules/mysql2/lib/packets/binlog_dump.js +33 -0
  1052. package/.output/server/node_modules/mysql2/lib/packets/binlog_query_statusvars.js +115 -0
  1053. package/.output/server/node_modules/mysql2/lib/packets/change_user.js +97 -0
  1054. package/.output/server/node_modules/mysql2/lib/packets/close_statement.js +21 -0
  1055. package/.output/server/node_modules/mysql2/lib/packets/column_definition.js +291 -0
  1056. package/.output/server/node_modules/mysql2/lib/packets/encode_parameter.js +69 -0
  1057. package/.output/server/node_modules/mysql2/lib/packets/execute.js +177 -0
  1058. package/.output/server/node_modules/mysql2/lib/packets/handshake.js +112 -0
  1059. package/.output/server/node_modules/mysql2/lib/packets/handshake_response.js +173 -0
  1060. package/.output/server/node_modules/mysql2/lib/packets/index.js +154 -0
  1061. package/.output/server/node_modules/mysql2/lib/packets/packet.js +978 -0
  1062. package/.output/server/node_modules/mysql2/lib/packets/prepare_statement.js +27 -0
  1063. package/.output/server/node_modules/mysql2/lib/packets/prepared_statement_header.js +16 -0
  1064. package/.output/server/node_modules/mysql2/lib/packets/query.js +102 -0
  1065. package/.output/server/node_modules/mysql2/lib/packets/register_slave.js +46 -0
  1066. package/.output/server/node_modules/mysql2/lib/packets/reset_connection.js +17 -0
  1067. package/.output/server/node_modules/mysql2/lib/packets/resultset_header.js +124 -0
  1068. package/.output/server/node_modules/mysql2/lib/packets/ssl_request.js +25 -0
  1069. package/.output/server/node_modules/mysql2/lib/packets/text_row.js +47 -0
  1070. package/.output/server/node_modules/mysql2/lib/parsers/binary_parser.js +235 -0
  1071. package/.output/server/node_modules/mysql2/lib/parsers/parser_cache.js +68 -0
  1072. package/.output/server/node_modules/mysql2/lib/parsers/static_binary_parser.js +213 -0
  1073. package/.output/server/node_modules/mysql2/lib/parsers/static_text_parser.js +152 -0
  1074. package/.output/server/node_modules/mysql2/lib/parsers/string.js +50 -0
  1075. package/.output/server/node_modules/mysql2/lib/parsers/text_parser.js +214 -0
  1076. package/.output/server/node_modules/mysql2/lib/pool.js +12 -0
  1077. package/.output/server/node_modules/mysql2/lib/pool_cluster.js +375 -0
  1078. package/.output/server/node_modules/mysql2/lib/pool_config.js +34 -0
  1079. package/.output/server/node_modules/mysql2/lib/pool_connection.js +81 -0
  1080. package/.output/server/node_modules/mysql2/lib/promise/capture_local_err.js +25 -0
  1081. package/.output/server/node_modules/mysql2/lib/promise/connection.js +237 -0
  1082. package/.output/server/node_modules/mysql2/lib/promise/inherit_events.js +27 -0
  1083. package/.output/server/node_modules/mysql2/lib/promise/make_done_cb.js +16 -0
  1084. package/.output/server/node_modules/mysql2/lib/promise/pool.js +118 -0
  1085. package/.output/server/node_modules/mysql2/lib/promise/pool_cluster.js +59 -0
  1086. package/.output/server/node_modules/mysql2/lib/promise/pool_connection.js +19 -0
  1087. package/.output/server/node_modules/mysql2/lib/promise/prepared_statement_info.js +35 -0
  1088. package/.output/server/node_modules/mysql2/lib/server.js +37 -0
  1089. package/.output/server/node_modules/mysql2/lib/tracing.js +81 -0
  1090. package/.output/server/node_modules/mysql2/package.json +95 -0
  1091. package/.output/server/node_modules/mysql2/promise.js +209 -0
  1092. package/.output/server/node_modules/named-placeholders/index.js +179 -0
  1093. package/.output/server/node_modules/named-placeholders/package.json +36 -0
  1094. package/.output/server/node_modules/oracledb/index.js +27 -0
  1095. package/.output/server/node_modules/oracledb/lib/aqDeqOptions.js +186 -0
  1096. package/.output/server/node_modules/oracledb/lib/aqEnqOptions.js +81 -0
  1097. package/.output/server/node_modules/oracledb/lib/aqMessage.js +149 -0
  1098. package/.output/server/node_modules/oracledb/lib/aqQueue.js +293 -0
  1099. package/.output/server/node_modules/oracledb/lib/connection.js +1842 -0
  1100. package/.output/server/node_modules/oracledb/lib/constants.js +210 -0
  1101. package/.output/server/node_modules/oracledb/lib/dbObject.js +606 -0
  1102. package/.output/server/node_modules/oracledb/lib/errors.js +1046 -0
  1103. package/.output/server/node_modules/oracledb/lib/future.js +53 -0
  1104. package/.output/server/node_modules/oracledb/lib/impl/aqDeqOptions.js +206 -0
  1105. package/.output/server/node_modules/oracledb/lib/impl/aqEnqOptions.js +89 -0
  1106. package/.output/server/node_modules/oracledb/lib/impl/aqMessage.js +134 -0
  1107. package/.output/server/node_modules/oracledb/lib/impl/aqQueue.js +82 -0
  1108. package/.output/server/node_modules/oracledb/lib/impl/base.js +45 -0
  1109. package/.output/server/node_modules/oracledb/lib/impl/connection.js +671 -0
  1110. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/buffer.js +1214 -0
  1111. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/constants.js +110 -0
  1112. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/oson.js +852 -0
  1113. package/.output/server/node_modules/oracledb/lib/impl/datahandlers/vector.js +197 -0
  1114. package/.output/server/node_modules/oracledb/lib/impl/dbObject.js +159 -0
  1115. package/.output/server/node_modules/oracledb/lib/impl/index.js +59 -0
  1116. package/.output/server/node_modules/oracledb/lib/impl/lob.js +113 -0
  1117. package/.output/server/node_modules/oracledb/lib/impl/pool.js +230 -0
  1118. package/.output/server/node_modules/oracledb/lib/impl/resultset.js +307 -0
  1119. package/.output/server/node_modules/oracledb/lib/impl/sodaCollection.js +175 -0
  1120. package/.output/server/node_modules/oracledb/lib/impl/sodaDatabase.js +82 -0
  1121. package/.output/server/node_modules/oracledb/lib/impl/sodaDocCursor.js +64 -0
  1122. package/.output/server/node_modules/oracledb/lib/impl/sodaDocument.js +89 -0
  1123. package/.output/server/node_modules/oracledb/lib/impl/sodaOperation.js +110 -0
  1124. package/.output/server/node_modules/oracledb/lib/lob.js +315 -0
  1125. package/.output/server/node_modules/oracledb/lib/oracledb.js +1716 -0
  1126. package/.output/server/node_modules/oracledb/lib/pool.js +873 -0
  1127. package/.output/server/node_modules/oracledb/lib/poolStatistics.js +143 -0
  1128. package/.output/server/node_modules/oracledb/lib/queryStream.js +119 -0
  1129. package/.output/server/node_modules/oracledb/lib/resultset.js +368 -0
  1130. package/.output/server/node_modules/oracledb/lib/settings.js +221 -0
  1131. package/.output/server/node_modules/oracledb/lib/sodaCollection.js +284 -0
  1132. package/.output/server/node_modules/oracledb/lib/sodaDatabase.js +176 -0
  1133. package/.output/server/node_modules/oracledb/lib/sodaDocCursor.js +82 -0
  1134. package/.output/server/node_modules/oracledb/lib/sodaDocument.js +125 -0
  1135. package/.output/server/node_modules/oracledb/lib/sodaOperation.js +236 -0
  1136. package/.output/server/node_modules/oracledb/lib/thin/aq.js +475 -0
  1137. package/.output/server/node_modules/oracledb/lib/thin/connection.js +1504 -0
  1138. package/.output/server/node_modules/oracledb/lib/thin/dbObject.js +737 -0
  1139. package/.output/server/node_modules/oracledb/lib/thin/index.js +40 -0
  1140. package/.output/server/node_modules/oracledb/lib/thin/lob.js +380 -0
  1141. package/.output/server/node_modules/oracledb/lib/thin/pool.js +738 -0
  1142. package/.output/server/node_modules/oracledb/lib/thin/protocol/capabilities.js +145 -0
  1143. package/.output/server/node_modules/oracledb/lib/thin/protocol/constants.js +872 -0
  1144. package/.output/server/node_modules/oracledb/lib/thin/protocol/encryptDecrypt.js +197 -0
  1145. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqArray.js +238 -0
  1146. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqBase.js +305 -0
  1147. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqDeq.js +164 -0
  1148. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/aqEnq.js +135 -0
  1149. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/auth.js +376 -0
  1150. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/base.js +568 -0
  1151. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/commit.js +56 -0
  1152. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/dataType.js +401 -0
  1153. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/execute.js +358 -0
  1154. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fastAuth.js +83 -0
  1155. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/fetch.js +64 -0
  1156. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/index.js +59 -0
  1157. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/lobOp.js +195 -0
  1158. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/logOff.js +52 -0
  1159. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/ping.js +56 -0
  1160. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/protocol.js +97 -0
  1161. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/rollback.js +56 -0
  1162. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/sessionRelease.js +60 -0
  1163. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionChangeState.js +99 -0
  1164. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/transactionSwitch.js +147 -0
  1165. package/.output/server/node_modules/oracledb/lib/thin/protocol/messages/withData.js +920 -0
  1166. package/.output/server/node_modules/oracledb/lib/thin/protocol/packet.js +631 -0
  1167. package/.output/server/node_modules/oracledb/lib/thin/protocol/protocol.js +240 -0
  1168. package/.output/server/node_modules/oracledb/lib/thin/protocol/utils.js +82 -0
  1169. package/.output/server/node_modules/oracledb/lib/thin/resultSet.js +122 -0
  1170. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ANO.js +438 -0
  1171. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/connStrategy.js +316 -0
  1172. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/constants.js +210 -0
  1173. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ezConnectResolver.js +466 -0
  1174. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/navNodes.js +904 -0
  1175. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/networkSession.js +733 -0
  1176. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js +609 -0
  1177. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/nvStrToNvPair.js +780 -0
  1178. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/packet.js +439 -0
  1179. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/paramParser.js +239 -0
  1180. package/.output/server/node_modules/oracledb/lib/thin/sqlnet/sessionAtts.js +198 -0
  1181. package/.output/server/node_modules/oracledb/lib/thin/statement.js +573 -0
  1182. package/.output/server/node_modules/oracledb/lib/thin/statementCache.js +195 -0
  1183. package/.output/server/node_modules/oracledb/lib/thin/util.js +254 -0
  1184. package/.output/server/node_modules/oracledb/lib/traceHandler.js +133 -0
  1185. package/.output/server/node_modules/oracledb/lib/transformer.js +279 -0
  1186. package/.output/server/node_modules/oracledb/lib/types.js +592 -0
  1187. package/.output/server/node_modules/oracledb/lib/util.js +648 -0
  1188. package/.output/server/node_modules/oracledb/lib/version.js +36 -0
  1189. package/.output/server/node_modules/oracledb/package.json +48 -0
  1190. package/.output/server/node_modules/promise-limit/index.js +88 -0
  1191. package/.output/server/node_modules/promise-limit/package.json +39 -0
  1192. package/.output/server/node_modules/redis/dist/index.js +77 -0
  1193. package/.output/server/node_modules/redis/package.json +36 -0
  1194. package/.output/server/node_modules/sql-escaper/lib/index.js +398 -0
  1195. package/.output/server/node_modules/sql-escaper/package.json +81 -0
  1196. package/.output/server/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
  1197. package/.output/server/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  1198. package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
  1199. package/.output/server/node_modules/ws/lib/constants.js +19 -0
  1200. package/.output/server/node_modules/ws/lib/event-target.js +292 -0
  1201. package/.output/server/node_modules/ws/lib/extension.js +203 -0
  1202. package/.output/server/node_modules/ws/lib/limiter.js +55 -0
  1203. package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
  1204. package/.output/server/node_modules/ws/lib/receiver.js +706 -0
  1205. package/.output/server/node_modules/ws/lib/sender.js +602 -0
  1206. package/.output/server/node_modules/ws/lib/stream.js +161 -0
  1207. package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
  1208. package/.output/server/node_modules/ws/lib/validation.js +152 -0
  1209. package/.output/server/node_modules/ws/lib/websocket-server.js +554 -0
  1210. package/.output/server/node_modules/ws/lib/websocket.js +1393 -0
  1211. package/.output/server/node_modules/ws/package.json +69 -0
  1212. package/.output/server/node_modules/ws/wrapper.mjs +8 -0
  1213. package/.output/server/package.json +29 -18
  1214. package/package.json +9 -3
  1215. package/.output/public/_nuxt/0-wJGyFY.js +0 -2
  1216. package/.output/public/_nuxt/1ntlIJ3J.js +0 -61
  1217. package/.output/public/_nuxt/3c6UPAJG.js +0 -73
  1218. package/.output/public/_nuxt/ACQvpkWm.js +0 -15
  1219. package/.output/public/_nuxt/B-5Px-78.js +0 -1
  1220. package/.output/public/_nuxt/B2GYb2Zp.js +0 -34
  1221. package/.output/public/_nuxt/B2RqwDKD.js +0 -1
  1222. package/.output/public/_nuxt/B8ibHW1N.js +0 -53
  1223. package/.output/public/_nuxt/B9-NZWuC.js +0 -4
  1224. package/.output/public/_nuxt/BBGY5Dij.js +0 -70
  1225. package/.output/public/_nuxt/BC7xWBZm.js +0 -1
  1226. package/.output/public/_nuxt/BCC0qnRS.js +0 -1
  1227. package/.output/public/_nuxt/BEqwcled.js +0 -65
  1228. package/.output/public/_nuxt/BHBluah9.js +0 -39
  1229. package/.output/public/_nuxt/BKKBkPNN.js +0 -160
  1230. package/.output/public/_nuxt/BKltSiU0.js +0 -1
  1231. package/.output/public/_nuxt/BKokR8_i.js +0 -2
  1232. package/.output/public/_nuxt/BL9A1tZd.js +0 -7
  1233. package/.output/public/_nuxt/BOzTRnyW.js +0 -1
  1234. package/.output/public/_nuxt/BP3TGvlW.js +0 -36
  1235. package/.output/public/_nuxt/BPj7cOdr.js +0 -9
  1236. package/.output/public/_nuxt/BSs9H74b.js +0 -1
  1237. package/.output/public/_nuxt/BTp4hJJX.js +0 -30
  1238. package/.output/public/_nuxt/BUolzwzd.js +0 -1
  1239. package/.output/public/_nuxt/BWSKnXVC.js +0 -1
  1240. package/.output/public/_nuxt/BX8ZW8Wz.js +0 -1
  1241. package/.output/public/_nuxt/BZOx0xl6.js +0 -1
  1242. package/.output/public/_nuxt/B_IzdKBm.js +0 -1
  1243. package/.output/public/_nuxt/BaseCodeEditor.SAr2eD8R.css +0 -1
  1244. package/.output/public/_nuxt/BbHeTL4H.js +0 -1
  1245. package/.output/public/_nuxt/Bdd_MGHp.js +0 -1
  1246. package/.output/public/_nuxt/Bdtn2mn5.js +0 -1
  1247. package/.output/public/_nuxt/Bf6dfiAn.js +0 -1
  1248. package/.output/public/_nuxt/BfStSYv5.js +0 -10
  1249. package/.output/public/_nuxt/BiCaG3fA.js +0 -1
  1250. package/.output/public/_nuxt/BiZhfq--.js +0 -1
  1251. package/.output/public/_nuxt/Bj9pfQd-.js +0 -10
  1252. package/.output/public/_nuxt/BjU0QAaV.js +0 -732
  1253. package/.output/public/_nuxt/Bpvd5Z9l.js +0 -132
  1254. package/.output/public/_nuxt/BvXVax75.js +0 -162
  1255. package/.output/public/_nuxt/BwI9KIOm.js +0 -255
  1256. package/.output/public/_nuxt/C-3-JfbB.js +0 -1
  1257. package/.output/public/_nuxt/C-xlKweX.js +0 -1
  1258. package/.output/public/_nuxt/CEj-unU2.js +0 -1
  1259. package/.output/public/_nuxt/CEza5aSi.js +0 -1
  1260. package/.output/public/_nuxt/CJWptbcK.js +0 -1
  1261. package/.output/public/_nuxt/CKSjfllY.js +0 -1
  1262. package/.output/public/_nuxt/CMpNcsXd.js +0 -12
  1263. package/.output/public/_nuxt/CPabAXsJ.js +0 -24
  1264. package/.output/public/_nuxt/CPipTUnI.js +0 -152
  1265. package/.output/public/_nuxt/CQ45OBWa.js +0 -89
  1266. package/.output/public/_nuxt/CQAA248G.js +0 -1
  1267. package/.output/public/_nuxt/CRM1vXw3.js +0 -2
  1268. package/.output/public/_nuxt/CUIMPQKu.js +0 -70
  1269. package/.output/public/_nuxt/CUvvUJMD.js +0 -1
  1270. package/.output/public/_nuxt/CWE6B2ZO.js +0 -1
  1271. package/.output/public/_nuxt/CY1oztNj.js +0 -1
  1272. package/.output/public/_nuxt/Cb_5VLq-.js +0 -1
  1273. package/.output/public/_nuxt/Cc9Pv3NC.js +0 -67
  1274. package/.output/public/_nuxt/CdeKF_Y5.js +0 -1
  1275. package/.output/public/_nuxt/Ceqb0tnW.js +0 -9
  1276. package/.output/public/_nuxt/Cf4SYIMN.js +0 -15
  1277. package/.output/public/_nuxt/CfJy-WiZ.js +0 -2
  1278. package/.output/public/_nuxt/Ch9DdZ1v.js +0 -1
  1279. package/.output/public/_nuxt/Chnnd034.js +0 -1
  1280. package/.output/public/_nuxt/CmPpU8kK.js +0 -7
  1281. package/.output/public/_nuxt/CoTGLOo-.js +0 -10
  1282. package/.output/public/_nuxt/CqvBmMuN.js +0 -1
  1283. package/.output/public/_nuxt/CtJG7C0n.js +0 -1
  1284. package/.output/public/_nuxt/Cv13FokC.js +0 -24
  1285. package/.output/public/_nuxt/CyIart-B.js +0 -1
  1286. package/.output/public/_nuxt/Czb-ugrz.js +0 -1
  1287. package/.output/public/_nuxt/D0HVzqS-.js +0 -1
  1288. package/.output/public/_nuxt/D5MxrHN6.js +0 -1
  1289. package/.output/public/_nuxt/DBC_DJ4H.js +0 -292
  1290. package/.output/public/_nuxt/DD0_MMyC.js +0 -22
  1291. package/.output/public/_nuxt/DLBa45iT.js +0 -68
  1292. package/.output/public/_nuxt/DNX5WjhQ.js +0 -1
  1293. package/.output/public/_nuxt/DS5KvVtc.js +0 -1
  1294. package/.output/public/_nuxt/DeHEBoXc.js +0 -43
  1295. package/.output/public/_nuxt/DiVOI330.js +0 -1
  1296. package/.output/public/_nuxt/DkFAxPAy.js +0 -162
  1297. package/.output/public/_nuxt/DonU4d08.js +0 -3
  1298. package/.output/public/_nuxt/Dsj6LIQK.js +0 -220
  1299. package/.output/public/_nuxt/DuEMN8L_.js +0 -189
  1300. package/.output/public/_nuxt/Dv-XdIM2.js +0 -68
  1301. package/.output/public/_nuxt/DyxiJtlL.js +0 -72
  1302. package/.output/public/_nuxt/Dzy5OQn7.js +0 -139
  1303. package/.output/public/_nuxt/EJAhTysQ.js +0 -1
  1304. package/.output/public/_nuxt/GoTwJjoS.js +0 -39
  1305. package/.output/public/_nuxt/L22G0LO0.js +0 -2
  1306. package/.output/public/_nuxt/MT_t-3iM.js +0 -145
  1307. package/.output/public/_nuxt/NPxge8Vj.js +0 -1
  1308. package/.output/public/_nuxt/PuW66QXY.js +0 -6
  1309. package/.output/public/_nuxt/RVJfUWby.js +0 -1
  1310. package/.output/public/_nuxt/Vvsm7Zcb.js +0 -1
  1311. package/.output/public/_nuxt/Yhg2AuOM.js +0 -1
  1312. package/.output/public/_nuxt/Yzrsuije.js +0 -1
  1313. package/.output/public/_nuxt/_pURwnjj.js +0 -1
  1314. package/.output/public/_nuxt/ak-AMfNO.js +0 -1
  1315. package/.output/public/_nuxt/bTGk4NZ_.js +0 -1
  1316. package/.output/public/_nuxt/builds/meta/b0b2d3d7-8491-43b2-b747-bf8ac00fec15.json +0 -1
  1317. package/.output/public/_nuxt/default.DC7ec2JI.css +0 -1
  1318. package/.output/public/_nuxt/entry.kqv_Ayaq.css +0 -1
  1319. package/.output/public/_nuxt/kehy-5uo.js +0 -1
  1320. package/.output/public/_nuxt/newKnrX1.js +0 -1
  1321. package/.output/public/_nuxt/oXG7qeES.js +0 -1
  1322. package/.output/public/_nuxt/rOvrJUdX.js +0 -1
  1323. package/.output/public/_nuxt/vnfYlYqV.js +0 -1
  1324. package/.output/public/_nuxt/x9AB1FGL.js +0 -3867
  1325. package/.output/server/node_modules/cross-spawn/index.js +0 -39
  1326. package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
  1327. package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
  1328. package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
  1329. package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  1330. package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  1331. package/.output/server/node_modules/cross-spawn/package.json +0 -73
  1332. package/.output/server/node_modules/execa/index.js +0 -268
  1333. package/.output/server/node_modules/execa/lib/command.js +0 -52
  1334. package/.output/server/node_modules/execa/lib/error.js +0 -88
  1335. package/.output/server/node_modules/execa/lib/kill.js +0 -115
  1336. package/.output/server/node_modules/execa/lib/promise.js +0 -46
  1337. package/.output/server/node_modules/execa/lib/stdio.js +0 -52
  1338. package/.output/server/node_modules/execa/lib/stream.js +0 -97
  1339. package/.output/server/node_modules/execa/package.json +0 -74
  1340. package/.output/server/node_modules/get-stream/buffer-stream.js +0 -52
  1341. package/.output/server/node_modules/get-stream/index.js +0 -61
  1342. package/.output/server/node_modules/get-stream/package.json +0 -47
  1343. package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
  1344. package/.output/server/node_modules/human-signals/build/src/main.js +0 -71
  1345. package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -19
  1346. package/.output/server/node_modules/human-signals/build/src/signals.js +0 -35
  1347. package/.output/server/node_modules/human-signals/package.json +0 -64
  1348. package/.output/server/node_modules/is-stream/index.js +0 -28
  1349. package/.output/server/node_modules/is-stream/package.json +0 -42
  1350. package/.output/server/node_modules/isexe/index.js +0 -57
  1351. package/.output/server/node_modules/isexe/mode.js +0 -41
  1352. package/.output/server/node_modules/isexe/package.json +0 -31
  1353. package/.output/server/node_modules/isexe/windows.js +0 -42
  1354. package/.output/server/node_modules/merge-stream/index.js +0 -41
  1355. package/.output/server/node_modules/merge-stream/package.json +0 -19
  1356. package/.output/server/node_modules/mimic-fn/index.js +0 -13
  1357. package/.output/server/node_modules/mimic-fn/package.json +0 -42
  1358. package/.output/server/node_modules/npm-run-path/index.js +0 -47
  1359. package/.output/server/node_modules/npm-run-path/package.json +0 -44
  1360. package/.output/server/node_modules/onetime/index.js +0 -44
  1361. package/.output/server/node_modules/onetime/package.json +0 -43
  1362. package/.output/server/node_modules/path-key/index.js +0 -16
  1363. package/.output/server/node_modules/path-key/package.json +0 -39
  1364. package/.output/server/node_modules/pg-dump-restore/lib/common.js +0 -33
  1365. package/.output/server/node_modules/pg-dump-restore/lib/index.js +0 -9
  1366. package/.output/server/node_modules/pg-dump-restore/lib/pg-dump.js +0 -95
  1367. package/.output/server/node_modules/pg-dump-restore/lib/pg-restore.js +0 -87
  1368. package/.output/server/node_modules/pg-dump-restore/package.json +0 -66
  1369. package/.output/server/node_modules/shebang-command/index.js +0 -19
  1370. package/.output/server/node_modules/shebang-command/package.json +0 -34
  1371. package/.output/server/node_modules/shebang-regex/index.js +0 -2
  1372. package/.output/server/node_modules/shebang-regex/package.json +0 -35
  1373. package/.output/server/node_modules/signal-exit/index.js +0 -202
  1374. package/.output/server/node_modules/signal-exit/package.json +0 -38
  1375. package/.output/server/node_modules/signal-exit/signals.js +0 -53
  1376. package/.output/server/node_modules/strip-final-newline/index.js +0 -16
  1377. package/.output/server/node_modules/strip-final-newline/package.json +0 -40
  1378. package/.output/server/node_modules/which/package.json +0 -43
  1379. package/.output/server/node_modules/which/which.js +0 -125
@@ -0,0 +1,10 @@
1
+ import{b1 as po,bD as fo,r as P,au as Fe,aH as pt,aG as vo,d$ as yo,e0 as go,e1 as ho,e2 as bo,e3 as _o,a3 as $e,c as C,d as Y,aK as Tn,e as x,o as h,f as o,w as m,m as y,t as B,g as e,k as D,l as U,aq as Pe,F as fe,s as ke,n as De,A as le,a6 as ye,e4 as Rt,cz as Rn,e5 as ut,e6 as W,e7 as ft,e8 as wo,cu as xt,cB as an,ct as Co,cG as So,cF as xo,ci as yt,aC as sn,e9 as kt,ea as ln,eb as rn,ec as No,G as we,dL as $n,ed as To,ay as Be,K as Je,ba as Qe,am as Mt,ap as Nt,J as qe,aM as Ze,aP as Ro,dg as $o,i as Ee,bo as lt,aY as he,a_ as be,a0 as Ce,z as A,a$ as _e,bn as cn,bL as dt,b9 as vt,aZ as Ae,df as Io,ee as un,bE as Lt,bF as Bt,bG as Ut,ef as ko,eg as Oo,eh as dn,ei as mn,_ as Vt,h as Kt,bS as qt,x as Qt,y as zt,bk as Xe,C as In,B as jt,ej as Eo,d9 as Ao,bY as pn,bW as Fo,bZ as Ht,D as Do,co as Po,cp as Mo,cq as kn,P as Oe,bm as $t,aB as Tt,b2 as On,c9 as fn,ek as En,a1 as Lo,X as Bo,Z as Uo,el as Vo,em as Ko,en as vn,eo as qo,ep as Qo,q as zo,p as jo,W as Ho,eq as Wo,dq as Go,bx as Yo,av as Jo,dh as Xo,er as yn}from"./BcsKoAPU.js";import{e as An,c as Fn,d as Zo,_ as Dn,a as Pn,b as Mn}from"./DVnDb6ua.js";import{u as xe,r as ze}from"./ioXB9E2w.js";import{d as ea}from"./dWu56FdP.js";import{_ as Ln}from"./Bq7OeLM1.js";import{_ as Bn}from"./BPACuoI0.js";import{_ as Un}from"./Y1gXUmjt.js";import{H as mt,c as ta,d as na,e as oa}from"./CS5akSNT.js";import{c as Vn,u as aa,a as sa,b as la,d as ra,F as ia,e as ca,_ as et}from"./CS9hqyP3.js";import{d as ua,t as da,e as ma}from"./Oe2GG0Lt.js";import{_ as pa}from"./COHOh4Oe.js";import{_ as fa,a as va,b as gn}from"./vhkvHdfO.js";import{_ as Wt}from"./AymhMj9v.js";import{_ as ya,j as ga,k as ha}from"./B73IHAoF.js";import{_ as ba,a as _a,C as j,b as wa}from"./C7BQpy74.js";import{_ as Ca}from"./BoIj4dtd.js";import{_ as Dt,c as hn,a as Ft,e as bn,b as _n}from"./Ca0KO9Xq.js";import{f as wn,a as Sa}from"./DsmBazLf.js";import{b as tt,a as nt}from"./BVmBXPoG.js";import{_ as je,a as He}from"./dNPwafbq.js";import{c as xa,a as Na,p as Ta,b as Ra}from"./D4pAW_0T.js";import{a as $a}from"./-lZvfnzr.js";import"./BWebIWit.js";import"./CSQ0xnqv.js";const Ia=c=>{if(!Array.isArray(c)||c.length===0)return;let t="";c.forEach((r,n)=>{const s=Object.entries(r).map(([v,d])=>`${d}`).join(" ");t+=s,n<c.length-1&&(t+=`
2
+ `)}),navigator.clipboard.writeText(t).catch(r=>{console.error("Failed to copy: ",r)})},Kn=po("quick-query-logs",()=>{const c=yo(),{workspaceId:t,connectionId:r}=fo(),n=P([]),s=({tableName:l,schemaName:_})=>n.value.filter(b=>b.tableName===l&&b.schemaName===_&&b.connectionId===r.value),v=async l=>{if(!r.value||!t.value){console.error("connectionId or schemaId not found");return}let _=`
3
+ ${l.logs}`;l.errorMessage&&(_+=`
4
+ -- Error: ${l.errorMessage}`);const b={...l,logs:_,connectionId:r.value,workspaceId:t.value,createdAt:vo().toISOString(),id:pt()};await c.quickQueryLogStorage.create(b),n.value.push(b)},d=async({tableName:l,schemaName:_})=>{if(!r.value){console.error("connectionId or schemaId not found");return}await c.quickQueryLogStorage.delete({connectionId:r.value,tableName:l,schemaName:_}),await p(r.value)},i=async()=>{if(!r.value){console.error("connectionId not found");return}await c.quickQueryLogStorage.delete({connectionId:r.value}),await p(r.value)},p=async l=>{const _=await c.quickQueryLogStorage.getByContext({connectionId:l});n.value=_};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:i,deleteLogsOfTable:d,createLog:v}},{persist:!1});function ka(c){return ho(bo,c)}function Oa(c){return go(_o,c)}const Ea=({tableName:c,schemaName:t})=>{var d;const r=$e(),{data:n,status:s}=xe("/api/tables/size",{method:"POST",body:{tableName:c,dbConnectionString:(d=r.selectedConnection)==null?void 0:d.connectionString,schema:t},key:`table-size-${c}-${t}`},"$1Ta2y3cNQa");return{tableSize:C(()=>n.value||{}),status:s}},Aa={class:"gap-0 flex flex-col h-full w-full p-2"},Fa={class:"flex flex-col gap-y-1"},Da={class:"flex items-center justify-between w-full"},Pa={class:"text-xs opacity-75"},Ma={class:"flex items-center justify-between gap-4"},La={class:"text-xs opacity-75"},Ba={class:"flex items-center justify-between gap-4"},Ua={class:"text-xs opacity-75"},Va=["onClick"],Ka={class:"flex justify-between text-xs w-full overflow-hidden"},qa=["title"],Qa={class:"opacity-50 w-1/4 min-w-[100px] text-right"},za=Y({__name:"QuickQueryTableSummary",props:{tableName:{},schemaName:{},columns:{},selectedColumnFieldId:{},handleSelectColumn:{type:Function},columnTypes:{}},emits:["resetSelectedCol"],setup(c,{emit:t}){const r=t,{tableSize:n}=Ea({tableName:c.tableName,schemaName:c.schemaName}),s=C(()=>{var d;return(((d=c.columns)==null?void 0:d.map(i=>{var l;const p=(l=c.columnTypes)==null?void 0:l.find(_=>_.name===i.field&&_.name);return p?{...i,type:(p==null?void 0:p.type)||""}:i}))||[]).slice(1)}),v=d=>d==="timestamp without time zone"?"timestamp":d||"";return Tn(d=>{d(()=>{c.selectedColumnFieldId!==void 0&&r("resetSelectedCol")})}),(d,i)=>{const p=An,l=Fn,_=Pe,b=le;return h(),x("div",Aa,[o(l,{class:"py-1 rounded-md"},{default:m(()=>[o(p,{class:"px-2"},{default:m(()=>[y("div",Fa,[y("div",Da,[i[0]||(i[0]=y("span",{class:"text-xs font-medium"},"Table Size:",-1)),y("span",Pa,B(e(n).tableSize),1)]),y("div",Ma,[i[1]||(i[1]=y("span",{class:"text-xs font-medium"},"Data Size:",-1)),y("span",La,B(e(n).dataSize),1)]),y("div",Ba,[i[2]||(i[2]=y("span",{class:"text-xs font-medium"},"Index Size:",-1)),y("span",Ua,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(),D(_,{key:0,title:"No columns",desc:"This table has no columns to display."})):U("",!0),(h(!0),x(fe,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(Zo)(d.selectedColumnFieldId===(f==null?void 0:f.field)&&"bg-accent/90")])},[y("div",{class:"flex items-center gap-2 justify-start p-1",onClick:w=>d.handleSelectColumn(f==null?void 0:f.field)},[o(b,{name:"hugeicons:layout-3-column",class:"size-4 min-w-3"}),y("div",Ka,[y("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,qa),y("span",Qa,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,Va)],2))),128))]),_:1})]),_:1})])}}}),ja=Rn({isSelect:an().optional(),fieldName:xt(),operator:xt().optional(),search:wo(c=>qn(c),Co([xt(),So(),an(),xo()])).optional()}),qn=c=>{if(c!==void 0)return c===null||typeof c=="string"||typeof c=="number"||typeof c=="boolean"?c:typeof c=="bigint"?c.toString():JSON.stringify(c)},Gt=c=>c==null?"":String(c),Ha=c=>t=>c===ye.POSTGRES?`$${t}`:"?",Qn=c=>t=>c===ye.POSTGRES||c===ye.ORACLE?`"${t}"`:`\`${t}\``,Cn=({col:c,op:t})=>({where:`${c} ${t}`,params:[]}),Sn=({col:c,op:t,search:r,nextPlaceholder:n})=>{const s=Gt(r).split(",").map(d=>d.trim()).filter(Boolean);if(!s.length)return{where:"",params:[]};const v=s.map(()=>n()).join(", ");return{where:`${c} ${t} (${v})`,params:s}},xn=({col:c,op:t,search:r})=>({where:`${c} ${t} ${Gt(r)}`,params:[]}),Te=({col:c,op:t,search:r,db:n,nextPlaceholder:s})=>{const v=t.toUpperCase().startsWith("NOT"),d=t.toUpperCase().startsWith("ILIKE"),i=n===ye.POSTGRES&&d?"ILIKE":"LIKE";let p=Gt(r);return t.endsWith("%VALUE%")?p=`%${r}%`:t.endsWith("%VALUE")?p=`%${r}`:t.endsWith("VALUE%")&&(p=`${r}%`),{where:`${n===ye.POSTGRES?`${c}::TEXT`:c} ${v?" NOT ":" "}${i} ${s()}`,params:[p]}},st=({col:c,op:t,search:r,nextPlaceholder:n})=>({where:`${c} ${t} ${n()}`,params:[r]}),zn={[W.IS_NULL]:Cn,[W.IS_NOT_NULL]:Cn,[W.IN]:Sn,[W.NOT_IN]:Sn,[W.BETWEEN]:xn,[W.NOT_BETWEEN]:xn,[W.LIKE]:Te,[W.ILIKE]:Te,[W.LIKE_CONTAINS]:Te,[W.LIKE_PREFIX]:Te,[W.LIKE_SUFFIX]:Te,[W.ILIKE_CONTAINS]:Te,[W.ILIKE_PREFIX]:Te,[W.ILIKE_SUFFIX]:Te,[W.NOT_LIKE_CONTAINS]:Te,[W.NOT_LIKE_PREFIX]:Te,[W.NOT_LIKE_SUFFIX]:Te,[W.NOT_ILIKE_CONTAINS]:Te,[W.NOT_ILIKE_PREFIX]:Te,[W.NOT_ILIKE_SUFFIX]:Te,[W.EQUAL]:st,[W.NOT_EQUAL]:st,[W.LESS]:st,[W.GREATER]:st,[W.LESS_EQUAL]:st,[W.GREATER_EQUAL]:st};function Wa({search:c,columns:t,db:r,op:n,nextPlaceholder:s}){const v=Qn(r),d=zn[n],i=[],p=[];return t.forEach(l=>{const _=v(l),b=d({col:_,op:n,search:c,db:r,nextPlaceholder:s});b.where&&(i.push(b.where),p.push(...b.params))}),{where:i.length?`(${i.join(" OR ")})`:"",params:p}}function Ga({filters:c,db:t,columns:r=[],composeWith:n=ft.AND}){const s=[],v=[];let d=1;const i=Ha(t),p=()=>i(d++),l=Qn(t),_=({where:f,params:w})=>{f&&(s.push(f),v.push(...w))},b=new Set((Rt[t]??Rt[ye.MYSQL]??[]).map(f=>f.value.toUpperCase()));return c.forEach(f=>{if(!(f!=null&&f.isSelect))return;const w=ja.parse(f);if(w.fieldName===ut.AnyField){const S=Wa({search:w.search??"",columns:r,db:t,op:w.operator,nextPlaceholder:p});S.where&&(s.push(S.where),v.push(...S.params));return}if(w.fieldName===ut.RawQuery){if(!w.search)return;s.push(`(${w.search})`);return}const a=l(w.fieldName),g=(w.operator??W.LIKE_CONTAINS).toUpperCase(),u=b.has(g)?g:W.LIKE_CONTAINS;_(zn[u]({col:a,op:u,search:w.search??"",db:t,nextPlaceholder:p}))}),{where:s.length?`WHERE ${s.join(` ${n} `)}`:"",params:v}}function Pt({filters:c,db:t,columns:r=[],composeWith:n}){const{where:s,params:v}=Ga({filters:c,db:t,columns:r,composeWith:n});if(!s)return"";const d=i=>i===null?"NULL":typeof i=="boolean"?i?"TRUE":"FALSE":typeof i=="number"?String(i):`'${String(i).replace(/'/g,"''")}'`;if(t===ye.POSTGRES){let i=s;return v.forEach((p,l)=>{i=i.replace(new RegExp(`\\$${l+1}\\b`,"g"),d(p))}),i}else{let i=0;return s.replace(/\?/g,()=>d(v[i++]))}}function Ya(c){const t=c.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 Ja(c){return[ye.MYSQL,ye.MYSQL2,ye.MARIADB].includes(c)}function Ke(c,t){return Ja(t)?`\`${c.replace(/`/g,"``")}\``:`"${c.replace(/"/g,'""')}"`}function It({schemaName:c,tableName:t,dbType:r}){const n=Ke(t,r);return c?`${Ke(c,r)}.${n}`:n}function Xa({schemaName:c,tableName:t,pKeys:r,update:n,pKeyValue:s,dbType:v}){if(!t||!(r!=null&&r.length)||!n||!Object.keys(n).length)throw new Error("Invalid input: tableName, pKeys, and update object are required");const d=Object.entries(n).map(([l,_])=>_===null?`${Ke(l,v)} = NULL`:typeof _=="string"?`${Ke(l,v)} = '${_.replace(/'/g,"''")}'`:`${Ke(l,v)} = ${_}`).join(", "),i=r.map(l=>`${Ke(l,v)} = '${s[l]}'`).join(" AND ");return`UPDATE ${It({schemaName:c,tableName:t,dbType:v})} SET ${d} WHERE ${i}`}function Za({schemaName:c,tableName:t,pKeys:r,pKeyValue:n,dbType:s}){if(!t||!(r!=null&&r.length))throw new Error("Invalid input: tableName and pKeys are required");const v=r.map(i=>`${Ke(i,s)} = '${n[i]}'`).join(" AND ");return`DELETE FROM ${It({schemaName:c,tableName:t,dbType:s})} WHERE ${v}`}function es({schemaName:c,tableName:t,insertData:r,dbType:n}){if(!t||!r)throw new Error("Invalid input: tableName, insertData object are required");if(!Object.keys(r).length)return`INSERT INTO ${It({schemaName:c,tableName:t,dbType:n})} DEFAULT VALUES`;const s=Object.entries(r).map(([i])=>Ke(i,n)).join(", "),v=Object.values(r).map(i=>i===null?"NULL":typeof i=="string"?`'${i.replace(/'/g,"''")}'`:i).join(", ");return`INSERT INTO ${It({schemaName:c,tableName:t,dbType:n})} (${s}) VALUES (${v})`}function jn(c){const t=c.toLowerCase();if(t.startsWith("_"))return`${jn(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 Hn=({tableName:c,connection:t,primaryKeys:r,columns:n,isPersist:s=!0,schemaName:v,workspaceId:d,connectionId:i,initFilters:p,initComposeWith:l})=>{const _=yt(),b=Kn(),f=P(!1),w=P(""),a=sn({limit:kt,offset:0}),g=P([]),u=sn({}),S=P(!1),N=P(ft.AND),Z=C(()=>{var q;const k=_.tableAppearanceConfigs.nullOrderPreference,L=(q=t.value)==null?void 0:q.type;return k===ln.Unset||L!==ye.POSTGRES&&L!==ye.ORACLE?"":k===ln.NullsFirst?"NULLS FIRST":"NULLS LAST"}),ie=C(()=>{var L;const k=(L=t.value)==null?void 0:L.type;return k===ye.MYSQL||k===ye.MYSQL2||k===ye.MARIADB?q=>`\`${q}\``:q=>`"${q}"`}),J=C(()=>{const k=ie.value;return`${rn} ${k(v)}.${k(c)}`}),ue=C(()=>{var k;return S.value?Pt({columns:n.value,db:((k=t.value)==null?void 0:k.type)||ye.POSTGRES,filters:g.value,composeWith:N.value}):""}),me=C(()=>{let k="";const L=(u==null?void 0:u.order)||"ASC",q=(u==null?void 0:u.columnName)||r.value[0]||n.value[0],te=ie.value;q&&(k=`ORDER BY ${te(q)} ${L}`,Z.value&&(k=`${k} ${Z.value}`));const Ie=`LIMIT ${a.limit}`,Se=`OFFSET ${a.offset}`;return`${rn} ${te(v)}.${te(c)} ${ue.value||""} ${k} ${Ie} ${Se}`}),pe=C(()=>{const k=ie.value;return`${No} ${k(v)}.${k(c)} ${ue.value||""}`}),oe=(k,L=0,q,te)=>{b.createLog({tableName:c,schemaName:v,logs:k,queryTime:L,error:q,errorMessage:te})},{data:de,status:Ne,refresh:T}=xe("/api/query/execute",{method:"POST",body:{query:me,...we(t.value)},watch:!1,immediate:!1,key:c,cache:"default",onResponseError:k=>{var q,te,Ie,Se;const L=(te=(q=k.response)==null?void 0:q._data)==null?void 0:te.data;f.value=!0,w.value=((Se=(Ie=k.response)==null?void 0:Ie._data)==null?void 0:Se.message)||"",oe(me.value,0,L,w.value)},onResponse:({response:k})=>{var L;k.ok&&oe(me.value,(L=k._data)==null?void 0:L.queryTime)}},"$CR5sijiGqB"),{refresh:E,data:H,status:I}=xe("/api/query/execute",{method:"POST",body:{query:pe,...we(t.value)},watch:!1,immediate:!1,key:`${c}-count`,cache:"default",onResponse:({response:k})=>{var L;k.ok&&oe(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),R=C(()=>a.offset>0),$=({limit:k,offset:L})=>{k<=0||L<0||(a.limit=k,a.offset=L,T())},F=({columnName:k,order:L})=>{u.columnName=k,u.order=L,T()},M=()=>{K&&(a.offset+=a.limit,T())},O=()=>{if(!R)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(),E()},ae=()=>{a.offset=0,T(),E()},ne=()=>To.queryBuilderKey((d==null?void 0:d.value)??"",(i==null?void 0:i.value)??"",v,c);Fe([g,a,u,S,N],ea(()=>{if(!s)return;const k=ne();localStorage.setItem(k,JSON.stringify({filters:g.value,pagination:{...a},orderBy:{...u},isShowFilters:S.value,composeWith:N.value}))},$n),{deep:!0}),(()=>{if(!s){p&&(g.value=p,S.value=!0),l&&(N.value=l);return}const k=ne(),L=localStorage.getItem(k),q=L?JSON.parse(L):null;if(q){const{filters:te,pagination:Ie,orderBy:Se,isShowFilters:Ge,composeWith:Me}=q;Se&&(u.columnName=Se.columnName,u.order=Se.order),Ie&&(a.limit=Ie.limit,a.offset=Ie.offset),te&&(g.value=te),Me&&(N.value=Me),S.value=!!Ge}})();const ce=C(()=>Ne.value==="pending"),ge=C(()=>{var k;return((k=de.value)==null?void 0:k.result)||[]});return{whereClauses:ue,pagination:a,queryString:me,onUpdatePagination:$,isAllowNextPage:K,isAllowPreviousPage:R,onNextPage:M,onPreviousPage:O,queryCountString:pe,data:ge,isFetchingTableData:ce,refreshTableData:T,refreshCount:E,totalRows:V,onApplyNewFilter:ae,baseQueryString:J,openErrorModal:f,onUpdateOrderBy:F,orderBy:u,errorMessage:w,filters:g,addHistoryLog:oe,isShowFilters:S,onChangeComposeWith:Q,composeWith:N}};var re=(c=>(c.Data="Data",c.Structure="Structure",c.Erd="Erd",c))(re||{});const Wn=()=>{const c=P(),t=P(),r=P([]),n=P(void 0),s=P(!1);return{quickQueryFilterRef:c,quickQueryTableRef:t,selectedRows:r,isMutating:s,focusedCell:n}},ts=({columnName:c,cellValue:t})=>c?{fieldName:c,isSelect:!0,operator:W.EQUAL,search:qn(t)}:null,Gn=({quickQueryFilterRef:c,quickQueryTableRef:t,filters:r,onApplyNewFilter:n})=>{const s=d=>{r.value=[...r.value,d]};return{appendFilter:s,onAddFilterByContextCell:async()=>{var p,l;const d=(p=t.value)==null?void 0:p.cellContextMenu;if(!d)return;const i=ts({columnName:d.colDef.field,cellValue:d.value});i&&(s(i),await Be(),(l=c.value)==null||l.onShowSearch(),n())}}};function Yn(c){const{tableName:t,schemaName:r,primaryKeys:n,columnNames:s,data:v,selectedRows:d,pagination:i,addHistoryLog:p,refreshTableData:l,refreshCount:_,openErrorModal:b,errorMessage:f,quickQueryTableRef:w,focusedCell:a,safeModeEnabled:g,onRequestSafeModeConfirm:u,connection:S}=c,N=P(!1),Z=async()=>{var $;const R=($=w.value)==null?void 0:$.gridApi;R&&(R==null||R.deselectAll(),R==null||R.clearFocusedCell(),_(),l())},ie=R=>{d.value=R},J=R=>{a&&(a.value=R)},ue=()=>{var R;return((R=w.value)==null?void 0:R.editedCells)??[]},me=()=>ue().filter(R=>R.isNewRow||Object.keys(R.changedData).length>0),pe=async()=>{var F;const R=me();if(!v.value||!R.length){Je.info("No changes to save.");return}const $=[];if(R.forEach(M=>{var ee,ce,ge;const O=!!Object.keys(M.changedData).length,Q=(ee=v.value)==null?void 0:ee[M.rowId],ae=O&&Q&&!M.isNewRow,ne=M.isNewRow||!Q&&O;if(ae){const k=Xa({tableName:t,schemaName:r,update:M.changedData,pKeys:n.value,pKeyValue:Q,dbType:(ce=S.value)==null?void 0:ce.type});$.push(k)}else if(ne){const k=es({tableName:t,schemaName:r,insertData:M.changedData,dbType:(ge=S.value)==null?void 0:ge.type});$.push(k)}}),!$.length){Je.info("No valid changes to save.");return}if(!(g!=null&&g.value&&u&&!await u($.join(`
5
+ `),"save"))){N.value=!0;try{const{queryTime:M}=await $fetch("/api/tables/bulk-update",{method:"POST",body:{sqlUpdateStatements:$,...we(S.value)},onResponseError({response:O}){var ne,ee,ce;const Q=(ee=(ne=O==null?void 0:O._data)==null?void 0:ne.data)==null?void 0:ee.driverError,ae=(ce=O==null?void 0:O._data)==null?void 0:ce.message;b.value=!0,console.error("Error during bulk update:",O==null?void 0:O._data),f.value=ae||"An unknown error occurred during update.",p($.join(`
6
+ `),0,Q,ae)}});(F=w.value)!=null&&F.editedCells&&(w.value.editedCells=[]),p($.join(`
7
+ `),M),_(),l(),Je.success("Data saved successfully!")}catch(M){console.error("Fetch error in onSaveData:",M)}finally{N.value=!1}}},oe=async()=>{var $,F;if(!d.value.length){Je.info("No rows selected for deletion.");return}const R=[];if(d.value.forEach(M=>{var Q;const O=Za({tableName:t,schemaName:r,pKeys:n.value,pKeyValue:M,dbType:(Q=S.value)==null?void 0:Q.type});R.push(O)}),!(g!=null&&g.value&&u&&!await u(R.join(`
8
+ `),"delete"))){N.value=!0;try{const{queryTime:M}=await $fetch("/api/tables/bulk-delete",{method:"POST",body:{sqlDeleteStatements:R,...we(S.value)},onResponseError({response:Q}){var ee,ce,ge;const ae=(ce=(ee=Q==null?void 0:Q._data)==null?void 0:ee.data)==null?void 0:ce.driverError,ne=(ge=Q==null?void 0:Q._data)==null?void 0:ge.message;b.value=!0,f.value=ne||"An unknown error occurred during deletion.",p(R.join(`
9
+ `),0,ae,ne)}});if((($=d.value)==null?void 0:$.length)===((F=v.value)==null?void 0:F.length)&&i.offset>0){const Q=i.offset-i.limit;i.offset=Q>0?Q:0}p(R.join(`
10
+ `),M||0),_(),l(),Je.success("Rows deleted successfully!")}catch(M){console.error("Fetch error in onDeleteRows:",M)}finally{N.value=!1}}},de=()=>{var ae,ne;const R=(ae=w.value)==null?void 0:ae.gridApi;if(!R){Je.error("Table grid API not available to add row.");return}let $=0;R.forEachNode(()=>$++);const F=$,M={[mt]:F+1,...Object.fromEntries(s.value.map(ee=>[ee,void 0]))};R.applyTransaction({add:[M],addIndex:F});const O=ue();if(!((ne=w.value)!=null&&ne.editedCells))return;w.value.editedCells=[...O,{rowId:F,changedData:{},isNewRow:!0}],R.setFocusedCell(F,s.value[0]);const Q=R.getRowNode(F.toString());Q&&(R.deselectAll(),Q.setSelected(!0))},Ne=()=>{!w.value||!me().length||(w.value.editedCells=[],Z(),Je.info("Changes discarded."))},T=C(()=>me().length),E=C(()=>T.value>0);return{onAddEmptyRow:de,onDiscardChanges:Ne,onDeleteRows:oe,onSaveData:pe,isMutating:N,hasEditedRows:E,pendingChangesCount:T,onCopyRows:()=>{const R=d.value;if(!R)return;const $=R.map(F=>{var O;const M=((F==null?void 0:F[mt])||1)-1;return(O=v.value)==null?void 0:O[M]});Ia($)},onPasteRows:async()=>{var F,M;const R=(F=w.value)==null?void 0:F.gridApi;if(!R)return;const $=R.getFocusedCell();$&&($==null||$.rowIndex,(M=$==null?void 0:$.column)==null||M.getColId(),await navigator.clipboard.readText())},onRefresh:Z,onSelectedRowsChange:ie,onCopySelectedCell:async()=>{a!=null&&a.value&&await navigator.clipboard.writeText(Vn(a.value)||"")},onFocusedCellChange:J,onDeselectAll:()=>{var $;($=w.value)!=null&&$.gridApi}}}const Jn=({tableName:c,schemaName:t,connectionId:r,tabViewType:n})=>{const s=Qe(),{schemas:v}=Mt(s),d=C(()=>{const a=v.value[r];if(a)return a.find(g=>g.name===t)}),i=C(()=>{var a,g,u,S;switch(n){case Nt.TableDetail:return(g=(a=d.value)==null?void 0:a.tableDetails)==null?void 0:g[c];case Nt.ViewDetail:{const N=(S=(u=d.value)==null?void 0:u.viewDetails)==null?void 0:S[c];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===Nt.ViewDetail),l=C(()=>{var a,g;return((g=(a=i.value)==null?void 0:a.columns)==null?void 0:g.map(u=>u.name))||[]}),_=C(()=>{var a;return(((a=i.value)==null?void 0:a.foreign_keys)||[]).map(g=>g.column)}),b=C(()=>{var a;return((a=i.value)==null?void 0:a.foreign_keys)||[]}),f=C(()=>{var a;return(((a=i.value)==null?void 0:a.primary_keys)||[]).map(g=>g.column)}),w=C(()=>{var a,g;return((g=(a=i.value)==null?void 0:a.columns)==null?void 0:g.map(u=>({name:u.name,type:u.short_type_name})))||[]});return{primaryKeyColumns:f,foreignKeys:b,columnNames:l,tableMetaData:i,columnTypes:w,foreignKeyColumns:_,isVirtualTable:p}},ns=()=>({[re.Data]:!0,[re.Structure]:!1,[re.Erd]:!1}),Xn=({initialTab:c=re.Data,onTabChanged:t}={})=>{const r=P(c),n=P(ns());return Fe(r,s=>{n.value[s]=!0,t==null||t(s)}),{quickQueryTabView:r,openedQuickQueryTab:n}},Yt=({schemaName:c,tableName:t})=>{const r=Qe(),{activeReservedSchemas:n}=Mt(r),s=C(()=>(n.value||[]).find(p=>p.table===t&&p.schema===c)),v=C(()=>{var p,l;const i=new Map;return(l=(p=s.value)==null?void 0:p.used_by)==null||l.forEach(_=>{i.set(_.referenced_column,!0)}),i});return{activeReservedSchemas:n,reverseTables:s,isHaveRelationByFieldName:i=>v.value.has(i)}};function Zn(){const c=P(!1),t=P(""),r=P("save");let n=null;return{safeModeDialogOpen:c,safeModeDialogSql:t,safeModeDialogType:r,onRequestSafeModeConfirm:(i,p)=>new Promise(l=>{t.value=i,r.value=p,c.value=!0,n=l}),onSafeModeConfirm:()=>{n&&(n(!0),n=null),c.value=!1},onSafeModeCancel:()=>{n&&(n(!1),n=null),c.value=!1}}}const os=["for"],as=["for"],ss=Y({__name:"DynamicForm",props:{fields:{},validationSchema:{},class:{}},setup(c,{expose:t}){const r=c,n=ua({validationSchema:da(r.validationSchema),name:`dynamic-form-${pt()}`});return t({form:n}),(s,v)=>(h(),x("div",{class:De(r.class)},[(h(!0),x(fe,null,ke(s.fields,d=>qe((h(),x("div",{key:d.name},[y("div",{class:De(["flex justify-between pb-0.5",d.titleClass])},[y("label",{class:"text-xs text-right",for:d.name},B(d.label),9,os),y("label",{class:"text-xs text-right text-primary/80",for:d.name},B(d.type),9,as)],2),o(e(ma),{as:d.as,id:d.name,name:d.name,class:De(d.class),placeholder:d.placeholder},null,8,["as","id","name","class","placeholder"])])),[[Ze,d.isShow]])),128))],2))}}),ls={class:"p-2 pb-0"},rs={class:"relative w-full"},is={class:"absolute left-1.5 top-1.5 w-4"},cs=Y({__name:"PreviewSelectedRow",props:{columnTypes:{},selectedRow:{}},setup(c){const t=c,r=C(()=>{const _={};return t.columnTypes.forEach(b=>{const f=jn(b.type);f==="boolean"?_[b.name]=Oa().optional():f==="number"?_[b.name]=ka().optional():_[b.name]=xt().optional()}),_}),n=Ro(""),s=$o(n,$n),v=C(()=>{const _=[],b=s.value.toLowerCase().trim();return t.columnTypes.forEach(f=>{const w=f.name.toLowerCase(),a=b?w.includes(b):!0;_.push({label:f.name,type:f.type,as:pa,name:f.name,class:"px-1 py-0.5 h-fit min-h-6! text-primary/80 font-normal!",placeholder:"NULL",isShow:a})}),_}),d=C(()=>{const _=s.value.toLowerCase().trim();return _?!t.columnTypes.some(b=>b.name.toLowerCase().includes(_)):!1}),i=C(()=>Rn(r.value)),p=P(),l=_=>{const b=Object.entries(_).reduce((f,[w,a])=>(f[w]=Vn(a||""),f),{});Be(()=>{var f;(f=p.value)==null||f.form.setValues(b)})};return Fe(()=>[t.selectedRow,p],([_])=>{_&&l(_)},{immediate:!0,deep:!0}),(_,b)=>{const f=le,w=lt;return h(),x(fe,null,[y("div",ls,[y("div",rs,[y("div",is,[o(f,{name:"lucide:search",class:"stroke-3!"})]),o(w,{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(d)?(h(),D(e(Pe),{key:0,title:"No results",desc:"No fields match your search."})):(h(),D(ss,{key:1,ref_key:"dynamicForm",ref:p,class:"space-y-1 p-2 overflow-y-auto",fields:e(v),"validation-schema":e(i)},null,8,["fields","validation-schema"]))],64)}}}),us={class:"grid gap-3"},ds={class:"grid gap-2"},ms={class:"grid grid-cols-3 items-center gap-4"},ps={class:"grid grid-cols-3 items-center gap-4"},fs={class:"flex justify-center"},vs=Y({__name:"QuickPagination",props:{limit:{},offset:{},totalRows:{}},emits:["onPaginate"],setup(c,{emit:t}){const r=c,n=t,s=P(0),v=P(0),d=P(!1),i=()=>{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)},_=()=>{p(),l(),n("onPaginate",{limit:s.value,offset:v.value}),d.value=!1};return(b,f)=>(h(),D(e(he),null,{default:m(()=>[o(e(Dn),{open:d.value,"onUpdate:open":f[2]||(f[2]=w=>d.value=w)},{default:m(()=>[o(e(Pn),{"as-child":""},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(e(Ce),{onClick:i,variant:"outline",size:"xxs"},{default:m(()=>[A(B(b.limit),1)]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>f[3]||(f[3]=[y("p",null,"Pagination settings",-1)])),_:1})]),_:1}),o(e(Mn),{class:"w-64"},{default:m(()=>[y("div",us,[f[7]||(f[7]=y("div",{class:"space-y-2"},[y("h4",{class:"font-medium leading-none"},"Pagination"),y("p",{class:"text-sm text-muted-foreground"},"Set limit and offset")],-1)),y("div",ds,[y("div",ms,[o(e(cn),{for:"limit"},{default:m(()=>f[4]||(f[4]=[A("Limit")])),_:1}),o(e(lt),{id:"limit",type:"number",modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=w=>s.value=w),modelModifiers:{number:!0},class:"col-span-2 h-6",min:"1",onBlur:l,onKeyup:dt(_,["enter"])},null,8,["modelValue"])]),y("div",ps,[o(e(cn),{for:"offset"},{default:m(()=>f[5]||(f[5]=[A("Offset")])),_:1}),o(e(lt),{id:"offset",type:"number",modelValue:v.value,"onUpdate:modelValue":f[1]||(f[1]=w=>v.value=w),modelModifiers:{number:!0},class:"col-span-2 h-6",min:"0",onBlur:p,onKeyup:dt(_,["enter"])},null,8,["modelValue"])])]),y("div",fs,[o(e(Ce),{size:"xs",class:"px-6",onClick:_},{default:m(()=>f[6]||(f[6]=[A("Go")])),_:1})])])]),_:1})]),_:1},8,["open"])]),_:1}))}}),ys=Y({__name:"RefreshButton",emits:["onRefresh"],setup(c,{emit:t}){const r=t,n=P(0),s=()=>{n.value+=360,r("onRefresh")};return vt([{key:"meta+r",callback:()=>{s()}}],{isPreventDefault:!0}),(v,d)=>(h(),D(e(he),null,{default:m(()=>[o(e(be),{"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(Wt),null,{default:m(()=>d[0]||(d[0]=[A("⌘R")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>d[1]||(d[1]=[y("p",null,"Refresh data",-1)])),_:1})]),_:1}))}}),gs=Io(ys,[["__scopeId","data-v-d56d89e4"]]),hs={key:0,class:"flex items-center gap-1"},bs={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"},_s={key:4,class:"font-normal text-xs text-primary/60"},ws={key:5,class:"font-normal text-sm text-primary"},Cs={key:1},Ss={key:2,class:"flex items-center gap-2"},xs={class:"font-normal text-sm text-primary/80"},Ns={key:3},Ts={class:"flex items-center gap-1"},eo=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(c,{emit:t}){const r=yt(),{openSettings:n}=ko(),s=c,v=t,d=P(),i=C(()=>s.tabView===re.Data);return C(()=>{var p;return((p=un.find(l=>l.value===r.tableAppearanceConfigs.nullOrderPreference))==null?void 0:p.label)||"Unset"}),(p,l)=>{const _=Wt,b=Ce,f=Ut,w=Bt,a=Lt,g=Oo("auto-animate");return h(),x("div",{ref_key:"quickQueryControlBarRef",ref:d,class:De(["w-full select-none h-9 flex items-center justify-between"])},[e(i)?qe((h(),x("div",hs,[o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",onClick:l[0]||(l[0]=u=>v("onShowFilter"))},{default:m(()=>[o(e(le),{name:"lucide:filter"}),o(_,null,{default:m(()=>l[14]||(l[14]=[A("⌘F")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[15]||(l[15]=[y("p",null,"Filter data",-1)])),_:1})]),_:1}),o(gs,{onOnRefresh:l[1]||(l[1]=u=>v("onRefresh"))}),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",onClick:l[2]||(l[2]=u=>v("onToggleHistoryPanel"))},{default:m(()=>[o(e(le),{name:"lucide:terminal"}),o(_,null,{default:m(()=>l[16]||(l[16]=[A("⌘j")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[17]||(l[17]=[y("p",null,"History logs",-1)])),_:1})]),_:1}),p.isViewVirtualTable?U("",!0):(h(),D(e(he),{key:0},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",class:"font-normal",size:"xxs",onClick:l[3]||(l[3]=u=>v("onAddEmptyRow"))},{default:m(()=>[o(e(le),{name:"hugeicons:plus-sign"}),l[18]||(l[18]=A(" Row "))]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[19]||(l[19]=[y("p",null,"Add new record",-1)])),_:1})]),_:1})),p.hasEditedRows&&!p.isViewVirtualTable?(h(),D(e(he),{key:1},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",class:"relative overflow-visible",onClick:l[4]||(l[4]=u=>v("onSaveData"))},{default:m(()=>[o(e(le),{name:"lucide:save"}),p.pendingChangesCount?(h(),x("span",bs,B(p.pendingChangesCount),1)):U("",!0),o(_,null,{default:m(()=>l[20]||(l[20]=[A("⌘S")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[21]||(l[21]=[y("p",null,"Save changes",-1)])),_:1})]),_:1})):U("",!0),p.hasEditedRows&&!p.isViewVirtualTable?(h(),D(e(he),{key:2},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",class:"font-normal",onClick:l[5]||(l[5]=u=>v("onDiscardChanges"))},{default:m(()=>[o(e(le),{name:"hugeicons:undo-02"}),l[22]||(l[22]=A(" Discard "))]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[23]||(l[23]=[y("p",null,"Discard changes",-1)])),_:1})]),_:1})):U("",!0),p.totalSelectedRows&&!p.isViewVirtualTable?(h(),D(e(he),{key:3},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"xxs",onClick:l[6]||(l[6]=u=>v("onDeleteRows"))},{default:m(()=>[o(e(le),{name:"lucide:trash"}),o(_,null,{default:m(()=>l[24]||(l[24]=[A("⌥⌘⌫")])),_:1})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>[y("p",null,"Delete "+B(p.totalSelectedRows)+" selected rows",1)]),_:1})]),_:1})):U("",!0),p.totalSelectedRows?(h(),x("p",_s," Selected ")):U("",!0),p.totalSelectedRows?(h(),x("p",ws,B(p.totalSelectedRows),1)):U("",!0)])),[[g]]):(h(),x("div",Cs)),e(i)?(h(),x("div",Ss,[o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"iconSm",disabled:!p.isAllowPreviousPage,onClick:l[7]||(l[7]=u=>v("onPreviousPage"))},{default:m(()=>[o(e(le),{name:"lucide:chevron-left"})]),_:1},8,["disabled"])]),_:1}),o(e(_e),null,{default:m(()=>l[25]||(l[25]=[y("p",null,"Previous page",-1)])),_:1})]),_:1}),y("div",xs,[A(B(p.offset+1)+"-"+B(p.offset+p.currentTotalRows)+" ",1),l[26]||(l[26]=y("p",{class:"font-normal text-xs text-primary/60 inline"},"of",-1)),A(" "+B(p.totalRows)+" ",1),l[27]||(l[27]=y("p",{class:"font-normal text-xs text-primary/60 inline"},"rows",-1))]),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"outline",size:"iconSm",disabled:!p.isAllowNextPage,onClick:l[8]||(l[8]=u=>v("onNextPage"))},{default:m(()=>[o(e(le),{name:"lucide:chevron-right"})]),_:1},8,["disabled"])]),_:1}),o(e(_e),null,{default:m(()=>l[28]||(l[28]=[y("p",null,"Next page",-1)])),_:1})]),_:1}),o(vs,{limit:p.limit,offset:p.offset,totalRows:p.totalRows,onOnPaginate:l[9]||(l[9]=u=>v("onPaginate",u))},null,8,["limit","offset","totalRows"])])):(h(),x("div",Ns)),y("div",Ts,[o(a,{"model-value":p.tabView,"onUpdate:modelValue":l[10]||(l[10]=u=>p.$emit("update:tabView",u))},{default:m(()=>[o(w,{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]=[A(" 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]=[A(" 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]=[A(" ERD ")])),_:1},8,["value","disabled"])]),_:1})]),_:1},8,["model-value"]),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"ghost",size:"iconSm",onClick:l[11]||(l[11]=u=>e(n)("Quick Query"))},{default:m(()=>[e(r).quickQuerySafeModeEnabled?(h(),D(e(le),{key:0,name:"hugeicons:security-check",class:"size-4!"})):(h(),D(e(le),{key:1,name:"lucide:shield-minus",class:"size-4! text-muted-foreground"}))]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>[y("p",null," Safe Mode: "+B(e(r).quickQuerySafeModeEnabled?"Enabled":"Disabled"),1),l[32]||(l[32]=y("p",{class:"text-xs text-muted-foreground"},"Click to configure",-1))]),_:1})]),_:1}),o(e(ya),null,{default:m(()=>[o(e(ga),{"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(ha),{align:"end",class:"min-w-44"},{default:m(()=>[o(e(ba),{class:"py-0"},{default:m(()=>l[33]||(l[33]=[A("Null ordering")])),_:1}),o(e(_a)),o(e(fa),{"model-value":e(r).tableAppearanceConfigs.nullOrderPreference,"onUpdate:modelValue":l[12]||(l[12]=u=>e(r).tableAppearanceConfigs.nullOrderPreference=u)},{default:m(()=>[(h(!0),x(fe,null,ke(e(un),u=>(h(),D(e(va),{key:u.value,value:u.value,class:"h-7 cursor-pointer"},{default:m(()=>[A(B(u.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["model-value"])]),_:1})]),_:1}),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(b,{variant:"ghost",size:"iconSm",onClick:l[13]||(l[13]=u=>e(n)("Appearance"))},{default:m(()=>[o(e(le),{name:"hugeicons:settings-04",class:"size-4!"})]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>l[34]||(l[34]=[y("p",null,"Table appearance settings",-1)])),_:1})]),_:1})])],512)}}}),Rs={class:"sticky top-0 z-10 bg-popover"},$s={class:"p-1"},Is={key:3,class:"px-2 py-1 text-sm text-muted-foreground"},ks=Y({__name:"ColumnSelector",props:{columns:{},value:{}},emits:["update:value","update:open"],setup(c,{emit:t}){const r=c,n=t,s=P(""),v=C(()=>s.value.trim().toLowerCase()),d=C(()=>new dn(r.columns,{threshold:.35,ignoreLocation:!0,minMatchCharLength:1})),i=C(()=>new dn(mn,{keys:["label","value"],threshold:.35,ignoreLocation:!0,minMatchCharLength:1})),p=C(()=>{const b=v.value;return b?d.value.search(b).map(f=>f.item):r.columns}),l=C(()=>{const b=v.value;return b?i.value.search(b).map(f=>f.item):mn}),_=b=>{n("update:open",b),b||(s.value="")};return(b,f)=>{const w=qt,a=Kt,g=lt,u=In,S=jt,N=zt,Z=Qt,ie=Vt;return h(),D(ie,{"model-value":b.value,"onUpdate:modelValue":f[4]||(f[4]=J=>n("update:value",J)),"onUpdate:open":_},{default:m(()=>[o(a,{class:"w-36 min-w-36 h-6! text-sm cursor-pointer px-2"},{default:m(()=>[o(w,{placeholder:"Select field"})]),_:1}),o(Z,null,{default:m(()=>[o(N,null,{default:m(()=>[y("div",Rs,[y("div",$s,[o(g,{"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]=Xe(()=>{},["stop"])),onMousedown:f[2]||(f[2]=Xe(()=>{},["stop"])),onKeydown:f[3]||(f[3]=Xe(()=>{},["stop"]))},null,8,["model-value"])]),o(u)]),e(p).length?(h(!0),x(fe,{key:0},ke(e(p),J=>(h(),D(S,{key:J,class:"h-6 text-sm cursor-pointer",value:J},{default:m(()=>[A(B(J),1)]),_:2},1032,["value"]))),128)):U("",!0),e(p).length&&e(l).length?(h(),D(u,{key:1})):U("",!0),e(l).length?(h(!0),x(fe,{key:2},ke(e(l),J=>(h(),D(S,{key:J.value,class:"h-6 text-sm cursor-pointer",value:J.value},{default:m(()=>[A(B(J.label),1)]),_:2},1032,["value"]))),128)):U("",!0),!e(p).length&&!e(l).length?(h(),x("div",Is," No fields found ")):U("",!0)]),_:1})]),_:1})]),_:1},8,["model-value"])}}}),Os=Y({__name:"OperatorSelector",props:{dbType:{},value:{}},emits:["update:value","update:open"],setup(c){const t=c,r=C(()=>Rt[t.dbType]??Rt[ye.MYSQL]??[]);return(n,s)=>{const v=qt,d=Kt,i=jt,p=zt,l=Qt,_=Vt;return h(),D(_,{"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(d,{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(fe,null,ke(e(r),b=>(h(),x(fe,null,[b.value===e(Eo).value?(h(),D(e(In),{key:0})):(h(),D(i,{key:1,class:"h-6 text-sm cursor-pointer",value:b.value},{default:m(()=>[A(B(b.label),1)]),_:2},1032,["value"]))],64))),256))]),_:1})]),_:1})]),_:1},8,["model-value"])}}}),Es={class:"text-xs font-medium"},As={class:"text-xs font-medium"},Fs=Y({__name:"ViewParserFilterApply",props:{getParserApplyFilter:{type:Function},getParserAllFilter:{type:Function}},setup(c){const t=c,r=P(""),n=P(""),s=()=>{r.value=wn(t.getParserApplyFilter(),{language:"postgresql",keywordCase:"upper"}),n.value=wn(t.getParserAllFilter(),{language:"postgresql",keywordCase:"upper"})};return(v,d)=>(h(),D(e(he),null,{default:m(()=>[o(e(Dn),null,{default:m(()=>[o(e(Pn),{"as-child":""},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(e(Ce),{onClick:s,size:"xxs",variant:"outline"},{default:m(()=>d[0]||(d[0]=[A(" SQL ")])),_:1})]),_:1}),o(e(_e),null,{default:m(()=>d[1]||(d[1]=[y("p",null,"View SQL query",-1)])),_:1})]),_:1}),o(e(Mn),{class:"w-[40rem] p-2 space-y-2","restore-focus":!0},{default:m(()=>[y("div",Es,[d[2]||(d[2]=A(" Curren filter ")),o(e(Dt),{code:e(r),language:"sql","max-height":"15rem",class:"mt-1"},null,8,["code"])]),y("div",As,[d[3]||(d[3]=A(" Apply all filter ")),o(e(Dt),{code:e(n),language:"sql","max-height":"15rem",class:"mt-1"},null,8,["code"])])]),_:1})]),_:1})]),_:1}))}}),Ds={class:"flex justify-between"},Ps={class:"flex items-center gap-0.5 text-xs"},Ms={class:"text-xs flex items-center gap-2"},Ls=Y({__name:"QuickQueryFilterGuide",props:{getParserApplyFilter:{type:Function},getParserAllFilter:{type:Function},composeWith:{}},emits:["onChangeComposeWith"],setup(c,{emit:t}){const r=t;return(n,s)=>{const v=qt,d=Kt,i=jt,p=zt,l=Qt,_=Vt,b=Wt;return h(),x("div",Ds,[y("div",Ps,[s[3]||(s[3]=A(" Compose with: ")),o(_,{modelValue:n.composeWith,"onUpdate:modelValue":s[0]||(s[0]=f=>r("onChangeComposeWith",f))},{default:m(()=>[o(d,{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(i,{class:"h-5 text-xs cursor-pointer",value:e(ft).AND},{default:m(()=>s[1]||(s[1]=[A(" AND ")])),_:1},8,["value"]),o(i,{class:"h-5 text-xs cursor-pointer",value:e(ft).OR},{default:m(()=>s[2]||(s[2]=[A(" OR ")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),y("div",Ms,[y("div",null,[o(b,null,{default:m(()=>s[4]||(s[4]=[A("⌘F")])),_:1}),s[5]||(s[5]=A(": Show"))]),y("div",null,[o(b,null,{default:m(()=>s[6]||(s[6]=[A("Esc")])),_:1}),s[7]||(s[7]=A(": Exit"))]),o(e(Ao),{orientation:"vertical",class:"h-3/4!"}),y("div",null,[o(b,null,{default:m(()=>s[8]||(s[8]=[A("⌘I")])),_:1}),s[9]||(s[9]=A(": Insert"))]),y("div",null,[o(b,null,{default:m(()=>s[10]||(s[10]=[A("⌘⌫")])),_:1}),s[11]||(s[11]=A(": Delete"))]),y("div",null,[o(b,null,{default:m(()=>s[12]||(s[12]=[A("⌘↵")])),_:1}),s[13]||(s[13]=A(": Apply all"))])]),y("div",null,[o(Fs,{getParserApplyFilter:n.getParserApplyFilter,getParserAllFilter:n.getParserAllFilter},null,8,["getParserApplyFilter","getParserAllFilter"])])])}}}),to=Y({__name:"QuickQueryFilter",props:pn({columns:{},dbType:{},baseQuery:{},initFilters:{},composeWith:{}},{isShowFilters:{},isShowFiltersModifiers:{}}),emits:pn(["onSearch","onUpdateFilters","onChangeComposeWith"],["update:isShowFilters"]),setup(c,{expose:t,emit:r}){const n=c,s=Fo(c,"isShowFilters"),v=r,d=P(),i=Ht("filterSearchRefs"),p=C(()=>n.initFilters||[]),l=()=>p.value.map(T=>({...T})),_=T=>{v("onUpdateFilters",T)},b=(T,E)=>{const H=l(),I=H[T];I&&(H[T]={...I,...E},_(H))},f=(T,E)=>{const H=l();H.splice(T,0,{...E}),_(H)},w=T=>{const E=l();E.splice(T,1),_(E)},a=T=>{f(T+1,{isSelect:!0,fieldName:ut.AnyField,operator:W.LIKE_CONTAINS})},g=(T,E)=>{var K;const H=(K=p.value)==null?void 0:K[T],I=(H==null?void 0:H.fieldName)===ut.RawQuery,V=!(H!=null&&H.operator);I&&V?b(T,{...H,fieldName:E,operator:W.LIKE_CONTAINS}):b(T,{...H,fieldName:E})},u=()=>`${n.baseQuery} ${Pt({columns:n.columns,db:n.dbType,filters:p.value,composeWith:n.composeWith})};`,S=()=>`${n.baseQuery} ${Pt({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")},Z=T=>{var H;const E=(H=p.value)==null?void 0:H[T];E!=null&&E.isSelect||b(T,{...E,isSelect:!0}),N()},ie=()=>{_(p.value.map(T=>({...T,isSelect:!0}))),N()},J=async T=>{var I;const E=(I=p.value)==null?void 0:I[T],H=!!(E!=null&&E.isSelect);w(T),await Be(),T!==0&&oe(T-1),H&&N()},ue=T=>T==null?"":String(T),me=(T,E)=>{b(T,{search:E})},pe=async(T,E)=>{b(T,{isSelect:E}),await N()},oe=T=>{var E,H;i.value&&((H=(E=i.value)==null?void 0:E[T])==null||H.$el.focus())},de=()=>{p.value.length||a(-1),s.value=!0,Be(()=>{const T=p.value.length-1||0;oe(T)})},Ne=()=>i.value?i.value.findIndex(E=>E.$el===document.activeElement):void 0;return vt([{key:"meta+backspace",callback:async()=>{const T=Ne();T===void 0||T<0||J(T)}},{key:"meta+enter",callback:()=>{const T=Ne();T!==void 0&&T>=0&&ie()}},{key:"meta+i",callback:async()=>{const T=Ne();T===void 0||T<0||(a(T),await Be(),oe(T+1))}},{key:"escape",callback:()=>{s.value=!1,N(!0)}}],{target:d}),t({onShowSearch:de,insert:f}),(T,E)=>{const H=Ca,I=lt,V=Ce;return s.value?(h(),x("div",{key:0,ref_key:"quickQueryFilterRef",ref:d,class:De(["h-fit space-y-1",e(p).length&&"pb-2"])},[(h(!0),x(fe,null,ke(e(p),(K,R)=>(h(),x("div",{class:"flex gap-1 items-center",key:R},[o(H,{"model-value":K.isSelect,onClick:E[0]||(E[0]=Xe(()=>{},["stop"])),onKeydown:E[1]||(E[1]=dt(Xe(()=>{},["stop","prevent"]),["enter"])),onKeyup:E[2]||(E[2]=dt(Xe(()=>{},["stop"]),["enter"])),"onUpdate:modelValue":$=>pe(R,!!$)},null,8,["model-value","onUpdate:modelValue"]),o(ks,{columns:T.columns,value:K.fieldName,"onUpdate:value":$=>{g(R,$)},"onUpdate:open":$=>{$||T.$nextTick(()=>oe(R))}},null,8,["columns","value","onUpdate:value","onUpdate:open"]),K.fieldName!==e(ut).RawQuery?(h(),D(Os,{key:0,"db-type":T.dbType,value:K.operator,"onUpdate:value":$=>b(R,{operator:$==null?void 0:String($)}),"onUpdate:open":$=>{$||T.$nextTick(()=>oe(R))}},null,8,["db-type","value","onUpdate:value","onUpdate:open"])):U("",!0),o(I,{"model-value":ue(K.search),type:"text",placeholder:e(Ya)(K.operator||""),class:"w-full h-6 px-2",ref_for:!0,ref_key:"filterSearchRefs",ref:i,onKeyup:E[3]||(E[3]=dt(Xe(()=>N(),["stop"]),["enter"])),"onUpdate:modelValue":$=>me(R,String($))},null,8,["model-value","placeholder","onUpdate:modelValue"]),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(V,{size:"xxs",variant:"outline",onClick:$=>Z(R)},{default:m(()=>E[5]||(E[5]=[A(" Apply ")])),_:2},1032,["onClick"])]),_:2},1024),o(e(_e),null,{default:m(()=>E[6]||(E[6]=[y("p",null,"Apply this filter",-1)])),_:1})]),_:2},1024),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(V,{size:"iconSm",variant:"outline",onClick:$=>J(R)},{default:m(()=>[o(e(le),{name:"hugeicons:minus-sign"})]),_:2},1032,["onClick"])]),_:2},1024),o(e(_e),null,{default:m(()=>E[7]||(E[7]=[y("p",null,"Remove filter (Meta+Backspace)",-1)])),_:1})]),_:2},1024),o(e(he),null,{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(V,{size:"iconSm",variant:"outline",onClick:()=>a(R)},{default:m(()=>[o(e(le),{name:"hugeicons:plus-sign"})]),_:2},1032,["onClick"])]),_:2},1024),o(e(_e),null,{default:m(()=>E[8]||(E[8]=[y("p",null,"Add new filter (Meta+I)",-1)])),_:1})]),_:2},1024)]))),128)),e(p).length?(h(),D(Ls,{key:0,getParserApplyFilter:u,getParserAllFilter:S,"compose-with":T.composeWith,onOnChangeComposeWith:E[4]||(E[4]=K=>v("onChangeComposeWith",K))},null,8,["compose-with"])):U("",!0)],2)):U("",!0)}}}),no=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(c,{emit:t}){const r=yt(),n=c,s=t,v=C(()=>{var u,S,N,Z;return((S=(u=n.cellContextMenu)==null?void 0:u.column)==null?void 0:S.getColId())??((Z=(N=n.cellHeaderContextMenu)==null?void 0:N.column)==null?void 0:Z.getColId())}),d=C(()=>{var u,S,N;return((u=n.cellContextMenu)==null?void 0:u.column.getColDef().headerName)??((N=(S=n.cellHeaderContextMenu)==null?void 0:S.column)==null?void 0:N.getColDef().headerName)??""}),i=u=>{hn(n.selectedRows||[],d.value??"",u)},p=u=>{hn(n.data||[],d.value??"",u)},l=u=>Ft(n.selectedRows||[],n.tableName||"table_data",u,n.schemaName),_=u=>Ft(n.data||[],n.tableName||"table_data",u,n.schemaName),b=u=>bn(n.selectedRows||[],n.tableName||"table_data",u,"selected",n.schemaName),f=u=>bn(n.data||[],n.tableName||"table_data",u,"all",n.schemaName),w=()=>{var S;const u=(S=n.cellContextMenu)==null?void 0:S.value;if(u!==void 0){if(typeof u=="object")return _n(JSON.stringify(u));_n(String(u))}},a=()=>{var u;if(n.cellContextMenu){const S=(u=n.cellContextMenu)==null?void 0:u.data;Ft([S],n.tableName||"table_data","csv-no-header",n.schemaName)}},g=C(()=>{var pe;const u=!!n.cellContextMenu,S=n.selectedRows.length>0,N=n.selectedRows.length,Z=((pe=n.data)==null?void 0:pe.length)||0,ie=!!v.value,J=[{type:j.LABEL,title:`${N} selected`,condition:S&&u},{type:j.ACTION,title:"Copy as text",icon:"hugeicons:file-01",select:()=>i("list"),condition:S&&u},{type:j.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>i("json"),condition:S&&u},{type:j.SEPARATOR,condition:S&&u},{type:j.LABEL,title:"All data in column"},{type:j.ACTION,title:"Copy as text",icon:"hugeicons:file-01",select:()=>p("list")},{type:j.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>p("json")}],ue=[{type:j.LABEL,title:`${N} selected row(s)`,condition:S},{type:j.ACTION,title:"Copy as CSV/TSV",icon:"hugeicons:csv-02",select:()=>l("csv-no-header"),condition:S},{type:j.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>l("json"),condition:S},{type:j.ACTION,title:"Copy as SQL",icon:"hugeicons:database",select:()=>l("sql"),condition:S},{type:j.SEPARATOR,condition:S},{type:j.LABEL,title:"All rows"},{type:j.ACTION,title:"Copy as CSV/TSV",icon:"hugeicons:csv-02",select:()=>_("csv-no-header")},{type:j.ACTION,title:"Copy as JSON",icon:"hugeicons:code",select:()=>_("json")},{type:j.ACTION,title:"Copy as SQL",icon:"hugeicons:database",select:()=>_("sql")}],me=[{type:j.LABEL,title:`${N} selected row${N>1?"s":""}`,condition:S},{type:j.ACTION,title:"Export as CSV",icon:"hugeicons:csv-01",select:()=>b("csv-no-header"),condition:S},{type:j.ACTION,title:"Export as CSV (have headers)",icon:"hugeicons:csv-01",select:()=>b("csv-with-header"),condition:S},{type:j.ACTION,title:"Export as JSON",icon:"hugeicons:code",select:()=>b("json"),condition:S},{type:j.ACTION,title:"Export as SQL",icon:"hugeicons:database",select:()=>b("sql"),condition:S},{type:j.SEPARATOR,condition:S},{type:j.LABEL,title:`All ${Z.toLocaleString()} row${Z!==1?"s":""}`},{type:j.ACTION,title:"Export as CSV",icon:"hugeicons:csv-01",select:()=>f("csv-no-header")},{type:j.ACTION,title:"Export as CSV (have headers)",icon:"hugeicons:csv-01",select:()=>f("csv-with-header")},{type:j.ACTION,title:"Export as JSON",icon:"hugeicons:code",select:()=>f("json")},{type:j.ACTION,title:"Export as SQL",icon:"hugeicons:database",select:()=>f("sql")}];return[{title:"View row detail",icon:"hugeicons:view",type:j.ACTION,select:()=>{r.onShowSecondSidebar()},condition:!n.isReferencedTable&&!!n.cellContextMenu},{title:"Filter by value",icon:"lucide:filter",type:j.ACTION,shortcut:"⌘F",select:()=>{s("onFilterByValue")},condition:!!n.cellContextMenu},{title:"Refresh",icon:"hugeicons:refresh",type:j.ACTION,shortcut:"⌘R",select:()=>{s("onRefresh")}},{type:j.SEPARATOR},{type:j.ACTION,title:"Copy current cell",icon:"hugeicons:copy-02",select:w,condition:u},{type:j.ACTION,title:"Copy current row",icon:"hugeicons:copy-02",select:a,condition:S&&u},{type:j.SEPARATOR,condition:u},{type:j.SUBMENU,title:"Copy column",icon:"hugeicons:layout-3-column",items:J,condition:ie,desc:d.value||"Select a column"},{type:j.SUBMENU,title:"Copy row(s)",icon:"hugeicons:layout-3-row",items:ue},{type:j.SEPARATOR},{type:j.SUBMENU,title:"Export",icon:"hugeicons:file-download",items:me}]});return(u,S)=>{const N=wa;return h(),D(N,{contextMenuItems:e(g),onOnClearContextMenu:S[0]||(S[0]=Z=>s("onClearContextMenu"))},{default:m(()=>[Do(u.$slots,"default")]),_:3},8,["contextMenuItems"])}}});function Bs({fieldType:c,isObjectColumn:t,value:r}){const n=t?JSON.stringify(r):r;return c==="bool"?!!n:n===""||n===null||n===void 0?null:n}const Us={class:"flex items-center justify-between"},Vs={class:"truncate"},Ks=Y({__name:"CustomCellUuid",props:{params:{}},setup(c){return(t,r)=>{var n,s;return h(),x("div",Us,[y("span",Vs,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(),D(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)])}}}),qs={class:"ag-header-cell-text items-center flex gap-0.5","data-ref":"eText"},Qs={class:"text-xxs!"},zs={key:0,class:"ag-sort-indicator-container","data-ref":"eSortIndicator"},js={key:0,class:"ag-sort-indicator-icon ag-sort-ascending-icon","data-ref":"eSortAsc","aria-hidden":"true"},Hs={key:1,class:"ag-sort-indicator-icon ag-sort-descending-icon","data-ref":"eSortDesc","aria-hidden":"true"},Ws=Y({__name:"CustomHeaderTable",props:{params:{}},setup(c){const t=c,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},[y("span",qs,[t.params.isPrimaryKey?(h(),D(e(le),{key:0,name:"lucide:key-round",class:"min-w-3! text-yellow-500"})):U("",!0),t.params.isForeignKey?(h(),D(e(le),{key:1,name:"lucide:key-round",class:"min-w-3!"})):U("",!0),A(" "+B(t.params.displayName)+" ",1),y("p",Qs,B(t.params.dataType),1)]),n.params.sort?(h(),x("span",zs,[n.params.sort==="ASC"?(h(),x("span",js,s[0]||(s[0]=[y("span",{class:"ag-icon ag-icon-asc",role:"presentation",unselectable:"on"},null,-1)]))):(h(),x("span",Hs,s[1]||(s[1]=[y("span",{class:"ag-icon ag-icon-desc",role:"presentation",unselectable:"on"},null,-1)])))])):U("",!0)]))}}),oo=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(c,{expose:t,emit:r}){const n=c,s=r,v=P(n.defaultPageSize??kt),{gridApi:d,onGridReady:i}=aa(),p=Ht("agGridRef"),l=P(),_=P();Po(p,I=>{s("onFocusCell",void 0),s("onClickOutSide",I)});const b=P([]),f=C(()=>(n.data??[]).map((I,V)=>({[mt]:V+n.offset+1,...I}))),{handleCellMouseOverDebounced:w,handleCellMouseDown:a}=sa({gridApi:d,gridRef:p}),g=C(()=>new Map(n.columnTypes.map(I=>[I.name,I]))),u=I=>{var K;const V=((K=g.value.get(I))==null?void 0:K.type)||"";return["object","json","jsonb"].includes(V)},S=I=>{var Q,ae,ne;const{colDef:V,newValue:K,rowIndex:R}=I,$=Number(R),F=V.field,M=u(F??""),O=((Q=g.value.get(F??""))==null?void 0:Q.type)||"";if($!==null&&F){const ee=(ne=(ae=n==null?void 0:n.data)==null?void 0:ae[$])==null?void 0:ne[F];let ce=ee!==K;M&&(ce=JSON.stringify(ee)!==JSON.stringify(K));const ge=b.value.some(L=>L.rowId===$),k=Bs({fieldType:O,isObjectColumn:M,value:K});if(ce&&!ge){b.value.push({rowId:$,changedData:{[F]:k}});return}ce?b.value=b.value.map(L=>L.rowId===$?{...L,changedData:{...L.changedData,[F]:k}}:L):b.value=b.value.map(L=>{if(L.rowId!==$)return L;const q={...L.changedData};return delete q[F],{...L,changedData:q}}).filter(L=>L.isNewRow||Object.keys(L.changedData).length>0)}},N=C(()=>{var $;if(!(($=n.columnTypes)!=null&&$.length))return[];const I=[];I.push({colId:mt,headerName:na,field:mt,filter:!1,resizable:!0,editable:!1,sortable:!1,type:"indexColumn",headerComponentParams:{allowSorting:!1},pinned:"left",width:ta});const V=new Set(n.primaryKeyColumns),K=new Set(n.foreignKeyColumns),R=new Map(n.foreignKeys.map(F=>[F.column,F]));return n.columnTypes.forEach(({name:F,type:M})=>{const O=F,Q=n.orderBy.columnName===O?n.orderBy.order:void 0,ae=V.has(O),ne=K.has(O),ee=R.get(O),ce=n.isHaveRelationByFieldName(O),ge=ae&&ce||ne&&ee,k=["json","jsonb"].includes(M),L={headerName:O,field:O,colId:O,filter:!1,resizable:!0,editable:!0,sortable:!1,type:"editableColumn",headerComponentParams:{allowSorting:!0,sort:Q,onUpdateSort:q=>{s("update:orderBy",q)},fieldId:O,isPrimaryKey:ae,isForeignKey:ne},cellRenderer:ge?Ks:void 0,cellRendererParams:{isPrimaryKey:ge,onOpenPreviewReverseTableModal:q=>{ne&&ee?s("onOpenForwardReferencedTableModal",{id:q,tableName:ee.referenced_table,columnName:ee.referenced_column,schemaName:ee.referenced_table_schema}):s("onOpenBackReferencedTableModal",{id:q,columnName:O,tableName:n.currentTableName,schemaName:n.currentSchemaName})}},cellEditorSelector:q=>{if(k)return{component:"AgJsonCellEditor",popup:!0,popupPosition:"under"}},valueFormatter:q=>{const te=q.value;return typeof te=="number"||typeof te=="bigint"?te.toString():te===null?"NULL":k?JSON.stringify(te,null,2):te??""},valueSetter:q=>{if(n.isViewOnly)return!1;if(k)try{const te=JSON.parse(q.newValue);return q.data[O]=te,!0}catch(te){return console.error(`Invalid JSON format in column ${O}:`,te),!1}else return q.data[O]=q.newValue,!0}};I.push(L)}),I});function Z(I){const K=I.event.key;return["Backspace","Delete"].some(function(O){return O===K||K.toUpperCase()===O})}const ie=P({headerComponent:Ws,suppressKeyboardEvent:Z}),J=P({editableColumn:{cellStyle:I=>{const V=I.colDef.colId??"";if(!V||!n.data)return;const K=u(V??""),R=Number(I.node.id??I.node.rowIndex),$=n.data[R];if($===void 0)return{backgroundColor:"var(--color-green-100)"};const F={},M=$[V],O=I.value;(M===null||O===null)&&(F.color="var(--muted-foreground)");let Q=!1;return K?Q=JSON.stringify(M)!==JSON.stringify(O):Q=M!==O,Q?(F.backgroundColor="var(--color-orange-200)",delete F.color):F.backgroundColor="unset",F},cellClass:I=>I.column.getColId()===n.selectedColumnFieldId?"col-highlight-cell cellCenter":"cellCenter"}}),ue=la();Fe(ue,I=>{var V;(V=d.value)==null||V.updateGridOptions({theme:I})});const me=C(()=>({components:{AgJsonCellEditor:ra},paginationPageSize:v.value,rowBuffer:Mo,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:ue.value,pagination:!1,undoRedoCellEditing:!0,undoRedoCellEditingLimit:25,animateRows:!0,onCellMouseDown:a,onCellMouseOver:w,defaultColDef:ie.value,columnTypes:J.value})),pe=()=>{if(d.value){const I=d.value.getSelectedRows();oe(I)}},oe=I=>{s("onSelectedRows",I)},de=()=>{var V,K,R;const I=(V=d.value)==null?void 0:V.getFocusedCell();if(I){const $=(K=d.value)==null?void 0:K.getDisplayedRowAtIndex(I.rowIndex),F=I.column.getColId(),M=(R=$==null?void 0:$.data)==null?void 0:R[F];s("onFocusCell",M??void 0)}},Ne=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=>{_.value=I};Fe(()=>n.selectedColumnFieldId,async()=>{var I;await Be(),(I=d.value)==null||I.refreshCells({force:!0})},{flush:"post"});const E=()=>{if(!d.value)return;const I=d.value.getAllGridColumns()||[],V=(n.data||[]).slice(0,10),K=ca({columns:I,rows:V}),R=new Set(n.primaryKeyColumns),$=new Set(n.foreignKeyColumns);d.value.updateGridOptions({columnDefs:I.map(F=>{const M=F.getColDef().field,O=R.has(M),Q=$.has(M),ne=O||Q?oa:0;return{...F.getColDef(),width:K[M]+ne}})})};return t({gridApi:d,editedCells:b,columnDefs:N,cellContextMenu:l,cellHeaderContextMenu:_,clearCellContextMenu:()=>{l.value=void 0,_.value=void 0}}),kn(async()=>{var $,F,M;if(!d.value)return;await Be();const I=d.value.getState(),V=document.querySelector(".ag-body-viewport");V&&(V.scrollTop=(($=I.scroll)==null?void 0:$.top)||0);const K=((F=d.value)==null?void 0:F.getAllGridColumns())||[];let R=0;for(const O of K){if(R>=(((M=I.scroll)==null?void 0:M.left)||0)){d.value.ensureColumnVisible(O.getColId(),"start");break}R+=O.getActualWidth()}}),(I,V)=>(h(),D(e(ia),{onSelectionChanged:pe,onCellValueChanged:S,onGridReady:e(i),onCellFocused:de,onRowDataUpdated:E,onCellContextMenu:Ne,onColumnHeaderContextMenu:T,class:De(n.class),"grid-options":e(me),columnDefs:e(N),rowData:e(f),ref_key:"agGridRef",ref:p},null,8,["onGridReady","class","grid-options","columnDefs","rowData"]))}}),We=320,Nn=34,Gs=24,ot=c=>c<=0?Nn:Math.min(We,Nn+c*Gs),Ys={class:"relative"},Js={key:0,class:"p-2"},Xs={key:2,class:"flex items-center justify-center py-6"},Zs=Y({__name:"IndexesTab",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r=["index_name","method","is_unique","is_primary","definition"],n=Qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=P(null),d=$e(),i=C(()=>t.connectionId?d.connections.find(a=>a.id===t.connectionId):d.selectedConnection),{data:p,status:l}=xe("/api/tables/indexes",{method:"POST",body:C(()=>({...we(i.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 g;v.value=((g=a._data)==null?void 0:g.message)||"Failed to load indexes"}},"$NyxkuxC1vx"),_=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(()=>_.value.length>0?tt(_.value):nt(r)),f=C(()=>`${ot(_.value.length)}px`),w=()=>{v.value=null,ze(`indexes-${s.value}`)};return(a,g)=>{const u=Oe,S=Pe;return h(),x("div",Ys,[o(u,{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(()=>[y("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:w},{default:m(()=>g[0]||(g[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(_).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(f)})},[o(e(et),{columns:e(b),data:e(_),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",Xs,[o(S,{title:"No Indexes",desc:"This table has no indexes."})])):U("",!0)])}}}),el={class:"relative"},tl={key:0,class:"p-2"},nl={key:1,class:"flex items-center justify-center py-3"},ol=Y({__name:"RlsTab",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r=["policy_name","permissive","command","roles","using_expression","with_check_expression"],n=Qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=P(null),d=$e(),i=C(()=>t.connectionId?d.connections.find(g=>g.id===t.connectionId):d.selectedConnection),{data:p,status:l}=xe("/api/tables/rls",{method:"POST",body:C(()=>({...we(i.value),schema:t.schema,table:t.tableName})),key:`rls-${s.value}`,getCachedData:()=>{const g=n.rlsMap[s.value];if(g!=null&&g.length)return{enabled:!0,policies:g}},onResponse({response:g}){var u;(u=g._data)!=null&&u.policies&&(n.rlsMap[s.value]=g._data.policies)},onResponseError({response:g}){var u;v.value=((u=g._data)==null?void 0:u.message)||"Failed to load RLS policies"}},"$EinB8Z7zho"),_=g=>{if(Array.isArray(g))return g.map(N=>String(N));if(typeof g!="string")return[];const u=g.trim();if(!u)return[];const S=u.startsWith("{")&&u.endsWith("}")?u.slice(1,-1):u;return S?S.split(",").map(N=>N.trim().replace(/^"|"$/g,"")).filter(Boolean):[]},b=C(()=>{var g;return(((g=p.value)==null?void 0:g.policies)||[]).map(u=>({policy_name:u.policyName,permissive:u.permissive,command:u.command,roles:_(u.roles).join(", ")||"—",using_expression:u.usingExpression||"—",with_check_expression:u.withCheckExpression||"—"}))}),f=C(()=>b.value.length>0?tt(b.value):nt(r)),w=C(()=>`${ot(b.value.length)}px`),a=()=>{v.value=null,ze(`rls-${s.value}`)};return(g,u)=>{const S=Oe,N=Pe;return h(),x("div",el,[o(S,{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(()=>[y("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:a},{default:m(()=>u[0]||(u[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(p)?(h(),x(fe,{key:1},[e(b).length?(h(),x("div",{key:0,style:Ae({maxHeight:`${e(We)}px`,height:e(w)})},[o(e(et),{columns:e(f),data:e(b),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",nl,[o(N,{title:"No Policies",desc:"No RLS policies are defined for this table."})])):U("",!0)],64)):U("",!0)])}}}),al={class:"relative"},sl={key:0,class:"p-2"},ll={key:2,class:"flex items-center justify-center py-3"},rl=Y({__name:"RulesTab",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r=["rule_name","event","action_type","definition"],n=Qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=P(null),d=$e(),i=C(()=>t.connectionId?d.connections.find(a=>a.id===t.connectionId):d.selectedConnection),{data:p,status:l}=xe("/api/tables/rules",{method:"POST",body:C(()=>({...we(i.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 g;v.value=((g=a._data)==null?void 0:g.message)||"Failed to load rules"}},"$u5D1mSLK0A"),_=C(()=>(p.value||[]).map(a=>({rule_name:a.ruleName,event:a.event,action_type:a.actionType,definition:a.definition}))),b=C(()=>_.value.length>0?tt(_.value):nt(r)),f=C(()=>`${ot(_.value.length)}px`),w=()=>{v.value=null,ze(`rules-${s.value}`)};return(a,g)=>{const u=Oe,S=Pe;return h(),x("div",al,[o(u,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",sl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:w},{default:m(()=>g[0]||(g[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(_).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(f)})},[o(e(et),{columns:e(b),data:e(_),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",ll,[o(S,{title:"No Rules",desc:"This table has no rewrite rules."})])):U("",!0)])}}}),il={class:"rounded-md border p-2.5"},cl={key:0,class:"p-2"},ul={key:1,class:"space-y-1.5"},dl={class:"flex items-center gap-1 flex-wrap"},ml={class:"inline-flex items-center gap-1 rounded-md border bg-muted/20 px-1.5 py-0.5"},pl={class:"text-[11px] font-mono leading-none text-foreground"},fl={class:"flex flex-wrap gap-1"},vl={class:"text-xxs text-muted-foreground"},yl=Y({__name:"TableMetaInfo",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r={table:"Table",partitioned:"Partitioned Table",foreign:"Foreign Table"},n=P(null),s=C(()=>`${t.schema}.${t.tableName}`),v=$e(),d=C(()=>t.connectionId?v.connections.find(f=>f.id===t.connectionId):v.selectedConnection),{data:i,status:p}=xe("/api/tables/meta",{method:"POST",body:C(()=>({...we(d.value),schema:t.schema,tableName:t.tableName})),key:`table-meta-${s.value}`,onResponseError({response:f}){var w;n.value=((w=f._data)==null?void 0:w.message)||"Failed to load table metadata"}},"$AYAykbrhiy"),l=C(()=>{var w;const f=(w=i.value)==null?void 0:w.type;return f?r[f]??f:"Unknown"}),_=C(()=>{var f,w,a,g,u;return[{label:"Rows",value:((w=(f=i.value)==null?void 0:f.rowEstimate)==null?void 0:w.toLocaleString())??"—",mono:!0},{label:"Total",value:((a=i.value)==null?void 0:a.totalSize)||"—"},{label:"Table",value:((g=i.value)==null?void 0:g.tableSize)||"—"},{label:"Index",value:((u=i.value)==null?void 0:u.indexSize)||"—"}]}),b=()=>{n.value=null,ze(`table-meta-${s.value}`)};return(f,w)=>{const a=Oe;return h(),x("div",il,[o(a,{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(()=>[y("span",null,B(e(n)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:b},{default:m(()=>w[0]||(w[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(i)?(h(),x("div",ul,[y("div",dl,[o(e($t),{variant:"secondary",class:"h-5 px-1.5 text-xxs"},{default:m(()=>[A(B(e(l)),1)]),_:1}),y("span",ml,[w[1]||(w[1]=y("span",{class:"text-xxs text-muted-foreground"}," Owner ",-1)),y("span",pl,B(e(i).owner||"—"),1)])]),y("div",fl,[(h(!0),x(fe,null,ke(e(_),g=>(h(),x("div",{key:g.label,class:"inline-flex items-center gap-1 rounded-md border bg-muted/20 px-1.5 py-0.5"},[y("span",vl,B(g.label),1),y("span",{class:De(["text-[11px] leading-none text-foreground",g.mono?"font-mono":"font-medium"])},B(g.value),3)]))),128))])])):U("",!0)])}}}),gl={class:"relative"},hl={key:0,class:"p-2"},bl={key:2,class:"flex items-center justify-center py-3"},_l=Y({__name:"TriggersTab",props:{schema:{},tableName:{},connectionId:{}},setup(c){const t=c,r=["trigger_name","enabled","timing","events","orientation","definition"],n=Qe(),s=C(()=>`${t.schema}.${t.tableName}`),v=P(null),d=$e(),i=C(()=>t.connectionId?d.connections.find(a=>a.id===t.connectionId):d.selectedConnection),{data:p,status:l}=xe("/api/tables/triggers",{method:"POST",body:C(()=>({...we(i.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 g;v.value=((g=a._data)==null?void 0:g.message)||"Failed to load triggers"}},"$S3QU21QNI4"),_=C(()=>(p.value||[]).map(a=>{var g;return{trigger_name:a.triggerName,enabled:a.enabled?"Enabled":"Disabled",timing:a.timing,events:((g=a.events)==null?void 0:g.join(", "))||"—",orientation:a.orientation,definition:a.definition}})),b=C(()=>_.value.length>0?tt(_.value):nt(r)),f=C(()=>`${ot(_.value.length)}px`),w=()=>{v.value=null,ze(`triggers-${s.value}`)};return(a,g)=>{const u=Oe,S=Pe;return h(),x("div",gl,[o(u,{visible:e(l)==="pending"},null,8,["visible"]),e(v)?(h(),x("div",hl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(v)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:w},{default:m(()=>g[0]||(g[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(_).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(f)})},[o(e(et),{columns:e(b),data:e(_),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(l)!=="pending"?(h(),x("div",bl,[o(S,{title:"No Triggers",desc:"This table has no triggers."})])):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:"ViewDependencies",props:{schema:{},viewName:{},connectionId:{}},setup(c){const t=c,r=["depends_on"],n=P(null),s=C(()=>`${t.schema}.${t.viewName}`),v=$e(),d=C(()=>t.connectionId?v.connections.find(w=>w.id===t.connectionId):v.selectedConnection),{data:i,status:p}=xe("/api/views/dependencies",{method:"POST",body:C(()=>({...we(d.value),schema:t.schema,viewName:t.viewName})),key:`view-deps-${s.value}`,onResponseError({response:w}){var a;n.value=((a=w._data)==null?void 0:a.message)||"Failed to load dependencies"}},"$jEYg_hmjWR"),l=C(()=>(i.value||[]).map(w=>({depends_on:w.dependsOn}))),_=C(()=>l.value.length>0?tt(l.value):nt(r)),b=C(()=>`${ot(l.value.length)}px`),f=()=>{n.value=null,ze(`view-deps-${s.value}`)};return(w,a)=>{const g=Oe,u=Pe;return h(),x("div",wl,[o(g,{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(()=>[y("span",null,B(e(n)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:f},{default:m(()=>a[0]||(a[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(l).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(b)})},[o(e(et),{columns:e(_),data:e(l),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(p)!=="pending"?(h(),x("div",Sl,[o(u,{title:"No Dependencies",desc:"This view has no upstream dependencies."})])):U("",!0)])}}}),Nl={class:"relative"},Tl={key:0,class:"p-2"},Rl={key:2,class:"flex items-center justify-center py-6"},$l=Y({__name:"ViewIndexesTab",props:{schema:{},viewName:{},connectionId:{}},setup(c){const t=c,r=["index_name","method","is_unique","definition"],n=P(null),s=C(()=>`${t.schema}.${t.viewName}`),v=$e(),d=C(()=>t.connectionId?v.connections.find(w=>w.id===t.connectionId):v.selectedConnection),{data:i,status:p}=xe("/api/views/indexes",{method:"POST",body:C(()=>({...we(d.value),schema:t.schema,viewName:t.viewName})),key:`view-indexes-${s.value}`,onResponseError({response:w}){var a;n.value=((a=w._data)==null?void 0:a.message)||"Failed to load indexes"}},"$44YnrMDjVX"),l=C(()=>(i.value||[]).map(w=>({index_name:w.indexName,method:w.method,is_unique:w.isUnique,definition:w.definition}))),_=C(()=>l.value.length>0?tt(l.value):nt(r)),b=C(()=>`${ot(l.value.length)}px`),f=()=>{n.value=null,ze(`view-indexes-${s.value}`)};return(w,a)=>{const g=Oe,u=Pe;return h(),x("div",Nl,[o(g,{visible:e(p)==="pending"},null,8,["visible"]),e(n)?(h(),x("div",Tl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(n)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:f},{default:m(()=>a[0]||(a[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(l).length?(h(),x("div",{key:1,style:Ae({maxHeight:`${e(We)}px`,height:e(b)})},[o(e(et),{columns:e(_),data:e(l),class:"h-full",columnKeyBy:"field"},null,8,["columns","data"])],4)):e(p)!=="pending"?(h(),x("div",Rl,[o(u,{title:"No Indexes",desc:"This materialized view has no indexes."})])):U("",!0)])}}}),Il={class:"rounded-md border p-2.5 relative"},kl={key:0,class:"p-2"},Ol={key:1,class:"space-y-1.5"},El={class:"flex items-center gap-1 flex-wrap"},Al={key:0,class:"flex flex-wrap gap-1"},Fl={class:"text-xxs text-muted-foreground"},Dl=Y({__name:"ViewMetaInfo",props:{schema:{},viewName:{},connectionId:{}},setup(c){const t=c,r=Qe(),n=C(()=>`${t.schema}.${t.viewName}`),s=P(null),v=$e(),d=C(()=>t.connectionId?v.connections.find(a=>a.id===t.connectionId):v.selectedConnection),{data:i,status:p}=xe("/api/views/meta",{method:"POST",body:C(()=>({...we(d.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 g;s.value=((g=a._data)==null?void 0:g.message)||"Failed to load view metadata"}},"$pLysS3IkaY"),l=C(()=>{var a;return((a=i.value)==null?void 0:a.type)==="materialized"}),_=C(()=>l.value?"Materialized View":"Normal View"),b=C(()=>{var a,g,u,S;return l.value?{variant:(u=i.value)!=null&&u.isPopulated?"default":"destructive",label:`Populated: ${(S=i.value)!=null&&S.isPopulated?"Yes":"No"}`}:{variant:(a=i.value)!=null&&a.isUpdatable?"default":"outline",label:`Updatable: ${(g=i.value)!=null&&g.isUpdatable?"Yes":"No"}`}}),f=C(()=>{var a,g,u,S,N;return l.value?[{label:"Rows",value:((g=(a=i.value)==null?void 0:a.rowEstimate)==null?void 0:g.toLocaleString())??"—",mono:!0},{label:"Total",value:((u=i.value)==null?void 0:u.totalSize)??"—"},{label:"Table",value:((S=i.value)==null?void 0:S.tableSize)??"—"},{label:"Index",value:((N=i.value)==null?void 0:N.indexSize)??"—"}]:[]}),w=()=>{s.value=null,ze(`view-meta-${n.value}`)};return(a,g)=>{const u=Oe;return h(),x("div",Il,[o(u,{visible:e(p)==="pending"},null,8,["visible"]),e(s)?(h(),x("div",kl,[o(e(je),{variant:"destructive"},{default:m(()=>[o(e(He),{class:"flex items-center justify-between gap-2"},{default:m(()=>[y("span",null,B(e(s)),1),o(e(Ce),{variant:"outline",size:"xs",onClick:w},{default:m(()=>g[0]||(g[0]=[A("Retry")])),_:1})]),_:1})]),_:1})])):e(i)?(h(),x("div",Ol,[y("div",El,[o(e($t),{variant:"secondary",class:"h-5 px-1.5 text-xxs"},{default:m(()=>[A(B(e(_)),1)]),_:1}),o(e($t),{variant:e(b).variant,class:"h-5 px-1.5 text-xxs"},{default:m(()=>[A(B(e(b).label),1)]),_:1},8,["variant"])]),e(f).length?(h(),x("div",Al,[(h(!0),x(fe,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"},[y("span",Fl,B(S.label),1),y("span",{class:De(["text-[11px] leading-none text-foreground",S.mono?"font-mono":"font-medium"])},B(S.value),3)]))),128))])):U("",!0)])):U("",!0)])}}}),Pl=Y({__name:"VirtualTableDefinition",props:{schema:{},connectionId:{},viewName:{},viewId:{}},setup(c){const t=c,r=$e(),n=C(()=>t.connectionId?r.connections.find(i=>i.id===t.connectionId):r.selectedConnection),{data:s,status:v}=xe("/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"),d=C(()=>{var i;return(i=s.value)!=null&&i.definition?Sa(s.value.definition):""});return(i,p)=>{const l=Oe,_=Dt,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(d)?(h(),D(_,{key:0,code:e(d),"show-copy-button":"","max-height":"24rem"},null,8,["code"])):e(v)!=="pending"?(h(),D(b,{key:1,title:"No Definition",desc:"No SQL definition is available for this view."})):U("",!0)])}}}),Ml={class:"h-full overflow-y-auto p-1.5"},Ll={class:"space-y-3 pb-2"},Bl={key:0,class:"space-y-1"},Ul={key:1,class:"space-y-1"},Vl={class:"space-y-1"},Kl={class:"space-y-1"},ql={class:"rounded-md border"},Ql={class:"space-y-1"},zl={class:"flex items-center gap-2"},jl={class:"rounded-md border"},Hl={class:"space-y-1"},Wl={class:"rounded-md border"},Gl={class:"space-y-1"},Yl={class:"rounded-md border"},Jl={key:0,class:"space-y-1"},Xl={key:1,class:"space-y-1"},Zl={class:"rounded-md border"},er={class:"space-y-1"},tr={class:"rounded-md border"},ao=Y({__name:"StructureTable",props:{schema:{},tableName:{},connectionId:{},isVirtualTable:{type:Boolean},virtualTableId:{}},setup(c){const t=c,r=["column_name","data_type","is_nullable","default_value","foreign_keys","on_update","on_delete","column_comment"],n=$e(),s=C(()=>t.connectionId?n.connections.find(a=>a.id===t.connectionId):n.selectedConnection),{data:v,status:d}=xe("/api/tables/structure",{method:"POST",body:C(()=>({...we(s.value),schema:t.schema,tableName:t.tableName})),key:`${t.schema}.${t.tableName}`},"$ALIsatagCk"),i=C(()=>{const a=v.value||[];return a.length>0?tt(a):nt(r)}),p=Qe(),l=C(()=>`${t.schema}.${t.tableName}`),{data:_}=xe("/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}=xe("/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"}),w=C(()=>{const a=(v.value||[]).length;return`${ot(a)}px`});return(a,g)=>{const u=Oe;return h(),x("div",Ml,[y("div",Ll,[a.isVirtualTable?(h(),x("section",Ul,[g[1]||(g[1]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Meta Info"),y("p",{class:"text-xs text-muted-foreground"}," View type and storage metadata ")],-1)),o(Dl,{connectionId:a.connectionId,schema:a.schema,viewName:a.tableName},null,8,["connectionId","schema","viewName"])])):(h(),x("section",Bl,[g[0]||(g[0]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Meta Info"),y("p",{class:"text-xs text-muted-foreground"}," Table type and storage metadata ")],-1)),o(yl,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])),y("section",Vl,[g[2]||(g[2]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Columns"),y("p",{class:"text-xs text-muted-foreground"}," Table column structure and constraints ")],-1)),y("div",{class:"relative",style:Ae({maxHeight:`${e(We)}px`,height:e(w)})},[o(u,{visible:e(d)==="pending"},null,8,["visible"]),o(e(et),{columns:e(i),data:e(v)||[],class:"h-full border rounded-md",columnKeyBy:"field"},null,8,["columns","data"])],4)]),a.isVirtualTable?(h(),x(fe,{key:3},[a.virtualTableId?(h(),x("section",Jl,[g[8]||(g[8]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Definition"),y("p",{class:"text-xs text-muted-foreground"},"View SQL definition")],-1)),o(Pl,{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",Xl,[g[9]||(g[9]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Indexes"),y("p",{class:"text-xs text-muted-foreground"}," Indexes on materialized view ")],-1)),y("div",Zl,[o($l,{schema:a.schema,viewName:a.tableName,connectionId:a.connectionId},null,8,["schema","viewName","connectionId"])])])):U("",!0),y("section",er,[g[10]||(g[10]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Dependencies"),y("p",{class:"text-xs text-muted-foreground"}," Objects referenced by this view ")],-1)),y("div",tr,[o(xl,{schema:a.schema,viewName:a.tableName,connectionId:a.connectionId},null,8,["schema","viewName","connectionId"])])])],64)):(h(),x(fe,{key:2},[y("section",Kl,[g[3]||(g[3]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Indexes"),y("p",{class:"text-xs text-muted-foreground"}," Available indexes and definitions ")],-1)),y("div",ql,[o(Zs,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])]),y("section",Ql,[y("div",null,[y("div",zl,[g[4]||(g[4]=y("h3",{class:"text-sm font-medium"},"RLS",-1)),e(_)?(h(),D(e($t),{key:0,variant:e(_).enabled?"default":"secondary",class:"h-5 px-1.5 text-xxs"},{default:m(()=>[A(B(e(_).enabled?"Enabled":"Disabled"),1)]),_:1},8,["variant"])):U("",!0)]),g[5]||(g[5]=y("p",{class:"text-xs text-muted-foreground"}," Row-level security status and policies ",-1))]),y("div",jl,[o(ol,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])]),y("section",Hl,[g[6]||(g[6]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Rules"),y("p",{class:"text-xs text-muted-foreground"}," Rewrite rules configured on this table ")],-1)),y("div",Wl,[o(rl,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])]),y("section",Gl,[g[7]||(g[7]=y("div",null,[y("h3",{class:"text-sm font-medium"},"Triggers"),y("p",{class:"text-xs text-muted-foreground"}," Trigger status and trigger definitions ")],-1)),y("div",Yl,[o(_l,{schema:a.schema,tableName:a.tableName,connectionId:a.connectionId},null,8,["schema","tableName","connectionId"])])])],64))])])}}}),nr={class:"px-2"},or={class:"px-2"},ar={class:"flex-1 overflow-hidden px-2 mb-0.5"},sr={key:1,class:"h-full"},so=Y({__name:"ReferencedTable",props:{tableName:{},schemaName:{},initFilters:{},connectionId:{},workspaceId:{}},emits:["onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal"],setup(c,{emit:t}){const r=c,n=P(),s=t,{quickQueryFilterRef:v,quickQueryTableRef:d,selectedRows:i,focusedCell:p}=Wn(),l=yt(),_=$e(),{onRequestSafeModeConfirm:b,onSafeModeCancel:f,onSafeModeConfirm:w,safeModeDialogOpen:a,safeModeDialogSql:g,safeModeDialogType:u}=Zn(),S=C(()=>_.connections.find(X=>X.id===r.connectionId)),N=C(()=>{var X;return((X=S.value)==null?void 0:X.type)||ye.POSTGRES}),{columnNames:Z,foreignKeys:ie,primaryKeyColumns:J,tableMetaData:ue,columnTypes:me,foreignKeyColumns:pe}=Jn({tableName:r.tableName,schemaName:r.schemaName,connectionId:r.connectionId,tabViewType:Nt.TableDetail}),{onApplyNewFilter:oe,data:de,baseQueryString:Ne,refreshTableData:T,refreshCount:E,isAllowNextPage:H,isAllowPreviousPage:I,onNextPage:V,onPreviousPage:K,onUpdatePagination:R,totalRows:$,pagination:F,errorMessage:M,openErrorModal:O,orderBy:Q,onUpdateOrderBy:ae,addHistoryLog:ne,filters:ee,isShowFilters:ce,composeWith:ge,onChangeComposeWith:k,isFetchingTableData:L}=Hn({connection:S,primaryKeys:J,columns:Z,connectionId:C(()=>r.connectionId),workspaceId:C(()=>r.workspaceId),tableName:r.tableName,schemaName:r.schemaName,isPersist:!1,initFilters:(r==null?void 0:r.initFilters)||[],initComposeWith:ft.OR});Fe(ue,X=>{X&&(ee.value=(r==null?void 0:r.initFilters)||[],E(),T())},{deep:!0,immediate:!0});const{isMutating:q,onAddEmptyRow:te,onDiscardChanges:Ie,onDeleteRows:Se,onSaveData:Ge,hasEditedRows:Me,pendingChangesCount:rt,onCopyRows:gt,onPasteRows:ht,onRefresh:bt,onSelectedRowsChange:_t,onCopySelectedCell:it,onFocusedCellChange:Ot,onDeselectAll:wt}=Yn({tableName:r.tableName,schemaName:r.schemaName,primaryKeys:J,refreshTableData:T,columnNames:Z,data:de,addHistoryLog:ne,errorMessage:M,openErrorModal:O,selectedRows:i,pagination:F,quickQueryTableRef:d,refreshCount:E,focusedCell:p,connection:S,safeModeEnabled:Tt(l,"quickQuerySafeModeEnabled"),onRequestSafeModeConfirm:b}),{quickQueryTabView:Le,openedQuickQueryTab:Ct}=Xn(),{onAddFilterByContextCell:St}=Gn({quickQueryFilterRef:v,quickQueryTableRef:d,filters:ee,onApplyNewFilter:oe}),{isHaveRelationByFieldName:Et}=Yt({schemaName:r.schemaName,tableName:r.tableName});return vt([{key:"meta+a",callback:()=>{var X,se;(se=(X=d.value)==null?void 0:X.gridApi)==null||se.selectAll()},excludeInput:!0,isPreventDefault:!0},{key:"meta+c",callback:()=>{it()},excludeInput:!0},{key:"meta+v",callback:()=>ht(),excludeInput:!0},{key:"meta+s",callback:()=>Ge(),isPreventDefault:!0},{key:"meta+alt+backspace",callback:()=>{Se()},isPreventDefault:!0}],{target:n}),(X,se)=>{var Ye,ct;return h(),x(fe,null,[o(Bn,{open:e(O),"onUpdate:open":se[0]||(se[0]=ve=>Ee(O)?O.value=ve:null),message:e(M)||""},null,8,["open","message"]),o(Un,{open:e(a),"onUpdate:open":se[1]||(se[1]=ve=>Ee(a)?a.value=ve:null),sql:e(g),type:e(u),onConfirm:e(w),onCancel:e(f)},null,8,["open","sql","type","onConfirm","onCancel"]),y("div",{ref_key:"containerRef",ref:n,class:"flex flex-col h-full w-full relative",tabindex:"0"},[o(e(Oe),{visible:e(q)||e(L)},null,8,["visible"]),y("div",nr,[o(eo,{"total-selected-rows":(Ye=e(i))==null?void 0:Ye.length,isAllowNextPage:e(H),isAllowPreviousPage:e(I),totalRows:e($),limit:e(F).limit,currentTotalRows:((ct=e(de))==null?void 0:ct.length)||0,offset:e(F).offset,"has-edited-rows":e(Me),"pending-changes-count":e(rt),onOnPaginate:e(R),onOnNextPage:e(V),onOnPreviousPage:e(K),onOnRefresh:e(bt),onOnDiscardChanges:e(Ie),onOnSaveData:e(Ge),onOnDeleteRows:e(Se),onOnAddEmptyRow:e(te),onOnShowFilter:se[2]||(se[2]=async()=>{var ve;await((ve=e(v))==null?void 0:ve.onShowSearch())}),tabView:e(Le),"onUpdate:tabView":se[3]||(se[3]=ve=>Ee(Le)?Le.value=ve: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"])]),y("div",or,[e(Le)===e(re).Data?(h(),D(to,{key:0,ref_key:"quickQueryFilterRef",ref:v,onOnSearch:se[4]||(se[4]=()=>{e(oe)()}),onOnUpdateFilters:se[5]||(se[5]=ve=>{ee.value=ve}),isShowFilters:e(ce),"onUpdate:isShowFilters":se[6]||(se[6]=ve=>Ee(ce)?ce.value=ve:null),initFilters:e(ee),baseQuery:e(Ne),columns:e(Z),dbType:e(N),composeWith:e(ge),onOnChangeComposeWith:e(k)},null,8,["isShowFilters","initFilters","baseQuery","columns","dbType","composeWith","onOnChangeComposeWith"])):U("",!0)]),y("div",ar,[e(Ct)[e(re).Erd]?qe((h(),D(Ln,{key:0,tableId:e(On)({tableName:X.tableName,schemaName:X.schemaName})},null,8,["tableId"])),[[Ze,e(Le)===e(re).Erd]]):U("",!0),e(Ct)[e(re).Structure]?qe((h(),x("div",sr,[o(ao,{schema:X.schemaName,tableName:X.tableName,connectionId:X.connectionId},null,8,["schema","tableName","connectionId"])],512)),[[Ze,e(Le)===e(re).Structure]]):U("",!0),qe(o(no,{"total-selected-rows":e(i).length,"has-edited-rows":e(Me),selectedRows:e(i),"table-name":X.tableName,"schema-name":X.schemaName,isReferencedTable:"",onOnPaginate:e(R),onOnNextPage:e(V),onOnPreviousPage:e(K),onOnRefresh:e(bt),onOnSaveData:e(Ge),onOnDeleteRows:e(Se),onOnAddEmptyRow:e(te),onOnFilterByValue:e(St),onOnCopyRows:e(gt),onOnPasteRows:e(ht),onOnCopySelectedCell:e(it)},{default:m(()=>[o(oo,{class:"h-full border rounded-md",ref_key:"quickQueryTableRef",ref:d,"selected-rows":e(i),data:e(de)||[],orderBy:e(Q),onOnSelectedRows:e(_t),"onUpdate:orderBy":e(ae),onOnOpenBackReferencedTableModal:se[7]||(se[7]=ve=>s("onOpenBackReferencedTableModal",ve)),onOnOpenForwardReferencedTableModal:se[8]||(se[8]=ve=>s("onOpenForwardReferencedTableModal",ve)),isHaveRelationByFieldName:e(Et),foreignKeyColumns:e(pe),foreignKeys:e(ie),primaryKeyColumns:e(J),columnTypes:e(me),defaultPageSize:e(kt),offset:e(F).offset,onOnFocusCell:e(Ot),"current-schema-name":X.schemaName,"current-table-name":X.tableName,onOnClickOutSide:e(wt)},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"]),[[Ze,e(Le)===e(re).Data]])])],512)],64)}}}),lr={class:"flex justify-between items-center gap-2 w-full"},rr={class:"relative w-full"},ir={class:"flex flex-1"},cr=Y({__name:"BackReferencedTable",props:{tableName:{},schemaName:{},columnName:{},recordId:{},selectedTab:{},connectionId:{},workspaceId:{},rootSchemaName:{}},emits:["onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal","update:selectedTab"],setup(c,{emit:t}){const r=c,n=t,{reverseTables:s}=Yt({schemaName:r.schemaName,tableName:r.tableName}),v=P(""),d=C(()=>{var g;const f=new Map,w=fn((g=s.value)==null?void 0:g.used_by)||[];for(const u of w)u.referenced_column===r.columnName&&f.set(u.referencing_table,{table:u.referencing_table,schema:u.referencing_schema});let a=[...f.values()].sort((u,S)=>u.table.localeCompare(S.table));if(v.value){const u=v.value.toLowerCase();a=a.filter(S=>S.table.toLowerCase().includes(u))}return a});Tn(()=>{!r.selectedTab&&d.value.length>0&&n("update:selectedTab",d.value[0].table,d.value[0].schema)});const i=f=>{var g;if(!f)return[];const w=[],a=fn((g=s.value)==null?void 0:g.used_by)||[];for(const u of a)if(u.referencing_table===f){const S={fieldName:u.fk_column,operator:W.EQUAL,search:r.recordId,isSelect:!0};w.push(S)}return w},p=f=>{const{schemaName:w,tableName:a}=b(f);n("update:selectedTab",a,w)},l=f=>{const w=f.target;w instanceof HTMLElement&&w.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},_=f=>`${f.schema}.${f.table}`,b=f=>{const[w,a]=f.split(".");return{schemaName:w,tableName:a}};return(f,w)=>{const a=Ut,g=Bt,u=le,S=Lt;return h(),D(S,{"model-value":_({table:f.selectedTab||"",schema:f.schemaName}),"onUpdate:modelValue":w[4]||(w[4]=N=>p(N)),class:"flex-1 flex-wrap h-full w-full"},{default:m(()=>[y("div",lr,[o(g,{class:"overflow-x-auto w-full justify-start!"},{default:m(()=>[(h(!0),x(fe,null,ke(e(d),N=>(h(),D(a,{class:"cursor-pointer font-normal! flex-none!",onClick:l,value:_(N),key:_(N)},{default:m(()=>[A(B(f.rootSchemaName===N.schema?null:`${N.schema}.`)+B(N.table),1)]),_:2},1032,["value"]))),128))]),_:1}),y("div",null,[y("div",rr,[o(e(lt),{type:"text",placeholder:"Search tables",class:"pr-6 w-48 h-8",modelValue:e(v),"onUpdate:modelValue":w[0]||(w[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:w[1]||(w[1]=N=>v.value="")},[o(u,{name:"lucide:x",class:"stroke-3! text-muted-foreground"})])):U("",!0)])])]),y("div",ir,[(h(),D(En,null,[(h(),D(so,{key:f.selectedTab,tableName:f.selectedTab||"","schema-name":f.schemaName,"init-filters":i(f.selectedTab),connectionId:r.connectionId,workspaceId:r.workspaceId,onOnOpenBackReferencedTableModal:w[2]||(w[2]=N=>n("onOpenBackReferencedTableModal",N)),onOnOpenForwardReferencedTableModal:w[3]||(w[3]=N=>n("onOpenForwardReferencedTableModal",N))},null,8,["tableName","schema-name","init-filters","connectionId","workspaceId"]))],1024))])]),_:1},8,["model-value"])}}}),ur={class:"flex flex-1"},dr=Y({__name:"ForwardReferencedTable",props:{tableName:{},schemaName:{},columnName:{},recordId:{},connectionId:{},workspaceId:{}},emits:["onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal"],setup(c,{emit:t}){const r=c,n=t,s=()=>[{fieldName:r.columnName,operator:W.EQUAL,search:r.recordId,isSelect:!0}];return(v,d)=>(h(),x("div",ur,[(h(),D(so,{key:e(pt)(),tableName:v.tableName,"schema-name":v.schemaName,"init-filters":s(),connectionId:r.connectionId,workspaceId:r.workspaceId,onOnOpenBackReferencedTableModal:d[0]||(d[0]=i=>n("onOpenBackReferencedTableModal",i)),onOnOpenForwardReferencedTableModal:d[1]||(d[1]=i=>n("onOpenForwardReferencedTableModal",i))},null,8,["tableName","schema-name","init-filters","connectionId","workspaceId"]))]))}}),mr={class:"flex items-center"},pr=Y({__name:"PreviewRelationTable",props:{open:{type:Boolean},breadcrumbs:{},currentTableName:{},connectionId:{},workspaceId:{},rootSchemaName:{}},emits:["onBackPreviousBreadcrumbByIndex","onBackPreviousBreadcrumb","clearBreadcrumb","onUpdateSelectedTabInBreadcrumb","onOpenBackReferencedTableModal","onOpenForwardReferencedTableModal"],setup(c,{emit:t}){const r=t,n=c,s=C(()=>n.breadcrumbs.length?n.breadcrumbs[n.breadcrumbs.length-1]:null),v=(i,p)=>{r("onUpdateSelectedTabInBreadcrumb",n.breadcrumbs.length-1,i,p)},d=i=>i.type==="backReferenced"?n.rootSchemaName===i.schemaName?i.selectedTab:`${i.schemaName}.${i.selectedTab}`:`${i.schemaName}.${i.tableName}`;return(i,p)=>{const l=le,_=Ce,b=qo,f=Ko,w=Vo,a=Uo,g=Bo;return h(),D(e(Lo),{open:i.open,"onUpdate:open":p[4]||(p[4]=u=>i.$emit("clearBreadcrumb"))},{default:m(()=>[o(e(Ho),{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 u;return[o(g,null,{default:m(()=>[o(a,null,{default:m(()=>[y("div",mr,[o(_,{onClick:p[0]||(p[0]=S=>i.$emit("onBackPreviousBreadcrumb")),size:"iconMd",variant:"secondary"},{default:m(()=>[o(l,{name:"hugeicons:arrow-left-02",class:"size-4!"})]),_:1}),o(w,null,{default:m(()=>[o(f,{class:"gap-0.5!"},{default:m(()=>[o(e(vn),{class:"hover:cursor-pointer"},{default:m(()=>[o(e(gn),{onClick:p[1]||(p[1]=S=>r("clearBreadcrumb"))},{default:m(()=>[A(B(i.currentTableName),1)]),_:1})]),_:1}),o(b),(h(!0),x(fe,null,ke(i.breadcrumbs,(S,N)=>(h(),x(fe,null,[o(e(vn),{class:De([N!==i.breadcrumbs.length-1&&"hover:cursor-pointer"])},{default:m(()=>[N===i.breadcrumbs.length-1?(h(),D(e(Qo),{key:0},{default:m(()=>[A(B(d(S)),1)]),_:2},1024)):(h(),D(e(gn),{key:1,onClick:Z=>r("onBackPreviousBreadcrumbByIndex",N)},{default:m(()=>[A(B(d(S)),1)]),_:2},1032,["onClick"]))]),_:2},1032,["class"]),N<i.breadcrumbs.length-1?(h(),D(b,{key:0})):U("",!0)],64))),256))]),_:1})]),_:1})])]),_:1})]),_:1}),(h(),D(En,null,[e(s)?(h(),D(zo(((u=e(s))==null?void 0:u.type)==="backReferenced"?cr:dr),jo({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"])}}}),fr=["innerHTML"],vr=Y({__name:"QuickQueryHistoryLogItem",props:{log:{},highlighter:{}},setup(c){const t=c,r=P("");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,fr))}}),yr={class:"flex flex-1 flex-col h-full"},gr={class:"flex flex-1 h-full items-center justify-between"},hr={class:"flex items-center gap-1"},br={key:0,class:"flex items-center justify-center h-full w-full"},_r=["data-index"],wr={class:"pb-2 leading-relaxed text-xs"},Cr={class:"text-xxs"},Sr={class:"text-xxs"},xr=Y({__name:"QuickQueryHistoryLogsPanel",props:{tableName:{},schemaName:{}},setup(c){const t=c,r=P("all"),n=Kn(),{qqLogs:s}=Mt(n),v=C(()=>r.value==="all"?s.value:n.getLogsByTableId(t)),d=Ht("wrapperRef"),{height:i}=Wo(d),p=P(null),l=Go({get count(){return v.value.length},getScrollElement:()=>p.value,estimateSize:()=>39}),_=C(()=>l.value.getVirtualItems()),b=C(()=>l.value.getTotalSize()),f=g=>{g&&l.value.measureElement(g)},w=g=>new Date(g).toLocaleString(),a=P();return Yo(async()=>{const g=xa({themes:[Ra],langs:[Ta],engine:Na()});a.value=await g}),Jo(async()=>{l.value&&(await Be(),l.value.scrollToIndex(v.value.length-1))}),Fe(()=>v.value,async()=>{l.value&&(await Be(),l.value.scrollToIndex(v.value.length-1))},{deep:!0}),(g,u)=>{const S=Ut,N=Bt,Z=Lt,ie=le,J=Ce,ue=Pe,me=An,pe=Fn;return h(),x("div",yr,[y("div",gr,[o(Z,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=oe=>r.value=oe),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(()=>u[2]||(u[2]=[A(" All logs ")])),_:1},8,["value"]),o(S,{value:"one-table",class:"h-5! font-medium text-xs cursor-pointer text-primary/80"},{default:m(()=>u[3]||(u[3]=[A(" Only this table ")])),_:1},8,["value"])]),_:1})]),_:1},8,["modelValue"]),u[8]||(u[8]=y("div",null,[y("p",{class:"font-medium text-xs"},"Logs history")],-1)),y("div",hr,[r.value==="all"?(h(),D(e(he),{key:0},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(J,{variant:"outline",size:"xxs",onClick:e(n).deleteAllLogs},{default:m(()=>[o(ie,{name:"lucide:trash"}),u[4]||(u[4]=y("p",{class:"font-normal"},"Delete all logs",-1))]),_:1},8,["onClick"])]),_:1}),o(e(_e),null,{default:m(()=>u[5]||(u[5]=[y("p",null,"Delete all logs",-1)])),_:1})]),_:1})):(h(),D(e(he),{key:1},{default:m(()=>[o(e(be),{"as-child":""},{default:m(()=>[o(J,{variant:"outline",size:"xxs",onClick:u[1]||(u[1]=oe=>e(n).deleteLogsOfTable(t))},{default:m(()=>[o(ie,{name:"lucide:trash"}),u[6]||(u[6]=y("p",{class:"font-normal"},"Delete logs",-1))]),_:1})]),_:1}),o(e(_e),null,{default:m(()=>u[7]||(u[7]=[y("p",null,"Delete logs for this table",-1)])),_:1})]),_:1}))])]),v.value.length?(h(),D(pe,{key:1,class:"py-0 mt-1 h-full rounded-none shadow-none border-none overflow-auto",ref_key:"wrapperRef",ref:d},{default:m(()=>[o(me,{class:"p-0"},{default:m(()=>{var oe;return[y("div",{ref_key:"parentRef",ref:p,style:Ae({height:`${e(i)}px`}),class:"w-full overflow-y-auto contain-strict h-full"},[y("div",{style:Ae({height:`${b.value}px`,width:"100%",position:"relative"})},[y("div",{style:Ae({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${((oe=_.value[0])==null?void 0:oe.start)??0}px)`})},[(h(!0),x(fe,null,ke(_.value,de=>(h(),x("div",{key:de.key.toString(),"data-index":de.index,ref_for:!0,ref:f},[y("div",wr,[y("span",Cr,"["+B(w(v.value[de.index].createdAt))+"] ",1),y("span",Sr," : "+B(e($a)(v.value[de.index].queryTime||0)),1),o(vr,{highlighter:a.value,log:v.value[de.index].logs},null,8,["highlighter","log"])])],8,_r))),128))],4)],4)],4)]}),_:1})]),_:1},512)):(h(),x("div",br,[o(ue,{title:"No logs found",desc:"There are no execution logs to display for this table."})]))])}}}),Nr=({quickQueryTableRef:c})=>{const t=P(void 0),r=()=>{var v,d,i,p,l,_,b;t.value=void 0,(i=(d=(v=c.value)==null?void 0:v.gridApi)==null?void 0:d.ensureIndexVisible)==null||i.call(d,0,"top"),(l=(p=c.value)==null?void 0:p.gridApi)==null||l.refreshHeader(),(b=(_=c.value)==null?void 0:_.gridApi)==null||b.refreshCells({force:!0})},n=v=>{var d,i,p,l,_,b;v&&((i=(d=c.value)==null?void 0:d.gridApi)==null||i.ensureColumnVisible(v,"middle"),(l=(p=c.value)==null?void 0:p.gridApi)==null||l.refreshCells({force:!0}),(b=(_=c.value)==null?void 0:_.gridApi)==null||b.refreshHeader())};return{resetGridState:r,selectedColumnFieldId:t,handleSelectColumn:v=>{t.value=v,n(v)}}},Tr={class:"px-1"},Rr={class:"px-2"},$r={class:"flex-1 overflow-hidden px-1 mb-0.5"},Ir={key:1,class:"h-full"},ei=Y({__name:"QuickQuery",props:{connectionId:{},workspaceId:{},tableName:{},schemaName:{},tabViewType:{},virtualTableId:{}},setup(c){const t=c,r=yt(),n=$e(),s=C(()=>{const z=n.connections.find(G=>G.id===t.connectionId);return(z==null?void 0:z.connectionString)||""}),v=C(()=>{var z;return((z=n.selectedConnection)==null?void 0:z.type)||ye.POSTGRES}),d=C(()=>t.tableName),i=C(()=>t.schemaName),p=P([]),l=P(),{onRequestSafeModeConfirm:_,onSafeModeCancel:b,onSafeModeConfirm:f,safeModeDialogOpen:w,safeModeDialogSql:a,safeModeDialogType:g}=Zn(),{quickQueryFilterRef:u,quickQueryTableRef:S,selectedRows:N,focusedCell:Z}=Wn(),{columnNames:ie,foreignKeys:J,primaryKeyColumns:ue,tableMetaData:me,columnTypes:pe,foreignKeyColumns:oe,isVirtualTable:de}=Jn({tableName:d.value,schemaName:i.value,connectionId:t.connectionId,tabViewType:t.tabViewType}),{onApplyNewFilter:Ne,data:T,baseQueryString:E,refreshTableData:H,refreshCount:I,isAllowNextPage:V,isAllowPreviousPage:K,onNextPage:R,onPreviousPage:$,onUpdatePagination:F,totalRows:M,pagination:O,errorMessage:Q,openErrorModal:ae,orderBy:ne,onUpdateOrderBy:ee,addHistoryLog:ce,filters:ge,isShowFilters:k,onChangeComposeWith:L,composeWith:q,isFetchingTableData:te}=Hn({connection:Tt(n,"selectedConnection"),primaryKeys:ue,columns:ie,connectionId:C(()=>t.connectionId),workspaceId:C(()=>t.workspaceId),tableName:d.value,schemaName:i.value});Fe(me,z=>{z!=null&&z.columns&&z.columns.length>0&&(I(),H())},{deep:!0,immediate:!0});const{isMutating:Ie,onAddEmptyRow:Se,onDiscardChanges:Ge,onDeleteRows:Me,onSaveData:rt,hasEditedRows:gt,pendingChangesCount:ht,onCopyRows:bt,onPasteRows:_t,onRefresh:it,onSelectedRowsChange:Ot,onCopySelectedCell:wt,onFocusedCellChange:Le}=Yn({tableName:d.value,schemaName:i.value,primaryKeys:ue,refreshTableData:H,columnNames:ie,data:T,addHistoryLog:ce,errorMessage:Q,openErrorModal:ae,selectedRows:N,pagination:O,quickQueryTableRef:S,refreshCount:I,focusedCell:Z,safeModeEnabled:Tt(r,"quickQuerySafeModeEnabled"),onRequestSafeModeConfirm:_,connection:Tt(n,"selectedConnection")}),{handleSelectColumn:Ct,selectedColumnFieldId:St,resetGridState:Et}=Nr({quickQueryTableRef:S}),{quickQueryTabView:X,openedQuickQueryTab:se}=Xn({onTabChanged:z=>{z!==re.Data&&r.onCloseBottomPanel()}}),Ye=P(!0);kn(()=>{Ye.value=!0}),Xo(()=>{Ye.value=!1});const ct=({id:z,tableName:G,columnName:Ue,schemaName:Ve})=>{p.value.push({id:pt(),type:"backReferenced",schemaName:Ve,tableName:G,columnName:Ue,recordId:z})},ve=({id:z,tableName:G,columnName:Ue,schemaName:Ve})=>{p.value.push({id:pt(),type:"forwardReferenced",schemaName:Ve,tableName:G,columnName:Ue,recordId:z})},{onAddFilterByContextCell:lo}=Gn({quickQueryFilterRef:u,quickQueryTableRef:S,filters:ge,onApplyNewFilter:Ne}),{isHaveRelationByFieldName:ro}=Yt({schemaName:i.value,tableName:d.value}),at=C(()=>p.value.length>0),At=C(()=>de.value);vt([{key:"meta+a",callback:()=>{var z,G;at.value||(G=(z=S.value)==null?void 0:z.gridApi)==null||G.selectAll()},excludeInput:!0,isPreventDefault:!0},{key:"meta+c",callback:()=>{at.value||wt()},excludeInput:!0},{key:"meta+v",callback:()=>{at.value||_t()},excludeInput:!0},{key:"meta+s",callback:()=>{at.value||At.value||rt()},isPreventDefault:!0},{key:"meta+alt+backspace",callback:()=>{at.value||At.value||Me()},isPreventDefault:!0}],{target:l}),vt([{key:"meta+f",callback:async()=>{var z;at.value||await((z=u.value)==null?void 0:z.onShowSearch())}}]);const Jt=P();Fe(()=>{var z;return(z=S.value)==null?void 0:z.columnDefs},()=>{var z,G;(z=S.value)!=null&&z.columnDefs&&(Jt.value=(G=S.value)==null?void 0:G.columnDefs)},{immediate:!0,deep:!0});const io=(z,G,Ue)=>{p.value[z]&&(p.value[z].selectedTab=G,p.value[z].schemaName=Ue)},co=()=>{p.value=[]},uo=()=>{p.value.pop()},mo=z=>{const G=p.value.filter((Ue,Ve)=>Ve<=z);p.value=G};return(z,G)=>{var Ve,Xt,Zt,en,tn,nn;const Ue=Oe;return h(),x(fe,null,[e(p).length?(h(),D(pr,{key:0,open:e(p).length>0,breadcrumbs:e(p),currentTableName:e(d),connectionId:z.connectionId,workspaceId:z.workspaceId,rootSchemaName:e(i),onClearBreadcrumb:co,onOnOpenBackReferencedTableModal:ct,onOnOpenForwardReferencedTableModal:ve,onOnUpdateSelectedTabInBreadcrumb:io,onOnBackPreviousBreadcrumb:uo,onOnBackPreviousBreadcrumbByIndex:mo},null,8,["open","breadcrumbs","currentTableName","connectionId","workspaceId","rootSchemaName"])):U("",!0),o(Un,{open:e(w),"onUpdate:open":G[0]||(G[0]=Re=>Ee(w)?w.value=Re:null),sql:e(a),type:e(g),onConfirm:e(f),onCancel:e(b)},null,8,["open","sql","type","onConfirm","onCancel"]),e(Ye)?(h(),D(yn,{key:1,defer:"",to:"#preview-select-row"},[((Ve=e(N))==null?void 0:Ve.length)!==1||e(X)!==e(re).Data?(h(),D(za,{key:0,"table-name":e(d),"schema-name":e(i),columns:e(Jt),columnTypes:e(pe),selectedColumnFieldId:e(St),handleSelectColumn:e(Ct),onResetSelectedCol:e(Et)},null,8,["table-name","schema-name","columns","columnTypes","selectedColumnFieldId","handleSelectColumn","onResetSelectedCol"])):(h(),D(cs,{key:1,columnTypes:e(pe),selectedRow:(Xt=e(N))!=null&&Xt.length?e(N)[0]:null},null,8,["columnTypes","selectedRow"]))])):U("",!0),e(Ye)?(h(),D(yn,{key:2,defer:"",to:"#bottom-panel"},[o(xr,{tableName:e(d),"schema-name":e(i)},null,8,["tableName","schema-name"])])):U("",!0),o(Bn,{open:e(ae),"onUpdate:open":G[1]||(G[1]=Re=>Ee(ae)?ae.value=Re:null),message:e(Q)||""},null,8,["open","message"]),y("div",{ref_key:"containerRef",ref:l,class:"flex flex-col h-full w-full relative",tabindex:"0"},[o(Ue,{visible:e(Ie)||e(te)},null,8,["visible"]),y("div",Tr,[o(eo,{"total-selected-rows":(Zt=e(N))==null?void 0:Zt.length,isAllowNextPage:e(V),isAllowPreviousPage:e(K),totalRows:e(M),limit:e(O).limit,currentTotalRows:((en=e(T))==null?void 0:en.length)||0,offset:e(O).offset,"has-edited-rows":e(gt),"pending-changes-count":e(ht),isViewVirtualTable:e(de),onOnPaginate:e(F),onOnNextPage:e(R),onOnPreviousPage:e($),onOnRefresh:e(it),onOnDiscardChanges:e(Ge),onOnSaveData:e(rt),onOnDeleteRows:e(Me),onOnAddEmptyRow:e(Se),onOnShowFilter:G[2]||(G[2]=()=>{var Re;(Re=e(u))==null||Re.onShowSearch()}),onOnToggleHistoryPanel:e(r).onToggleBottomPanel,tabView:e(X),"onUpdate:tabView":G[3]||(G[3]=Re=>Ee(X)?X.value=Re: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"])]),y("div",Rr,[e(X)===e(re).Data?(h(),D(to,{key:0,ref_key:"quickQueryFilterRef",ref:u,onOnSearch:G[4]||(G[4]=()=>{e(Ne)()}),onOnUpdateFilters:G[5]||(G[5]=Re=>{ge.value=Re}),isShowFilters:e(k),"onUpdate:isShowFilters":G[6]||(G[6]=Re=>Ee(k)?k.value=Re:null),initFilters:e(ge),baseQuery:e(E),columns:e(ie),dbType:e(v),composeWith:e(q),onOnChangeComposeWith:e(L)},null,8,["isShowFilters","initFilters","baseQuery","columns","dbType","composeWith","onOnChangeComposeWith"])):U("",!0)]),y("div",$r,[e(se)[e(re).Erd]?qe((h(),D(Ln,{key:0,tableId:e(On)({tableName:e(d),schemaName:e(i)})},null,8,["tableId"])),[[Ze,e(X)===e(re).Erd]]):U("",!0),e(se)[e(re).Structure]?qe((h(),x("div",Ir,[o(ao,{isVirtualTable:e(de),schema:e(i),tableName:e(d),connectionString:e(s),virtualTableId:t.virtualTableId},null,8,["isVirtualTable","schema","tableName","connectionString","virtualTableId"])],512)),[[Ze,e(X)===e(re).Structure]]):U("",!0),qe(o(no,{data:e(T),"total-selected-rows":e(N).length,"has-edited-rows":e(gt),cellContextMenu:(tn=e(S))==null?void 0:tn.cellContextMenu,cellHeaderContextMenu:(nn=e(S))==null?void 0:nn.cellHeaderContextMenu,selectedRows:e(N),"table-name":e(d),"schema-name":e(i),onOnClearContextMenu:G[7]||(G[7]=Re=>{var on;return(on=e(S))==null?void 0:on.clearCellContextMenu()}),onOnPaginate:e(F),onOnNextPage:e(R),onOnPreviousPage:e($),onOnRefresh:e(it),onOnSaveData:e(rt),onOnDeleteRows:e(Me),onOnAddEmptyRow:e(Se),onOnFilterByValue:e(lo),onOnCopyRows:e(bt),onOnPasteRows:e(_t),onOnCopySelectedCell:e(wt)},{default:m(()=>[o(oo,{class:"h-full border rounded-md",ref_key:"quickQueryTableRef",ref:S,"selected-rows":e(N),data:e(T)||[],orderBy:e(ne),onOnSelectedRows:e(Ot),"onUpdate:orderBy":e(ee),onOnOpenBackReferencedTableModal:ct,onOnOpenForwardReferencedTableModal:ve,isHaveRelationByFieldName:e(ro),foreignKeyColumns:e(oe),foreignKeys:e(J),primaryKeyColumns:e(ue),columnTypes:e(pe),defaultPageSize:e(kt),offset:e(O).offset,onOnFocusCell:e(Le),selectedColumnFieldId:e(St),"current-schema-name":e(i),"current-table-name":e(d),isViewOnly:e(At)},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"]),[[Ze,e(X)===e(re).Data]])])],512)],64)}}});export{ei as default};
@@ -0,0 +1 @@
1
+ const _="#",D="_____#",A=35,s=300,H=35,I=20,T=25,L=15;export{s as D,D as H,H as a,I as b,A as c,_ as d,L as e,T as f};
@@ -0,0 +1 @@
1
+ import{d as z,bY as ee,bZ as ge,r as R,as as xe,b_ as oe,au as J,bW as Te,e as K,av as Y,b$ as Me,c0 as Pe,aR as U,c1 as Oe,c2 as Ae,c3 as ke,c4 as Ee,c5 as He,aL as ye,o as H,c6 as Ie,c7 as Ge,c8 as Le,c9 as te,ca as ne,f as W,cb as ae,i as _e,cc as Ne,cd as We,ce as Ve,cf as ze,cg as Ue,bL as le,bk as je,m as X,g as x,a0 as ie,w as re,z as se,k as de,l as ue,A as pe,t as Ke,ch as $e,ci as qe,c as j,cj as Je,ck as Xe,aC as Ye,cl as Qe,ay as Ce,cm as Ze,cn as eo,co as oo,cp as to,b9 as no,cq as ao,n as lo}from"./BcsKoAPU.js";import{i as io,d as ro}from"./dWu56FdP.js";import{D as he,a as fe,b as we,H as q,c as so,d as uo,e as ce,f as ve}from"./CS5akSNT.js";var po=Object.defineProperty,co=(s,n,t)=>n in s?po(s,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[n]=t,I=(s,n,t)=>co(s,typeof n!="symbol"?n+"":n,t);class V{static getComponentDefinition(n,t){let o;return typeof n=="string"?o=this.searchForComponentInstance(t,n):o={extends:z({...n})},o||ne(114,{component:n}),o.extends?(o.extends.setup&&(o.setup=o.extends.setup),o.extends.props=this.addParamsToProps(o.extends.props)):o.props=this.addParamsToProps(o.props),o}static addParamsToProps(n){return!n||Array.isArray(n)&&n.indexOf("params")===-1?n=["params",...n||[]]:typeof n=="object"&&!n.params&&(n.params={type:Object}),n}static createAndMountComponent(n,t,o,p){const l=V.getComponentDefinition(n,o);if(!l)return;const{vNode:i,destroy:r,el:u}=this.mount(l,{params:Object.freeze(t)},o,p||{});return{componentInstance:i.component.proxy,element:u,destroy:r}}static mount(n,t,o,p){let l=W(n,t);l.appContext={...o.appContext,provides:p};let i=document.createElement("div");return ae(l,i),{vNode:l,destroy:()=>{i&&ae(null,i),i=null,l=null},el:i}}static searchForComponentInstance(n,t,o=10,p=!1){let l=null,i=0,r=n.parent;for(;!l&&r&&r.components&&++i<o;)r.components&&r.components[t]&&(l=r.components[t]),r=r.parent;for(i=0,r=n.parent;!l&&r&&r.$options&&++i<o;){const u=r;u.$options&&u.$options.components&&u.$options.components[t]?l=u.$options.components[t]:u[t]&&(l=u[t]),r=r.parent}for(i=0,r=n.parent;!l&&r&&++i<o;){if(r.exposed){const u=r;u.exposed&&u.exposed[t]?l=u.exposed[t]:u[t]&&(l=u[t])}r=r.parent}if(!l){const u=n.appContext.components;u&&u[t]&&(l=u[t])}return!l&&!p?(ne(114,{component:t}),null):l}}class vo extends Ie{constructor(n,t){super(),I(this,"parent"),I(this,"provides"),this.parent=n,this.provides=t}createWrapper(n){const t=this;class o extends mo{init(i){super.init(i)}hasMethod(i){var r,u;const m=p.getFrameworkComponentInstance();return m[i]?!0:((r=m.$.exposed)==null?void 0:r[i])!=null||((u=m.exposed)==null?void 0:u[i])!=null||m.$.setupState[i]!=null}callMethod(i,r){var u,m;const g=this.getFrameworkComponentInstance(),S=p.getFrameworkComponentInstance();if(S[i])return S[i].apply(g,r);{const w=((u=g.$.exposed)==null?void 0:u[i])||((m=g.exposed)==null?void 0:m[i])||g.$.setupState[i];return w==null?void 0:w.apply(g,r)}}addMethod(i,r){p[i]=r}processMethod(i,r){return i==="refresh"&&(this.getFrameworkComponentInstance().params=r[0]),this.hasMethod(i)?this.callMethod(i,r):i==="refresh"}createComponent(i){return t.createComponent(n,i)}}const p=new o;return p}createComponent(n,t){return V.createAndMountComponent(n,t,this.parent,this.provides)}createMethodProxy(n,t,o){return function(){return n.hasMethod(t)?n.callMethod(t,arguments):(o&&Ge(233,{methodName:t}),null)}}destroy(){this.parent=null}}class mo{constructor(){I(this,"componentInstance"),I(this,"element"),I(this,"unmount")}getGui(){return this.element}destroy(){this.getFrameworkComponentInstance()&&typeof this.getFrameworkComponentInstance().destroy=="function"&&this.getFrameworkComponentInstance().destroy(),this.unmount()}getFrameworkComponentInstance(){return this.componentInstance}init(n){const{componentInstance:t,element:o,destroy:p}=this.createComponent(n);this.componentInstance=t,this.unmount=p,this.element=o.firstElementChild??o}}class go extends Le{constructor(n){super("vue"),I(this,"parent"),this.parent=n}frameworkComponent(n,t){let o=V.searchForComponentInstance(this.parent,n,10,!0)?n:null;if(!o&&t&&t[n]){const p=t[n];o=V.searchForComponentInstance(this.parent,p,10,!0)?p:null}return o}isFrameworkComponent(n){return typeof n=="object"}}function yo(){return{gridOptions:{},modules:[],statusBar:void 0,sideBar:void 0,suppressContextMenu:void 0,preventDefaultOnContextMenu:void 0,allowContextMenuWithControlKey:void 0,columnMenu:void 0,suppressMenuHide:void 0,enableBrowserTooltips:void 0,tooltipTrigger:void 0,tooltipShowDelay:void 0,tooltipHideDelay:void 0,tooltipMouseTrack:void 0,tooltipShowMode:void 0,tooltipInteraction:void 0,popupParent:void 0,copyHeadersToClipboard:void 0,copyGroupHeadersToClipboard:void 0,clipboardDelimiter:void 0,suppressCopyRowsToClipboard:void 0,suppressCopySingleCellRanges:void 0,suppressLastEmptyLineOnPaste:void 0,suppressClipboardPaste:void 0,suppressClipboardApi:void 0,suppressCutToClipboard:void 0,columnDefs:void 0,defaultColDef:void 0,defaultColGroupDef:void 0,columnTypes:void 0,dataTypeDefinitions:void 0,maintainColumnOrder:void 0,enableStrictPivotColumnOrder:void 0,suppressFieldDotNotation:void 0,headerHeight:void 0,groupHeaderHeight:void 0,floatingFiltersHeight:void 0,pivotHeaderHeight:void 0,pivotGroupHeaderHeight:void 0,allowDragFromColumnsToolPanel:void 0,suppressMovableColumns:void 0,suppressColumnMoveAnimation:void 0,suppressMoveWhenColumnDragging:void 0,suppressDragLeaveHidesColumns:void 0,suppressGroupChangesColumnVisibility:void 0,suppressMakeColumnVisibleAfterUnGroup:void 0,suppressRowGroupHidesColumns:void 0,colResizeDefault:void 0,suppressAutoSize:void 0,autoSizePadding:void 0,skipHeaderOnAutoSize:void 0,autoSizeStrategy:void 0,components:void 0,editType:void 0,singleClickEdit:void 0,suppressClickEdit:void 0,readOnlyEdit:void 0,stopEditingWhenCellsLoseFocus:void 0,enterNavigatesVertically:void 0,enterNavigatesVerticallyAfterEdit:void 0,enableCellEditingOnBackspace:void 0,undoRedoCellEditing:void 0,undoRedoCellEditingLimit:void 0,defaultCsvExportParams:void 0,suppressCsvExport:void 0,defaultExcelExportParams:void 0,suppressExcelExport:void 0,excelStyles:void 0,findSearchValue:void 0,findOptions:void 0,quickFilterText:void 0,cacheQuickFilter:void 0,includeHiddenColumnsInQuickFilter:void 0,quickFilterParser:void 0,quickFilterMatcher:void 0,applyQuickFilterBeforePivotOrAgg:void 0,excludeChildrenWhenTreeDataFiltering:void 0,enableAdvancedFilter:void 0,alwaysPassFilter:void 0,includeHiddenColumnsInAdvancedFilter:void 0,advancedFilterParent:void 0,advancedFilterBuilderParams:void 0,suppressAdvancedFilterEval:void 0,suppressSetFilterByDefault:void 0,enableCharts:void 0,chartThemes:void 0,customChartThemes:void 0,chartThemeOverrides:void 0,chartToolPanelsDef:void 0,chartMenuItems:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,localeText:void 0,masterDetail:void 0,keepDetailRows:void 0,keepDetailRowsCount:void 0,detailCellRenderer:void 0,detailCellRendererParams:void 0,detailRowHeight:void 0,detailRowAutoHeight:void 0,context:void 0,dragAndDropImageComponent:void 0,dragAndDropImageComponentParams:void 0,alignedGrids:void 0,tabIndex:void 0,rowBuffer:void 0,valueCache:void 0,valueCacheNeverExpires:void 0,enableCellExpressions:void 0,suppressTouch:void 0,suppressFocusAfterRefresh:void 0,suppressBrowserResizeObserver:void 0,suppressPropertyNamesCheck:void 0,suppressChangeDetection:void 0,debug:void 0,loading:void 0,overlayLoadingTemplate:void 0,loadingOverlayComponent:void 0,loadingOverlayComponentParams:void 0,suppressLoadingOverlay:void 0,overlayNoRowsTemplate:void 0,noRowsOverlayComponent:void 0,noRowsOverlayComponentParams:void 0,suppressNoRowsOverlay:void 0,pagination:void 0,paginationPageSize:void 0,paginationPageSizeSelector:void 0,paginationAutoPageSize:void 0,paginateChildRows:void 0,suppressPaginationPanel:void 0,pivotMode:void 0,pivotPanelShow:void 0,pivotMaxGeneratedColumns:void 0,pivotDefaultExpanded:void 0,pivotColumnGroupTotals:void 0,pivotRowTotals:void 0,pivotSuppressAutoColumn:void 0,suppressExpandablePivotGroups:void 0,functionsReadOnly:void 0,aggFuncs:void 0,suppressAggFuncInHeader:void 0,alwaysAggregateAtRootLevel:void 0,aggregateOnlyChangedColumns:void 0,suppressAggFilteredOnly:void 0,removePivotHeaderRowWhenSingleValueColumn:void 0,animateRows:void 0,cellFlashDuration:void 0,cellFadeDuration:void 0,allowShowChangeAfterFilter:void 0,domLayout:void 0,ensureDomOrder:void 0,enableCellSpan:void 0,enableRtl:void 0,suppressColumnVirtualisation:void 0,suppressMaxRenderedRowRestriction:void 0,suppressRowVirtualisation:void 0,rowDragManaged:void 0,suppressRowDrag:void 0,suppressMoveWhenRowDragging:void 0,rowDragEntireRow:void 0,rowDragMultiRow:void 0,rowDragText:void 0,fullWidthCellRenderer:void 0,fullWidthCellRendererParams:void 0,embedFullWidthRows:void 0,groupDisplayType:void 0,groupDefaultExpanded:void 0,autoGroupColumnDef:void 0,groupMaintainOrder:void 0,groupSelectsChildren:void 0,groupLockGroupColumns:void 0,groupAggFiltering:void 0,groupTotalRow:void 0,grandTotalRow:void 0,suppressStickyTotalRow:void 0,groupSuppressBlankHeader:void 0,groupSelectsFiltered:void 0,showOpenedGroup:void 0,groupHideParentOfSingleChild:void 0,groupRemoveSingleChildren:void 0,groupRemoveLowestSingleChildren:void 0,groupHideOpenParents:void 0,groupAllowUnbalanced:void 0,rowGroupPanelShow:void 0,groupRowRenderer:void 0,groupRowRendererParams:void 0,treeData:void 0,treeDataChildrenField:void 0,treeDataParentIdField:void 0,rowGroupPanelSuppressSort:void 0,suppressGroupRowsSticky:void 0,pinnedTopRowData:void 0,pinnedBottomRowData:void 0,rowModelType:void 0,rowData:void 0,asyncTransactionWaitMillis:void 0,suppressModelUpdateAfterUpdateTransaction:void 0,datasource:void 0,cacheOverflowSize:void 0,infiniteInitialRowCount:void 0,serverSideInitialRowCount:void 0,suppressServerSideFullWidthLoadingRow:void 0,cacheBlockSize:void 0,maxBlocksInCache:void 0,maxConcurrentDatasourceRequests:void 0,blockLoadDebounceMillis:void 0,purgeClosedRowNodes:void 0,serverSideDatasource:void 0,serverSideSortAllLevels:void 0,serverSideEnableClientSideSort:void 0,serverSideOnlyRefreshFilteredGroups:void 0,serverSidePivotResultFieldSeparator:void 0,viewportDatasource:void 0,viewportRowModelPageSize:void 0,viewportRowModelBufferSize:void 0,alwaysShowHorizontalScroll:void 0,alwaysShowVerticalScroll:void 0,debounceVerticalScrollbar:void 0,suppressHorizontalScroll:void 0,suppressScrollOnNewData:void 0,suppressScrollWhenPopupsAreOpen:void 0,suppressAnimationFrame:void 0,suppressMiddleClickScrolls:void 0,suppressPreventDefaultOnMouseWheel:void 0,scrollbarWidth:void 0,rowSelection:void 0,cellSelection:void 0,rowMultiSelectWithClick:void 0,suppressRowDeselection:void 0,suppressRowClickSelection:void 0,suppressCellFocus:void 0,suppressHeaderFocus:void 0,selectionColumnDef:void 0,rowNumbers:void 0,suppressMultiRangeSelection:void 0,enableCellTextSelection:void 0,enableRangeSelection:void 0,enableRangeHandle:void 0,enableFillHandle:void 0,fillHandleDirection:void 0,suppressClearOnFillReduction:void 0,sortingOrder:void 0,accentedSort:void 0,unSortIcon:void 0,suppressMultiSort:void 0,alwaysMultiSort:void 0,multiSortKey:void 0,suppressMaintainUnsortedOrder:void 0,icons:void 0,rowHeight:void 0,rowStyle:void 0,rowClass:void 0,rowClassRules:void 0,suppressRowHoverHighlight:void 0,suppressRowTransform:void 0,columnHoverHighlight:void 0,gridId:void 0,deltaSort:void 0,treeDataDisplayType:void 0,enableGroupEdit:void 0,initialState:void 0,theme:void 0,loadThemeGoogleFonts:void 0,themeCssLayer:void 0,styleNonce:void 0,themeStyleContainer:void 0,getContextMenuItems:void 0,getMainMenuItems:void 0,postProcessPopup:void 0,processUnpinnedColumns:void 0,processCellForClipboard:void 0,processHeaderForClipboard:void 0,processGroupHeaderForClipboard:void 0,processCellFromClipboard:void 0,sendToClipboard:void 0,processDataFromClipboard:void 0,isExternalFilterPresent:void 0,doesExternalFilterPass:void 0,getChartToolbarItems:void 0,createChartContainer:void 0,focusGridInnerElement:void 0,navigateToNextHeader:void 0,tabToNextHeader:void 0,navigateToNextCell:void 0,tabToNextCell:void 0,getLocaleText:void 0,getDocument:void 0,paginationNumberFormatter:void 0,getGroupRowAgg:void 0,isGroupOpenByDefault:void 0,initialGroupOrderComparator:void 0,processPivotResultColDef:void 0,processPivotResultColGroupDef:void 0,getDataPath:void 0,getChildCount:void 0,getServerSideGroupLevelParams:void 0,isServerSideGroupOpenByDefault:void 0,isApplyServerSideTransaction:void 0,isServerSideGroup:void 0,getServerSideGroupKey:void 0,getBusinessKeyForNode:void 0,getRowId:void 0,resetRowDataOnUpdate:void 0,processRowPostCreate:void 0,isRowSelectable:void 0,isRowMaster:void 0,fillOperation:void 0,postSortRows:void 0,getRowStyle:void 0,getRowClass:void 0,getRowHeight:void 0,isFullWidthRow:void 0,"onColumn-everything-changed":void 0,"onNew-columns-loaded":void 0,"onColumn-pivot-mode-changed":void 0,"onPivot-max-columns-exceeded":void 0,"onColumn-row-group-changed":void 0,"onExpand-or-collapse-all":void 0,"onColumn-pivot-changed":void 0,"onGrid-columns-changed":void 0,"onColumn-value-changed":void 0,"onColumn-moved":void 0,"onColumn-visible":void 0,"onColumn-pinned":void 0,"onColumn-group-opened":void 0,"onColumn-resized":void 0,"onDisplayed-columns-changed":void 0,"onVirtual-columns-changed":void 0,"onColumn-header-mouse-over":void 0,"onColumn-header-mouse-leave":void 0,"onColumn-header-clicked":void 0,"onColumn-header-context-menu":void 0,"onAsync-transactions-flushed":void 0,"onRow-group-opened":void 0,"onRow-data-updated":void 0,"onPinned-row-data-changed":void 0,"onRange-selection-changed":void 0,"onCell-selection-changed":void 0,"onChart-created":void 0,"onChart-range-selection-changed":void 0,"onChart-options-changed":void 0,"onChart-destroyed":void 0,"onTool-panel-visible-changed":void 0,"onTool-panel-size-changed":void 0,"onModel-updated":void 0,"onCut-start":void 0,"onCut-end":void 0,"onPaste-start":void 0,"onPaste-end":void 0,"onFill-start":void 0,"onFill-end":void 0,"onCell-selection-delete-start":void 0,"onCell-selection-delete-end":void 0,"onRange-delete-start":void 0,"onRange-delete-end":void 0,"onUndo-started":void 0,"onUndo-ended":void 0,"onRedo-started":void 0,"onRedo-ended":void 0,"onCell-clicked":void 0,"onCell-double-clicked":void 0,"onCell-mouse-down":void 0,"onCell-context-menu":void 0,"onCell-value-changed":void 0,"onCell-edit-request":void 0,"onRow-value-changed":void 0,"onHeader-focused":void 0,"onCell-focused":void 0,"onRow-selected":void 0,"onSelection-changed":void 0,"onTooltip-show":void 0,"onTooltip-hide":void 0,"onCell-key-down":void 0,"onCell-mouse-over":void 0,"onCell-mouse-out":void 0,"onFilter-changed":void 0,"onFilter-modified":void 0,"onFilter-opened":void 0,"onAdvanced-filter-builder-visible-changed":void 0,"onSort-changed":void 0,"onVirtual-row-removed":void 0,"onRow-clicked":void 0,"onRow-double-clicked":void 0,"onGrid-ready":void 0,"onGrid-pre-destroyed":void 0,"onGrid-size-changed":void 0,"onViewport-changed":void 0,"onFirst-data-rendered":void 0,"onDrag-started":void 0,"onDrag-stopped":void 0,"onDrag-cancelled":void 0,"onRow-editing-started":void 0,"onRow-editing-stopped":void 0,"onCell-editing-started":void 0,"onCell-editing-stopped":void 0,"onBody-scroll":void 0,"onBody-scroll-end":void 0,"onPagination-changed":void 0,"onComponent-state-changed":void 0,"onStore-refreshed":void 0,"onState-updated":void 0,"onColumn-menu-visible-changed":void 0,"onContext-menu-visible-changed":void 0,"onRow-drag-enter":void 0,"onRow-drag-move":void 0,"onRow-drag-leave":void 0,"onRow-drag-end":void 0,"onRow-drag-cancel":void 0,"onFind-changed":void 0}}const Co=(s,n)=>{let t;return()=>{const o=function(){s()};window.clearTimeout(t),t=window.setTimeout(o,n)}};function ho(s){return s&&s.constructor&&s.constructor.toString().substring(0,5)==="class"}function N(s){const n=t=>ho(t)?te(t):Array.isArray(t)?t.map(o=>n(o)):_e(t)||Ne(t)||We(t)?n(te(t)):t;return n(s)}const fo={ref:"root"},wo=z({__name:"AgGridVue",props:ee(Ve({gridOptions:{},modules:{},statusBar:{},sideBar:{type:[Object,String,Array,Boolean,null]},suppressContextMenu:{type:Boolean},preventDefaultOnContextMenu:{type:Boolean},allowContextMenuWithControlKey:{type:Boolean},columnMenu:{},suppressMenuHide:{type:Boolean},enableBrowserTooltips:{type:Boolean},tooltipTrigger:{},tooltipShowDelay:{},tooltipHideDelay:{},tooltipMouseTrack:{type:Boolean},tooltipShowMode:{},tooltipInteraction:{type:Boolean},popupParent:{},copyHeadersToClipboard:{type:Boolean},copyGroupHeadersToClipboard:{type:Boolean},clipboardDelimiter:{},suppressCopyRowsToClipboard:{type:Boolean},suppressCopySingleCellRanges:{type:Boolean},suppressLastEmptyLineOnPaste:{type:Boolean},suppressClipboardPaste:{type:Boolean},suppressClipboardApi:{type:Boolean},suppressCutToClipboard:{type:Boolean},columnDefs:{},defaultColDef:{},defaultColGroupDef:{},columnTypes:{},dataTypeDefinitions:{},maintainColumnOrder:{type:Boolean},enableStrictPivotColumnOrder:{type:Boolean},suppressFieldDotNotation:{type:Boolean},headerHeight:{},groupHeaderHeight:{},floatingFiltersHeight:{},pivotHeaderHeight:{},pivotGroupHeaderHeight:{},allowDragFromColumnsToolPanel:{type:Boolean},suppressMovableColumns:{type:Boolean},suppressColumnMoveAnimation:{type:Boolean},suppressMoveWhenColumnDragging:{type:Boolean},suppressDragLeaveHidesColumns:{type:Boolean},suppressGroupChangesColumnVisibility:{type:[Boolean,String]},suppressMakeColumnVisibleAfterUnGroup:{type:Boolean},suppressRowGroupHidesColumns:{type:Boolean},colResizeDefault:{},suppressAutoSize:{type:Boolean},autoSizePadding:{},skipHeaderOnAutoSize:{type:Boolean},autoSizeStrategy:{},components:{},editType:{},singleClickEdit:{type:Boolean},suppressClickEdit:{type:Boolean},readOnlyEdit:{type:Boolean},stopEditingWhenCellsLoseFocus:{type:Boolean},enterNavigatesVertically:{type:Boolean},enterNavigatesVerticallyAfterEdit:{type:Boolean},enableCellEditingOnBackspace:{type:Boolean},undoRedoCellEditing:{type:Boolean},undoRedoCellEditingLimit:{},defaultCsvExportParams:{},suppressCsvExport:{type:Boolean},defaultExcelExportParams:{},suppressExcelExport:{type:Boolean},excelStyles:{},findSearchValue:{},findOptions:{},quickFilterText:{},cacheQuickFilter:{type:Boolean},includeHiddenColumnsInQuickFilter:{type:Boolean},quickFilterParser:{type:Function},quickFilterMatcher:{type:Function},applyQuickFilterBeforePivotOrAgg:{type:Boolean},excludeChildrenWhenTreeDataFiltering:{type:Boolean},enableAdvancedFilter:{type:Boolean},alwaysPassFilter:{type:Function},includeHiddenColumnsInAdvancedFilter:{type:Boolean},advancedFilterParent:{},advancedFilterBuilderParams:{},suppressAdvancedFilterEval:{type:Boolean},suppressSetFilterByDefault:{type:Boolean},enableCharts:{type:Boolean},chartThemes:{},customChartThemes:{},chartThemeOverrides:{},chartToolPanelsDef:{},chartMenuItems:{type:[Array,Function]},loadingCellRenderer:{},loadingCellRendererParams:{},loadingCellRendererSelector:{type:Function},localeText:{},masterDetail:{type:Boolean},keepDetailRows:{type:Boolean},keepDetailRowsCount:{},detailCellRenderer:{},detailCellRendererParams:{},detailRowHeight:{},detailRowAutoHeight:{type:Boolean},context:{},dragAndDropImageComponent:{},dragAndDropImageComponentParams:{},alignedGrids:{type:[Array,Function]},tabIndex:{},rowBuffer:{},valueCache:{type:Boolean},valueCacheNeverExpires:{type:Boolean},enableCellExpressions:{type:Boolean},suppressTouch:{type:Boolean},suppressFocusAfterRefresh:{type:Boolean},suppressBrowserResizeObserver:{type:Boolean},suppressPropertyNamesCheck:{type:Boolean},suppressChangeDetection:{type:Boolean},debug:{type:Boolean},loading:{type:Boolean},overlayLoadingTemplate:{},loadingOverlayComponent:{},loadingOverlayComponentParams:{},suppressLoadingOverlay:{type:Boolean},overlayNoRowsTemplate:{},noRowsOverlayComponent:{},noRowsOverlayComponentParams:{},suppressNoRowsOverlay:{type:Boolean},pagination:{type:Boolean},paginationPageSize:{},paginationPageSizeSelector:{type:[Array,Boolean]},paginationAutoPageSize:{type:Boolean},paginateChildRows:{type:Boolean},suppressPaginationPanel:{type:Boolean},pivotMode:{type:Boolean},pivotPanelShow:{},pivotMaxGeneratedColumns:{},pivotDefaultExpanded:{},pivotColumnGroupTotals:{},pivotRowTotals:{},pivotSuppressAutoColumn:{type:Boolean},suppressExpandablePivotGroups:{type:Boolean},functionsReadOnly:{type:Boolean},aggFuncs:{},suppressAggFuncInHeader:{type:Boolean},alwaysAggregateAtRootLevel:{type:Boolean},aggregateOnlyChangedColumns:{type:Boolean},suppressAggFilteredOnly:{type:Boolean},removePivotHeaderRowWhenSingleValueColumn:{type:Boolean},animateRows:{type:Boolean},cellFlashDuration:{},cellFadeDuration:{},allowShowChangeAfterFilter:{type:Boolean},domLayout:{},ensureDomOrder:{type:Boolean},enableCellSpan:{type:Boolean},enableRtl:{type:Boolean},suppressColumnVirtualisation:{type:Boolean},suppressMaxRenderedRowRestriction:{type:Boolean},suppressRowVirtualisation:{type:Boolean},rowDragManaged:{type:Boolean},suppressRowDrag:{type:Boolean},suppressMoveWhenRowDragging:{type:Boolean},rowDragEntireRow:{type:Boolean},rowDragMultiRow:{type:Boolean},rowDragText:{type:Function},fullWidthCellRenderer:{},fullWidthCellRendererParams:{},embedFullWidthRows:{type:Boolean},groupDisplayType:{},groupDefaultExpanded:{},autoGroupColumnDef:{},groupMaintainOrder:{type:Boolean},groupSelectsChildren:{type:Boolean},groupLockGroupColumns:{},groupAggFiltering:{type:[Boolean,Function]},groupTotalRow:{type:[String,Function]},grandTotalRow:{},suppressStickyTotalRow:{type:[Boolean,String]},groupSuppressBlankHeader:{type:Boolean},groupSelectsFiltered:{type:Boolean},showOpenedGroup:{type:Boolean},groupHideParentOfSingleChild:{type:[Boolean,String]},groupRemoveSingleChildren:{type:Boolean},groupRemoveLowestSingleChildren:{type:Boolean},groupHideOpenParents:{type:Boolean},groupAllowUnbalanced:{type:Boolean},rowGroupPanelShow:{},groupRowRenderer:{},groupRowRendererParams:{},treeData:{type:Boolean},treeDataChildrenField:{},treeDataParentIdField:{},rowGroupPanelSuppressSort:{type:Boolean},suppressGroupRowsSticky:{type:Boolean},pinnedTopRowData:{},pinnedBottomRowData:{},rowModelType:{},rowData:{},asyncTransactionWaitMillis:{},suppressModelUpdateAfterUpdateTransaction:{type:Boolean},datasource:{},cacheOverflowSize:{},infiniteInitialRowCount:{},serverSideInitialRowCount:{},suppressServerSideFullWidthLoadingRow:{type:Boolean},cacheBlockSize:{},maxBlocksInCache:{},maxConcurrentDatasourceRequests:{},blockLoadDebounceMillis:{},purgeClosedRowNodes:{type:Boolean},serverSideDatasource:{},serverSideSortAllLevels:{type:Boolean},serverSideEnableClientSideSort:{type:Boolean},serverSideOnlyRefreshFilteredGroups:{type:Boolean},serverSidePivotResultFieldSeparator:{},viewportDatasource:{},viewportRowModelPageSize:{},viewportRowModelBufferSize:{},alwaysShowHorizontalScroll:{type:Boolean},alwaysShowVerticalScroll:{type:Boolean},debounceVerticalScrollbar:{type:Boolean},suppressHorizontalScroll:{type:Boolean},suppressScrollOnNewData:{type:Boolean},suppressScrollWhenPopupsAreOpen:{type:Boolean},suppressAnimationFrame:{type:Boolean},suppressMiddleClickScrolls:{type:Boolean},suppressPreventDefaultOnMouseWheel:{type:Boolean},scrollbarWidth:{},rowSelection:{},cellSelection:{type:[Boolean,Object]},rowMultiSelectWithClick:{type:Boolean},suppressRowDeselection:{type:Boolean},suppressRowClickSelection:{type:Boolean},suppressCellFocus:{type:Boolean},suppressHeaderFocus:{type:Boolean},selectionColumnDef:{},rowNumbers:{type:[Boolean,Object]},suppressMultiRangeSelection:{type:Boolean},enableCellTextSelection:{type:Boolean},enableRangeSelection:{type:Boolean},enableRangeHandle:{type:Boolean},enableFillHandle:{type:Boolean},fillHandleDirection:{},suppressClearOnFillReduction:{type:Boolean},sortingOrder:{},accentedSort:{type:Boolean},unSortIcon:{type:Boolean},suppressMultiSort:{type:Boolean},alwaysMultiSort:{type:Boolean},multiSortKey:{},suppressMaintainUnsortedOrder:{type:Boolean},icons:{},rowHeight:{},rowStyle:{},rowClass:{},rowClassRules:{},suppressRowHoverHighlight:{type:Boolean},suppressRowTransform:{type:Boolean},columnHoverHighlight:{type:Boolean},gridId:{},deltaSort:{type:Boolean},treeDataDisplayType:{},enableGroupEdit:{type:Boolean},initialState:{},theme:{},loadThemeGoogleFonts:{type:Boolean},themeCssLayer:{},styleNonce:{},themeStyleContainer:{},getContextMenuItems:{type:Function},getMainMenuItems:{type:Function},postProcessPopup:{type:Function},processUnpinnedColumns:{type:Function},processCellForClipboard:{type:Function},processHeaderForClipboard:{type:Function},processGroupHeaderForClipboard:{type:Function},processCellFromClipboard:{type:Function},sendToClipboard:{type:Function},processDataFromClipboard:{type:Function},isExternalFilterPresent:{type:Function},doesExternalFilterPass:{type:Function},getChartToolbarItems:{type:Function},createChartContainer:{type:Function},focusGridInnerElement:{type:Function},navigateToNextHeader:{type:Function},tabToNextHeader:{type:Function},navigateToNextCell:{type:Function},tabToNextCell:{type:Function},getLocaleText:{type:Function},getDocument:{type:Function},paginationNumberFormatter:{type:Function},getGroupRowAgg:{type:Function},isGroupOpenByDefault:{type:Function},initialGroupOrderComparator:{type:Function},processPivotResultColDef:{type:Function},processPivotResultColGroupDef:{type:Function},getDataPath:{type:Function},getChildCount:{type:Function},getServerSideGroupLevelParams:{type:Function},isServerSideGroupOpenByDefault:{type:Function},isApplyServerSideTransaction:{type:Function},isServerSideGroup:{type:Function},getServerSideGroupKey:{type:Function},getBusinessKeyForNode:{type:Function},getRowId:{type:Function},resetRowDataOnUpdate:{type:Boolean},processRowPostCreate:{type:Function},isRowSelectable:{type:Function},isRowMaster:{type:Function},fillOperation:{type:Function},postSortRows:{type:Function},getRowStyle:{type:Function},getRowClass:{type:Function},getRowHeight:{type:Function},isFullWidthRow:{type:Function},"onTool-panel-visible-changed":{},"onTool-panel-size-changed":{},"onColumn-menu-visible-changed":{},"onContext-menu-visible-changed":{},"onCut-start":{},"onCut-end":{},"onPaste-start":{},"onPaste-end":{},"onColumn-visible":{},"onColumn-pinned":{},"onColumn-resized":{},"onColumn-moved":{},"onColumn-value-changed":{},"onColumn-pivot-mode-changed":{},"onColumn-pivot-changed":{},"onColumn-group-opened":{},"onNew-columns-loaded":{},"onGrid-columns-changed":{},"onDisplayed-columns-changed":{},"onVirtual-columns-changed":{},"onColumn-everything-changed":{},"onColumn-header-mouse-over":{},"onColumn-header-mouse-leave":{},"onColumn-header-clicked":{},"onColumn-header-context-menu":{},"onComponent-state-changed":{},"onCell-value-changed":{},"onCell-edit-request":{},"onRow-value-changed":{},"onCell-editing-started":{},"onCell-editing-stopped":{},"onRow-editing-started":{},"onRow-editing-stopped":{},"onUndo-started":{},"onUndo-ended":{},"onRedo-started":{},"onRedo-ended":{},"onCell-selection-delete-start":{},"onCell-selection-delete-end":{},"onRange-delete-start":{},"onRange-delete-end":{},"onFill-start":{},"onFill-end":{},"onFilter-opened":{},"onFilter-changed":{},"onFilter-modified":{},"onAdvanced-filter-builder-visible-changed":{},"onFind-changed":{},"onChart-created":{},"onChart-range-selection-changed":{},"onChart-options-changed":{},"onChart-destroyed":{},"onCell-key-down":{},"onGrid-ready":{},"onGrid-pre-destroyed":{},"onFirst-data-rendered":{},"onGrid-size-changed":{},"onModel-updated":{},"onVirtual-row-removed":{},"onViewport-changed":{},"onBody-scroll":{},"onBody-scroll-end":{},"onDrag-started":{},"onDrag-stopped":{},"onDrag-cancelled":{},"onState-updated":{},"onPagination-changed":{},"onRow-drag-enter":{},"onRow-drag-move":{},"onRow-drag-leave":{},"onRow-drag-end":{},"onRow-drag-cancel":{},"onColumn-row-group-changed":{},"onRow-group-opened":{},"onExpand-or-collapse-all":{},"onPivot-max-columns-exceeded":{},"onPinned-row-data-changed":{},"onRow-data-updated":{},"onAsync-transactions-flushed":{},"onStore-refreshed":{},"onHeader-focused":{},"onCell-clicked":{},"onCell-double-clicked":{},"onCell-focused":{},"onCell-mouse-over":{},"onCell-mouse-out":{},"onCell-mouse-down":{},"onRow-clicked":{},"onRow-double-clicked":{},"onRow-selected":{},"onSelection-changed":{},"onCell-context-menu":{},"onRange-selection-changed":{},"onCell-selection-changed":{},"onTooltip-show":{},"onTooltip-hide":{},"onSort-changed":{}},yo()),{modelValue:{},modelModifiers:{}}),emits:ee(["update:modelValue"],["update:modelValue"]),setup(s,{expose:n,emit:t}){const o=s,p=ge("root"),l=R(void 0),i=R(!1),r=R(!1),u=R(!1),m=R({}),g=R(null),S=xe(o);oe.filter(e=>e!="gridOptions").forEach(e=>{J(()=>S[e],(a,d)=>{(e==="rowData"&&!b.value||e!=="rowData")&&E(e,a),b.value=!1},{deep:!0})});const w=new Set(["rowDataUpdated","cellValueChanged","rowValueChanged"]),y=Te(s,"modelValue"),B=R(!1),b=R(!1),G=t;J(y,(e,a)=>{i.value&&(b.value||(B.value=!0,E("rowData",N(e),N(a))),b.value=!1)},{deep:!0});const L=Co(()=>{b.value=!0,G("update:modelValue",A())},10),P=U(),_=e=>{var a,d;u.value&&w.has(e)&&(d=(a=P==null?void 0:P.vnode)==null?void 0:a.props)!=null&&d["onUpdate:modelValue"]&&L()},O=()=>y.value||o.rowData||o.gridOptions.rowData,A=()=>{const e=[];return l==null||l.value.forEachLeafNode(a=>{e.push(a.data)}),e},k=e=>a=>{if(r.value)return;a==="gridReady"&&(u.value=!0);const d=ze.has(a);d&&!e||!d&&e||w.has(a)&&(B.value||_(a),B.value=!1)},E=(e,a,d)=>{if(i.value){let v=a.value||a;e==="rowData"&&v!=null&&(v=N(v)),m.value[e]=v,g.value==null&&(g.value=window.setTimeout(()=>{g.value=null,Ue(m.value,l.value),m.value={}},0))}},M=()=>Object.create(U().provides);return Y(()=>{Me.registerModules([Pe]);const e=new vo(U(),M()),a={globalListener:k(),globalSyncListener:k(!0),frameworkOverrides:new go(U()),providedBeanInstances:{frameworkCompWrapper:e},modules:o.modules},d=Oe(Ae(N(o.gridOptions),o,[...oe,...ke.map(c=>Ee(c))])),v=O();v!==void 0&&(d.rowData=N(v)),l.value=He(p.value,d,a),i.value=!0}),ye(()=>{var e;i.value&&((e=l==null?void 0:l.value)==null||e.destroy(),r.value=!0)}),n({api:l}),(e,a)=>(H(),K("div",fo,null,512))}}),Ro=["onKeydown"],So={class:"flex-1 overflow-hidden"},Fo={class:"flex justify-end gap-1 p-2"},Bo=z({__name:"AgJsonCellEditor",props:{params:{}},setup(s,{expose:n}){const t=s,o=R({});let p=!1;Y(()=>{const w=t.params.value;try{o.value=typeof w=="string"?JSON.parse(w):{...w}}catch{console.warn("Invalid JSON in cell, starting with empty object"),o.value={}}});const l=()=>{p=!0,t.params.stopEditing()},i=()=>{p=!1,t.params.stopEditing()},r=R("text");function u(){return p?o.value?typeof o.value=="object"?(console.log("1"),JSON.stringify(o.value)):o.value:null:t.params.value}function m(){return!p}function g(){return!1}function S(){}return n({getValue:u,isCancelAfterEnd:m,isCancelBeforeStart:g,afterGuiAttached:S}),(w,y)=>(H(),K("div",{class:"w-[35rem] h-[20rem] bg-background border resize overflow-y-auto rounded-md flex flex-col",tabindex:"0",onKeydown:[le(i,["esc"]),le(je(l,["ctrl"]),["enter"])]},[X("div",So,[W(x(io),{modelValue:o.value,"onUpdate:modelValue":y[0]||(y[0]=B=>o.value=B),class:"h-full rounded-md",mode:r.value,navigationBar:!1,onModeChange:y[1]||(y[1]=B=>r.value=B)},null,8,["modelValue","mode"])]),X("div",Fo,[W(x(ie),{onClick:i,variant:"outline",size:"xxs"},{default:re(()=>y[2]||(y[2]=[se(" Cancel ")])),_:1}),W(x(ie),{onClick:l,size:"xxs"},{default:re(()=>y[3]||(y[3]=[se(" Oke ")])),_:1})])],40,Ro))}}),Do={class:"flex gap-0.5 items-center"},bo={class:"overflow-hidden text-ellipsis"},xo=z({__name:"DynamicPrimaryKeyHeader",props:{params:{}},setup(s){const n=s;return(t,o)=>(H(),K("div",Do,[n.params.isPrimaryKey?(H(),de(x(pe),{key:0,name:"lucide:key-round",class:"min-w-3! text-yellow-500"})):ue("",!0),n.params.isForeignKey?(H(),de(x(pe),{key:1,name:"lucide:key-round",class:"min-w-3!"})):ue("",!0),X("span",bo,Ke(t.params.displayName),1)]))}});function To(){const s=R(null);return{gridApi:s,onGridReady:t=>{s.value=t.api}}}function Mo(){const s=$e(),n=qe();return j(()=>{const t=n.tableAppearanceConfigs,o=s.value==="dark",p=o?Je:Xe,l={fontSize:t.fontSize,rowHeight:t.rowHeight,spacing:t.cellSpacing,accentColor:o?t.accentColorDark:t.accentColorLight,headerFontSize:t.headerFontSize,headerFontWeight:t.headerFontWeight},i=o?t.headerBackgroundColorDark:t.headerBackgroundColorLight;return i&&(l.headerBackgroundColor=i),p.withParams(l)})}const Po=document.createElement("canvas"),me=Po.getContext("2d");function Re(s,n){return me.font=n,Math.round(me.measureText(s).width)}function Oo(s,n){const o=n.map(p=>Fe(p[s])).reduce((p,l)=>p.length>=l.length?p:l);return Re(o,"500 12px system-ui")}function Se({rows:s,headerName:n,field:t,maxWidth:o=he,minWidth:p=fe,gapWidth:l=we}){const i=Re(n,"700 14px system-ui"),r=s.length?Oo(t,s):0,u=Math.max(i,r)+l;return Math.min(o,Math.max(p,u))}function Ao({rows:s,columns:n,maxWidth:t=he,minWidth:o=fe,gapWidth:p=we}){const l={};return n.forEach(i=>{const{headerName:r="",field:u}=i.getColDef();u&&(l[u]=Se({rows:s,headerName:r,field:u,maxWidth:t,minWidth:o,gapWidth:p}))}),l}const Fe=(s,n)=>s===null?"NULL":(typeof s=="object"||Object.prototype.toString.call(s)==="[object Object]")&&s!==null?s?JSON.stringify(s,null,2):"":s||"",ko=({debounceDelay:s=Ze,gridApi:n,rowHeight:t=eo,gridRef:o})=>{const p=R(!1),l=R(-1),i=Ye({min:-1,max:-1});let r=null,u=!1,m={x:0,y:0},g=null,S=-1,w=0;const y=10,B=10;function b({currentIndex:e,gridApi:a}){var h,f;const d=l.value,v=Math.min(d,e),c=Math.max(d,e);if(!(v===i.min&&c===i.max)){if(i.min!==-1)for(let C=i.min;C<=i.max;C++)(C<v||C>c)&&((h=a.getDisplayedRowAtIndex(C))==null||h.setSelected(!1));for(let C=v;C<=c;C++)(C<i.min||C>i.max)&&((f=a.getDisplayedRowAtIndex(C))==null||f.setSelected(!0));i.min=v,i.max=c}}function G(){p.value=!1,l.value=-1,i.min=-1,i.max=-1}function L(e){const a=e.api,d=e.event,v=(d==null?void 0:d.button)===0,c=d==null?void 0:d.shiftKey;!v||c||e.rowIndex!=null&&(p.value=!0,l.value=e.rowIndex,a.deselectAll(),e.node.setSelected(!0))}function P(e,a){!p.value||e.rowIndex==null||(S=e.rowIndex,b({currentIndex:e.rowIndex,gridApi:a}))}const _=ro(e=>{const a=e.api;P(e,a)},s,{leading:!0,trailing:!0});function O(e){e.target instanceof HTMLElement&&(u=!0,m.x=e.clientX,m.y=e.clientY,document.addEventListener("pointermove",A,!0),document.addEventListener("pointerup",k,{once:!0,capture:!0}),E())}function A(e){m.x=e.clientX,m.y=e.clientY}function k(){u=!1,document.removeEventListener("pointermove",A,!0),M()}function E(){if(g)return;const e=()=>{if(!u||!r){g=null;return}const a=r.getBoundingClientRect();let d=0;const v=m.y<a.top||m.y>a.bottom;if(m.y<a.top+y?d=-Math.ceil((y-(m.y-a.top))/y*B):m.y>a.bottom-y&&(d=Math.ceil((m.y-(a.bottom-y))/y*B)),d!==0&&v&&(w+=d,r.scrollTop+=d,n!=null&&n.value)){const c=Math.trunc(w/t);c!==0&&(w-=c*t,S+=c,S<=0&&(S=0),b({currentIndex:S,gridApi:n==null?void 0:n.value}))}g=requestAnimationFrame(e)};g=requestAnimationFrame(e)}function M(){g&&cancelAnimationFrame(g),g=null,w=0}return Qe("mouseup",()=>{p.value&&(M(),G())}),Y(async()=>{var a;await Ce();const e=o==null?void 0:o.value;r=(a=e==null?void 0:e.$el)==null?void 0:a.querySelector(".ag-body-viewport"),r&&r.addEventListener("pointerdown",O)}),ye(()=>{M(),r==null||r.removeEventListener("pointerdown",O)}),{handleCellMouseDown:L,handleCellMouseOverDebounced:_}},Go=z({__name:"DynamicTable",props:{columns:{},data:{},class:{},skipReColumnSize:{type:Boolean},columnKeyBy:{},selectedRows:{},hasHashIndex:{type:Boolean,default:!0},getCellClass:{},overrideColumnDefs:{},overrideRowData:{},externalGridOptions:{},externalComponents:{}},emits:["onSelectedRows","onFocusCell"],setup(s,{expose:n,emit:t}){const o=s,p=t,{gridApi:l,onGridReady:i}=To(),r=ge("agGridRef"),u=R(),m=R(),g=R();oo(r,()=>{});const S=j(()=>o.overrideRowData?o.overrideRowData:(o.data??[]).map((e,a)=>({[q]:a+1,...e}))),{handleCellMouseOverDebounced:w,handleCellMouseDown:y}=ko({gridApi:l,gridRef:r}),B=j(()=>{var d;if(o.overrideColumnDefs)return o.overrideColumnDefs;if(!((d=o.columns)!=null&&d.length))return[];const e=[];o.hasHashIndex&&e.push({colId:q,headerName:uo,field:q,filter:!1,resizable:!1,editable:!1,sortable:!0,pinned:"left",width:so});const a=(o.data||[]).slice(0,10);return o.columns.forEach(({originalName:v,isPrimaryKey:c,isForeignKey:h,aliasFieldName:f},C)=>{let D="";o.columnKeyBy==="index"?D=`${C}`:D=v;const Q=f,Be=c||h?ce:0,De=Se({headerName:Q,rows:a,field:D,gapWidth:ve})+Be,be={headerName:Q,field:D,filter:!0,resizable:!0,editable:!0,sortable:!0,type:"editableColumn",headerComponentParams:{innerHeaderComponent:xo,isPrimaryKey:c,isForeignKey:h},cellClass:T=>{var Z;const F=String(T.colDef.field||""),$=(Z=o.getCellClass)==null?void 0:Z.call(o,F,T.data);return $?`cellCenter ${$}`:"cellCenter"},cellEditorSelector:T=>{const F=T.data[D];if(typeof F==="object"&&F!==null)return{component:"AgJsonCellEditor",popup:!0,popupPosition:"under"}},valueFormatter:T=>{const F=T.value;return F===null?"NULL":typeof F=="object"&&F!==null?JSON.stringify(F,null,2):F??""},valueSetter:T=>{try{const F=JSON.parse(T.newValue);return T.data[D]=F,!0}catch(F){return console.error(`Invalid JSON format in column ${D}:`,F),!1}},width:De};e.push(be)}),e}),b=Mo();J(b,e=>{var a;(a=l.value)==null||a.updateGridOptions({theme:e})});const G=j(()=>{const e={rowClass:"class-row-border-none",rowBuffer:to,getRowStyle:d=>{if((d.node.rowIndex||0)%2===0)return{background:"var(--muted)"}},rowSelection:{mode:"multiRow",checkboxes:!1,headerCheckbox:!1,enableSelectionWithoutKeys:!1,enableClickSelection:"enableSelection",copySelectedRows:!1},theme:b.value,pagination:!1,undoRedoCellEditing:!0,undoRedoCellEditingLimit:25,animateRows:!0,onCellMouseDown:y,onCellMouseOver:w,components:{AgJsonCellEditor:Bo}},a=o.externalGridOptions||{};return{...e,...a,components:{...e.components||{},...a.components||{},...o.externalComponents||{}}}}),L=R({indexColumn:{},editableColumn:{cellStyle:e=>{var f,C,D;const a=Number(e.node.id??e.node.rowIndex);if(((f=o.data)==null?void 0:f[a])===void 0)return{backgroundColor:"var(--color-green-200)"};const d=e.colDef.field??"",v={};if(!d)return;let c="";return o.columnKeyBy==="index"?c=Number(d):c=d,((D=(C=o==null?void 0:o.data)==null?void 0:C[a])==null?void 0:D[c])===null&&(v.color="var(--muted-foreground)"),v},cellClass:()=>"cellCenter"}}),P=()=>{if(l.value){const e=l.value.getSelectedRows();_(e)}},_=e=>{p("onSelectedRows",e)},O=()=>{var a,d,v;const e=(a=l.value)==null?void 0:a.getFocusedCell();if(e){const c=(d=l.value)==null?void 0:d.getDisplayedRowAtIndex(e.rowIndex),h=e.column.getColId(),f=(v=c==null?void 0:c.data)==null?void 0:v[h];p("onFocusCell",f??void 0)}};no([{key:"meta+c",callback:async()=>{var a,d,v;const e=(a=l.value)==null?void 0:a.getFocusedCell();if(e){const c=(d=l.value)==null?void 0:d.getDisplayedRowAtIndex(e.rowIndex),h=e.column.getColId(),f=(v=c==null?void 0:c.data)==null?void 0:v[h];await navigator.clipboard.writeText(Fe(f)||"")}},excludeInput:!0}],{isPreventDefault:!1,target:u});const A=async()=>{var c;if(!l.value||o.skipReColumnSize||o.overrideColumnDefs)return;const e=((c=l.value)==null?void 0:c.getAllGridColumns())||[],a=new Map;o.columns.forEach((h,f)=>{(h.isPrimaryKey||h.isForeignKey)&&a.set(f.toString(),!0)});const d=(o.data||[]).slice(0,10),v=Ao({columns:e,rows:d||[],gapWidth:ve});l.value.updateGridOptions({columnDefs:e.map(h=>{const f=h.getColDef().field,D=a.get(f)?ce:0;return{...h.getColDef(),width:v[f]+D}})})},k=e=>{var a,d;(a=o.selectedRows)!=null&&a.length||(d=e==null?void 0:e.node)==null||d.setSelected(!0),m.value=e},E=e=>{g.value=e},M=()=>{m.value=void 0,g.value=void 0};return ao(async()=>{var c,h,f;if(!l.value)return;await Ce();const e=l.value.getState(),a=document.querySelector(".ag-body-viewport");a&&(a.scrollTop=((c=e.scroll)==null?void 0:c.top)||0);const d=((h=l.value)==null?void 0:h.getAllGridColumns())||[];let v=0;for(const C of d){if(v>=(((f=e.scroll)==null?void 0:f.left)||0)){l.value.ensureColumnVisible(C.getColId(),"start");break}v+=C.getActualWidth()}}),n({gridApi:l,columnDefs:B,cellContextMenu:m,cellHeaderContextMenu:g,clearCellContextMenu:M}),(e,a)=>(H(),K("div",{class:"h-full",ref_key:"containerRef",ref:u},[W(x(wo),{onSelectionChanged:P,onGridReady:x(i),onCellFocused:O,onRowDataUpdated:A,onCellContextMenu:k,onColumnHeaderContextMenu:E,"suppress-scroll-on-new-data":!0,class:lo(o.class),"grid-options":x(G),columnDefs:x(B),rowData:x(S),columnTypes:x(L),"copy-headers-to-clipboard":!0,ref_key:"agGridRef",ref:r},null,8,["onGridReady","class","grid-options","columnDefs","rowData","columnTypes"])],512))}});export{wo as F,Go as _,ko as a,Mo as b,Fe as c,Bo as d,Ao as e,To as u};
@@ -0,0 +1,6 @@
1
+ import{eV as e}from"./BcsKoAPU.js";import{s as r}from"./D4pAW_0T.js";/**
2
+ * @license lucide-vue-next v0.487.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const t=e("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),l=Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"}));export{t as C,l as b};
@@ -0,0 +1 @@
1
+ import{d as i,e as s,o as t,m as n,l as o,f as c,A as d,t as r,D as a}from"./BcsKoAPU.js";const m={class:"flex flex-col gap-3 rounded-lg border bg-background p-3 lg:flex-row lg:items-start lg:justify-between"},p={class:"min-w-0 space-y-1"},_={class:"flex items-center gap-2"},f={class:"text-base font-medium"},u={key:0,class:"text-sm text-muted-foreground"},g={key:1,class:"flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground"},x={key:2,class:"mt-0.5 flex flex-wrap items-center gap-1.5"},h={key:0,class:"flex flex-wrap items-center gap-2"},v=i({__name:"ToolPageHeader",props:{icon:{},title:{},description:{default:""}},setup(y){return(e,b)=>{const l=d;return t(),s("div",m,[n("div",p,[n("div",_,[c(l,{name:e.icon,class:"size-5 text-primary"},null,8,["name"]),n("h2",f,r(e.title),1)]),e.description?(t(),s("p",u,r(e.description),1)):o("",!0),e.$slots.context?(t(),s("div",g,[a(e.$slots,"context")])):o("",!0),e.$slots.badges?(t(),s("div",x,[a(e.$slots,"badges")])):o("",!0)]),e.$slots.actions?(t(),s("div",h,[a(e.$slots,"actions")])):o("",!0)])}}});export{v as _};
@@ -0,0 +1,9 @@
1
+ import{aW as E,aX as H,r as S,d as O,c as b,e as w,m as C,f as $,t as v,g as i,aY as q,w as x,aZ as D,o as y,a_ as B,k as T,l as j,A as L,n as I,a0 as N,a$ as R}from"./BcsKoAPU.js";import{H as V}from"./CS5akSNT.js";import{u as F}from"./D4pAW_0T.js";const A=" ",J=`
2
+ `,h=async e=>{try{await navigator.clipboard.writeText(e),console.log("Copied successfully!")}catch(t){console.error("Copy failed:",t)}},m=(e,t=!1)=>e.map(n=>{const a={...n};return t&&Object.keys(a).forEach(r=>{const o=a[r];o!==null&&typeof o=="object"&&!(o instanceof Date)&&(a[r]=JSON.stringify(o))}),delete a[V],a}),z=e=>e==null?"NULL":typeof e=="boolean"?e?"TRUE":"FALSE":typeof e=="number"||typeof e=="bigint"?String(e):typeof e=="string"?`'${e.replace(/'/g,"''")}'`:e instanceof Date?`'${e.toISOString().slice(0,19).replace("T"," ")}'`:`'${JSON.stringify(e).replace(/'/g,"''")}'`,k=(e,t,n,a)=>{if(e.length===0)return"";const r=Object.keys(e[0]),o=a?`"${a}"."${t}"`:`"${t}"`,s=e.map(l=>`(${r.map(c=>z(l[c])).join(", ")})`);return`-- ${n} ${e.length} rows on ${new Date().toLocaleString()}
3
+ -- Table: ${a?`${a}.`:""}${t}
4
+
5
+ INSERT INTO ${o} (${r.map(l=>`"${l}"`).join(", ")})
6
+ VALUES
7
+ ${s.join(`,
8
+ `)};
9
+ `},ee=(e,t,n,a)=>{if(e.length){if(n==="csv-with-header"||n==="csv-no-header"){const r=m(e,!0),o=n==="csv-with-header",s=E.unparse(r,{header:o,delimiter:A});h(s);return}if(n==="json"){const r=m(e);h(JSON.stringify(r));return}if(n==="sql"){const r=m(e),o=k(r,t,"Copied",a);h(o);return}}},te=(e,t,n,a,r)=>{if(!e.length)return;const s=m(e,n==="csv-with-header"||n==="csv-no-header"),d=s.length,l=a==="selected"?`selected_${d}_rows`:`all_${d}_rows`,c=new Date().toISOString().slice(0,19).replace(/:/g,"-"),u=`${t}_${l}_${c}`;let f,p;if(n==="csv-with-header"||n==="csv-no-header"){const g=n==="csv-with-header",_=E.unparse(s,{header:g});f=new Blob(["\uFEFF"+_],{type:"text/csv;charset=utf-8;"}),p="csv"}else if(n==="json"){const g=JSON.stringify(s);f=new Blob([g],{type:"application/json"}),p="json"}else if(n==="sql"){const g=m(e),_=k(g,t,"Exported",r);f=new Blob([_],{type:"text/sql"}),p="sql"}else return;H.saveAs(f,`${u}.${p}`)},ne=(e,t,n)=>{if(!t||!e.length)return;const r=e.map(s=>s[t]).map(s=>s==null?"":typeof s=="object"&&!(s instanceof Date)?JSON.stringify(s):s),o=n==="json"?JSON.stringify(r,null,2):r.join(J);h(o)};function U(e=2e3){const t=S(!1),n=S({});return{copied:t,handleCopy:async c=>{await h(c),t.value=!0,setTimeout(()=>{t.value=!1},e)},copiedStates:n,handleCopyWithKey:async(c,u)=>{await h(u),n.value[c]=!0,setTimeout(()=>{n.value[c]=!1},e)},isCopied:c=>n.value[c]??!1,getCopyIcon:(c=t.value)=>c?"hugeicons:tick-02":"hugeicons:copy-01",getCopyIconClass:(c=t.value)=>c?"text-primary":"",getCopyTooltip:(c=t.value,u="Copy")=>c?"Copied!":u}}const W={class:"rounded-lg border border-border/60 bg-muted/30 overflow-hidden shadow-sm"},M={class:"flex items-center justify-between px-3 py-1 border-b border-border/40 bg-muted/50"},X={class:"text-xxs font-semibold tracking-widest uppercase text-muted-foreground select-none"},K={class:"flex items-center gap-1 justify-center"},P=["innerHTML"],Y={key:1,class:"p-3 font-mono whitespace-pre leading-relaxed text-foreground/80 m-0 w-fit min-w-full chat-code-text"},oe=O({__name:"CodeHighlightPreview",props:{code:{},language:{default:"sql"},showCopyButton:{type:Boolean,default:!0},maxHeight:{default:void 0},decorations:{default:()=>[]}},setup(e){const t=e,{highlight:n}=F(),a=b(()=>t.code?n(t.code,t.language,{decorations:t.decorations}):null),r=b(()=>t.maxHeight?{maxHeight:t.maxHeight,overflowY:"auto",overflowX:"auto"}:{}),{copied:o,handleCopy:s,getCopyIcon:d,getCopyIconClass:l,getCopyTooltip:c}=U(),u=async()=>{t.code&&await s(t.code)},f=b(()=>t.language.toUpperCase());return(p,g)=>{const _=L;return y(),w("div",W,[C("div",M,[C("span",X,v(f.value),1),$(i(q),null,{default:x(()=>[$(i(B),{"as-child":""},{default:x(()=>[p.showCopyButton?(y(),T(i(N),{key:0,variant:"ghost",size:"xxs",onClick:u},{default:x(()=>[C("span",K,[(y(),T(_,{key:i(o)?"tick":"copy",name:i(d)(i(o)),class:I(["size-3.5",i(l)(i(o))])},null,8,["name","class"])),i(o)?(y(),w("span",{key:0,class:I(["text-xxs font-medium leading-none",i(l)(i(o))])},"Copied",2)):j("",!0)])]),_:1})):j("",!0)]),_:1}),$(i(R),null,{default:x(()=>[C("p",null,v(i(c)(i(o),"Copy code")),1)]),_:1})]),_:1})]),C("div",{style:D(r.value)},[a.value?(y(),w("div",{key:0,class:"[&>pre]:p-3 [&>pre]:font-mono [&>pre]:whitespace-pre [&>pre]:leading-relaxed [&>pre]:m-0 [&>pre]:w-fit [&>pre]:min-w-full [&>pre]:rounded-none chat-code-text",innerHTML:a.value},null,8,P)):(y(),w("pre",Y,v(p.code),1))],4)])}}});export{oe as _,ee as a,h as b,ne as c,te as e,U as u};