@cleocode/cleo 2026.9.7 → 2026.9.10
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.
- package/dist/cli/index.js +3873 -2234
- package/package.json +14 -13
- package/scripts/check-cleo-tarball-size.mjs +105 -0
- package/scripts/copy-studio-dist.mjs +33 -9
- package/studio-dist/client/_app/immutable/chunks/{wI_OOyoh.js → BB7zPpV2.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{D8NsLz6i.js → BOnrCZaR.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{eK8hf4s7.js → BSRBuVG3.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/C6jhAnil.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/C87Q3uxm.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/{DVHIxkgs.js → CLZBEpLY.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{CqF5Lomf.js → CTLGzgdN.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{o1PZ6Kzq.js → CY3heNub.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{RptFUp2P.js → Cge6qiwc.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{BRgWBQlV.js → CnwXLaZJ.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Bxz2A0ZC.js → DEH43YwF.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/DGftG5oL.js +3 -0
- package/studio-dist/client/_app/immutable/chunks/DX_JOBSO.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/{CEqOYim7.js → DZrdToAH.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/EZwHPWle.js +2 -0
- package/studio-dist/client/_app/immutable/chunks/cWVw9W0E.js +3 -0
- package/studio-dist/client/_app/immutable/chunks/{B9psmq5-.js → rB_71s8h.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{JPJd4fEI.js → rUtW7Hx6.js} +1 -1
- package/studio-dist/client/_app/immutable/entry/app.tvu3-wbp.js +2 -0
- package/studio-dist/client/_app/immutable/entry/start.BS-rpdjH.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{0.CZzEEyVh.js → 0.DMP7swbx.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.Bj3Opbua.js → 1.CYZMFpIp.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{10.xe_Mc2Ko.js → 10.3rxHNnSx.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{11.DuKPA7JD.js → 11.B6jWv3Kz.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{12.BoZ_QrUS.js → 12.BrDHeTEq.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{13.DFJiUiv8.js → 13.CE5bd4JV.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{14.eaAlFU4w.js → 14.DgXD2LRx.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.BfXgiwMC.js → 15.Cz1KI9Fv.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.mEwy9cqh.js → 16.K9wYQPhb.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.DP2QtQGn.js → 17.CtUmdfMg.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.Bu0054sX.js → 18.mtosd0sL.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{19.UWt6QbCm.js → 19.su55K8y_.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{2.y5jKpHiR.js → 2.mqgFVWFQ.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.B1AIHdkP.js → 20.NJuHLxuS.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{21.CpAN71H8.js → 21.BhwhdQCq.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{22.CrYKrN4c.js → 22.BmJEWwER.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{23.pGRaHQjq.js → 23.CAVIJEH-.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{24.BUoUu37z.js → 24.CMuXs5Sy.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/25.DhMBJYAo.js +39 -0
- package/studio-dist/client/_app/immutable/nodes/26.CJ4FA5FS.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{28.DcmYM7lb.js → 28.D64RBcfs.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{29.lbHbMqNO.js → 29.yfuBeH1x.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{3.Dyir4xXj.js → 3.y115j1d5.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{30.DXj0Wm2A.js → 30.1WUv5bh9.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/4.D6vXYBoQ.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{5.VWSdP7oc.js → 5.hjw2O-4e.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{6.Dl-XLwOj.js → 6.CAoDfDt6.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{7.CFuC5L-y.js → 7.CLgPSQ8Z.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{8.BCJ0DhOb.js → 8.zuaO1Hik.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{9.Bq4SUzL9.js → 9.Cdsd85m2.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/0-BQvtFOrC.js +41 -0
- package/studio-dist/server/chunks/1-Bx2_yoiK.js +9 -0
- package/studio-dist/server/chunks/{10-DvOD4ksa.js → 10-CYLc3d5x.js} +3 -3
- package/studio-dist/server/chunks/{11-DMnBZ02H.js → 11-DcIYR5vm.js} +3 -3
- package/studio-dist/server/chunks/{12-CCyRyRWX.js → 12-WE1u104t.js} +3 -3
- package/studio-dist/server/chunks/{13-Dx1c3a_X.js → 13-joBDoxhK.js} +3 -3
- package/studio-dist/server/chunks/{14-Bo-dTCaZ.js → 14-Doj5F4uJ.js} +3 -3
- package/studio-dist/server/chunks/{15-BvUNl3KL.js → 15-nQTeHGD1.js} +3 -3
- package/studio-dist/server/chunks/{16-De6EzPSa.js → 16-CcTN0e8k.js} +5 -4
- package/studio-dist/server/chunks/{17-CZNsiZhi.js → 17-DWiFnzES.js} +10 -93
- package/studio-dist/server/chunks/{18-CbxxjZox.js → 18-Dcc9GnPo.js} +5 -4
- package/studio-dist/server/chunks/{19-DqHyladS.js → 19-BAQHPrMB.js} +3 -3
- package/studio-dist/server/chunks/{2-COvmA-ZA.js → 2-DXSVVaej.js} +10 -93
- package/studio-dist/server/chunks/20-DfQlGHPW.js +57 -0
- package/studio-dist/server/chunks/{21-DXK9ptAC.js → 21-qhGjkW41.js} +4 -31
- package/studio-dist/server/chunks/{22-DD5CLWJC.js → 22-Byy16hFA.js} +3 -3
- package/studio-dist/server/chunks/23-CZpFrGp4.js +97 -0
- package/studio-dist/server/chunks/24-EEysaT9T.js +67 -0
- package/studio-dist/server/chunks/{25-CAg6Xcmn.js → 25-CgiYn70L.js} +15 -96
- package/studio-dist/server/chunks/{26-_nfVTvNi.js → 26-Cfd6BaUb.js} +12 -93
- package/studio-dist/server/chunks/{27-C9edghG4.js → 27-Cqzlh9gZ.js} +3 -2
- package/studio-dist/server/chunks/{28-VemTJGyc.js → 28-DeYe2rpm.js} +8 -62
- package/studio-dist/server/chunks/{29-CXP-m29t.js → 29-6pjLM0Z1.js} +10 -93
- package/studio-dist/server/chunks/{3-B8KhfvHp.js → 3-E_fWDAkq.js} +9 -25
- package/studio-dist/server/chunks/{30-QiM1S4cJ.js → 30-Dw317sSW.js} +10 -93
- package/studio-dist/server/chunks/{31-BwdY9NnB.js → 31-Q4kHbp8j.js} +3 -2
- package/studio-dist/server/chunks/{4-CSaG4HjO.js → 4-C9BMSh4K.js} +4 -3
- package/studio-dist/server/chunks/{5-i5ry4y3C.js → 5-C0CF4WKG.js} +3 -3
- package/studio-dist/server/chunks/{6-DR1GWBMT.js → 6-BWyOJust.js} +3 -3
- package/studio-dist/server/chunks/{7-DSNwn3aQ.js → 7-CK4MK5gy.js} +3 -3
- package/studio-dist/server/chunks/{8-Bj0bx07K.js → 8-CiX7Xk9k.js} +3 -3
- package/studio-dist/server/chunks/{9-B3Tz0mZq.js → 9-Be5118w4.js} +3 -3
- package/studio-dist/server/chunks/{HeroHeader-v4Q9vaGr.js → HeroHeader-BrGN5WPw.js} +2 -2
- package/studio-dist/server/chunks/{Sparkline-BJ-GuhRd.js → Sparkline-DU_NVxz9.js} +2 -2
- package/studio-dist/server/chunks/{StatBlock-DHJMmOCx.js → StatBlock-jNsxycS1.js} +2 -2
- package/studio-dist/server/chunks/{Tabs-DzG6Bn9a.js → Tabs-DQKDflnT.js} +2 -2
- package/studio-dist/server/chunks/_dispatch-DTWViLGL.js +145 -0
- package/studio-dist/server/chunks/{_layout.svelte-BEIGQcIv.js → _layout.svelte-CL6GfET2.js} +7 -9
- package/studio-dist/server/chunks/{_page.svelte-al08ovKm.js → _page.svelte-6iMiGR11.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-Byz2djto.js → _page.svelte-B-YXGvAW.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-tYN7_LXI.js → _page.svelte-B5E6RqVb.js} +9 -11
- package/studio-dist/server/chunks/{_page.svelte-UYiF7YBK.js → _page.svelte-BCRyjlk2.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-CCoTp89s.js → _page.svelte-BoYafqft.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-nzffIbBP.js → _page.svelte-C7Wm6_HB.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-C_VSL8NW.js → _page.svelte-Cgqt7ucn.js} +13 -71
- package/studio-dist/server/chunks/{_page.svelte-CophUar3.js → _page.svelte-CqI6hqMm.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-BgwL2Gyu.js → _page.svelte-CvQ2rZZ1.js} +11 -13
- package/studio-dist/server/chunks/{_page.svelte-l4Z_xjl9.js → _page.svelte-CvTyJEyS.js} +9 -11
- package/studio-dist/server/chunks/{_page.svelte-DOWw416I.js → _page.svelte-CvzAttO9.js} +11 -13
- package/studio-dist/server/chunks/{_page.svelte-DYNorA0S.js → _page.svelte-Cx9Ptecp.js} +10 -67
- package/studio-dist/server/chunks/{_page.svelte-Wfx7ww_h.js → _page.svelte-Cx9dPjsT.js} +11 -13
- package/studio-dist/server/chunks/{_page.svelte-2cgtvHwW.js → _page.svelte-DGN5j-At.js} +13 -71
- package/studio-dist/server/chunks/{_page.svelte-BVVTrzTL.js → _page.svelte-DaheDIRs.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-M5D2QnMS.js → _page.svelte-Dm8y5a8S.js} +10 -67
- package/studio-dist/server/chunks/{_page.svelte-B_pq-Z98.js → _page.svelte-DqXxyNsF.js} +7 -7
- package/studio-dist/server/chunks/{_page.svelte-C3aIui4o.js → _page.svelte-DqsbnAhk.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-ksTJUXce.js → _page.svelte-Dt0_c1T-.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-bGhsrIjS.js → _page.svelte-Dv6iwhu7.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-BXyoMME1.js → _page.svelte-GPiHej3P.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-CYDjW1R0.js → _page.svelte-LuRm8XxE.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-Clbkk1gm.js → _page.svelte-Z7nL9SC-.js} +8 -9
- package/studio-dist/server/chunks/{_page.svelte-DUWbZjC7.js → _page.svelte-_kntHS6v.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-BIlhmugm.js → _page.svelte-eiomv6Pa.js} +11 -13
- package/studio-dist/server/chunks/{_page.svelte-9OQphlnm.js → _page.svelte-jXJbd8Mx.js} +14 -69
- package/studio-dist/server/chunks/{_page.svelte-CHzXuw2Q.js → _page.svelte-me5SUosG.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-DSzRdt1U.js → _server.ts--2m_U4SL.js} +11 -94
- package/studio-dist/server/chunks/{_server.ts-ujoDR2_g.js → _server.ts--sGLmBsz.js} +10 -92
- package/studio-dist/server/chunks/{_server.ts-k2fApwOp.js → _server.ts-0ukyuE0I.js} +5 -60
- package/studio-dist/server/chunks/_server.ts-1eW2mTeh.js +40 -0
- package/studio-dist/server/chunks/{_server.ts-Bfr4u3EP.js → _server.ts-3LzqLzt0.js} +10 -92
- package/studio-dist/server/chunks/_server.ts-40h9Y46Y.js +122 -0
- package/studio-dist/server/chunks/_server.ts-5euivmMj.js +38 -0
- package/studio-dist/server/chunks/{_server.ts-CShsBkeE.js → _server.ts-B0uoay97.js} +7 -23
- package/studio-dist/server/chunks/{_server.ts-hL92cV7Z.js → _server.ts-B5vYKkI6.js} +9 -63
- package/studio-dist/server/chunks/{_server.ts-_RJXtmfi.js → _server.ts-B8dTbPHd.js} +8 -23
- package/studio-dist/server/chunks/{_server.ts-C3Jo-ju8.js → _server.ts-BA8Xdegq.js} +10 -92
- package/studio-dist/server/chunks/_server.ts-BBClE0n9.js +54 -0
- package/studio-dist/server/chunks/{_server.ts-ZS1_yMwR.js → _server.ts-BDwMoyZ_.js} +6 -32
- package/studio-dist/server/chunks/{_server.ts-sv4pA808.js → _server.ts-BE-Uhx4N.js} +5 -46
- package/studio-dist/server/chunks/{_server.ts-DV6pzF-M.js → _server.ts-BSHADOUJ.js} +4 -3
- package/studio-dist/server/chunks/_server.ts-BcsqAqXt.js +67 -0
- package/studio-dist/server/chunks/_server.ts-Bl9tMqwZ.js +159 -0
- package/studio-dist/server/chunks/_server.ts-BlzDnRI0.js +51 -0
- package/studio-dist/server/chunks/{_server.ts-DnE0f-iC.js → _server.ts-BtuemCsf.js} +4 -3
- package/studio-dist/server/chunks/{_server.ts-BPcErnS0.js → _server.ts-C2nYqbd9.js} +10 -92
- package/studio-dist/server/chunks/{_server.ts-4p6cp9ke.js → _server.ts-C6IDM_3I.js} +10 -92
- package/studio-dist/server/chunks/_server.ts-C8Z32vuL.js +45 -0
- package/studio-dist/server/chunks/_server.ts-CBXyadsy.js +26 -0
- package/studio-dist/server/chunks/{_server.ts-Do9RIPRo.js → _server.ts-CE6h2ATE.js} +5 -32
- package/studio-dist/server/chunks/_server.ts-CH06JVqZ.js +65 -0
- package/studio-dist/server/chunks/_server.ts-CNqcws-M.js +29 -0
- package/studio-dist/server/chunks/{_server.ts-CJA1djzJ.js → _server.ts-CPf8necd.js} +8 -92
- package/studio-dist/server/chunks/{_server.ts-uUx7uT2Y.js → _server.ts-CYv5YuHd.js} +6 -43
- package/studio-dist/server/chunks/{_server.ts-B2E7fxo9.js → _server.ts-CZ5GZRWX.js} +6 -91
- package/studio-dist/server/chunks/{_server.ts-DSAv66wD.js → _server.ts-CbThsyhY.js} +4 -3
- package/studio-dist/server/chunks/{_server.ts-DgbY5EB3.js → _server.ts-CeQolQOK.js} +10 -92
- package/studio-dist/server/chunks/_server.ts-ChoGyX5C.js +61 -0
- package/studio-dist/server/chunks/_server.ts-CjJYkLJH.js +61 -0
- package/studio-dist/server/chunks/{_server.ts-lPlBUIJX.js → _server.ts-CtjArzxf.js} +5 -60
- package/studio-dist/server/chunks/{_server.ts-Cq60m8Pw.js → _server.ts-D3QWZwt_.js} +4 -3
- package/studio-dist/server/chunks/{_server.ts-CkoJ2HCW.js → _server.ts-D6wP5bCh.js} +10 -92
- package/studio-dist/server/chunks/{_server.ts-DwTRjS4y.js → _server.ts-D7JwQTun.js} +10 -93
- package/studio-dist/server/chunks/_server.ts-DKFJdXPK.js +97 -0
- package/studio-dist/server/chunks/_server.ts-DNAPGKEF.js +55 -0
- package/studio-dist/server/chunks/_server.ts-DQiTiY3E.js +78 -0
- package/studio-dist/server/chunks/{_server.ts-BT0Uq2yq.js → _server.ts-DUyeSXbV.js} +10 -92
- package/studio-dist/server/chunks/{_server.ts-DRVz9D-J.js → _server.ts-DY7BwZCv.js} +9 -24
- package/studio-dist/server/chunks/{_server.ts-Cz0zgaUV.js → _server.ts-D_E276ms.js} +3 -2
- package/studio-dist/server/chunks/{_server.ts-B5g3eScF.js → _server.ts-DgtmTAp5.js} +5 -60
- package/studio-dist/server/chunks/{_server.ts-CboRJY0Q.js → _server.ts-DhTKaw7h.js} +10 -63
- package/studio-dist/server/chunks/_server.ts-DqKBSCPT.js +31 -0
- package/studio-dist/server/chunks/{_server.ts-CpmMp5D8.js → _server.ts-DyXBNnRD.js} +4 -3
- package/studio-dist/server/chunks/_server.ts-DzjUpduu.js +25 -0
- package/studio-dist/server/chunks/{_server.ts-CGiAXy5i.js → _server.ts-Dznqw6Dg.js} +8 -23
- package/studio-dist/server/chunks/{_server.ts-tKMjUFUP.js → _server.ts-EVwS7UXb.js} +4 -3
- package/studio-dist/server/chunks/_server.ts-J17j25VG.js +62 -0
- package/studio-dist/server/chunks/{_server.ts-BdN4AJ6o.js → _server.ts-VQchZxXq.js} +10 -91
- package/studio-dist/server/chunks/{_server.ts-C4BcDGqS.js → _server.ts-XLV5SvjH.js} +7 -63
- package/studio-dist/server/chunks/_server.ts-jZgqFIJz.js +45 -0
- package/studio-dist/server/chunks/{_server.ts-Bw7A4zgb.js → _server.ts-lyiGGv7w.js} +5 -3
- package/studio-dist/server/chunks/{brain-CXR7ZT7S.js → brain-xt_NeshR.js} +2 -2
- package/studio-dist/server/chunks/cleo-home-_XIqkZaL.js +109 -0
- package/studio-dist/server/chunks/{cli-action-DQcaqcfn.js → cli-action-VJPEn1pY.js} +2 -2
- package/studio-dist/server/chunks/{client-CgX38JBu.js → client-D71MZ7Vi.js} +5 -6
- package/studio-dist/server/chunks/cluster-label-layer-CysRMvhi.js +6721 -0
- package/studio-dist/server/chunks/connections-CWLPjwBP.js +15 -0
- package/studio-dist/server/chunks/{connections2-mi7mZqJM.js → connections2-DHVs5ytW.js} +32 -19
- package/studio-dist/server/chunks/{dev-BNpEUZI3.js → dev-Br5zieNA.js} +2 -2
- package/studio-dist/server/chunks/dist-BzgWhfUR.js +18748 -0
- package/studio-dist/server/chunks/{error.svelte-CplNulnS.js → error.svelte-BIToUowC.js} +6 -8
- package/studio-dist/server/chunks/{explorer-loader-BN_mkt3_.js → explorer-loader-B_uCSs9_.js} +2 -2
- package/studio-dist/server/chunks/exports-Dg-gdPPq.js +124 -0
- package/studio-dist/server/chunks/{hooks.server-DBsyphiX.js → hooks.server-CWBRp8NI.js} +10 -93
- package/studio-dist/server/chunks/{http-CRTZe306.js → http-DPU3HHl2.js} +3 -4
- package/studio-dist/server/chunks/{index-server-DocJvixA.js → index-server-BgfA6C0S.js} +17 -4
- package/studio-dist/server/chunks/{internal-D6eWgsHJ.js → internal-DPnIJYMs.js} +56 -92
- package/studio-dist/server/chunks/{memory2-Cgc_4D5q.js → memory-BZHnDZzu.js} +4 -4
- package/studio-dist/server/chunks/{nexus-adapter-9EL_VlGI.js → nexus-adapter-D1ryYG1Z.js} +5 -5
- package/studio-dist/server/chunks/{no-face-up-DcejJLy-.js → no-face-up-B_3h6Hgs.js} +2 -2
- package/studio-dist/server/chunks/project-context-BAXQmgch.js +188 -0
- package/studio-dist/server/chunks/{src-BUqGet2c.js → src-D2rW9bIF.js} +422 -5
- package/studio-dist/server/chunks/{stores-5DmdjPCH.js → stores-BZdYTyl7.js} +3 -3
- package/studio-dist/server/chunks/{tasks2-Bf9VHrv-.js → tasks-sWuEmiGW.js} +2349 -9
- package/studio-dist/server/chunks/{ui-DR8zOSpC.js → ui-CkQ-pCs3.js} +2 -2
- package/studio-dist/server/chunks/utils-g564cUMV.js +151 -0
- package/studio-dist/server/index.js +5 -16
- package/studio-dist/server/manifest.js +88 -88
- package/dist/cli/index.js.map +0 -6
- package/studio-dist/client/_app/immutable/assets/parse-worker.CSEr67Qi.js +0 -1127
- package/studio-dist/client/_app/immutable/chunks/2mEksghu2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/3KebaI-z.js +0 -53
- package/studio-dist/client/_app/immutable/chunks/3y2yNYEk2.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/7UXYlaI1.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/83VLmCvk.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/84Rhmi6r.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/9CV9TXTg2.js +0 -92
- package/studio-dist/client/_app/immutable/chunks/9LFtcz24.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/9bLMgKwu2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/9kKqohVR2.js +0 -37
- package/studio-dist/client/_app/immutable/chunks/B-Ye28EY.js +0 -7
- package/studio-dist/client/_app/immutable/chunks/B-jnUl7o.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B0ORuy8x2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B0xCM1wN2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B0zCN4sX.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B1wt-iGW.js +0 -7
- package/studio-dist/client/_app/immutable/chunks/B2F3KUIU.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B2_6RrlL2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B2qKEYxA2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B2u2rNyI2.js +0 -8
- package/studio-dist/client/_app/immutable/chunks/B3_X3Lhd2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B3sNtbqf.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/B4NQP1Ax2.js +0 -6
- package/studio-dist/client/_app/immutable/chunks/BAtZg5v5.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BB6WKLm82.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BBX8UDtn.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BBs1U1iU.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BEli_4Jp2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BEt2wIUt.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BEyM8qSW2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BFZA3Dsk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BGdPweG1.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BGiusSqE.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BGmpyfzD.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BH5rhSIR.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BHciFt922.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BHnFwTQY.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BIvye3XP2.js +0 -59
- package/studio-dist/client/_app/immutable/chunks/BJ8mcpQA2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BK17qSHw.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BLkgUtyb.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BMUko3r62.js +0 -5
- package/studio-dist/client/_app/immutable/chunks/BMwzdEaa.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BQZx6brg.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BUPJTTTd.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BVNGAeZe2.js +0 -146
- package/studio-dist/client/_app/immutable/chunks/BWfLryGm.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BXIfeogw.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BXTfFyUU.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BYJC6_MM.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BZV1ZJzH.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BZu9rehd.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Bbzm48C52.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BfGnlwjH.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Bfjb9LPp.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BieFfu-R.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Bmv63uXe2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BtBW1A0u.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/BxISGQCl2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/ByNR_KvT.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BzjhD6Hr2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/BzpWnq0c2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C-yJVcyI2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C0cQ-8kS2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C1vWmhYe.js +0 -48
- package/studio-dist/client/_app/immutable/chunks/C1w6bBje.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C243sn7r.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/C2oZaDvt.js +0 -67
- package/studio-dist/client/_app/immutable/chunks/C3OziSQx.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C3hFPbMK.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/C4P9oFvU2.js +0 -6
- package/studio-dist/client/_app/immutable/chunks/C5Nlanei.js +0 -8
- package/studio-dist/client/_app/immutable/chunks/C6KBAXPl.js +0 -15
- package/studio-dist/client/_app/immutable/chunks/C8MZnWta.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CAoan3K12.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CBpcINYH.js +0 -29
- package/studio-dist/client/_app/immutable/chunks/CE7phgWq.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CFb4Co_K.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CGWoRK3t2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CH3t4xo1.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CHJgk6g-.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CHgPjuDQ.js +0 -17
- package/studio-dist/client/_app/immutable/chunks/CHkCZrnr.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CI_91WUN.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/CJ7-hP0H.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CKIrNnkY2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CKoQ7Ko5.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CM8O4zqs.js +0 -56
- package/studio-dist/client/_app/immutable/chunks/CMz3AVRO.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CNToUR3P.js +0 -13
- package/studio-dist/client/_app/immutable/chunks/CNuQG1yl2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CQLIZtxj.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CQYVNgM0.js +0 -20
- package/studio-dist/client/_app/immutable/chunks/CQeVOmFO2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CSPHHq09.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CTJEdbIn.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CTTT3wYw.js +0 -35
- package/studio-dist/client/_app/immutable/chunks/CV4ck7fz.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CXQrVnHf.js +0 -11
- package/studio-dist/client/_app/immutable/chunks/CXTCtOUQ.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C_CsU7Qq.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/C_IZx3682.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CbTnu2Po2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cba8RZ1a2.js +0 -8
- package/studio-dist/client/_app/immutable/chunks/Cc8xxDr5.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CdPxoldu.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CdqDTozW.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CdsmcCfC.js +0 -25
- package/studio-dist/client/_app/immutable/chunks/CeYPAoY9.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cf4kGS9y.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CfWEqXtJ2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cg7Wj2b9.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CgTpKZfi2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Chpy9ca7.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CiLKuLrQ.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/CjNDJjwu.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cjde0ZKr2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cjgnade02.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/Ckp90om52.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/ClAPVhCD.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/ClT89UdO.js +0 -11
- package/studio-dist/client/_app/immutable/chunks/CnJf5tML.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CpF4Rrcc2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CqCka5yX2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CqtqZrOl.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CrJdywQt.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Cs0zC2l2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CsMn5fBs.js +0 -141
- package/studio-dist/client/_app/immutable/chunks/CsvKLHQQ2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Ctaresvj.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Ctetf8vc2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Cv7yW6MG.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CxRIz-Zd.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/CxbvtjIH.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/CxfeoXkZ.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/CySLscL2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/D0PKQAbM.js +0 -87
- package/studio-dist/client/_app/immutable/chunks/D0WQsLTu.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D1LBVx6r2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D1NlFXu9.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D1QfC4hu2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D1yrHAn72.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D2pa4reh.js +0 -7
- package/studio-dist/client/_app/immutable/chunks/D3QsWcIw2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/D4OkQuPl2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D6UDnATk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D7w7HllH.js +0 -38
- package/studio-dist/client/_app/immutable/chunks/D93KpglN.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D99fQj2G2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DB5ifLM-.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/DBhP8ifO2.js +0 -15
- package/studio-dist/client/_app/immutable/chunks/DF_4OWhj.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DFpNK1vs2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DGRYMk-W.js +0 -142
- package/studio-dist/client/_app/immutable/chunks/DH3CcQwq.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DHQfJeLU.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/DL89yEDy2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DLRku_0p2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DMZkjPYT2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DNP72foU.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DO2GztVm.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DOVNXmCK2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DOqzs8kl2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DQnR63hh2.js +0 -7
- package/studio-dist/client/_app/immutable/chunks/DTxtWPkw.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DVDgCC9A2.js +0 -20
- package/studio-dist/client/_app/immutable/chunks/DVVCJYjz.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DWRhYUMj2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DWavBJBI.js +0 -4
- package/studio-dist/client/_app/immutable/chunks/DXDSWRw-.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DXoHaH4a.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DXpCX2Hi.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYP3EJMY.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYQphR_V.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYUlIivP.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYo2ye8X2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DYxFu8yV.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DZ66sRb6.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/D_XTiylm2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DaRv9jn22.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DaXb9i_E.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dccf4VP2.js +0 -24
- package/studio-dist/client/_app/immutable/chunks/DdODs-Sb.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DdekYWer.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DeHaovsF.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DeRRkRO52.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DeWI5qCn.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DfivR-Md.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DgmxpSo7.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DhPLWrun2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DhhrVdfi.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Djr2dbcc2.js +0 -37
- package/studio-dist/client/_app/immutable/chunks/DjuRo5vv.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Djz4EDzO.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DkRfaw-K2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DksB5g4W2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dmqenb5z2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DnbToVyf.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DpGZwlmj.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dq0lE5C32.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dq54XqHT2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DqK84mbb.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DqjFtSJD.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DrKWWDpL.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DsQIgu-4.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DsqdgJHS2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DtNkZUkq.js +0 -17
- package/studio-dist/client/_app/immutable/chunks/DutIls4V2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DvxYFW4C.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Dwp-76GQ.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/DxSZd548.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DxiUMhk0.js +0 -5
- package/studio-dist/client/_app/immutable/chunks/DxslLswf.js +0 -23
- package/studio-dist/client/_app/immutable/chunks/Dy7EjGgb2.js +0 -9
- package/studio-dist/client/_app/immutable/chunks/DyGQ_VXC.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/DySe3kTV2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DyzE2Uxw.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/DzhuJaxE2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/FmMHyrh6.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Gxs0J274.js +0 -5
- package/studio-dist/client/_app/immutable/chunks/HwtzDYxN.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/ITRz_Q7H2.js +0 -15
- package/studio-dist/client/_app/immutable/chunks/KDNP98XY2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/LmVjFhpk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/MiAejGV_.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Ml4JR6Jz2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/NU5S3nNs2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Oh5zPjv3.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/QZkvJ9vi.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Rbn8UpBm.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/SPX3gYwn2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/TX-23QW3.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/UyeQuL132.js +0 -12
- package/studio-dist/client/_app/immutable/chunks/VQszoXcV.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/VtZsEMxD.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/W2IeK61p2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Wadww7ZG.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/WgfA1zWk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/WxIgAS1f.js +0 -21
- package/studio-dist/client/_app/immutable/chunks/XrsBoOj9.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/Y3PX4poR.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/YxfwqiF32.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/Z7uO1YaO.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/_4ykQk_8.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/_kRcZFVn.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/aQNM7eVA2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/bHKz_Fb2.js +0 -45
- package/studio-dist/client/_app/immutable/chunks/bJRyRGSZ.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/dlzF6lnR.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/fjRbpfEr2.js +0 -26
- package/studio-dist/client/_app/immutable/chunks/imLk4if5.js +0 -3
- package/studio-dist/client/_app/immutable/chunks/lgRG0R-32.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/mFhCjxQJ2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/mgnH6qYg.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/n6M_5LoW.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/nLIOiDZp2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/nab7WB3u2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/orUmAKoW2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/p-fLQDfY2.js +0 -63
- package/studio-dist/client/_app/immutable/chunks/s0-WkOGk2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/sPuXfbUF.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/t4h0vrqR2.js +0 -2
- package/studio-dist/client/_app/immutable/chunks/uE83FKL-.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/uzhXlm0g2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/vTrEsGlD2.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/xJgCk3dx2.js +0 -28
- package/studio-dist/client/_app/immutable/chunks/z0Mt579s2.js +0 -13
- package/studio-dist/client/_app/immutable/entry/app.BoQ7cgT2.js +0 -2
- package/studio-dist/client/_app/immutable/entry/start.Cg1v8DU4.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/25.ddZ1_EFk.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/26.6OcmQbLV.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/4.CCjOEwVU.js +0 -1
- package/studio-dist/server/chunks/0-CvsKDxQ6.js +0 -126
- package/studio-dist/server/chunks/1-ck_x2Hf0.js +0 -9
- package/studio-dist/server/chunks/20-DVU22np7.js +0 -142
- package/studio-dist/server/chunks/23-D_tUnnoc.js +0 -181
- package/studio-dist/server/chunks/24-CVlymvLF.js +0 -151
- package/studio-dist/server/chunks/AwsRestJsonProtocol-BZuoNBmL.js +0 -416
- package/studio-dist/server/chunks/UnionSerde-BflIkhKj.js +0 -2653
- package/studio-dist/server/chunks/_dispatch-ncuRztUQ.js +0 -5597
- package/studio-dist/server/chunks/_server.ts-4NyKAneX.js +0 -116
- package/studio-dist/server/chunks/_server.ts-7hGdxdEI.js +0 -136
- package/studio-dist/server/chunks/_server.ts-B6b3b-yA.js +0 -131
- package/studio-dist/server/chunks/_server.ts-BOgGqaZp.js +0 -144
- package/studio-dist/server/chunks/_server.ts-BV1HiKZ0.js +0 -120
- package/studio-dist/server/chunks/_server.ts-BWp3g6Cr.js +0 -110
- package/studio-dist/server/chunks/_server.ts-C5NF-UgC.js +0 -122
- package/studio-dist/server/chunks/_server.ts-CDMurH5m.js +0 -2301
- package/studio-dist/server/chunks/_server.ts-COJHCgbq.js +0 -127
- package/studio-dist/server/chunks/_server.ts-CUl-Utkt.js +0 -148
- package/studio-dist/server/chunks/_server.ts-D0GAFJRb.js +0 -156
- package/studio-dist/server/chunks/_server.ts-DA6p3pmi.js +0 -117
- package/studio-dist/server/chunks/_server.ts-DThYFaZj.js +0 -160
- package/studio-dist/server/chunks/_server.ts-D_3Pm0gr.js +0 -179
- package/studio-dist/server/chunks/_server.ts-DcHxdMsm.js +0 -144
- package/studio-dist/server/chunks/_server.ts-Dlfadh2I.js +0 -144
- package/studio-dist/server/chunks/_server.ts-JallJnps.js +0 -240
- package/studio-dist/server/chunks/_server.ts-NEFTbJpM.js +0 -142
- package/studio-dist/server/chunks/_server.ts-d-2NvRwX.js +0 -122
- package/studio-dist/server/chunks/_server.ts-rUWMLkIw.js +0 -146
- package/studio-dist/server/chunks/abort-events-CDRAJSqb.js +0 -30
- package/studio-dist/server/chunks/adapters-BkMgPNUM.js +0 -359
- package/studio-dist/server/chunks/adapters2-CQ3PzoaK.js +0 -28
- package/studio-dist/server/chunks/api-mode2-3W-I1-XO.js +0 -36
- package/studio-dist/server/chunks/api2-CmNQzb0b.js +0 -96
- package/studio-dist/server/chunks/attention-consolidate-CidG1jfH.js +0 -485
- package/studio-dist/server/chunks/audit3-DMO_fUGp.js +0 -52
- package/studio-dist/server/chunks/auto-extract-B84La1Vs.js +0 -34
- package/studio-dist/server/chunks/brain-consolidator-JGm6mzFf.js +0 -373
- package/studio-dist/server/chunks/brain-doctor-Dc2WqVbs.js +0 -311
- package/studio-dist/server/chunks/brain-embedding-Djw9ekXu.js +0 -42
- package/studio-dist/server/chunks/brain-lifecycle-BOOa876K.js +0 -969
- package/studio-dist/server/chunks/brain-maintenance-U6VvsvmK.js +0 -133
- package/studio-dist/server/chunks/brain-maintenance2-CwVSmfDT.js +0 -43
- package/studio-dist/server/chunks/brain-retrieval2-exR8mdgh.js +0 -751
- package/studio-dist/server/chunks/brain-search-CpSh-SNi.js +0 -48
- package/studio-dist/server/chunks/brain-search2-CwI2cXgg.js +0 -716
- package/studio-dist/server/chunks/brain-similarity-DI4yzm9e.js +0 -113
- package/studio-dist/server/chunks/brain-stdp2-BxSBIlSr.js +0 -960
- package/studio-dist/server/chunks/brain-writer-handlers-Dwu0QCAA.js +0 -188
- package/studio-dist/server/chunks/brain-writer-thread-6n7wI7Gy.js +0 -360
- package/studio-dist/server/chunks/branch-lock-Cq7zzmFK.js +0 -1118
- package/studio-dist/server/chunks/branch-lock2-CmDc4CZW.js +0 -45
- package/studio-dist/server/chunks/cancelled-child-waiver-audit-DkesrN83.js +0 -54
- package/studio-dist/server/chunks/catalog-model-resolver-Bas9qnoP.js +0 -9
- package/studio-dist/server/chunks/catalog-model-resolver2-Cexk2TN0.js +0 -237
- package/studio-dist/server/chunks/catalog-resolver-CLot3XJO.js +0 -260
- package/studio-dist/server/chunks/catalog-resolver2-JmKb91kY.js +0 -33
- package/studio-dist/server/chunks/chunk-DDP5xfzh.js +0 -39
- package/studio-dist/server/chunks/cleo-home-CCfe6kAQ.js +0 -64
- package/studio-dist/server/chunks/concrete-session2-bb_vxJ2N.js +0 -43
- package/studio-dist/server/chunks/config-DHj9CcFs.js +0 -386
- package/studio-dist/server/chunks/config2-F6PPIn7D.js +0 -35
- package/studio-dist/server/chunks/connections-BMGJVYcS.js +0 -98
- package/studio-dist/server/chunks/credential-pool-vF6NdtT9.js +0 -4600
- package/studio-dist/server/chunks/credentials-C7EJFf5O.js +0 -35
- package/studio-dist/server/chunks/credentials-store-CFygIuB2.js +0 -35
- package/studio-dist/server/chunks/cross-db-cleanup-1LWTUKPi.js +0 -147
- package/studio-dist/server/chunks/data-accessor-CWgVndbR.js +0 -72
- package/studio-dist/server/chunks/data-safety-central-DaFxK27G.js +0 -683
- package/studio-dist/server/chunks/decisions-CmVXV2-H.js +0 -574
- package/studio-dist/server/chunks/decisions2-XQsSYdxa.js +0 -48
- package/studio-dist/server/chunks/depends-waiver-audit-CUmlBYHx.js +0 -56
- package/studio-dist/server/chunks/dialectic-evaluator2-BOyyXhdI.js +0 -96
- package/studio-dist/server/chunks/dist-es2-DQy2Mjn_.js +0 -43
- package/studio-dist/server/chunks/dist-es3-CBygU4n5.js +0 -365
- package/studio-dist/server/chunks/dist-es4-CavbNu4B.js +0 -162
- package/studio-dist/server/chunks/dist-es5-Crpm8Wsl.js +0 -465
- package/studio-dist/server/chunks/dist-es6-CgePHzh4.js +0 -99
- package/studio-dist/server/chunks/dist-es7-k6c5GEd7.js +0 -311
- package/studio-dist/server/chunks/dist-es8-Bd9v0_pE.js +0 -91
- package/studio-dist/server/chunks/dist3-23bsJhRw.js +0 -27
- package/studio-dist/server/chunks/dist4-DmC1zSXi.js +0 -35618
- package/studio-dist/server/chunks/dual-scope-db-DKnWu1KM.js +0 -5672
- package/studio-dist/server/chunks/dual-scope-db2-Dht3luRw.js +0 -31
- package/studio-dist/server/chunks/duplicate-bypass-audit-BN5w1H2y.js +0 -36
- package/studio-dist/server/chunks/duplicate-detector-CaVFMKdE.js +0 -692
- package/studio-dist/server/chunks/edge-types-CgBvb0w1.js +0 -28
- package/studio-dist/server/chunks/embedding-local-xEnym8Ho.js +0 -92
- package/studio-dist/server/chunks/event-streams-Bi2p_fVo.js +0 -232
- package/studio-dist/server/chunks/execution-learning-BVCw7Plq.js +0 -278
- package/studio-dist/server/chunks/exodus-BBuuN6aA.js +0 -2594
- package/studio-dist/server/chunks/externalDataInterceptor-C3C4cObe.js +0 -21
- package/studio-dist/server/chunks/extraction-gate-DDNBq7gu.js +0 -48
- package/studio-dist/server/chunks/extraction-gate2-D77EZBQ6.js +0 -375
- package/studio-dist/server/chunks/getSSOTokenFromFile-yZAJxDci.js +0 -21
- package/studio-dist/server/chunks/governor2-CtfV3wfX.js +0 -923
- package/studio-dist/server/chunks/graph-auto-populate-Dmsr9ZJM.js +0 -42
- package/studio-dist/server/chunks/graph-auto-populate2-Cz0qeebM.js +0 -156
- package/studio-dist/server/chunks/graph-memory-bridge-CY8ft_d7.js +0 -43
- package/studio-dist/server/chunks/graph-memory-bridge2-Cd0XZwqc.js +0 -429
- package/studio-dist/server/chunks/handler-helpers-AANBGA_p.js +0 -49
- package/studio-dist/server/chunks/hash-Cm6yMET4.js +0 -14
- package/studio-dist/server/chunks/health-monitor-FepUZN1m.js +0 -106
- package/studio-dist/server/chunks/identity-DRpurt56.js +0 -30
- package/studio-dist/server/chunks/identity2-DeAB5RXE.js +0 -114
- package/studio-dist/server/chunks/index-61916rmV.js +0 -632
- package/studio-dist/server/chunks/index-DAgVDouG.js +0 -268
- package/studio-dist/server/chunks/index-Dtt_h58T.js +0 -2116
- package/studio-dist/server/chunks/indexes-DZ52grq6.js +0 -615
- package/studio-dist/server/chunks/json-Bfixam3g.js +0 -126
- package/studio-dist/server/chunks/learnings-D6Y3YGMU.js +0 -47
- package/studio-dist/server/chunks/learnings2-MwBdR9vb.js +0 -171
- package/studio-dist/server/chunks/lifecycle-ops2-V2CR5-7X.js +0 -121
- package/studio-dist/server/chunks/list-BhObczvn.js +0 -229
- package/studio-dist/server/chunks/living-brain2-j0B_Ir8j.js +0 -285
- package/studio-dist/server/chunks/llm-backend-resolver-D4ANvUPL.js +0 -295
- package/studio-dist/server/chunks/llm-extraction-DVCu4heR.js +0 -408
- package/studio-dist/server/chunks/loadSharedConfigFiles-umvW7kuz.js +0 -73
- package/studio-dist/server/chunks/loadSso-iidd5iKx.js +0 -599
- package/studio-dist/server/chunks/local-model-fit-B0TxifnX.js +0 -53
- package/studio-dist/server/chunks/local-model-fit2-BMqo6GJm.js +0 -2664
- package/studio-dist/server/chunks/lock-CA7d6lj7.js +0 -57
- package/studio-dist/server/chunks/logger-DQIoyZbq.js +0 -34
- package/studio-dist/server/chunks/memory-BUbicBbE.js +0 -618
- package/studio-dist/server/chunks/memory-accessor-i3P-RHSg.js +0 -42
- package/studio-dist/server/chunks/memory-accessor2-B981tHDR.js +0 -467
- package/studio-dist/server/chunks/memory-bridge-BOlEWg9w.js +0 -424
- package/studio-dist/server/chunks/memory-sqlite2-B7dq8doO.js +0 -42
- package/studio-dist/server/chunks/model-runner2-B71xjp4y.js +0 -43
- package/studio-dist/server/chunks/mvi-helpers-BNsJ8ZpQ.js +0 -59
- package/studio-dist/server/chunks/nexus-plasticity-BTfU8cW_.js +0 -269
- package/studio-dist/server/chunks/nexus-risk-audit-p379-TU5.js +0 -54
- package/studio-dist/server/chunks/nexus-schema-zeygY8OD.js +0 -11
- package/studio-dist/server/chunks/nexus-schema2-DP0Qd7CA.js +0 -444
- package/studio-dist/server/chunks/nexus-sqlite-BVNIpwc7.js +0 -36
- package/studio-dist/server/chunks/nexus-sqlite2-BBfY2xnY.js +0 -1103
- package/studio-dist/server/chunks/node-http-handler-CJI8kn7X.js +0 -386
- package/studio-dist/server/chunks/observe-Bo9veHGe.js +0 -47
- package/studio-dist/server/chunks/observe2-wzO0MaMY.js +0 -245
- package/studio-dist/server/chunks/observer-reflector-BwNOuq1d.js +0 -62
- package/studio-dist/server/chunks/observer-reflector2-ggtC1hmk.js +0 -478
- package/studio-dist/server/chunks/on-open-Wpcw7DV4.js +0 -740
- package/studio-dist/server/chunks/open-cleo-db--8sYNaYY.js +0 -70
- package/studio-dist/server/chunks/parseKnownFiles-Dg0pMFcT.js +0 -18
- package/studio-dist/server/chunks/parseUrl-qgGfl-Vh.js +0 -120
- package/studio-dist/server/chunks/paths-CV7S5-Zm.js +0 -30012
- package/studio-dist/server/chunks/patterns-lh5kn13I.js +0 -48
- package/studio-dist/server/chunks/patterns2-CzIcT-ai.js +0 -177
- package/studio-dist/server/chunks/pipeline-stage-IB_pOft-.js +0 -63
- package/studio-dist/server/chunks/prediction-D1lSGJ4c.js +0 -217
- package/studio-dist/server/chunks/premature-close-audit-VG09uAco.js +0 -53
- package/studio-dist/server/chunks/project-context-BjiqfEBi.js +0 -166
- package/studio-dist/server/chunks/provider-registry2-Cu7rAF0R.js +0 -35
- package/studio-dist/server/chunks/quality-feedback-CuCGEI6S.js +0 -371
- package/studio-dist/server/chunks/quality-scoring-CCPuRQmJ.js +0 -160
- package/studio-dist/server/chunks/query-ops-DCrjbZb9.js +0 -78
- package/studio-dist/server/chunks/query-promise-BkPmGPJy.js +0 -1257
- package/studio-dist/server/chunks/readFile-CxwXhymG.js +0 -31
- package/studio-dist/server/chunks/registry-CL2gN1zd.js +0 -27
- package/studio-dist/server/chunks/registry2-DoPYJnUW.js +0 -233
- package/studio-dist/server/chunks/registry3-BajEb-ll.js +0 -42
- package/studio-dist/server/chunks/registry4-DCqffZkT.js +0 -142
- package/studio-dist/server/chunks/retry-B3oEKYpp.js +0 -105
- package/studio-dist/server/chunks/role-executor-CC8BU54L.js +0 -25379
- package/studio-dist/server/chunks/role-resolver-D9QaDT0e.js +0 -6544
- package/studio-dist/server/chunks/role-resolver2-nkhzS1oy.js +0 -37
- package/studio-dist/server/chunks/rollup-CiefjN_Y.js +0 -194
- package/studio-dist/server/chunks/safety-data-accessor-CniDmGJO.js +0 -276
- package/studio-dist/server/chunks/service-connections-accessor-yBCdcgU-.js +0 -282
- package/studio-dist/server/chunks/session-factory-vbengc42.js +0 -96
- package/studio-dist/server/chunks/session-grade-BF4ZZtN_.js +0 -244
- package/studio-dist/server/chunks/session-journal-Bvey70Ur.js +0 -235
- package/studio-dist/server/chunks/session-narrative-BirZINSU.js +0 -304
- package/studio-dist/server/chunks/session-store--N_xHxUH.js +0 -557
- package/studio-dist/server/chunks/session-store2-DAM-eVTH.js +0 -43
- package/studio-dist/server/chunks/sessions-33DD4hkt.js +0 -2273
- package/studio-dist/server/chunks/sessions2-BHswKRDP.js +0 -50
- package/studio-dist/server/chunks/sigil-B-RznFXz.js +0 -33
- package/studio-dist/server/chunks/sigil2-jRMG5DuR.js +0 -47
- package/studio-dist/server/chunks/signin-BAsW3mM8.js +0 -644
- package/studio-dist/server/chunks/sleep-consolidation-BnSwXrvq.js +0 -823
- package/studio-dist/server/chunks/specialists-B_ZbpQlK.js +0 -441
- package/studio-dist/server/chunks/sqlite-Bm5LzbPs.js +0 -5977
- package/studio-dist/server/chunks/sqlite-backup-CFG1-b2e.js +0 -42
- package/studio-dist/server/chunks/sqlite-data-accessor-DD_RFX6r.js +0 -987
- package/studio-dist/server/chunks/sqlite-data-accessor2-CRmgNBnq.js +0 -44
- package/studio-dist/server/chunks/sqlite-native-BwlIqtbs.js +0 -42
- package/studio-dist/server/chunks/sqlite2-CUPut2fh.js +0 -42
- package/studio-dist/server/chunks/src2-DK8DKufK.js +0 -290
- package/studio-dist/server/chunks/src3-BJjf7XRG.js +0 -798
- package/studio-dist/server/chunks/src4-DNleK_t_.js +0 -28
- package/studio-dist/server/chunks/sso-oidc-eUvwseuL.js +0 -861
- package/studio-dist/server/chunks/storage-B9UA3BHR.js +0 -198
- package/studio-dist/server/chunks/sts-g7LDMLEd.js +0 -4655
- package/studio-dist/server/chunks/surprisal-CwTfWQi8.js +0 -224
- package/studio-dist/server/chunks/surprisal-tree-7dfHsuw1.js +0 -230
- package/studio-dist/server/chunks/system-resolver2-Bzhue_zQ.js +0 -53
- package/studio-dist/server/chunks/tasks-SHX7UPGY.js +0 -19694
- package/studio-dist/server/chunks/tasks-schema2-CTMoQKQy.js +0 -42
- package/studio-dist/server/chunks/temporal-supersession-DP4GPG_B.js +0 -298
- package/studio-dist/server/chunks/token-cAhAD9f9.js +0 -139
- package/studio-dist/server/chunks/token-util-D6drEz8_.js +0 -353
- package/studio-dist/server/chunks/token-util2-8UPSGvbb.js +0 -97
- package/studio-dist/server/chunks/transcript-scanner-kJWhWmlg.js +0 -53
- package/studio-dist/server/chunks/transformers.node-_xbxmK5p.js +0 -38475
- package/studio-dist/server/chunks/typed-query-l1D_QElt.js +0 -18
- package/studio-dist/server/chunks/unique-constraint-BZrrwgwc.js +0 -88
- package/studio-dist/server/chunks/update-B2YVBZG0.js +0 -1594
- package/studio-dist/server/chunks/user-profile-B61ZhVmC.js +0 -89
- package/studio-dist/server/chunks/utils-BPSZyajG.js +0 -1176
- package/studio-dist/server/chunks/validation-rules-CE27rtoF.js +0 -44
- package/studio-dist/server/chunks/zod-DsAeKNLm.js +0 -141
- /package/studio-dist/client/_app/immutable/chunks/{CQCxd1p9.js → B8WnZMYa.js} +0 -0
- /package/studio-dist/client/_app/immutable/chunks/{D13Quv9e2.js → B_0_YCYG.js} +0 -0
- /package/studio-dist/client/_app/immutable/chunks/{djL6V-tr.js → CqgtdAx_.js} +0 -0
- /package/studio-dist/client/_app/immutable/chunks/{_FU7h_8p2.js → KrUPZzXZ.js} +0 -0
|
@@ -1,1257 +0,0 @@
|
|
|
1
|
-
import { e as entityKind, ab as OriginalColumn, j as Table, m as ViewBaseConfig, i as is, V as View, C as Column, h as Subquery, S as SQL, Q as isSQLWrapper, s as sql, L as isDriverValueEncoder, P as Param, g as StringChunk, f as Placeholder, k as TableColumns, I as IsAlias, l as TableSchema, O as OriginalName, d as FnConstructor, t as getColumnFromDecoder, a3 as noopDecoder } from './utils-BPSZyajG.js';
|
|
2
|
-
|
|
3
|
-
//#region src/alias.ts
|
|
4
|
-
var ColumnTableAliasProxyHandler = class {
|
|
5
|
-
static [entityKind] = "ColumnTableAliasProxyHandler";
|
|
6
|
-
constructor(table, ignoreColumnAlias) {
|
|
7
|
-
this.table = table;
|
|
8
|
-
this.ignoreColumnAlias = ignoreColumnAlias;
|
|
9
|
-
}
|
|
10
|
-
get(columnObj, prop) {
|
|
11
|
-
if (prop === "table") return this.table;
|
|
12
|
-
if (prop === "isAlias" && this.ignoreColumnAlias) return false;
|
|
13
|
-
return columnObj[prop];
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
var ViewSelectionAliasProxyHandler = class {
|
|
17
|
-
static [entityKind] = "ViewSelectionAliasProxyHandler";
|
|
18
|
-
constructor(view, selection, ignoreColumnAlias) {
|
|
19
|
-
this.view = view;
|
|
20
|
-
this.selection = selection;
|
|
21
|
-
this.ignoreColumnAlias = ignoreColumnAlias;
|
|
22
|
-
}
|
|
23
|
-
get(selection, prop) {
|
|
24
|
-
const value = selection[prop];
|
|
25
|
-
if (is(value, Column)) return new Proxy(value, new ColumnTableAliasProxyHandler(this.view, this.ignoreColumnAlias));
|
|
26
|
-
if (is(value, Subquery) || is(value, SQL) || is(value, SQL.Aliased) || isSQLWrapper(value) || typeof value !== "object" || value === null) return value;
|
|
27
|
-
return new Proxy(value, this);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
var TableAliasProxyHandler = class {
|
|
31
|
-
static [entityKind] = "TableAliasProxyHandler";
|
|
32
|
-
constructor(alias, replaceOriginalName, ignoreColumnAlias) {
|
|
33
|
-
this.alias = alias;
|
|
34
|
-
this.replaceOriginalName = replaceOriginalName;
|
|
35
|
-
this.ignoreColumnAlias = ignoreColumnAlias;
|
|
36
|
-
}
|
|
37
|
-
get(target, prop) {
|
|
38
|
-
if (prop === Table.Symbol.IsAlias) return true;
|
|
39
|
-
if (prop === Table.Symbol.Name) return this.alias;
|
|
40
|
-
if (this.replaceOriginalName && prop === Table.Symbol.OriginalName) return this.alias;
|
|
41
|
-
if (prop === ViewBaseConfig) return {
|
|
42
|
-
...target[ViewBaseConfig],
|
|
43
|
-
name: this.alias,
|
|
44
|
-
isAlias: true,
|
|
45
|
-
selectedFields: new Proxy(target[ViewBaseConfig].selectedFields, new ViewSelectionAliasProxyHandler(new Proxy(target, this), target[ViewBaseConfig].selectedFields, this.ignoreColumnAlias))
|
|
46
|
-
};
|
|
47
|
-
if (prop === Table.Symbol.Columns) {
|
|
48
|
-
const columns = target[Table.Symbol.Columns];
|
|
49
|
-
if (!columns) return columns;
|
|
50
|
-
if (is(target, View)) return new Proxy(target[Table.Symbol.Columns], new ViewSelectionAliasProxyHandler(new Proxy(target, this), target[Table.Symbol.Columns], this.ignoreColumnAlias));
|
|
51
|
-
const proxiedColumns = {};
|
|
52
|
-
Object.keys(columns).map((key) => {
|
|
53
|
-
proxiedColumns[key] = new Proxy(columns[key], new ColumnTableAliasProxyHandler(new Proxy(target, this), this.ignoreColumnAlias));
|
|
54
|
-
});
|
|
55
|
-
return proxiedColumns;
|
|
56
|
-
}
|
|
57
|
-
const value = target[prop];
|
|
58
|
-
if (is(value, Column)) return new Proxy(value, new ColumnTableAliasProxyHandler(new Proxy(target, this), this.ignoreColumnAlias));
|
|
59
|
-
return value;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var ColumnAliasProxyHandler = class {
|
|
63
|
-
static [entityKind] = "ColumnAliasProxyHandler";
|
|
64
|
-
constructor(alias) {
|
|
65
|
-
this.alias = alias;
|
|
66
|
-
}
|
|
67
|
-
get(target, prop) {
|
|
68
|
-
if (prop === "isAlias") return true;
|
|
69
|
-
if (prop === "name") return this.alias;
|
|
70
|
-
if (prop === "keyAsName") return false;
|
|
71
|
-
if (prop === OriginalColumn) return () => target;
|
|
72
|
-
return target[prop];
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
var RelationTableAliasProxyHandler = class {
|
|
76
|
-
static [entityKind] = "RelationTableAliasProxyHandler";
|
|
77
|
-
constructor(alias) {
|
|
78
|
-
this.alias = alias;
|
|
79
|
-
}
|
|
80
|
-
get(target, prop) {
|
|
81
|
-
if (prop === "sourceTable") return aliasedTable(target.sourceTable, this.alias);
|
|
82
|
-
return target[prop];
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
function aliasedTable(table, tableAlias) {
|
|
86
|
-
return new Proxy(table, new TableAliasProxyHandler(tableAlias, false, false));
|
|
87
|
-
}
|
|
88
|
-
function aliasedColumn(column, alias) {
|
|
89
|
-
return new Proxy(column, new ColumnAliasProxyHandler(alias));
|
|
90
|
-
}
|
|
91
|
-
function aliasedRelation(relation, tableAlias) {
|
|
92
|
-
return new Proxy(relation, new RelationTableAliasProxyHandler(tableAlias));
|
|
93
|
-
}
|
|
94
|
-
function aliasedTableColumn(column, tableAlias) {
|
|
95
|
-
return new Proxy(column, new ColumnTableAliasProxyHandler(new Proxy(column.table, new TableAliasProxyHandler(tableAlias, false, false)), false));
|
|
96
|
-
}
|
|
97
|
-
function mapColumnsInAliasedSQLToAlias(query, alias) {
|
|
98
|
-
return new SQL.Aliased(mapColumnsInSQLToAlias(query.sql, alias), query.fieldAlias);
|
|
99
|
-
}
|
|
100
|
-
function mapColumnsInSQLToAlias(query, alias) {
|
|
101
|
-
return sql.join(query.queryChunks.map((c) => {
|
|
102
|
-
if (is(c, Column)) return aliasedTableColumn(c, alias);
|
|
103
|
-
if (is(c, SQL)) return mapColumnsInSQLToAlias(c, alias);
|
|
104
|
-
if (is(c, SQL.Aliased)) return mapColumnsInAliasedSQLToAlias(c, alias);
|
|
105
|
-
return c;
|
|
106
|
-
}));
|
|
107
|
-
}
|
|
108
|
-
Column.prototype.as = function(alias) {
|
|
109
|
-
return aliasedColumn(this, alias);
|
|
110
|
-
};
|
|
111
|
-
function getOriginalColumnFromAlias(column) {
|
|
112
|
-
return column[OriginalColumn]();
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
//#region src/errors.ts
|
|
116
|
-
var DrizzleError = class extends Error {
|
|
117
|
-
static [entityKind] = "DrizzleError";
|
|
118
|
-
constructor({ message, cause }) {
|
|
119
|
-
super(message);
|
|
120
|
-
this.name = "DrizzleError";
|
|
121
|
-
this.cause = cause;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
var DrizzleQueryError = class DrizzleQueryError extends Error {
|
|
125
|
-
static [entityKind] = "DrizzleQueryError";
|
|
126
|
-
constructor(query, params, cause) {
|
|
127
|
-
super(`Failed query: ${query}\nparams: ${params}`);
|
|
128
|
-
this.query = query;
|
|
129
|
-
this.params = params;
|
|
130
|
-
this.cause = cause;
|
|
131
|
-
this.name = "DrizzleQueryError";
|
|
132
|
-
Error.captureStackTrace(this, DrizzleQueryError);
|
|
133
|
-
if (cause) this.cause = cause;
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
var TransactionRollbackError = class extends DrizzleError {
|
|
137
|
-
static [entityKind] = "TransactionRollbackError";
|
|
138
|
-
constructor() {
|
|
139
|
-
super({ message: "Rollback" });
|
|
140
|
-
this.name = "TransactionRollbackError";
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
//#region src/sql/expressions/conditions.ts
|
|
145
|
-
function bindIfParam(value, column) {
|
|
146
|
-
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) return new Param(value, column);
|
|
147
|
-
return value;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Test that two values are equal.
|
|
151
|
-
*
|
|
152
|
-
* Remember that the SQL standard dictates that
|
|
153
|
-
* two NULL values are not equal, so if you want to test
|
|
154
|
-
* whether a value is null, you may want to use
|
|
155
|
-
* `isNull` instead.
|
|
156
|
-
*
|
|
157
|
-
* ## Examples
|
|
158
|
-
*
|
|
159
|
-
* ```ts
|
|
160
|
-
* // Select cars made by Ford
|
|
161
|
-
* db.select().from(cars)
|
|
162
|
-
* .where(eq(cars.make, 'Ford'))
|
|
163
|
-
* ```
|
|
164
|
-
*
|
|
165
|
-
* @see isNull for a way to test equality to NULL.
|
|
166
|
-
*/
|
|
167
|
-
const eq = (left, right) => {
|
|
168
|
-
return sql`${left} = ${bindIfParam(right, left)}`;
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* Test that two values are not equal.
|
|
172
|
-
*
|
|
173
|
-
* Remember that the SQL standard dictates that
|
|
174
|
-
* two NULL values are not equal, so if you want to test
|
|
175
|
-
* whether a value is not null, you may want to use
|
|
176
|
-
* `isNotNull` instead.
|
|
177
|
-
*
|
|
178
|
-
* ## Examples
|
|
179
|
-
*
|
|
180
|
-
* ```ts
|
|
181
|
-
* // Select cars not made by Ford
|
|
182
|
-
* db.select().from(cars)
|
|
183
|
-
* .where(ne(cars.make, 'Ford'))
|
|
184
|
-
* ```
|
|
185
|
-
*
|
|
186
|
-
* @see isNotNull for a way to test whether a value is not null.
|
|
187
|
-
*/
|
|
188
|
-
const ne = (left, right) => {
|
|
189
|
-
return sql`${left} <> ${bindIfParam(right, left)}`;
|
|
190
|
-
};
|
|
191
|
-
function and(...unfilteredConditions) {
|
|
192
|
-
const conditions = unfilteredConditions.filter((c) => c !== void 0);
|
|
193
|
-
if (conditions.length === 0) return;
|
|
194
|
-
if (conditions.length === 1) return new SQL(conditions);
|
|
195
|
-
return new SQL([
|
|
196
|
-
new StringChunk("("),
|
|
197
|
-
sql.join(conditions.map((c) => sql`(${c})`), new StringChunk(" and ")),
|
|
198
|
-
new StringChunk(")")
|
|
199
|
-
]);
|
|
200
|
-
}
|
|
201
|
-
function or(...unfilteredConditions) {
|
|
202
|
-
const conditions = unfilteredConditions.filter((c) => c !== void 0);
|
|
203
|
-
if (conditions.length === 0) return;
|
|
204
|
-
if (conditions.length === 1) return new SQL(conditions);
|
|
205
|
-
return new SQL([
|
|
206
|
-
new StringChunk("("),
|
|
207
|
-
sql.join(conditions.map((c) => sql`(${c})`), new StringChunk(" or ")),
|
|
208
|
-
new StringChunk(")")
|
|
209
|
-
]);
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Negate the meaning of an expression using the `not` keyword.
|
|
213
|
-
*
|
|
214
|
-
* ## Examples
|
|
215
|
-
*
|
|
216
|
-
* ```ts
|
|
217
|
-
* // Select cars _not_ made by GM or Ford.
|
|
218
|
-
* db.select().from(cars)
|
|
219
|
-
* .where(not(inArray(cars.make, ['GM', 'Ford'])))
|
|
220
|
-
* ```
|
|
221
|
-
*/
|
|
222
|
-
function not(condition) {
|
|
223
|
-
return is(condition, SQL) ? sql`not (${condition})` : sql`not ${condition}`;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Test that the first expression passed is greater than
|
|
227
|
-
* the second expression.
|
|
228
|
-
*
|
|
229
|
-
* ## Examples
|
|
230
|
-
*
|
|
231
|
-
* ```ts
|
|
232
|
-
* // Select cars made after 2000.
|
|
233
|
-
* db.select().from(cars)
|
|
234
|
-
* .where(gt(cars.year, 2000))
|
|
235
|
-
* ```
|
|
236
|
-
*
|
|
237
|
-
* @see gte for greater-than-or-equal
|
|
238
|
-
*/
|
|
239
|
-
const gt = (left, right) => {
|
|
240
|
-
return sql`${left} > ${bindIfParam(right, left)}`;
|
|
241
|
-
};
|
|
242
|
-
/**
|
|
243
|
-
* Test that the first expression passed is greater than
|
|
244
|
-
* or equal to the second expression. Use `gt` to
|
|
245
|
-
* test whether an expression is strictly greater
|
|
246
|
-
* than another.
|
|
247
|
-
*
|
|
248
|
-
* ## Examples
|
|
249
|
-
*
|
|
250
|
-
* ```ts
|
|
251
|
-
* // Select cars made on or after 2000.
|
|
252
|
-
* db.select().from(cars)
|
|
253
|
-
* .where(gte(cars.year, 2000))
|
|
254
|
-
* ```
|
|
255
|
-
*
|
|
256
|
-
* @see gt for a strictly greater-than condition
|
|
257
|
-
*/
|
|
258
|
-
const gte = (left, right) => {
|
|
259
|
-
return sql`${left} >= ${bindIfParam(right, left)}`;
|
|
260
|
-
};
|
|
261
|
-
/**
|
|
262
|
-
* Test that the first expression passed is less than
|
|
263
|
-
* the second expression.
|
|
264
|
-
*
|
|
265
|
-
* ## Examples
|
|
266
|
-
*
|
|
267
|
-
* ```ts
|
|
268
|
-
* // Select cars made before 2000.
|
|
269
|
-
* db.select().from(cars)
|
|
270
|
-
* .where(lt(cars.year, 2000))
|
|
271
|
-
* ```
|
|
272
|
-
*
|
|
273
|
-
* @see lte for less-than-or-equal
|
|
274
|
-
*/
|
|
275
|
-
const lt = (left, right) => {
|
|
276
|
-
return sql`${left} < ${bindIfParam(right, left)}`;
|
|
277
|
-
};
|
|
278
|
-
/**
|
|
279
|
-
* Test that the first expression passed is less than
|
|
280
|
-
* or equal to the second expression.
|
|
281
|
-
*
|
|
282
|
-
* ## Examples
|
|
283
|
-
*
|
|
284
|
-
* ```ts
|
|
285
|
-
* // Select cars made before 2000.
|
|
286
|
-
* db.select().from(cars)
|
|
287
|
-
* .where(lte(cars.year, 2000))
|
|
288
|
-
* ```
|
|
289
|
-
*
|
|
290
|
-
* @see lt for a strictly less-than condition
|
|
291
|
-
*/
|
|
292
|
-
const lte = (left, right) => {
|
|
293
|
-
return sql`${left} <= ${bindIfParam(right, left)}`;
|
|
294
|
-
};
|
|
295
|
-
function inArray(column, values) {
|
|
296
|
-
if (Array.isArray(values)) {
|
|
297
|
-
if (values.length === 0) return sql`false`;
|
|
298
|
-
return sql`${column} in ${values.map((v) => bindIfParam(v, column))}`;
|
|
299
|
-
}
|
|
300
|
-
return sql`${column} in ${bindIfParam(values, column)}`;
|
|
301
|
-
}
|
|
302
|
-
function notInArray(column, values) {
|
|
303
|
-
if (Array.isArray(values)) {
|
|
304
|
-
if (values.length === 0) return sql`true`;
|
|
305
|
-
return sql`${column} not in ${values.map((v) => bindIfParam(v, column))}`;
|
|
306
|
-
}
|
|
307
|
-
return sql`${column} not in ${bindIfParam(values, column)}`;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Test whether an expression is NULL. By the SQL standard,
|
|
311
|
-
* NULL is neither equal nor not equal to itself, so
|
|
312
|
-
* it's recommended to use `isNull` and `notIsNull` for
|
|
313
|
-
* comparisons to NULL.
|
|
314
|
-
*
|
|
315
|
-
* ## Examples
|
|
316
|
-
*
|
|
317
|
-
* ```ts
|
|
318
|
-
* // Select cars that have no discontinuedAt date.
|
|
319
|
-
* db.select().from(cars)
|
|
320
|
-
* .where(isNull(cars.discontinuedAt))
|
|
321
|
-
* ```
|
|
322
|
-
*
|
|
323
|
-
* @see isNotNull for the inverse of this test
|
|
324
|
-
*/
|
|
325
|
-
function isNull(value) {
|
|
326
|
-
return sql`(${value} is null)`;
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* Test whether an expression is not NULL. By the SQL standard,
|
|
330
|
-
* NULL is neither equal nor not equal to itself, so
|
|
331
|
-
* it's recommended to use `isNull` and `notIsNull` for
|
|
332
|
-
* comparisons to NULL.
|
|
333
|
-
*
|
|
334
|
-
* ## Examples
|
|
335
|
-
*
|
|
336
|
-
* ```ts
|
|
337
|
-
* // Select cars that have been discontinued.
|
|
338
|
-
* db.select().from(cars)
|
|
339
|
-
* .where(isNotNull(cars.discontinuedAt))
|
|
340
|
-
* ```
|
|
341
|
-
*
|
|
342
|
-
* @see isNull for the inverse of this test
|
|
343
|
-
*/
|
|
344
|
-
function isNotNull(value) {
|
|
345
|
-
return sql`(${value} is not null)`;
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* Test whether a subquery evaluates to have any rows.
|
|
349
|
-
*
|
|
350
|
-
* ## Examples
|
|
351
|
-
*
|
|
352
|
-
* ```ts
|
|
353
|
-
* // Users whose `homeCity` column has a match in a cities
|
|
354
|
-
* // table.
|
|
355
|
-
* db
|
|
356
|
-
* .select()
|
|
357
|
-
* .from(users)
|
|
358
|
-
* .where(
|
|
359
|
-
* exists(db.select()
|
|
360
|
-
* .from(cities)
|
|
361
|
-
* .where(eq(users.homeCity, cities.id))),
|
|
362
|
-
* );
|
|
363
|
-
* ```
|
|
364
|
-
*
|
|
365
|
-
* @see notExists for the inverse of this test
|
|
366
|
-
*/
|
|
367
|
-
function exists(subquery) {
|
|
368
|
-
return sql`exists ${subquery}`;
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* Test whether a subquery doesn't include any result
|
|
372
|
-
* rows.
|
|
373
|
-
*
|
|
374
|
-
* ## Examples
|
|
375
|
-
*
|
|
376
|
-
* ```ts
|
|
377
|
-
* // Users whose `homeCity` column doesn't match
|
|
378
|
-
* // a row in the cities table.
|
|
379
|
-
* db
|
|
380
|
-
* .select()
|
|
381
|
-
* .from(users)
|
|
382
|
-
* .where(
|
|
383
|
-
* notExists(db.select()
|
|
384
|
-
* .from(cities)
|
|
385
|
-
* .where(eq(users.homeCity, cities.id))),
|
|
386
|
-
* );
|
|
387
|
-
* ```
|
|
388
|
-
*
|
|
389
|
-
* @see exists for the inverse of this test
|
|
390
|
-
*/
|
|
391
|
-
function notExists(subquery) {
|
|
392
|
-
return sql`not exists ${subquery}`;
|
|
393
|
-
}
|
|
394
|
-
function between(column, min, max) {
|
|
395
|
-
return sql`${column} between ${bindIfParam(min, column)} and ${bindIfParam(max, column)}`;
|
|
396
|
-
}
|
|
397
|
-
function notBetween(column, min, max) {
|
|
398
|
-
return sql`${column} not between ${bindIfParam(min, column)} and ${bindIfParam(max, column)}`;
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* Compare a column to a pattern, which can include `%` and `_`
|
|
402
|
-
* characters to match multiple variations. Including `%`
|
|
403
|
-
* in the pattern matches zero or more characters, and including
|
|
404
|
-
* `_` will match a single character.
|
|
405
|
-
*
|
|
406
|
-
* ## Examples
|
|
407
|
-
*
|
|
408
|
-
* ```ts
|
|
409
|
-
* // Select all cars with 'Turbo' in their names.
|
|
410
|
-
* db.select().from(cars)
|
|
411
|
-
* .where(like(cars.name, '%Turbo%'))
|
|
412
|
-
* ```
|
|
413
|
-
*
|
|
414
|
-
* @see ilike for a case-insensitive version of this condition
|
|
415
|
-
*/
|
|
416
|
-
function like(column, value) {
|
|
417
|
-
return sql`${column} like ${value}`;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* The inverse of like - this tests that a given column
|
|
421
|
-
* does not match a pattern, which can include `%` and `_`
|
|
422
|
-
* characters to match multiple variations. Including `%`
|
|
423
|
-
* in the pattern matches zero or more characters, and including
|
|
424
|
-
* `_` will match a single character.
|
|
425
|
-
*
|
|
426
|
-
* ## Examples
|
|
427
|
-
*
|
|
428
|
-
* ```ts
|
|
429
|
-
* // Select all cars that don't have "ROver" in their name.
|
|
430
|
-
* db.select().from(cars)
|
|
431
|
-
* .where(notLike(cars.name, '%Rover%'))
|
|
432
|
-
* ```
|
|
433
|
-
*
|
|
434
|
-
* @see like for the inverse condition
|
|
435
|
-
* @see notIlike for a case-insensitive version of this condition
|
|
436
|
-
*/
|
|
437
|
-
function notLike(column, value) {
|
|
438
|
-
return sql`${column} not like ${value}`;
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* Case-insensitively compare a column to a pattern,
|
|
442
|
-
* which can include `%` and `_`
|
|
443
|
-
* characters to match multiple variations. Including `%`
|
|
444
|
-
* in the pattern matches zero or more characters, and including
|
|
445
|
-
* `_` will match a single character.
|
|
446
|
-
*
|
|
447
|
-
* Unlike like, this performs a case-insensitive comparison.
|
|
448
|
-
*
|
|
449
|
-
* ## Examples
|
|
450
|
-
*
|
|
451
|
-
* ```ts
|
|
452
|
-
* // Select all cars with 'Turbo' in their names.
|
|
453
|
-
* db.select().from(cars)
|
|
454
|
-
* .where(ilike(cars.name, '%Turbo%'))
|
|
455
|
-
* ```
|
|
456
|
-
*
|
|
457
|
-
* @see like for a case-sensitive version of this condition
|
|
458
|
-
*/
|
|
459
|
-
function ilike(column, value) {
|
|
460
|
-
return sql`${column} ilike ${value}`;
|
|
461
|
-
}
|
|
462
|
-
/**
|
|
463
|
-
* The inverse of ilike - this case-insensitively tests that a given column
|
|
464
|
-
* does not match a pattern, which can include `%` and `_`
|
|
465
|
-
* characters to match multiple variations. Including `%`
|
|
466
|
-
* in the pattern matches zero or more characters, and including
|
|
467
|
-
* `_` will match a single character.
|
|
468
|
-
*
|
|
469
|
-
* ## Examples
|
|
470
|
-
*
|
|
471
|
-
* ```ts
|
|
472
|
-
* // Select all cars that don't have "Rover" in their name.
|
|
473
|
-
* db.select().from(cars)
|
|
474
|
-
* .where(notLike(cars.name, '%Rover%'))
|
|
475
|
-
* ```
|
|
476
|
-
*
|
|
477
|
-
* @see ilike for the inverse condition
|
|
478
|
-
* @see notLike for a case-sensitive version of this condition
|
|
479
|
-
*/
|
|
480
|
-
function notIlike(column, value) {
|
|
481
|
-
return sql`${column} not ilike ${value}`;
|
|
482
|
-
}
|
|
483
|
-
function arrayContains(column, values) {
|
|
484
|
-
if (Array.isArray(values)) {
|
|
485
|
-
if (values.length === 0) throw new Error("arrayContains requires at least one value");
|
|
486
|
-
const par = bindIfParam(values, column);
|
|
487
|
-
return sql`${column} @> ${sql`${Array.isArray(par) ? new Param(par) : par}`}`;
|
|
488
|
-
}
|
|
489
|
-
return sql`${column} @> ${bindIfParam(values, column)}`;
|
|
490
|
-
}
|
|
491
|
-
function arrayContained(column, values) {
|
|
492
|
-
if (Array.isArray(values)) {
|
|
493
|
-
if (values.length === 0) throw new Error("arrayContained requires at least one value");
|
|
494
|
-
const par = bindIfParam(values, column);
|
|
495
|
-
return sql`${column} <@ ${sql`${Array.isArray(par) ? new Param(par) : par}`}`;
|
|
496
|
-
}
|
|
497
|
-
return sql`${column} <@ ${bindIfParam(values, column)}`;
|
|
498
|
-
}
|
|
499
|
-
function arrayOverlaps(column, values) {
|
|
500
|
-
if (Array.isArray(values)) {
|
|
501
|
-
if (values.length === 0) throw new Error("arrayOverlaps requires at least one value");
|
|
502
|
-
const par = bindIfParam(values, column);
|
|
503
|
-
return sql`${column} && ${sql`${Array.isArray(par) ? new Param(par) : par}`}`;
|
|
504
|
-
}
|
|
505
|
-
return sql`${column} && ${bindIfParam(values, column)}`;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
//#region src/sql/expressions/select.ts
|
|
509
|
-
/**
|
|
510
|
-
* Used in sorting, this specifies that the given
|
|
511
|
-
* column or expression should be sorted in ascending
|
|
512
|
-
* order. By the SQL standard, ascending order is the
|
|
513
|
-
* default, so it is not usually necessary to specify
|
|
514
|
-
* ascending sort order.
|
|
515
|
-
*
|
|
516
|
-
* ## Examples
|
|
517
|
-
*
|
|
518
|
-
* ```ts
|
|
519
|
-
* // Return cars, starting with the oldest models
|
|
520
|
-
* // and going in ascending order to the newest.
|
|
521
|
-
* db.select().from(cars)
|
|
522
|
-
* .orderBy(asc(cars.year));
|
|
523
|
-
* ```
|
|
524
|
-
*
|
|
525
|
-
* @see desc to sort in descending order
|
|
526
|
-
*/
|
|
527
|
-
function asc(column) {
|
|
528
|
-
return sql`${column} asc`;
|
|
529
|
-
}
|
|
530
|
-
/**
|
|
531
|
-
* Used in sorting, this specifies that the given
|
|
532
|
-
* column or expression should be sorted in descending
|
|
533
|
-
* order.
|
|
534
|
-
*
|
|
535
|
-
* ## Examples
|
|
536
|
-
*
|
|
537
|
-
* ```ts
|
|
538
|
-
* // Select users, with the most recently created
|
|
539
|
-
* // records coming first.
|
|
540
|
-
* db.select().from(users)
|
|
541
|
-
* .orderBy(desc(users.createdAt));
|
|
542
|
-
* ```
|
|
543
|
-
*
|
|
544
|
-
* @see asc to sort in ascending order
|
|
545
|
-
*/
|
|
546
|
-
function desc(column) {
|
|
547
|
-
return sql`${column} desc`;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
//#region src/relations.ts
|
|
551
|
-
function processRelations(tablesConfig, tables) {
|
|
552
|
-
for (const tableConfig of Object.values(tablesConfig)) for (const [relationFieldName, relation] of Object.entries(tableConfig.relations)) {
|
|
553
|
-
if (!is(relation, Relation)) continue;
|
|
554
|
-
relation.sourceTable = tableConfig.table;
|
|
555
|
-
relation.fieldName = relationFieldName;
|
|
556
|
-
}
|
|
557
|
-
for (const [sourceTableName, tableConfig] of Object.entries(tablesConfig)) for (const [relationFieldName, relation] of Object.entries(tableConfig.relations)) {
|
|
558
|
-
if (!is(relation, Relation)) continue;
|
|
559
|
-
let reverseRelation;
|
|
560
|
-
const { targetTableName, alias, sourceColumns, targetColumns, throughTable, sourceTable, through, where, sourceColumnTableNames, targetColumnTableNames } = relation;
|
|
561
|
-
const relationPrintName = `relations -> ${tableConfig.name}: { ${relationFieldName}: r.${is(relation, One) ? "one" : "many"}.${targetTableName}(...) }`;
|
|
562
|
-
if (relationFieldName in tableConfig.table[TableColumns]) throw new Error(`${relationPrintName}: relation name collides with column "${relationFieldName}" of table "${tableConfig.name}"`);
|
|
563
|
-
if (typeof alias === "string" && !alias) throw new Error(`${relationPrintName}: "alias" cannot be an empty string - omit it if you don't need it`);
|
|
564
|
-
if (sourceColumns?.length === 0) throw new Error(`${relationPrintName}: "from" cannot be empty`);
|
|
565
|
-
if (targetColumns?.length === 0) throw new Error(`${relationPrintName}: "to" cannot be empty`);
|
|
566
|
-
if (sourceColumns && targetColumns) {
|
|
567
|
-
if (sourceColumns.length !== targetColumns.length && !throughTable) throw new Error(`${relationPrintName}: "from" and "to" fields without "through" must have the same length`);
|
|
568
|
-
for (const sName of sourceColumnTableNames) if (sName !== sourceTableName) throw new Error(`${relationPrintName}: all "from" columns must belong to table "${sourceTableName}", found column of table "${sName}"`);
|
|
569
|
-
for (const tName of targetColumnTableNames) if (tName !== targetTableName) throw new Error(`${relationPrintName}: all "to" columns must belong to table "${targetTableName}", found column of table "${tName}"`);
|
|
570
|
-
if (through) {
|
|
571
|
-
if (through.source.length !== sourceColumns.length || through.target.length !== targetColumns.length) throw new Error(`${relationPrintName}: ".through(column)" must be used either on all columns in "from" and "to" or not defined on any of them`);
|
|
572
|
-
for (const column of through.source) if (tables[column._.tableName] !== throughTable) throw new Error(`${relationPrintName}: ".through(column)" must be used on the same table by all columns of the relation`);
|
|
573
|
-
for (const column of through.target) if (tables[column._.tableName] !== throughTable) throw new Error(`${relationPrintName}: ".through(column)" must be used on the same table by all columns of the relation`);
|
|
574
|
-
}
|
|
575
|
-
continue;
|
|
576
|
-
}
|
|
577
|
-
if (sourceColumns || targetColumns) throw new Error(`${relationPrintName}: relation must have either both "from" and "to" defined, or none of them`);
|
|
578
|
-
const reverseTableConfig = tablesConfig[targetTableName];
|
|
579
|
-
if (!reverseTableConfig) throw new Error(`${relationPrintName}: not enough data provided to build the relation - "from"/"to" are not defined, and no reverse relations of table "${targetTableName}" were found"`);
|
|
580
|
-
if (alias) {
|
|
581
|
-
const reverseRelations = Object.values(reverseTableConfig.relations).filter((it) => is(it, Relation) && it.alias === alias && it !== relation);
|
|
582
|
-
if (reverseRelations.length > 1) throw new Error(`${relationPrintName}: not enough data provided to build the relation - "from"/"to" are not defined, and multiple relations with alias "${alias}" found in table "${targetTableName}": ${reverseRelations.map((it) => `"${it.fieldName}"`).join(", ")}`);
|
|
583
|
-
reverseRelation = reverseRelations[0];
|
|
584
|
-
if (!reverseRelation) throw new Error(`${relationPrintName}: not enough data provided to build the relation - "from"/"to" are not defined, and there is no reverse relation of table "${targetTableName}" with alias "${alias}"`);
|
|
585
|
-
} else {
|
|
586
|
-
const reverseRelations = Object.values(reverseTableConfig.relations).filter((it) => is(it, Relation) && it.targetTable === sourceTable && !it.alias && it !== relation);
|
|
587
|
-
if (reverseRelations.length > 1) throw new Error(`${relationPrintName}: not enough data provided to build the relation - "from"/"to" are not defined, and multiple relations between "${targetTableName}" and "${sourceTableName}" were found.\nHint: you can specify "alias" on both sides of the relation with the same value`);
|
|
588
|
-
reverseRelation = reverseRelations[0];
|
|
589
|
-
if (!reverseRelation) throw new Error(`${relationPrintName}: not enough data provided to build the relation - "from"/"to" are not defined, and no reverse relation of table "${targetTableName}" with target table "${sourceTableName}" was found`);
|
|
590
|
-
}
|
|
591
|
-
if (!reverseRelation.sourceColumns || !reverseRelation.targetColumns) throw new Error(`${relationPrintName}: not enough data provided to build the relation - "from"/"to" are not defined, and reverse relation "${targetTableName}.${reverseRelation.fieldName}" does not have "from"/"to" defined`);
|
|
592
|
-
relation.sourceColumns = reverseRelation.targetColumns;
|
|
593
|
-
relation.targetColumns = reverseRelation.sourceColumns;
|
|
594
|
-
relation.through = reverseRelation.through ? {
|
|
595
|
-
source: reverseRelation.through.target,
|
|
596
|
-
target: reverseRelation.through.source
|
|
597
|
-
} : void 0;
|
|
598
|
-
relation.throughTable = reverseRelation.throughTable;
|
|
599
|
-
relation.isReversed = !where;
|
|
600
|
-
relation.where = where ?? reverseRelation.where;
|
|
601
|
-
}
|
|
602
|
-
return tablesConfig;
|
|
603
|
-
}
|
|
604
|
-
/** Builds relational config for every table in schema */
|
|
605
|
-
function buildRelations(tables, config) {
|
|
606
|
-
const tablesConfig = {};
|
|
607
|
-
for (const [tsName, table] of Object.entries(tables)) tablesConfig[tsName] = {
|
|
608
|
-
table,
|
|
609
|
-
name: tsName,
|
|
610
|
-
relations: config[tsName] ?? {}
|
|
611
|
-
};
|
|
612
|
-
return processRelations(tablesConfig, tables);
|
|
613
|
-
}
|
|
614
|
-
/** Builds relational config only for tables present in relational config */
|
|
615
|
-
function buildRelationsParts(tables, config) {
|
|
616
|
-
const tablesConfig = {};
|
|
617
|
-
for (const [tsName, relations] of Object.entries(config)) {
|
|
618
|
-
if (!relations || !tables[tsName]) continue;
|
|
619
|
-
tablesConfig[tsName] = {
|
|
620
|
-
table: tables[tsName],
|
|
621
|
-
name: tsName,
|
|
622
|
-
relations
|
|
623
|
-
};
|
|
624
|
-
}
|
|
625
|
-
return processRelations(tablesConfig, tables);
|
|
626
|
-
}
|
|
627
|
-
var Relation = class {
|
|
628
|
-
static [entityKind] = "RelationV2";
|
|
629
|
-
fieldName;
|
|
630
|
-
sourceColumns;
|
|
631
|
-
targetColumns;
|
|
632
|
-
alias;
|
|
633
|
-
where;
|
|
634
|
-
sourceTable;
|
|
635
|
-
targetTable;
|
|
636
|
-
through;
|
|
637
|
-
throughTable;
|
|
638
|
-
isReversed;
|
|
639
|
-
/** @internal */
|
|
640
|
-
sourceColumnTableNames = [];
|
|
641
|
-
/** @internal */
|
|
642
|
-
targetColumnTableNames = [];
|
|
643
|
-
constructor(targetTable, targetTableName) {
|
|
644
|
-
this.targetTableName = targetTableName;
|
|
645
|
-
this.targetTable = targetTable;
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
var One = class extends Relation {
|
|
649
|
-
static [entityKind] = "OneV2";
|
|
650
|
-
relationType = "one";
|
|
651
|
-
optional;
|
|
652
|
-
constructor(tables, targetTable, targetTableName, config) {
|
|
653
|
-
super(targetTable, targetTableName);
|
|
654
|
-
this.alias = config?.alias;
|
|
655
|
-
this.where = config?.where;
|
|
656
|
-
if (config?.from) this.sourceColumns = (Array.isArray(config.from) ? config.from : [config.from]).map((it) => {
|
|
657
|
-
this.throughTable ??= it._.through ? tables[it._.through._.tableName] : void 0;
|
|
658
|
-
this.sourceColumnTableNames.push(it._.tableName);
|
|
659
|
-
return it._.column;
|
|
660
|
-
});
|
|
661
|
-
if (config?.to) this.targetColumns = (Array.isArray(config.to) ? config.to : [config.to]).map((it) => {
|
|
662
|
-
this.throughTable ??= it._.through ? tables[it._.through._.tableName] : void 0;
|
|
663
|
-
this.targetColumnTableNames.push(it._.tableName);
|
|
664
|
-
return it._.column;
|
|
665
|
-
});
|
|
666
|
-
if (this.throughTable) this.through = {
|
|
667
|
-
source: (Array.isArray(config?.from) ? config.from : config?.from ? [config.from] : []).map((c) => c._.through),
|
|
668
|
-
target: (Array.isArray(config?.to) ? config.to : config?.to ? [config.to] : []).map((c) => c._.through)
|
|
669
|
-
};
|
|
670
|
-
this.optional = config?.optional ?? true;
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
|
-
var Many = class extends Relation {
|
|
674
|
-
static [entityKind] = "ManyV2";
|
|
675
|
-
relationType = "many";
|
|
676
|
-
constructor(tables, targetTable, targetTableName, config) {
|
|
677
|
-
super(targetTable, targetTableName);
|
|
678
|
-
this.config = config;
|
|
679
|
-
this.alias = config?.alias;
|
|
680
|
-
this.where = config?.where;
|
|
681
|
-
if (config?.from) this.sourceColumns = (Array.isArray(config.from) ? config.from : [config.from]).map((it) => {
|
|
682
|
-
this.throughTable ??= it._.through ? tables[it._.through._.tableName] : void 0;
|
|
683
|
-
this.sourceColumnTableNames.push(it._.tableName);
|
|
684
|
-
return it._.column;
|
|
685
|
-
});
|
|
686
|
-
if (config?.to) this.targetColumns = (Array.isArray(config.to) ? config.to : [config.to]).map((it) => {
|
|
687
|
-
this.throughTable ??= it._.through ? tables[it._.through._.tableName] : void 0;
|
|
688
|
-
this.targetColumnTableNames.push(it._.tableName);
|
|
689
|
-
return it._.column;
|
|
690
|
-
});
|
|
691
|
-
if (this.throughTable) this.through = {
|
|
692
|
-
source: (Array.isArray(config?.from) ? config.from : config?.from ? [config.from] : []).map((c) => c._.through),
|
|
693
|
-
target: (Array.isArray(config?.to) ? config.to : config?.to ? [config.to] : []).map((c) => c._.through)
|
|
694
|
-
};
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
var AggregatedField = class {
|
|
698
|
-
static [entityKind] = "AggregatedField";
|
|
699
|
-
table;
|
|
700
|
-
onTable(table) {
|
|
701
|
-
this.table = table;
|
|
702
|
-
return this;
|
|
703
|
-
}
|
|
704
|
-
};
|
|
705
|
-
var Count = class extends AggregatedField {
|
|
706
|
-
static [entityKind] = "AggregatedFieldCount";
|
|
707
|
-
query;
|
|
708
|
-
getSQL() {
|
|
709
|
-
if (!this.query) {
|
|
710
|
-
if (!this.table) throw new Error("Table must be set before building aggregate field");
|
|
711
|
-
this.query = sql`select count(*) as ${sql.identifier("r")} from ${getTableAsAliasSQL(this.table)}`.mapWith(Number);
|
|
712
|
-
}
|
|
713
|
-
return this.query;
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
|
-
const operators = {
|
|
717
|
-
and,
|
|
718
|
-
between,
|
|
719
|
-
eq,
|
|
720
|
-
exists,
|
|
721
|
-
gt,
|
|
722
|
-
gte,
|
|
723
|
-
ilike,
|
|
724
|
-
inArray,
|
|
725
|
-
arrayContains,
|
|
726
|
-
arrayContained,
|
|
727
|
-
arrayOverlaps,
|
|
728
|
-
isNull,
|
|
729
|
-
isNotNull,
|
|
730
|
-
like,
|
|
731
|
-
lt,
|
|
732
|
-
lte,
|
|
733
|
-
ne,
|
|
734
|
-
not,
|
|
735
|
-
notBetween,
|
|
736
|
-
notExists,
|
|
737
|
-
notLike,
|
|
738
|
-
notIlike,
|
|
739
|
-
notInArray,
|
|
740
|
-
or,
|
|
741
|
-
sql
|
|
742
|
-
};
|
|
743
|
-
const orderByOperators = {
|
|
744
|
-
sql,
|
|
745
|
-
asc,
|
|
746
|
-
desc
|
|
747
|
-
};
|
|
748
|
-
function getOrderByOperators() {
|
|
749
|
-
return orderByOperators;
|
|
750
|
-
}
|
|
751
|
-
function mapRelationalRow(rows, isOne, buildQueryResultSelection, parseJson = false, parseJsonIfString = false, useJsonMappers = true) {
|
|
752
|
-
const maxIdx = isOne ? 1 : rows.length;
|
|
753
|
-
const decoders = buildQueryResultSelection.map(({ field, codec, arrayDimensions }) => {
|
|
754
|
-
let decoder;
|
|
755
|
-
if (is(field, Column)) decoder = field;
|
|
756
|
-
else if (is(field, SQL)) decoder = field.decoder;
|
|
757
|
-
else if (is(field, SQL.Aliased)) decoder = field.sql.decoder;
|
|
758
|
-
else if (is(field, Table) || is(field, View)) decoder = noopDecoder;
|
|
759
|
-
else decoder = field.getSQL().decoder;
|
|
760
|
-
if (useJsonMappers && field.mapFromJsonValue) return (v) => field.mapFromJsonValue(v);
|
|
761
|
-
return decoder.mapFromDriverValue.isNoop ? codec ? (value) => codec(value, arrayDimensions) : void 0 : codec ? (value) => decoder.mapFromDriverValue(codec(value, arrayDimensions)) : (value) => decoder.mapFromDriverValue(value);
|
|
762
|
-
});
|
|
763
|
-
for (let i = 0; i < maxIdx; ++i) {
|
|
764
|
-
const row = isOne ? rows : rows[i];
|
|
765
|
-
for (let selectionItemIdx = 0; selectionItemIdx < buildQueryResultSelection.length; ++selectionItemIdx) {
|
|
766
|
-
const selectionItem = buildQueryResultSelection[selectionItemIdx];
|
|
767
|
-
if (selectionItem.selection) {
|
|
768
|
-
if (row[selectionItem.key] === null) continue;
|
|
769
|
-
if (parseJson) {
|
|
770
|
-
row[selectionItem.key] = JSON.parse(row[selectionItem.key]);
|
|
771
|
-
if (row[selectionItem.key] === null) continue;
|
|
772
|
-
} else if (parseJsonIfString && typeof row[selectionItem.key] === "string") row[selectionItem.key] = JSON.parse(row[selectionItem.key]);
|
|
773
|
-
if (selectionItem.isArray) {
|
|
774
|
-
mapRelationalRow(row[selectionItem.key], false, selectionItem.selection, false, parseJsonIfString);
|
|
775
|
-
continue;
|
|
776
|
-
}
|
|
777
|
-
mapRelationalRow(row[selectionItem.key], true, selectionItem.selection, false, parseJsonIfString);
|
|
778
|
-
continue;
|
|
779
|
-
}
|
|
780
|
-
if (row[selectionItem.key] === null) continue;
|
|
781
|
-
const decoder = decoders[selectionItemIdx];
|
|
782
|
-
if (!decoder) continue;
|
|
783
|
-
row[selectionItem.key] = decoder(row[selectionItem.key]);
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
return rows;
|
|
787
|
-
}
|
|
788
|
-
function mapRelationalRowFromArrays(rows, isOne, buildQueryResultSelection, parseJson = false, parseJsonIfString = false) {
|
|
789
|
-
const maxIdx = isOne ? 1 : rows.length;
|
|
790
|
-
const decoders = buildQueryResultSelection.map(({ field, codec, arrayDimensions }) => {
|
|
791
|
-
let decoder;
|
|
792
|
-
if (is(field, Column)) decoder = field;
|
|
793
|
-
else if (is(field, SQL)) decoder = field.decoder;
|
|
794
|
-
else if (is(field, SQL.Aliased)) decoder = field.sql.decoder;
|
|
795
|
-
else if (is(field, Table) || is(field, View)) decoder = noopDecoder;
|
|
796
|
-
else decoder = field.getSQL().decoder;
|
|
797
|
-
return decoder.mapFromDriverValue.isNoop ? codec ? (value) => codec(value, arrayDimensions) : void 0 : codec ? (value) => decoder.mapFromDriverValue(codec(value, arrayDimensions)) : (value) => decoder.mapFromDriverValue(value);
|
|
798
|
-
});
|
|
799
|
-
const results = Array.from({ length: maxIdx });
|
|
800
|
-
for (let i = 0; i < maxIdx; ++i) {
|
|
801
|
-
const row = isOne ? rows : rows[i];
|
|
802
|
-
const result = {};
|
|
803
|
-
for (let selectionItemIdx = 0; selectionItemIdx < buildQueryResultSelection.length; ++selectionItemIdx) {
|
|
804
|
-
const selectionItem = buildQueryResultSelection[selectionItemIdx];
|
|
805
|
-
let value = row[selectionItemIdx];
|
|
806
|
-
if (selectionItem.selection) {
|
|
807
|
-
if (value === null) {
|
|
808
|
-
result[selectionItem.key] = null;
|
|
809
|
-
continue;
|
|
810
|
-
}
|
|
811
|
-
if (parseJson) {
|
|
812
|
-
value = JSON.parse(value);
|
|
813
|
-
if (value === null) {
|
|
814
|
-
result[selectionItem.key] = null;
|
|
815
|
-
continue;
|
|
816
|
-
}
|
|
817
|
-
} else if (parseJsonIfString && typeof value === "string") value = JSON.parse(value);
|
|
818
|
-
if (selectionItem.isArray) mapRelationalRow(value, false, selectionItem.selection, false, parseJsonIfString);
|
|
819
|
-
else mapRelationalRow(value, true, selectionItem.selection, false, parseJsonIfString);
|
|
820
|
-
result[selectionItem.key] = value;
|
|
821
|
-
continue;
|
|
822
|
-
}
|
|
823
|
-
if (value === null) {
|
|
824
|
-
result[selectionItem.key] = null;
|
|
825
|
-
continue;
|
|
826
|
-
}
|
|
827
|
-
const decoder = decoders[selectionItemIdx];
|
|
828
|
-
result[selectionItem.key] = decoder ? decoder(value) : value;
|
|
829
|
-
}
|
|
830
|
-
results[i] = result;
|
|
831
|
-
}
|
|
832
|
-
return isOne ? results[0] : results;
|
|
833
|
-
}
|
|
834
|
-
function makeDefaultRqbMapper({ selection, isFirst, parseJson, parseJsonIfString, rootJsonMappers, arrayModeRoot }) {
|
|
835
|
-
return ((rows) => {
|
|
836
|
-
if (isFirst && !rows[0]) return rows[0];
|
|
837
|
-
return arrayModeRoot ? mapRelationalRowFromArrays(isFirst ? rows[0] : rows, isFirst, selection, parseJson, parseJsonIfString) : mapRelationalRow(isFirst ? rows[0] : rows, isFirst, selection, parseJson, parseJsonIfString, rootJsonMappers);
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
function makeJitRqbMapperInner(selection, rowExpr, selectionVar, parseJson, parseJsonIfString, useJsonMappers, preFn, counter, accessByIdx) {
|
|
841
|
-
const bodyStmts = [];
|
|
842
|
-
const literalEntries = [];
|
|
843
|
-
let hasWork = false;
|
|
844
|
-
const fieldVars = selection.map(() => `c${counter.n++}`);
|
|
845
|
-
const destructurePieces = selection.map((item, idx) => accessByIdx ? fieldVars[idx] : `${JSON.stringify(item.key)}: ${fieldVars[idx]}`);
|
|
846
|
-
bodyStmts.push(accessByIdx ? `let [ ${destructurePieces.join(", ")} ] = ${rowExpr};` : `let { ${destructurePieces.join(", ")} } = ${rowExpr};`);
|
|
847
|
-
for (const [idx, { field, key, codec, isArray, selection: innerSelection, arrayDimensions }] of selection.entries()) {
|
|
848
|
-
const sel = `${selectionVar}[${idx}]`;
|
|
849
|
-
const keyStr = JSON.stringify(key);
|
|
850
|
-
const slot = fieldVars[idx];
|
|
851
|
-
if (innerSelection) {
|
|
852
|
-
if (parseJson) {
|
|
853
|
-
bodyStmts.push(`if (${slot} !== null) ${slot} = JSON.parse(${slot});`);
|
|
854
|
-
hasWork = true;
|
|
855
|
-
} else if (parseJsonIfString) {
|
|
856
|
-
bodyStmts.push(`if (typeof ${slot} === 'string') ${slot} = JSON.parse(${slot});`);
|
|
857
|
-
hasWork = true;
|
|
858
|
-
}
|
|
859
|
-
const nestedSelVar = `s${counter.n++}`;
|
|
860
|
-
const savedPreFnLen = preFn.length;
|
|
861
|
-
preFn.push(`const { selection: ${nestedSelVar} } = ${sel};`);
|
|
862
|
-
if (isArray) {
|
|
863
|
-
const j = `j${counter.n++}`;
|
|
864
|
-
const inner = makeJitRqbMapperInner(innerSelection, `${slot}[${j}]`, nestedSelVar, false, parseJsonIfString, true, preFn, counter, false);
|
|
865
|
-
if (inner.hasWork) {
|
|
866
|
-
hasWork = true;
|
|
867
|
-
bodyStmts.push(`if (${slot} !== null) {`);
|
|
868
|
-
bodyStmts.push(`\tfor (let ${j} = 0; ${j} < ${slot}.length; ++${j}) {`);
|
|
869
|
-
for (const s of inner.bodyStmts) bodyStmts.push(`\t\t${s}`);
|
|
870
|
-
bodyStmts.push(`\t\t${slot}[${j}] = ${inner.literal};`);
|
|
871
|
-
bodyStmts.push(`\t}`);
|
|
872
|
-
bodyStmts.push(`}`);
|
|
873
|
-
} else preFn.splice(savedPreFnLen, 1);
|
|
874
|
-
} else {
|
|
875
|
-
const inner = makeJitRqbMapperInner(innerSelection, slot, nestedSelVar, false, parseJsonIfString, true, preFn, counter, false);
|
|
876
|
-
if (inner.hasWork) {
|
|
877
|
-
hasWork = true;
|
|
878
|
-
bodyStmts.push(`if (${slot} !== null) {`);
|
|
879
|
-
for (const s of inner.bodyStmts) bodyStmts.push(`\t${s}`);
|
|
880
|
-
bodyStmts.push(`\t${slot} = ${inner.literal};`);
|
|
881
|
-
bodyStmts.push(`}`);
|
|
882
|
-
} else preFn.splice(savedPreFnLen, 1);
|
|
883
|
-
}
|
|
884
|
-
literalEntries.push(`${keyStr}: ${slot}`);
|
|
885
|
-
continue;
|
|
886
|
-
}
|
|
887
|
-
let decoderExpr = "";
|
|
888
|
-
let destructure = "";
|
|
889
|
-
let bypassCodecs = false;
|
|
890
|
-
if (is(field, Column)) {
|
|
891
|
-
if (useJsonMappers && field.mapFromJsonValue) {
|
|
892
|
-
bypassCodecs = true;
|
|
893
|
-
const id = counter.n++;
|
|
894
|
-
destructure = `field: dec${id}`;
|
|
895
|
-
decoderExpr = `dec${id}.mapFromJsonValue`;
|
|
896
|
-
} else if (!field.mapFromDriverValue.isNoop) {
|
|
897
|
-
const id = counter.n++;
|
|
898
|
-
destructure = `field: dec${id}`;
|
|
899
|
-
decoderExpr = `dec${id}.mapFromDriverValue`;
|
|
900
|
-
}
|
|
901
|
-
} else if (is(field, SQL)) {
|
|
902
|
-
if (useJsonMappers && field.decoder.mapFromJsonValue) {
|
|
903
|
-
bypassCodecs = true;
|
|
904
|
-
const id = counter.n++;
|
|
905
|
-
destructure = `field: { decoder: dec${id} }`;
|
|
906
|
-
decoderExpr = `dec${id}.mapFromJsonValue`;
|
|
907
|
-
} else if (!field.decoder.mapFromDriverValue.isNoop) {
|
|
908
|
-
const id = counter.n++;
|
|
909
|
-
destructure = `field: { decoder: dec${id} }`;
|
|
910
|
-
decoderExpr = `dec${id}.mapFromDriverValue`;
|
|
911
|
-
}
|
|
912
|
-
} else if (is(field, SQL.Aliased)) {
|
|
913
|
-
if (useJsonMappers && field.sql.decoder.mapFromJsonValue) {
|
|
914
|
-
bypassCodecs = true;
|
|
915
|
-
const id = counter.n++;
|
|
916
|
-
destructure = `field: { sql: { decoder: dec${id} } }`;
|
|
917
|
-
decoderExpr = `dec${id}.mapFromJsonValue`;
|
|
918
|
-
} else if (!field.sql.decoder.mapFromDriverValue.isNoop) {
|
|
919
|
-
const id = counter.n++;
|
|
920
|
-
destructure = `field: { sql: { decoder: dec${id} } }`;
|
|
921
|
-
decoderExpr = `dec${id}.mapFromDriverValue`;
|
|
922
|
-
}
|
|
923
|
-
} else if (is(field, Table) || is(field, View)) ; else {
|
|
924
|
-
const sqlExpr = field.getSQL();
|
|
925
|
-
if (useJsonMappers && sqlExpr.decoder.mapFromJsonValue) {
|
|
926
|
-
bypassCodecs = true;
|
|
927
|
-
const id = counter.n++;
|
|
928
|
-
preFn.push(`const dec${id} = ${sel}.field.getSQL().decoder;`);
|
|
929
|
-
decoderExpr = `dec${id}.mapFromJsonValue`;
|
|
930
|
-
} else if (!sqlExpr.decoder.mapFromDriverValue.isNoop) {
|
|
931
|
-
const id = counter.n++;
|
|
932
|
-
preFn.push(`const dec${id} = ${sel}.field.getSQL().decoder;`);
|
|
933
|
-
decoderExpr = `dec${id}.mapFromDriverValue`;
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
let codecVar = "";
|
|
937
|
-
if (!bypassCodecs && codec) codecVar = `codec${counter.n++}`;
|
|
938
|
-
if (destructure || codecVar) {
|
|
939
|
-
const parts = [];
|
|
940
|
-
if (destructure) parts.push(destructure);
|
|
941
|
-
if (codecVar) parts.push(`codec: ${codecVar}`);
|
|
942
|
-
preFn.push(`const { ${parts.join(", ")} } = ${sel};`);
|
|
943
|
-
}
|
|
944
|
-
if (decoderExpr || codecVar) {
|
|
945
|
-
hasWork = true;
|
|
946
|
-
let decoded = slot;
|
|
947
|
-
if (codecVar) decoded = `${codecVar}(${decoded}, ${arrayDimensions})`;
|
|
948
|
-
if (decoderExpr) decoded = `${decoderExpr}(${decoded})`;
|
|
949
|
-
literalEntries.push(`${keyStr}: ${slot} === null ? null : ${decoded}`);
|
|
950
|
-
} else literalEntries.push(`${keyStr}: ${slot}`);
|
|
951
|
-
}
|
|
952
|
-
return {
|
|
953
|
-
bodyStmts,
|
|
954
|
-
literal: `{ ${literalEntries.join(", ")} }`,
|
|
955
|
-
hasWork
|
|
956
|
-
};
|
|
957
|
-
}
|
|
958
|
-
function makeJitRqbMapper({ selection, isFirst, parseJson, parseJsonIfString, rootJsonMappers, arrayModeRoot }) {
|
|
959
|
-
const preFn = [];
|
|
960
|
-
const inner = makeJitRqbMapperInner(selection, "row", "selection", parseJson, parseJsonIfString, arrayModeRoot ? false : rootJsonMappers, preFn, { n: 0 }, !!arrayModeRoot);
|
|
961
|
-
const lines = [];
|
|
962
|
-
lines.push(`\t"use strict";
|
|
963
|
-
const { selection } = this;`);
|
|
964
|
-
for (const p of preFn) lines.push(`\t${p}`);
|
|
965
|
-
if (arrayModeRoot) if (isFirst) {
|
|
966
|
-
lines.push(`\tconst row = rows[0];`);
|
|
967
|
-
lines.push(`\tif (!row) return undefined;`);
|
|
968
|
-
for (const s of inner.bodyStmts) lines.push(`\t${s}`);
|
|
969
|
-
lines.push(`\treturn ${inner.literal};`);
|
|
970
|
-
} else {
|
|
971
|
-
lines.push(`\tconst { length } = rows;`);
|
|
972
|
-
lines.push(`\tconst mapped = Array.from({ length });`);
|
|
973
|
-
lines.push(`\tfor (let i = 0; i < length; ++i) {`);
|
|
974
|
-
lines.push(`\t\tconst row = rows[i];`);
|
|
975
|
-
for (const s of inner.bodyStmts) lines.push(`\t\t${s}`);
|
|
976
|
-
lines.push(`\t\tmapped[i] = ${inner.literal};`);
|
|
977
|
-
lines.push(`\t}`);
|
|
978
|
-
lines.push(`\treturn mapped;`);
|
|
979
|
-
}
|
|
980
|
-
else if (!inner.hasWork) lines.push(isFirst ? `\treturn rows[0];` : `\treturn rows;`);
|
|
981
|
-
else if (isFirst) {
|
|
982
|
-
lines.push(`\tconst row = rows[0];`);
|
|
983
|
-
lines.push(`\tif (!row) return undefined;`);
|
|
984
|
-
for (const s of inner.bodyStmts) lines.push(`\t${s}`);
|
|
985
|
-
lines.push(`\trows[0] = ${inner.literal};`);
|
|
986
|
-
lines.push(`\treturn rows[0];`);
|
|
987
|
-
} else {
|
|
988
|
-
lines.push(`\tfor (let i = 0; i < rows.length; ++i) {`);
|
|
989
|
-
lines.push(`\t\tconst row = rows[i];`);
|
|
990
|
-
for (const s of inner.bodyStmts) lines.push(`\t\t${s}`);
|
|
991
|
-
lines.push(`\t\trows[i] = ${inner.literal};`);
|
|
992
|
-
lines.push(`\t}`);
|
|
993
|
-
lines.push(`\treturn rows;`);
|
|
994
|
-
}
|
|
995
|
-
lines.push(" //# sourceURL=drizzle:jit-relational-query-mapper");
|
|
996
|
-
const compiled = lines.join("\n");
|
|
997
|
-
return Object.assign(new FnConstructor("rows", compiled).bind({ selection }), { body: `function jitRqbMapper (rows) {\n${compiled}\n}` });
|
|
998
|
-
}
|
|
999
|
-
var RelationsBuilderTable = class {
|
|
1000
|
-
static [entityKind] = "RelationsBuilderTable";
|
|
1001
|
-
_;
|
|
1002
|
-
constructor(table, name) {
|
|
1003
|
-
this._ = {
|
|
1004
|
-
name,
|
|
1005
|
-
table
|
|
1006
|
-
};
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
|
-
var RelationsBuilderColumn = class {
|
|
1010
|
-
static [entityKind] = "RelationsBuilderColumn";
|
|
1011
|
-
_;
|
|
1012
|
-
constructor(column, tableName, key) {
|
|
1013
|
-
this._ = {
|
|
1014
|
-
tableName,
|
|
1015
|
-
column,
|
|
1016
|
-
key
|
|
1017
|
-
};
|
|
1018
|
-
}
|
|
1019
|
-
through(column) {
|
|
1020
|
-
return new RelationsBuilderJunctionColumn(this._.column, this._.tableName, this._.key, column);
|
|
1021
|
-
}
|
|
1022
|
-
};
|
|
1023
|
-
var RelationsBuilderJunctionColumn = class {
|
|
1024
|
-
static [entityKind] = "RelationsBuilderColumn";
|
|
1025
|
-
_;
|
|
1026
|
-
constructor(column, tableName, key, through) {
|
|
1027
|
-
this._ = {
|
|
1028
|
-
tableName,
|
|
1029
|
-
column,
|
|
1030
|
-
through,
|
|
1031
|
-
key
|
|
1032
|
-
};
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
var RelationsHelperStatic = class {
|
|
1036
|
-
static [entityKind] = "RelationsHelperStatic";
|
|
1037
|
-
_;
|
|
1038
|
-
constructor(tables) {
|
|
1039
|
-
this._ = { tables };
|
|
1040
|
-
const one = {};
|
|
1041
|
-
const many = {};
|
|
1042
|
-
for (const [tableName, table] of Object.entries(tables)) {
|
|
1043
|
-
one[tableName] = (config) => {
|
|
1044
|
-
return new One(tables, table, tableName, config);
|
|
1045
|
-
};
|
|
1046
|
-
many[tableName] = (config) => {
|
|
1047
|
-
return new Many(tables, table, tableName, config);
|
|
1048
|
-
};
|
|
1049
|
-
}
|
|
1050
|
-
this.one = one;
|
|
1051
|
-
this.many = many;
|
|
1052
|
-
}
|
|
1053
|
-
one;
|
|
1054
|
-
many;
|
|
1055
|
-
/** @internal - to be reworked */
|
|
1056
|
-
aggs = { count() {
|
|
1057
|
-
return new Count();
|
|
1058
|
-
} };
|
|
1059
|
-
};
|
|
1060
|
-
function createRelationsHelper(tables) {
|
|
1061
|
-
const helperStatic = new RelationsHelperStatic(tables);
|
|
1062
|
-
const relationsTables = Object.entries(tables).reduce((acc, [tKey, value]) => {
|
|
1063
|
-
const rTable = new RelationsBuilderTable(value, tKey);
|
|
1064
|
-
const columns = Object.entries(value[TableColumns]).reduce((acc, [cKey, column]) => {
|
|
1065
|
-
acc[cKey] = new RelationsBuilderColumn(column, tKey, cKey);
|
|
1066
|
-
return acc;
|
|
1067
|
-
}, {});
|
|
1068
|
-
acc[tKey] = Object.assign(rTable, columns);
|
|
1069
|
-
return acc;
|
|
1070
|
-
}, {});
|
|
1071
|
-
return Object.assign(helperStatic, relationsTables);
|
|
1072
|
-
}
|
|
1073
|
-
function extractTablesFromSchema(schema) {
|
|
1074
|
-
return Object.fromEntries(Object.entries(schema).filter(([_, e]) => is(e, Table) || is(e, View)));
|
|
1075
|
-
}
|
|
1076
|
-
function defineRelations(schema, relations) {
|
|
1077
|
-
const tables = extractTablesFromSchema(schema);
|
|
1078
|
-
return buildRelations(tables, relations ? relations(createRelationsHelper(tables)) : {});
|
|
1079
|
-
}
|
|
1080
|
-
function defineRelationsPart(schema, relations) {
|
|
1081
|
-
const tables = extractTablesFromSchema(schema);
|
|
1082
|
-
return buildRelationsParts(tables, relations ? relations(createRelationsHelper(tables)) : Object.fromEntries(Object.keys(tables).map((k) => [k, {}])));
|
|
1083
|
-
}
|
|
1084
|
-
/** @internal */
|
|
1085
|
-
function fieldSelectionToSQL(table, target) {
|
|
1086
|
-
const field = table[TableColumns][target];
|
|
1087
|
-
return field ? is(field, Column) ? field : is(field, SQL.Aliased) ? sql`${table}.${sql.identifier(field.fieldAlias)}` : sql`${table}.${sql.identifier(target)}` : sql`${table}.${sql.identifier(target)}`;
|
|
1088
|
-
}
|
|
1089
|
-
function relationsFieldFilterToSQL(column, filter) {
|
|
1090
|
-
if (typeof filter !== "object" || is(filter, Placeholder)) return eq(column, filter);
|
|
1091
|
-
const entries = Object.entries(filter);
|
|
1092
|
-
if (!entries.length) return void 0;
|
|
1093
|
-
const parts = [];
|
|
1094
|
-
for (const [target, value] of entries) {
|
|
1095
|
-
if (value === void 0) continue;
|
|
1096
|
-
switch (target) {
|
|
1097
|
-
case "NOT": {
|
|
1098
|
-
const res = relationsFieldFilterToSQL(column, value);
|
|
1099
|
-
if (!res) continue;
|
|
1100
|
-
parts.push(not(res));
|
|
1101
|
-
continue;
|
|
1102
|
-
}
|
|
1103
|
-
case "OR":
|
|
1104
|
-
if (!value.length) continue;
|
|
1105
|
-
parts.push(or(...value.map((subFilter) => relationsFieldFilterToSQL(column, subFilter))));
|
|
1106
|
-
continue;
|
|
1107
|
-
case "AND":
|
|
1108
|
-
if (!value.length) continue;
|
|
1109
|
-
parts.push(and(...value.map((subFilter) => relationsFieldFilterToSQL(column, subFilter))));
|
|
1110
|
-
continue;
|
|
1111
|
-
case "isNotNull":
|
|
1112
|
-
case "isNull":
|
|
1113
|
-
if (!value) continue;
|
|
1114
|
-
parts.push(operators[target](column));
|
|
1115
|
-
continue;
|
|
1116
|
-
case "in":
|
|
1117
|
-
parts.push(operators.inArray(column, value));
|
|
1118
|
-
continue;
|
|
1119
|
-
case "notIn":
|
|
1120
|
-
parts.push(operators.notInArray(column, value));
|
|
1121
|
-
continue;
|
|
1122
|
-
default:
|
|
1123
|
-
parts.push(operators[target](column, value));
|
|
1124
|
-
continue;
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
if (!parts.length) return void 0;
|
|
1128
|
-
return and(...parts);
|
|
1129
|
-
}
|
|
1130
|
-
function relationsFilterToSQL(table, filter, tableRelations = {}, tablesRelations = {}, depth = 0) {
|
|
1131
|
-
const entries = Object.entries(filter);
|
|
1132
|
-
if (!entries.length) return void 0;
|
|
1133
|
-
const parts = [];
|
|
1134
|
-
for (const [target, value] of entries) {
|
|
1135
|
-
if (value === void 0) continue;
|
|
1136
|
-
switch (target) {
|
|
1137
|
-
case "RAW": {
|
|
1138
|
-
const processed = typeof value === "function" ? value(table, operators) : value.getSQL();
|
|
1139
|
-
parts.push(processed);
|
|
1140
|
-
continue;
|
|
1141
|
-
}
|
|
1142
|
-
case "OR":
|
|
1143
|
-
if (!value?.length) continue;
|
|
1144
|
-
parts.push(or(...value.map((subFilter) => relationsFilterToSQL(table, subFilter, tableRelations, tablesRelations, depth))));
|
|
1145
|
-
continue;
|
|
1146
|
-
case "AND":
|
|
1147
|
-
if (!value?.length) continue;
|
|
1148
|
-
parts.push(and(...value.map((subFilter) => relationsFilterToSQL(table, subFilter, tableRelations, tablesRelations, depth))));
|
|
1149
|
-
continue;
|
|
1150
|
-
case "NOT": {
|
|
1151
|
-
if (value === void 0) continue;
|
|
1152
|
-
const built = relationsFilterToSQL(table, value, tableRelations, tablesRelations, depth);
|
|
1153
|
-
if (!built) continue;
|
|
1154
|
-
parts.push(not(built));
|
|
1155
|
-
continue;
|
|
1156
|
-
}
|
|
1157
|
-
default: {
|
|
1158
|
-
if (table[TableColumns][target]) {
|
|
1159
|
-
const colFilter = relationsFieldFilterToSQL(fieldSelectionToSQL(table, target), value);
|
|
1160
|
-
if (colFilter) parts.push(colFilter);
|
|
1161
|
-
continue;
|
|
1162
|
-
}
|
|
1163
|
-
const relation = tableRelations[target];
|
|
1164
|
-
if (!relation) throw new DrizzleError({ message: `Unknown relational filter field: "${target}"` });
|
|
1165
|
-
const targetTable = aliasedTable(relation.targetTable, `f${depth}`);
|
|
1166
|
-
const throughTable = relation.throughTable ? aliasedTable(relation.throughTable, `ft${depth}`) : void 0;
|
|
1167
|
-
const targetConfig = tablesRelations[relation.targetTableName];
|
|
1168
|
-
const { filter: relationFilter, joinCondition } = relationToSQL(relation, table, targetTable, throughTable);
|
|
1169
|
-
const filter = and(relationFilter, typeof value === "boolean" ? void 0 : relationsFilterToSQL(targetTable, value, targetConfig.relations, tablesRelations, depth + 1));
|
|
1170
|
-
const subquery = throughTable ? sql`(select * from ${getTableAsAliasSQL(targetTable)} inner join ${getTableAsAliasSQL(throughTable)} on ${joinCondition}${sql` where ${filter}`.if(filter)} limit 1)` : sql`(select * from ${getTableAsAliasSQL(targetTable)}${sql` where ${filter}`.if(filter)} limit 1)`;
|
|
1171
|
-
if (filter) parts.push((value ? exists : notExists)(subquery));
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
return and(...parts);
|
|
1176
|
-
}
|
|
1177
|
-
function relationsOrderToSQL(table, orders) {
|
|
1178
|
-
if (typeof orders === "function") {
|
|
1179
|
-
const data = orders(table, orderByOperators);
|
|
1180
|
-
return is(data, SQL) ? data : Array.isArray(data) ? data.length ? sql.join(data.map((o) => is(o, SQL) ? o : asc(o)), sql`, `) : void 0 : is(data, Column) ? asc(data) : void 0;
|
|
1181
|
-
}
|
|
1182
|
-
const entries = Object.entries(orders).filter(([_, value]) => value);
|
|
1183
|
-
if (!entries.length) return void 0;
|
|
1184
|
-
return sql.join(entries.map(([target, value]) => (value === "asc" ? asc : desc)(fieldSelectionToSQL(table, target))), sql`, `);
|
|
1185
|
-
}
|
|
1186
|
-
function relationExtrasToSQL(table, extras, codecs, inJson) {
|
|
1187
|
-
const subqueries = [];
|
|
1188
|
-
const selection = [];
|
|
1189
|
-
for (const [key, field] of Object.entries(extras)) {
|
|
1190
|
-
if (!field) continue;
|
|
1191
|
-
const subq = (typeof field === "function" ? field(table, { sql: operators.sql }) : field).getSQL();
|
|
1192
|
-
const column = codecs ? getColumnFromDecoder(subq) : void 0;
|
|
1193
|
-
const query = column && (!inJson || !column.jsonSelectIdentifier) ? sql`${codecs.apply(column, inJson ? "castInJson" : "cast", sql`(${subq})`)} as ${sql.identifier(key)}` : sql`(${subq}) as ${sql.identifier(key)}`;
|
|
1194
|
-
query.decoder = subq.decoder;
|
|
1195
|
-
subqueries.push(query);
|
|
1196
|
-
selection.push(column && (!inJson || !column.mapFromJsonValue) ? {
|
|
1197
|
-
key,
|
|
1198
|
-
field: query,
|
|
1199
|
-
codec: codecs.get(column, inJson ? "normalizeInJson" : "normalize"),
|
|
1200
|
-
arrayDimensions: column.dimensions
|
|
1201
|
-
} : {
|
|
1202
|
-
key,
|
|
1203
|
-
field: query
|
|
1204
|
-
});
|
|
1205
|
-
}
|
|
1206
|
-
return {
|
|
1207
|
-
sql: subqueries.length ? sql.join(subqueries, sql`, `) : void 0,
|
|
1208
|
-
selection
|
|
1209
|
-
};
|
|
1210
|
-
}
|
|
1211
|
-
function relationToSQL(relation, sourceTable, targetTable, throughTable) {
|
|
1212
|
-
if (relation.through) {
|
|
1213
|
-
const outerColumnWhere = relation.sourceColumns.map((s, i) => {
|
|
1214
|
-
const t = relation.through.source[i];
|
|
1215
|
-
return eq(sql`${sourceTable}.${sql.identifier(s.name)}`, sql`${throughTable}.${sql.identifier(is(t._.column, Column) ? t._.column.name : t._.key)}`);
|
|
1216
|
-
});
|
|
1217
|
-
const innerColumnWhere = relation.targetColumns.map((s, i) => {
|
|
1218
|
-
const t = relation.through.target[i];
|
|
1219
|
-
return eq(sql`${throughTable}.${sql.identifier(is(t._.column, Column) ? t._.column.name : t._.key)}`, sql`${targetTable}.${sql.identifier(s.name)}`);
|
|
1220
|
-
});
|
|
1221
|
-
return {
|
|
1222
|
-
filter: and(relation.where ? relationsFilterToSQL(relation.isReversed ? sourceTable : targetTable, relation.where) : void 0, ...outerColumnWhere),
|
|
1223
|
-
joinCondition: and(...innerColumnWhere)
|
|
1224
|
-
};
|
|
1225
|
-
}
|
|
1226
|
-
return { filter: and(...relation.sourceColumns.map((s, i) => {
|
|
1227
|
-
const t = relation.targetColumns[i];
|
|
1228
|
-
return eq(sql`${sourceTable}.${sql.identifier(s.name)}`, sql`${targetTable}.${sql.identifier(t.name)}`);
|
|
1229
|
-
}), relation.where ? relationsFilterToSQL(relation.isReversed ? sourceTable : targetTable, relation.where) : void 0) };
|
|
1230
|
-
}
|
|
1231
|
-
function getTableAsAliasSQL(table) {
|
|
1232
|
-
return sql`${table[IsAlias] ? sql`${sql`${sql.identifier(table[TableSchema] ?? "")}.`.if(table[TableSchema])}${sql.identifier(table[OriginalName])} as ${table}` : table}`;
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
//#region src/query-promise.ts
|
|
1236
|
-
var QueryPromise = class {
|
|
1237
|
-
static [entityKind] = "QueryPromise";
|
|
1238
|
-
[Symbol.toStringTag] = "QueryPromise";
|
|
1239
|
-
catch(onRejected) {
|
|
1240
|
-
return this.then(void 0, onRejected);
|
|
1241
|
-
}
|
|
1242
|
-
finally(onFinally) {
|
|
1243
|
-
return this.then((value) => {
|
|
1244
|
-
onFinally?.();
|
|
1245
|
-
return value;
|
|
1246
|
-
}, (reason) => {
|
|
1247
|
-
onFinally?.();
|
|
1248
|
-
throw reason;
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
then(onFulfilled, onRejected) {
|
|
1252
|
-
return this.execute().then(onFulfilled, onRejected);
|
|
1253
|
-
}
|
|
1254
|
-
};
|
|
1255
|
-
|
|
1256
|
-
export { ilike as $, AggregatedField as A, aliasedTable as B, ColumnAliasProxyHandler as C, DrizzleError as D, aliasedTableColumn as E, arrayContained as F, arrayContains as G, arrayOverlaps as H, between as I, bindIfParam as J, buildRelations as K, buildRelationsParts as L, Many as M, createRelationsHelper as N, One as O, defineRelations as P, QueryPromise as Q, Relation as R, defineRelationsPart as S, TableAliasProxyHandler as T, exists as U, ViewSelectionAliasProxyHandler as V, extractTablesFromSchema as W, fieldSelectionToSQL as X, getOrderByOperators as Y, getOriginalColumnFromAlias as Z, getTableAsAliasSQL as _, and as a, makeDefaultRqbMapper as a0, makeJitRqbMapper as a1, mapColumnsInAliasedSQLToAlias as a2, mapColumnsInSQLToAlias as a3, mapRelationalRow as a4, mapRelationalRowFromArrays as a5, not as a6, notBetween as a7, notExists as a8, notIlike as a9, notLike as aa, operators as ab, orderByOperators as ac, processRelations as ad, relationExtrasToSQL as ae, relationToSQL as af, relationsFilterToSQL as ag, relationsOrderToSQL as ah, notInArray as b, isNull as c, desc as d, eq as e, asc as f, gte as g, gt as h, inArray as i, lt as j, lte as k, like as l, isNotNull as m, ne as n, or as o, ColumnTableAliasProxyHandler as p, Count as q, DrizzleQueryError as r, RelationTableAliasProxyHandler as s, RelationsBuilderColumn as t, RelationsBuilderJunctionColumn as u, RelationsBuilderTable as v, RelationsHelperStatic as w, TransactionRollbackError as x, aliasedColumn as y, aliasedRelation as z };
|
|
1257
|
-
//# sourceMappingURL=query-promise-BkPmGPJy.js.map
|