@prisma/orm-family-sql 8.0.0-rc.5-dev.2 → 8.0.0-rc.5-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{ast-Lbl4VwqP.mjs → ast-5tg0fGPQ.mjs} +2 -58
  2. package/dist/ast-5tg0fGPQ.mjs.map +1 -0
  3. package/dist/{ast-HFcfQZr-.d.mts → ast-PAXgfA8z.d.mts} +2 -34
  4. package/dist/ast-PAXgfA8z.d.mts.map +1 -0
  5. package/dist/builder.d.mts +2 -2
  6. package/dist/builder__runtime.d.mts +3 -3
  7. package/dist/builder__runtime.mjs +1 -1
  8. package/dist/builder__types.d.mts +2 -2
  9. package/dist/{control-DTLJ1WtZ.d.mts → control-CyOPr5No.d.mts} +61 -14
  10. package/dist/{control-DTLJ1WtZ.d.mts.map → control-CyOPr5No.d.mts.map} +1 -1
  11. package/dist/control-DSWW6aqp.mjs.map +1 -1
  12. package/dist/{control-adapter-C99J7aEF-B7eQd7vD.d.mts → control-adapter-C99J7aEF-gFfCQmwC.d.mts} +2 -2
  13. package/dist/{control-adapter-C99J7aEF-B7eQd7vD.d.mts.map → control-adapter-C99J7aEF-gFfCQmwC.d.mts.map} +1 -1
  14. package/dist/control-adapter-D-2mthVg.d.mts +1 -0
  15. package/dist/{db-C_ktwEsR-BtOWHdBX.d.mts → db-C_ktwEsR-DSEShniA.d.mts} +3 -3
  16. package/dist/{db-C_ktwEsR-BtOWHdBX.d.mts.map → db-C_ktwEsR-DSEShniA.d.mts.map} +1 -1
  17. package/dist/{diff-DbTNVm2f.d.mts → diff-ClD1mImE.d.mts} +3 -3
  18. package/dist/{diff-DbTNVm2f.d.mts.map → diff-ClD1mImE.d.mts.map} +1 -1
  19. package/dist/{expression-BH-JqphR.mjs → expression-DmQbErXU.mjs} +2 -2
  20. package/dist/expression-DmQbErXU.mjs.map +1 -0
  21. package/dist/{expression-DM5Yshj0.d.mts → expression-PL-Tra28.d.mts} +2 -2
  22. package/dist/{expression-DM5Yshj0.d.mts.map → expression-PL-Tra28.d.mts.map} +1 -1
  23. package/dist/family.d.mts +8 -8
  24. package/dist/family.mjs +3 -3
  25. package/dist/family__control-adapter.d.mts +2 -2
  26. package/dist/family__control.d.mts +3 -3
  27. package/dist/family__control.mjs +2 -2
  28. package/dist/family__diff.d.mts +2 -2
  29. package/dist/family__migration.d.mts +1 -1
  30. package/dist/family__runtime.d.mts +1 -1
  31. package/dist/family__runtime.mjs +1 -1
  32. package/dist/{index-D_jsPMJK.d.mts → index-CrsJm0Rv.d.mts} +3 -3
  33. package/dist/{index-D_jsPMJK.d.mts.map → index-CrsJm0Rv.d.mts.map} +1 -1
  34. package/dist/{migration-CjDRZNep.d.mts → migration-Chb4Qg0T.d.mts} +2 -2
  35. package/dist/{migration-CjDRZNep.d.mts.map → migration-Chb4Qg0T.d.mts.map} +1 -1
  36. package/dist/orm-client.d.mts +2 -2
  37. package/dist/orm-client.mjs +1 -1
  38. package/dist/{prepared-statement-9QpkE6JG-Nk4rCzyU.d.mts → prepared-statement-9QpkE6JG-ti591XdQ.d.mts} +3 -3
  39. package/dist/{prepared-statement-9QpkE6JG-Nk4rCzyU.d.mts.map → prepared-statement-9QpkE6JG-ti591XdQ.d.mts.map} +1 -1
  40. package/dist/relational-core.d.mts +3 -3
  41. package/dist/relational-core.mjs +3 -3
  42. package/dist/relational-core__ast.d.mts +2 -2
  43. package/dist/relational-core__ast.mjs +2 -2
  44. package/dist/relational-core__expression.d.mts +1 -1
  45. package/dist/relational-core__expression.mjs +1 -1
  46. package/dist/{runtime-CYrsdEWR.d.mts → runtime-C88G8y1X.d.mts} +3 -3
  47. package/dist/{runtime-CYrsdEWR.d.mts.map → runtime-C88G8y1X.d.mts.map} +1 -1
  48. package/dist/{runtime-tIHpGCcG.mjs → runtime-PknWErjr.mjs} +2 -2
  49. package/dist/{runtime-tIHpGCcG.mjs.map → runtime-PknWErjr.mjs.map} +1 -1
  50. package/dist/runtime.d.mts +3 -3
  51. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  52. package/dist/{timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs → timestamp-now-generator-BZnBo7IC-DbN5Apqe.mjs} +27 -19
  53. package/dist/timestamp-now-generator-BZnBo7IC-DbN5Apqe.mjs.map +1 -0
  54. package/dist/{types-IqZMLrFC-DcH8v_u3.d.mts → types-IqZMLrFC-BfiR0oFc.d.mts} +2 -2
  55. package/dist/{types-IqZMLrFC-DcH8v_u3.d.mts.map → types-IqZMLrFC-BfiR0oFc.d.mts.map} +1 -1
  56. package/package.json +17 -17
  57. package/dist/ast-HFcfQZr-.d.mts.map +0 -1
  58. package/dist/ast-Lbl4VwqP.mjs.map +0 -1
  59. package/dist/control-adapter-MZJQiwcE.d.mts +0 -1
  60. package/dist/expression-BH-JqphR.mjs.map +0 -1
  61. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- //#region ../../../2-sql/9-family/dist/timestamp-now-generator-DRXygu32.mjs
1
+ //#region ../../../2-sql/9-family/dist/timestamp-now-generator-BZnBo7IC.mjs
2
2
  /**
3
3
  * Canonical id for the wall-clock-now mutation default generator.
4
4
  *
@@ -40,16 +40,17 @@ function timestampNowControlDescriptor() {
40
40
  /**
41
41
  * Builds the canonical `temporal.{createdAt,updatedAt}` field-preset pair
42
42
  * for a SQL target. `createdAt` lowers to a `now()` storage default;
43
- * `updatedAt` lowers to the `timestampNow` execution generator on both
44
- * `onCreate` and `onUpdate` (RD: "last modified time", non-null). Targets
45
- * supply the codec/native-type pair that matches their timestamp column;
46
- * everything else is shared so PSL `temporal.updatedAt()` and TS
43
+ * `updatedAt` lowers to an execution generator on both `onCreate` and
44
+ * `onUpdate` (RD: "last modified time", non-null). Targets supply the
45
+ * codec/native-type pair that matches their timestamp column; everything
46
+ * else is shared so PSL `temporal.updatedAt()` and TS
47
47
  * `field.temporal.updatedAt()` lower to byte-identical contracts across
48
48
  * targets by construction.
49
49
  */
50
50
  /* @__NO_SIDE_EFFECTS__ */
51
51
  function temporalAuthoringPresets(input) {
52
52
  const { codecId, nativeType } = input;
53
+ const generatorId = input.generatorId ?? "timestampNow";
53
54
  return {
54
55
  createdAt: {
55
56
  kind: "fieldPreset",
@@ -70,17 +71,24 @@ function temporalAuthoringPresets(input) {
70
71
  executionDefaults: {
71
72
  onCreate: {
72
73
  kind: "generator",
73
- id: TIMESTAMP_NOW_GENERATOR_ID
74
+ id: generatorId
74
75
  },
75
76
  onUpdate: {
76
77
  kind: "generator",
77
- id: TIMESTAMP_NOW_GENERATOR_ID
78
+ id: generatorId
78
79
  }
79
80
  }
80
81
  }
81
82
  }
82
83
  };
83
84
  }
