@prisma/orm-target-postgres 8.0.0-rc.24-dev.27 → 8.0.0-rc.24-dev.29
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/README.md +2 -0
- package/dist/{adapter-BQExUKg6.d.mts → adapter-3sYdoTej.d.mts} +2 -2
- package/dist/{adapter-BQExUKg6.d.mts.map → adapter-3sYdoTej.d.mts.map} +1 -1
- package/dist/{adapter-B2zr93n1-DA67Xn-f.mjs → adapter-VDAs5CMq-OezO60C5.mjs} +6 -6
- package/dist/{adapter-B2zr93n1-DA67Xn-f.mjs.map → adapter-VDAs5CMq-OezO60C5.mjs.map} +1 -1
- package/dist/adapter.d.mts +5 -5
- package/dist/adapter.mjs +5 -5
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.d.mts +3 -3
- package/dist/adapter__control.mjs +4 -4
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.mjs +5 -5
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +2 -2
- package/dist/{authoring-DPwc7x9U-BZkXpPSH.mjs → authoring-4dCWsSXg-DeIEoQWg.mjs} +7 -7
- package/dist/authoring-4dCWsSXg-DeIEoQWg.mjs.map +1 -0
- package/dist/{autoincrement-widths-PwZcc5Co-1O2WEMYq.mjs → autoincrement-widths-BZUr8bLa-Dqtjwcf-.mjs} +3 -3
- package/dist/{autoincrement-widths-PwZcc5Co-1O2WEMYq.mjs.map → autoincrement-widths-BZUr8bLa-Dqtjwcf-.mjs.map} +1 -1
- package/dist/{check-expressions-Ch-A_NJN-BscDa8xT.mjs → check-expressions-cvFP1EFS-CPLt6x-O.mjs} +3 -3
- package/dist/{check-expressions-Ch-A_NJN-BscDa8xT.mjs.map → check-expressions-cvFP1EFS-CPLt6x-O.mjs.map} +1 -1
- package/dist/{codec-registry-B0LsFn7Z-ej9yKwTq.mjs → codec-registry-FvoD6sJj-ClHgHbyf.mjs} +4 -4
- package/dist/{codec-registry-B0LsFn7Z-ej9yKwTq.mjs.map → codec-registry-FvoD6sJj-ClHgHbyf.mjs.map} +1 -1
- package/dist/{codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts → codec-type-map-CE_EveiY-S4IH6WPx.d.mts} +3 -3
- package/dist/{codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts.map → codec-type-map-CE_EveiY-S4IH6WPx.d.mts.map} +1 -1
- package/dist/{codec-types-xyW4TiJD-CRDK7QcS.d.mts → codec-types-B-OBDw_P-CBflZnmD.d.mts} +4 -4
- package/dist/{codec-types-xyW4TiJD-CRDK7QcS.d.mts.map → codec-types-B-OBDw_P-CBflZnmD.d.mts.map} +1 -1
- package/dist/codec-types-V7HlwAkU.d.mts +2 -0
- package/dist/{codecs-Bzj3M0Q3-C2oFSIGs.mjs → codecs-B2C2j2Un-Dc-aGN1s.mjs} +12 -11
- package/dist/codecs-B2C2j2Un-Dc-aGN1s.mjs.map +1 -0
- package/dist/{codecs-BZ74mlUI.d.mts → codecs-B6fSK4Rr.d.mts} +2 -2
- package/dist/{codecs-BZ74mlUI.d.mts.map → codecs-B6fSK4Rr.d.mts.map} +1 -1
- package/dist/{codecs-3AVVZDao-C0sUjmuO.d.mts → codecs-BttOxm7v-Bg7ybHIE.d.mts} +3 -3
- package/dist/{codecs-3AVVZDao-C0sUjmuO.d.mts.map → codecs-BttOxm7v-Bg7ybHIE.d.mts.map} +1 -1
- package/dist/{contract-contributions-Bc0_64Gr-KE0qggZv.mjs → contract-contributions-DG0aJRRu-31YCQkp-.mjs} +54 -39
- package/dist/contract-contributions-DG0aJRRu-31YCQkp-.mjs.map +1 -0
- package/dist/{contract-free-DiRem1nw.mjs → contract-free-dQ4A6kPg.mjs} +3 -3
- package/dist/{contract-free-DiRem1nw.mjs.map → contract-free-dQ4A6kPg.mjs.map} +1 -1
- package/dist/{control-B-0_CuJt.d.mts → control-Bbb6l2oc.d.mts} +3 -3
- package/dist/{control-B-0_CuJt.d.mts.map → control-Bbb6l2oc.d.mts.map} +1 -1
- package/dist/{control-j5GEV5-D.d.mts → control-BhtDvy9Z.d.mts} +2 -2
- package/dist/{control-j5GEV5-D.d.mts.map → control-BhtDvy9Z.d.mts.map} +1 -1
- package/dist/{control-policy-DKnVhEWD-xuJIvCy9.mjs → control-policy-Crcjg7Vz-39_fO8yR.mjs} +11 -11
- package/dist/{control-policy-DKnVhEWD-xuJIvCy9.mjs.map → control-policy-Crcjg7Vz-39_fO8yR.mjs.map} +1 -1
- package/dist/{data-transform-2o0tpMs8-DADYIvEZ.d.mts → data-transform-BZ6kzJY4-DZBRydhx.d.mts} +3 -3
- package/dist/{data-transform-2o0tpMs8-DADYIvEZ.d.mts.map → data-transform-BZ6kzJY4-DZBRydhx.d.mts.map} +1 -1
- package/dist/data-transform-Cg3syfOe.d.mts +1 -0
- package/dist/{data-type-entries-CVxsfjF3-Bd0cSfuG.mjs → data-type-entries-CKHtbfmn-DBNF36FF.mjs} +3 -3
- package/dist/{data-type-entries-CVxsfjF3-Bd0cSfuG.mjs.map → data-type-entries-CKHtbfmn-DBNF36FF.mjs.map} +1 -1
- package/dist/{data-types-DWfwErIu-DF85cgmu.mjs → data-types-DgYRia-g-B_BFlAC3.mjs} +8 -9
- package/dist/data-types-DgYRia-g-B_BFlAC3.mjs.map +1 -0
- package/dist/{date-time-now-generators-BORO1_nc-BdCe3ppq.mjs → date-time-now-generators-DylEKfQR-CYbXE0y0.mjs} +5 -8
- package/dist/date-time-now-generators-DylEKfQR-CYbXE0y0.mjs.map +1 -0
- package/dist/{ddl-DCQLfg18-BgWGYC7L.mjs → ddl-Cy_8QS23-D9EVihrI.mjs} +3 -3
- package/dist/{ddl-DCQLfg18-BgWGYC7L.mjs.map → ddl-Cy_8QS23-D9EVihrI.mjs.map} +1 -1
- package/dist/{descriptor-meta-46EhsECb-C5EGe36u.mjs → descriptor-meta-CakMYWwZ-DSQNCwWB.mjs} +13 -12
- package/dist/descriptor-meta-CakMYWwZ-DSQNCwWB.mjs.map +1 -0
- package/dist/{descriptor-meta-DUDk-DLN-B_WUfFf7.mjs → descriptor-meta-DwXEu6Ap-qDhyaRK4.mjs} +8 -7
- package/dist/descriptor-meta-DwXEu6Ap-qDhyaRK4.mjs.map +1 -0
- package/dist/{diff-database-schema-BJKAfPAG-LCJmdiQq.mjs → diff-database-schema-CVmwyjFf-DSWPpd4M.mjs} +10 -10
- package/dist/{diff-database-schema-BJKAfPAG-LCJmdiQq.mjs.map → diff-database-schema-CVmwyjFf-DSWPpd4M.mjs.map} +1 -1
- package/dist/{diff-database-schema-rhLkiByE.d.mts → diff-database-schema-NiGuGt9b.d.mts} +2 -2
- package/dist/{diff-database-schema-rhLkiByE.d.mts.map → diff-database-schema-NiGuGt9b.d.mts.map} +1 -1
- package/dist/driver.mjs +1 -1
- package/dist/driver__runtime.mjs +1 -1
- package/dist/{errors-C4-Dp3gI-B5jY5eJj.mjs → errors-DxWL0CMX-BQe7Wfvt.mjs} +8 -7
- package/dist/{errors-C4-Dp3gI-B5jY5eJj.mjs.map → errors-DxWL0CMX-BQe7Wfvt.mjs.map} +1 -1
- package/dist/{full-text-oDBhUHI5.mjs → full-text-Bu_qI2ue.mjs} +3 -3
- package/dist/{full-text-oDBhUHI5.mjs.map → full-text-Bu_qI2ue.mjs.map} +1 -1
- package/dist/{full-text-collection-method-CtUV9NT0-CQuFZ4aH.d.mts → full-text-collection-method-Dc6I12lP-BFkF4drB.d.mts} +4 -4
- package/dist/full-text-collection-method-Dc6I12lP-BFkF4drB.d.mts.map +1 -0
- package/dist/{full-text-index-definition-DzRCaPjb-0USKN1ZI.mjs → full-text-index-definition-MMcQF3_0-wRCz2FDP.mjs} +3 -3
- package/dist/{full-text-index-definition-DzRCaPjb-0USKN1ZI.mjs.map → full-text-index-definition-MMcQF3_0-wRCz2FDP.mjs.map} +1 -1
- package/dist/{full-text-DGueFVx9.d.mts → full-text-pZNF76pS.d.mts} +3 -3
- package/dist/{full-text-DGueFVx9.d.mts.map → full-text-pZNF76pS.d.mts.map} +1 -1
- package/dist/{full-text-parsers-BZV74MUg-TfQ8rvPW.mjs → full-text-parsers-m8GS0pst-C6RPRehL.mjs} +4 -4
- package/dist/{full-text-parsers-BZV74MUg-TfQ8rvPW.mjs.map → full-text-parsers-m8GS0pst-C6RPRehL.mjs.map} +1 -1
- package/dist/{full-text-search-document-BqqvjJoC-HaoeMaM5.mjs → full-text-search-document-B5VCeQFz-D4hKtj-M.mjs} +5 -5
- package/dist/{full-text-search-document-BqqvjJoC-HaoeMaM5.mjs.map → full-text-search-document-B5VCeQFz-D4hKtj-M.mjs.map} +1 -1
- package/dist/{index-types-DGrgbAd4-DuGWdvol.mjs → index-types-CiM75RsF-DhmXdi38.mjs} +3 -3
- package/dist/{index-types-DGrgbAd4-DuGWdvol.mjs.map → index-types-CiM75RsF-DhmXdi38.mjs.map} +1 -1
- package/dist/{indexes-ooG0J-V8-CTm1QvmZ.d.mts → indexes-pfYKpulO-BWj-l1W3.d.mts} +8 -4
- package/dist/indexes-pfYKpulO-BWj-l1W3.d.mts.map +1 -0
- package/dist/{infer-psl-contract-DqtogWJ8-CUXUG-wF.mjs → infer-psl-contract-DgQutzGt-C1wN72ZC.mjs} +9 -9
- package/dist/{infer-psl-contract-DqtogWJ8-CUXUG-wF.mjs.map → infer-psl-contract-DgQutzGt-C1wN72ZC.mjs.map} +1 -1
- package/dist/{issue-planner-BlN8mK4E.d.mts → issue-planner-GkMubzHu.d.mts} +7 -6
- package/dist/issue-planner-GkMubzHu.d.mts.map +1 -0
- package/dist/{migration-CovfYOjm.d.mts → migration-BRcETuO-.d.mts} +4 -4
- package/dist/migration-BRcETuO-.d.mts.map +1 -0
- package/dist/migration-Be_iuIpn.mjs.map +1 -1
- package/dist/{native-type-normalizer-PGvExTgu.mjs → native-type-normalizer-DY__fyaa.mjs} +2 -2
- package/dist/{native-type-normalizer-PGvExTgu.mjs.map → native-type-normalizer-DY__fyaa.mjs.map} +1 -1
- package/dist/{op-factory-call-CG80t74g-D9tjd13N.d.mts → op-factory-call-Bz6ft8sk-JjpSUMTb.d.mts} +22 -6
- package/dist/op-factory-call-Bz6ft8sk-JjpSUMTb.d.mts.map +1 -0
- package/dist/op-factory-call-COB28WBr.d.mts +1 -0
- package/dist/{op-factory-call-THEIwT0J-DQM3Y94S.mjs → op-factory-call-DvezqqJx-KBDyNT08.mjs} +239 -182
- package/dist/op-factory-call-DvezqqJx-KBDyNT08.mjs.map +1 -0
- package/dist/operation-types-CaLyyiOR.d.mts +1 -0
- package/dist/{operation-types-Cnw0XvnJ-BZax8w1C.d.mts → operation-types-Da5h_iSt-Dqe_QrW_.d.mts} +3 -3
- package/dist/{operation-types-Cnw0XvnJ-BZax8w1C.d.mts.map → operation-types-Da5h_iSt-Dqe_QrW_.d.mts.map} +1 -1
- package/dist/{pack-ReYuY9t5.d.mts → pack-Cg6Jolu1.d.mts} +5 -6
- package/dist/{pack-ReYuY9t5.d.mts.map → pack-Cg6Jolu1.d.mts.map} +1 -1
- package/dist/{planner-Bw0tlQWK.d.mts → planner-CTwe5ozf.d.mts} +6 -5
- package/dist/{planner-Bw0tlQWK.d.mts.map → planner-CTwe5ozf.d.mts.map} +1 -1
- package/dist/{planner-BHH46ndt-Q6-LPhnL.mjs → planner-D2T46plG-BChGUTOA.mjs} +189 -54
- package/dist/planner-D2T46plG-BChGUTOA.mjs.map +1 -0
- package/dist/{planner-ddl-builders-Ds3Xcsg7-5-bR7xgo.mjs → planner-ddl-builders-Blf3qKKf-BopCSwrT.mjs} +3 -3
- package/dist/{planner-ddl-builders-Ds3Xcsg7-5-bR7xgo.mjs.map → planner-ddl-builders-Blf3qKKf-BopCSwrT.mjs.map} +1 -1
- package/dist/{planner-identity-values-CQZbvcx0-BpAvjtip.mjs → planner-identity-values-CX3J2pLA-CjCpOnue.mjs} +3 -3
- package/dist/{planner-identity-values-CQZbvcx0-BpAvjtip.mjs.map → planner-identity-values-CX3J2pLA-CjCpOnue.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-FtUIqqVg-ouPTcZ8X.mjs → planner-produced-postgres-migration-BLKk9Vaz-CsUhcKp1.mjs} +7 -7
- package/dist/planner-produced-postgres-migration-BLKk9Vaz-CsUhcKp1.mjs.map +1 -0
- package/dist/planner-produced-postgres-migration-CDE9JowN.d.mts +1 -0
- package/dist/{planner-produced-postgres-migration-exqzWlvW-DGLu2dQ7.d.mts → planner-produced-postgres-migration-Jizp3q0s-D_Sq7rld.d.mts} +5 -6
- package/dist/planner-produced-postgres-migration-Jizp3q0s-D_Sq7rld.d.mts.map +1 -0
- package/dist/{planner-sql-checks-BOdYkh9L-hXxekxJX.mjs → planner-sql-checks-CzxowQml-moHPNh20.mjs} +5 -5
- package/dist/{planner-sql-checks-BOdYkh9L-hXxekxJX.mjs.map → planner-sql-checks-CzxowQml-moHPNh20.mjs.map} +1 -1
- package/dist/{planner-target-details-boDXR2s7-CExrk6rf.d.mts → planner-target-details-DywkQKS4-lZEm-EiF.d.mts} +3 -3
- package/dist/planner-target-details-DywkQKS4-lZEm-EiF.d.mts.map +1 -0
- package/dist/{postgres-codec-traits-D9YEvK6F-BsKaAhCA.mjs → postgres-codec-traits-YxSb5di3-9F5ofwnG.mjs} +3 -3
- package/dist/{postgres-codec-traits-D9YEvK6F-BsKaAhCA.mjs.map → postgres-codec-traits-YxSb5di3-9F5ofwnG.mjs.map} +1 -1
- package/dist/{postgres-contract-view-DtsmkyFX-Bas8oQiN.mjs → postgres-contract-view-DhDzWNCN-BA5OpwhY.mjs} +10 -10
- package/dist/postgres-contract-view-DhDzWNCN-BA5OpwhY.mjs.map +1 -0
- package/dist/{postgres-migration-DEkPcs8x-CLxAKfHm.d.mts → postgres-migration-6nN7HQlZ-Ca0thLBy.d.mts} +5 -5
- package/dist/{postgres-migration-DEkPcs8x-CLxAKfHm.d.mts.map → postgres-migration-6nN7HQlZ-Ca0thLBy.d.mts.map} +1 -1
- package/dist/{postgres-migration-D5lRerLT-DyYh8UPS.mjs → postgres-migration-DEa-g6j1-CoG3QOV3.mjs} +18 -16
- package/dist/postgres-migration-DEa-g6j1-CoG3QOV3.mjs.map +1 -0
- package/dist/{postgres-schema-zd_p5Lg2-BdJlG7Cg.mjs → postgres-schema-CIfq1AjC-CGiMjtSX.mjs} +4 -4
- package/dist/{postgres-schema-zd_p5Lg2-BdJlG7Cg.mjs.map → postgres-schema-CIfq1AjC-CGiMjtSX.mjs.map} +1 -1
- package/dist/{prisma7-binding-BGEW0R_9.mjs → prisma7-binding-BRPindAK.mjs} +7 -7
- package/dist/{prisma7-binding-BGEW0R_9.mjs.map → prisma7-binding-BRPindAK.mjs.map} +1 -1
- package/dist/{prisma7-binding-DSQpvEBe.d.mts → prisma7-binding-D9BabHMI.d.mts} +5 -6
- package/dist/{prisma7-binding-DSQpvEBe.d.mts.map → prisma7-binding-D9BabHMI.d.mts.map} +1 -1
- package/dist/{registry-D4AyYsXr-CgiiMuFS.mjs → registry-CWgvB0Fj-Czwmfmzd.mjs} +3 -3
- package/dist/{registry-D4AyYsXr-CgiiMuFS.mjs.map → registry-CWgvB0Fj-Czwmfmzd.mjs.map} +1 -1
- package/dist/{render-ops-B5Mh0MpJ-Dc_dH1Sk.mjs → render-ops-Bl1R5cz0-CFshOROt.mjs} +4 -4
- package/dist/{render-ops-B5Mh0MpJ-Dc_dH1Sk.mjs.map → render-ops-Bl1R5cz0-CFshOROt.mjs.map} +1 -1
- package/dist/{render-ops-CEwI8Iyf.d.mts → render-ops-oYwF1MRN.d.mts} +2 -2
- package/dist/{render-ops-CEwI8Iyf.d.mts.map → render-ops-oYwF1MRN.d.mts.map} +1 -1
- package/dist/{render-typescript-Dqp1Spgn-B4mJhuVr.mjs → render-typescript-B-Igkk6D-CQ-WlBmb.mjs} +9 -24
- package/dist/render-typescript-B-Igkk6D-CQ-WlBmb.mjs.map +1 -0
- package/dist/{render-typescript-BysdXYpH.d.mts → render-typescript-dgxcyEaj.d.mts} +2 -9
- package/dist/render-typescript-dgxcyEaj.d.mts.map +1 -0
- package/dist/{resolve-ddl-schema-BwKuzGm--BVgPhp86.mjs → resolve-ddl-schema-C2KTxEX3-D8Jd9Rx1.mjs} +3 -3
- package/dist/{resolve-ddl-schema-BwKuzGm--BVgPhp86.mjs.map → resolve-ddl-schema-C2KTxEX3-D8Jd9Rx1.mjs.map} +1 -1
- package/dist/{runtime-DPhbi9_3.mjs → runtime-BArZXVRj.mjs} +7 -7
- package/dist/{runtime-DPhbi9_3.mjs.map → runtime-BArZXVRj.mjs.map} +1 -1
- package/dist/{runtime-BMG3ddkQ.d.mts → runtime-DhK5uy8-.d.mts} +2 -2
- package/dist/{runtime-BMG3ddkQ.d.mts.map → runtime-DhK5uy8-.d.mts.map} +1 -1
- package/dist/{runtime-Cnam1N0o.mjs → runtime-IkvlhDl7.mjs} +2 -2
- package/dist/{runtime-Cnam1N0o.mjs.map → runtime-IkvlhDl7.mjs.map} +1 -1
- package/dist/{sql-renderer-Bj41PrUl-Jbs8Ojfr.mjs → sql-renderer-Bj41PrUl-BDN4jKm9.mjs} +3 -3
- package/dist/{sql-renderer-Bj41PrUl-Jbs8Ojfr.mjs.map → sql-renderer-Bj41PrUl-BDN4jKm9.mjs.map} +1 -1
- package/dist/{sql-utils-Bq4nuPvy.d.mts → sql-utils-CHtt-prW.d.mts} +6 -2
- package/dist/{sql-utils-Bq4nuPvy.d.mts.map → sql-utils-CHtt-prW.d.mts.map} +1 -1
- package/dist/{sql-utils-CRPhDLp1-wbgQW5TM.mjs → sql-utils-ClKAaUlZ-BdjnkJvV.mjs} +8 -4
- package/dist/{sql-utils-CRPhDLp1-wbgQW5TM.mjs.map → sql-utils-ClKAaUlZ-BdjnkJvV.mjs.map} +1 -1
- package/dist/target.d.mts +28 -28
- package/dist/target.mjs +35 -35
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +2 -2
- package/dist/target__codecs.mjs +3 -3
- package/dist/target__contract-free.mjs +3 -3
- package/dist/target__control.d.mts +1 -1
- package/dist/target__control.mjs +24 -16
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__data-transform.d.mts +2 -2
- package/dist/target__data-types.mjs +2 -2
- package/dist/target__diff-database-schema.d.mts +1 -1
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__errors.mjs +1 -1
- package/dist/target__full-text-index-authoring.mjs +2 -2
- package/dist/target__full-text.d.mts +3 -3
- package/dist/target__full-text.mjs +2 -2
- package/dist/target__issue-planner.d.mts +1 -1
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.d.mts +3 -3
- package/dist/target__migration.mjs +1 -1
- package/dist/target__native-type-normalizer.mjs +1 -1
- package/dist/target__op-factory-call.d.mts +3 -3
- package/dist/target__op-factory-call.mjs +2 -2
- package/dist/target__operation-types.d.mts +2 -2
- package/dist/target__pack.d.mts +2 -2
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-ddl-builders.mjs +1 -1
- package/dist/target__planner-identity-values.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-sql-checks.mjs +1 -1
- package/dist/target__planner-target-details.d.mts +1 -1
- package/dist/target__planner.d.mts +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.d.mts +1 -1
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__render-ops.d.mts +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__render-typescript.d.mts +1 -1
- package/dist/target__render-typescript.mjs +1 -1
- package/dist/target__runtime.d.mts +2 -2
- package/dist/target__runtime.mjs +4 -4
- package/dist/target__schema-ir-annotations.mjs +1 -1
- package/dist/target__sql-utils.d.mts +2 -2
- package/dist/target__sql-utils.mjs +4 -4
- package/dist/target__types.mjs +2 -2
- package/dist/{types-B_HaL8V4.d.mts → types-BxgDP3d4.d.mts} +1 -1
- package/package.json +12 -12
- package/dist/authoring-DPwc7x9U-BZkXpPSH.mjs.map +0 -1
- package/dist/codec-types-FPJG3oQH.d.mts +0 -2
- package/dist/codecs-Bzj3M0Q3-C2oFSIGs.mjs.map +0 -1
- package/dist/contract-contributions-Bc0_64Gr-KE0qggZv.mjs.map +0 -1
- package/dist/data-transform-DX9I716A.d.mts +0 -1
- package/dist/data-types-DWfwErIu-DF85cgmu.mjs.map +0 -1
- package/dist/date-time-now-generators-BORO1_nc-BdCe3ppq.mjs.map +0 -1
- package/dist/descriptor-meta-46EhsECb-C5EGe36u.mjs.map +0 -1
- package/dist/descriptor-meta-DUDk-DLN-B_WUfFf7.mjs.map +0 -1
- package/dist/full-text-collection-method-CtUV9NT0-CQuFZ4aH.d.mts.map +0 -1
- package/dist/indexes-ooG0J-V8-CTm1QvmZ.d.mts.map +0 -1
- package/dist/issue-planner-BlN8mK4E.d.mts.map +0 -1
- package/dist/migration-CovfYOjm.d.mts.map +0 -1
- package/dist/op-factory-call-CG80t74g-D9tjd13N.d.mts.map +0 -1
- package/dist/op-factory-call-DRapuFEI.d.mts +0 -1
- package/dist/op-factory-call-THEIwT0J-DQM3Y94S.mjs.map +0 -1
- package/dist/operation-types-D1F7DwdI.d.mts +0 -1
- package/dist/planner-BHH46ndt-Q6-LPhnL.mjs.map +0 -1
- package/dist/planner-produced-postgres-migration-CulnCxu2.d.mts +0 -1
- package/dist/planner-produced-postgres-migration-FtUIqqVg-ouPTcZ8X.mjs.map +0 -1
- package/dist/planner-produced-postgres-migration-exqzWlvW-DGLu2dQ7.d.mts.map +0 -1
- package/dist/planner-target-details-boDXR2s7-CExrk6rf.d.mts.map +0 -1
- package/dist/postgres-contract-view-DtsmkyFX-Bas8oQiN.mjs.map +0 -1
- package/dist/postgres-migration-D5lRerLT-DyYh8UPS.mjs.map +0 -1
- package/dist/render-typescript-BysdXYpH.d.mts.map +0 -1
- package/dist/render-typescript-Dqp1Spgn-B4mJhuVr.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-types-DWfwErIu-DF85cgmu.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/data-types-DWfwErIu.mjs"],"sourcesContent":["import { u as postgresError } from \"./errors-C4-Dp3gI.mjs\";\nimport { a as quoteIdentifier } from \"./sql-utils-CRPhDLp1.mjs\";\nimport { INT32_RANGE, INT64_RANGE, asFloat, asNumeralText, assembleDataTypes, castUnchanged, dateTimeStoredText, decimalTextEqualityKey, readJsonBoolean, readJsonFloat, readJsonInteger, readJsonIntegerText, readJsonMatching, readJsonString, refuseJsonValue, refuseWrongShape, storedNumeralText } from \"@internal/framework-components/codec\";\nimport { isStructuredError, structuredError } from \"@internal/utils/structured-error\";\nimport { ISO_DURATION } from \"@internal/type-implementations/duration\";\nimport { counted, withoutTrailing } from \"@internal/utils/text\";\nimport { sqlDataType, sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { type } from \"arktype\";\n//#region src/core/data-type-values.ts\n/**\n* Whether text fits `length` characters, counted as PostgreSQL counts them: code points. A `character` value is padded with spaces, and spaces past its length are dropped, so they do not count.\n*/\nfunction fitsCharacterLength(text, length, blankPadded) {\n\tconst significant = blankPadded ? withoutTrailing(text, \" \") : text;\n\treturn significant.length <= length || [...significant].length <= length;\n}\n/** The uuid input PostgreSQL reads: 32 hex digits in either case, a hyphen allowed after any group of four but the last, and the whole optionally in braces. */\nconst UUID_INPUT = /^(?:\\{[0-9a-f]{4}(?:-?[0-9a-f]{4}){7}\\}|[0-9a-f]{4}(?:-?[0-9a-f]{4}){7})$/i;\n/**\n* Text in any form PostgreSQL reads as a UUID (either case, a hyphen after any group of four digits, optionally in braces), written the way PostgreSQL writes it; `undefined` for text it does not read as one.\n*/\nfunction storedUuid(text) {\n\tif (!UUID_INPUT.test(text)) return void 0;\n\tconst hex = text.replace(/[{}-]/g, \"\").toLowerCase();\n\treturn `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;\n}\n/** The largest finite float4. */\nconst FLOAT4_MAX = 34028234663852886e22;\n/** Whether float4 holds a finite number: it neither overflows to an infinity nor rounds to 0, both of which PostgreSQL refuses. */\nfunction fitsFloat4(value) {\n\tconst single = Math.fround(value);\n\treturn Number.isFinite(single) && (value === 0 || single !== 0);\n}\nconst MICROS_PER_SECOND = 1000000n;\n/**\n* Converts a fractional-seconds digit string to microseconds, rounding rather\n* than truncating past the sixth digit.\n*\n* PostgreSQL rounds: `INTERVAL '1.1234567 seconds'` is `1.123457`, and\n* `'1.9999999 seconds'` carries into `2`. Truncating here made the parsed value\n* disagree with the database for any input past microsecond resolution.\n*\n* Ties round toward positive infinity, matching `Math.round` on the sibling path\n* that reads the driver's component object — so the two agree. PostgreSQL's own\n* tie behaviour is unobservable, because it parses the literal into a double\n* first and an exact half never survives that.\n*/\nconst microsFromFraction = (fraction, negative) => {\n\tif (fraction === \"\") return 0n;\n\tconst kept = BigInt(fraction.slice(0, 6).padEnd(6, \"0\"));\n\tconst rest = fraction.slice(6).replace(/0+$/, \"\");\n\tif (rest === \"\") return kept;\n\tconst half = rest[0] === \"5\" && rest.length === 1;\n\treturn rest > \"5\" || half && !negative ? kept + 1n : kept;\n};\nconst MICROS_PER_DAY = 86400n * MICROS_PER_SECOND;\n/** The key two stored intervals share exactly when PostgreSQL holds them equal: their total length in microseconds, a month counting as 30 days and a day as 24 hours. */\nfunction intervalEqualityKey(json) {\n\tconst { months, days, micros } = intervalFieldsOf(String(json));\n\treturn ((BigInt(months) * 30n + BigInt(days)) * MICROS_PER_DAY + micros).toString();\n}\nconst intervalFieldsOf = (text) => {\n\tconst match = ISO_DURATION.exec(text);\n\tif (match === null) throw postgresError(\"RUNTIME.DECODE_FAILED\", `pg/interval@1 value must be an ISO-8601 duration, got ${text}`, { meta: {\n\t\tcodecId: \"pg/interval@1\",\n\t\treceived: text\n\t} });\n\tconst [, years, months, days, hours, minutes, seconds] = match;\n\tconst wholeNumber = (part) => part === void 0 ? 0 : Number(part.slice(0, -1));\n\tconst secondsLiteral = seconds === void 0 ? \"0\" : seconds.slice(0, -1);\n\tconst negative = secondsLiteral.startsWith(\"-\");\n\tconst [whole = \"0\", fraction = \"\"] = secondsLiteral.replace(\"-\", \"\").split(\".\");\n\tconst magnitude = BigInt(whole) * MICROS_PER_SECOND + microsFromFraction(fraction, negative);\n\treturn {\n\t\tmonths: wholeNumber(years) * 12 + wholeNumber(months),\n\t\tdays: wholeNumber(days),\n\t\tmicros: BigInt(wholeNumber(hours)) * 3600n * MICROS_PER_SECOND + BigInt(wholeNumber(minutes)) * 60n * MICROS_PER_SECOND + (negative ? -magnitude : magnitude)\n\t};\n};\nconst secondsText = (micros) => {\n\tconst sign = micros < 0n ? \"-\" : \"\";\n\tconst magnitude = micros < 0n ? -micros : micros;\n\tconst whole = magnitude / MICROS_PER_SECOND % 60n;\n\tconst fraction = magnitude % MICROS_PER_SECOND;\n\treturn `${sign}${whole}${fraction === 0n ? \"\" : `.${fraction.toString().padStart(6, \"0\").replace(/0+$/, \"\")}`}`;\n};\n/**\n* Renders {@link PgInterval} the way PostgreSQL spells an interval under\n* `IntervalStyle = 'iso_8601'`: zero components omitted, `T` present only when a\n* time component is, each component carrying its own sign, and an all-zero\n* interval written `PT0S`.\n*/\nconst formatIsoDuration = ({ months, days, micros }) => {\n\tconst years = Math.trunc(months / 12);\n\tconst restMonths = months % 12;\n\tconst sign = micros < 0n ? \"-\" : \"\";\n\tconst magnitude = micros < 0n ? -micros : micros;\n\tconst hours = magnitude / (3600n * MICROS_PER_SECOND);\n\tconst minutes = magnitude / (60n * MICROS_PER_SECOND) % 60n;\n\tconst hasSeconds = magnitude % (60n * MICROS_PER_SECOND) !== 0n;\n\tconst parts = [\n\t\tyears === 0 ? \"\" : `${years}Y`,\n\t\trestMonths === 0 ? \"\" : `${restMonths}M`,\n\t\tdays === 0 ? \"\" : `${days}D`\n\t];\n\tconst time = [\n\t\thours === 0n ? \"\" : `${sign}${hours}H`,\n\t\tminutes === 0n ? \"\" : `${sign}${minutes}M`,\n\t\thasSeconds ? `${secondsText(micros)}S` : \"\"\n\t].join(\"\");\n\tconst rendered = `P${parts.join(\"\")}${time === \"\" ? \"\" : `T${time}`}`;\n\treturn rendered === \"P\" ? \"PT0S\" : rendered;\n};\n/**\n* An interval as PostgreSQL prints it under `IntervalStyle = 'postgres'`: `1 year 2 mons 3 days\n* 04:05:06.5`, `-1 years -2 mons +3 days -04:00:00`, `00:00:00`.\n*/\nconst POSTGRES_INTERVAL = /^(?:([+-]?\\d+) years? ?)?(?:([+-]?\\d+) mons? ?)?(?:([+-]?\\d+) days? ?)?(?:([+-])?(\\d+):(\\d{2}):(\\d{2})(?:\\.(\\d+))?)?$/;\nfunction postgresIntervalFields(text) {\n\tconst match = POSTGRES_INTERVAL.exec(text);\n\tif (match === null || text === \"\" || text.endsWith(\" \")) return void 0;\n\tconst [, years = \"0\", months = \"0\", days = \"0\", sign, hours = \"0\", minutes = \"0\", seconds = \"0\"] = match;\n\tconst fraction = match[8] ?? \"\";\n\tconst magnitude = (BigInt(hours) * 3600n + BigInt(minutes) * 60n + BigInt(seconds)) * MICROS_PER_SECOND + microsFromFraction(fraction, sign === \"-\");\n\treturn {\n\t\tmonths: Number(years) * 12 + Number(months),\n\t\tdays: Number(days),\n\t\tmicros: sign === \"-\" ? -magnitude : magnitude\n\t};\n}\nfunction intervalRefused(message) {\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", message, {\n\t\twhy: \"pg/interval stores one form for each interval (ADR 254), and reads ISO 8601 durations and the text PostgreSQL prints.\",\n\t\tfix: \"Write an ISO 8601 duration, as the message shows.\"\n\t});\n}\n/**\n* The stored form of `pg/interval` (ADR 254), from an ISO 8601 duration or the text PostgreSQL\n* prints under `IntervalStyle = 'postgres'`.\n*/\nfunction pgIntervalStoredText(text) {\n\tconst fractionDigits = /\\.(\\d+)/.exec(text)?.[1]?.length ?? 0;\n\tif (fractionDigits > 6) intervalRefused(`\"${text}\" has ${fractionDigits} digits after the decimal point, but pg/interval holds microseconds, so at most 6. Round it, as in \"PT1.123456S\".`);\n\tif (ISO_DURATION.test(text)) return formatIsoDuration(intervalFieldsOf(text));\n\tconst fields = postgresIntervalFields(text);\n\tif (fields === void 0) intervalRefused(`pg/interval cannot read \"${text}\". Write an ISO 8601 duration, as in \"P1Y2M3DT4H5M6S\".`);\n\treturn formatIsoDuration(fields);\n}\nconst BASE64_TEXT = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;\n/** Reads base64 with or without padding bits set; {@link spellPgByteaJson} writes the base64 `pg/bytea` stores. */\nconst readPgByteaJson = (owner, json) => readJsonMatching(owner, json, BASE64_TEXT, \"a base64 string\");\n/** The base64 of the same bytes with padding bits zero, as `Buffer` writes it. */\nconst spellPgByteaJson = (json) => typeof json === \"string\" ? Buffer.from(json, \"base64\").toString(\"base64\") : json;\nconst BYTEA_TEXT = /^\\\\x(?:[0-9A-Fa-f]{2})*$/;\n/** The base64 `pg/bytea` stores for the hex text PostgreSQL prints, `\\x68656c6c6f`. The `bytea` tag reads its body with this. */\nfunction pgByteaFromHexText(text) {\n\tif (!BYTEA_TEXT.test(text)) throw structuredError(\"CONTRACT.CAST_REFUSED\", `\"${text}\" is not the hex text PostgreSQL prints for bytea, which is \\\\x followed by two hexadecimal digits for each byte, as in \\\\x68656c6c6f.`, {\n\t\twhy: \"The bytea tag reads bytes as the hex text PostgreSQL prints under bytea_output = hex.\",\n\t\tfix: \"Write the bytes in hex after \\\\x, as in bytea`\\\\x68656c6c6f`.\"\n\t});\n\treturn Buffer.from(text.slice(2), \"hex\").toString(\"base64\");\n}\n/** The hex text PostgreSQL prints for the base64 `pg/bytea` stores. */\nfunction pgByteaHexText(base64) {\n\treturn `\\\\x${Buffer.from(base64, \"base64\").toString(\"hex\")}`;\n}\n//#endregion\n//#region src/core/postgres-year-text.ts\n/**\n* PostgreSQL's year text (ADR 254, \"Date and time types\"). PostgreSQL reads and prints no signed year: a year after 9999 is written without its sign and leading zeros, `10000-01-01`, and a year at or before ISO year 0000 with a ` BC` suffix and PostgreSQL's year number, which has no year 0, so ISO year 0000 is `0001 BC` and -000043 is `0044 BC`. Every Postgres date and time codec and tag converts years through these two functions.\n*/\nconst POSTGRES_YEAR = /^(\\d{4,6})(-.*?)( BC)?$/;\nconst ISO_YEAR = /^([+-]\\d{6,}|\\d{4})(-.*)$/;\nconst BC_SUFFIX = \" BC\";\n/** ISO 8601 text, with a four-digit or signed six-digit year, from text PostgreSQL prints. Text with no year, ISO text and `0000 BC`, which does not exist, stay as they are. */\nfunction isoYearText(text) {\n\tconst match = POSTGRES_YEAR.exec(text);\n\tif (match === null) return text;\n\tconst [, digits = \"\", rest = \"\", bc] = match;\n\tconst year = Number(digits);\n\tif (bc !== void 0) {\n\t\tif (year === 0) return text;\n\t\treturn `${isoYear(1 - year)}${rest}`;\n\t}\n\treturn digits.length > 4 ? `${isoYear(year)}${rest}` : text;\n}\n/** The text PostgreSQL reads for ISO 8601 text with a four-digit year or a signed year of six or more digits. Text with no year stays as it is. */\nfunction postgresYearText(text) {\n\tconst match = ISO_YEAR.exec(text);\n\tif (match === null) return text;\n\tconst [, yearDigits = \"\", rest = \"\"] = match;\n\tconst year = Number(yearDigits);\n\tif (year > 9999) return `${year}${rest}`;\n\tif (year >= 1) return `${String(year).padStart(4, \"0\")}${rest}`;\n\treturn `${String(1 - year).padStart(4, \"0\")}${rest}${BC_SUFFIX}`;\n}\nfunction isoYear(year) {\n\tif (year >= 0 && year <= 9999) return String(year).padStart(4, \"0\");\n\treturn `${year < 0 ? \"-\" : \"+\"}${String(Math.abs(year)).padStart(6, \"0\")}`;\n}\n//#endregion\n//#region src/core/stored-inet.ts\nconst DIGIT = /^[0-9]$/;\nconst HEX_DIGIT = /^[0-9a-fA-F]$/;\nconst isDigit = (ch) => ch !== void 0 && DIGIT.test(ch);\n/**\n* Text PostgreSQL reads as an `inet` value, written the way PostgreSQL prints it: an IPv4 address in\n* four decimal octets, an IPv6 address in lower-case hex with its longest run of zero groups written\n* `::`, and the prefix length only when it is shorter than the whole address. `undefined` for text\n* PostgreSQL does not read as an `inet` value.\n*/\nfunction storedInet(text) {\n\tif (text.includes(\":\")) {\n\t\tconst value = readIpv6(text);\n\t\treturn value === void 0 ? void 0 : printIpv6(value);\n\t}\n\tconst value = readIpv4(text);\n\treturn value === void 0 ? void 0 : printIpv4(value);\n}\n/**\n* PostgreSQL's `inet_net_pton_ipv4`: one to four decimal octets, each up to 255 and leading zeros\n* allowed, then an optional `/` and prefix length up to 32. Without a prefix length all four octets\n* are required; with one, the octets written must cover it.\n*/\nfunction readIpv4(text) {\n\tconst octets = [];\n\tlet index = 0;\n\tlet ch = text[index++];\n\twhile (isDigit(ch)) {\n\t\tlet octet = 0;\n\t\tdo {\n\t\t\toctet = octet * 10 + Number(ch);\n\t\t\tif (octet > 255) return void 0;\n\t\t\tch = text[index++];\n\t\t} while (isDigit(ch));\n\t\tif (octets.length === 4) return void 0;\n\t\toctets.push(octet);\n\t\tif (ch === void 0 || ch === \"/\") break;\n\t\tif (ch !== \".\") return void 0;\n\t\tch = text[index++];\n\t}\n\tlet bits = -1;\n\tif (ch === \"/\" && isDigit(text[index]) && octets.length > 0) {\n\t\tch = text[index++];\n\t\tbits = 0;\n\t\tdo {\n\t\t\tbits = bits * 10 + Number(ch);\n\t\t\tch = text[index++];\n\t\t} while (isDigit(ch));\n\t\tif (ch !== void 0 || bits > 32) return void 0;\n\t}\n\tif (ch !== void 0) return void 0;\n\tif (bits === -1) {\n\t\tif (octets.length !== 4) return void 0;\n\t\tbits = 32;\n\t}\n\tif (octets.length === 0 || Math.floor(bits / 8) > octets.length) return void 0;\n\treturn {\n\t\tbytes: [\n\t\t\t...octets,\n\t\t\t0,\n\t\t\t0,\n\t\t\t0,\n\t\t\t0\n\t\t].slice(0, 4),\n\t\tbits\n\t};\n}\n/** PostgreSQL's `getbits`: a prefix length up to 128, with no leading zero. */\nfunction readBits(text) {\n\tlet bits = 0;\n\tlet digits = 0;\n\tfor (const ch of text) {\n\t\tif (!isDigit(ch)) return void 0;\n\t\tif (digits++ !== 0 && bits === 0) return void 0;\n\t\tbits = bits * 10 + Number(ch);\n\t\tif (bits > 128) return void 0;\n\t}\n\treturn digits === 0 ? void 0 : bits;\n}\n/**\n* PostgreSQL's `getv4`, for the IPv4 tail of an IPv6 address: up to four decimal octets with no\n* leading zeros, and an optional prefix length. Octets left out are zero.\n*/\nfunction readIpv4Tail(text) {\n\tconst octets = [];\n\tlet octet = 0;\n\tlet digits = 0;\n\tfor (const [index, ch] of [...text].entries()) {\n\t\tif (isDigit(ch)) {\n\t\t\tif (digits++ !== 0 && octet === 0) return void 0;\n\t\t\toctet = octet * 10 + Number(ch);\n\t\t\tif (octet > 255) return void 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (ch !== \".\" && ch !== \"/\") return void 0;\n\t\tif (octets.length > 3) return void 0;\n\t\toctets.push(octet);\n\t\tif (ch === \"/\") {\n\t\t\tconst bits = readBits(text.slice(index + 1));\n\t\t\treturn bits === void 0 ? void 0 : {\n\t\t\t\toctets,\n\t\t\t\tbits\n\t\t\t};\n\t\t}\n\t\toctet = 0;\n\t\tdigits = 0;\n\t}\n\tif (digits === 0 || octets.length > 3) return void 0;\n\treturn {\n\t\toctets: [...octets, octet],\n\t\tbits: void 0\n\t};\n}\n/**\n* PostgreSQL's `inet_cidr_pton_ipv6`: up to eight groups of one to four hex digits in either case,\n* one `::` standing for a run of zero groups, an optional IPv4 tail, and an optional prefix length.\n*/\nfunction readIpv6(text) {\n\tconst bytes = new Array(16).fill(0);\n\tlet filled = 0;\n\tlet compressedAt;\n\tlet index = 0;\n\tif (text[0] === \":\") {\n\t\tif (text[1] !== \":\") return void 0;\n\t\tindex = 1;\n\t}\n\tlet tokenStart = index;\n\tlet sawHexDigit = false;\n\tlet group = 0;\n\tlet groupDigits = 0;\n\tlet bits = 128;\n\twhile (index < text.length) {\n\t\tconst ch = text[index++] ?? \"\";\n\t\tif (HEX_DIGIT.test(ch)) {\n\t\t\tgroup = group << 4 | Number.parseInt(ch, 16);\n\t\t\tif (++groupDigits > 4) return void 0;\n\t\t\tsawHexDigit = true;\n\t\t\tcontinue;\n\t\t}\n\t\tif (ch === \":\") {\n\t\t\ttokenStart = index;\n\t\t\tif (!sawHexDigit) {\n\t\t\t\tif (compressedAt !== void 0) return void 0;\n\t\t\t\tcompressedAt = filled;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (index >= text.length || filled + 2 > 16) return void 0;\n\t\t\tbytes[filled++] = group >> 8;\n\t\t\tbytes[filled++] = group & 255;\n\t\t\tsawHexDigit = false;\n\t\t\tgroup = 0;\n\t\t\tgroupDigits = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (ch === \".\" && filled + 4 <= 16) {\n\t\t\tconst tail = readIpv4Tail(text.slice(tokenStart));\n\t\t\tif (tail !== void 0) {\n\t\t\t\ttail.octets.forEach((octet, offset) => {\n\t\t\t\t\tbytes[filled + offset] = octet;\n\t\t\t\t});\n\t\t\t\tfilled += 4;\n\t\t\t\tsawHexDigit = false;\n\t\t\t\tbits = tail.bits ?? bits;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (ch === \"/\") {\n\t\t\tconst prefix = readBits(text.slice(index));\n\t\t\tif (prefix !== void 0) {\n\t\t\t\tbits = prefix;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}\n\tif (sawHexDigit) {\n\t\tif (filled + 2 > 16) return void 0;\n\t\tbytes[filled++] = group >> 8;\n\t\tbytes[filled++] = group & 255;\n\t}\n\tif (compressedAt !== void 0) {\n\t\tif (filled === 16) return void 0;\n\t\tconst shifted = bytes.slice(compressedAt, filled);\n\t\tbytes.fill(0, compressedAt, filled);\n\t\tbytes.splice(16 - shifted.length, shifted.length, ...shifted);\n\t\tfilled = 16;\n\t}\n\treturn filled === 16 ? {\n\t\tbytes,\n\t\tbits\n\t} : void 0;\n}\nfunction printIpv4({ bytes, bits }) {\n\tconst address = bytes.join(\".\");\n\treturn bits === 32 ? address : `${address}/${bits}`;\n}\n/**\n* PostgreSQL's `inet_net_ntop_ipv6`: the first longest run of two or more zero groups is written\n* `::`, and an address whose first five groups are zero followed by `ffff`, or whose first six are\n* zero, ends in dotted IPv4.\n*/\nfunction printIpv6({ bytes, bits }) {\n\tconst groups = Array.from({ length: 8 }, (_, i) => (bytes[2 * i] ?? 0) << 8 | (bytes[2 * i + 1] ?? 0));\n\tconst zeroRun = longestZeroRun(groups);\n\tlet text = \"\";\n\tfor (let i = 0; i < 8; i++) {\n\t\tif (zeroRun !== void 0 && i >= zeroRun.start && i < zeroRun.start + zeroRun.length) {\n\t\t\tif (i === zeroRun.start) text += \":\";\n\t\t\tcontinue;\n\t\t}\n\t\tif (i !== 0) text += \":\";\n\t\tif (i === 6 && zeroRun?.start === 0 && (zeroRun.length === 6 || zeroRun.length === 5 && groups[5] === 65535)) {\n\t\t\ttext += bytes.slice(12).join(\".\");\n\t\t\tbreak;\n\t\t}\n\t\ttext += (groups[i] ?? 0).toString(16);\n\t}\n\tif (zeroRun !== void 0 && zeroRun.start + zeroRun.length === 8) text += \":\";\n\treturn bits === 128 ? text : `${text}/${bits}`;\n}\nfunction longestZeroRun(groups) {\n\tlet best;\n\tlet current;\n\tfor (const [i, group] of groups.entries()) {\n\t\tif (group === 0) {\n\t\t\tcurrent = current === void 0 ? {\n\t\t\t\tstart: i,\n\t\t\t\tlength: 1\n\t\t\t} : {\n\t\t\t\t...current,\n\t\t\t\tlength: current.length + 1\n\t\t\t};\n\t\t\tcontinue;\n\t\t}\n\t\tif (current !== void 0 && (best === void 0 || current.length > best.length)) best = current;\n\t\tcurrent = void 0;\n\t}\n\tif (current !== void 0 && (best === void 0 || current.length > best.length)) best = current;\n\treturn best !== void 0 && best.length >= 2 ? best : void 0;\n}\n//#endregion\n//#region src/core/data-types.ts\nconst written = (text) => ({\n\ttext,\n\twritten: true\n});\nconst catalog = (text) => ({\n\ttext,\n\tcatalog: true\n});\nconst writtenAndCatalog = (text) => ({\n\ttext,\n\twritten: true,\n\tcatalog: true\n});\nconst claimsOnly = (text) => ({ text });\nconst anyJson = (json) => json;\nconst readString = (id) => (json) => readJsonString(id, json);\n/** A parameter a type declares as a whole number, or undefined when the column does not set it. */\nfunction integerParam(params, name) {\n\tconst value = params[name];\n\treturn typeof value === \"number\" ? value : void 0;\n}\n/** A decimal numeral: an optional minus sign, digits, and an optional fraction. */\nconst DECIMAL_NUMERAL_TEXT = /^-?\\d+(?:\\.\\d+)?$/;\n/**\n* Numeric text in the form PostgreSQL *prints*, which is narrower than the form it accepts.\n*\n* `numeric` reads `+123`, `.5`, `1.`, `1e5`, `0x1f`, `1_000`, `007`, `-0` and whitespace-padded input, but prints every one of them in a single normalised form — `123`, `0.5`, `1`, `100000`, `31`, `1000`, `7`, `0`. A value in any other form is one the database never returns: `1e5` reads back as `100000`.\n*\n* `NaN`, `Infinity` and `-Infinity` are genuine `numeric` values, which PostgreSQL emits into JSON as strings.\n*/\nconst STORED_NUMERIC_TEXT = /^(?:(?!-0(?:\\.0+)?$)-?(?:0|[1-9]\\d*)(?:\\.\\d+)?|NaN|-?Infinity)$/;\n/**\n* Whether stored numeric text is a value `numeric(precision, scale)` stores without rounding: a whole number of units of 10^-scale, and at most `precision` digits once counted in those units. A negative scale rounds to tens, hundreds and so on, and a scale above the precision allows only values below 1. NaN fits; an infinity does not.\n*/\nfunction fitsNumeric(text, precision, scale) {\n\tif (text === \"NaN\") return true;\n\tif (text.endsWith(\"Infinity\")) return false;\n\tconst [whole = \"\", fraction = \"\"] = text.replace(/^-/, \"\").split(\".\");\n\tconst significantFraction = withoutTrailing(fraction, \"0\");\n\tconst digits = `${whole}${significantFraction}`.replace(/^0+/, \"\");\n\tif (digits === \"\") return true;\n\tconst shift = scale - significantFraction.length;\n\tif (shift >= 0) return digits.length + shift <= precision;\n\tconst units = withoutTrailing(digits, \"0\");\n\tif (digits.length - units.length < -shift) return false;\n\treturn digits.length + shift <= precision;\n}\nconst readNumeric = (json, params) => {\n\tif (typeof json !== \"string\" || !STORED_NUMERIC_TEXT.test(json)) {\n\t\tconst printed = typeof json === \"string\" && DECIMAL_NUMERAL_TEXT.test(json) ? storedNumeralText(json) : void 0;\n\t\treturn refuseJsonValue(\"pg/numeric\", printed === void 0 ? \"a decimal string\" : `\"${printed}\", as PostgreSQL writes this value`, json);\n\t}\n\tconst precision = integerParam(params, \"precision\");\n\tif (precision === void 0) return json;\n\tconst scale = integerParam(params, \"scale\") ?? 0;\n\tif (!fitsNumeric(json, precision, scale)) return refuseJsonValue(\"pg/numeric\", `a decimal string that numeric(${precision}, ${scale}) stores without rounding`, json);\n\treturn json;\n};\n/** A value of `numeric(precision, scale)` is written as PostgreSQL prints it: with exactly `scale` fraction digits, none for a scale of 0 or below. */\nconst spellNumeric = (json, params) => {\n\tif (integerParam(params, \"precision\") === void 0 || typeof json !== \"string\" || json === \"NaN\") return json;\n\tconst scale = integerParam(params, \"scale\") ?? 0;\n\tconst [whole = \"\", fraction = \"\"] = json.split(\".\");\n\treturn scale <= 0 ? whole : `${whole}.${fraction.slice(0, scale).padEnd(scale, \"0\")}`;\n};\nconst readFloat4 = (json) => {\n\tconst value = readJsonFloat(\"pg/float4\", json);\n\tif (Number.isFinite(value) && !fitsFloat4(value)) return refuseJsonValue(\"pg/float4\", `a number float4 holds, at most ${FLOAT4_MAX} in magnitude and not so small that it becomes 0, or the text NaN, Infinity or -Infinity`, json);\n\treturn json;\n};\n/** A `character` value is spelled without the spaces that pad it to its length, as the application reads it. */\nconst spellCharacter = (json) => typeof json === \"string\" ? withoutTrailing(json, \" \") : json;\n/** A `character` column holds its length in characters, and one with no length is `character(1)`; the spaces that pad a value to its length do not count. */\nconst readCharacter = (json, params) => {\n\tconst length = integerParam(params, \"length\") ?? 1;\n\tif (!fitsCharacterLength(readJsonString(\"pg/char\", json), length, true)) return refuseJsonValue(\"pg/char\", `a string of at most ${counted(length, \"character\")} before any trailing spaces`, json);\n\treturn json;\n};\n/** A `character varying` column with a length holds at most that many characters. */\nconst readCharacterVarying = (json, params) => {\n\tconst length = integerParam(params, \"length\");\n\tconst text = readJsonString(\"pg/varchar\", json);\n\tif (length !== void 0 && !fitsCharacterLength(text, length, false)) return refuseJsonValue(\"pg/varchar\", `a string of at most ${counted(length, \"character\")}`, json);\n\treturn json;\n};\nconst BIT_STRING = /^[01]*$/;\n/** A `bit` column holds exactly its length in bits, and one with no length is `bit(1)`. */\nconst readBit = (json, params) => {\n\tconst length = integerParam(params, \"length\") ?? 1;\n\tif (readJsonMatching(\"pg/bit\", json, BIT_STRING, \"a string of 0 and 1 digits\").length !== length) return refuseJsonValue(\"pg/bit\", `a string of exactly ${counted(length, \"bit\")}`, json);\n\treturn json;\n};\n/** A `bit varying` column with a length holds at most that many bits. */\nconst readBitVarying = (json, params) => {\n\tconst length = integerParam(params, \"length\");\n\tconst bits = readJsonMatching(\"pg/varbit\", json, BIT_STRING, \"a string of 0 and 1 digits\");\n\tif (length !== void 0 && bits.length > length) return refuseJsonValue(\"pg/varbit\", `a string of at most ${counted(length, \"bit\")}`, json);\n\treturn json;\n};\n/** A `text[]` may hold NULL elements, which PostgreSQL writes as JSON `null`. */\nconst readTextArray = (json) => {\n\tconst expected = \"an array of strings and nulls\";\n\tif (!Array.isArray(json)) return refuseJsonValue(\"pg/text-array\", expected, json);\n\tfor (const entry of json) if (entry !== null && typeof entry !== \"string\") return refuseJsonValue(\"pg/text-array\", expected, entry);\n\treturn json;\n};\n/** Reads a UUID in any spelling PostgreSQL reads; `spellUuid` gives it the one it stores. */\nconst readUuid = (json) => typeof json === \"string\" && storedUuid(json) !== void 0 ? json : refuseJsonValue(\"pg/uuid\", \"a UUID in a spelling PostgreSQL reads: 32 hexadecimal digits in either case, with or without a hyphen after any group of four, optionally in braces\", json);\n/** A UUID is stored as PostgreSQL prints it: lower case, hyphenated 8-4-4-4-12. */\nconst spellUuid = (json) => typeof json === \"string\" ? storedUuid(json) ?? json : json;\n/** Reads an address in any spelling PostgreSQL reads; `spellInet` gives it the one it stores. */\nconst readInet = (json) => typeof json === \"string\" && storedInet(json) !== void 0 ? json : refuseJsonValue(\"pg/inet\", \"an IP address or network in a spelling PostgreSQL reads, as in 10.0.0.1 or 2001:db8::/32\", json);\n/** An address is stored as PostgreSQL prints it. */\nconst spellInet = (json) => typeof json === \"string\" ? storedInet(json) ?? json : json;\n/** The fraction digits of a second the date, time and interval types hold when a column sets no precision: microseconds. */\nconst MICROSECOND_DIGITS = 6;\n/**\n* A value with more fraction digits of a second than the column's `precision`, or than microseconds when it sets none, which PostgreSQL would round, is refused rather than rounded. Trailing zeros of a fraction are not digits of the value.\n*/\nfunction refuseFinerThanPrecision(typeId, json, fraction, params) {\n\tconst precision = integerParam(params, \"precision\") ?? MICROSECOND_DIGITS;\n\tif (withoutTrailing(fraction ?? \"\", \"0\").length <= precision) return json;\n\treturn refuseJsonValue(typeId, `a value with at most ${counted(precision, \"fraction digit\")} of a second, which precision ${precision} holds without rounding`, json);\n}\n/** What `storedText` writes for `text`, or why it cannot read it. */\nfunction storedSpelling(storedText, text) {\n\ttry {\n\t\treturn { stored: storedText(text) };\n\t} catch (error) {\n\t\tif (isStructuredError(error) && error.code === \"CONTRACT.CAST_REFUSED\") return { reason: error.message };\n\t\tthrow error;\n\t}\n}\n/**\n* Reads a value of a date or time type (ADR 254, \"Date and time types\") in any spelling its tag reads, and refuses other text. A value with more fraction digits than the column's precision is refused rather than rounded. `spellStoredDateTime` gives the value its one stored spelling.\n*/\nconst readStoredDateTime = (typeId, storedText, description, fraction) => (json, params) => {\n\tif (typeof json !== \"string\") return refuseJsonValue(typeId, description, json);\n\tconst spelling = storedSpelling(storedText, json);\n\tif (\"reason\" in spelling) return refuseJsonValue(typeId, `${description}: ${spelling.reason}`, json);\n\trefuseFinerThanPrecision(typeId, json, fraction.exec(spelling.stored)?.[1], params);\n\treturn json;\n};\n/** The stored spelling of a date or time value: what `storedText` writes. */\nconst spellStoredDateTime = (storedText) => (json) => {\n\tif (typeof json !== \"string\") return json;\n\tconst spelling = storedSpelling(storedText, json);\n\treturn \"stored\" in spelling ? spelling.stored : json;\n};\nconst SECONDS_FRACTION = /:\\d{2}\\.(\\d+)/;\nconst INTERVAL_SECONDS_FRACTION = /\\d\\.(\\d+)S$/;\n/** The precision and scale of `numeric`. PostgreSQL 15 and later take a negative scale and one above the precision. */\nconst pgNumericParams = type({\n\t\"precision?\": \"number.integer >= 1 & number.integer <= 1000\",\n\t\"scale?\": \"number.integer >= -1000 & number.integer <= 1000\"\n}).narrow((params, ctx) => params.scale === void 0 || params.precision !== void 0 || ctx.reject({\n\tpath: [\"scale\"],\n\tmessage: \"scale requires a precision\"\n}));\n/** The length of `char` and `varchar`. */\nconst pgCharacterLengthParams = type({ \"length?\": \"number.integer >= 1 & number.integer <= 10485760\" });\n/** The length of `bit` and `bit varying`. */\nconst pgBitLengthParams = type({ \"length?\": \"number.integer >= 1 & number.integer <= 83886080\" });\n/** The fractional-second precision of the time, timestamp and interval types. */\nconst pgPrecisionParams = type({ \"precision?\": \"number.integer >= 0 & number.integer <= 6\" });\n/** PostgreSQL stores microseconds whether a precision of 6 is declared or omitted, so an omitted precision is 6. */\nconst withDefaultPrecision = (params) => params.precision === void 0 ? {\n\t...params,\n\tprecision: 6\n} : params;\n/** PostgreSQL's catalog prints a precision only where one was declared. */\nconst precisionAsWritten = (params) => params;\nconst pgEnumParams = type({ typeName: \"string > 0\" });\n/** A type with no parameters that is written and reported by its own name. */\nconst namedOnly = (id, name, read, casts = {}) => sqlDataType(id, {\n\ttexts: [writtenAndCatalog(name)],\n\tread,\n\tcasts\n});\nconst withDefaultLength = (params) => params.length === void 0 ? {\n\t...params,\n\tlength: 1\n} : params;\nconst pgText = namedOnly(\"pg/text\", \"text\", readString(\"pg/text\"));\nconst pgTextArray = sqlDataType(\"pg/text-array\", { read: readTextArray });\n/** The enum's `typeName`: its name in `public` or with no schema, its schema-qualified name elsewhere. */\nfunction qualifiedEnumName(reported) {\n\tconst name = reported.name ?? \"\";\n\treturn reported.schema === void 0 || reported.schema === \"public\" ? name : `${reported.schema}.${name}`;\n}\nconst pgEnum = sqlDataType(\"pg/enum\", {\n\tparams: pgEnumParams,\n\tread: readString(\"pg/enum\"),\n\tclaimsKind: \"enum\",\n\trender: ({ typeName }) => {\n\t\tconst dot = typeName.indexOf(\".\");\n\t\treturn dot === -1 ? quoteIdentifier(typeName) : `${quoteIdentifier(typeName.slice(0, dot))}.${quoteIdentifier(typeName.slice(dot + 1))}`;\n\t},\n\tfromReported: (reported) => ({ typeName: qualifiedEnumName(reported) })\n});\nconst pgInt2 = sqlDataType(\"pg/int2\", {\n\ttexts: [written(\"int2\"), catalog(\"smallint\")],\n\tread: (json) => readJsonInteger(\"pg/int2\", json, {\n\t\tmin: -32768,\n\t\tmax: 32767\n\t})\n});\nconst pgBool = sqlDataType(\"pg/bool\", {\n\ttexts: [written(\"bool\"), catalog(\"boolean\")],\n\tread: (json) => readJsonBoolean(\"pg/bool\", json)\n});\nconst pgJson = namedOnly(\"pg/json\", \"json\", anyJson);\nconst pgTsquery = namedOnly(\"pg/tsquery\", \"tsquery\", readString(\"pg/tsquery\"));\nconst pgInt4 = sqlDataType(\"pg/int4\", {\n\ttexts: [\n\t\twritten(\"int4\"),\n\t\tcatalog(\"integer\"),\n\t\tclaimsOnly(\"int\")\n\t],\n\tread: (json) => readJsonInteger(\"pg/int4\", json, INT32_RANGE),\n\tcasts: { [pgInt2.id]: castUnchanged }\n});\nconst pgInt8 = sqlDataType(\"pg/int8\", {\n\ttexts: [written(\"int8\"), catalog(\"bigint\")],\n\tread: (json) => {\n\t\treadJsonIntegerText(\"pg/int8\", json, INT64_RANGE);\n\t\treturn json;\n\t},\n\tcasts: {\n\t\t[pgInt2.id]: asNumeralText,\n\t\t[pgInt4.id]: asNumeralText\n\t}\n});\nconst pgNumeric = sqlDataType(\"pg/numeric\", {\n\tparams: pgNumericParams,\n\ttexts: [\n\t\twrittenAndCatalog(\"numeric\"),\n\t\twritten(\"numeric({precision})\"),\n\t\twrittenAndCatalog(\"numeric({precision},{scale})\"),\n\t\tclaimsOnly(\"decimal\"),\n\t\tclaimsOnly(\"decimal({precision})\"),\n\t\tclaimsOnly(\"decimal({precision},{scale})\")\n\t],\n\tread: readNumeric,\n\tspell: spellNumeric,\n\tequalityKey: decimalTextEqualityKey,\n\tnormalize: (params) => params.precision !== void 0 && params.scale === void 0 ? {\n\t\t...params,\n\t\tscale: 0\n\t} : params,\n\tcasts: {\n\t\t[pgInt2.id]: asNumeralText,\n\t\t[pgInt4.id]: asNumeralText,\n\t\t[pgInt8.id]: castUnchanged\n\t}\n});\n/** `float4` stores a single-precision float, so a magnitude past about 3.4e38, or one it would round to 0, does not fit. */\nconst asFloat4 = (value) => {\n\tconst converted = asFloat(value);\n\tif (typeof converted !== \"number\" || fitsFloat4(converted)) return converted;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${converted} is out of range: float4 holds a nonzero magnitude from about 1.4e-45 to 3.4e38.`, {\n\t\twhy: \"float4 stores a single-precision float, which overflows past about 3.4e38 and rounds a magnitude below about 1.4e-45 to 0.\",\n\t\tfix: \"Use a number float4 holds, or a float8 or numeric column.\"\n\t});\n};\nconst floatCastsOf = (cast) => ({\n\t[pgInt2.id]: cast,\n\t[pgInt4.id]: cast,\n\t[pgInt8.id]: cast,\n\t[pgNumeric.id]: cast\n});\nconst pgFloat4 = sqlDataType(\"pg/float4\", {\n\ttexts: [written(\"float4\"), catalog(\"real\")],\n\tread: readFloat4,\n\tcasts: floatCastsOf(asFloat4)\n});\nconst pgFloat8 = sqlDataType(\"pg/float8\", {\n\ttexts: [\n\t\twritten(\"float8\"),\n\t\tcatalog(\"double precision\"),\n\t\tclaimsOnly(\"float\")\n\t],\n\tread: (json) => {\n\t\treadJsonFloat(\"pg/float8\", json);\n\t\treturn json;\n\t},\n\tcasts: floatCastsOf(asFloat)\n});\nconst pgJsonb = namedOnly(\"pg/jsonb\", \"jsonb\", anyJson, { [pgJson.id]: castUnchanged });\n/** Why no enum can use a codec of `pg/jsonb`, which every such codec gives as its `enumRefusal`. */\nconst pgJsonbEnumRefusal = \"A CHECK lists a string member as SQL text, which PostgreSQL reads as the JSON text of a document rather than as a string, and a number member as a number, which PostgreSQL cannot compare with jsonb, so no CHECK can compare a value with the members. No enum can use a jsonb codec; use a text enum instead.\";\nconst fromText = { [pgText.id]: castUnchanged };\nconst pgChar = sqlDataType(\"pg/char\", {\n\tparams: pgCharacterLengthParams,\n\ttexts: [\n\t\twritten(\"character\"),\n\t\twrittenAndCatalog(\"character({length})\"),\n\t\tclaimsOnly(\"char\"),\n\t\tclaimsOnly(\"char({length})\")\n\t],\n\tread: readCharacter,\n\tspell: spellCharacter,\n\tnormalize: withDefaultLength,\n\tcasts: fromText\n});\nconst pgVarchar = sqlDataType(\"pg/varchar\", {\n\tparams: pgCharacterLengthParams,\n\ttexts: [\n\t\twrittenAndCatalog(\"character varying\"),\n\t\twrittenAndCatalog(\"character varying({length})\"),\n\t\tclaimsOnly(\"varchar\"),\n\t\tclaimsOnly(\"varchar({length})\")\n\t],\n\tread: readCharacterVarying,\n\tcasts: fromText\n});\n/** Text in any form PostgreSQL reads as a UUID, written the way PostgreSQL writes it, so the contract holds the value the database reports. */\nconst asUuid = (value) => {\n\tif (typeof value !== \"string\") return refuseWrongShape(value, \"text\");\n\tconst uuid = storedUuid(value);\n\tif (uuid !== void 0) return uuid;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${JSON.stringify(value)} is not a UUID: PostgreSQL reads 32 hexadecimal digits, with a hyphen after any group of four and optionally in braces.`, {\n\t\twhy: \"A uuid column takes only text PostgreSQL reads as a UUID.\",\n\t\tfix: \"Write a UUID such as a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11.\"\n\t});\n};\nconst pgUuid = sqlDataType(\"pg/uuid\", {\n\ttexts: [writtenAndCatalog(\"uuid\")],\n\tread: readUuid,\n\tspell: spellUuid,\n\tcasts: { [pgText.id]: asUuid }\n});\nconst pgBit = sqlDataType(\"pg/bit\", {\n\tparams: pgBitLengthParams,\n\ttexts: [written(\"bit\"), writtenAndCatalog(\"bit({length})\")],\n\tread: readBit,\n\tnormalize: withDefaultLength,\n\tcasts: fromText\n});\nconst pgVarbit = sqlDataType(\"pg/varbit\", {\n\tparams: pgBitLengthParams,\n\ttexts: [\n\t\twrittenAndCatalog(\"bit varying\"),\n\t\twrittenAndCatalog(\"bit varying({length})\"),\n\t\tclaimsOnly(\"varbit\"),\n\t\tclaimsOnly(\"varbit({length})\")\n\t],\n\tread: readBitVarying,\n\tcasts: fromText\n});\nconst pgXml = namedOnly(\"pg/xml\", \"xml\", readString(\"pg/xml\"), fromText);\nconst OID_RANGE = {\n\tmin: 0,\n\tmax: 4294967295\n};\n/** Whether a number is one `oid` stores: a whole number from 0 to 4294967295. */\nfunction isPgOid(value) {\n\treturn Number.isInteger(value) && value >= OID_RANGE.min && value <= OID_RANGE.max;\n}\n/** An integer as `oid` stores it: an unsigned 32-bit number, refused outside that range. */\nconst asOid = (value) => {\n\tif (typeof value !== \"number\" && typeof value !== \"string\") return refuseWrongShape(value, \"a number or digit text\");\n\tconst converted = Number(value);\n\tif (isPgOid(converted)) return converted;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${value} is out of range: oid holds a whole number from ${OID_RANGE.min} to ${OID_RANGE.max}.`, {\n\t\twhy: \"oid stores an unsigned 32-bit integer.\",\n\t\tfix: `Use a whole number from ${OID_RANGE.min} to ${OID_RANGE.max}.`\n\t});\n};\nconst pgOid = sqlDataType(\"pg/oid\", {\n\ttexts: [writtenAndCatalog(\"oid\")],\n\tread: (json) => readJsonInteger(\"pg/oid\", json, OID_RANGE),\n\tcasts: {\n\t\t[pgInt2.id]: asOid,\n\t\t[pgInt4.id]: asOid,\n\t\t[pgInt8.id]: asOid\n\t}\n});\n/** `money` holds a signed 64-bit count of cents. */\nconst MONEY_CENTS_RANGE = INT64_RANGE;\nconst MONEY_RANGE_TEXT = \"from -92233720368547758.08 to 92233720368547758.07\";\n/** The cents a decimal numeral holds, or undefined when it has a third significant fraction digit or lies outside `money`'s range. */\nfunction moneyCents(text) {\n\tif (!DECIMAL_NUMERAL_TEXT.test(text)) return void 0;\n\tconst negative = text.startsWith(\"-\");\n\tconst [whole = \"\", fraction = \"\"] = text.replace(/^-/, \"\").split(\".\");\n\tif (withoutTrailing(fraction, \"0\").length > 2) return void 0;\n\tconst magnitude = BigInt(`${whole}${fraction.slice(0, 2).padEnd(2, \"0\")}`);\n\tconst cents = negative ? -magnitude : magnitude;\n\treturn cents >= MONEY_CENTS_RANGE.min && cents <= MONEY_CENTS_RANGE.max ? cents : void 0;\n}\n/** Cents as `money`'s stored form: digit text with exactly two fraction digits. */\nfunction moneyTextOfCents(cents) {\n\tconst digits = (cents < 0n ? -cents : cents).toString().padStart(3, \"0\");\n\treturn `${cents < 0n ? \"-\" : \"\"}${digits.slice(0, -2)}.${digits.slice(-2)}`;\n}\n/** A decimal numeral as `money`'s stored form, or undefined when `money` does not hold it exactly. */\nfunction pgMoneyStoredText(text) {\n\tconst cents = moneyCents(text);\n\treturn cents === void 0 ? void 0 : moneyTextOfCents(cents);\n}\nconst readMoney = (json) => typeof json === \"string\" && moneyCents(json) !== void 0 ? json : refuseJsonValue(\"pg/money\", `a decimal string with at most two fraction digits, ${MONEY_RANGE_TEXT}`, json);\nconst spellMoney = (json) => typeof json === \"string\" ? pgMoneyStoredText(json) ?? json : json;\n/** A number as `money` stores it, refused rather than rounded when it has a third fraction digit, and refused outside `money`'s range. */\nconst asMoney = (value) => {\n\tconst text = typeof value === \"number\" ? asNumeralText(value) : value;\n\tif (typeof text !== \"string\") return refuseWrongShape(value, \"a number or numeral text\");\n\tconst stored = pgMoneyStoredText(text);\n\tif (stored !== void 0) return stored;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${text} is not a money value: money holds a number with at most two fraction digits, ${MONEY_RANGE_TEXT}.`, {\n\t\twhy: \"money stores a whole number of cents, and PostgreSQL rounds a value with a third fraction digit.\",\n\t\tfix: \"Write the amount with at most two fraction digits.\"\n\t});\n};\nconst pgMoney = sqlDataType(\"pg/money\", {\n\ttexts: [writtenAndCatalog(\"money\")],\n\tread: readMoney,\n\tspell: spellMoney,\n\tcasts: {\n\t\t[pgInt2.id]: asMoney,\n\t\t[pgInt4.id]: asMoney,\n\t\t[pgInt8.id]: asMoney,\n\t\t[pgNumeric.id]: asMoney\n\t}\n});\nconst INFINITIES = /* @__PURE__ */ new Set([\"infinity\", \"-infinity\"]);\n/**\n* The stored form of a date or time type (ADR 254), from ISO 8601 or the text PostgreSQL prints.\n* `infinity` and `-infinity` are values of the types that hold them.\n*/\nfunction postgresDateTime(options, holdsInfinity) {\n\treturn (text) => holdsInfinity && INFINITIES.has(text) ? text : dateTimeStoredText(isoYearText(text), options, text);\n}\n/**\n* Each range is what PostgreSQL and every codec of the type hold: PostgreSQL starts at 4714-11-24\n* BC, and the `Temporal` and `Date` codecs end at +275760-09-13.\n*/\nconst pgDateStoredText = postgresDateTime({\n\tshape: \"date\",\n\townerId: \"pg/date\",\n\trange: {\n\t\tearliest: \"-004713-11-24\",\n\t\tlatest: \"+275760-09-13\"\n\t}\n}, true);\nconst pgTimeStoredText = postgresDateTime({\n\tshape: \"time\",\n\townerId: \"pg/time\"\n}, false);\nconst pgTimetzStoredText = postgresDateTime({\n\tshape: \"timeWithOffset\",\n\townerId: \"pg/timetz\",\n\tmaxOffsetHours: 15\n}, false);\nconst pgTimestampStoredText = postgresDateTime({\n\tshape: \"dateTime\",\n\townerId: \"pg/timestamp\",\n\trange: {\n\t\tearliest: \"-004713-11-24T00:00:00\",\n\t\tlatest: \"+275760-09-13T23:59:59.999999\"\n\t}\n}, true);\nconst pgTimestamptzStoredText = postgresDateTime({\n\tshape: \"instant\",\n\townerId: \"pg/timestamptz\",\n\trange: {\n\t\tearliest: \"-004713-11-24T00:00:00Z\",\n\t\tlatest: \"+275760-09-13T00:00:00Z\"\n\t}\n}, true);\n/** A cast that takes text and gives the value `read` makes of it. */\nconst castFromText = (read) => (value) => typeof value === \"string\" ? read(value) : refuseWrongShape(value, \"text\");\nconst pgTimetz = sqlDataType(\"pg/timetz\", {\n\tread: readStoredDateTime(\"pg/timetz\", pgTimetzStoredText, \"a time of day with its UTC offset, as in \\\"12:34:56+02:00\\\" or \\\"12:34:56Z\\\"\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgTimetzStoredText),\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [\n\t\twritten(\"timetz\"),\n\t\twritten(\"timetz({precision})\"),\n\t\tcatalog(\"time with time zone\"),\n\t\tcatalog(\"time({precision}) with time zone\")\n\t]\n});\nconst pgInterval = sqlDataType(\"pg/interval\", {\n\tread: readStoredDateTime(\"pg/interval\", pgIntervalStoredText, \"an ISO 8601 duration, as in \\\"P1Y2M3DT4H5M6.5S\\\"\", INTERVAL_SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgIntervalStoredText),\n\tequalityKey: intervalEqualityKey,\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [writtenAndCatalog(\"interval\"), writtenAndCatalog(\"interval({precision})\")]\n});\nconst pgBytea = sqlDataType(\"pg/bytea\", {\n\tread: (json) => readPgByteaJson(\"pg/bytea\", json),\n\tspell: spellPgByteaJson,\n\ttexts: [writtenAndCatalog(\"bytea\")]\n});\n/** Text PostgreSQL reads as an IP address, written the way PostgreSQL writes it, so the contract holds the value the database reports. */\nfunction pgInetStoredText(text) {\n\tconst inet = storedInet(text);\n\tif (inet !== void 0) return inet;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${JSON.stringify(text)} is not an IP address: PostgreSQL reads an IPv4 address in decimal octets or an IPv6 address in hexadecimal groups, either optionally followed by / and a prefix length.`, {\n\t\twhy: \"An inet column takes only text PostgreSQL reads as an IP address.\",\n\t\tfix: \"Write an address such as 192.168.0.1 or 2001:db8::1/64.\"\n\t});\n}\nconst pgInet = sqlDataType(\"pg/inet\", {\n\tread: readInet,\n\tspell: spellInet,\n\ttexts: [writtenAndCatalog(\"inet\")],\n\tcasts: { [pgText.id]: castFromText(pgInetStoredText) }\n});\nconst pgDate = sqlDataType(\"pg/date\", {\n\tread: readStoredDateTime(\"pg/date\", pgDateStoredText, \"a date, as in \\\"2024-01-01\\\", or infinity or -infinity\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgDateStoredText),\n\ttexts: [writtenAndCatalog(\"date\")]\n});\nconst pgTime = sqlDataType(\"pg/time\", {\n\tread: readStoredDateTime(\"pg/time\", pgTimeStoredText, \"a time of day, as in \\\"12:34:56\\\"\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgTimeStoredText),\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [\n\t\twritten(\"time\"),\n\t\twritten(\"time({precision})\"),\n\t\tcatalog(\"time without time zone\"),\n\t\tcatalog(\"time({precision}) without time zone\")\n\t]\n});\nconst pgTimestamp = sqlDataType(\"pg/timestamp\", {\n\tread: readStoredDateTime(\"pg/timestamp\", pgTimestampStoredText, \"a date and time of day, as in \\\"2024-01-01T12:34:56\\\", or infinity or -infinity\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgTimestampStoredText),\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [\n\t\twritten(\"timestamp\"),\n\t\twritten(\"timestamp({precision})\"),\n\t\tcatalog(\"timestamp without time zone\"),\n\t\tcatalog(\"timestamp({precision}) without time zone\")\n\t]\n});\nconst pgTimestamptz = sqlDataType(\"pg/timestamptz\", {\n\tread: readStoredDateTime(\"pg/timestamptz\", pgTimestamptzStoredText, \"an instant in UTC, as in \\\"2024-01-01T00:00:00Z\\\", or infinity or -infinity\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgTimestamptzStoredText),\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [\n\t\twritten(\"timestamptz\"),\n\t\twritten(\"timestamptz({precision})\"),\n\t\tcatalog(\"timestamp with time zone\"),\n\t\tcatalog(\"timestamp({precision}) with time zone\")\n\t]\n});\n/** Every data type this target registers. */\nconst postgresDataTypes = [\n\tpgText,\n\tpgTextArray,\n\tpgEnum,\n\tpgInt2,\n\tpgBool,\n\tpgJson,\n\tpgTsquery,\n\tpgInt4,\n\tpgInt8,\n\tpgNumeric,\n\tpgFloat4,\n\tpgFloat8,\n\tpgJsonb,\n\tpgChar,\n\tpgVarchar,\n\tpgUuid,\n\tpgInet,\n\tpgBit,\n\tpgVarbit,\n\tpgXml,\n\tpgOid,\n\tpgMoney,\n\tpgTimetz,\n\tpgInterval,\n\tpgBytea,\n\tpgDate,\n\tpgTime,\n\tpgTimestamp,\n\tpgTimestamptz,\n\tsqlRawDataType\n];\n/** A lookup of the data types this target registers. */\nfunction createPostgresBuiltinDataTypeLookup() {\n\treturn assembleDataTypes([{\n\t\tid: \"postgres\",\n\t\tdataTypes: postgresDataTypes\n\t}]).lookup;\n}\n/** Postgres's text data types: `text`, `character(n)` and `character varying(n)`. */\nconst postgresTextDataTypes = [\n\tpgText.id,\n\tpgChar.id,\n\tpgVarchar.id\n];\n//#endregion\nexport { intervalFieldsOf as $, pgText as A, pgTsquery as B, pgJsonbEnumRefusal as C, pgNumericParams as D, pgNumeric as E, pgTimestampStoredText as F, postgresDataTypes as G, pgVarbit as H, pgTimestamptz as I, isoYearText as J, postgresTextDataTypes as K, pgTimestamptzStoredText as L, pgTime as M, pgTimeStoredText as N, pgOid as O, pgTimestamp as P, formatIsoDuration as Q, pgTimetz as R, pgJsonb as S, pgMoneyStoredText as T, pgVarchar as U, pgUuid as V, pgXml as W, BYTEA_TEXT as X, postgresYearText as Y, MICROS_PER_SECOND as Z, pgInt2 as _, pgBitLengthParams as a, pgInterval as b, pgChar as c, pgDateStoredText as d, microsFromFraction as et, pgEnum as f, pgInet as g, pgFloat8 as h, pgBit as i, postgresIntervalFields as it, pgTextArray as j, pgPrecisionParams as k, pgCharacterLengthParams as l, pgFloat4 as m, isPgOid as n, pgByteaHexText as nt, pgBool as o, pgEnumParams as p, qualifiedEnumName as q, moneyTextOfCents as r, pgIntervalStoredText as rt, pgBytea as s, createPostgresBuiltinDataTypeLookup as t, pgByteaFromHexText as tt, pgDate as u, pgInt4 as v, pgMoney as w, pgJson as x, pgInt8 as y, pgTimetzStoredText as z };\n\n//# sourceMappingURL=data-types-DWfwErIu.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,oBAAoB,MAAM,QAAQ,aAAa;CACvD,MAAM,cAAc,cAAc,gBAAgB,MAAM,GAAG,IAAI;CAC/D,OAAO,YAAY,UAAU,UAAU,CAAC,GAAG,WAAW,CAAC,CAAC,UAAU;AACnE;;AAEA,MAAM,aAAa;;;;AAInB,SAAS,WAAW,MAAM;CACzB,IAAI,CAAC,WAAW,KAAK,IAAI,GAAG,OAAO,KAAK;CACxC,MAAM,MAAM,KAAK,QAAQ,UAAU,EAAE,CAAC,CAAC,YAAY;CACnD,OAAO,GAAG,IAAI,MAAM,GAAG,CAAC,EAAE,GAAG,IAAI,MAAM,GAAG,EAAE,EAAE,GAAG,IAAI,MAAM,IAAI,EAAE,EAAE,GAAG,IAAI,MAAM,IAAI,EAAE,EAAE,GAAG,IAAI,MAAM,EAAE;AACxG;;AAEA,MAAM,aAAa;;AAEnB,SAAS,WAAW,OAAO;CAC1B,MAAM,SAAS,KAAK,OAAO,KAAK;CAChC,OAAO,OAAO,SAAS,MAAM,MAAM,UAAU,KAAK,WAAW;AAC9D;AACA,MAAM,oBAAoB;;;;;;;;;;;;;;AAc1B,MAAM,sBAAsB,UAAU,aAAa;CAClD,IAAI,aAAa,IAAI,OAAO;CA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CACA;CACA;AACD;;AAEA,SAAS,sCAAsC;CAC9C,OAAO,kBAAkB,CAAC;EACzB,IAAI;EACJ,WAAW;CACZ,CAAC,CAAC,CAAC,CAAC;AACL;;AAEA,MAAM,wBAAwB;CAC7B,OAAO;CACP,OAAO;CACP,UAAU;AACX"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-time-now-generators-BORO1_nc-BdCe3ppq.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/date-time-now-generators-BORO1_nc.mjs"],"sourcesContent":["import { G as postgresDataTypes } from \"./data-types-DWfwErIu.mjs\";\nimport { W as requireTemporal } from \"./codecs-Bzj3M0Q3.mjs\";\nimport * as nowValues from \"@internal/type-implementations/now\";\nimport { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, fractionDigitsOf } from \"@internal/type-implementations/now\";\nconst postgresTargetDescriptorMetaRuntime = {\n\tkind: \"target\",\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tid: \"postgres\",\n\tversion: \"0.0.1\",\n\tcapabilities: {},\n\tdataTypes: postgresDataTypes,\n\tsessionSettings: {\n\t\tDateStyle: \"ISO\",\n\t\tlc_monetary: \"C\"\n\t}\n};\n//#endregion\n//#region src/core/date-time-now-generators.ts\nconst TIMESTAMP_STRING_NOW_GENERATOR_ID = \"timestampStringNow\";\nconst TIMESTAMPTZ_STRING_NOW_GENERATOR_ID = \"timestamptzStringNow\";\nconst TIMETZ_NOW_GENERATOR_ID = \"timetzNow\";\nconst UTC_OFFSET = \"Z\";\nconst MAX_TIME_PRECISION = 6;\nfunction precisionOf(params) {\n\treturn fractionDigitsOf(params, MAX_TIME_PRECISION);\n}\nfunction instantNow(params) {\n\treturn nowValues.instantNow(requireTemporal({ generatorId: INSTANT_NOW_GENERATOR_ID }), precisionOf(params));\n}\nfunction plainDateTimeNow(params) {\n\treturn nowValues.plainDateTimeNow(requireTemporal({ generatorId: PLAIN_DATE_TIME_NOW_GENERATOR_ID }), precisionOf(params));\n}\nfunction plainDateNow() {\n\treturn nowValues.plainDateNow(requireTemporal({ generatorId: PLAIN_DATE_NOW_GENERATOR_ID }));\n}\nfunction plainTimeNow(params) {\n\treturn nowValues.plainTimeNow(requireTemporal({ generatorId: PLAIN_TIME_NOW_GENERATOR_ID }), precisionOf(params));\n}\nfunction timestampStringNow(params) {\n\treturn nowValues.dateTimeStringNow(precisionOf(params), \"trimmed\");\n}\nfunction timestamptzStringNow(params) {\n\treturn nowValues.instantStringNow(precisionOf(params), \"trimmed\");\n}\nfunction timeStringNow(params) {\n\treturn nowValues.timeStringNow(precisionOf(params), \"trimmed\");\n}\nfunction timetzNow(params) {\n\treturn `${timeStringNow(params)}${UTC_OFFSET}`;\n}\n/**\n* The Postgres \"now\" generators, one per date and time codec except `pg/timestamptz-date@1` and `pg/timestamp-date@1`, which use the SQL family's `timestampNow`. All read the clock through `Date.now()` and write UTC. The time and timestamp generators round down to their `precision` param, so the column stores the value as written. The string generators are named after the codec they serve and write the codec's stored form (ADR 254, \"Date and time types\") in UTC, with milliseconds and no trailing zeros in the fraction.\n*/\nconst postgresNowGenerators = [\n\t{\n\t\tid: INSTANT_NOW_GENERATOR_ID,\n\t\tgenerate: instantNow\n\t},\n\t{\n\t\tid: PLAIN_DATE_TIME_NOW_GENERATOR_ID,\n\t\tgenerate: plainDateTimeNow\n\t},\n\t{\n\t\tid: PLAIN_DATE_NOW_GENERATOR_ID,\n\t\tgenerate: plainDateNow\n\t},\n\t{\n\t\tid: PLAIN_TIME_NOW_GENERATOR_ID,\n\t\tgenerate: plainTimeNow\n\t},\n\t{\n\t\tid: TIMESTAMP_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timestampStringNow\n\t},\n\t{\n\t\tid: TIMESTAMPTZ_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timestamptzStringNow\n\t},\n\t{\n\t\tid: DATE_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: nowValues.dateStringNow\n\t},\n\t{\n\t\tid: TIME_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timeStringNow\n\t},\n\t{\n\t\tid: TIMETZ_NOW_GENERATOR_ID,\n\t\tgenerate: timetzNow\n\t}\n];\nfunction postgresNowGeneratorControlDescriptors() {\n\treturn postgresNowGenerators.map(({ id }) => ({ id }));\n}\n//#endregion\nexport { postgresNowGenerators as a, postgresNowGeneratorControlDescriptors as i, TIMESTAMP_STRING_NOW_GENERATOR_ID as n, postgresTargetDescriptorMetaRuntime as o, TIMETZ_NOW_GENERATOR_ID as r, TIMESTAMPTZ_STRING_NOW_GENERATOR_ID as t };\n\n//# sourceMappingURL=date-time-now-generators-BORO1_nc.mjs.map"],"mappings":";;;;;AAIA,MAAM,sCAAsC;CAC3C,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,CAAC;CACf,WAAW;CACX,iBAAiB;EAChB,WAAW;EACX,aAAa;CACd;AACD;AAGA,MAAM,oCAAoC;AAC1C,MAAM,sCAAsC;AAC5C,MAAM,0BAA0B;AAChC,MAAM,aAAa;AACnB,MAAM,qBAAqB;AAC3B,SAAS,YAAY,QAAQ;CAC5B,OAAO,iBAAiB,QAAQ,kBAAkB;AACnD;AACA,SAAS,WAAW,QAAQ;CAC3B,OAAO,UAAU,WAAW,gBAAgB,EAAE,aAAa,yBAAyB,CAAC,GAAG,YAAY,MAAM,CAAC;AAC5G;AACA,SAAS,iBAAiB,QAAQ;CACjC,OAAO,UAAU,iBAAiB,gBAAgB,EAAE,aAAa,iCAAiC,CAAC,GAAG,YAAY,MAAM,CAAC;AAC1H;AACA,SAAS,eAAe;CACvB,OAAO,UAAU,aAAa,gBAAgB,EAAE,aAAa,4BAA4B,CAAC,CAAC;AAC5F;AACA,SAAS,aAAa,QAAQ;CAC7B,OAAO,UAAU,aAAa,gBAAgB,EAAE,aAAa,4BAA4B,CAAC,GAAG,YAAY,MAAM,CAAC;AACjH;AACA,SAAS,mBAAmB,QAAQ;CACnC,OAAO,UAAU,kBAAkB,YAAY,MAAM,GAAG,SAAS;AAClE;AACA,SAAS,qBAAqB,QAAQ;CACrC,OAAO,UAAU,iBAAiB,YAAY,MAAM,GAAG,SAAS;AACjE;AACA,SAAS,cAAc,QAAQ;CAC9B,OAAO,UAAU,cAAc,YAAY,MAAM,GAAG,SAAS;AAC9D;AACA,SAAS,UAAU,QAAQ;CAC1B,OAAO,GAAG,cAAc,MAAM,IAAI;AACnC;;;;AAIA,MAAM,wBAAwB;CAC7B;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU,UAAU;CACrB;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;AACD;AACA,SAAS,yCAAyC;CACjD,OAAO,sBAAsB,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE;AACtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-meta-46EhsECb-C5EGe36u.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/descriptor-meta-46EhsECb.mjs"],"sourcesContent":["import { A as PG_TIMESTAMP_INSTANT_CODEC_ID, B as PG_VARCHAR_CODEC_ID, D as PG_TIMESTAMPTZ_STRING_CODEC_ID, E as PG_TIMESTAMPTZ_DATE_CODEC_ID, F as PG_TIME_TEMPORAL_CODEC_ID, M as PG_TIMESTAMP_TEMPORAL_CODEC_ID, N as PG_TIMETZ_CODEC_ID, O as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, P as PG_TIME_STRING_CODEC_ID, R as PG_UUID_CODEC_ID, T as PG_TEXT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, i as PG_CHAR_CODEC_ID, j as PG_TIMESTAMP_STRING_CODEC_ID, k as PG_TIMESTAMP_DATE_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID } from \"./codec-ids-2htdtS66.mjs\";\nimport { A as pgText, E as pgNumeric, G as postgresDataTypes, H as pgVarbit, I as pgTimestamptz, K as postgresTextDataTypes, M as pgTime, O as pgOid, P as pgTimestamp, R as pgTimetz, S as pgJsonb, U as pgVarchar, V as pgUuid, W as pgXml, _ as pgInt2, c as pgChar, g as pgInet, h as pgFloat8, i as pgBit, m as pgFloat4, o as pgBool, s as pgBytea, u as pgDate, v as pgInt4, w as pgMoney, x as pgJson, y as pgInt8 } from \"./data-types-DWfwErIu.mjs\";\nimport { t as postgresDataTypeEntries } from \"./data-type-entries-CVxsfjF3.mjs\";\nimport { k as postgresQualifyColumnType } from \"./codecs-Bzj3M0Q3.mjs\";\nimport { t as DEFAULT_NAMESPACE_ID } from \"./namespace-ids-xtp_ZY86.mjs\";\nimport { t as postgresCodecDescriptorRegistry } from \"./registry-D4AyYsXr.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-zd_p5Lg2.mjs\";\nimport { a as postgresAuthoringTypes, c as postgresScalarTypes, i as postgresAuthoringPslBlockDescriptors, n as postgresAuthoringEntityTypes, o as postgresLowerEntityHandles, r as postgresAuthoringModelAttributes } from \"./authoring-DPwc7x9U.mjs\";\nimport { t as postgresRenderCheckExpressions } from \"./check-expressions-Ch-A_NJN.mjs\";\nimport { i as postgresNowGeneratorControlDescriptors, n as TIMESTAMP_STRING_NOW_GENERATOR_ID, o as postgresTargetDescriptorMetaRuntime, r as TIMETZ_NOW_GENERATOR_ID, t as TIMESTAMPTZ_STRING_NOW_GENERATOR_ID } from \"./date-time-now-generators-BORO1_nc.mjs\";\nimport { n as postgresIndexTypes } from \"./index-types-DGrgbAd4.mjs\";\nimport { createDataTypeLookup } from \"@internal/framework-components/codec\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions } from \"@internal/family-sql/pack\";\nimport { TIMESTAMP_NOW_GENERATOR_ID, authoringTypeConstructorArguments } from \"@internal/framework-components/authoring\";\nimport { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID } from \"@internal/type-implementations/now\";\nimport { singleGeneratorBinding } from \"@internal/framework-components/components\";\nimport { inferredTypeConstructors } from \"@internal/family-sql/psl-build\";\n//#region src/core/now-generators.ts\n/** The \"now\" generator for each codec that has one. The `now` generator function binds it. */\nconst postgresNowGeneratorIds = {\n\t[PG_DATE_TEMPORAL_CODEC_ID]: PLAIN_DATE_NOW_GENERATOR_ID,\n\t[PG_DATE_STRING_CODEC_ID]: DATE_STRING_NOW_GENERATOR_ID,\n\t[PG_TIME_TEMPORAL_CODEC_ID]: PLAIN_TIME_NOW_GENERATOR_ID,\n\t[PG_TIME_STRING_CODEC_ID]: TIME_STRING_NOW_GENERATOR_ID,\n\t[PG_TIMETZ_CODEC_ID]: TIMETZ_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMP_TEMPORAL_CODEC_ID]: PLAIN_DATE_TIME_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMP_STRING_CODEC_ID]: TIMESTAMP_STRING_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID]: INSTANT_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMPTZ_STRING_CODEC_ID]: TIMESTAMPTZ_STRING_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMPTZ_DATE_CODEC_ID]: TIMESTAMP_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMP_DATE_CODEC_ID]: TIMESTAMP_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMP_INSTANT_CODEC_ID]: INSTANT_NOW_GENERATOR_ID\n};\nnew Map(Object.entries(postgresNowGeneratorIds));\n/** The codecs whose \"now\" generator takes the column's precision and rounds down to it, so PostgreSQL stores the value the client holds rather than rounding it up, which for a time can reach `24:00:00`. */\nconst postgresNowGeneratorTakesPrecision = {\n\t[PG_TIME_TEMPORAL_CODEC_ID]: true,\n\t[PG_TIME_STRING_CODEC_ID]: true,\n\t[PG_TIMETZ_CODEC_ID]: true,\n\t[PG_TIMESTAMP_STRING_CODEC_ID]: true,\n\t[PG_TIMESTAMPTZ_STRING_CODEC_ID]: true,\n\t[PG_TIMESTAMPTZ_DATE_CODEC_ID]: true,\n\t[PG_TIMESTAMP_DATE_CODEC_ID]: true,\n\t[PG_TIMESTAMP_TEMPORAL_CODEC_ID]: true,\n\t[PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID]: true,\n\t[PG_TIMESTAMP_INSTANT_CODEC_ID]: true\n};\n/** The `now` generator function bound to each Postgres date and time codec, with the column's precision on the codecs that take it. */\nconst postgresNowGeneratorFunction = {\n\tname: \"now\",\n\tbindings: Object.entries(postgresNowGeneratorIds).map(([codecId, generatorId]) => singleGeneratorBinding({\n\t\tcodecIds: [codecId],\n\t\tgeneratorId,\n\t\tparamsFromField: (column) => {\n\t\t\tconst precision = column.typeParams?.[\"precision\"];\n\t\t\treturn Object.hasOwn(postgresNowGeneratorTakesPrecision, codecId) && typeof precision === \"number\" ? { precision } : void 0;\n\t\t}\n\t}))\n};\n//#endregion\n//#region src/core/generator-functions.ts\nconst postgresGeneratorFunctions = [\n\t...sqlIntegerArgumentGeneratorFunctions({ integer: pgInt4.id }),\n\tpostgresNowGeneratorFunction,\n\t...idGeneratorFunctionBindings({\n\t\ttext: [\n\t\t\tPG_CHAR_CODEC_ID,\n\t\t\tPG_VARCHAR_CODEC_ID,\n\t\t\tPG_TEXT_CODEC_ID\n\t\t],\n\t\tuuid: [PG_UUID_CODEC_ID]\n\t})\n];\n/** The `now` generators Postgres binds. The SQL family registers the identifier generators. */\nconst postgresGeneratorDescriptors = [{ id: TIMESTAMP_NOW_GENERATOR_ID }, ...postgresNowGeneratorControlDescriptors()];\n//#endregion\n//#region src/core/prisma7-type-map.ts\nconst of = (type, params = {}) => ({\n\tdataType: type.id,\n\tparams\n});\n/**\n* What Prisma 7.10.0 creates in Postgres for each Prisma 7 scalar and `@db.*` native type, as a data type and its parameters. Derived from the SQL recorded in `test/integration/test/fixtures/prisma7-source/reference/migration.sql`. A `@db.*` attribute's own arguments replace the parameters; without any, the column gets these, so `@db.Char` is the `character(1)` Postgres stores for Prisma 7's `CHAR`, and `@db.Bit` the `bit(1)` it stores for `BIT`.\n*/\nconst prisma7PostgresTypes = {\n\tscalars: {\n\t\tString: of(pgText),\n\t\tBoolean: of(pgBool),\n\t\tInt: of(pgInt4),\n\t\tBigInt: of(pgInt8),\n\t\tFloat: of(pgFloat8),\n\t\tDecimal: of(pgNumeric, {\n\t\t\tprecision: 65,\n\t\t\tscale: 30\n\t\t}),\n\t\tDateTime: of(pgTimestamp, { precision: 3 }),\n\t\tJson: of(pgJsonb),\n\t\tBytes: of(pgBytea)\n\t},\n\tnativeTypes: {\n\t\tText: of(pgText),\n\t\tVarChar: of(pgVarchar),\n\t\tChar: of(pgChar, { length: 1 }),\n\t\tUuid: of(pgUuid),\n\t\tInet: of(pgInet),\n\t\tBoolean: of(pgBool),\n\t\tInteger: of(pgInt4),\n\t\tSmallInt: of(pgInt2),\n\t\tBigInt: of(pgInt8),\n\t\tReal: of(pgFloat4),\n\t\tDoublePrecision: of(pgFloat8),\n\t\tDecimal: of(pgNumeric),\n\t\tTimestamp: of(pgTimestamp),\n\t\tTimestamptz: of(pgTimestamptz),\n\t\tDate: of(pgDate),\n\t\tTime: of(pgTime),\n\t\tTimetz: of(pgTimetz),\n\t\tJson: of(pgJson),\n\t\tJsonB: of(pgJsonb),\n\t\tByteA: of(pgBytea),\n\t\tBit: of(pgBit, { length: 1 }),\n\t\tVarBit: of(pgVarbit),\n\t\tXml: of(pgXml),\n\t\tOid: of(pgOid),\n\t\tMoney: of(pgMoney)\n\t}\n};\nconst marked = inferredTypeConstructors({\n\tauthoringTypes: postgresScalarTypes,\n\tcodecLookup: postgresCodecDescriptorRegistry,\n\tdataTypeLookup: createDataTypeLookup(postgresDataTypes)\n});\n/**\n* The constructor marked `inferred` for the column's data type, with every parameter Prisma 7 gives the column as an argument. The reader builds a contract, so it keeps each parameter rather than the fewest arguments printed PSL writes.\n*/\nfunction mappingOf({ dataType, params }) {\n\tconst markedConstructor = marked.get(dataType);\n\tconst args = markedConstructor === void 0 ? void 0 : authoringTypeConstructorArguments(markedConstructor.descriptor, {\n\t\tcodecId: markedConstructor.descriptor.output.codecId,\n\t\ttypeParams: params\n\t});\n\tif (markedConstructor === void 0 || args === void 0) throw new InternalError(`No constructor marked inferred writes ${dataType} with these parameters.`);\n\treturn {\n\t\tconstructorPath: markedConstructor.path,\n\t\targs\n\t};\n}\nfunction mappingsOf(types) {\n\treturn Object.fromEntries(Object.entries(types).map(([name, type]) => [name, mappingOf(type)]));\n}\n/** {@link prisma7PostgresTypes} as the Prisma 7 reader takes it: each type's constructor call. */\nconst prisma7PostgresTypeMap = {\n\tscalars: mappingsOf(prisma7PostgresTypes.scalars),\n\tnativeTypes: mappingsOf(prisma7PostgresTypes.nativeTypes),\n\textensionNativeTypes: { Citext: {\n\t\tconstructorPath: [\"citext\", \"Citext\"],\n\t\targs: [],\n\t\textension: \"citext\"\n\t} }\n};\n/** The Prisma 7 `@db.*` names whose Prisma 8 constructor has another name, such as `Text` to `String`. */\nconst prisma7PostgresRenamedNativeTypes = Object.fromEntries(Object.entries({\n\t...prisma7PostgresTypeMap.nativeTypes,\n\t...prisma7PostgresTypeMap.extensionNativeTypes\n}).flatMap(([name, { constructorPath }]) => {\n\tconst constructorName = constructorPath.join(\".\");\n\treturn constructorName === name ? [] : [[name, constructorName]];\n}));\nconst postgresTargetDescriptorMeta = {\n\t...postgresTargetDescriptorMetaRuntime,\n\tdefaultNamespaceId: DEFAULT_NAMESPACE_ID,\n\tsupportsNamespaces: true,\n\tdisplayName: \"Postgres\",\n\tindexTypes: postgresIndexTypes,\n\tauthoring: {\n\t\ttype: {\n\t\t\t...postgresScalarTypes,\n\t\t\t...postgresAuthoringTypes\n\t\t},\n\t\tdataTypes: postgresDataTypeEntries(),\n\t\ttextDataTypes: postgresTextDataTypes,\n\t\trenamedTypeConstructors: prisma7PostgresRenamedNativeTypes,\n\t\tentityTypes: postgresAuthoringEntityTypes,\n\t\tpslBlockDescriptors: postgresAuthoringPslBlockDescriptors,\n\t\tmodelAttributes: postgresAuthoringModelAttributes,\n\t\tcreateNamespace: postgresCreateNamespace,\n\t\tqualifyColumnType: postgresQualifyColumnType,\n\t\trenderCheckExpressions: postgresRenderCheckExpressions,\n\t\tlowerEntityHandles: postgresLowerEntityHandles\n\t},\n\tgeneratorFunctions: postgresGeneratorFunctions,\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: /* @__PURE__ */ new Map(),\n\t\tgeneratorDescriptors: postgresGeneratorDescriptors\n\t},\n\ttypes: { queryOperationTypes: { import: {\n\t\tpackage: \"@internal/target-postgres/operation-types\",\n\t\tnamed: \"QueryOperationTypes\",\n\t\talias: \"PgTargetQueryOps\"\n\t} } }\n};\n//#endregion\nexport { prisma7PostgresTypeMap as n, postgresTargetDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-46EhsECb.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,0BAA0B;EAC9B,4BAA4B;EAC5B,0BAA0B;EAC1B,4BAA4B;EAC5B,0BAA0B;EAC1B,qBAAqB;EACrB,iCAAiC;EACjC,+BAA+B;EAC/B,mCAAmC;EACnC,iCAAiC;EACjC,+BAA+B;EAC/B,6BAA6B;EAC7B,gCAAgC;AAClC;AACA,IAAI,IAA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AS,WAAW,qBAAqB,OAAO;CAChD,aAAa,WAAW,qBAAqB,WAAW;CACxD,sBAAsB,EAAE,QAAQ;EAC/B,iBAAiB,CAAC,UAAU,QAAQ;EACpC,MAAM,CAAC;EACP,WAAW;CACZ,EAAE;AACH;;AAEA,MAAM,oCAAoC,OAAO,YAAY,OAAO,QAAQ;CAC3E,GAAG,uBAAuB;CAC1B,GAAG,uBAAuB;AAC3B,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,uBAAuB;CAC3C,MAAM,kBAAkB,gBAAgB,KAAK,GAAG;CAChD,OAAO,oBAAoB,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,eAAe,CAAC;AAChE,CAAC,CAAC;AACF,MAAM,+BAA+B;CACpC,GAAG;CACH,oBAAoB;CACpB,oBAAoB;CACpB,aAAa;CACb,YAAY;CACZ,WAAW;EACV,MAAM;GACL,GAAG;GACH,GAAG;EACJ;EACA,WAAW,wBAAwB;EACnC,eAAe;EACf,yBAAyB;EACzB,aAAa;EACb,qBAAqB;EACrB,iBAAiB;EACjB,iBAAiB;EACjB,mBAAmB;EACnB,wBAAwB;EACxB,oBAAoB;CACrB;CACA,oBAAoB;CACpB,yBAAyB;EACxB,yCAAyC,IAAI,IAAI;EACjD,sBAAsB;CACvB;CACA,OAAO,EAAE,qBAAqB,EAAE,QAAQ;EACvC,SAAS;EACT,OAAO;EACP,OAAO;CACR,EAAE,EAAE;AACL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-meta-DUDk-DLN-B_WUfFf7.mjs","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/descriptor-meta-DUDk-DLN.mjs"],"sourcesContent":["import { t as postgresAdapterContractContributions } from \"./contract-contributions-Bc0_64Gr.mjs\";\nimport { postgresCodecRegistry } from \"@internal/target-postgres/codecs\";\n//#region src/core/descriptor-meta.ts\nconst postgresAdapterDescriptorMeta = {\n\tkind: \"adapter\",\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tid: \"postgres\",\n\tversion: \"0.0.1\",\n\tcapabilities: postgresAdapterContractContributions.capabilities,\n\ttypes: {\n\t\taggregateDescriptors: postgresAdapterContractContributions.types.aggregateDescriptors,\n\t\tcodecTypes: {\n\t\t\tcodecDescriptors: Array.from(postgresCodecRegistry.values()),\n\t\t\timport: {\n\t\t\t\tpackage: \"@internal/target-postgres/codec-types\",\n\t\t\t\tnamed: \"CodecTypes\",\n\t\t\t\talias: \"PgTypes\"\n\t\t\t},\n\t\t\ttypeImports: [{\n\t\t\t\tpackage: \"@internal/target-postgres/codec-types\",\n\t\t\t\tnamed: \"JsonValue\",\n\t\t\t\talias: \"JsonValue\"\n\t\t\t}],\n\t\t\tparameterizedOutputTypes: {\n\t\t\t\tpackage: \"@internal/target-postgres/codec-types\",\n\t\t\t\tnamed: \"ParameterizedOutputTypesForTypeParams\",\n\t\t\t\talias: \"PgParameterizedOutputTypes\"\n\t\t\t}\n\t\t}\n\t}\n};\n//#endregion\nexport { postgresAdapterDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-DUDk-DLN.mjs.map"],"mappings":";;;AAGA,MAAM,gCAAgC;CACrC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,qCAAqC;CACnD,OAAO;EACN,sBAAsB,qCAAqC,MAAM;EACjE,YAAY;GACX,kBAAkB,MAAM,KAAK,sBAAsB,OAAO,CAAC;GAC3D,QAAQ;IACP,SAAS;IACT,OAAO;IACP,OAAO;GACR;GACA,aAAa,CAAC;IACb,SAAS;IACT,OAAO;IACP,OAAO;GACR,CAAC;GACD,0BAA0B;IACzB,SAAS;IACT,OAAO;IACP,OAAO;GACR;EACD;CACD;AACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"full-text-collection-method-CtUV9NT0-CQuFZ4aH.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/full-text-collection-method-CtUV9NT0.d.mts"],"mappings":";;;;;;;;KAOK,0BAA0B,gBAAgB,QAAQ;UAC7C;WACC,sBAAsB,OAAO;WAC7B;WACA;;KAEN,oBAAoB,cAAc,6BAA6B,iDAAiD,QAAQ,uBAAuB,0CAA0C,wBAAwB,6BAA6B;;UAEzO,gCAAgC;WAC/B,SAAS;;;YAGR;aACC,qBAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indexes-ooG0J-V8-CTm1QvmZ.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/indexes-ooG0J-V8.d.mts"],"mappings":";;;;;;;;;UAWU;WACC;WACA;;WAEA;;;;KAIN,KAAK,0BAA0B;;;;;;UAM1B;WACC;WACA;WACA;aACE;aACA;aACA;;WAEF,WAAW;WACX,WAAW;;;;;;;;KAQjB;;;KAGA;;;UAGK;WACC;WACA,UAAU;;;;;;WAMV;WACA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"issue-planner-BlN8mK4E.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/issue-planner.d.mts"],"mappings":";;;;;;;;;;;;;;KAaK;;;;;;;;;;UAUK;WACC,YAAY,SAAS;WACrB,cAAc,SAAS;WACvB;WACA,YAAY,oBAAoB;;WAEhC,OAAO;;WAEP,QAAQ;;WAER,WAAW;;WAEX,SAAS;;WAET,oBAAoB;;WAEpB,0BAA0B,uBAAuB,mBAAmB,YAAY,oBAAoB;WACpG,QAAQ;WACR,qBAAqB,cAAc;;WAEnC,kBAAkB;;WAElB,oBAAoB;;;;;;;;;KAS1B,yBAAyB,iBAAiB,mBAAmB,SAAS;EACzE;EACA,iBAAiB;EACjB,gBAAgB;;;;;;;;EAQhB;;EAEA,qBAAqB;;EAErB;;;;UAIQ;WACC,gBAAgB;;;;;;;;;;;iBAWV,sBAAsB,cAAc,eAAe,cAAc,iBAAiB,gBAAgB,oBAAoB,gBAAgB;UAC7I;WACC,iBAAiB;WACjB,YAAY,SAAS;WACrB,cAAc,SAAS;WACvB;WACA,YAAY,oBAAoB;;WAEhC,OAAO;;;;;;;;WAQP,SAAS;;WAET,WAAW;;WAEX,SAAS;;WAET,yBAAyB;;;;;;WAMzB,SAAS;;;;;WAKT,sBAAsB,cAAc;;WAEpC,mBAAmB;WACnB,sBAAsB;;;;;;;;;iBAShB,WAAW,SAAS,sBAAsB,OAAO,4BAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migration-CovfYOjm.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/migration.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;iBAkBiB,OAAO,IAAI,KAAK"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"op-factory-call-CG80t74g-D9tjd13N.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/op-factory-call-CG80t74g.d.mts"],"mappings":";;;;;;;;;;;;;;;;KAeK,KAAK,0BAA0B;uBACb,kCAAkC,wBAAwB;oBAC7D;oBACA,gBAAgB;oBAChB;WACT,KAAK,UAAU,UAAU,KAAK,QAAQ;;EAE/C,MAAM,UAAU,kCAAkC,KAAK,QAAQ;EAC/D,+BAA+B;YACrB;;cAEE,wBAAwB;;WAE3B;WACA;WACA;WACA;WACA,kBAAkB;WAClB,sBAAsB;WACtB;EACT,YAAY,oBAAoB,mBAAmB,kBAAkB,aAAa,uBAAuB;EACzG,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;cAEnB,sBAAsB;WACzB;WACA;WACA;WACA;WACA;EACT,YAAY,oBAAoB;EAChC,KAAK,UAAU,wBAAwB,QAAQ;EAC/C;EACA,+BAA+B;;;KAG5B,sBAAsB,uBAAuB;cACpC,wBAAwB;WAC3B;WACA;WACA;WACA;;WAEA;WACA;;;;;WAKA,qBAAqB;EAC9B,YAAY,oBAAoB,sBAAsB,mBAAmB,qBAAqB;EAC9F,MAAM,UAAU,kCAAkC,KAAK,QAAQ;EAC/D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