@prisma/orm-framework 8.0.0-rc.24-dev.28 → 8.0.0-rc.24-dev.30

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 (119) hide show
  1. package/README.md +2 -0
  2. package/dist/{authoring-DnYn5EZT.mjs → authoring-BoRTq-7r.mjs} +2 -2
  3. package/dist/{authoring-DnYn5EZT.mjs.map → authoring-BoRTq-7r.mjs.map} +1 -1
  4. package/dist/{binder-CMy3WM5A-gjYNJqla.d.mts → binder-CMy3WM5A-BjkRdpH6.d.mts} +4 -4
  5. package/dist/{binder-CMy3WM5A-gjYNJqla.d.mts.map → binder-CMy3WM5A-BjkRdpH6.d.mts.map} +1 -1
  6. package/dist/boolean-C37kSXDF.mjs +14 -0
  7. package/dist/boolean-C37kSXDF.mjs.map +1 -0
  8. package/dist/boolean-CcUSuhCU.d.mts +9 -0
  9. package/dist/boolean-CcUSuhCU.d.mts.map +1 -0
  10. package/dist/{codec-yFwW7XRh.mjs → codec-CBJNOQS4.mjs} +2 -2
  11. package/dist/{codec-yFwW7XRh.mjs.map → codec-CBJNOQS4.mjs.map} +1 -1
  12. package/dist/{components-BaV9iCkq.mjs → components-Bx7dm2HO.mjs} +2 -2
  13. package/dist/{components-BaV9iCkq.mjs.map → components-Bx7dm2HO.mjs.map} +1 -1
  14. package/dist/components.d.mts +5 -5
  15. package/dist/components.mjs +7 -8
  16. package/dist/components__authoring.mjs +2 -2
  17. package/dist/components__codec.mjs +1 -1
  18. package/dist/components__components.mjs +2 -2
  19. package/dist/components__control.d.mts +1 -1
  20. package/dist/components__control.mjs +2 -2
  21. package/dist/components__emission.d.mts +3 -3
  22. package/dist/components__emission.mjs +1 -2
  23. package/dist/{config-types-D0mYyP62.mjs → config-types-DlaG0ylV.mjs} +4 -2
  24. package/dist/config-types-DlaG0ylV.mjs.map +1 -0
  25. package/dist/{config-types-Ck3UXVIU.d.mts → config-types-DvM9eXG7.d.mts} +6 -2
  26. package/dist/{config-types-Ck3UXVIU.d.mts.map → config-types-DvM9eXG7.d.mts.map} +1 -1
  27. package/dist/config.d.mts +1 -1
  28. package/dist/config.mjs +1 -1
  29. package/dist/config__config-types.d.mts +1 -1
  30. package/dist/config__config-types.mjs +1 -1
  31. package/dist/contract-authoring.mjs +3 -3
  32. package/dist/{control-BeXOxtXA-CoPQgVyR.d.mts → control-BeXOxtXA-D1DDBvDL.d.mts} +2 -2
  33. package/dist/{control-BeXOxtXA-CoPQgVyR.d.mts.map → control-BeXOxtXA-D1DDBvDL.d.mts.map} +1 -1
  34. package/dist/control-DI1fnOUO.d.mts +1 -0
  35. package/dist/{control-B0KO727Y.mjs → control-DNwP6V2m.mjs} +3 -3
  36. package/dist/{control-B0KO727Y.mjs.map → control-DNwP6V2m.mjs.map} +1 -1
  37. package/dist/{control-MllEQmML-IlhSvGbE.mjs → control-MllEQmML-aKdJLwRB.mjs} +2 -2
  38. package/dist/{control-MllEQmML-IlhSvGbE.mjs.map → control-MllEQmML-aKdJLwRB.mjs.map} +1 -1
  39. package/dist/{control-B3QHYJcv.d.mts → control-rzZBO0wp.d.mts} +116 -121
  40. package/dist/control-rzZBO0wp.d.mts.map +1 -0
  41. package/dist/decimal-CetFpCr5.mjs +49 -0
  42. package/dist/decimal-CetFpCr5.mjs.map +1 -0
  43. package/dist/decimal-DpMh1SwW.d.mts +15 -0
  44. package/dist/decimal-DpMh1SwW.d.mts.map +1 -0
  45. package/dist/{declarations-8CRDqUTt-B0YG2lqY.mjs → declarations-8CRDqUTt-BZ6aspIz.mjs} +2 -2
  46. package/dist/{declarations-8CRDqUTt-B0YG2lqY.mjs.map → declarations-8CRDqUTt-BZ6aspIz.mjs.map} +1 -1
  47. package/dist/{dist-D1f6xr7F.mjs → dist-s8Mn2iIF.mjs} +7 -10
  48. package/dist/dist-s8Mn2iIF.mjs.map +1 -0
  49. package/dist/{emission-DGYCaKjl.d.mts → emission-ZgkI1aFl.d.mts} +1 -1
  50. package/dist/{emission-types-bX2HmNSC-vaRddb1_.d.mts → emission-types-BuZVDb1i-BnSb9rsQ.d.mts} +6 -42
  51. package/dist/emission-types-BuZVDb1i-BnSb9rsQ.d.mts.map +1 -0
  52. package/dist/errors.d.mts +4 -4
  53. package/dist/errors.mjs +3 -3
  54. package/dist/errors__control.d.mts +2 -2
  55. package/dist/errors__control.mjs +1 -1
  56. package/dist/errors__execution.d.mts +1 -1
  57. package/dist/errors__execution.mjs +1 -1
  58. package/dist/errors__migration.d.mts +1 -1
  59. package/dist/errors__migration.mjs +1 -1
  60. package/dist/{execution-DLAnWNAh.d.mts → execution-Bbc4v1Vn.d.mts} +2 -2
  61. package/dist/{execution-DLAnWNAh.d.mts.map → execution-Bbc4v1Vn.d.mts.map} +1 -1
  62. package/dist/{execution-DE_55Rj3.mjs → execution-DMqI5fFP.mjs} +2 -2
  63. package/dist/{execution-DE_55Rj3.mjs.map → execution-DMqI5fFP.mjs.map} +1 -1
  64. package/dist/{expressions-BlhT51Ib-CQCMuQD8.mjs → expressions-BlhT51Ib-DfkeWOwr.mjs} +2 -2
  65. package/dist/{expressions-BlhT51Ib-CQCMuQD8.mjs.map → expressions-BlhT51Ib-DfkeWOwr.mjs.map} +1 -1
  66. package/dist/{generator-functions-CXbQfvYu-BIFU1Ryx.mjs → generator-functions-VMolCOGa-xY11fV0Q.mjs} +4 -3
  67. package/dist/generator-functions-VMolCOGa-xY11fV0Q.mjs.map +1 -0
  68. package/dist/json-Cjj5_v0y.mjs +67 -0
  69. package/dist/json-Cjj5_v0y.mjs.map +1 -0
  70. package/dist/json-oOHvzn6v.d.mts +18 -0
  71. package/dist/json-oOHvzn6v.d.mts.map +1 -0
  72. package/dist/{migration-rWN1KSXH.mjs → migration-BfPqhbjG.mjs} +2 -2
  73. package/dist/{migration-rWN1KSXH.mjs.map → migration-BfPqhbjG.mjs.map} +1 -1
  74. package/dist/{migration-KEyQBpKF.d.mts → migration-BiqyI92H.d.mts} +2 -2
  75. package/dist/{migration-KEyQBpKF.d.mts.map → migration-BiqyI92H.d.mts.map} +1 -1
  76. package/dist/{parse-D-B_nrfC-FsqZwLif.mjs → parse-D-B_nrfC-agY84gQk.mjs} +3 -3
  77. package/dist/{parse-D-B_nrfC-FsqZwLif.mjs.map → parse-D-B_nrfC-agY84gQk.mjs.map} +1 -1
  78. package/dist/{parse-djL5wker-Bx0JH2c_.d.mts → parse-djL5wker-DNAOL0Cj.d.mts} +2 -2
  79. package/dist/{parse-djL5wker-Bx0JH2c_.d.mts.map → parse-djL5wker-DNAOL0Cj.d.mts.map} +1 -1
  80. package/dist/psl-parser.d.mts +3 -3
  81. package/dist/psl-parser.mjs +5 -5
  82. package/dist/psl-parser__format.d.mts +1 -1
  83. package/dist/psl-parser__format.mjs +3 -3
  84. package/dist/psl-parser__interpret.d.mts +3 -3
  85. package/dist/psl-parser__interpret.mjs +2 -2
  86. package/dist/psl-parser__syntax.d.mts +1 -1
  87. package/dist/psl-parser__syntax.mjs +3 -3
  88. package/dist/psl-printer.mjs +5 -2
  89. package/dist/psl-printer.mjs.map +1 -1
  90. package/dist/target-package-config.d.mts +2 -0
  91. package/dist/target-package-config.mjs +2 -0
  92. package/dist/target-package-config__type-declarations.d.mts +2 -0
  93. package/dist/target-package-config__type-declarations.mjs +2 -0
  94. package/dist/{temporal-type-aliases-CFh3BW2a-DOlmiuQn.mjs → temporal-type-aliases-CFh3BW2a-CeZV7A5h.mjs} +2 -2
  95. package/dist/{temporal-type-aliases-CFh3BW2a-DOlmiuQn.mjs.map → temporal-type-aliases-CFh3BW2a-CeZV7A5h.mjs.map} +1 -1
  96. package/dist/ts-render.mjs +1 -1
  97. package/dist/{type-constructor-calls-Bfg5ojed-Ld7LE20u.mjs → type-constructor-calls-Bfg5ojed-DlLeoRYW.mjs} +4 -4
  98. package/dist/{type-constructor-calls-Bfg5ojed-Ld7LE20u.mjs.map → type-constructor-calls-Bfg5ojed-DlLeoRYW.mjs.map} +1 -1
  99. package/dist/type-declarations-CPPGpPSj.mjs +58 -0
  100. package/dist/type-declarations-CPPGpPSj.mjs.map +1 -0
  101. package/dist/type-declarations-C_77eFnt.d.mts +11 -0
  102. package/dist/type-declarations-C_77eFnt.d.mts.map +1 -0
  103. package/dist/type-implementations.d.mts +4 -1
  104. package/dist/type-implementations.mjs +4 -1
  105. package/dist/type-implementations__boolean.d.mts +2 -0
  106. package/dist/type-implementations__boolean.mjs +2 -0
  107. package/dist/type-implementations__decimal.d.mts +2 -0
  108. package/dist/type-implementations__decimal.mjs +2 -0
  109. package/dist/type-implementations__json.d.mts +2 -0
  110. package/dist/type-implementations__json.mjs +2 -0
  111. package/package.json +24 -18
  112. package/dist/config-types-D0mYyP62.mjs.map +0 -1
  113. package/dist/control-B0WmeKXX.d.mts +0 -1
  114. package/dist/control-B3QHYJcv.d.mts.map +0 -1
  115. package/dist/dist-D1f6xr7F.mjs.map +0 -1
  116. package/dist/emission-CeoAV9mj.mjs +0 -26
  117. package/dist/emission-CeoAV9mj.mjs.map +0 -1
  118. package/dist/emission-types-bX2HmNSC-vaRddb1_.d.mts.map +0 -1
  119. package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"temporal-type-aliases-CFh3BW2a-DOlmiuQn.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/temporal-type-aliases-CFh3BW2a.mjs"],"sourcesContent":["import { t as assembleDataTypes } from \"./data-type-V6mcDhcG.mjs\";\nimport { n as runtimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { tsQuotedTextSource, tsTemplateText } from \"@internal/ts-render\";\nimport { invariant } from \"@internal/utils/assertions\";\nimport { notOk, ok } from \"@internal/utils/result\";\n//#region src/shared/framework-authoring.ts\n/** The descriptor kinds a `type` namespace holds as leaves. */\nconst AUTHORING_TYPE_DESCRIPTOR_KINDS = [\n\t\"typeConstructor\",\n\t\"typeAlias\",\n\t\"typeChoice\"\n];\nconst AUTHORING_WARNING_BATCH_THRESHOLD = 5;\n/**\n* Emits collected authoring warnings once per build, grouped by `code`:\n* a group at or below the threshold itemizes every `message`; above it,\n* one summary — `\"<count> <summary>\"` followed by the `item` lines — so\n* a build with many hits of one kind does not wall-of-text, and warnings\n* of different codes never batch into each other's summary.\n*/\nfunction flushAuthoringWarnings(warnings) {\n\tconst groups = /* @__PURE__ */ new Map();\n\tfor (const warning of warnings) {\n\t\tconst key = JSON.stringify([warning.code, warning.summary]);\n\t\tconst group = groups.get(key) ?? [];\n\t\tgroup.push(warning);\n\t\tgroups.set(key, group);\n\t}\n\tfor (const group of groups.values()) {\n\t\tconst first = group[0];\n\t\tif (first === void 0) continue;\n\t\tif (group.length <= AUTHORING_WARNING_BATCH_THRESHOLD) {\n\t\t\tfor (const warning of group) process.emitWarning(warning.message, { code: warning.code });\n\t\t\tcontinue;\n\t\t}\n\t\tprocess.emitWarning(`${group.length} ${first.summary}\\n${group.map((w) => ` - ${w.item}`).join(\"\\n\")}`, { code: first.code });\n\t}\n}\nfunction classifyEnumMemberType(values) {\n\tlet sawText = false;\n\tlet sawInt = false;\n\tfor (const key of Object.keys(values)) {\n\t\tconst value = values[key];\n\t\tif (value === void 0 || typeof value === \"string\") sawText = true;\n\t\telse if (typeof value === \"number\" && Number.isInteger(value)) sawInt = true;\n\t\telse return null;\n\t}\n\tif (sawText && sawInt) return null;\n\tif (sawText) return \"text\";\n\tif (sawInt) return \"int\";\n\treturn null;\n}\n/**\n* Resolves the codec id for an `enum` block. When `@@type` is absent, the codec\n* is inferred from the members via {@link classifyEnumMemberType}; otherwise the\n* explicit `@@type(\"codec\")` argument is parsed. Pushes the appropriate\n* diagnostic and returns `undefined` when neither yields a codec. `codecSpan` is\n* the span downstream codec-validation diagnostics should anchor to. Shared by\n* every family's enum factory so inference and the explicit path stay identical.\n*/\nfunction resolveEnumCodecId(block, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst typeAttr = block.attributes[\"type\"];\n\tif (typeAttr === void 0) {\n\t\tconst inferredKind = classifyEnumMemberType(block.values);\n\t\tif (inferredKind === null || ctx.enumInferenceCodecs === void 0) {\n\t\t\tctx.diagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_CANNOT_INFER_TYPE\",\n\t\t\t\tmessage: `cannot infer @@type for enum \"${block.name}\"; add an explicit @@type(...)`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: block.span\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\treturn {\n\t\t\tcodecId: ctx.enumInferenceCodecs[inferredKind],\n\t\t\tcodecSpan: block.span\n\t\t};\n\t}\n\tconst codecId = typeAttr.args[\"codecId\"];\n\tinvariant(typeof codecId === \"string\", \"@@type on an enum block parses one string argument\");\n\treturn {\n\t\tcodecId,\n\t\tcodecSpan: typeAttr.argSpans?.[\"codecId\"] ?? typeAttr.span\n\t};\n}\n/** Refuses the `authoring.field` key, which held field presets before Prisma 8 removed them. A component built against the old types would otherwise lose its presets silently. */\nfunction assertNoAuthoringFieldNamespace(componentId, authoring) {\n\tif (authoring === void 0 || !Object.hasOwn(authoring, \"field\")) return;\n\tthrow runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Component \"${componentId}\" contributes authoring.field, which Prisma 8 removed with field presets. Contribute a type alias (kind: 'typeAlias') or a type constructor in authoring.type.`);\n}\nfunction isAuthoringArgRef(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"arg\") return false;\n\tconst { index } = value;\n\treturn typeof index === \"number\" && Number.isInteger(index) && index >= 0;\n}\nfunction isAuthoringTemplateRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction isAuthoringTypeConstructorDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"typeConstructor\";\n}\nfunction isAuthoringTypeAliasDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"typeAlias\";\n}\nfunction isAuthoringTypeChoiceDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"typeChoice\";\n}\n/** Whether `value` is a leaf of a `type` namespace: a type constructor, a type alias or a type choice. */\nfunction isAuthoringTypeDescriptor(value) {\n\treturn isAuthoringTypeConstructorDescriptor(value) || isAuthoringTypeAliasDescriptor(value) || isAuthoringTypeChoiceDescriptor(value);\n}\n/** The type constructor at `path` in the contributions' type namespace, or `undefined` when none is there. */\nfunction getAuthoringTypeConstructor(contributions, path) {\n\tlet current = contributions?.type;\n\tfor (const segment of path) {\n\t\tif (typeof current !== \"object\" || current === null || \"kind\" in current) return;\n\t\tcurrent = current[segment];\n\t}\n\treturn current !== void 0 && isAuthoringTypeConstructorDescriptor(current) ? current : void 0;\n}\nfunction isAuthoringEntityTypeDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"entity\";\n}\nfunction isAuthoringPslBlockDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"pslBlock\";\n}\nfunction isAuthoringModelAttributeDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"modelAttribute\";\n}\nfunction isCopyableNamespaceObject(value) {\n\tif (typeof value !== \"object\" || value === null || Array.isArray(value)) return false;\n\tconst proto = Object.getPrototypeOf(value);\n\treturn proto === Object.prototype || proto === null;\n}\nfunction isWellFormedDescriptor(value, descriptorKinds) {\n\tif (typeof value !== \"object\" || value === null || !(\"kind\" in value)) return false;\n\tconst kind = value.kind;\n\tif (typeof kind !== \"string\" || !(typeof descriptorKinds === \"string\" ? [descriptorKinds] : descriptorKinds).includes(kind)) return false;\n\tswitch (kind) {\n\t\tcase \"typeConstructor\": {\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\treturn typeof output === \"object\" && output !== null;\n\t\t}\n\t\tcase \"typeChoice\": return \"args\" in value && Array.isArray(value.args) && \"choices\" in value && Array.isArray(value.choices);\n\t\tcase \"typeAlias\": {\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\tif (typeof output !== \"object\" || output === null || !(\"type\" in output)) return false;\n\t\t\treturn typeof output.type === \"object\" && output.type !== null;\n\t\t}\n\t\tcase \"entity\": {\n\t\t\tif (!(\"discriminator\" in value) || typeof value.discriminator !== \"string\") return false;\n\t\t\tif (value.discriminator.length === 0) return false;\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\tif (typeof output !== \"object\" || output === null) return false;\n\t\t\tconst factory = \"factory\" in output ? output.factory : void 0;\n\t\t\tconst template = \"template\" in output ? output.template : void 0;\n\t\t\treturn typeof factory === \"function\" || template !== void 0;\n\t\t}\n\t\tcase \"pslBlock\": {\n\t\t\tif (!(\"keyword\" in value) || typeof value.keyword !== \"string\" || value.keyword.length === 0) return false;\n\t\t\tif (!(\"discriminator\" in value) || typeof value.discriminator !== \"string\" || value.discriminator.length === 0) return false;\n\t\t\tif (!(\"name\" in value)) return false;\n\t\t\tconst name = value.name;\n\t\t\tif (typeof name !== \"object\" || name === null) return false;\n\t\t\tif (!(\"required\" in name) || typeof name.required !== \"boolean\") return false;\n\t\t\tif (!(\"spec\" in value) || typeof value.spec !== \"function\") return false;\n\t\t\tif (!(\"attributes\" in value) || value.attributes === void 0) return true;\n\t\t\tconst attributes = value.attributes;\n\t\t\tif (typeof attributes !== \"object\" || attributes === null || Array.isArray(attributes)) return false;\n\t\t\treturn Object.values(attributes).every((factory) => typeof factory === \"function\");\n\t\t}\n\t\tcase \"modelAttribute\":\n\t\t\tif (!(\"attribute\" in value) || typeof value.attribute !== \"string\" || value.attribute.length === 0) return false;\n\t\t\tif (!(\"spec\" in value)) return false;\n\t\t\treturn \"lower\" in value && typeof value.lower === \"function\";\n\t\tdefault: return false;\n\t}\n}\nfunction deepCopyNamespace(source, descriptorKind) {\n\tconst copy = {};\n\tfor (const [key, value] of Object.entries(source)) copy[key] = isCopyableNamespaceObject(value) && !isWellFormedDescriptor(value, descriptorKind) ? deepCopyNamespace(value, descriptorKind) : value;\n\treturn copy;\n}\n/**\n* Merges `source` into `target` recursively at the descriptor-namespace\n* level. `descriptorKind` is the `kind` value, or values, ('typeConstructor'\n* and 'typeAlias', 'entity', or 'pslBlock') that identifies a descriptor\n* (terminal merge point; same-path registrations across components are\n* reported as duplicates) as opposed to a sub-namespace (recursion target).\n*\n* Path segments are validated against prototype-pollution names\n* (`__proto__`, `constructor`, `prototype`). A value that is neither a\n* recognized leaf nor a plain object — e.g. a malformed descriptor\n* where the canonical leaf guard rejected it for missing `output` —\n* is reported as an invalid contribution rather than recursed into,\n* which would either silently mangle state or infinite-loop on\n* primitive properties.\n*\n* Within-registry duplicate detection is this walker's job;\n* cross-registry detection runs separately via\n* `assertNoCrossRegistryCollisions` after merging completes.\n*/\nfunction mergeAuthoringNamespaces(target, source, path, descriptorKind, label) {\n\tconst assertSafePath = (currentPath) => {\n\t\tconst blockedSegment = currentPath.find((segment) => segment === \"__proto__\" || segment === \"constructor\" || segment === \"prototype\");\n\t\tif (blockedSegment) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring ${label} helper \"${currentPath.join(\".\")}\". Helper path segments must not use \"${blockedSegment}\".`);\n\t};\n\tfor (const [key, sourceValue] of Object.entries(source)) {\n\t\tconst currentPath = [...path, key];\n\t\tassertSafePath(currentPath);\n\t\tconst hasExistingValue = Object.hasOwn(target, key);\n\t\tconst existingValue = hasExistingValue ? target[key] : void 0;\n\t\tif (!hasExistingValue) {\n\t\t\ttarget[key] = isCopyableNamespaceObject(sourceValue) && !isWellFormedDescriptor(sourceValue, descriptorKind) ? deepCopyNamespace(sourceValue, descriptorKind) : sourceValue;\n\t\t\tcontinue;\n\t\t}\n\t\tconst existingIsLeaf = isWellFormedDescriptor(existingValue, descriptorKind);\n\t\tconst sourceIsLeaf = isWellFormedDescriptor(sourceValue, descriptorKind);\n\t\tif (existingIsLeaf || sourceIsLeaf) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate authoring ${label} helper \"${currentPath.join(\".\")}\". Helper names must be unique across composed packs.`);\n\t\tif (!isCopyableNamespaceObject(existingValue) || !isCopyableNamespaceObject(sourceValue)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring ${label} helper \"${currentPath.join(\".\")}\". Expected a sub-namespace object or a recognized descriptor; received a malformed value.`);\n\t\tmergeAuthoringNamespaces(existingValue, sourceValue, currentPath, descriptorKind, label);\n\t}\n}\nconst ATTRIBUTE_SPEC_LEVELS = [\"model\", \"field\"];\nfunction mergeAuthoringAttributeSpecs(target, source, contributedBy, owners) {\n\tconst invalidContribution = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring attributeSpecs contribution from descriptor \"${contributedBy}\". ${detail}`);\n\tif (!isCopyableNamespaceObject(source)) throw invalidContribution(\"Expected a record carrying a \\\"model\\\" and a \\\"field\\\" level.\");\n\tfor (const level of ATTRIBUTE_SPEC_LEVELS) {\n\t\tconst contributed = source[level];\n\t\tif (!isCopyableNamespaceObject(contributed)) throw invalidContribution(`The \"${level}\" level must be a record of spec factories keyed by attribute name.`);\n\t\tfor (const [attribute, factory] of Object.entries(contributed)) {\n\t\t\tconst entryPath = `${level}.${attribute}`;\n\t\t\tconst invalidEntry = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring attributeSpecs entry \"${entryPath}\" contributed by descriptor \"${contributedBy}\". ${detail}`);\n\t\t\tif (attribute === \"__proto__\" || attribute === \"constructor\" || attribute === \"prototype\") throw invalidEntry(`Attribute names must not use \"${attribute}\".`);\n\t\t\tif (typeof factory !== \"function\") throw invalidEntry(\"Each entry must be a spec factory function.\");\n\t\t\tconst existingOwner = owners.get(entryPath);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate authoring attributeSpecs entry \"${entryPath}\". Descriptor \"${contributedBy}\" conflicts with \"${existingOwner}\". Each attribute name may be claimed once per level.`);\n\t\t\towners.set(entryPath, contributedBy);\n\t\t\ttarget[level][attribute] = factory;\n\t\t}\n\t}\n}\n/**\n* Collects the full dotted paths of every well-formed descriptor of\n* `descriptorKind` in a raw contribution tree, using the same boundary\n* classification as {@link mergeAuthoringNamespaces}. Lets assembly-level\n* callers attribute each contributed path to its contributing component\n* before merging, so a same-path collision can be reported naming both\n* contributors.\n*/\nfunction collectContributedDescriptorPaths(namespace, descriptorKind, path = []) {\n\tconst paths = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isWellFormedDescriptor(value, descriptorKind)) {\n\t\t\tpaths.push(currentPath.join(\".\"));\n\t\t\tcontinue;\n\t\t}\n\t\tif (isCopyableNamespaceObject(value)) paths.push(...collectContributedDescriptorPaths(value, descriptorKind, currentPath));\n\t}\n\treturn paths;\n}\nfunction visitTemplateArgRefs(template, visit) {\n\tif (template === void 0) return;\n\tif (isAuthoringArgRef(template)) {\n\t\tvisit(template);\n\t\treturn;\n\t}\n\tif (Array.isArray(template)) {\n\t\tfor (const value of template) visitTemplateArgRefs(value, visit);\n\t\treturn;\n\t}\n\tif (typeof template === \"object\" && template !== null) for (const value of Object.values(template)) visitTemplateArgRefs(value, visit);\n}\n/**\n* Boundary validation for a contributed authoring type namespace, called\n* per contributing component at assembly (which supplies `contributedBy`\n* for attribution). Rejects what the types cannot express — entity-ref\n* constructors are skipped (their output derives from the referenced\n* entity): every `typeParams` arg-ref must point at a declared argument\n* index.\n*/\nfunction assertResolvableTypeConstructorTemplates(namespace, contributedBy, path = []) {\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, name];\n\t\tif (isAuthoringTypeAliasDescriptor(value)) {\n\t\t\tfor (const [key, template] of Object.entries(value.output.type.typeParams ?? {})) visitTemplateArgRefs(template, () => {\n\t\t\t\tthrow runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring type alias \"${currentPath.join(\".\")}\" contributed by descriptor \"${contributedBy}\". output.type.typeParams.${key} references an argument, but a type alias takes none. Write the value itself.`);\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (isAuthoringTypeChoiceDescriptor(value)) continue;\n\t\tif (!isAuthoringTypeConstructorDescriptor(value)) {\n\t\t\tassertResolvableTypeConstructorTemplates(value, contributedBy, currentPath);\n\t\t\tcontinue;\n\t\t}\n\t\tif (value.entityRefArg !== void 0) continue;\n\t\tconst args = value.args ?? [];\n\t\tconst invalid = (detail) => /* @__PURE__ */ new Error(`Invalid authoring type constructor \"${currentPath.join(\".\")}\" contributed by descriptor \"${contributedBy}\". ${detail}`);\n\t\tfor (const [key, template] of Object.entries(value.output.typeParams ?? {})) visitTemplateArgRefs(template, (ref) => {\n\t\t\tif (args[ref.index] === void 0) throw invalid(`output.typeParams.${key} references argument ${ref.index}, but the constructor declares ${args.length} argument(s). Declare the argument or correct the reference index.`);\n\t\t});\n\t}\n}\nfunction collectDescriptorPaths(namespace, isLeaf, path = []) {\n\tconst paths = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tpaths.push(currentPath.join(\".\"));\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) paths.push(...collectDescriptorPaths(value, isLeaf, currentPath));\n\t}\n\treturn paths;\n}\nfunction collectDescriptorEntries(namespace, isLeaf, descriptorKind, label, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, descriptorKind)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring ${label} contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the ${label} descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tif (value.discriminator.length > 0) entries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.discriminator\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tif ((record[\"kind\"] !== void 0 || record[\"keyword\"] !== void 0 || record[\"discriminator\"] !== void 0) && !isLeaf(value)) {\n\t\t\t\tconst hasKind = record[\"kind\"] === \"pslBlock\";\n\t\t\t\tconst hasKeyword = typeof record[\"keyword\"] === \"string\";\n\t\t\t\tconst hasDiscriminator = typeof record[\"discriminator\"] === \"string\";\n\t\t\t\tif (hasKind || hasKeyword && hasDiscriminator) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring ${label} contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the ${label} descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\t}\n\t\t\tentries.push(...collectDescriptorEntries(value, isLeaf, descriptorKind, label, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Throws when two or more entries in the same namespace share a key. A\n* duplicate key makes dispatch ambiguous — the caller's lookup dispatches by\n* this key, so one entry would silently shadow the other. Catch duplicates\n* before building any dispatch map.\n*\n* `label` (e.g. `'pslBlock'`, `'entityType'`) names which namespace the\n* duplicate was found in and is carried in the structured error metadata;\n* the key itself is always called `key` in both the message and the\n* metadata, since what it semantically represents (a discriminator for\n* `entityType`, the parser's dispatch keyword for `pslBlock`) is the\n* caller's concern, not this function's.\n*/\nfunction assertUniqueDiscriminators(entries, label) {\n\tconst seen = /* @__PURE__ */ new Map();\n\tfor (const { path, discriminator: key } of entries) {\n\t\tconst existing = seen.get(key);\n\t\tif (existing !== void 0) throw runtimeError(\"RUNTIME.DUPLICATE_AUTHORING_DISCRIMINATOR\", `Duplicate ${label} key \"${key}\" registered at both \"${existing}\" and \"${path}\". Each ${label} contribution must use a unique key.`, {\n\t\t\tlabel,\n\t\t\tkey,\n\t\t\texistingPath: existing,\n\t\t\tpath\n\t\t});\n\t\tseen.set(key, path);\n\t}\n}\nfunction collectPslBlockDescriptorEntries(namespace, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringPslBlockDescriptor(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, \"pslBlock\")) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring pslBlock contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the pslBlock descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.discriminator,\n\t\t\t\tkeyword: value.keyword\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tconst hasKind = record[\"kind\"] === \"pslBlock\";\n\t\t\tconst hasKeyword = typeof record[\"keyword\"] === \"string\";\n\t\t\tconst hasDiscriminator = typeof record[\"discriminator\"] === \"string\";\n\t\t\tif (hasKind || hasKeyword && hasDiscriminator) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring pslBlock contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the pslBlock descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push(...collectPslBlockDescriptorEntries(value, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Every `pslBlockDescriptors` entry requires a matching `entityTypes` factory\n* with the same discriminator. An `entityTypes` factory may stand alone (e.g.\n* `enum`, reachable from the TypeScript builder without any PSL block).\n*\n* Uniqueness for pslBlock entries is keyed on **keyword**, not discriminator:\n* several keywords (e.g. `policy_select`/`policy_insert`) may legitimately\n* share one discriminator, routing to the same `entityTypes` factory and the\n* same `entries[discriminator]` slot — that N:1 shape is exactly what lets\n* one entity kind be authored through several PSL keywords. What must stay\n* unique is the keyword itself, since that's what the parser dispatches on.\n*/\nfunction assertPslBlocksHaveFactories(entityTypeNamespace, pslBlockNamespace) {\n\tconst blockEntries = collectPslBlockDescriptorEntries(pslBlockNamespace);\n\tconst entityEntries = collectDescriptorEntries(entityTypeNamespace, isAuthoringEntityTypeDescriptor, \"entity\", \"entityType\");\n\tassertUniqueDiscriminators(blockEntries.map((entry) => ({\n\t\tpath: entry.path,\n\t\tdiscriminator: entry.keyword\n\t})), \"pslBlock\");\n\tassertUniqueDiscriminators(entityEntries, \"entityType\");\n\tconst entityDiscriminators = new Set(entityEntries.map((entry) => entry.discriminator));\n\tfor (const block of blockEntries) if (!entityDiscriminators.has(block.discriminator)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Incomplete extension contribution: pslBlock helper \"${block.path}\" registers discriminator \"${block.discriminator}\" but no entityType contribution shares that discriminator. An extension-contributed PSL block requires a matching entityType factory so the parsed AST node can lower to an IR class instance; add an entityType helper with discriminator \"${block.discriminator}\".`);\n}\nfunction collectModelAttributeEntries(namespace, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringModelAttributeDescriptor(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, \"modelAttribute\")) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring modelAttribute contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/attribute) but does not satisfy the modelAttribute descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.attribute\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tif (typeof record[\"attribute\"] === \"string\" && \"spec\" in record) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring modelAttribute contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/attribute) but does not satisfy the modelAttribute descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push(...collectModelAttributeEntries(value, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Throws when two modelAttribute contributions — at any paths, even\n* different ones — claim the same bare `@@` attribute name. The family\n* interpreter dispatches by attribute name, not by registration path, so\n* two descriptors claiming the same name would have one silently shadow\n* the other.\n*/\nfunction assertUniqueModelAttributeNames(entries) {\n\tconst seen = /* @__PURE__ */ new Map();\n\tfor (const { path, discriminator: attribute } of entries) {\n\t\tconst existing = seen.get(attribute);\n\t\tif (existing !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate modelAttribute \"${attribute}\" registered at both \"${existing}\" and \"${path}\". Each modelAttribute contribution must claim a unique attribute name.`);\n\t\tseen.set(attribute, path);\n\t}\n}\nfunction assertNoCrossRegistryCollisions(typeNamespace, entityTypeNamespace = {}, pslBlockNamespace = {}, modelAttributeNamespace = {}) {\n\tconst typePaths = new Set(collectDescriptorPaths(typeNamespace, isAuthoringTypeDescriptor));\n\tconst entityPaths = new Set(collectDescriptorPaths(entityTypeNamespace, isAuthoringEntityTypeDescriptor));\n\tfor (const entityPath of entityPaths) if (typePaths.has(entityPath)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Ambiguous authoring registry path \"${entityPath}\". The same path is registered as an entity contribution AND as a type constructor or type alias; PSL resolution would be ambiguous. Register each path in only one of authoringContributions.type / authoringContributions.entityTypes.`);\n\tassertPslBlocksHaveFactories(entityTypeNamespace, pslBlockNamespace);\n\tassertUniqueModelAttributeNames(collectModelAttributeEntries(modelAttributeNamespace));\n}\nfunction collectDescriptorNodes(namespace, isLeaf, path = []) {\n\tconst nodes = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tnodes.push([currentPath.join(\".\"), value]);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) nodes.push(...collectDescriptorNodes(value, isLeaf, currentPath));\n\t}\n\treturn nodes;\n}\nfunction resolveAuthoringTemplateValue(template, args) {\n\tif (template === void 0) return;\n\tif (isAuthoringArgRef(template)) return args[template.index];\n\tif (Array.isArray(template)) return template.map((value) => resolveAuthoringTemplateValue(value, args));\n\tif (typeof template === \"object\" && template !== null) {\n\t\tconst resolved = {};\n\t\tfor (const [key, value] of Object.entries(template)) {\n\t\t\tconst resolvedValue = resolveAuthoringTemplateValue(value, args);\n\t\t\tif (resolvedValue !== void 0) resolved[key] = resolvedValue;\n\t\t}\n\t\treturn resolved;\n\t}\n\treturn template;\n}\nfunction validateAuthoringHelperArguments(helperPath, descriptors, args) {\n\tconst expected = descriptors ?? [];\n\tconst minimumArgs = expected.reduce((count, descriptor, index) => descriptor.optional ? count : index + 1, 0);\n\tif (args.length < minimumArgs || args.length > expected.length) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${helperPath} expects ${minimumArgs === expected.length ? expected.length : `${minimumArgs}-${expected.length}`} argument(s), received ${args.length}`);\n\texpected.forEach((descriptor, index) => {\n\t\tif (args[index] === void 0 && !descriptor.optional) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${argumentLabel(helperPath, descriptor, index)} is missing`);\n\t});\n}\nfunction argumentLabel(helperPath, descriptor, index) {\n\treturn descriptor.name === void 0 ? `Authoring helper argument at ${helperPath}[${index}]` : `Argument \"${descriptor.name}\" of ${helperPath}`;\n}\nfunction argumentIndexOf(template) {\n\tlet index;\n\tvisitTemplateArgRefs(template, (ref) => {\n\t\tindex ??= ref.index;\n\t});\n\treturn index;\n}\nfunction issueKey(issue) {\n\tconst [first] = issue.path ?? [];\n\tconst key = typeof first === \"object\" && first !== null ? first.key : first;\n\treturn typeof key === \"string\" ? key : void 0;\n}\nfunction authoringTypeParamsIssue(template, typeParams, paramsSchema) {\n\tif (template.typeParams === void 0 || paramsSchema === void 0) return void 0;\n\tconst result = paramsSchema[\"~standard\"].validate(typeParams ?? {});\n\tif (result instanceof Promise) throw new InternalError(`The parameter schema of codec \"${template.codecId}\" is asynchronous; authoring requires a synchronous schema.`);\n\tconst [issue] = result.issues ?? [];\n\tif (issue === void 0) return void 0;\n\tconst key = issueKey(issue);\n\treturn {\n\t\tmessage: issue.message,\n\t\targumentIndex: key === void 0 ? void 0 : argumentIndexOf(template.typeParams[key])\n\t};\n}\n/**\n* Checks the type parameters a constructor produced against its codec's parameter schema, which is where the bounds of a data type's parameters are written. A failure names the argument the failing parameter came from.\n*/\nfunction validateAuthoringTypeParams(helperPath, template, typeParams, paramsSchema) {\n\tconst issue = authoringTypeParamsIssue(template, typeParams, paramsSchema);\n\tif (issue === void 0) return;\n\tconst { argumentIndex } = issue;\n\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", argumentIndex === void 0 ? `The type parameters of ${helperPath} are invalid: ${issue.message}` : `Authoring helper argument at ${helperPath}[${argumentIndex}] is invalid: ${issue.message}`, {\n\t\thelperPath,\n\t\t...ifDefined(\"argumentIndex\", argumentIndex)\n\t});\n}\n/**\n* {@link validateAuthoringTypeParams} for a call of the type choice `choice` that chose `chosen`: a failure names the choice's own argument the failing parameter came from, by its name and its index in the choice's arguments.\n*/\nfunction validateAuthoringTypeChoiceParams(helperPath, choice, chosen, typeParams, paramsSchema) {\n\tconst issue = authoringTypeParamsIssue(chosen.output, typeParams, paramsSchema);\n\tif (issue === void 0) return;\n\tconst name = issue.argumentIndex === void 0 ? void 0 : chosen.args?.[issue.argumentIndex]?.name;\n\tconst argumentIndex = name === void 0 ? -1 : choice.args.findIndex((argument) => argument.name === name);\n\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", argumentIndex < 0 ? `The type parameters of ${helperPath} are invalid: ${issue.message}` : `Argument \"${name}\" of ${helperPath} is invalid: ${issue.message}`, {\n\t\thelperPath,\n\t\t...ifDefined(\"argumentIndex\", argumentIndex < 0 ? void 0 : argumentIndex)\n\t});\n}\nfunction resolveAuthoringStorageTypeTemplate(template, args) {\n\tconst typeParams = template.typeParams === void 0 ? void 0 : resolveAuthoringTemplateValue(template.typeParams, args);\n\tif (typeParams !== void 0 && !isAuthoringTemplateRecord(typeParams)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Resolved authoring typeParams must be an object for codec \"${template.codecId}\", received ${String(typeParams)}`);\n\tconst normalizedTypeParams = typeParams !== void 0 && Object.keys(typeParams).length === 0 ? void 0 : typeParams;\n\treturn {\n\t\tcodecId: template.codecId,\n\t\t...ifDefined(\"typeParams\", normalizedTypeParams)\n\t};\n}\nfunction instantiateAuthoringTypeConstructor(descriptor, args) {\n\treturn resolveAuthoringStorageTypeTemplate(descriptor.output, args);\n}\nfunction instantiateAuthoringTypeAlias(descriptor) {\n\tconst { output } = descriptor;\n\treturn {\n\t\ttype: resolveAuthoringStorageTypeTemplate(output.type, []),\n\t\t...ifDefined(\"onCreate\", output.onCreate),\n\t\t...ifDefined(\"onUpdate\", output.onUpdate)\n\t};\n}\nconst GENERATOR_PHASE_TEXT = {\n\tonCreate: \"on create\",\n\tonUpdate: \"on update\"\n};\n/**\n* The generators the calls of the type alias at `path` resolve to for its column, or `undefined` when it calls none. A call that does not resolve is the pack's mistake, so it throws `CONTRACT.PACK_CONTRIBUTION_INVALID`. `length` is the column's length, in its data type's normal form, when the caller's family knows it.\n*/\nfunction resolveTypeAliasGenerators(input) {\n\tconst { type, ...calls } = instantiateAuthoringTypeAlias(input.descriptor);\n\tconst phases = {};\n\tfor (const phase of [\"onCreate\", \"onUpdate\"]) {\n\t\tconst call = calls[phase];\n\t\tif (call === void 0) continue;\n\t\tconst resolution = input.generatorFunctions.resolve(call, {\n\t\t\tcodecId: type.codecId,\n\t\t\ttypeParams: type.typeParams,\n\t\t\tlength: input.length\n\t\t});\n\t\tif (resolution.ok) {\n\t\t\tphases[phase] = resolution.generator;\n\t\t\tcontinue;\n\t\t}\n\t\tconst written = `Type alias \"${input.path}\" calls ${call.name}() ${GENERATOR_PHASE_TEXT[phase]}`;\n\t\tthrow runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", resolution.reason === \"refused\" ? `${written}, which its codec \"${type.codecId}\" refuses: ${resolution.message}` : resolution.reason === \"not-bound\" ? `${written}, which does not apply to its codec \"${type.codecId}\".` : `${written}, but no component declares the generator function \"${call.name}\".`);\n\t}\n\treturn phases.onCreate === void 0 && phases.onUpdate === void 0 ? void 0 : phases;\n}\n/**\n* Refuses a type alias of `namespace` whose fixed type params its codec's parameter schema refuses, or whose generator call does not resolve for its codec and length. The control stack and the TypeScript builders call it on their assembled namespace, so PSL and TypeScript refuse the same packs, before any schema is read.\n*/\nfunction assertTypeAliasesValid(namespace, lookups) {\n\tfor (const [path, descriptor] of collectDescriptorNodes(namespace, isAuthoringTypeDescriptor)) {\n\t\tif (!isAuthoringTypeAliasDescriptor(descriptor)) continue;\n\t\tconst { type } = instantiateAuthoringTypeAlias(descriptor);\n\t\tconst issue = authoringTypeParamsIssue(descriptor.output.type, type.typeParams, lookups.paramsSchemaOf(type.codecId));\n\t\tif (issue !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Type alias \"${path}\" fixes type parameters its codec \"${type.codecId}\" refuses: ${issue.message}`);\n\t\tresolveTypeAliasGenerators({\n\t\t\tpath,\n\t\t\tdescriptor,\n\t\t\tgeneratorFunctions: lookups.generatorFunctions,\n\t\t\tlength: lookups.fieldLength({\n\t\t\t\tcodecId: type.codecId,\n\t\t\t\ttypeParams: type.typeParams\n\t\t\t})\n\t\t});\n\t}\n}\n/**\n* The column a type constructor makes from the stored values of its arguments, as a reader that holds values rather than written arguments has them, or why its codec's parameter schema refuses the parameters they give. The schema check is {@link validateAuthoringTypeParams}'s.\n*/\nfunction instantiateAuthoringTypeConstructorFromValues(descriptor, values, paramsSchema) {\n\tconst output = instantiateAuthoringTypeConstructor(descriptor, values);\n\tconst issue = authoringTypeParamsIssue(descriptor.output, output.typeParams, paramsSchema);\n\treturn issue === void 0 ? ok(output) : notOk(issue);\n}\nfunction instantiateAuthoringEntityType(helperPath, descriptor, args, ctx) {\n\tif (\"factory\" in descriptor.output) {\n\t\tconst input = args[0];\n\t\treturn blindCast(descriptor.output.factory)(input, ctx);\n\t}\n\tvalidateAuthoringHelperArguments(helperPath, descriptor.args, args);\n\treturn blindCast(resolveAuthoringTemplateValue(descriptor.output.template, args));\n}\n//#endregion\n//#region src/shared/authoring-type-choice.ts\nfunction isAuthoringTypeChoiceOption(argument) {\n\treturn argument.kind === \"option\";\n}\nfunction rowMatches(row, chosen, names) {\n\treturn names.every((name) => row.when[name] === chosen.get(name));\n}\n/** How a combination of option values is written, as in `as: string, storage: timestamp`. */\nfunction typeChoiceCombinationText(row) {\n\treturn Object.entries(row.when).map(([name, value]) => `${name}: ${value}`).join(\", \");\n}\nfunction listedNames(names) {\n\treturn names.length < 2 ? names.join(\"\") : `${names.slice(0, -1).join(\", \")} and ${names[names.length - 1]}`;\n}\nfunction isArgumentObject(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n/** Why `subject`, a call of the type choice `descriptor`, cannot take the argument `name`, naming the arguments it takes. */\nfunction unknownTypeChoiceArgumentMessage(subject, descriptor, name) {\n\treturn `${subject} has no argument \"${name}\"; its arguments are ${listedNames(descriptor.args.map((argument) => argument.name))}.`;\n}\n/**\n* The values of a type choice call that writes its arguments as one object, by the choice's argument positions, as {@link resolveAuthoringTypeChoice} reads them. `written` is the call's arguments: none, or one object keyed by argument name. Anything else, and a key the choice has no argument for, is refused with `CONTRACT.ARGUMENT_INVALID`.\n*/\nfunction typeChoiceArgumentsFromObject(helperPath, descriptor, written) {\n\tconst names = descriptor.args.map((argument) => argument.name);\n\tconst [first] = written;\n\tconst object = written.length === 0 ? {} : first;\n\tif (written.length > 1 || !isArgumentObject(object)) {\n\t\tconst example = descriptor.args.find(isAuthoringTypeChoiceOption);\n\t\tconst sample = example === void 0 ? \"\" : `{ ${example.name}: '${example.default}' }`;\n\t\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${helperPath} takes its arguments as one object with the keys ${listedNames(names)}, such as ${helperPath}(${sample}).`, { helperPath });\n\t}\n\tconst unknown = Object.keys(object).find((key) => !names.includes(key));\n\tif (unknown !== void 0) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", unknownTypeChoiceArgumentMessage(helperPath, descriptor, unknown), { helperPath });\n\treturn names.map((name) => object[name]);\n}\n/**\n* The type constructor a call of the type choice `descriptor` chooses, and the arguments it passes on. `args` are the call's values by the choice's argument positions; an option left out takes its default. A value an option does not list, a combination with no row, and a passed-on argument the chosen constructor does not take are refused with `CONTRACT.ARGUMENT_INVALID`, naming the argument by its index.\n*/\nfunction resolveAuthoringTypeChoice(input) {\n\tconst { helperPath, descriptor, args } = input;\n\tconst refuse = (argumentIndex, message) => {\n\t\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", message, {\n\t\t\thelperPath,\n\t\t\targumentIndex\n\t\t});\n\t};\n\tconst label = (index) => `Argument \"${descriptor.args[index]?.name}\" of ${helperPath}`;\n\tconst options = descriptor.args.flatMap((argument, index) => isAuthoringTypeChoiceOption(argument) ? [{\n\t\targument,\n\t\tindex\n\t}] : []);\n\tconst written = options.filter(({ index }) => args[index] !== void 0);\n\tconst defaulted = options.filter(({ index }) => args[index] === void 0);\n\tconst chosen = /* @__PURE__ */ new Map();\n\tconst decided = [];\n\tfor (const { argument, index } of [...written, ...defaulted]) {\n\t\tconst value = args[index] ?? argument.default;\n\t\tif (typeof value !== \"string\" || !argument.values.includes(value)) refuse(index, `${label(index)} is ${String(value)}; write one of: ${argument.values.join(\", \")}.`);\n\t\tconst fitting = descriptor.choices.filter((row) => rowMatches(row, chosen, decided));\n\t\tconst accepted = argument.values.filter((candidate) => fitting.some((row) => row.when[argument.name] === candidate));\n\t\tif (!accepted.includes(String(value))) {\n\t\t\tconst others = decided.map((name) => `${name}: ${chosen.get(name)}`).join(\", \");\n\t\t\trefuse(index, `${label(index)} cannot be ${String(value)} with ${others}; write one of: ${accepted.join(\", \")}.`);\n\t\t}\n\t\tchosen.set(argument.name, String(value));\n\t\tdecided.push(argument.name);\n\t}\n\tconst row = descriptor.choices.find((candidate) => rowMatches(candidate, chosen, decided));\n\tconst chosenType = row === void 0 ? void 0 : input.constructorNamed(row.type);\n\tif (row === void 0 || chosenType === void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Type choice \"${helperPath}\" chooses no registered type constructor for ${[...chosen].map(([name, value]) => `${name}: ${value}`).join(\", \")}.`, { helperPath });\n\tconst parameters = chosenType.args ?? [];\n\tdescriptor.args.forEach((argument, index) => {\n\t\tif (isAuthoringTypeChoiceOption(argument) || args[index] === void 0) return;\n\t\tif (!parameters.some((parameter) => parameter.name === argument.name)) refuse(index, `${label(index)} does not apply to ${row.type}, the type that ${typeChoiceCombinationText(row)} chooses.`);\n\t});\n\treturn {\n\t\ttype: row.type,\n\t\tdescriptor: chosenType,\n\t\targs: parameters.map((parameter) => {\n\t\t\tconst index = descriptor.args.findIndex((argument) => !isAuthoringTypeChoiceOption(argument) && argument.name === parameter.name);\n\t\t\treturn (index < 0 ? void 0 : args[index]) ?? (parameter.name === void 0 ? void 0 : row.defaults?.[parameter.name]);\n\t\t})\n\t};\n}\n/** Looks a type constructor up by name in one level of a type namespace, as a type choice's rows name them. */\nfunction typeConstructorLookup(namespace) {\n\treturn (name) => {\n\t\tconst member = Object.hasOwn(namespace, name) ? namespace[name] : void 0;\n\t\treturn member !== void 0 && isAuthoringTypeConstructorDescriptor(member) ? member : void 0;\n\t};\n}\nfunction memberNamed(namespace, name) {\n\treturn Object.hasOwn(namespace, name) ? namespace[name] : void 0;\n}\nfunction subNamespace(member) {\n\treturn member === void 0 || isAuthoringTypeDescriptor(member) ? void 0 : member;\n}\n/** The sub-namespace at `path` of a type namespace, or `undefined` when a segment names no sub-namespace. */\nfunction authoringTypeNamespaceLevel(namespace, path) {\n\tlet level = namespace;\n\tfor (const segment of path) level = level === void 0 ? void 0 : subNamespace(memberNamed(level, segment));\n\treturn level;\n}\n/** The type choice at `path` in the contributions' type namespace, with a lookup of the type constructors beside it that its rows name, or `undefined` when none is there. */\nfunction getAuthoringTypeChoice(contributions, path) {\n\tconst level = authoringTypeNamespaceLevel(contributions?.type, path.slice(0, -1));\n\tconst name = path.at(-1);\n\tconst member = level === void 0 || name === void 0 ? void 0 : memberNamed(level, name);\n\treturn member !== void 0 && level !== void 0 && isAuthoringTypeChoiceDescriptor(member) ? {\n\t\tdescriptor: member,\n\t\tconstructorNamed: typeConstructorLookup(level)\n\t} : void 0;\n}\n/**\n* The column a call of the type constructor or type choice `name`, in one level of a type namespace, makes from its arguments. A type choice's arguments choose a constructor of the same level, which is instantiated with the arguments it passes on.\n*/\nfunction instantiateAuthoringTypeCall(namespace, name, args) {\n\tconst member = memberNamed(namespace, name);\n\tif (member !== void 0 && isAuthoringTypeConstructorDescriptor(member)) return instantiateAuthoringTypeConstructor(member, args);\n\tif (member === void 0 || !isAuthoringTypeChoiceDescriptor(member)) throw new InternalError(`\"${name}\" is not a type constructor or type choice of this namespace.`);\n\tconst chosen = resolveAuthoringTypeChoice({\n\t\thelperPath: name,\n\t\tdescriptor: member,\n\t\targs,\n\t\tconstructorNamed: typeConstructorLookup(namespace)\n\t});\n\treturn instantiateAuthoringTypeConstructor(chosen.descriptor, chosen.args);\n}\n/**\n* Derives the scalar view of an assembled authoring type namespace: every\n* **top-level** type constructor that is instantiable with an empty argument\n* list — all declared args optional and no entity-ref argument. A bare type\n* name `T` in a schema is semantically the zero-arg instantiation `T()`, so\n* each entry is exactly what that call produces (defaulted template values\n* applied, absent optional-arg typeParams keys omitted). Constructors\n* registered under a namespace segment, constructors with required args, and\n* entity-ref constructors are not scalars and are excluded.\n*\n* Eligibility needs no template inspection: templates that cannot resolve\n* for their legal call shapes are rejected at the composition boundary by\n* {@link assertResolvableTypeConstructorTemplates}, so the zero-arg\n* instantiation below cannot fail for an eligible constructor.\n*/\nfunction collectScalarTypeConstructors(namespace) {\n\tconst result = /* @__PURE__ */ new Map();\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tif (isAuthoringTypeChoiceDescriptor(value)) {\n\t\t\tresult.set(name, instantiateAuthoringTypeCall(namespace, name, []));\n\t\t\tcontinue;\n\t\t}\n\t\tif (!isAuthoringTypeConstructorDescriptor(value)) continue;\n\t\tif (value.entityRefArg !== void 0) continue;\n\t\tif (value.args?.some((arg) => arg.optional !== true)) continue;\n\t\tresult.set(name, instantiateAuthoringTypeConstructor(value, []));\n\t}\n\treturn result;\n}\nfunction assertTypeChoiceValid(path, descriptor, contributedBy, level) {\n\tconst invalidError = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Type choice \"${path}\" contributed by \"${contributedBy}\" ${detail}`, {\n\t\tpackId: contributedBy,\n\t\tcontribution: path\n\t});\n\tconst invalid = (detail) => {\n\t\tthrow invalidError(detail);\n\t};\n\tconst constructorNamed = typeConstructorLookup(level);\n\tconst options = descriptor.args.filter(isAuthoringTypeChoiceOption);\n\tconst passed = descriptor.args.filter((argument) => !isAuthoringTypeChoiceOption(argument));\n\tfor (const option of options) if (!option.values.includes(option.default)) invalid(`defaults option \"${option.name}\" to ${option.default}, which it does not list.`);\n\tfor (const row of descriptor.choices) {\n\t\tif (!(Object.keys(row.when).length === options.length && options.every((option) => option.values.includes(row.when[option.name] ?? \"\")))) invalid(`has a row for ${typeChoiceCombinationText(row)}, which does not give every option one of its values.`);\n\t\tconst names = options.map((option) => option.name);\n\t\tconst chosen = new Map(Object.entries(row.when));\n\t\tif (descriptor.choices.filter((other) => rowMatches(other, chosen, names)).length > 1) invalid(`has two rows for ${typeChoiceCombinationText(row)}; each combination chooses one type.`);\n\t\tconst chosenType = constructorNamed(row.type);\n\t\tif (chosenType === void 0) throw invalidError(`chooses \"${row.type}\", which is not a type constructor \"${contributedBy}\" registers beside it.`);\n\t\tfor (const name of Object.keys(row.defaults ?? {})) {\n\t\t\tif (!passed.some((argument) => argument.name === name)) invalid(`gives a default for \"${name}\", which is not an argument it passes on.`);\n\t\t\tif (!chosenType.args?.some((parameter) => parameter.name === name)) invalid(`gives a default for \"${name}\" to \"${row.type}\", which takes no argument of that name.`);\n\t\t}\n\t\tfor (const argument of passed) {\n\t\t\tconst parameter = chosenType.args?.find((candidate) => candidate.name === argument.name);\n\t\t\tif (parameter?.kind === \"value\" && parameter.dataType !== argument.dataType) invalid(`passes \"${argument.name}\" as a value of data type \"${argument.dataType}\" to \"${row.type}\", which takes \"${parameter.dataType}\".`);\n\t\t}\n\t\tchosenType.args?.forEach((parameter, index) => {\n\t\t\tif (parameter.optional === true) return;\n\t\t\tif (parameter.name !== void 0 && Object.hasOwn(row.defaults ?? {}, parameter.name)) return;\n\t\t\tconst required = parameter.name === void 0 ? `an unnamed argument ${index + 1}` : `\"${parameter.name}\"`;\n\t\t\tinvalid(`has a row for ${typeChoiceCombinationText(row)} that chooses \"${row.type}\", which requires ${required}, and gives it no default.`);\n\t\t});\n\t}\n\tconst defaults = {\n\t\twhen: Object.fromEntries(options.map((option) => [option.name, option.default])),\n\t\ttype: \"\"\n\t};\n\tconst names = options.map((option) => option.name);\n\tconst chosen = new Map(Object.entries(defaults.when));\n\tif (!descriptor.choices.some((row) => rowMatches(row, chosen, names))) invalid(`has no row for its defaults ${typeChoiceCombinationText(defaults)}, so it cannot be written bare.`);\n}\n/**\n* Refuses a type choice of a component's `contributed` type namespace whose table cannot be resolved: a row that names no type constructor the same component contributes at the same level, a combination or default an option does not list, defaults with no row, a parameter default for an argument it does not pass on, a passed-on argument of another data type than the constructor takes, or a row whose constructor requires an argument the row gives no default. ADR 279: each row names an explicit type of the same target.\n*/\nfunction assertTypeChoicesValid(contributed, contributedBy, path = []) {\n\tfor (const [name, value] of Object.entries(contributed)) {\n\t\tconst currentPath = [...path, name];\n\t\tif (isAuthoringTypeChoiceDescriptor(value)) {\n\t\t\tassertTypeChoiceValid(currentPath.join(\".\"), value, contributedBy, contributed);\n\t\t\tcontinue;\n\t\t}\n\t\tconst level = subNamespace(value);\n\t\tif (level !== void 0) assertTypeChoicesValid(level, contributedBy, currentPath);\n\t}\n}\n//#endregion\n//#region src/shared/tagged-literal.ts\nconst TAGGED_LITERAL_MAX_BYTES = 65536;\n/** The message a tagged literal's canonicalization failure is reported with, in PSL and in TypeScript. */\nfunction describeTaggedLiteralFailure(reason) {\n\tswitch (reason) {\n\t\tcase \"nul\": return \"Tagged literals must not contain NUL characters.\";\n\t\tcase \"too-large\": return `Tagged literal exceeds ${TAGGED_LITERAL_MAX_BYTES} bytes.`;\n\t}\n}\nconst PSL_BACKTICK_ESCAPES = /* @__PURE__ */ new Set([\"`\", \"\\\\\"]);\nconst TEMPLATE_TAG_ESCAPES = /* @__PURE__ */ new Set([\n\t\"`\",\n\t\"\\\\\",\n\t\"$\"\n]);\n/** The escapes a PSL backtick string resolves: `` \\` `` and `\\\\`. PSL has no interpolation, so `${` is ordinary text. */\nfunction resolvePslBacktickEscapes(raw) {\n\treturn resolveEscapes(raw, PSL_BACKTICK_ESCAPES);\n}\n/** The escapes a TypeScript template tag resolves: the PSL two plus `\\$`, the only way to write `${` in a template literal. */\nfunction resolveTemplateTagEscapes(raw) {\n\treturn resolveEscapes(raw, TEMPLATE_TAG_ESCAPES);\n}\n/** Every other backslash sequence is kept as written, both characters, so a SQL body may contain `E'\\n'` unchanged. */\nfunction resolveEscapes(raw, escapes) {\n\tlet out = \"\";\n\tlet i = 0;\n\twhile (i < raw.length) {\n\t\tconst ch = raw.charAt(i);\n\t\tconst next = raw.charAt(i + 1);\n\t\tif (ch === \"\\\\\" && escapes.has(next)) {\n\t\t\tout += next;\n\t\t\ti += 2;\n\t\t\tcontinue;\n\t\t}\n\t\tout += ch;\n\t\ti++;\n\t}\n\treturn out;\n}\nconst BLANK_LINE = /^[ \\t]*$/;\nconst LEADING_INDENT = /^[ \\t]*/;\nconst LINE_BREAK = /\\r\\n|\\r|\\n/g;\n/**\n* Turns the escape-resolved body of a tagged literal into its canonical text:\n* newlines become `\\n`, every blank line before the first non-blank line and\n* after the last one is dropped, common leading whitespace is removed, internal\n* blank lines become empty, and no trailing newline is added. The result is its\n* own canonical text. Fails on a NUL character or when the result is larger\n* than 65536 UTF-8 bytes.\n*/\nfunction canonicalizeTaggedLiteralBody(resolved) {\n\tconst nul = resolved.indexOf(\"\\0\");\n\tif (nul !== -1) return {\n\t\tok: false,\n\t\treason: \"nul\",\n\t\toffset: nul\n\t};\n\tconst lines = splitLines(resolved);\n\twhile (lines.length > 0 && BLANK_LINE.test(lines[0]?.text ?? \"\")) lines.shift();\n\twhile (lines.length > 0 && BLANK_LINE.test(lines.at(-1)?.text ?? \"\")) lines.pop();\n\tconst indent = commonIndent(lines);\n\tconst bodyLines = lines.map((line) => BLANK_LINE.test(line.text) ? {\n\t\ttext: \"\",\n\t\tstart: line.start\n\t} : {\n\t\ttext: line.text.slice(indent),\n\t\tstart: line.start + indent\n\t});\n\tconst excess = offsetWhereBytesExceed(bodyLines, TAGGED_LITERAL_MAX_BYTES);\n\tif (excess !== void 0) return {\n\t\tok: false,\n\t\treason: \"too-large\",\n\t\toffset: excess\n\t};\n\treturn {\n\t\tok: true,\n\t\ttext: bodyLines.map((line) => line.text).join(\"\\n\")\n\t};\n}\nfunction splitLines(text) {\n\tconst lines = [];\n\tlet start = 0;\n\tfor (const match of text.matchAll(LINE_BREAK)) {\n\t\tlines.push({\n\t\t\ttext: text.slice(start, match.index),\n\t\t\tstart\n\t\t});\n\t\tstart = match.index + match[0].length;\n\t}\n\tlines.push({\n\t\ttext: text.slice(start),\n\t\tstart\n\t});\n\treturn lines;\n}\nfunction commonIndent(lines) {\n\tlet indent = Number.POSITIVE_INFINITY;\n\tfor (const line of lines) {\n\t\tif (BLANK_LINE.test(line.text)) continue;\n\t\tindent = Math.min(indent, LEADING_INDENT.exec(line.text)?.[0].length ?? 0);\n\t}\n\treturn Number.isFinite(indent) ? indent : 0;\n}\n/** The resolved-body offset of the first character that pushes the text past `limit` bytes. */\nfunction offsetWhereBytesExceed(lines, limit) {\n\tlet bytes = 0;\n\tfor (const [index, line] of lines.entries()) {\n\t\tif (index > 0) {\n\t\t\tbytes += 1;\n\t\t\tif (bytes > limit) return line.start;\n\t\t}\n\t\tlet offsetInLine = 0;\n\t\tfor (const char of line.text) {\n\t\t\tbytes += utf8Length(char.codePointAt(0) ?? 0);\n\t\t\tif (bytes > limit) return line.start + offsetInLine;\n\t\t\toffsetInLine += char.length;\n\t\t}\n\t}\n}\nfunction utf8Length(codePoint) {\n\tif (codePoint < 128) return 1;\n\tif (codePoint < 2048) return 2;\n\tif (codePoint < 65536) return 3;\n\treturn 4;\n}\nfunction escapeQuotedText(text) {\n\treturn text.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\");\n}\n/**\n* The PSL text of a tagged literal holding `text`: the backtick form, or the double-quote form when the text holds a\n* backtick, which reads better than escaping each backtick. A multi-line text starts on the line after the opening\n* backtick, so indentation a printer adds to an enclosing block is common to every line and the canonicalization\n* removes it. The literal's canonical text is `text` again only when {@link printedTaggedLiteralReadsBack} holds; text\n* with leading indentation or a carriage return, for example, does not read back. ADR 129.\n*/\nfunction printTaggedLiteral(tag, text) {\n\tif (text.includes(\"`\")) return `${tag}\"${escapeQuotedText(text)}\"`;\n\tconst fenced = text.replace(/\\\\(?=\\\\|$)/g, \"\\\\\\\\\");\n\treturn isPrintedOnOwnLines(text) ? `${tag}\\`\\n${fenced}\\n\\`` : `${tag}\\`${fenced}\\``;\n}\nfunction isPrintedOnOwnLines(text) {\n\treturn !text.includes(\"`\") && text.includes(\"\\n\");\n}\n/** Whether the literal {@link printTaggedLiteral} prints for `text` has `text` as its canonical text. */\nfunction printedTaggedLiteralReadsBack(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(isPrintedOnOwnLines(text) ? `\\n${text}\\n` : text);\n\treturn canonical.ok && canonical.text === text;\n}\n/**\n* TypeScript source for `text` in generated code: a template literal with `tag`, or `tsQuotedTextSource(text)`. It\n* writes a template only when the tag's TypeScript function canonicalizes its text as `canonicalizeTaggedLiteralBody`\n* does and that leaves `text` unchanged, which holds for `sql`. It also falls back when a line ends in a space or a\n* tab, which editors strip on save, and when `text` holds a character a template would carry unescaped and invisible.\n* A multi-line template's lines sit one level deeper than the line it opens on.\n*/\nfunction tsTaggedTemplateSource(tag, text) {\n\tif (!templateHoldsUnchanged(text)) return {\n\t\tsource: tsQuotedTextSource(text),\n\t\tusesTag: false\n\t};\n\tconst escaped = tsTemplateText(text);\n\tif (!text.includes(\"\\n\")) return {\n\t\tsource: `${tag}\\`${escaped}\\``,\n\t\tusesTag: true\n\t};\n\treturn {\n\t\tsource: `${tag}\\`\\n${escaped.split(\"\\n\").map((line) => line.length === 0 ? line : ` ${line}`).join(\"\\n\")}\\n\\``,\n\t\tusesTag: true\n\t};\n}\nconst WHITESPACE_ONLY_LINE = /^\\s+$/;\nconst TRAILING_SPACE_OR_TAB = /[ \\t]$/;\nfunction templateHoldsUnchanged(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(text);\n\tif (!canonical.ok || canonical.text !== text) return false;\n\tconst lines = text.split(\"\\n\");\n\tconst indentTreatsAsBlank = (line) => WHITESPACE_ONLY_LINE.test(line) && !BLANK_LINE.test(line);\n\tif (lines.some((line) => indentTreatsAsBlank(line) || TRAILING_SPACE_OR_TAB.test(line))) return false;\n\treturn !holdsCharacterThatNeedsAnEscape(text);\n}\nfunction holdsCharacterThatNeedsAnEscape(text) {\n\tfor (const char of text) {\n\t\tconst code = char.codePointAt(0) ?? 0;\n\t\tif (code < 32 && char !== \"\\n\" && char !== \"\t\" || code === 127 || code === 8232 || code === 8233 || code >= 55296 && code <= 57343) return true;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/shared/data-type-support.ts\nconst UNKNOWN_CONTRIBUTOR = \"<unknown>\";\n/** Merge every component's PSL support for its data types, refusing two claims on one key. */\nfunction assembleAuthoringDataTypes(components) {\n\tconst merged = {};\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const component of components) {\n\t\tconst contributedBy = component.id ?? UNKNOWN_CONTRIBUTOR;\n\t\tfor (const [key, entry] of Object.entries(component.authoring?.dataTypes ?? {})) {\n\t\t\tconst existingOwner = owners.get(key);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_ENTRY_DUPLICATE\", `Duplicate authoring entry for \"${key}\". Component \"${contributedBy}\" conflicts with \"${existingOwner}\".`, {\n\t\t\t\tkey,\n\t\t\t\tcontributedBy,\n\t\t\t\towner: existingOwner\n\t\t\t});\n\t\t\towners.set(key, contributedBy);\n\t\t\tmerged[key] = entry;\n\t\t}\n\t}\n\treturn merged;\n}\nfunction descriptorsIn(namespace, isLeaf, path = []) {\n\treturn Object.entries(namespace ?? {}).flatMap(([key, value]) => {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) return [{\n\t\t\tpath: currentPath.join(\".\"),\n\t\t\tdescriptor: value\n\t\t}];\n\t\tif (typeof value !== \"object\" || value === null || Array.isArray(value)) return [];\n\t\treturn descriptorsIn(value, isLeaf, currentPath);\n\t});\n}\n/** Every type constructor a component contributes. */\nfunction contributedHelpers(component) {\n\treturn descriptorsIn(component.authoring?.type, isAuthoringTypeDescriptor).flatMap(({ path, descriptor }) => isAuthoringTypeConstructorDescriptor(descriptor) ? [{\n\t\tpath,\n\t\tdescriptor,\n\t\tcontributedBy: component.id ?? UNKNOWN_CONTRIBUTOR\n\t}] : []);\n}\n/** The data types a contract source can write: each entry's own, and every type a plain-number entry classifies a number as. */\nfunction writableDataTypes(entries) {\n\treturn new Set(entries.flatMap(({ key, entry }) => [key, ...entry.written.kind === \"plain\" && entry.written.syntax === \"number\" ? entry.written.types : []]));\n}\n/** Refuses a value argument whose data type is unregistered, or that no contract source can write, directly or through a cast, and a type-constructor argument that is not a value. */\nfunction enforceValueArguments(support, contributed, writable) {\n\tconst { path, descriptor, contributedBy } = contributed;\n\tfor (const [index, argument] of (descriptor.args ?? []).entries()) {\n\t\tconst label = `Argument ${argument.name === void 0 ? `#${index + 1}` : `\"${argument.name}\"`} of type constructor \"${path}\"`;\n\t\tconst argumentKind = argument.kind;\n\t\tif (argumentKind !== \"value\") throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `${label} contributed by \"${contributedBy}\" is an argument of kind \"${argumentKind}\", but a type constructor's argument is a value of a data type. Declare it as { kind: 'value', dataType: ... }, naming the data type its value belongs to.`, {\n\t\t\tpackId: contributedBy,\n\t\t\tcontribution: path,\n\t\t\treason: \"type-constructor-argument-not-a-value\"\n\t\t});\n\t\tconst type = support.lookup.get(argument.dataType);\n\t\tif (type === void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `${label} names data type \"${argument.dataType}\", which no component registers. Contributed by \"${contributedBy}\".`, {\n\t\t\tdataType: argument.dataType,\n\t\t\tcontributedBy\n\t\t});\n\t\tif (![argument.dataType, ...Object.keys(type.casts)].some((admittedType) => writable.has(admittedType))) throw runtimeError(\"CONTRACT.DATA_TYPE_NOT_WRITABLE\", `${label} contributed by \"${contributedBy}\" takes a value of data type \"${argument.dataType}\", which no contract source can write.`, {\n\t\t\tdataType: argument.dataType,\n\t\t\tcontributedBy\n\t\t});\n\t}\n}\nfunction textDataTypesOf(components) {\n\treturn components.flatMap((component) => (component.authoring?.textDataTypes ?? []).map((dataType) => ({\n\t\tdataType,\n\t\tcontributedBy: component.id ?? UNKNOWN_CONTRIBUTOR\n\t})));\n}\n/**\n* The checks assembly makes across components on their data types, each naming the component and the id at fault:\n*\n* 1. every codec names a registered data type;\n* 2. every authoring entry, and every type a number classifier returns, names a registered data type;\n* 3. every type a cast takes values of is registered and can be written, because a cast from a type nobody can write is never exercised;\n* 4. no two entries claim one tag or one plain form;\n* 5. every text data type a component names is registered.\n*/\nfunction enforceDataTypeAssemblyInvariants(input) {\n\tconst unregistered = (contributedBy, id, what) => {\n\t\tthrow runtimeError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `${what} names data type \"${id}\", which no component registers. Contributed by \"${contributedBy}\".`, {\n\t\t\tdataType: id,\n\t\t\tcontributedBy\n\t\t});\n\t};\n\tfor (const codec of input.codecs) if (!input.lookup.has(codec.dataType)) unregistered(codec.contributedBy, codec.dataType, `Codec \"${codec.codecId}\"`);\n\tfor (const { key, entry, contributedBy } of input.authoringEntries) {\n\t\tif (!input.lookup.has(key)) unregistered(contributedBy, key, \"Authoring entry\");\n\t\tif (entry.written.kind === \"plain\" && entry.written.syntax === \"number\") {\n\t\t\tfor (const classified of entry.written.types) if (!input.lookup.has(classified)) unregistered(contributedBy, classified, `The classifier of authoring entry \"${key}\"`);\n\t\t}\n\t}\n\tfor (const { dataType, contributedBy } of input.textDataTypes) if (!input.lookup.has(dataType)) unregistered(contributedBy, dataType, \"The text data types\");\n\tconst writable = writableDataTypes(input.authoringEntries);\n\tfor (const { type, contributedBy } of input.declaredTypes) {\n\t\tconst sources = [...Object.keys(type.casts), ...type.listCast?.of ?? []];\n\t\tfor (const source of sources) {\n\t\t\tif (!input.lookup.has(source)) unregistered(contributedBy, source, `The casts of data type \"${type.id}\"`);\n\t\t\tif (!writable.has(source)) throw runtimeError(\"CONTRACT.DATA_TYPE_NOT_WRITABLE\", `Data type \"${type.id}\" casts from \"${source}\", which no contract source can write, so the cast is never exercised. Contributed by \"${contributedBy}\".`, {\n\t\t\t\tdataType: type.id,\n\t\t\t\tsource,\n\t\t\t\tcontributedBy\n\t\t\t});\n\t\t}\n\t}\n\tconst claimants = /* @__PURE__ */ new Map();\n\tfor (const { key, entry, contributedBy } of input.authoringEntries) {\n\t\tconst written = entry.written;\n\t\tconst claim = written.kind === \"tag\" ? `tag \"${written.tag}\"` : `plain ${written.syntax}`;\n\t\tconst existing = claimants.get(claim);\n\t\tif (existing !== void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_WRITTEN_FORM_DUPLICATE\", `Two authoring entries claim the ${claim}: \"${key}\" from \"${contributedBy}\" conflicts with \"${existing.key}\" from \"${existing.contributedBy}\".`, {\n\t\t\tclaim,\n\t\t\tkey,\n\t\t\tcontributedBy,\n\t\t\towner: existing.key,\n\t\t\townerContributedBy: existing.contributedBy\n\t\t});\n\t\tclaimants.set(claim, {\n\t\t\tkey,\n\t\t\tcontributedBy\n\t\t});\n\t}\n}\n/**\n* The data types the components register, with their authoring entries, as every contract source reads values with. Refuses two registrations of one data type or one entry key, every case {@link enforceDataTypeAssemblyInvariants} lists, a value argument of a type constructor whose data type is unregistered or that no contract source can write, and a type-constructor argument that is not a value. ADR 254.\n*/\nfunction assembleDataTypeSupport(components, dataTypeOfCodec) {\n\tconst { lookup, declared } = assembleDataTypes(components);\n\tconst entries = assembleAuthoringDataTypes(components);\n\tconst contributedBy = (component) => component.id ?? UNKNOWN_CONTRIBUTOR;\n\tconst authoringEntries = components.flatMap((component) => Object.entries(component.authoring?.dataTypes ?? {}).map(([key, entry]) => ({\n\t\tkey,\n\t\tentry,\n\t\tcontributedBy: contributedBy(component)\n\t})));\n\tenforceDataTypeAssemblyInvariants({\n\t\tlookup,\n\t\tdeclaredTypes: declared,\n\t\tcodecs: components.flatMap((component) => (component.types?.codecTypes?.codecDescriptors ?? []).map(({ codecId, dataType }) => ({\n\t\t\tcodecId,\n\t\t\tdataType,\n\t\t\tcontributedBy: contributedBy(component)\n\t\t}))),\n\t\tauthoringEntries,\n\t\ttextDataTypes: textDataTypesOf(components)\n\t});\n\tconst support = {\n\t\tentries,\n\t\tlookup,\n\t\tdataTypeOfCodec,\n\t\ttextDataTypes: [...new Set(components.flatMap((component) => component.authoring?.textDataTypes ?? []))]\n\t};\n\tconst writable = writableDataTypes(authoringEntries);\n\tfor (const contributed of components.flatMap(contributedHelpers)) enforceValueArguments(support, contributed, writable);\n\treturn {\n\t\tsupport,\n\t\tdeclared\n\t};\n}\n//#endregion\n//#region src/shared/temporal-type-aliases.ts\n/**\n* Canonical id for the wall-clock-now mutation default generator. It flows to the control-plane descriptor, to each family's runtime generator, and to the `now()` binding of the codecs that store it.\n*/\nconst TIMESTAMP_NOW_GENERATOR_ID = \"timestampNow\";\n/** Builds the control-plane descriptor for the wall-clock-now mutation default generator. */\nfunction timestampNowControlDescriptor() {\n\treturn { id: TIMESTAMP_NOW_GENERATOR_ID };\n}\nconst NOW_CALL = {\n\tname: \"now\",\n\targs: {}\n};\n/**\n* Builds the `temporal.{CreatedAt,UpdatedAt}` type alias pair for a target's timestamp column type. `CreatedAt` calls `now()` on create; `UpdatedAt` calls it on create and on update. The target's `now()` binding for the codec picks the generator. `value` names the value the codec gives in TypeScript, such as `a JavaScript Date`, and ends each alias's documentation.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalTypeAliases(type, value) {\n\treturn {\n\t\tCreatedAt: {\n\t\t\tkind: \"typeAlias\",\n\t\t\tdocumentation: `A timestamp the client sets to now when a row is created. Its value is ${value}.`,\n\t\t\toutput: {\n\t\t\t\ttype,\n\t\t\t\tonCreate: NOW_CALL\n\t\t\t}\n\t\t},\n\t\tUpdatedAt: {\n\t\t\tkind: \"typeAlias\",\n\t\t\tdocumentation: `A timestamp the client sets to now when a row is created and every time it is updated. Its value is ${value}.`,\n\t\t\toutput: {\n\t\t\t\ttype,\n\t\t\t\tonCreate: NOW_CALL,\n\t\t\t\tonUpdate: NOW_CALL\n\t\t\t}\n\t\t}\n\t};\n}\n//#endregion\nexport { validateAuthoringTypeChoiceParams as $, assertTypeAliasesValid as A, isAuthoringEntityTypeDescriptor as B, typeChoiceCombinationText as C, assertNoAuthoringFieldNamespace as D, AUTHORING_TYPE_DESCRIPTOR_KINDS as E, instantiateAuthoringEntityType as F, isAuthoringTypeConstructorDescriptor as G, isAuthoringPslBlockDescriptor as H, instantiateAuthoringTypeAlias as I, mergeAuthoringNamespaces as J, isAuthoringTypeDescriptor as K, instantiateAuthoringTypeConstructor as L, collectContributedDescriptorPaths as M, flushAuthoringWarnings as N, assertNoCrossRegistryCollisions as O, getAuthoringTypeConstructor as P, validateAuthoringHelperArguments as Q, instantiateAuthoringTypeConstructorFromValues as R, typeChoiceArgumentsFromObject as S, unknownTypeChoiceArgumentMessage as T, isAuthoringTypeAliasDescriptor as U, isAuthoringModelAttributeDescriptor as V, isAuthoringTypeChoiceDescriptor as W, resolveEnumCodecId as X, resolveAuthoringTemplateValue as Y, resolveTypeAliasGenerators as Z, collectScalarTypeConstructors as _, assembleDataTypeSupport as a, isAuthoringTypeChoiceOption as b, canonicalizeTaggedLiteralBody as c, printedTaggedLiteralReadsBack as d, validateAuthoringTypeParams as et, resolvePslBacktickEscapes as f, authoringTypeNamespaceLevel as g, assertTypeChoicesValid as h, assembleAuthoringDataTypes as i, classifyEnumMemberType as j, assertResolvableTypeConstructorTemplates as k, describeTaggedLiteralFailure as l, tsTaggedTemplateSource as m, temporalTypeAliases as n, contributedHelpers as o, resolveTemplateTagEscapes as p, mergeAuthoringAttributeSpecs as q, timestampNowControlDescriptor as r, TAGGED_LITERAL_MAX_BYTES as s, TIMESTAMP_NOW_GENERATOR_ID as t, printTaggedLiteral as u, getAuthoringTypeChoice as v, typeConstructorLookup as w, resolveAuthoringTypeChoice as x, instantiateAuthoringTypeCall as y, isAuthoringArgRef as z };\n\n//# sourceMappingURL=temporal-type-aliases-CFh3BW2a.mjs.map"],"mappings":";;;;;;;;;;AAUA,MAAM,kCAAkC;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AW,SAAS,cAAc,OAAO,QAAQ,UAAU,WAAW,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,YAAY;EACtI;EACA;EACA,eAAe,cAAc,SAAS;CACvC,EAAE,CAAC;CACH,kCAAkC;EACjC;EACA,eAAe;EACf,QAAQ,WAAW,SAAS,eAAe,UAAU,OAAO,YAAY,oBAAoB,CAAC,EAAA,CAAG,KAAK,EAAE,SAAS,gBAAgB;GAC/H;GACA;GACA,eAAe,cAAc,SAAS;EACvC,EAAE,CAAC;EACH;EACA,eAAe,gBAAgB,UAAU;CAC1C,CAAC;CACD,MAAM,UAAU;EACf;EACA;EACA;EACA,eAAe,CAAC,GAAG,IAAI,IAAI,WAAW,SAAS,cAAc,UAAU,WAAW,iBAAiB,CAAC,CAAC,CAAC,CAAC;CACxG;CACA,MAAM,WAAW,kBAAkB,gBAAgB;CACnD,KAAK,MAAM,eAAe,WAAW,QAAQ,kBAAkB,GAAG,sBAAsB,SAAS,aAAa,QAAQ;CACtH,OAAO;EACN;EACA;CACD;AACD;;;;AAMA,MAAM,6BAA6B;;AAEnC,SAAS,gCAAgC;CACxC,OAAO,EAAE,IAAI,2BAA2B;AACzC;AACA,MAAM,WAAW;CAChB,MAAM;CACN,MAAM,CAAC;AACR;;;;;AAKA,SAAS,oBAAoB,MAAM,OAAO;CACzC,OAAO;EACN,WAAW;GACV,MAAM;GACN,eAAe,0EAA0E,MAAM;GAC/F,QAAQ;IACP;IACA,UAAU;GACX;EACD;EACA,WAAW;GACV,MAAM;GACN,eAAe,uGAAuG,MAAM;GAC5H,QAAQ;IACP;IACA,UAAU;IACV,UAAU;GACX;EACD;CACD;AACD"}
1
+ {"version":3,"file":"temporal-type-aliases-CFh3BW2a-CeZV7A5h.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/temporal-type-aliases-CFh3BW2a.mjs"],"sourcesContent":["import { t as assembleDataTypes } from \"./data-type-V6mcDhcG.mjs\";\nimport { n as runtimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { tsQuotedTextSource, tsTemplateText } from \"@internal/ts-render\";\nimport { invariant } from \"@internal/utils/assertions\";\nimport { notOk, ok } from \"@internal/utils/result\";\n//#region src/shared/framework-authoring.ts\n/** The descriptor kinds a `type` namespace holds as leaves. */\nconst AUTHORING_TYPE_DESCRIPTOR_KINDS = [\n\t\"typeConstructor\",\n\t\"typeAlias\",\n\t\"typeChoice\"\n];\nconst AUTHORING_WARNING_BATCH_THRESHOLD = 5;\n/**\n* Emits collected authoring warnings once per build, grouped by `code`:\n* a group at or below the threshold itemizes every `message`; above it,\n* one summary — `\"<count> <summary>\"` followed by the `item` lines — so\n* a build with many hits of one kind does not wall-of-text, and warnings\n* of different codes never batch into each other's summary.\n*/\nfunction flushAuthoringWarnings(warnings) {\n\tconst groups = /* @__PURE__ */ new Map();\n\tfor (const warning of warnings) {\n\t\tconst key = JSON.stringify([warning.code, warning.summary]);\n\t\tconst group = groups.get(key) ?? [];\n\t\tgroup.push(warning);\n\t\tgroups.set(key, group);\n\t}\n\tfor (const group of groups.values()) {\n\t\tconst first = group[0];\n\t\tif (first === void 0) continue;\n\t\tif (group.length <= AUTHORING_WARNING_BATCH_THRESHOLD) {\n\t\t\tfor (const warning of group) process.emitWarning(warning.message, { code: warning.code });\n\t\t\tcontinue;\n\t\t}\n\t\tprocess.emitWarning(`${group.length} ${first.summary}\\n${group.map((w) => ` - ${w.item}`).join(\"\\n\")}`, { code: first.code });\n\t}\n}\nfunction classifyEnumMemberType(values) {\n\tlet sawText = false;\n\tlet sawInt = false;\n\tfor (const key of Object.keys(values)) {\n\t\tconst value = values[key];\n\t\tif (value === void 0 || typeof value === \"string\") sawText = true;\n\t\telse if (typeof value === \"number\" && Number.isInteger(value)) sawInt = true;\n\t\telse return null;\n\t}\n\tif (sawText && sawInt) return null;\n\tif (sawText) return \"text\";\n\tif (sawInt) return \"int\";\n\treturn null;\n}\n/**\n* Resolves the codec id for an `enum` block. When `@@type` is absent, the codec\n* is inferred from the members via {@link classifyEnumMemberType}; otherwise the\n* explicit `@@type(\"codec\")` argument is parsed. Pushes the appropriate\n* diagnostic and returns `undefined` when neither yields a codec. `codecSpan` is\n* the span downstream codec-validation diagnostics should anchor to. Shared by\n* every family's enum factory so inference and the explicit path stay identical.\n*/\nfunction resolveEnumCodecId(block, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst typeAttr = block.attributes[\"type\"];\n\tif (typeAttr === void 0) {\n\t\tconst inferredKind = classifyEnumMemberType(block.values);\n\t\tif (inferredKind === null || ctx.enumInferenceCodecs === void 0) {\n\t\t\tctx.diagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_CANNOT_INFER_TYPE\",\n\t\t\t\tmessage: `cannot infer @@type for enum \"${block.name}\"; add an explicit @@type(...)`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: block.span\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\treturn {\n\t\t\tcodecId: ctx.enumInferenceCodecs[inferredKind],\n\t\t\tcodecSpan: block.span\n\t\t};\n\t}\n\tconst codecId = typeAttr.args[\"codecId\"];\n\tinvariant(typeof codecId === \"string\", \"@@type on an enum block parses one string argument\");\n\treturn {\n\t\tcodecId,\n\t\tcodecSpan: typeAttr.argSpans?.[\"codecId\"] ?? typeAttr.span\n\t};\n}\n/** Refuses the `authoring.field` key, which held field presets before Prisma 8 removed them. A component built against the old types would otherwise lose its presets silently. */\nfunction assertNoAuthoringFieldNamespace(componentId, authoring) {\n\tif (authoring === void 0 || !Object.hasOwn(authoring, \"field\")) return;\n\tthrow runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Component \"${componentId}\" contributes authoring.field, which Prisma 8 removed with field presets. Contribute a type alias (kind: 'typeAlias') or a type constructor in authoring.type.`);\n}\nfunction isAuthoringArgRef(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"arg\") return false;\n\tconst { index } = value;\n\treturn typeof index === \"number\" && Number.isInteger(index) && index >= 0;\n}\nfunction isAuthoringTemplateRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction isAuthoringTypeConstructorDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"typeConstructor\";\n}\nfunction isAuthoringTypeAliasDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"typeAlias\";\n}\nfunction isAuthoringTypeChoiceDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"typeChoice\";\n}\n/** Whether `value` is a leaf of a `type` namespace: a type constructor, a type alias or a type choice. */\nfunction isAuthoringTypeDescriptor(value) {\n\treturn isAuthoringTypeConstructorDescriptor(value) || isAuthoringTypeAliasDescriptor(value) || isAuthoringTypeChoiceDescriptor(value);\n}\n/** The type constructor at `path` in the contributions' type namespace, or `undefined` when none is there. */\nfunction getAuthoringTypeConstructor(contributions, path) {\n\tlet current = contributions?.type;\n\tfor (const segment of path) {\n\t\tif (typeof current !== \"object\" || current === null || \"kind\" in current) return;\n\t\tcurrent = current[segment];\n\t}\n\treturn current !== void 0 && isAuthoringTypeConstructorDescriptor(current) ? current : void 0;\n}\nfunction isAuthoringEntityTypeDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"entity\";\n}\nfunction isAuthoringPslBlockDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"pslBlock\";\n}\nfunction isAuthoringModelAttributeDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"modelAttribute\";\n}\nfunction isCopyableNamespaceObject(value) {\n\tif (typeof value !== \"object\" || value === null || Array.isArray(value)) return false;\n\tconst proto = Object.getPrototypeOf(value);\n\treturn proto === Object.prototype || proto === null;\n}\nfunction isWellFormedDescriptor(value, descriptorKinds) {\n\tif (typeof value !== \"object\" || value === null || !(\"kind\" in value)) return false;\n\tconst kind = value.kind;\n\tif (typeof kind !== \"string\" || !(typeof descriptorKinds === \"string\" ? [descriptorKinds] : descriptorKinds).includes(kind)) return false;\n\tswitch (kind) {\n\t\tcase \"typeConstructor\": {\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\treturn typeof output === \"object\" && output !== null;\n\t\t}\n\t\tcase \"typeChoice\": return \"args\" in value && Array.isArray(value.args) && \"choices\" in value && Array.isArray(value.choices);\n\t\tcase \"typeAlias\": {\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\tif (typeof output !== \"object\" || output === null || !(\"type\" in output)) return false;\n\t\t\treturn typeof output.type === \"object\" && output.type !== null;\n\t\t}\n\t\tcase \"entity\": {\n\t\t\tif (!(\"discriminator\" in value) || typeof value.discriminator !== \"string\") return false;\n\t\t\tif (value.discriminator.length === 0) return false;\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\tif (typeof output !== \"object\" || output === null) return false;\n\t\t\tconst factory = \"factory\" in output ? output.factory : void 0;\n\t\t\tconst template = \"template\" in output ? output.template : void 0;\n\t\t\treturn typeof factory === \"function\" || template !== void 0;\n\t\t}\n\t\tcase \"pslBlock\": {\n\t\t\tif (!(\"keyword\" in value) || typeof value.keyword !== \"string\" || value.keyword.length === 0) return false;\n\t\t\tif (!(\"discriminator\" in value) || typeof value.discriminator !== \"string\" || value.discriminator.length === 0) return false;\n\t\t\tif (!(\"name\" in value)) return false;\n\t\t\tconst name = value.name;\n\t\t\tif (typeof name !== \"object\" || name === null) return false;\n\t\t\tif (!(\"required\" in name) || typeof name.required !== \"boolean\") return false;\n\t\t\tif (!(\"spec\" in value) || typeof value.spec !== \"function\") return false;\n\t\t\tif (!(\"attributes\" in value) || value.attributes === void 0) return true;\n\t\t\tconst attributes = value.attributes;\n\t\t\tif (typeof attributes !== \"object\" || attributes === null || Array.isArray(attributes)) return false;\n\t\t\treturn Object.values(attributes).every((factory) => typeof factory === \"function\");\n\t\t}\n\t\tcase \"modelAttribute\":\n\t\t\tif (!(\"attribute\" in value) || typeof value.attribute !== \"string\" || value.attribute.length === 0) return false;\n\t\t\tif (!(\"spec\" in value)) return false;\n\t\t\treturn \"lower\" in value && typeof value.lower === \"function\";\n\t\tdefault: return false;\n\t}\n}\nfunction deepCopyNamespace(source, descriptorKind) {\n\tconst copy = {};\n\tfor (const [key, value] of Object.entries(source)) copy[key] = isCopyableNamespaceObject(value) && !isWellFormedDescriptor(value, descriptorKind) ? deepCopyNamespace(value, descriptorKind) : value;\n\treturn copy;\n}\n/**\n* Merges `source` into `target` recursively at the descriptor-namespace\n* level. `descriptorKind` is the `kind` value, or values, ('typeConstructor'\n* and 'typeAlias', 'entity', or 'pslBlock') that identifies a descriptor\n* (terminal merge point; same-path registrations across components are\n* reported as duplicates) as opposed to a sub-namespace (recursion target).\n*\n* Path segments are validated against prototype-pollution names\n* (`__proto__`, `constructor`, `prototype`). A value that is neither a\n* recognized leaf nor a plain object — e.g. a malformed descriptor\n* where the canonical leaf guard rejected it for missing `output` —\n* is reported as an invalid contribution rather than recursed into,\n* which would either silently mangle state or infinite-loop on\n* primitive properties.\n*\n* Within-registry duplicate detection is this walker's job;\n* cross-registry detection runs separately via\n* `assertNoCrossRegistryCollisions` after merging completes.\n*/\nfunction mergeAuthoringNamespaces(target, source, path, descriptorKind, label) {\n\tconst assertSafePath = (currentPath) => {\n\t\tconst blockedSegment = currentPath.find((segment) => segment === \"__proto__\" || segment === \"constructor\" || segment === \"prototype\");\n\t\tif (blockedSegment) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring ${label} helper \"${currentPath.join(\".\")}\". Helper path segments must not use \"${blockedSegment}\".`);\n\t};\n\tfor (const [key, sourceValue] of Object.entries(source)) {\n\t\tconst currentPath = [...path, key];\n\t\tassertSafePath(currentPath);\n\t\tconst hasExistingValue = Object.hasOwn(target, key);\n\t\tconst existingValue = hasExistingValue ? target[key] : void 0;\n\t\tif (!hasExistingValue) {\n\t\t\ttarget[key] = isCopyableNamespaceObject(sourceValue) && !isWellFormedDescriptor(sourceValue, descriptorKind) ? deepCopyNamespace(sourceValue, descriptorKind) : sourceValue;\n\t\t\tcontinue;\n\t\t}\n\t\tconst existingIsLeaf = isWellFormedDescriptor(existingValue, descriptorKind);\n\t\tconst sourceIsLeaf = isWellFormedDescriptor(sourceValue, descriptorKind);\n\t\tif (existingIsLeaf || sourceIsLeaf) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate authoring ${label} helper \"${currentPath.join(\".\")}\". Helper names must be unique across composed packs.`);\n\t\tif (!isCopyableNamespaceObject(existingValue) || !isCopyableNamespaceObject(sourceValue)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring ${label} helper \"${currentPath.join(\".\")}\". Expected a sub-namespace object or a recognized descriptor; received a malformed value.`);\n\t\tmergeAuthoringNamespaces(existingValue, sourceValue, currentPath, descriptorKind, label);\n\t}\n}\nconst ATTRIBUTE_SPEC_LEVELS = [\"model\", \"field\"];\nfunction mergeAuthoringAttributeSpecs(target, source, contributedBy, owners) {\n\tconst invalidContribution = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring attributeSpecs contribution from descriptor \"${contributedBy}\". ${detail}`);\n\tif (!isCopyableNamespaceObject(source)) throw invalidContribution(\"Expected a record carrying a \\\"model\\\" and a \\\"field\\\" level.\");\n\tfor (const level of ATTRIBUTE_SPEC_LEVELS) {\n\t\tconst contributed = source[level];\n\t\tif (!isCopyableNamespaceObject(contributed)) throw invalidContribution(`The \"${level}\" level must be a record of spec factories keyed by attribute name.`);\n\t\tfor (const [attribute, factory] of Object.entries(contributed)) {\n\t\t\tconst entryPath = `${level}.${attribute}`;\n\t\t\tconst invalidEntry = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring attributeSpecs entry \"${entryPath}\" contributed by descriptor \"${contributedBy}\". ${detail}`);\n\t\t\tif (attribute === \"__proto__\" || attribute === \"constructor\" || attribute === \"prototype\") throw invalidEntry(`Attribute names must not use \"${attribute}\".`);\n\t\t\tif (typeof factory !== \"function\") throw invalidEntry(\"Each entry must be a spec factory function.\");\n\t\t\tconst existingOwner = owners.get(entryPath);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate authoring attributeSpecs entry \"${entryPath}\". Descriptor \"${contributedBy}\" conflicts with \"${existingOwner}\". Each attribute name may be claimed once per level.`);\n\t\t\towners.set(entryPath, contributedBy);\n\t\t\ttarget[level][attribute] = factory;\n\t\t}\n\t}\n}\n/**\n* Collects the full dotted paths of every well-formed descriptor of\n* `descriptorKind` in a raw contribution tree, using the same boundary\n* classification as {@link mergeAuthoringNamespaces}. Lets assembly-level\n* callers attribute each contributed path to its contributing component\n* before merging, so a same-path collision can be reported naming both\n* contributors.\n*/\nfunction collectContributedDescriptorPaths(namespace, descriptorKind, path = []) {\n\tconst paths = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isWellFormedDescriptor(value, descriptorKind)) {\n\t\t\tpaths.push(currentPath.join(\".\"));\n\t\t\tcontinue;\n\t\t}\n\t\tif (isCopyableNamespaceObject(value)) paths.push(...collectContributedDescriptorPaths(value, descriptorKind, currentPath));\n\t}\n\treturn paths;\n}\nfunction visitTemplateArgRefs(template, visit) {\n\tif (template === void 0) return;\n\tif (isAuthoringArgRef(template)) {\n\t\tvisit(template);\n\t\treturn;\n\t}\n\tif (Array.isArray(template)) {\n\t\tfor (const value of template) visitTemplateArgRefs(value, visit);\n\t\treturn;\n\t}\n\tif (typeof template === \"object\" && template !== null) for (const value of Object.values(template)) visitTemplateArgRefs(value, visit);\n}\n/**\n* Boundary validation for a contributed authoring type namespace, called\n* per contributing component at assembly (which supplies `contributedBy`\n* for attribution). Rejects what the types cannot express — entity-ref\n* constructors are skipped (their output derives from the referenced\n* entity): every `typeParams` arg-ref must point at a declared argument\n* index.\n*/\nfunction assertResolvableTypeConstructorTemplates(namespace, contributedBy, path = []) {\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, name];\n\t\tif (isAuthoringTypeAliasDescriptor(value)) {\n\t\t\tfor (const [key, template] of Object.entries(value.output.type.typeParams ?? {})) visitTemplateArgRefs(template, () => {\n\t\t\t\tthrow runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring type alias \"${currentPath.join(\".\")}\" contributed by descriptor \"${contributedBy}\". output.type.typeParams.${key} references an argument, but a type alias takes none. Write the value itself.`);\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (isAuthoringTypeChoiceDescriptor(value)) continue;\n\t\tif (!isAuthoringTypeConstructorDescriptor(value)) {\n\t\t\tassertResolvableTypeConstructorTemplates(value, contributedBy, currentPath);\n\t\t\tcontinue;\n\t\t}\n\t\tif (value.entityRefArg !== void 0) continue;\n\t\tconst args = value.args ?? [];\n\t\tconst invalid = (detail) => /* @__PURE__ */ new Error(`Invalid authoring type constructor \"${currentPath.join(\".\")}\" contributed by descriptor \"${contributedBy}\". ${detail}`);\n\t\tfor (const [key, template] of Object.entries(value.output.typeParams ?? {})) visitTemplateArgRefs(template, (ref) => {\n\t\t\tif (args[ref.index] === void 0) throw invalid(`output.typeParams.${key} references argument ${ref.index}, but the constructor declares ${args.length} argument(s). Declare the argument or correct the reference index.`);\n\t\t});\n\t}\n}\nfunction collectDescriptorPaths(namespace, isLeaf, path = []) {\n\tconst paths = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tpaths.push(currentPath.join(\".\"));\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) paths.push(...collectDescriptorPaths(value, isLeaf, currentPath));\n\t}\n\treturn paths;\n}\nfunction collectDescriptorEntries(namespace, isLeaf, descriptorKind, label, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, descriptorKind)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring ${label} contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the ${label} descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tif (value.discriminator.length > 0) entries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.discriminator\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tif ((record[\"kind\"] !== void 0 || record[\"keyword\"] !== void 0 || record[\"discriminator\"] !== void 0) && !isLeaf(value)) {\n\t\t\t\tconst hasKind = record[\"kind\"] === \"pslBlock\";\n\t\t\t\tconst hasKeyword = typeof record[\"keyword\"] === \"string\";\n\t\t\t\tconst hasDiscriminator = typeof record[\"discriminator\"] === \"string\";\n\t\t\t\tif (hasKind || hasKeyword && hasDiscriminator) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring ${label} contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the ${label} descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\t}\n\t\t\tentries.push(...collectDescriptorEntries(value, isLeaf, descriptorKind, label, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Throws when two or more entries in the same namespace share a key. A\n* duplicate key makes dispatch ambiguous — the caller's lookup dispatches by\n* this key, so one entry would silently shadow the other. Catch duplicates\n* before building any dispatch map.\n*\n* `label` (e.g. `'pslBlock'`, `'entityType'`) names which namespace the\n* duplicate was found in and is carried in the structured error metadata;\n* the key itself is always called `key` in both the message and the\n* metadata, since what it semantically represents (a discriminator for\n* `entityType`, the parser's dispatch keyword for `pslBlock`) is the\n* caller's concern, not this function's.\n*/\nfunction assertUniqueDiscriminators(entries, label) {\n\tconst seen = /* @__PURE__ */ new Map();\n\tfor (const { path, discriminator: key } of entries) {\n\t\tconst existing = seen.get(key);\n\t\tif (existing !== void 0) throw runtimeError(\"RUNTIME.DUPLICATE_AUTHORING_DISCRIMINATOR\", `Duplicate ${label} key \"${key}\" registered at both \"${existing}\" and \"${path}\". Each ${label} contribution must use a unique key.`, {\n\t\t\tlabel,\n\t\t\tkey,\n\t\t\texistingPath: existing,\n\t\t\tpath\n\t\t});\n\t\tseen.set(key, path);\n\t}\n}\nfunction collectPslBlockDescriptorEntries(namespace, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringPslBlockDescriptor(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, \"pslBlock\")) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring pslBlock contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the pslBlock descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.discriminator,\n\t\t\t\tkeyword: value.keyword\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tconst hasKind = record[\"kind\"] === \"pslBlock\";\n\t\t\tconst hasKeyword = typeof record[\"keyword\"] === \"string\";\n\t\t\tconst hasDiscriminator = typeof record[\"discriminator\"] === \"string\";\n\t\t\tif (hasKind || hasKeyword && hasDiscriminator) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring pslBlock contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the pslBlock descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push(...collectPslBlockDescriptorEntries(value, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Every `pslBlockDescriptors` entry requires a matching `entityTypes` factory\n* with the same discriminator. An `entityTypes` factory may stand alone (e.g.\n* `enum`, reachable from the TypeScript builder without any PSL block).\n*\n* Uniqueness for pslBlock entries is keyed on **keyword**, not discriminator:\n* several keywords (e.g. `policy_select`/`policy_insert`) may legitimately\n* share one discriminator, routing to the same `entityTypes` factory and the\n* same `entries[discriminator]` slot — that N:1 shape is exactly what lets\n* one entity kind be authored through several PSL keywords. What must stay\n* unique is the keyword itself, since that's what the parser dispatches on.\n*/\nfunction assertPslBlocksHaveFactories(entityTypeNamespace, pslBlockNamespace) {\n\tconst blockEntries = collectPslBlockDescriptorEntries(pslBlockNamespace);\n\tconst entityEntries = collectDescriptorEntries(entityTypeNamespace, isAuthoringEntityTypeDescriptor, \"entity\", \"entityType\");\n\tassertUniqueDiscriminators(blockEntries.map((entry) => ({\n\t\tpath: entry.path,\n\t\tdiscriminator: entry.keyword\n\t})), \"pslBlock\");\n\tassertUniqueDiscriminators(entityEntries, \"entityType\");\n\tconst entityDiscriminators = new Set(entityEntries.map((entry) => entry.discriminator));\n\tfor (const block of blockEntries) if (!entityDiscriminators.has(block.discriminator)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Incomplete extension contribution: pslBlock helper \"${block.path}\" registers discriminator \"${block.discriminator}\" but no entityType contribution shares that discriminator. An extension-contributed PSL block requires a matching entityType factory so the parsed AST node can lower to an IR class instance; add an entityType helper with discriminator \"${block.discriminator}\".`);\n}\nfunction collectModelAttributeEntries(namespace, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringModelAttributeDescriptor(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, \"modelAttribute\")) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring modelAttribute contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/attribute) but does not satisfy the modelAttribute descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.attribute\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tif (typeof record[\"attribute\"] === \"string\" && \"spec\" in record) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring modelAttribute contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/attribute) but does not satisfy the modelAttribute descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push(...collectModelAttributeEntries(value, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Throws when two modelAttribute contributions — at any paths, even\n* different ones — claim the same bare `@@` attribute name. The family\n* interpreter dispatches by attribute name, not by registration path, so\n* two descriptors claiming the same name would have one silently shadow\n* the other.\n*/\nfunction assertUniqueModelAttributeNames(entries) {\n\tconst seen = /* @__PURE__ */ new Map();\n\tfor (const { path, discriminator: attribute } of entries) {\n\t\tconst existing = seen.get(attribute);\n\t\tif (existing !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate modelAttribute \"${attribute}\" registered at both \"${existing}\" and \"${path}\". Each modelAttribute contribution must claim a unique attribute name.`);\n\t\tseen.set(attribute, path);\n\t}\n}\nfunction assertNoCrossRegistryCollisions(typeNamespace, entityTypeNamespace = {}, pslBlockNamespace = {}, modelAttributeNamespace = {}) {\n\tconst typePaths = new Set(collectDescriptorPaths(typeNamespace, isAuthoringTypeDescriptor));\n\tconst entityPaths = new Set(collectDescriptorPaths(entityTypeNamespace, isAuthoringEntityTypeDescriptor));\n\tfor (const entityPath of entityPaths) if (typePaths.has(entityPath)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Ambiguous authoring registry path \"${entityPath}\". The same path is registered as an entity contribution AND as a type constructor or type alias; PSL resolution would be ambiguous. Register each path in only one of authoringContributions.type / authoringContributions.entityTypes.`);\n\tassertPslBlocksHaveFactories(entityTypeNamespace, pslBlockNamespace);\n\tassertUniqueModelAttributeNames(collectModelAttributeEntries(modelAttributeNamespace));\n}\nfunction collectDescriptorNodes(namespace, isLeaf, path = []) {\n\tconst nodes = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tnodes.push([currentPath.join(\".\"), value]);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) nodes.push(...collectDescriptorNodes(value, isLeaf, currentPath));\n\t}\n\treturn nodes;\n}\nfunction resolveAuthoringTemplateValue(template, args) {\n\tif (template === void 0) return;\n\tif (isAuthoringArgRef(template)) return args[template.index];\n\tif (Array.isArray(template)) return template.map((value) => resolveAuthoringTemplateValue(value, args));\n\tif (typeof template === \"object\" && template !== null) {\n\t\tconst resolved = {};\n\t\tfor (const [key, value] of Object.entries(template)) {\n\t\t\tconst resolvedValue = resolveAuthoringTemplateValue(value, args);\n\t\t\tif (resolvedValue !== void 0) resolved[key] = resolvedValue;\n\t\t}\n\t\treturn resolved;\n\t}\n\treturn template;\n}\nfunction validateAuthoringHelperArguments(helperPath, descriptors, args) {\n\tconst expected = descriptors ?? [];\n\tconst minimumArgs = expected.reduce((count, descriptor, index) => descriptor.optional ? count : index + 1, 0);\n\tif (args.length < minimumArgs || args.length > expected.length) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${helperPath} expects ${minimumArgs === expected.length ? expected.length : `${minimumArgs}-${expected.length}`} argument(s), received ${args.length}`);\n\texpected.forEach((descriptor, index) => {\n\t\tif (args[index] === void 0 && !descriptor.optional) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${argumentLabel(helperPath, descriptor, index)} is missing`);\n\t});\n}\nfunction argumentLabel(helperPath, descriptor, index) {\n\treturn descriptor.name === void 0 ? `Authoring helper argument at ${helperPath}[${index}]` : `Argument \"${descriptor.name}\" of ${helperPath}`;\n}\nfunction argumentIndexOf(template) {\n\tlet index;\n\tvisitTemplateArgRefs(template, (ref) => {\n\t\tindex ??= ref.index;\n\t});\n\treturn index;\n}\nfunction issueKey(issue) {\n\tconst [first] = issue.path ?? [];\n\tconst key = typeof first === \"object\" && first !== null ? first.key : first;\n\treturn typeof key === \"string\" ? key : void 0;\n}\nfunction authoringTypeParamsIssue(template, typeParams, paramsSchema) {\n\tif (template.typeParams === void 0 || paramsSchema === void 0) return void 0;\n\tconst result = paramsSchema[\"~standard\"].validate(typeParams ?? {});\n\tif (result instanceof Promise) throw new InternalError(`The parameter schema of codec \"${template.codecId}\" is asynchronous; authoring requires a synchronous schema.`);\n\tconst [issue] = result.issues ?? [];\n\tif (issue === void 0) return void 0;\n\tconst key = issueKey(issue);\n\treturn {\n\t\tmessage: issue.message,\n\t\targumentIndex: key === void 0 ? void 0 : argumentIndexOf(template.typeParams[key])\n\t};\n}\n/**\n* Checks the type parameters a constructor produced against its codec's parameter schema, which is where the bounds of a data type's parameters are written. A failure names the argument the failing parameter came from.\n*/\nfunction validateAuthoringTypeParams(helperPath, template, typeParams, paramsSchema) {\n\tconst issue = authoringTypeParamsIssue(template, typeParams, paramsSchema);\n\tif (issue === void 0) return;\n\tconst { argumentIndex } = issue;\n\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", argumentIndex === void 0 ? `The type parameters of ${helperPath} are invalid: ${issue.message}` : `Authoring helper argument at ${helperPath}[${argumentIndex}] is invalid: ${issue.message}`, {\n\t\thelperPath,\n\t\t...ifDefined(\"argumentIndex\", argumentIndex)\n\t});\n}\n/**\n* {@link validateAuthoringTypeParams} for a call of the type choice `choice` that chose `chosen`: a failure names the choice's own argument the failing parameter came from, by its name and its index in the choice's arguments.\n*/\nfunction validateAuthoringTypeChoiceParams(helperPath, choice, chosen, typeParams, paramsSchema) {\n\tconst issue = authoringTypeParamsIssue(chosen.output, typeParams, paramsSchema);\n\tif (issue === void 0) return;\n\tconst name = issue.argumentIndex === void 0 ? void 0 : chosen.args?.[issue.argumentIndex]?.name;\n\tconst argumentIndex = name === void 0 ? -1 : choice.args.findIndex((argument) => argument.name === name);\n\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", argumentIndex < 0 ? `The type parameters of ${helperPath} are invalid: ${issue.message}` : `Argument \"${name}\" of ${helperPath} is invalid: ${issue.message}`, {\n\t\thelperPath,\n\t\t...ifDefined(\"argumentIndex\", argumentIndex < 0 ? void 0 : argumentIndex)\n\t});\n}\nfunction resolveAuthoringStorageTypeTemplate(template, args) {\n\tconst typeParams = template.typeParams === void 0 ? void 0 : resolveAuthoringTemplateValue(template.typeParams, args);\n\tif (typeParams !== void 0 && !isAuthoringTemplateRecord(typeParams)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Resolved authoring typeParams must be an object for codec \"${template.codecId}\", received ${String(typeParams)}`);\n\tconst normalizedTypeParams = typeParams !== void 0 && Object.keys(typeParams).length === 0 ? void 0 : typeParams;\n\treturn {\n\t\tcodecId: template.codecId,\n\t\t...ifDefined(\"typeParams\", normalizedTypeParams)\n\t};\n}\nfunction instantiateAuthoringTypeConstructor(descriptor, args) {\n\treturn resolveAuthoringStorageTypeTemplate(descriptor.output, args);\n}\nfunction instantiateAuthoringTypeAlias(descriptor) {\n\tconst { output } = descriptor;\n\treturn {\n\t\ttype: resolveAuthoringStorageTypeTemplate(output.type, []),\n\t\t...ifDefined(\"onCreate\", output.onCreate),\n\t\t...ifDefined(\"onUpdate\", output.onUpdate)\n\t};\n}\nconst GENERATOR_PHASE_TEXT = {\n\tonCreate: \"on create\",\n\tonUpdate: \"on update\"\n};\n/**\n* The generators the calls of the type alias at `path` resolve to for its column, or `undefined` when it calls none. A call that does not resolve is the pack's mistake, so it throws `CONTRACT.PACK_CONTRIBUTION_INVALID`. `length` is the column's length, in its data type's normal form, when the caller's family knows it.\n*/\nfunction resolveTypeAliasGenerators(input) {\n\tconst { type, ...calls } = instantiateAuthoringTypeAlias(input.descriptor);\n\tconst phases = {};\n\tfor (const phase of [\"onCreate\", \"onUpdate\"]) {\n\t\tconst call = calls[phase];\n\t\tif (call === void 0) continue;\n\t\tconst resolution = input.generatorFunctions.resolve(call, {\n\t\t\tcodecId: type.codecId,\n\t\t\ttypeParams: type.typeParams,\n\t\t\tlength: input.length\n\t\t});\n\t\tif (resolution.ok) {\n\t\t\tphases[phase] = resolution.generator;\n\t\t\tcontinue;\n\t\t}\n\t\tconst written = `Type alias \"${input.path}\" calls ${call.name}() ${GENERATOR_PHASE_TEXT[phase]}`;\n\t\tthrow runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", resolution.reason === \"refused\" ? `${written}, which its codec \"${type.codecId}\" refuses: ${resolution.message}` : resolution.reason === \"not-bound\" ? `${written}, which does not apply to its codec \"${type.codecId}\".` : `${written}, but no component declares the generator function \"${call.name}\".`);\n\t}\n\treturn phases.onCreate === void 0 && phases.onUpdate === void 0 ? void 0 : phases;\n}\n/**\n* Refuses a type alias of `namespace` whose fixed type params its codec's parameter schema refuses, or whose generator call does not resolve for its codec and length. The control stack and the TypeScript builders call it on their assembled namespace, so PSL and TypeScript refuse the same packs, before any schema is read.\n*/\nfunction assertTypeAliasesValid(namespace, lookups) {\n\tfor (const [path, descriptor] of collectDescriptorNodes(namespace, isAuthoringTypeDescriptor)) {\n\t\tif (!isAuthoringTypeAliasDescriptor(descriptor)) continue;\n\t\tconst { type } = instantiateAuthoringTypeAlias(descriptor);\n\t\tconst issue = authoringTypeParamsIssue(descriptor.output.type, type.typeParams, lookups.paramsSchemaOf(type.codecId));\n\t\tif (issue !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Type alias \"${path}\" fixes type parameters its codec \"${type.codecId}\" refuses: ${issue.message}`);\n\t\tresolveTypeAliasGenerators({\n\t\t\tpath,\n\t\t\tdescriptor,\n\t\t\tgeneratorFunctions: lookups.generatorFunctions,\n\t\t\tlength: lookups.fieldLength({\n\t\t\t\tcodecId: type.codecId,\n\t\t\t\ttypeParams: type.typeParams\n\t\t\t})\n\t\t});\n\t}\n}\n/**\n* The column a type constructor makes from the stored values of its arguments, as a reader that holds values rather than written arguments has them, or why its codec's parameter schema refuses the parameters they give. The schema check is {@link validateAuthoringTypeParams}'s.\n*/\nfunction instantiateAuthoringTypeConstructorFromValues(descriptor, values, paramsSchema) {\n\tconst output = instantiateAuthoringTypeConstructor(descriptor, values);\n\tconst issue = authoringTypeParamsIssue(descriptor.output, output.typeParams, paramsSchema);\n\treturn issue === void 0 ? ok(output) : notOk(issue);\n}\nfunction instantiateAuthoringEntityType(helperPath, descriptor, args, ctx) {\n\tif (\"factory\" in descriptor.output) {\n\t\tconst input = args[0];\n\t\treturn blindCast(descriptor.output.factory)(input, ctx);\n\t}\n\tvalidateAuthoringHelperArguments(helperPath, descriptor.args, args);\n\treturn blindCast(resolveAuthoringTemplateValue(descriptor.output.template, args));\n}\n//#endregion\n//#region src/shared/authoring-type-choice.ts\nfunction isAuthoringTypeChoiceOption(argument) {\n\treturn argument.kind === \"option\";\n}\nfunction rowMatches(row, chosen, names) {\n\treturn names.every((name) => row.when[name] === chosen.get(name));\n}\n/** How a combination of option values is written, as in `as: string, storage: timestamp`. */\nfunction typeChoiceCombinationText(row) {\n\treturn Object.entries(row.when).map(([name, value]) => `${name}: ${value}`).join(\", \");\n}\nfunction listedNames(names) {\n\treturn names.length < 2 ? names.join(\"\") : `${names.slice(0, -1).join(\", \")} and ${names[names.length - 1]}`;\n}\nfunction isArgumentObject(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n/** Why `subject`, a call of the type choice `descriptor`, cannot take the argument `name`, naming the arguments it takes. */\nfunction unknownTypeChoiceArgumentMessage(subject, descriptor, name) {\n\treturn `${subject} has no argument \"${name}\"; its arguments are ${listedNames(descriptor.args.map((argument) => argument.name))}.`;\n}\n/**\n* The values of a type choice call that writes its arguments as one object, by the choice's argument positions, as {@link resolveAuthoringTypeChoice} reads them. `written` is the call's arguments: none, or one object keyed by argument name. Anything else, and a key the choice has no argument for, is refused with `CONTRACT.ARGUMENT_INVALID`.\n*/\nfunction typeChoiceArgumentsFromObject(helperPath, descriptor, written) {\n\tconst names = descriptor.args.map((argument) => argument.name);\n\tconst [first] = written;\n\tconst object = written.length === 0 ? {} : first;\n\tif (written.length > 1 || !isArgumentObject(object)) {\n\t\tconst example = descriptor.args.find(isAuthoringTypeChoiceOption);\n\t\tconst sample = example === void 0 ? \"\" : `{ ${example.name}: '${example.default}' }`;\n\t\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${helperPath} takes its arguments as one object with the keys ${listedNames(names)}, such as ${helperPath}(${sample}).`, { helperPath });\n\t}\n\tconst unknown = Object.keys(object).find((key) => !names.includes(key));\n\tif (unknown !== void 0) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", unknownTypeChoiceArgumentMessage(helperPath, descriptor, unknown), { helperPath });\n\treturn names.map((name) => object[name]);\n}\n/**\n* The type constructor a call of the type choice `descriptor` chooses, and the arguments it passes on. `args` are the call's values by the choice's argument positions; an option left out takes its default. A value an option does not list, a combination with no row, and a passed-on argument the chosen constructor does not take are refused with `CONTRACT.ARGUMENT_INVALID`, naming the argument by its index.\n*/\nfunction resolveAuthoringTypeChoice(input) {\n\tconst { helperPath, descriptor, args } = input;\n\tconst refuse = (argumentIndex, message) => {\n\t\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", message, {\n\t\t\thelperPath,\n\t\t\targumentIndex\n\t\t});\n\t};\n\tconst label = (index) => `Argument \"${descriptor.args[index]?.name}\" of ${helperPath}`;\n\tconst options = descriptor.args.flatMap((argument, index) => isAuthoringTypeChoiceOption(argument) ? [{\n\t\targument,\n\t\tindex\n\t}] : []);\n\tconst written = options.filter(({ index }) => args[index] !== void 0);\n\tconst defaulted = options.filter(({ index }) => args[index] === void 0);\n\tconst chosen = /* @__PURE__ */ new Map();\n\tconst decided = [];\n\tfor (const { argument, index } of [...written, ...defaulted]) {\n\t\tconst value = args[index] ?? argument.default;\n\t\tif (typeof value !== \"string\" || !argument.values.includes(value)) refuse(index, `${label(index)} is ${String(value)}; write one of: ${argument.values.join(\", \")}.`);\n\t\tconst fitting = descriptor.choices.filter((row) => rowMatches(row, chosen, decided));\n\t\tconst accepted = argument.values.filter((candidate) => fitting.some((row) => row.when[argument.name] === candidate));\n\t\tif (!accepted.includes(String(value))) {\n\t\t\tconst others = decided.map((name) => `${name}: ${chosen.get(name)}`).join(\", \");\n\t\t\trefuse(index, `${label(index)} cannot be ${String(value)} with ${others}; write one of: ${accepted.join(\", \")}.`);\n\t\t}\n\t\tchosen.set(argument.name, String(value));\n\t\tdecided.push(argument.name);\n\t}\n\tconst row = descriptor.choices.find((candidate) => rowMatches(candidate, chosen, decided));\n\tconst chosenType = row === void 0 ? void 0 : input.constructorNamed(row.type);\n\tif (row === void 0 || chosenType === void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Type choice \"${helperPath}\" chooses no registered type constructor for ${[...chosen].map(([name, value]) => `${name}: ${value}`).join(\", \")}.`, { helperPath });\n\tconst parameters = chosenType.args ?? [];\n\tdescriptor.args.forEach((argument, index) => {\n\t\tif (isAuthoringTypeChoiceOption(argument) || args[index] === void 0) return;\n\t\tif (!parameters.some((parameter) => parameter.name === argument.name)) refuse(index, `${label(index)} does not apply to ${row.type}, the type that ${typeChoiceCombinationText(row)} chooses.`);\n\t});\n\treturn {\n\t\ttype: row.type,\n\t\tdescriptor: chosenType,\n\t\targs: parameters.map((parameter) => {\n\t\t\tconst index = descriptor.args.findIndex((argument) => !isAuthoringTypeChoiceOption(argument) && argument.name === parameter.name);\n\t\t\treturn (index < 0 ? void 0 : args[index]) ?? (parameter.name === void 0 ? void 0 : row.defaults?.[parameter.name]);\n\t\t})\n\t};\n}\n/** Looks a type constructor up by name in one level of a type namespace, as a type choice's rows name them. */\nfunction typeConstructorLookup(namespace) {\n\treturn (name) => {\n\t\tconst member = Object.hasOwn(namespace, name) ? namespace[name] : void 0;\n\t\treturn member !== void 0 && isAuthoringTypeConstructorDescriptor(member) ? member : void 0;\n\t};\n}\nfunction memberNamed(namespace, name) {\n\treturn Object.hasOwn(namespace, name) ? namespace[name] : void 0;\n}\nfunction subNamespace(member) {\n\treturn member === void 0 || isAuthoringTypeDescriptor(member) ? void 0 : member;\n}\n/** The sub-namespace at `path` of a type namespace, or `undefined` when a segment names no sub-namespace. */\nfunction authoringTypeNamespaceLevel(namespace, path) {\n\tlet level = namespace;\n\tfor (const segment of path) level = level === void 0 ? void 0 : subNamespace(memberNamed(level, segment));\n\treturn level;\n}\n/** The type choice at `path` in the contributions' type namespace, with a lookup of the type constructors beside it that its rows name, or `undefined` when none is there. */\nfunction getAuthoringTypeChoice(contributions, path) {\n\tconst level = authoringTypeNamespaceLevel(contributions?.type, path.slice(0, -1));\n\tconst name = path.at(-1);\n\tconst member = level === void 0 || name === void 0 ? void 0 : memberNamed(level, name);\n\treturn member !== void 0 && level !== void 0 && isAuthoringTypeChoiceDescriptor(member) ? {\n\t\tdescriptor: member,\n\t\tconstructorNamed: typeConstructorLookup(level)\n\t} : void 0;\n}\n/**\n* The column a call of the type constructor or type choice `name`, in one level of a type namespace, makes from its arguments. A type choice's arguments choose a constructor of the same level, which is instantiated with the arguments it passes on.\n*/\nfunction instantiateAuthoringTypeCall(namespace, name, args) {\n\tconst member = memberNamed(namespace, name);\n\tif (member !== void 0 && isAuthoringTypeConstructorDescriptor(member)) return instantiateAuthoringTypeConstructor(member, args);\n\tif (member === void 0 || !isAuthoringTypeChoiceDescriptor(member)) throw new InternalError(`\"${name}\" is not a type constructor or type choice of this namespace.`);\n\tconst chosen = resolveAuthoringTypeChoice({\n\t\thelperPath: name,\n\t\tdescriptor: member,\n\t\targs,\n\t\tconstructorNamed: typeConstructorLookup(namespace)\n\t});\n\treturn instantiateAuthoringTypeConstructor(chosen.descriptor, chosen.args);\n}\n/**\n* Derives the scalar view of an assembled authoring type namespace: every\n* **top-level** type constructor that is instantiable with an empty argument\n* list — all declared args optional and no entity-ref argument. A bare type\n* name `T` in a schema is semantically the zero-arg instantiation `T()`, so\n* each entry is exactly what that call produces (defaulted template values\n* applied, absent optional-arg typeParams keys omitted). Constructors\n* registered under a namespace segment, constructors with required args, and\n* entity-ref constructors are not scalars and are excluded.\n*\n* Eligibility needs no template inspection: templates that cannot resolve\n* for their legal call shapes are rejected at the composition boundary by\n* {@link assertResolvableTypeConstructorTemplates}, so the zero-arg\n* instantiation below cannot fail for an eligible constructor.\n*/\nfunction collectScalarTypeConstructors(namespace) {\n\tconst result = /* @__PURE__ */ new Map();\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tif (isAuthoringTypeChoiceDescriptor(value)) {\n\t\t\tresult.set(name, instantiateAuthoringTypeCall(namespace, name, []));\n\t\t\tcontinue;\n\t\t}\n\t\tif (!isAuthoringTypeConstructorDescriptor(value)) continue;\n\t\tif (value.entityRefArg !== void 0) continue;\n\t\tif (value.args?.some((arg) => arg.optional !== true)) continue;\n\t\tresult.set(name, instantiateAuthoringTypeConstructor(value, []));\n\t}\n\treturn result;\n}\nfunction assertTypeChoiceValid(path, descriptor, contributedBy, level) {\n\tconst invalidError = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Type choice \"${path}\" contributed by \"${contributedBy}\" ${detail}`, {\n\t\tpackId: contributedBy,\n\t\tcontribution: path\n\t});\n\tconst invalid = (detail) => {\n\t\tthrow invalidError(detail);\n\t};\n\tconst constructorNamed = typeConstructorLookup(level);\n\tconst options = descriptor.args.filter(isAuthoringTypeChoiceOption);\n\tconst passed = descriptor.args.filter((argument) => !isAuthoringTypeChoiceOption(argument));\n\tfor (const option of options) if (!option.values.includes(option.default)) invalid(`defaults option \"${option.name}\" to ${option.default}, which it does not list.`);\n\tfor (const row of descriptor.choices) {\n\t\tif (!(Object.keys(row.when).length === options.length && options.every((option) => option.values.includes(row.when[option.name] ?? \"\")))) invalid(`has a row for ${typeChoiceCombinationText(row)}, which does not give every option one of its values.`);\n\t\tconst names = options.map((option) => option.name);\n\t\tconst chosen = new Map(Object.entries(row.when));\n\t\tif (descriptor.choices.filter((other) => rowMatches(other, chosen, names)).length > 1) invalid(`has two rows for ${typeChoiceCombinationText(row)}; each combination chooses one type.`);\n\t\tconst chosenType = constructorNamed(row.type);\n\t\tif (chosenType === void 0) throw invalidError(`chooses \"${row.type}\", which is not a type constructor \"${contributedBy}\" registers beside it.`);\n\t\tfor (const name of Object.keys(row.defaults ?? {})) {\n\t\t\tif (!passed.some((argument) => argument.name === name)) invalid(`gives a default for \"${name}\", which is not an argument it passes on.`);\n\t\t\tif (!chosenType.args?.some((parameter) => parameter.name === name)) invalid(`gives a default for \"${name}\" to \"${row.type}\", which takes no argument of that name.`);\n\t\t}\n\t\tfor (const argument of passed) {\n\t\t\tconst parameter = chosenType.args?.find((candidate) => candidate.name === argument.name);\n\t\t\tif (parameter?.kind === \"value\" && parameter.dataType !== argument.dataType) invalid(`passes \"${argument.name}\" as a value of data type \"${argument.dataType}\" to \"${row.type}\", which takes \"${parameter.dataType}\".`);\n\t\t}\n\t\tchosenType.args?.forEach((parameter, index) => {\n\t\t\tif (parameter.optional === true) return;\n\t\t\tif (parameter.name !== void 0 && Object.hasOwn(row.defaults ?? {}, parameter.name)) return;\n\t\t\tconst required = parameter.name === void 0 ? `an unnamed argument ${index + 1}` : `\"${parameter.name}\"`;\n\t\t\tinvalid(`has a row for ${typeChoiceCombinationText(row)} that chooses \"${row.type}\", which requires ${required}, and gives it no default.`);\n\t\t});\n\t}\n\tconst defaults = {\n\t\twhen: Object.fromEntries(options.map((option) => [option.name, option.default])),\n\t\ttype: \"\"\n\t};\n\tconst names = options.map((option) => option.name);\n\tconst chosen = new Map(Object.entries(defaults.when));\n\tif (!descriptor.choices.some((row) => rowMatches(row, chosen, names))) invalid(`has no row for its defaults ${typeChoiceCombinationText(defaults)}, so it cannot be written bare.`);\n}\n/**\n* Refuses a type choice of a component's `contributed` type namespace whose table cannot be resolved: a row that names no type constructor the same component contributes at the same level, a combination or default an option does not list, defaults with no row, a parameter default for an argument it does not pass on, a passed-on argument of another data type than the constructor takes, or a row whose constructor requires an argument the row gives no default. ADR 279: each row names an explicit type of the same target.\n*/\nfunction assertTypeChoicesValid(contributed, contributedBy, path = []) {\n\tfor (const [name, value] of Object.entries(contributed)) {\n\t\tconst currentPath = [...path, name];\n\t\tif (isAuthoringTypeChoiceDescriptor(value)) {\n\t\t\tassertTypeChoiceValid(currentPath.join(\".\"), value, contributedBy, contributed);\n\t\t\tcontinue;\n\t\t}\n\t\tconst level = subNamespace(value);\n\t\tif (level !== void 0) assertTypeChoicesValid(level, contributedBy, currentPath);\n\t}\n}\n//#endregion\n//#region src/shared/tagged-literal.ts\nconst TAGGED_LITERAL_MAX_BYTES = 65536;\n/** The message a tagged literal's canonicalization failure is reported with, in PSL and in TypeScript. */\nfunction describeTaggedLiteralFailure(reason) {\n\tswitch (reason) {\n\t\tcase \"nul\": return \"Tagged literals must not contain NUL characters.\";\n\t\tcase \"too-large\": return `Tagged literal exceeds ${TAGGED_LITERAL_MAX_BYTES} bytes.`;\n\t}\n}\nconst PSL_BACKTICK_ESCAPES = /* @__PURE__ */ new Set([\"`\", \"\\\\\"]);\nconst TEMPLATE_TAG_ESCAPES = /* @__PURE__ */ new Set([\n\t\"`\",\n\t\"\\\\\",\n\t\"$\"\n]);\n/** The escapes a PSL backtick string resolves: `` \\` `` and `\\\\`. PSL has no interpolation, so `${` is ordinary text. */\nfunction resolvePslBacktickEscapes(raw) {\n\treturn resolveEscapes(raw, PSL_BACKTICK_ESCAPES);\n}\n/** The escapes a TypeScript template tag resolves: the PSL two plus `\\$`, the only way to write `${` in a template literal. */\nfunction resolveTemplateTagEscapes(raw) {\n\treturn resolveEscapes(raw, TEMPLATE_TAG_ESCAPES);\n}\n/** Every other backslash sequence is kept as written, both characters, so a SQL body may contain `E'\\n'` unchanged. */\nfunction resolveEscapes(raw, escapes) {\n\tlet out = \"\";\n\tlet i = 0;\n\twhile (i < raw.length) {\n\t\tconst ch = raw.charAt(i);\n\t\tconst next = raw.charAt(i + 1);\n\t\tif (ch === \"\\\\\" && escapes.has(next)) {\n\t\t\tout += next;\n\t\t\ti += 2;\n\t\t\tcontinue;\n\t\t}\n\t\tout += ch;\n\t\ti++;\n\t}\n\treturn out;\n}\nconst BLANK_LINE = /^[ \\t]*$/;\nconst LEADING_INDENT = /^[ \\t]*/;\nconst LINE_BREAK = /\\r\\n|\\r|\\n/g;\n/**\n* Turns the escape-resolved body of a tagged literal into its canonical text:\n* newlines become `\\n`, every blank line before the first non-blank line and\n* after the last one is dropped, common leading whitespace is removed, internal\n* blank lines become empty, and no trailing newline is added. The result is its\n* own canonical text. Fails on a NUL character or when the result is larger\n* than 65536 UTF-8 bytes.\n*/\nfunction canonicalizeTaggedLiteralBody(resolved) {\n\tconst nul = resolved.indexOf(\"\\0\");\n\tif (nul !== -1) return {\n\t\tok: false,\n\t\treason: \"nul\",\n\t\toffset: nul\n\t};\n\tconst lines = splitLines(resolved);\n\twhile (lines.length > 0 && BLANK_LINE.test(lines[0]?.text ?? \"\")) lines.shift();\n\twhile (lines.length > 0 && BLANK_LINE.test(lines.at(-1)?.text ?? \"\")) lines.pop();\n\tconst indent = commonIndent(lines);\n\tconst bodyLines = lines.map((line) => BLANK_LINE.test(line.text) ? {\n\t\ttext: \"\",\n\t\tstart: line.start\n\t} : {\n\t\ttext: line.text.slice(indent),\n\t\tstart: line.start + indent\n\t});\n\tconst excess = offsetWhereBytesExceed(bodyLines, TAGGED_LITERAL_MAX_BYTES);\n\tif (excess !== void 0) return {\n\t\tok: false,\n\t\treason: \"too-large\",\n\t\toffset: excess\n\t};\n\treturn {\n\t\tok: true,\n\t\ttext: bodyLines.map((line) => line.text).join(\"\\n\")\n\t};\n}\nfunction splitLines(text) {\n\tconst lines = [];\n\tlet start = 0;\n\tfor (const match of text.matchAll(LINE_BREAK)) {\n\t\tlines.push({\n\t\t\ttext: text.slice(start, match.index),\n\t\t\tstart\n\t\t});\n\t\tstart = match.index + match[0].length;\n\t}\n\tlines.push({\n\t\ttext: text.slice(start),\n\t\tstart\n\t});\n\treturn lines;\n}\nfunction commonIndent(lines) {\n\tlet indent = Number.POSITIVE_INFINITY;\n\tfor (const line of lines) {\n\t\tif (BLANK_LINE.test(line.text)) continue;\n\t\tindent = Math.min(indent, LEADING_INDENT.exec(line.text)?.[0].length ?? 0);\n\t}\n\treturn Number.isFinite(indent) ? indent : 0;\n}\n/** The resolved-body offset of the first character that pushes the text past `limit` bytes. */\nfunction offsetWhereBytesExceed(lines, limit) {\n\tlet bytes = 0;\n\tfor (const [index, line] of lines.entries()) {\n\t\tif (index > 0) {\n\t\t\tbytes += 1;\n\t\t\tif (bytes > limit) return line.start;\n\t\t}\n\t\tlet offsetInLine = 0;\n\t\tfor (const char of line.text) {\n\t\t\tbytes += utf8Length(char.codePointAt(0) ?? 0);\n\t\t\tif (bytes > limit) return line.start + offsetInLine;\n\t\t\toffsetInLine += char.length;\n\t\t}\n\t}\n}\nfunction utf8Length(codePoint) {\n\tif (codePoint < 128) return 1;\n\tif (codePoint < 2048) return 2;\n\tif (codePoint < 65536) return 3;\n\treturn 4;\n}\nfunction escapeQuotedText(text) {\n\treturn text.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\");\n}\n/**\n* The PSL text of a tagged literal holding `text`: the backtick form, or the double-quote form when the text holds a\n* backtick, which reads better than escaping each backtick. A multi-line text starts on the line after the opening\n* backtick, so indentation a printer adds to an enclosing block is common to every line and the canonicalization\n* removes it. The literal's canonical text is `text` again only when {@link printedTaggedLiteralReadsBack} holds; text\n* with leading indentation or a carriage return, for example, does not read back. ADR 129.\n*/\nfunction printTaggedLiteral(tag, text) {\n\tif (text.includes(\"`\")) return `${tag}\"${escapeQuotedText(text)}\"`;\n\tconst fenced = text.replace(/\\\\(?=\\\\|$)/g, \"\\\\\\\\\");\n\treturn isPrintedOnOwnLines(text) ? `${tag}\\`\\n${fenced}\\n\\`` : `${tag}\\`${fenced}\\``;\n}\nfunction isPrintedOnOwnLines(text) {\n\treturn !text.includes(\"`\") && text.includes(\"\\n\");\n}\n/** Whether the literal {@link printTaggedLiteral} prints for `text` has `text` as its canonical text. */\nfunction printedTaggedLiteralReadsBack(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(isPrintedOnOwnLines(text) ? `\\n${text}\\n` : text);\n\treturn canonical.ok && canonical.text === text;\n}\n/**\n* TypeScript source for `text` in generated code: a template literal with `tag`, or `tsQuotedTextSource(text)`. It\n* writes a template only when the tag's TypeScript function canonicalizes its text as `canonicalizeTaggedLiteralBody`\n* does and that leaves `text` unchanged, which holds for `sql`. It also falls back when a line ends in a space or a\n* tab, which editors strip on save, and when `text` holds a character a template would carry unescaped and invisible.\n* A multi-line template's lines sit one level deeper than the line it opens on.\n*/\nfunction tsTaggedTemplateSource(tag, text) {\n\tif (!templateHoldsUnchanged(text)) return {\n\t\tsource: tsQuotedTextSource(text),\n\t\tusesTag: false\n\t};\n\tconst escaped = tsTemplateText(text);\n\tif (!text.includes(\"\\n\")) return {\n\t\tsource: `${tag}\\`${escaped}\\``,\n\t\tusesTag: true\n\t};\n\treturn {\n\t\tsource: `${tag}\\`\\n${escaped.split(\"\\n\").map((line) => line.length === 0 ? line : ` ${line}`).join(\"\\n\")}\\n\\``,\n\t\tusesTag: true\n\t};\n}\nconst WHITESPACE_ONLY_LINE = /^\\s+$/;\nconst TRAILING_SPACE_OR_TAB = /[ \\t]$/;\nfunction templateHoldsUnchanged(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(text);\n\tif (!canonical.ok || canonical.text !== text) return false;\n\tconst lines = text.split(\"\\n\");\n\tconst indentTreatsAsBlank = (line) => WHITESPACE_ONLY_LINE.test(line) && !BLANK_LINE.test(line);\n\tif (lines.some((line) => indentTreatsAsBlank(line) || TRAILING_SPACE_OR_TAB.test(line))) return false;\n\treturn !holdsCharacterThatNeedsAnEscape(text);\n}\nfunction holdsCharacterThatNeedsAnEscape(text) {\n\tfor (const char of text) {\n\t\tconst code = char.codePointAt(0) ?? 0;\n\t\tif (code < 32 && char !== \"\\n\" && char !== \"\t\" || code === 127 || code === 8232 || code === 8233 || code >= 55296 && code <= 57343) return true;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/shared/data-type-support.ts\nconst UNKNOWN_CONTRIBUTOR = \"<unknown>\";\n/** Merge every component's PSL support for its data types, refusing two claims on one key. */\nfunction assembleAuthoringDataTypes(components) {\n\tconst merged = {};\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const component of components) {\n\t\tconst contributedBy = component.id ?? UNKNOWN_CONTRIBUTOR;\n\t\tfor (const [key, entry] of Object.entries(component.authoring?.dataTypes ?? {})) {\n\t\t\tconst existingOwner = owners.get(key);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_ENTRY_DUPLICATE\", `Duplicate authoring entry for \"${key}\". Component \"${contributedBy}\" conflicts with \"${existingOwner}\".`, {\n\t\t\t\tkey,\n\t\t\t\tcontributedBy,\n\t\t\t\towner: existingOwner\n\t\t\t});\n\t\t\towners.set(key, contributedBy);\n\t\t\tmerged[key] = entry;\n\t\t}\n\t}\n\treturn merged;\n}\nfunction descriptorsIn(namespace, isLeaf, path = []) {\n\treturn Object.entries(namespace ?? {}).flatMap(([key, value]) => {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) return [{\n\t\t\tpath: currentPath.join(\".\"),\n\t\t\tdescriptor: value\n\t\t}];\n\t\tif (typeof value !== \"object\" || value === null || Array.isArray(value)) return [];\n\t\treturn descriptorsIn(value, isLeaf, currentPath);\n\t});\n}\n/** Every type constructor a component contributes. */\nfunction contributedHelpers(component) {\n\treturn descriptorsIn(component.authoring?.type, isAuthoringTypeDescriptor).flatMap(({ path, descriptor }) => isAuthoringTypeConstructorDescriptor(descriptor) ? [{\n\t\tpath,\n\t\tdescriptor,\n\t\tcontributedBy: component.id ?? UNKNOWN_CONTRIBUTOR\n\t}] : []);\n}\n/** The data types a contract source can write: each entry's own, and every type a plain-number entry classifies a number as. */\nfunction writableDataTypes(entries) {\n\treturn new Set(entries.flatMap(({ key, entry }) => [key, ...entry.written.kind === \"plain\" && entry.written.syntax === \"number\" ? entry.written.types : []]));\n}\n/** Refuses a value argument whose data type is unregistered, or that no contract source can write, directly or through a cast, and a type-constructor argument that is not a value. */\nfunction enforceValueArguments(support, contributed, writable) {\n\tconst { path, descriptor, contributedBy } = contributed;\n\tfor (const [index, argument] of (descriptor.args ?? []).entries()) {\n\t\tconst label = `Argument ${argument.name === void 0 ? `#${index + 1}` : `\"${argument.name}\"`} of type constructor \"${path}\"`;\n\t\tconst argumentKind = argument.kind;\n\t\tif (argumentKind !== \"value\") throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `${label} contributed by \"${contributedBy}\" is an argument of kind \"${argumentKind}\", but a type constructor's argument is a value of a data type. Declare it as { kind: 'value', dataType: ... }, naming the data type its value belongs to.`, {\n\t\t\tpackId: contributedBy,\n\t\t\tcontribution: path,\n\t\t\treason: \"type-constructor-argument-not-a-value\"\n\t\t});\n\t\tconst type = support.lookup.get(argument.dataType);\n\t\tif (type === void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `${label} names data type \"${argument.dataType}\", which no component registers. Contributed by \"${contributedBy}\".`, {\n\t\t\tdataType: argument.dataType,\n\t\t\tcontributedBy\n\t\t});\n\t\tif (![argument.dataType, ...Object.keys(type.casts)].some((admittedType) => writable.has(admittedType))) throw runtimeError(\"CONTRACT.DATA_TYPE_NOT_WRITABLE\", `${label} contributed by \"${contributedBy}\" takes a value of data type \"${argument.dataType}\", which no contract source can write.`, {\n\t\t\tdataType: argument.dataType,\n\t\t\tcontributedBy\n\t\t});\n\t}\n}\nfunction textDataTypesOf(components) {\n\treturn components.flatMap((component) => (component.authoring?.textDataTypes ?? []).map((dataType) => ({\n\t\tdataType,\n\t\tcontributedBy: component.id ?? UNKNOWN_CONTRIBUTOR\n\t})));\n}\n/**\n* The checks assembly makes across components on their data types, each naming the component and the id at fault:\n*\n* 1. every codec names a registered data type;\n* 2. every authoring entry, and every type a number classifier returns, names a registered data type;\n* 3. every type a cast takes values of is registered and can be written, because a cast from a type nobody can write is never exercised;\n* 4. no two entries claim one tag or one plain form;\n* 5. every text data type a component names is registered.\n*/\nfunction enforceDataTypeAssemblyInvariants(input) {\n\tconst unregistered = (contributedBy, id, what) => {\n\t\tthrow runtimeError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `${what} names data type \"${id}\", which no component registers. Contributed by \"${contributedBy}\".`, {\n\t\t\tdataType: id,\n\t\t\tcontributedBy\n\t\t});\n\t};\n\tfor (const codec of input.codecs) if (!input.lookup.has(codec.dataType)) unregistered(codec.contributedBy, codec.dataType, `Codec \"${codec.codecId}\"`);\n\tfor (const { key, entry, contributedBy } of input.authoringEntries) {\n\t\tif (!input.lookup.has(key)) unregistered(contributedBy, key, \"Authoring entry\");\n\t\tif (entry.written.kind === \"plain\" && entry.written.syntax === \"number\") {\n\t\t\tfor (const classified of entry.written.types) if (!input.lookup.has(classified)) unregistered(contributedBy, classified, `The classifier of authoring entry \"${key}\"`);\n\t\t}\n\t}\n\tfor (const { dataType, contributedBy } of input.textDataTypes) if (!input.lookup.has(dataType)) unregistered(contributedBy, dataType, \"The text data types\");\n\tconst writable = writableDataTypes(input.authoringEntries);\n\tfor (const { type, contributedBy } of input.declaredTypes) {\n\t\tconst sources = [...Object.keys(type.casts), ...type.listCast?.of ?? []];\n\t\tfor (const source of sources) {\n\t\t\tif (!input.lookup.has(source)) unregistered(contributedBy, source, `The casts of data type \"${type.id}\"`);\n\t\t\tif (!writable.has(source)) throw runtimeError(\"CONTRACT.DATA_TYPE_NOT_WRITABLE\", `Data type \"${type.id}\" casts from \"${source}\", which no contract source can write, so the cast is never exercised. Contributed by \"${contributedBy}\".`, {\n\t\t\t\tdataType: type.id,\n\t\t\t\tsource,\n\t\t\t\tcontributedBy\n\t\t\t});\n\t\t}\n\t}\n\tconst claimants = /* @__PURE__ */ new Map();\n\tfor (const { key, entry, contributedBy } of input.authoringEntries) {\n\t\tconst written = entry.written;\n\t\tconst claim = written.kind === \"tag\" ? `tag \"${written.tag}\"` : `plain ${written.syntax}`;\n\t\tconst existing = claimants.get(claim);\n\t\tif (existing !== void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_WRITTEN_FORM_DUPLICATE\", `Two authoring entries claim the ${claim}: \"${key}\" from \"${contributedBy}\" conflicts with \"${existing.key}\" from \"${existing.contributedBy}\".`, {\n\t\t\tclaim,\n\t\t\tkey,\n\t\t\tcontributedBy,\n\t\t\towner: existing.key,\n\t\t\townerContributedBy: existing.contributedBy\n\t\t});\n\t\tclaimants.set(claim, {\n\t\t\tkey,\n\t\t\tcontributedBy\n\t\t});\n\t}\n}\n/**\n* The data types the components register, with their authoring entries, as every contract source reads values with. Refuses two registrations of one data type or one entry key, every case {@link enforceDataTypeAssemblyInvariants} lists, a value argument of a type constructor whose data type is unregistered or that no contract source can write, and a type-constructor argument that is not a value. ADR 254.\n*/\nfunction assembleDataTypeSupport(components, dataTypeOfCodec) {\n\tconst { lookup, declared } = assembleDataTypes(components);\n\tconst entries = assembleAuthoringDataTypes(components);\n\tconst contributedBy = (component) => component.id ?? UNKNOWN_CONTRIBUTOR;\n\tconst authoringEntries = components.flatMap((component) => Object.entries(component.authoring?.dataTypes ?? {}).map(([key, entry]) => ({\n\t\tkey,\n\t\tentry,\n\t\tcontributedBy: contributedBy(component)\n\t})));\n\tenforceDataTypeAssemblyInvariants({\n\t\tlookup,\n\t\tdeclaredTypes: declared,\n\t\tcodecs: components.flatMap((component) => (component.types?.codecTypes?.codecDescriptors ?? []).map(({ codecId, dataType }) => ({\n\t\t\tcodecId,\n\t\t\tdataType,\n\t\t\tcontributedBy: contributedBy(component)\n\t\t}))),\n\t\tauthoringEntries,\n\t\ttextDataTypes: textDataTypesOf(components)\n\t});\n\tconst support = {\n\t\tentries,\n\t\tlookup,\n\t\tdataTypeOfCodec,\n\t\ttextDataTypes: [...new Set(components.flatMap((component) => component.authoring?.textDataTypes ?? []))]\n\t};\n\tconst writable = writableDataTypes(authoringEntries);\n\tfor (const contributed of components.flatMap(contributedHelpers)) enforceValueArguments(support, contributed, writable);\n\treturn {\n\t\tsupport,\n\t\tdeclared\n\t};\n}\n//#endregion\n//#region src/shared/temporal-type-aliases.ts\n/**\n* Canonical id for the wall-clock-now mutation default generator. It flows to the control-plane descriptor, to each family's runtime generator, and to the `now()` binding of the codecs that store it.\n*/\nconst TIMESTAMP_NOW_GENERATOR_ID = \"timestampNow\";\n/** Builds the control-plane descriptor for the wall-clock-now mutation default generator. */\nfunction timestampNowControlDescriptor() {\n\treturn { id: TIMESTAMP_NOW_GENERATOR_ID };\n}\nconst NOW_CALL = {\n\tname: \"now\",\n\targs: {}\n};\n/**\n* Builds the `temporal.{CreatedAt,UpdatedAt}` type alias pair for a target's timestamp column type. `CreatedAt` calls `now()` on create; `UpdatedAt` calls it on create and on update. The target's `now()` binding for the codec picks the generator. `value` names the value the codec gives in TypeScript, such as `a JavaScript Date`, and ends each alias's documentation.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalTypeAliases(type, value) {\n\treturn {\n\t\tCreatedAt: {\n\t\t\tkind: \"typeAlias\",\n\t\t\tdocumentation: `A timestamp the client sets to now when a row is created. Its value is ${value}.`,\n\t\t\toutput: {\n\t\t\t\ttype,\n\t\t\t\tonCreate: NOW_CALL\n\t\t\t}\n\t\t},\n\t\tUpdatedAt: {\n\t\t\tkind: \"typeAlias\",\n\t\t\tdocumentation: `A timestamp the client sets to now when a row is created and every time it is updated. Its value is ${value}.`,\n\t\t\toutput: {\n\t\t\t\ttype,\n\t\t\t\tonCreate: NOW_CALL,\n\t\t\t\tonUpdate: NOW_CALL\n\t\t\t}\n\t\t}\n\t};\n}\n//#endregion\nexport { validateAuthoringTypeChoiceParams as $, assertTypeAliasesValid as A, isAuthoringEntityTypeDescriptor as B, typeChoiceCombinationText as C, assertNoAuthoringFieldNamespace as D, AUTHORING_TYPE_DESCRIPTOR_KINDS as E, instantiateAuthoringEntityType as F, isAuthoringTypeConstructorDescriptor as G, isAuthoringPslBlockDescriptor as H, instantiateAuthoringTypeAlias as I, mergeAuthoringNamespaces as J, isAuthoringTypeDescriptor as K, instantiateAuthoringTypeConstructor as L, collectContributedDescriptorPaths as M, flushAuthoringWarnings as N, assertNoCrossRegistryCollisions as O, getAuthoringTypeConstructor as P, validateAuthoringHelperArguments as Q, instantiateAuthoringTypeConstructorFromValues as R, typeChoiceArgumentsFromObject as S, unknownTypeChoiceArgumentMessage as T, isAuthoringTypeAliasDescriptor as U, isAuthoringModelAttributeDescriptor as V, isAuthoringTypeChoiceDescriptor as W, resolveEnumCodecId as X, resolveAuthoringTemplateValue as Y, resolveTypeAliasGenerators as Z, collectScalarTypeConstructors as _, assembleDataTypeSupport as a, isAuthoringTypeChoiceOption as b, canonicalizeTaggedLiteralBody as c, printedTaggedLiteralReadsBack as d, validateAuthoringTypeParams as et, resolvePslBacktickEscapes as f, authoringTypeNamespaceLevel as g, assertTypeChoicesValid as h, assembleAuthoringDataTypes as i, classifyEnumMemberType as j, assertResolvableTypeConstructorTemplates as k, describeTaggedLiteralFailure as l, tsTaggedTemplateSource as m, temporalTypeAliases as n, contributedHelpers as o, resolveTemplateTagEscapes as p, mergeAuthoringAttributeSpecs as q, timestampNowControlDescriptor as r, TAGGED_LITERAL_MAX_BYTES as s, TIMESTAMP_NOW_GENERATOR_ID as t, printTaggedLiteral as u, getAuthoringTypeChoice as v, typeConstructorLookup as w, resolveAuthoringTypeChoice as x, instantiateAuthoringTypeCall as y, isAuthoringArgRef as z };\n\n//# sourceMappingURL=temporal-type-aliases-CFh3BW2a.mjs.map"],"mappings":";;;;;;;;;;AAUA,MAAM,kCAAkC;CACvC;CACA;CACA;AACD;AACA,MAAM,oCAAoC;;;;;;;;AAQ1C,SAAS,uBAAuB,UAAU;CACzC,MAAM,yBAAyB,IAAI,IAAI;CACvC,KAAK,MAAM,WAAW,UAAU;EAC/B,MAAM,MAAM,KAAK,UAAU,CAAC,QAAQ,MAAM,QAAQ,OAAO,CAAC;EAC1D,MAAM,QAAQ,OAAO,IAAI,GAAG,KAAK,CAAC;EAClC,MAAM,KAAK,OAAO;EAClB,OAAO,IAAI,KAAK,KAAK;CACtB;CACA,KAAK,MAAM,SAAS,OAAO,OAAO,GAAG;EACpC,MAAM,QAAQ,MAAM;EACpB,IAAI,UAAU,KAAK,GAAG;EACtB,IAAI,MAAM,UAAU,mCAAmC;GACtD,KAAK,MAAM,WAAW,OAAO,QAAQ,YAAY,QAAQ,SAAS,EAAE,MAAM,QAAQ,KAAK,CAAC;GACxF;EACD;EACA,QAAQ,YAAY,GAAG,MAAM,OAAO,GAAG,MAAM,QAAQ,IAAI,MAAM,KAAK,MAAM,OAAO,EAAE,MAAM,CAAC,CAAC,KAAK,IAAI,KAAK,EAAE,MAAM,MAAM,KAAK,CAAC;CAC9H;AACD;AACA,SAAS,uBAAuB,QAAQ;CACvC,IAAI,UAAU;CACd,IAAI,SAAS;CACb,KAAK,MAAM,OAAO,OAAO,KAAK,MAAM,GAAG;EACtC,MAAM,QAAQ,OAAO;EACrB,IAAI,UAAU,KAAK,KAAK,OAAO,UAAU,UAAU,UAAU;OACxD,IAAI,OA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;EACD;EACA,WAAW;GACV,MAAM;GACN,eAAe,uGAAuG,MAAM;GAC5H,QAAQ;IACP;IACA,UAAU;IACV,UAAU;GACX;EACD;CACD;AACD"}
@@ -1,2 +1,2 @@
1
- import { a as tsObjectSource, c as tsTemplateText, i as tsArraySource, n as jsonToTsSource, o as tsQuotedTextSource, r as renderImports, s as tsStringLiteral, t as TsExpression } from "./dist-D1f6xr7F.mjs";
1
+ import { a as tsObjectSource, c as tsTemplateText, i as tsArraySource, n as jsonToTsSource, o as tsQuotedTextSource, r as renderImports, s as tsStringLiteral, t as TsExpression } from "./dist-s8Mn2iIF.mjs";
2
2
  export { TsExpression, jsonToTsSource, renderImports, tsArraySource, tsObjectSource, tsQuotedTextSource, tsStringLiteral, tsTemplateText };
@@ -1,9 +1,9 @@
1
1
  import { r as isInternalError, t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
2
2
  import { n as notOk, r as ok } from "./result-8OXF26MN.mjs";
3
3
  import { c as createDataTypeLookup, u as dataTypeId } from "./data-type-V6mcDhcG-DVQAPOQT.mjs";
4
- import { B as resolveAuthoringTypeChoice, X as typeConstructorLookup, _ as describeTaggedLiteralFailure } from "./temporal-type-aliases-CFh3BW2a-DOlmiuQn.mjs";
5
- import { C as readWrittenValueAs, l as describeExpected, t as admittedForms } from "./authoring-DnYn5EZT.mjs";
6
- import { C as printSyntax, a as IdentifierAst, c as ObjectLiteralExprAst, d as StringLiteralExprAst, i as FunctionCallAst, m as TaggedLiteralExprAst, o as NumberLiteralExprAst, r as BooleanLiteralExprAst, t as ArrayLiteralAst } from "./expressions-BlhT51Ib-CQCMuQD8.mjs";
4
+ import { B as resolveAuthoringTypeChoice, X as typeConstructorLookup, _ as describeTaggedLiteralFailure } from "./temporal-type-aliases-CFh3BW2a-CeZV7A5h.mjs";
5
+ import { C as readWrittenValueAs, l as describeExpected, t as admittedForms } from "./authoring-BoRTq-7r.mjs";
6
+ import { C as printSyntax, a as IdentifierAst, c as ObjectLiteralExprAst, d as StringLiteralExprAst, i as FunctionCallAst, m as TaggedLiteralExprAst, o as NumberLiteralExprAst, r as BooleanLiteralExprAst, t as ArrayLiteralAst } from "./expressions-BlhT51Ib-DfkeWOwr.mjs";
7
7
  //#region ../../../1-framework/2-authoring/psl-parser/dist/contributed-type-scope-CUwinsgb.mjs
8
8
  function diagnosticSource(sources, node) {
9
9
  return {
@@ -535,4 +535,4 @@ function reportTypeConstructorNotCalled(input) {
535
535
  //#endregion
536
536
  export { typeAttributeSpecContextOfField as C, readWrittenScalar as S, writtenContributedTypeCodecId as T, printTypeConstructorCall as _, chosenTypeConstructor as a, readResolvedAttributes as b, contributedTypeScope as c, diagnosticSource as d, isContributedTypeChoice as f, nodePslSpan as g, mapPslHelperArgs as h, argumentsByParameter as i, createPslDiagnosticCollector as l, mapPslDiagnostics as m, reportTypeConstructorNotCalled as n, contributedTypeAt as o, keywordPslSpan as p, EMPTY_DATA_TYPES as r, contributedTypeCodecId as s, isBareTypeConstructor as t, diagnosticFromSpan as u, readExpressionAs as v, typeAttributeSubjectLabel as w, readResolvedConstructorCall as x, readResolvedAttribute as y };
537
537
 
538
- //# sourceMappingURL=type-constructor-calls-Bfg5ojed-Ld7LE20u.mjs.map
538
+ //# sourceMappingURL=type-constructor-calls-Bfg5ojed-DlLeoRYW.mjs.map