85
+ function temporalStringAuthoringPresets(input) {
86
+ const presets = /* @__PURE__ */ temporalAuthoringPresets(input);
87
+ return {
88
+ createdAtString: presets.createdAt,
89
+ updatedAtString: presets.updatedAt
90
+ };
91
+ }
84
92
  const TEMPORAL_PRECISION_ARG = {
85
93
  name: "precision",
86
94
  kind: "number",
@@ -101,23 +109,22 @@ const TEMPORAL_ON_UPDATE_ARG = {
101
109
  optional: true
102
110
  };
103
111
  /**
104
- * Selects the `timestampNow` generator descriptor for the preset's `now`
105
- * token. The token is preset vocabulary; the generator id never appears in a
106
- * user's spelling (ADR 169 — `timestampNow` is preset-only).
112
+ * Selects a generator descriptor for the preset's `now` token. The token is preset vocabulary; the
113
+ * generator id never appears in a user's spelling (ADR 169 these generators are preset-only).
107
114
  */
108
- function temporalPhaseTemplate(index) {
115
+ function temporalPhaseTemplate(index, generatorId) {
109
116
  return {
110
117
  kind: "select",
111
118
  index,
112
119
  cases: { now: {
113
120
  kind: "generator",
114
- id: TIMESTAMP_NOW_GENERATOR_ID
121
+ id: generatorId
115
122
  } }
116
123
  };
117
124
  }
118
125
  /**
119
126
  * Builds a `temporal.<codec>` field preset for a codec that takes a precision
120
- * parameter (`pg/timestamp@1`, `pg/timestamptz@1`). Arguments change field
127
+ * parameter (`pg/timestamp-temporal@1`, `pg/timestamptz-temporal@1`). Arguments change field
121
128
  * properties only — never the codec, which the caller fixes here.
122
129
  *
123
130
  * All three arguments are optional: omitting `precision` omits `typeParams`
@@ -126,6 +133,7 @@ function temporalPhaseTemplate(index) {
126
133
  */
127
134
  /* @__NO_SIDE_EFFECTS__ */
128
135
  function temporalCodecPresetWithPrecision(input) {
136
+ const generatorId = input.generatorId ?? "timestampNow";
129
137
  return {
130
138
  kind: "fieldPreset",
131
139
  args: [
@@ -141,8 +149,8 @@ function temporalCodecPresetWithPrecision(input) {
141
149
  index: 0
142
150
  } },
143
151
  executionDefaults: {
144
- onCreate: temporalPhaseTemplate(1),
145
- onUpdate: temporalPhaseTemplate(2)
152
+ onCreate: temporalPhaseTemplate(1, generatorId),
153
+ onUpdate: temporalPhaseTemplate(2, generatorId)
146
154
  }
147
155
  }
148
156
  };
@@ -161,13 +169,13 @@ function temporalCodecPreset(input) {
161
169
  codecId: input.codecId,
162
170
  nativeType: input.nativeType,
163
171
  executionDefaults: {
164
- onCreate: temporalPhaseTemplate(0),
165
- onUpdate: temporalPhaseTemplate(1)
172
+ onCreate: temporalPhaseTemplate(0, TIMESTAMP_NOW_GENERATOR_ID),
173
+ onUpdate: temporalPhaseTemplate(1, TIMESTAMP_NOW_GENERATOR_ID)
166
174
  }
167
175
  }
168
176
  };
169
177
  }
170
178
  //#endregion
171
- export { timestampNowControlDescriptor as a, temporalCodecPresetWithPrecision as i, temporalAuthoringPresets as n, temporalCodecPreset as r, TIMESTAMP_NOW_GENERATOR_ID as t };
179
+ export { temporalStringAuthoringPresets as a, temporalCodecPresetWithPrecision as i, temporalAuthoringPresets as n, timestampNowControlDescriptor as o, temporalCodecPreset as r, TIMESTAMP_NOW_GENERATOR_ID as t };
172
180
 
173
- //# sourceMappingURL=timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map
181
+ //# sourceMappingURL=timestamp-now-generator-BZnBo7IC-DbN5Apqe.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timestamp-now-generator-BZnBo7IC-DbN5Apqe.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/timestamp-now-generator-BZnBo7IC.mjs"],"sourcesContent":["//#region src/core/timestamp-now-generator.ts\n/**\n* Canonical id for the wall-clock-now mutation default generator.\n*\n* Owned by `family-sql` because that's where the generator lives. The\n* id flows out from here to (1) the control-plane descriptor and the\n* temporal field-preset pair below, (2) the runtime-plane sibling\n* `timestamp-now-runtime-generator.ts`, and (3) authoring surfaces\n* (PSL `temporal.updatedAt()`, TS `field.temporal.updatedAt()`) via\n* the descriptor flow. Co-locating the constant with its only owner\n* keeps the framework layer free of concrete generator ids.\n*/\nconst TIMESTAMP_NOW_GENERATOR_ID = \"timestampNow\";\n/**\n* Builds the canonical control-plane descriptor for the wall-clock-now\n* mutation default generator. The descriptor's `id` and `buildPhases`\n* are target-agnostic so PSL `temporal.updatedAt()` and TS\n* `field.temporal.updatedAt()` lower to byte-identical contracts.\n*\n* `applicableCodecIds` is omitted: `timestampNow` is preset-only (not\n* reachable via `@default(timestampNow())` lowering), and the codec is\n* co-registered by the preset descriptor itself, so the\n* `@default(...)` compatibility check has no role to play here.\n*/\nfunction timestampNowControlDescriptor() {\n\treturn {\n\t\tid: TIMESTAMP_NOW_GENERATOR_ID,\n\t\tbuildPhases: () => ({\n\t\t\tonCreate: {\n\t\t\t\tkind: \"generator\",\n\t\t\t\tid: TIMESTAMP_NOW_GENERATOR_ID\n\t\t\t},\n\t\t\tonUpdate: {\n\t\t\t\tkind: \"generator\",\n\t\t\t\tid: TIMESTAMP_NOW_GENERATOR_ID\n\t\t\t}\n\t\t})\n\t};\n}\n/**\n* Builds the canonical `temporal.{createdAt,updatedAt}` field-preset pair\n* for a SQL target. `createdAt` lowers to a `now()` storage default;\n* `updatedAt` lowers to an execution generator on both `onCreate` and\n* `onUpdate` (RD: \"last modified time\", non-null). Targets supply the\n* codec/native-type pair that matches their timestamp column; everything\n* else is shared so PSL `temporal.updatedAt()` and TS\n* `field.temporal.updatedAt()` lower to byte-identical contracts across\n* targets by construction.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalAuthoringPresets(input) {\n\tconst { codecId, nativeType } = input;\n\tconst generatorId = input.generatorId ?? \"timestampNow\";\n\treturn {\n\t\tcreatedAt: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId,\n\t\t\t\tnativeType,\n\t\t\t\tdefault: {\n\t\t\t\t\tkind: \"function\",\n\t\t\t\t\texpression: \"now()\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tupdatedAt: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId,\n\t\t\t\tnativeType,\n\t\t\t\texecutionDefaults: {\n\t\t\t\t\tonCreate: {\n\t\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\t\tid: generatorId\n\t\t\t\t\t},\n\t\t\t\t\tonUpdate: {\n\t\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\t\tid: generatorId\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\nfunction temporalStringAuthoringPresets(input) {\n\tconst presets = /* @__PURE__ */ temporalAuthoringPresets(input);\n\treturn {\n\t\tcreatedAtString: presets.createdAt,\n\t\tupdatedAtString: presets.updatedAt\n\t};\n}\nconst TEMPORAL_PRECISION_ARG = {\n\tname: \"precision\",\n\tkind: \"number\",\n\toptional: true,\n\tinteger: true,\n\tminimum: 0\n};\nconst TEMPORAL_ON_CREATE_ARG = {\n\tname: \"onCreate\",\n\tkind: \"option\",\n\tvalues: [\"now\"],\n\toptional: true\n};\nconst TEMPORAL_ON_UPDATE_ARG = {\n\tname: \"onUpdate\",\n\tkind: \"option\",\n\tvalues: [\"now\"],\n\toptional: true\n};\n/**\n* Selects a generator descriptor for the preset's `now` token. The token is preset vocabulary; the\n* generator id never appears in a user's spelling (ADR 169 — these generators are preset-only).\n*/\nfunction temporalPhaseTemplate(index, generatorId) {\n\treturn {\n\t\tkind: \"select\",\n\t\tindex,\n\t\tcases: { now: {\n\t\t\tkind: \"generator\",\n\t\t\tid: generatorId\n\t\t} }\n\t};\n}\n/**\n* Builds a `temporal.<codec>` field preset for a codec that takes a precision\n* parameter (`pg/timestamp-temporal@1`, `pg/timestamptz-temporal@1`). Arguments change field\n* properties only — never the codec, which the caller fixes here.\n*\n* All three arguments are optional: omitting `precision` omits `typeParams`\n* entirely, and omitting a phase omits that phase (both omitted omits\n* `executionDefaults`).\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalCodecPresetWithPrecision(input) {\n\tconst generatorId = input.generatorId ?? \"timestampNow\";\n\treturn {\n\t\tkind: \"fieldPreset\",\n\t\targs: [\n\t\t\tTEMPORAL_PRECISION_ARG,\n\t\t\tTEMPORAL_ON_CREATE_ARG,\n\t\t\tTEMPORAL_ON_UPDATE_ARG\n\t\t],\n\t\toutput: {\n\t\t\tcodecId: input.codecId,\n\t\t\tnativeType: input.nativeType,\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} },\n\t\t\texecutionDefaults: {\n\t\t\t\tonCreate: temporalPhaseTemplate(1, generatorId),\n\t\t\t\tonUpdate: temporalPhaseTemplate(2, generatorId)\n\t\t\t}\n\t\t}\n\t};\n}\n/**\n* Builds a `temporal.<codec>` field preset for a codec with no type\n* parameters (`sqlite/datetime@1`). As with the precision-bearing variant,\n* both phase arguments are optional and omitting one omits that phase.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalCodecPreset(input) {\n\treturn {\n\t\tkind: \"fieldPreset\",\n\t\targs: [TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG],\n\t\toutput: {\n\t\t\tcodecId: input.codecId,\n\t\t\tnativeType: input.nativeType,\n\t\t\texecutionDefaults: {\n\t\t\t\tonCreate: temporalPhaseTemplate(0, TIMESTAMP_NOW_GENERATOR_ID),\n\t\t\t\tonUpdate: temporalPhaseTemplate(1, TIMESTAMP_NOW_GENERATOR_ID)\n\t\t\t}\n\t\t}\n\t};\n}\n//#endregion\nexport { temporalStringAuthoringPresets as a, temporalCodecPresetWithPrecision as i, temporalAuthoringPresets as n, timestampNowControlDescriptor as o, temporalCodecPreset as r, TIMESTAMP_NOW_GENERATOR_ID as t };\n\n//# sourceMappingURL=timestamp-now-generator-BZnBo7IC.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,6BAA6B;;;;;;;;;;;;AAYnC,SAAS,gCAAgC;CACxC,OAAO;EACN,IAAI;EACJ,oBAAoB;GACnB,UAAU;IACT,MAAM;IACN,IAAI;GACL;GACA,UAAU;IACT,MAAM;IACN,IAAI;GACL;EACD;CACD;AACD;;;;;;;;;;;;AAYA,SAAS,yBAAyB,OAAO;CACxC,MAAM,EAAE,SAAS,eAAe;CAChC,MAAM,cAAc,MAAM,eAAe;CACzC,OAAO;EACN,WAAW;GACV,MAAM;GACN,QAAQ;IACP;IACA;IACA,SAAS;KACR,MAAM;KACN,YAAY;IACb;GACD;EACD;EACA,WAAW;GACV,MAAM;GACN,QAAQ;IACP;IACA;IACA,mBAAmB;KAClB,UAAU;MACT,MAAM;MACN,IAAI;KACL;KACA,UAAU;MACT,MAAM;MACN,IAAI;KACL;IACD;GACD;EACD;CACD;AACD;AACA,SAAS,+BAA+B,OAAO;CAC9C,MAAM,UAA0B,yCAAyB,KAAK;CAC9D,OAAO;EACN,iBAAiB,QAAQ;EACzB,iBAAiB,QAAQ;CAC1B;AACD;AACA,MAAM,yBAAyB;CAC9B,MAAM;CACN,MAAM;CACN,UAAU;CACV,SAAS;CACT,SAAS;AACV;AACA,MAAM,yBAAyB;CAC9B,MAAM;CACN,MAAM;CACN,QAAQ,CAAC,KAAK;CACd,UAAU;AACX;AACA,MAAM,yBAAyB;CAC9B,MAAM;CACN,MAAM;CACN,QAAQ,CAAC,KAAK;CACd,UAAU;AACX;;;;;AAKA,SAAS,sBAAsB,OAAO,aAAa;CAClD,OAAO;EACN,MAAM;EACN;EACA,OAAO,EAAE,KAAK;GACb,MAAM;GACN,IAAI;EACL,EAAE;CACH;AACD;;;;;;;;;;;AAWA,SAAS,iCAAiC,OAAO;CAChD,MAAM,cAAc,MAAM,eAAe;CACzC,OAAO;EACN,MAAM;EACN,MAAM;GACL;GACA;GACA;EACD;EACA,QAAQ;GACP,SAAS,MAAM;GACf,YAAY,MAAM;GAClB,YAAY,EAAE,WAAW;IACxB,MAAM;IACN,OAAO;GACR,EAAE;GACF,mBAAmB;IAClB,UAAU,sBAAsB,GAAG,WAAW;IAC9C,UAAU,sBAAsB,GAAG,WAAW;GAC/C;EACD;CACD;AACD;;;;;;;AAOA,SAAS,oBAAoB,OAAO;CACnC,OAAO;EACN,MAAM;EACN,MAAM,CAAC,wBAAwB,sBAAsB;EACrD,QAAQ;GACP,SAAS,MAAM;GACf,YAAY,MAAM;GAClB,mBAAmB;IAClB,UAAU,sBAAsB,GAAG,0BAA0B;IAC7D,UAAU,sBAAsB,GAAG,0BAA0B;GAC9D;EACD;CACD;AACD"}
@@ -5,7 +5,7 @@ import "./types-UcHa2cTe.mjs";
5
5
  import { r as SqlOperationDescriptors } from "./index-C5I8D-MB.mjs";
6
6
  import { v as SqlSchemaIRNode } from "./types-YStFFkKs-D9UAmnON.mjs";
7
7
  import "./types-Dwcw0F8X.mjs";
8
- import { i as SqlControlAdapter } from "./control-adapter-C99J7aEF-B7eQd7vD.mjs";
8
+ import { i as SqlControlAdapter } from "./control-adapter-C99J7aEF-gFfCQmwC.mjs";
9
9
  import { Contract } from "@prisma/orm-framework/contract/types";
10
10
  import { Result } from "@prisma/orm-framework/utils/result";
11
11
  import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
@@ -423,4 +423,4 @@ interface CreateSqlMigrationPlanOptions<TTargetDetails> {
423
423
  }
424
424
  //#endregion
425
425
  export { SqlPlannerSuccessResult as A, SqlMigrationRunnerSuccessValue as C, SqlPlannerConflictLocation as D, SqlPlannerConflictKind as E, SqlPlannerFailureResult as O, SqlMigrationRunnerResult as S, SqlPlannerConflict as T, SqlMigrationRunner as _, FieldEvent as a, SqlMigrationRunnerExecuteOptions as b, SqlControlAdapterDescriptor as c, SqlMigrationPlanContractInfo as d, SqlMigrationPlanOperation as f, SqlMigrationPlannerPlanOptions as g, SqlMigrationPlanner as h, ExpandNativeTypeInput as i, StorageTypePlanResult as j, SqlPlannerResult as k, SqlControlExtensionDescriptor as l, SqlMigrationPlanOperationTarget as m, CodecControlHooks as n, FieldEventContext as o, SqlMigrationPlanOperationStep as p, CreateSqlMigrationPlanOptions as r, ResolveIdentityValueInput as s, AnyRecord as t, SqlMigrationPlan as u, SqlMigrationRunnerErrorCode as v, SqlPlanTargetDetails as w, SqlMigrationRunnerFailure as x, SqlMigrationRunnerExecuteCallbacks as y };
426
- //# sourceMappingURL=types-IqZMLrFC-DcH8v_u3.d.mts.map
426
+ //# sourceMappingURL=types-IqZMLrFC-BfiR0oFc.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-IqZMLrFC-DcH8v_u3.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/types-IqZMLrFC.d.mts"],"mappings":";;;;;;;;;;;;;;;KAUK,YAAY,SAAS;UAChB,sBAAsB;WACrB,qBAAqB,0BAA0B;;;;;UAKhD;WACC;WACA;WACA,aAAa;;;;;;;;;UASd;WACC;WACA;WACA,aAAa;;;;;;;;;;;;;;;;KAgBnB;;;;;;;;;;;;;UAaK;WACC;WACA;WACA;WACA,aAAa;WACb,WAAW;WACX,aAAa;WACb,WAAW;;UAEZ,kBAAkB;;;;;;;;;EAS1B,sBAAsB;aACX;aACA,cAAc;aACd,UAAU,SAAS;aACnB,QAAQ;aACR;aACA,QAAQ;QACb,sBAAsB;EAC5B,cAAc;aACH;aACA,cAAc;aACd,QAAQ;aACR;iBACI;EACf,mBAAmB;aACR,QAAQ;aACR;QACL,QAAQ,eAAe;;;;;;;;;;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;;;WAKnC,yBAAyB;;KAE/B;UACK,kCAAkC;WACjC,MAAM;WACN,OAAO;;UAER,uCAAuC;KAC5C,2BAA2B,OAAO,gCAAgC;UAC7D,mBAAmB;;;;;;;;;;;;;;EAc3B,QAAQ;aACG,QAAQ;aACR,iBAAiB,cAAc,iCAAiC;MACvE,QAAQ;;;;;;;;;;;EAWZ,oBAAoB,SAAS,iCAAiC,kBAAkB,QAAQ;;UAEhF,8BAA8B;WAC7B;;;;WAIA;WACA,SAAS;WACT,aAAa;WACb,qBAAqB,0BAA0B;;;;;;WAM/C;WACA,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-family-sql",
3
- "version": "8.0.0-rc.5-dev.2",
3
+ "version": "8.0.0-rc.5-dev.4",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -9,8 +9,8 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@prisma/orm-framework": "8.0.0-rc.5-dev.2",
13
- "@prisma/orm-toolchain": "8.0.0-rc.5-dev.2",
12
+ "@prisma/orm-framework": "8.0.0-rc.5-dev.4",
13
+ "@prisma/orm-toolchain": "8.0.0-rc.5-dev.4",
14
14
  "@standard-schema/spec": "^1.1.0",
15
15
  "arktype": "^2.2.2",
16
16
  "pathe": "^2.0.3",
@@ -18,20 +18,20 @@
18
18
  "ts-toolbelt": "^9.6.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@internal/family-sql": "8.0.0-rc.5-dev.2",
22
- "@internal/sql-builder": "8.0.0-rc.5-dev.2",
23
- "@internal/sql-contract": "8.0.0-rc.5-dev.2",
24
- "@internal/sql-contract-emitter": "8.0.0-rc.5-dev.2",
25
- "@internal/sql-contract-psl": "8.0.0-rc.5-dev.2",
26
- "@internal/sql-contract-ts": "8.0.0-rc.5-dev.2",
27
- "@internal/sql-errors": "8.0.0-rc.5-dev.2",
28
- "@internal/sql-operations": "8.0.0-rc.5-dev.2",
29
- "@internal/sql-orm-client": "8.0.0-rc.5-dev.2",
30
- "@internal/sql-relational-core": "8.0.0-rc.5-dev.2",
31
- "@internal/sql-runtime": "8.0.0-rc.5-dev.2",
32
- "@internal/sql-schema-ir": "8.0.0-rc.5-dev.2",
33
- "@repo/tsconfig": "8.0.0-rc.5-dev.2",
34
- "@repo/tsdown": "8.0.0-rc.5-dev.2",
21
+ "@internal/family-sql": "8.0.0-rc.5-dev.4",
22
+ "@internal/sql-builder": "8.0.0-rc.5-dev.4",
23
+ "@internal/sql-contract": "8.0.0-rc.5-dev.4",
24
+ "@internal/sql-contract-emitter": "8.0.0-rc.5-dev.4",
25
+ "@internal/sql-contract-psl": "8.0.0-rc.5-dev.4",
26
+ "@internal/sql-contract-ts": "8.0.0-rc.5-dev.4",
27
+ "@internal/sql-errors": "8.0.0-rc.5-dev.4",
28
+ "@internal/sql-operations": "8.0.0-rc.5-dev.4",
29
+ "@internal/sql-orm-client": "8.0.0-rc.5-dev.4",
30
+ "@internal/sql-relational-core": "8.0.0-rc.5-dev.4",
31
+ "@internal/sql-runtime": "8.0.0-rc.5-dev.4",
32
+ "@internal/sql-schema-ir": "8.0.0-rc.5-dev.4",
33
+ "@repo/tsconfig": "8.0.0-rc.5-dev.4",
34
+ "@repo/tsdown": "8.0.0-rc.5-dev.4",
35
35
  "tsdown": "0.22.14",
36
36
  "typescript": "5.9.3"
37
37
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"ast-HFcfQZr-.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/ast.d.mts"],"mappings":";;;;;;;;KAOK;;;;;;;KAOA;WACM;WACA,QAAQ;;WAER;;WAEA;;UAED,eAAe,gBAAgB,gBAAgB;WAC9C;WACA,QAAQ;WACR,cAAc;;;;EAIvB,WAAW,WAAW,eAAe,QAAQ;;UAErC,eAAe;WACd,UAAU;WACV;;KAEN,QAAQ,eAAe,qBAAqB,QAAQ,qBAAqB,KAAK,KAAK,SAAS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AAqE,WAAW;cAChF,qBAAqB,iBAAiB;EAClD,OAAO,eAAe,MAAM,mBAAqB;EACjD,OAAO,cAAc,MAAM,mBAAqB;EAChD,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,0BAA0B,oBAAoB;WACjD;WACA;WACA;WACA,cAAc,iBAAiB;EACxC,iBAAiB,QAAQ;EACzB,QAAQ,SAAS,gBAAgB,KAAK,yBAAyB;;cAEnD,mBAAmB;cACnB,gBAAgB,SAAS,gEAAgE,WAAW,cAAc;cAClH,wBAAwB,iBAAiB;EACrD,OAAO,eAAe,MAAM,mBAAqB;EACjD,OAAO,cAAc,MAAM,mBAAqB;EAChD,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,6BAA6B,oBAAoB;WACpD;WACA;WACA;WACA,cAAc,iBAAiB;EACxC,iBAAiB,QAAQ;EACzB,QAAQ,SAAS,gBAAgB,KAAK,yBAAyB;;cAEnD,sBAAsB;cACtB,mBAAmB,SAAS,gEAAgE,WAAW,iBAAiB;cACxH,0BAA0B,iBAAiB,wDAAwD,MAAM;EACrH,OAAO,OAAO,MAAM,MAAM,mBAAqB,QAAQ;EACvD,OAAO,MAAM,MAAM,MAAM,mBAAqB,QAAQ;EACtD,WAAW,OAAO,OAAO;EACzB,WAAW,MAAM,YAAY;;cAEjB,+BAA+B,oBAAoB;WACtD;WACA;WACA;WACA,cAAc,iBAAiB;EACxC,iBAAiB,QAAQ;EACzB,QAAQ,SAAS,mBAAmB,KAAK,yBAAyB;;cAEtD,wBAAwB;cACxB,qBAAqB,SAAS,mEAAmE,WAAW,mBAAmB;;;iBAG5H,QAAQ,UAAU,yBAAyB,GAAG,IAAI;;;;;;;;;;;iBAWlD,wBAAwB,KAAK,cAAc,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ast-Lbl4VwqP.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/ast.mjs"],"sourcesContent":["import { A as PreparedParamRef, B as isAggregateFn, C as LiteralExpr, D as OrExpr, E as OperationExpr, F as SubqueryExpr, G as frozenCodecRef, H as isWhereExpr, I as TableSource, L as UpdateAst, M as RawExpr, N as RawQueryAst, O as OrderByItem, P as SelectAst, R as WindowFuncExpr, S as ListExpression, T as NullCheckExpr, U as queryAstKinds, V as isQueryAst, W as whereExprKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as NotExpr, x as JsonObjectExpr, y as JoinAst, z as aggregateFnNames } from \"../types-Dt4e_jC-.mjs\";\nimport { a as ForeignKeyConstraint, c as PrimaryKeyConstraint, i as DdlNode, l as UniqueConstraint, n as DdlColumn, o as FunctionColumnDefault, r as DdlColumnDefault, s as LiteralColumnDefault, t as CheckExpressionConstraint, u as isDdlNode } from \"../ddl-types-BGdnAbXo.mjs\";\nimport { n as compact, t as collectOrderedParamRefs } from \"../util-DQQgv2j1.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { CodecDescriptorImpl, CodecImpl, column, voidParamsSchema } from \"@internal/framework-components/codec\";\nimport { type } from \"arktype\";\n//#region src/ast/json-value-projection.ts\nvar JsonValueProjection = class {\n\tvalue;\n\tconstructor(value) {\n\t\tthis.value = value;\n\t}\n\tfold(folder) {\n\t\treturn this.value.fold(folder);\n\t}\n\tcollectColumnRefs() {\n\t\treturn this.value.collectColumnRefs();\n\t}\n\tcollectParamRefs() {\n\t\treturn this.value.collectParamRefs();\n\t}\n\tfreeze() {\n\t\tObject.freeze(this);\n\t}\n};\nvar CodecJsonValueProjection = class CodecJsonValueProjection extends JsonValueProjection {\n\tkind = \"codec\";\n\tcodec;\n\tconstructor(value, codec) {\n\t\tsuper(value);\n\t\tthis.codec = frozenCodecRef(codec);\n\t\tthis.freeze();\n\t}\n\taccept(visitor) {\n\t\treturn visitor.codec(this);\n\t}\n\trewrite(rewriter) {\n\t\treturn new CodecJsonValueProjection(this.value.rewrite(rewriter), this.codec);\n\t}\n};\nvar NativeJsonValueProjection = class NativeJsonValueProjection extends JsonValueProjection {\n\tkind = \"native\";\n\tconstructor(value) {\n\t\tsuper(value);\n\t\tthis.freeze();\n\t}\n\taccept(visitor) {\n\t\treturn visitor.native(this);\n\t}\n\trewrite(rewriter) {\n\t\treturn new NativeJsonValueProjection(this.value.rewrite(rewriter));\n\t}\n};\nvar JsonDocumentProjection = class JsonDocumentProjection extends JsonValueProjection {\n\tkind = \"document\";\n\tconstructor(value) {\n\t\tsuper(value);\n\t\tthis.freeze();\n\t}\n\taccept(visitor) {\n\t\treturn visitor.document(this);\n\t}\n\trewrite(rewriter) {\n\t\treturn new JsonDocumentProjection(this.value.rewrite(rewriter));\n\t}\n};\n//#endregion\n//#region src/ast/sql-codec-helpers.ts\nconst SQL_CHAR_CODEC_ID = \"sql/char@1\";\nconst SQL_VARCHAR_CODEC_ID = \"sql/varchar@1\";\nconst SQL_INT_CODEC_ID = \"sql/int@1\";\nconst SQL_FLOAT_CODEC_ID = \"sql/float@1\";\nconst SQL_TEXT_CODEC_ID = \"sql/text@1\";\nconst SQL_TIMESTAMP_CODEC_ID = \"sql/timestamp@1\";\nconst sqlCharEncode = (value) => value;\nconst sqlCharDecode = (wire) => wire.trimEnd();\nconst sqlCharRenderOutputType = (typeParams) => {\n\tconst length = typeParams.length;\n\tif (length === void 0) return void 0;\n\tif (typeof length !== \"number\" || !Number.isFinite(length) || !Number.isInteger(length)) throw structuredError(\"RUNTIME.TYPE_PARAMS_INVALID\", `renderOutputType: expected integer \"length\" in typeParams for Char, got ${String(length)}`, { meta: {\n\t\tcodec: SQL_CHAR_CODEC_ID,\n\t\tparam: \"length\",\n\t\treceived: String(length)\n\t} });\n\treturn `Char<${length}>`;\n};\nconst sqlVarcharEncode = (value) => value;\nconst sqlVarcharDecode = (wire) => wire;\nconst sqlVarcharRenderOutputType = (typeParams) => {\n\tconst length = typeParams.length;\n\tif (length === void 0) return void 0;\n\tif (typeof length !== \"number\" || !Number.isFinite(length) || !Number.isInteger(length)) throw structuredError(\"RUNTIME.TYPE_PARAMS_INVALID\", `renderOutputType: expected integer \"length\" in typeParams for Varchar, got ${String(length)}`, { meta: {\n\t\tcodec: SQL_VARCHAR_CODEC_ID,\n\t\tparam: \"length\",\n\t\treceived: String(length)\n\t} });\n\treturn `Varchar<${length}>`;\n};\nconst sqlIntEncode = (value) => value;\nconst sqlIntDecode = (wire) => wire;\nconst sqlFloatEncode = (value) => value;\nconst sqlFloatDecode = (wire) => wire;\n/**\n* JSON has no spelling for a non-finite number, and a database that holds one\n* emits it as a string — PostgreSQL writes `\"NaN\"` and `\"Infinity\"`. This\n* codec's application type is `number`, so both directions reject rather than\n* carry a value that type cannot hold.\n*/\nconst sqlFloatEncodeJson = (value) => {\n\tif (!Number.isFinite(value)) throw structuredError(\"RUNTIME.ENCODE_FAILED\", `${SQL_FLOAT_CODEC_ID} application value must be a finite number, got ${value}`, { meta: { codec: SQL_FLOAT_CODEC_ID } });\n\treturn value;\n};\nconst sqlFloatDecodeJson = (json) => {\n\tif (typeof json !== \"number\" || !Number.isFinite(json)) throw structuredError(\"RUNTIME.DECODE_FAILED\", `Expected a finite number for ${SQL_FLOAT_CODEC_ID}, got ${JSON.stringify(json)}`, { meta: { codec: SQL_FLOAT_CODEC_ID } });\n\treturn json;\n};\nconst sqlTextEncode = (value) => value;\nconst sqlTextDecode = (wire) => wire;\nconst ZONELESS_ISO_TIMESTAMP = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?$/;\nconst sqlTimestampEncode = (value) => value;\nconst sqlTimestampDecode = (wire) => wire;\n/**\n* A `timestamp` carries no zone, so its JSON form is the ISO rendering without a\n* trailing `Z` — `2026-01-02T03:04:05.678` — and {@link sqlTimestampDecodeJson}\n* reads that form back as UTC.\n*/\nconst sqlTimestampEncodeJson = (value) => value.toISOString().slice(0, -1);\nconst sqlTimestampDecodeJson = (json) => {\n\tif (typeof json !== \"string\") throw structuredError(\"RUNTIME.DECODE_FAILED\", `Expected ISO date string for sql/timestamp@1, got ${typeof json}`, { meta: { codec: SQL_TIMESTAMP_CODEC_ID } });\n\tif (!ZONELESS_ISO_TIMESTAMP.test(json)) throw structuredError(\"RUNTIME.DECODE_FAILED\", `Expected a zone-less ISO date-time (YYYY-MM-DDTHH:MM:SS[.sss]) for sql/timestamp@1, got ${json}`, { meta: { codec: SQL_TIMESTAMP_CODEC_ID } });\n\tconst date = /* @__PURE__ */ new Date(`${json}Z`);\n\tif (Number.isNaN(date.getTime())) throw structuredError(\"RUNTIME.DECODE_FAILED\", `Invalid ISO date string for sql/timestamp@1: ${json}`, { meta: { codec: SQL_TIMESTAMP_CODEC_ID } });\n\treturn date;\n};\nconst sqlTimestampRenderOutputType = (typeParams) => {\n\tconst precision = typeParams.precision;\n\tif (precision === void 0) return \"Timestamp\";\n\tif (typeof precision !== \"number\" || !Number.isFinite(precision) || !Number.isInteger(precision)) throw structuredError(\"RUNTIME.TYPE_PARAMS_INVALID\", `renderOutputType: expected integer \"precision\" in typeParams for Timestamp, got ${String(precision)}`, { meta: {\n\t\tcodec: SQL_TIMESTAMP_CODEC_ID,\n\t\tparam: \"precision\",\n\t\treceived: String(precision)\n\t} });\n\treturn `Timestamp<${precision}>`;\n};\n//#endregion\n//#region src/ast/sql-codecs.ts\nconst lengthParamsSchema = type({ \"length?\": \"number.integer > 0\" });\nconst precisionParamsSchema = type({ \"precision?\": \"number.integer >= 0 & number.integer <= 6\" });\nvar SqlTextCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn sqlTextEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn sqlTextDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn json;\n\t}\n};\nvar SqlTextDescriptor = class extends CodecDescriptorImpl {\n\tcodecId = SQL_TEXT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\ttargetTypes = [\"text\"];\n\tparamsSchema = voidParamsSchema;\n\tfactory() {\n\t\treturn () => new SqlTextCodec(this);\n\t}\n};\nconst sqlTextDescriptor = new SqlTextDescriptor();\nconst sqlTextColumn = () => column(sqlTextDescriptor.factory(), sqlTextDescriptor.codecId, void 0, \"text\");\nvar SqlIntCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn sqlIntEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn sqlIntDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn json;\n\t}\n};\nvar SqlIntDescriptor = class extends CodecDescriptorImpl {\n\tcodecId = SQL_INT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\ttargetTypes = [\"int\"];\n\tparamsSchema = voidParamsSchema;\n\tfactory() {\n\t\treturn () => new SqlIntCodec(this);\n\t}\n};\nconst sqlIntDescriptor = new SqlIntDescriptor();\nconst sqlIntColumn = () => column(sqlIntDescriptor.factory(), sqlIntDescriptor.codecId, void 0, \"int\");\nvar SqlFloatCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn sqlFloatEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn sqlFloatDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn sqlFloatEncodeJson(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn sqlFloatDecodeJson(json);\n\t}\n};\nvar SqlFloatDescriptor = class extends CodecDescriptorImpl {\n\tcodecId = SQL_FLOAT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\ttargetTypes = [\"float\"];\n\tparamsSchema = voidParamsSchema;\n\tfactory() {\n\t\treturn () => new SqlFloatCodec(this);\n\t}\n};\nconst sqlFloatDescriptor = new SqlFloatDescriptor();\nconst sqlFloatColumn = () => column(sqlFloatDescriptor.factory(), sqlFloatDescriptor.codecId, void 0, \"float\");\nvar SqlCharCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn sqlCharEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn sqlCharDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn json;\n\t}\n};\nvar SqlCharDescriptor = class extends CodecDescriptorImpl {\n\tcodecId = SQL_CHAR_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\ttargetTypes = [\"char\"];\n\tparamsSchema = lengthParamsSchema;\n\trenderOutputType(params) {\n\t\treturn sqlCharRenderOutputType(params);\n\t}\n\tfactory(_params) {\n\t\treturn () => new SqlCharCodec(this);\n\t}\n};\nconst sqlCharDescriptor = new SqlCharDescriptor();\nconst sqlCharColumn = (params = {}) => column(sqlCharDescriptor.factory(params), sqlCharDescriptor.codecId, params, \"char\");\nvar SqlVarcharCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn sqlVarcharEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn sqlVarcharDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn json;\n\t}\n};\nvar SqlVarcharDescriptor = class extends CodecDescriptorImpl {\n\tcodecId = SQL_VARCHAR_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\ttargetTypes = [\"varchar\"];\n\tparamsSchema = lengthParamsSchema;\n\trenderOutputType(params) {\n\t\treturn sqlVarcharRenderOutputType(params);\n\t}\n\tfactory(_params) {\n\t\treturn () => new SqlVarcharCodec(this);\n\t}\n};\nconst sqlVarcharDescriptor = new SqlVarcharDescriptor();\nconst sqlVarcharColumn = (params = {}) => column(sqlVarcharDescriptor.factory(params), sqlVarcharDescriptor.codecId, params, \"varchar\");\nvar SqlTimestampCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn sqlTimestampEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn sqlTimestampDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn sqlTimestampEncodeJson(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn sqlTimestampDecodeJson(json);\n\t}\n};\nvar SqlTimestampDescriptor = class extends CodecDescriptorImpl {\n\tcodecId = SQL_TIMESTAMP_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\ttargetTypes = [\"timestamp\"];\n\tparamsSchema = precisionParamsSchema;\n\trenderOutputType(params) {\n\t\treturn sqlTimestampRenderOutputType(params);\n\t}\n\tfactory(_params) {\n\t\treturn () => new SqlTimestampCodec(this);\n\t}\n};\nconst sqlTimestampDescriptor = new SqlTimestampDescriptor();\nconst sqlTimestampColumn = (params = {}) => column(sqlTimestampDescriptor.factory(params), sqlTimestampDescriptor.codecId, params, \"timestamp\");\n//#endregion\nexport { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawQueryAst, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SqlCharCodec, SqlCharDescriptor, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlTextCodec, SqlTextDescriptor, SqlTimestampCodec, SqlTimestampDescriptor, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableSource, UniqueConstraint, UpdateAst, WindowFuncExpr, aggregateFnNames, collectOrderedParamRefs, compact, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlTimestampColumn, sqlTimestampDecode, sqlTimestampDecodeJson, sqlTimestampDescriptor, sqlTimestampEncode, sqlTimestampEncodeJson, sqlTimestampRenderOutputType, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, whereExprKinds };\n\n//# sourceMappingURL=ast.mjs.map"],"mappings":";;;;;AAOA,IAAI,sBAAsB,MAAM;CAC/B;CACA,YAAY,OAAO;EAClB,KAAK,QAAQ;CACd;CACA,KAAK,QAAQ;EACZ,OAAO,KAAK,MAAM,KAAK,MAAM;CAC9B;CACA,oBAAoB;EACnB,OAAO,KAAK,MAAM,kBAAkB;CACrC;CACA,mBAAmB;EAClB,OAAO,KAAK,MAAM,iBAAiB;CACpC;CACA,SAAS;EACR,OAAO,OAAO,IAAI;CACnB;AACD;AACA,I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mB,KAAK;CAChC;CACA,MAAM,OAAO,MAAM,MAAM;EACxB,OAAO,mBAAmB,IAAI;CAC/B;CACA,WAAW,OAAO;EACjB,OAAO,uBAAuB,KAAK;CACpC;CACA,WAAW,MAAM;EAChB,OAAO,uBAAuB,IAAI;CACnC;AACD;AACA,IAAI,yBAAyB,cAAc,oBAAoB;CAC9D,UAAU;CACV,SAAS,CAAC,YAAY,OAAO;CAC7B,cAAc,CAAC,WAAW;CAC1B,eAAe;CACf,iBAAiB,QAAQ;EACxB,OAAO,6BAA6B,MAAM;CAC3C;CACA,QAAQ,SAAS;EAChB,aAAa,IAAI,kBAAkB,IAAI;CACxC;AACD;AACA,MAAM,yBAAyB,IAAI,uBAAuB;AAC1D,MAAM,sBAAsB,SAAS,CAAC,MAAM,OAAO,uBAAuB,QAAQ,MAAM,GAAG,uBAAuB,SAAS,QAAQ,WAAW"}
@@ -1 +0,0 @@
1
- import "./control-adapter-C99J7aEF-B7eQd7vD.mjs";
@@ -1 +0,0 @@
1
- {"version":3,"file":"expression-BH-JqphR.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.mjs"],"sourcesContent":["import { E as OperationExpr, M as RawExpr, N as RawQueryAst, k as ParamRef } from \"../types-Dt4e_jC-.mjs\";\nimport { t as planFromAst } from \"../plan-Dh0LbYIv.mjs\";\nimport { runtimeError } from \"@internal/framework-components/runtime\";\nimport { invariant } from \"@internal/utils/assertions\";\n//#region src/expression.ts\n/**\n* Resolve a raw value or an Expression into an AST expression node.\n*\n* When `value` is an Expression (duck-typed by its `buildAst` method), the AST it wraps is returned. Otherwise the value is embedded as a ParamRef tagged with the caller-supplied {@link CodecRef} (when known). The runtime resolves the ref via `contractCodecs.forCodecRef(codec)`; content-keyed memoisation collapses repeated lookups for the same logical column onto one shared codec.\n*\n* Operation implementations that compare a column-bound expression to a user value derive the column's {@link CodecRef} from the column-bound side (via {@link codecOf}) and forward it here so encode-side dispatch resolves to the per-instance codec for parameterized codec ids (`vector(1024)` vs. `vector(1536)`).\n*/\nfunction toExpr(value, codec) {\n\tif (isExpressionLike(value)) return value.buildAst();\n\tif (codec === void 0) throw runtimeError(\"RUNTIME.PARAM_REF_CODEC_REQUIRED\", `Cannot construct a ParamRef for a ${value === null ? \"null\" : typeof value} value without an explicit codec. Provide a CodecRef at the call site or use a column-bound builder path.`);\n\treturn ParamRef.of(value, { codec });\n}\n/**\n* Construct a `ParamRef` for a value whose codec identity is known at call time. Use this when interpolating a value into a raw SQL expression and the codec cannot be inferred from context — e.g. `param(myDate, { codecId: 'pg/timestamptz@1' })`.\n*/\nfunction param(value, opts) {\n\treturn ParamRef.of(value, { codec: { codecId: opts.codecId } });\n}\n/**\n* Derive the {@link CodecRef} carried by an expression-like value.\n*\n* Resolution order:\n* 1. `wrapper.codec` — explicit column-bound {@link CodecRef} stamped at field-proxy time.\n* 2. `wrapper.returnType.codec` — scope-level codec when the scope was built from contract storage.\n* 3. `{ codecId: wrapper.returnType.codecId }` — minimal ref derived from the expression's declared codec id (covers synthetic expressions like `count()` whose returnType has a known codec id but no explicit column binding).\n*\n* Returns `undefined` for raw scalar values (non-expression-like).\n*/\nfunction codecOf(value) {\n\tif (!isExpressionLike(value)) return void 0;\n\tconst wrapper = value;\n\tif (wrapper.codec) return wrapper.codec;\n\tif (wrapper.returnType?.codec) return wrapper.returnType.codec;\n\tif (wrapper.returnType?.codecId) return { codecId: wrapper.returnType.codecId };\n}\nfunction isExpressionLike(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\";\n}\n/**\n* Construct an OperationExpr AST node and wrap it as a typed Expression. Operation implementations use this to turn their user-facing arguments into the AST node the compilation pipeline eventually lowers to SQL.\n*/\nfunction buildOperation(spec) {\n\tconst [self, ...rest] = spec.args;\n\tconst op = new OperationExpr({\n\t\tmethod: spec.method,\n\t\tself,\n\t\targs: rest.length > 0 ? rest : void 0,\n\t\treturns: spec.returns,\n\t\tlowering: spec.lowering\n\t});\n\treturn {\n\t\treturnType: spec.returns,\n\t\tbuildAst: () => op\n\t};\n}\nfunction resolveInterpolation(adapter, value) {\n\tif (isExpressionLike(value)) return value.buildAst();\n\tif (value instanceof ParamRef) return value;\n\tif (typeof value === \"number\" || typeof value === \"bigint\" || typeof value === \"string\" || typeof value === \"boolean\" || value instanceof Uint8Array) return ParamRef.of(value, { codec: { codecId: adapter.inferCodec(value) } });\n\tthrow runtimeError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\");\n}\nfunction isRawRowQuery(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\" && \"build\" in value && typeof value.build === \"function\";\n}\nfunction templateParts(adapter, strings, values) {\n\tconst parts = [strings[0] ?? \"\"];\n\tvalues.forEach((value, i) => {\n\t\tif (isRawRowQuery(value)) parts.push(...value.buildAst().parts);\n\t\telse parts.push(resolveInterpolation(adapter, value));\n\t\tparts.push(strings[i + 1] ?? \"\");\n\t});\n\treturn parts;\n}\n/**\n* Normalizes each authored entry to a {@link RawQueryColumn}. The record is\n* assembled with `Object.fromEntries`, which defines each key as an own\n* property: a spec built at runtime with a `__proto__` key reaches the AST,\n* which refuses it by name, rather than silently setting the record's\n* prototype and leaving the column to vanish.\n*/\nfunction resolveRowSpec(spec) {\n\treturn Object.fromEntries(Object.entries(spec).map(([name, entry]) => [name, typeof entry === \"string\" ? {\n\t\tcodecId: entry,\n\t\tnullable: false\n\t} : {\n\t\tcodecId: entry.codecId,\n\t\tnullable: entry.nullable ?? false\n\t}]));\n}\nfunction createRawSql(adapter, planContext) {\n\tif (planContext === void 0) return (strings, ...values) => new RawSqlBuilderImpl(templateParts(adapter, strings, values));\n\tconst context = planContext;\n\treturn (strings, ...values) => new RawSqlStatementBuilderImpl(templateParts(adapter, strings, values), context);\n}\nvar RawSqlBuilderImpl = class {\n\tparts;\n\tconstructor(parts) {\n\t\tthis.parts = parts;\n\t}\n\treturns(spec) {\n\t\tconst codecId = typeof spec === \"string\" ? spec : spec.codecId;\n\t\tconst nullable = typeof spec === \"string\" ? false : spec.nullable ?? false;\n\t\tconst paramSpec = {\n\t\t\tcodecId,\n\t\t\tnullable\n\t\t};\n\t\tconst node = new RawExpr({\n\t\t\tparts: this.parts,\n\t\t\treturns: paramSpec\n\t\t});\n\t\treturn {\n\t\t\treturnType: {\n\t\t\t\tcodecId,\n\t\t\t\tnullable\n\t\t\t},\n\t\t\tbuildAst: () => node\n\t\t};\n\t}\n};\nvar RawSqlStatementBuilderImpl = class extends RawSqlBuilderImpl {\n\tplanContext;\n\tconstructor(parts, planContext) {\n\t\tsuper(parts);\n\t\tthis.planContext = planContext;\n\t}\n\treturnsRow(spec) {\n\t\tconst node = RawQueryAst.rows(this.parts, resolveRowSpec(spec));\n\t\tconst result = node.result;\n\t\tinvariant(result.kind === \"rows\", \"RawQueryAst.rows built a non-rows result\");\n\t\treturn {\n\t\t\treturns: result.columns,\n\t\t\tbuildAst: () => node,\n\t\t\tbuild: () => this.planFor(node)\n\t\t};\n\t}\n\taffectedCount() {\n\t\tconst node = RawQueryAst.affectedCount(this.parts);\n\t\treturn { build: () => this.planFor(node) };\n\t}\n\tplanFor(node) {\n\t\treturn planFromAst(node, this.planContext.contract, this.planContext.laneId);\n\t}\n};\n//#endregion\nexport { buildOperation, codecOf, createRawSql, param, toExpr };\n\n//# sourceMappingURL=expression.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,OAAO,OAAO,OAAO;CAC7B,IAAI,iBAAiB,KAAK,GAAG,OAAO,MAAM,SAAS;CACnD,IAAI,UAAU,KAAK,GAAG,MAAM,aAAa,oCAAoC,qCAAqC,UAAU,OAAO,SAAS,OAAO,MAAM,0GAA0G;CACnQ,OAAO,SAAS,GAAG,OAAO,EAAE,MAAM,CAAC;AACpC;;;;AAIA,SAAS,MAAM,OAAO,MAAM;CAC3B,OAAO,SAAS,GAAG,OAAO,EAA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B,MAAM,OAAO,YAAY,KAAK,KAAK,OAAO,eAAe,IAAI,CAAC;EAC9D,MAAM,SAAS,KAAK;EACpB,UAAU,OAAO,SAAS,QAAQ,0CAA0C;EAC5E,OAAO;GACN,SAAS,OAAO;GAChB,gBAAgB;GAChB,aAAa,KAAK,QAAQ,IAAI;EAC/B;CACD;CACA,gBAAgB;EACf,MAAM,OAAO,YAAY,cAAc,KAAK,KAAK;EACjD,OAAO,EAAE,aAAa,KAAK,QAAQ,IAAI,EAAE;CAC1C;CACA,QAAQ,MAAM;EACb,OAAO,YAAY,MAAM,KAAK,YAAY,UAAU,KAAK,YAAY,MAAM;CAC5E;AACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/timestamp-now-generator-DRXygu32.mjs"],"sourcesContent":["//#region src/core/timestamp-now-generator.ts\n/**\n* Canonical id for the wall-clock-now mutation default generator.\n*\n* Owned by `family-sql` because that's where the generator lives. The\n* id flows out from here to (1) the control-plane descriptor and the\n* temporal field-preset pair below, (2) the runtime-plane sibling\n* `timestamp-now-runtime-generator.ts`, and (3) authoring surfaces\n* (PSL `temporal.updatedAt()`, TS `field.temporal.updatedAt()`) via\n* the descriptor flow. Co-locating the constant with its only owner\n* keeps the framework layer free of concrete generator ids.\n*/\nconst TIMESTAMP_NOW_GENERATOR_ID = \"timestampNow\";\n/**\n* Builds the canonical control-plane descriptor for the wall-clock-now\n* mutation default generator. The descriptor's `id` and `buildPhases`\n* are target-agnostic so PSL `temporal.updatedAt()` and TS\n* `field.temporal.updatedAt()` lower to byte-identical contracts.\n*\n* `applicableCodecIds` is omitted: `timestampNow` is preset-only (not\n* reachable via `@default(timestampNow())` lowering), and the codec is\n* co-registered by the preset descriptor itself, so the\n* `@default(...)` compatibility check has no role to play here.\n*/\nfunction timestampNowControlDescriptor() {\n\treturn {\n\t\tid: TIMESTAMP_NOW_GENERATOR_ID,\n\t\tbuildPhases: () => ({\n\t\t\tonCreate: {\n\t\t\t\tkind: \"generator\",\n\t\t\t\tid: TIMESTAMP_NOW_GENERATOR_ID\n\t\t\t},\n\t\t\tonUpdate: {\n\t\t\t\tkind: \"generator\",\n\t\t\t\tid: TIMESTAMP_NOW_GENERATOR_ID\n\t\t\t}\n\t\t})\n\t};\n}\n/**\n* Builds the canonical `temporal.{createdAt,updatedAt}` field-preset pair\n* for a SQL target. `createdAt` lowers to a `now()` storage default;\n* `updatedAt` lowers to the `timestampNow` execution generator on both\n* `onCreate` and `onUpdate` (RD: \"last modified time\", non-null). Targets\n* supply the codec/native-type pair that matches their timestamp column;\n* everything else is shared so PSL `temporal.updatedAt()` and TS\n* `field.temporal.updatedAt()` lower to byte-identical contracts across\n* targets by construction.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalAuthoringPresets(input) {\n\tconst { codecId, nativeType } = input;\n\treturn {\n\t\tcreatedAt: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId,\n\t\t\t\tnativeType,\n\t\t\t\tdefault: {\n\t\t\t\t\tkind: \"function\",\n\t\t\t\t\texpression: \"now()\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tupdatedAt: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId,\n\t\t\t\tnativeType,\n\t\t\t\texecutionDefaults: {\n\t\t\t\t\tonCreate: {\n\t\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\t\tid: TIMESTAMP_NOW_GENERATOR_ID\n\t\t\t\t\t},\n\t\t\t\t\tonUpdate: {\n\t\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\t\tid: TIMESTAMP_NOW_GENERATOR_ID\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\nconst TEMPORAL_PRECISION_ARG = {\n\tname: \"precision\",\n\tkind: \"number\",\n\toptional: true,\n\tinteger: true,\n\tminimum: 0\n};\nconst TEMPORAL_ON_CREATE_ARG = {\n\tname: \"onCreate\",\n\tkind: \"option\",\n\tvalues: [\"now\"],\n\toptional: true\n};\nconst TEMPORAL_ON_UPDATE_ARG = {\n\tname: \"onUpdate\",\n\tkind: \"option\",\n\tvalues: [\"now\"],\n\toptional: true\n};\n/**\n* Selects the `timestampNow` generator descriptor for the preset's `now`\n* token. The token is preset vocabulary; the generator id never appears in a\n* user's spelling (ADR 169 — `timestampNow` is preset-only).\n*/\nfunction temporalPhaseTemplate(index) {\n\treturn {\n\t\tkind: \"select\",\n\t\tindex,\n\t\tcases: { now: {\n\t\t\tkind: \"generator\",\n\t\t\tid: TIMESTAMP_NOW_GENERATOR_ID\n\t\t} }\n\t};\n}\n/**\n* Builds a `temporal.<codec>` field preset for a codec that takes a precision\n* parameter (`pg/timestamp@1`, `pg/timestamptz@1`). Arguments change field\n* properties only — never the codec, which the caller fixes here.\n*\n* All three arguments are optional: omitting `precision` omits `typeParams`\n* entirely, and omitting a phase omits that phase (both omitted omits\n* `executionDefaults`).\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalCodecPresetWithPrecision(input) {\n\treturn {\n\t\tkind: \"fieldPreset\",\n\t\targs: [\n\t\t\tTEMPORAL_PRECISION_ARG,\n\t\t\tTEMPORAL_ON_CREATE_ARG,\n\t\t\tTEMPORAL_ON_UPDATE_ARG\n\t\t],\n\t\toutput: {\n\t\t\tcodecId: input.codecId,\n\t\t\tnativeType: input.nativeType,\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} },\n\t\t\texecutionDefaults: {\n\t\t\t\tonCreate: temporalPhaseTemplate(1),\n\t\t\t\tonUpdate: temporalPhaseTemplate(2)\n\t\t\t}\n\t\t}\n\t};\n}\n/**\n* Builds a `temporal.<codec>` field preset for a codec with no type\n* parameters (`sqlite/datetime@1`). As with the precision-bearing variant,\n* both phase arguments are optional and omitting one omits that phase.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalCodecPreset(input) {\n\treturn {\n\t\tkind: \"fieldPreset\",\n\t\targs: [TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG],\n\t\toutput: {\n\t\t\tcodecId: input.codecId,\n\t\t\tnativeType: input.nativeType,\n\t\t\texecutionDefaults: {\n\t\t\t\tonCreate: temporalPhaseTemplate(0),\n\t\t\t\tonUpdate: temporalPhaseTemplate(1)\n\t\t\t}\n\t\t}\n\t};\n}\n//#endregion\nexport { timestampNowControlDescriptor as a, temporalCodecPresetWithPrecision as i, temporalAuthoringPresets as n, temporalCodecPreset as r, TIMESTAMP_NOW_GENERATOR_ID as t };\n\n//# sourceMappingURL=timestamp-now-generator-DRXygu32.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,6BAA6B;;;;;;;;;;;;AAYnC,SAAS,gCAAgC;CACxC,OAAO;EACN,IAAI;EACJ,oBAAoB;GACnB,UAAU;IACT,MAAM;IACN,IAAI;GACL;GACA,UAAU;IACT,MAAM;IACN,IAAI;GACL;EACD;CACD;AACD;;;;;;;;;;;;AAYA,SAAS,yBAAyB,OAAO;CACxC,MAAM,EAAE,SAAS,eAAe;CAChC,OAAO;EACN,WAAW;GACV,MAAM;GACN,QAAQ;IACP;IACA;IACA,SAAS;KACR,MAAM;KACN,YAAY;IACb;GACD;EACD;EACA,WAAW;GACV,MAAM;GACN,QAAQ;IACP;IACA;IACA,mBAAmB;KAClB,UAAU;MACT,MAAM;MACN,IAAI;KACL;KACA,UAAU;MACT,MAAM;MACN,IAAI;KACL;IACD;GACD;EACD;CACD;AACD;AACA,MAAM,yBAAyB;CAC9B,MAAM;CACN,MAAM;CACN,UAAU;CACV,SAAS;CACT,SAAS;AACV;AACA,MAAM,yBAAyB;CAC9B,MAAM;CACN,MAAM;CACN,QAAQ,CAAC,KAAK;CACd,UAAU;AACX;AACA,MAAM,yBAAyB;CAC9B,MAAM;CACN,MAAM;CACN,QAAQ,CAAC,KA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