@powerlines/plugin-content-collections 0.1.330 → 0.1.332

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 (291) hide show
  1. package/dist/helpers/create-emitter.mjs +1 -2
  2. package/dist/helpers/create-writer.mjs +1 -2
  3. package/dist/index.mjs +1 -2
  4. package/dist/node_modules/.pnpm/@content-collections_core@0.12.0_patch_hash_bceb89349da763f8c715d7b53875be4a1e5bc5161d7_3067b2e8f290866ec343d5ebc4494f7e/node_modules/@content-collections/core/dist/index.mjs +1 -2
  5. package/dist/node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.mjs +1 -2
  6. package/dist/node_modules/.pnpm/esbuild@0.25.12/node_modules/esbuild/lib/main.mjs +1 -2
  7. package/dist/node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.mjs +1 -2
  8. package/dist/node_modules/.pnpm/extend-shallow@2.0.1/node_modules/extend-shallow/index.mjs +1 -2
  9. package/dist/node_modules/.pnpm/fdir@6.5.0_@types_picomatch@4.0.2_picomatch@4.0.3/node_modules/fdir/dist/index.mjs +1 -2
  10. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.mjs +1 -2
  11. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.mjs +1 -2
  12. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.mjs +1 -2
  13. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engines.mjs +1 -2
  14. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/excerpt.mjs +1 -2
  15. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/parse.mjs +1 -2
  16. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/stringify.mjs +1 -2
  17. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/to-file.mjs +1 -2
  18. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/utils.mjs +1 -2
  19. package/dist/node_modules/.pnpm/is-extendable@0.1.1/node_modules/is-extendable/index.mjs +1 -2
  20. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.mjs +1 -2
  21. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.mjs +1 -2
  22. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.mjs +1 -2
  23. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.mjs +1 -2
  24. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.mjs +1 -2
  25. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.mjs +1 -2
  26. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.mjs +1 -2
  27. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.mjs +1 -2
  28. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.mjs +1 -2
  29. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.mjs +1 -2
  30. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.mjs +1 -2
  31. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.mjs +1 -2
  32. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.mjs +1 -2
  33. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.mjs +1 -2
  34. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.mjs +1 -2
  35. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.mjs +1 -2
  36. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.mjs +1 -2
  37. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.mjs +1 -2
  38. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.mjs +1 -2
  39. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.mjs +1 -2
  40. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.mjs +1 -2
  41. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.mjs +1 -2
  42. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.mjs +1 -2
  43. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.mjs +1 -2
  44. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.mjs +1 -2
  45. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.mjs +1 -2
  46. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.mjs +1 -2
  47. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.mjs +1 -2
  48. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.mjs +1 -2
  49. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.mjs +1 -2
  50. package/dist/node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.mjs +1 -2
  51. package/dist/node_modules/.pnpm/p-limit@6.2.0/node_modules/p-limit/index.mjs +1 -2
  52. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.mjs +1 -2
  53. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.mjs +1 -2
  54. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.mjs +1 -2
  55. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.mjs +1 -2
  56. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.mjs +1 -2
  57. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.mjs +1 -2
  58. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/index.mjs +1 -2
  59. package/dist/node_modules/.pnpm/section-matter@1.0.0/node_modules/section-matter/index.mjs +1 -2
  60. package/dist/node_modules/.pnpm/serialize-javascript@6.0.2/node_modules/serialize-javascript/index.mjs +1 -2
  61. package/dist/node_modules/.pnpm/strip-bom-string@1.0.0/node_modules/strip-bom-string/index.mjs +1 -2
  62. package/dist/node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs +1 -2
  63. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-collection.mjs +1 -2
  64. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-doc.mjs +1 -2
  65. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-node.mjs +1 -2
  66. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-scalar.mjs +1 -2
  67. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/composer.mjs +1 -2
  68. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-map.mjs +1 -2
  69. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-scalar.mjs +1 -2
  70. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-seq.mjs +1 -2
  71. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-end.mjs +1 -2
  72. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.mjs +1 -2
  73. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.mjs +1 -2
  74. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.mjs +1 -2
  75. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-contains-newline.mjs +1 -2
  76. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-empty-scalar-position.mjs +1 -2
  77. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-flow-indent-check.mjs +1 -2
  78. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-map-includes.mjs +1 -2
  79. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/Document.mjs +1 -2
  80. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/anchors.mjs +1 -2
  81. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/applyReviver.mjs +1 -2
  82. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/createNode.mjs +1 -2
  83. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/directives.mjs +1 -2
  84. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/errors.mjs +1 -2
  85. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/index.mjs +1 -2
  86. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/log.mjs +1 -2
  87. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Alias.mjs +1 -2
  88. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Collection.mjs +1 -2
  89. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Node.mjs +1 -2
  90. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Pair.mjs +1 -2
  91. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Scalar.mjs +1 -2
  92. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLMap.mjs +1 -2
  93. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLSeq.mjs +1 -2
  94. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/addPairToJSMap.mjs +1 -2
  95. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.mjs +1 -2
  96. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/toJS.mjs +1 -2
  97. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-scalar.mjs +1 -2
  98. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-stringify.mjs +1 -2
  99. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-visit.mjs +1 -2
  100. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst.mjs +1 -2
  101. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/lexer.mjs +1 -2
  102. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/line-counter.mjs +1 -2
  103. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/parser.mjs +1 -2
  104. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/public-api.mjs +1 -2
  105. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/Schema.mjs +1 -2
  106. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/map.mjs +1 -2
  107. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/null.mjs +1 -2
  108. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/seq.mjs +1 -2
  109. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/string.mjs +1 -2
  110. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/bool.mjs +1 -2
  111. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/float.mjs +1 -2
  112. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/int.mjs +1 -2
  113. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/schema.mjs +1 -2
  114. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/json/schema.mjs +1 -2
  115. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/tags.mjs +1 -2
  116. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/binary.mjs +1 -2
  117. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/bool.mjs +1 -2
  118. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/float.mjs +1 -2
  119. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/int.mjs +1 -2
  120. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/merge.mjs +1 -2
  121. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/omap.mjs +1 -2
  122. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.mjs +1 -2
  123. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/schema.mjs +1 -2
  124. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/set.mjs +1 -2
  125. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.mjs +1 -2
  126. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/foldFlowLines.mjs +1 -2
  127. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringify.mjs +1 -2
  128. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyCollection.mjs +1 -2
  129. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyComment.mjs +1 -2
  130. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyDocument.mjs +1 -2
  131. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyNumber.mjs +1 -2
  132. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyPair.mjs +1 -2
  133. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyString.mjs +1 -2
  134. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/visit.mjs +1 -2
  135. package/dist/node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/index.mjs +1 -2
  136. package/package.json +9 -9
  137. package/dist/helpers/create-emitter.d.cts +0 -30
  138. package/dist/helpers/create-emitter.d.cts.map +0 -1
  139. package/dist/helpers/create-emitter.d.mts +0 -30
  140. package/dist/helpers/create-emitter.d.mts.map +0 -1
  141. package/dist/helpers/create-emitter.mjs.map +0 -1
  142. package/dist/helpers/create-writer.d.cts +0 -15
  143. package/dist/helpers/create-writer.d.cts.map +0 -1
  144. package/dist/helpers/create-writer.d.mts +0 -15
  145. package/dist/helpers/create-writer.d.mts.map +0 -1
  146. package/dist/helpers/create-writer.mjs.map +0 -1
  147. package/dist/helpers/index.d.cts +0 -3
  148. package/dist/helpers/index.d.mts +0 -3
  149. package/dist/index.d.cts +0 -23
  150. package/dist/index.d.cts.map +0 -1
  151. package/dist/index.d.mts +0 -23
  152. package/dist/index.d.mts.map +0 -1
  153. package/dist/index.mjs.map +0 -1
  154. package/dist/node_modules/.pnpm/@content-collections_core@0.12.0_patch_hash_bceb89349da763f8c715d7b53875be4a1e5bc5161d7_3067b2e8f290866ec343d5ebc4494f7e/node_modules/@content-collections/core/dist/index.mjs.map +0 -1
  155. package/dist/node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.mjs.map +0 -1
  156. package/dist/node_modules/.pnpm/esbuild@0.25.12/node_modules/esbuild/lib/main.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.mjs.map +0 -1
  158. package/dist/node_modules/.pnpm/extend-shallow@2.0.1/node_modules/extend-shallow/index.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/fdir@6.5.0_@types_picomatch@4.0.2_picomatch@4.0.3/node_modules/fdir/dist/index.mjs.map +0 -1
  160. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.mjs.map +0 -1
  161. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/defaults.mjs.map +0 -1
  162. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engine.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/engines.mjs.map +0 -1
  164. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/excerpt.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/parse.mjs.map +0 -1
  166. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/stringify.mjs.map +0 -1
  167. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/to-file.mjs.map +0 -1
  168. package/dist/node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/lib/utils.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/is-extendable@0.1.1/node_modules/is-extendable/index.mjs.map +0 -1
  170. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/index.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/common.mjs.map +0 -1
  172. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/dumper.mjs.map +0 -1
  173. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/exception.mjs.map +0 -1
  174. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/loader.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/mark.mjs.map +0 -1
  176. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/core.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_full.mjs.map +0 -1
  178. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.mjs.map +0 -1
  179. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.mjs.map +0 -1
  180. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema/json.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/schema.mjs.map +0 -1
  182. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/binary.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/bool.mjs.map +0 -1
  184. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/float.mjs.map +0 -1
  185. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/int.mjs.map +0 -1
  186. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/function.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.mjs.map +0 -1
  188. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/map.mjs.map +0 -1
  190. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/merge.mjs.map +0 -1
  191. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/null.mjs.map +0 -1
  192. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/omap.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/pairs.mjs.map +0 -1
  194. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/seq.mjs.map +0 -1
  195. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/set.mjs.map +0 -1
  196. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/str.mjs.map +0 -1
  197. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type/timestamp.mjs.map +0 -1
  198. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml/type.mjs.map +0 -1
  199. package/dist/node_modules/.pnpm/js-yaml@3.14.2/node_modules/js-yaml/lib/js-yaml.mjs.map +0 -1
  200. package/dist/node_modules/.pnpm/kind-of@6.0.3/node_modules/kind-of/index.mjs.map +0 -1
  201. package/dist/node_modules/.pnpm/p-limit@6.2.0/node_modules/p-limit/index.mjs.map +0 -1
  202. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.mjs.map +0 -1
  203. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.mjs.map +0 -1
  204. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.mjs.map +0 -1
  205. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.mjs.map +0 -1
  206. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.mjs.map +0 -1
  207. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.mjs.map +0 -1
  208. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/index.mjs.map +0 -1
  209. package/dist/node_modules/.pnpm/section-matter@1.0.0/node_modules/section-matter/index.mjs.map +0 -1
  210. package/dist/node_modules/.pnpm/serialize-javascript@6.0.2/node_modules/serialize-javascript/index.mjs.map +0 -1
  211. package/dist/node_modules/.pnpm/strip-bom-string@1.0.0/node_modules/strip-bom-string/index.mjs.map +0 -1
  212. package/dist/node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs.map +0 -1
  213. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-collection.mjs.map +0 -1
  214. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-doc.mjs.map +0 -1
  215. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-node.mjs.map +0 -1
  216. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/compose-scalar.mjs.map +0 -1
  217. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/composer.mjs.map +0 -1
  218. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-map.mjs.map +0 -1
  219. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-scalar.mjs.map +0 -1
  220. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-block-seq.mjs.map +0 -1
  221. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-end.mjs.map +0 -1
  222. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-collection.mjs.map +0 -1
  223. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-flow-scalar.mjs.map +0 -1
  224. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/resolve-props.mjs.map +0 -1
  225. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-contains-newline.mjs.map +0 -1
  226. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-empty-scalar-position.mjs.map +0 -1
  227. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-flow-indent-check.mjs.map +0 -1
  228. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/compose/util-map-includes.mjs.map +0 -1
  229. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/Document.mjs.map +0 -1
  230. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/anchors.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/applyReviver.mjs.map +0 -1
  232. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/createNode.mjs.map +0 -1
  233. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/doc/directives.mjs.map +0 -1
  234. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/errors.mjs.map +0 -1
  235. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/index.mjs.map +0 -1
  236. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/log.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Alias.mjs.map +0 -1
  238. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Collection.mjs.map +0 -1
  239. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Node.mjs.map +0 -1
  240. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Pair.mjs.map +0 -1
  241. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/Scalar.mjs.map +0 -1
  242. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLMap.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/YAMLSeq.mjs.map +0 -1
  244. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/addPairToJSMap.mjs.map +0 -1
  245. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/identity.mjs.map +0 -1
  246. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/nodes/toJS.mjs.map +0 -1
  247. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-scalar.mjs.map +0 -1
  248. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-stringify.mjs.map +0 -1
  249. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst-visit.mjs.map +0 -1
  250. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/cst.mjs.map +0 -1
  251. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/lexer.mjs.map +0 -1
  252. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/line-counter.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/parse/parser.mjs.map +0 -1
  254. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/public-api.mjs.map +0 -1
  255. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/Schema.mjs.map +0 -1
  256. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/map.mjs.map +0 -1
  257. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/null.mjs.map +0 -1
  258. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/seq.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/common/string.mjs.map +0 -1
  260. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/bool.mjs.map +0 -1
  261. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/float.mjs.map +0 -1
  262. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/int.mjs.map +0 -1
  263. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/core/schema.mjs.map +0 -1
  264. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/json/schema.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/tags.mjs.map +0 -1
  266. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/binary.mjs.map +0 -1
  267. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/bool.mjs.map +0 -1
  268. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/float.mjs.map +0 -1
  269. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/int.mjs.map +0 -1
  270. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/merge.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/omap.mjs.map +0 -1
  272. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.mjs.map +0 -1
  273. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/schema.mjs.map +0 -1
  274. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/set.mjs.map +0 -1
  275. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.mjs.map +0 -1
  276. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/foldFlowLines.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringify.mjs.map +0 -1
  278. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyCollection.mjs.map +0 -1
  279. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyComment.mjs.map +0 -1
  280. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyDocument.mjs.map +0 -1
  281. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyNumber.mjs.map +0 -1
  282. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyPair.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/stringify/stringifyString.mjs.map +0 -1
  284. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/dist/visit.mjs.map +0 -1
  285. package/dist/node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/index.mjs.map +0 -1
  286. package/dist/types/index.d.cts +0 -2
  287. package/dist/types/index.d.mts +0 -2
  288. package/dist/types/plugin.d.cts +0 -48
  289. package/dist/types/plugin.d.cts.map +0 -1
  290. package/dist/types/plugin.d.mts +0 -48
  291. package/dist/types/plugin.d.mts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-emitter.mjs","names":[],"sources":["../../src/helpers/create-emitter.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EventEmitter } from \"node:events\";\n\ntype EventMap = Record<string, object>;\n\ninterface EventWithError {\n error: Error;\n}\n\ninterface SystemEvent {\n _event: string;\n}\n\ntype ErrorEvent = EventWithError & SystemEvent;\n\ninterface SystemEvents extends EventMap {\n _error: ErrorEvent;\n _all: SystemEvent;\n}\n\ntype Keys<TEvents extends EventMap> = keyof TEvents & string;\ntype Listener<TEvent> = (event: TEvent) => void;\n\n/**\n * Create an event emitter with typed events.\n *\n * @returns An event emitter instance with typed event handling.\n */\nexport function createEmitter<TEvents extends EventMap>() {\n const emitter = new EventEmitter();\n\n function on<TKey extends Keys<TEvents>>(\n key: TKey,\n listener: Listener<TEvents[TKey]>\n ): void;\n\n function on<TKey extends Keys<SystemEvents>>(\n key: TKey,\n listener: Listener<SystemEvents[TKey]>\n ): void;\n\n function on(key: string, listener: Listener<any>) {\n emitter.on(key, listener);\n }\n\n function emit<TKey extends Keys<TEvents>>(key: TKey, event: TEvents[TKey]) {\n emitter.emit(key, event);\n\n if (typeof event === \"object\" && event !== null && \"error\" in event) {\n emitter.emit(\"_error\", {\n ...event,\n _event: key\n });\n }\n\n emitter.emit(\"_all\", {\n ...event,\n _event: key\n });\n }\n\n return {\n on,\n emit\n };\n}\n"],"mappings":";;;;;;;;AA6CA,SAAgB,gBAA0C;CACxD,MAAM,UAAU,IAAI,cAAc;CAYlC,SAAS,GAAG,KAAa,UAAyB;AAChD,UAAQ,GAAG,KAAK,SAAS;;CAG3B,SAAS,KAAiC,KAAW,OAAsB;AACzE,UAAQ,KAAK,KAAK,MAAM;AAExB,MAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,WAAW,MAC5D,SAAQ,KAAK,UAAU;GACrB,GAAG;GACH,QAAQ;GACT,CAAC;AAGJ,UAAQ,KAAK,QAAQ;GACnB,GAAG;GACH,QAAQ;GACT,CAAC;;AAGJ,QAAO;EACL;EACA;EACD"}
@@ -1,15 +0,0 @@
1
- import { ContentCollectionsPluginContext } from "../types/plugin.cjs";
2
- import { Writer } from "@content-collections/core";
3
-
4
- //#region src/helpers/create-writer.d.ts
5
-
6
- /**
7
- * Creates a Writer instance for emitting files related to content collections.
8
- *
9
- * @param context - The Powerlines build plugin
10
- * @returns A Writer instance for emitting files related to content collections
11
- */
12
- declare const createWriter: (context: ContentCollectionsPluginContext) => Writer;
13
- //#endregion
14
- export { createWriter };
15
- //# sourceMappingURL=create-writer.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-writer.d.cts","names":[],"sources":["../../src/helpers/create-writer.ts"],"sourcesContent":[],"mappings":";;;;;;;AA6CA;;;;cAAa,wBACF,oCACR"}
@@ -1,15 +0,0 @@
1
- import { ContentCollectionsPluginContext } from "../types/plugin.mjs";
2
- import { Writer } from "@content-collections/core";
3
-
4
- //#region src/helpers/create-writer.d.ts
5
-
6
- /**
7
- * Creates a Writer instance for emitting files related to content collections.
8
- *
9
- * @param context - The Powerlines build plugin
10
- * @returns A Writer instance for emitting files related to content collections
11
- */
12
- declare const createWriter: (context: ContentCollectionsPluginContext) => Writer;
13
- //#endregion
14
- export { createWriter };
15
- //# sourceMappingURL=create-writer.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-writer.d.mts","names":[],"sources":["../../src/helpers/create-writer.ts"],"sourcesContent":[],"mappings":";;;;;;;AA6CA;;;;cAAa,wBACF,oCACR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-writer.mjs","names":[],"sources":["../../src/helpers/create-writer.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n DataFileCollection,\n JavaScriptFileConfiguration,\n serialize,\n TypeDefinitionFileConfiguration,\n Writer\n} from \"@content-collections/core\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport pluralize from \"pluralize\";\nimport { getBaseFileHeader } from \"powerlines/utils\";\nimport { ContentCollectionsPluginContext } from \"../types/plugin\";\n\nconst createConstName = (name: string) => {\n return pluralize(name.charAt(0).toUpperCase() + name.slice(1));\n};\n\nconst createArrayConstName = (name: string) => {\n return `all${createConstName(name)}`;\n};\n\n/**\n * Creates a Writer instance for emitting files related to content collections.\n *\n * @param context - The Powerlines build plugin\n * @returns A Writer instance for emitting files related to content collections\n */\nexport const createWriter = (\n context: ContentCollectionsPluginContext\n): Writer => {\n return {\n createJavaScriptFile: async (\n configuration: JavaScriptFileConfiguration\n ) => {\n return context.emitBuiltin(\n `${getBaseFileHeader(context)}\n${configuration.collections\n .map(\n ({ name }) =>\n `import ${createArrayConstName(name)} from \"./${kebabCase(name)}\";`\n )\n .join(\"\\n\")}\n\nexport { ${configuration.collections\n .map(({ name }) => createArrayConstName(name))\n .join(\", \")} };\n`,\n \"content\"\n );\n },\n createTypeDefinitionFile: async (_: TypeDefinitionFileConfiguration) =>\n Promise.resolve(),\n createDataFiles: async (collections: Array<DataFileCollection>) => {\n await Promise.all(\n collections.map(async collection => {\n if (context.config.contentCollections.outputPath) {\n return context.fs.write(\n joinPaths(\n context.config.contentCollections.outputPath,\n kebabCase(collection.name)\n ),\n serialize(collection.documents.map(doc => doc.document))\n );\n }\n\n return context.emitBuiltin(\n serialize(collection.documents.map(doc => doc.document)),\n joinPaths(\"content\", kebabCase(collection.name))\n );\n })\n );\n }\n };\n};\n"],"mappings":";;;;;;;AA+BA,MAAM,mBAAmB,SAAiB;AACxC,QAAO,UAAU,KAAK,OAAO,EAAE,CAAC,aAAa,GAAG,KAAK,MAAM,EAAE,CAAC;;AAGhE,MAAM,wBAAwB,SAAiB;AAC7C,QAAO,MAAM,gBAAgB,KAAK;;;;;;;;AASpC,MAAa,gBACX,YACW;AACX,QAAO;EACL,sBAAsB,OACpB,kBACG;AACH,UAAO,QAAQ,YACb,GAAG,kBAAkB,QAAQ,CAAC;EACpC,cAAc,YACb,KACE,EAAE,WACD,UAAU,qBAAqB,KAAK,CAAC,WAAW,UAAU,KAAK,CAAC,IACnE,CACA,KAAK,KAAK,CAAC;;WAEH,cAAc,YACd,KAAK,EAAE,WAAW,qBAAqB,KAAK,CAAC,CAC7C,KAAK,KAAK,CAAC;GAEd,UACD;;EAEH,0BAA0B,OAAO,MAC/B,QAAQ,SAAS;EACnB,iBAAiB,OAAO,gBAA2C;AACjE,SAAM,QAAQ,IACZ,YAAY,IAAI,OAAM,eAAc;AAClC,QAAI,QAAQ,OAAO,mBAAmB,WACpC,QAAO,QAAQ,GAAG,MAChB,UACE,QAAQ,OAAO,mBAAmB,YAClC,UAAU,WAAW,KAAK,CAC3B,EACD,UAAU,WAAW,UAAU,KAAI,QAAO,IAAI,SAAS,CAAC,CACzD;AAGH,WAAO,QAAQ,YACb,UAAU,WAAW,UAAU,KAAI,QAAO,IAAI,SAAS,CAAC,EACxD,UAAU,WAAW,UAAU,WAAW,KAAK,CAAC,CACjD;KACD,CACH;;EAEJ"}
@@ -1,3 +0,0 @@
1
- import { createEmitter } from "./create-emitter.cjs";
2
- import { createWriter } from "./create-writer.cjs";
3
- export { createEmitter, createWriter };
@@ -1,3 +0,0 @@
1
- import { createEmitter } from "./create-emitter.mjs";
2
- import { createWriter } from "./create-writer.mjs";
3
- export { createEmitter, createWriter };
package/dist/index.d.cts DELETED
@@ -1,23 +0,0 @@
1
- import { createEmitter } from "./helpers/create-emitter.cjs";
2
- import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./types/plugin.cjs";
3
- import { createWriter } from "./helpers/create-writer.cjs";
4
- import "./helpers/index.cjs";
5
- import "./types/index.cjs";
6
- import { Plugin } from "powerlines";
7
-
8
- //#region src/index.d.ts
9
- declare module "powerlines" {
10
- interface Config {
11
- contentCollections?: ContentCollectionsPluginOptions;
12
- }
13
- }
14
- /**
15
- * A Powerlines plugin to integrate Content Collections for code generation.
16
- *
17
- * @param options - The plugin options.
18
- * @returns A Powerlines plugin instance.
19
- */
20
- declare const plugin: <TContext extends ContentCollectionsPluginContext = ContentCollectionsPluginContext>(options: ContentCollectionsPluginOptions) => Plugin<TContext>;
21
- //#endregion
22
- export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig, createEmitter, createWriter, plugin as default, plugin };
23
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;yBA2CyB;;AAJD;;;;;AAcxB;;AAEI,cAFS,MAET,EAAA,CAAA,iBADe,+BACf,GAAA,+BAAA,CAAA,CAAA,OAAA,EAEO,+BAFP,EAAA,GAGD,MAHC,CAGM,QAHN,CAAA"}
package/dist/index.d.mts DELETED
@@ -1,23 +0,0 @@
1
- import { createEmitter } from "./helpers/create-emitter.mjs";
2
- import { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig } from "./types/plugin.mjs";
3
- import { createWriter } from "./helpers/create-writer.mjs";
4
- import "./helpers/index.mjs";
5
- import "./types/index.mjs";
6
- import { Plugin } from "powerlines";
7
-
8
- //#region src/index.d.ts
9
- declare module "powerlines" {
10
- interface Config {
11
- contentCollections?: ContentCollectionsPluginOptions;
12
- }
13
- }
14
- /**
15
- * A Powerlines plugin to integrate Content Collections for code generation.
16
- *
17
- * @param options - The plugin options.
18
- * @returns A Powerlines plugin instance.
19
- */
20
- declare const plugin: <TContext extends ContentCollectionsPluginContext = ContentCollectionsPluginContext>(options: ContentCollectionsPluginOptions) => Plugin<TContext>;
21
- //#endregion
22
- export { ContentCollectionsContext, ContentCollectionsPluginContext, ContentCollectionsPluginOptions, ContentCollectionsPluginResolvedConfig, ContentCollectionsPluginUserConfig, __ΩContentCollectionsContext, __ΩContentCollectionsPluginContext, __ΩContentCollectionsPluginOptions, __ΩContentCollectionsPluginResolvedConfig, __ΩContentCollectionsPluginUserConfig, createEmitter, createWriter, plugin as default, plugin };
23
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;yBA2CyB;;AAJD;;;;;AAcxB;;AAEI,cAFS,MAET,EAAA,CAAA,iBADe,+BACf,GAAA,+BAAA,CAAA,CAAA,OAAA,EAEO,+BAFP,EAAA,GAGD,MAHC,CAGM,QAHN,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["build"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n build,\n createBuildContext,\n createConfigurationReader,\n InternalConfiguration\n} from \"@content-collections/core\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport defu from \"defu\";\nimport { createHash } from \"node:crypto\";\nimport { Plugin } from \"powerlines\";\nimport { replacePathTokens } from \"powerlines/plugin-utils\";\nimport { createEmitter } from \"./helpers/create-emitter\";\nimport { createWriter } from \"./helpers/create-writer\";\nimport {\n ContentCollectionsPluginContext,\n ContentCollectionsPluginOptions,\n ContentCollectionsPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n contentCollections?: ContentCollectionsPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate Content Collections for code generation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends ContentCollectionsPluginContext =\n ContentCollectionsPluginContext\n>(\n options: ContentCollectionsPluginOptions\n): Plugin<TContext> => {\n return {\n name: \"content-collections\",\n config() {\n return {\n contentCollections: defu(options, {\n configFile: \"{root}/content-collections.ts\",\n collections: []\n })\n } as Partial<ContentCollectionsPluginUserConfig>;\n },\n async configResolved() {\n this.config.contentCollections.configFile ||= replacePathTokens(\n this,\n this.config.contentCollections.configFile\n );\n\n this.config.contentCollections.outputPath ||= replacePathTokens(\n this,\n this.config.contentCollections.outputPath\n );\n\n const emitter = createEmitter();\n const readConfiguration = createConfigurationReader();\n\n let configuration = {} as InternalConfiguration;\n try {\n if (existsSync(this.config.contentCollections.configFile)) {\n configuration = await readConfiguration(\n this.config.contentCollections.configFile,\n {\n configName: \"config.mjs\",\n cacheDir: joinPaths(this.cachePath, \"content-collections\")\n }\n );\n }\n } catch {\n // Do nothing\n }\n\n configuration = defu(configuration ?? {}, this.config.contentCollections);\n configuration.checksum = createHash(\"sha256\")\n .update(JSON.stringify(configuration))\n .digest(\"hex\");\n\n const context = await createBuildContext({\n emitter,\n baseDirectory: joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.root\n ),\n outputDirectory:\n this.config.contentCollections.outputPath ||\n joinPaths(this.builtinsPath, \"content\"),\n configuration\n });\n context.writer = createWriter(this);\n\n this.contentCollections = {\n context,\n build: async () => build(context),\n on: emitter.on\n };\n },\n async prepare() {\n return this.contentCollections.build();\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;AAqDA,MAAa,UAIX,YACqB;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO,EACL,oBAAoB,KAAK,SAAS;IAChC,YAAY;IACZ,aAAa,EAAE;IAChB,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,OAAO,mBAAmB,eAAe,kBAC5C,MACA,KAAK,OAAO,mBAAmB,WAChC;AAED,QAAK,OAAO,mBAAmB,eAAe,kBAC5C,MACA,KAAK,OAAO,mBAAmB,WAChC;GAED,MAAM,UAAU,eAAe;GAC/B,MAAM,oBAAoB,2BAA2B;GAErD,IAAI,gBAAgB,EAAE;AACtB,OAAI;AACF,QAAI,WAAW,KAAK,OAAO,mBAAmB,WAAW,CACvD,iBAAgB,MAAM,kBACpB,KAAK,OAAO,mBAAmB,YAC/B;KACE,YAAY;KACZ,UAAU,UAAU,KAAK,WAAW,sBAAsB;KAC3D,CACF;WAEG;AAIR,mBAAgB,KAAK,iBAAiB,EAAE,EAAE,KAAK,OAAO,mBAAmB;AACzE,iBAAc,WAAW,WAAW,SAAS,CAC1C,OAAO,KAAK,UAAU,cAAc,CAAC,CACrC,OAAO,MAAM;GAEhB,MAAM,UAAU,MAAM,mBAAmB;IACvC;IACA,eAAe,UACb,KAAK,gBAAgB,eACrB,KAAK,OAAO,KACb;IACD,iBACE,KAAK,OAAO,mBAAmB,cAC/B,UAAU,KAAK,cAAc,UAAU;IACzC;IACD,CAAC;AACF,WAAQ,SAAS,aAAa,KAAK;AAEnC,QAAK,qBAAqB;IACxB;IACA,OAAO,YAAYA,QAAM,QAAQ;IACjC,IAAI,QAAQ;IACb;;EAEH,MAAM,UAAU;AACd,UAAO,KAAK,mBAAmB,OAAO;;EAEzC;;AAGH,kBAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["readFile$1","picomatch","path2"],"sources":["../../../../../../../../../../node_modules/.pnpm/@content-collections+core@0.12.0_patch_hash=bceb89349da763f8c715d7b53875be4a1e5bc5161d7_3067b2e8f290866ec343d5ebc4494f7e/node_modules/@content-collections/core/dist/index.js"],"sourcesContent":["import path, { basename, dirname, extname, join, resolve } from \"node:path\";\nimport { createHash } from \"node:crypto\";\nimport { existsSync } from \"node:fs\";\nimport fs, { mkdir, readFile, unlink, writeFile } from \"node:fs/promises\";\nimport { readFile as readFile$1 } from \"fs/promises\";\nimport { glob } from \"tinyglobby\";\nimport matter from \"gray-matter\";\nimport { parse, stringify } from \"yaml\";\nimport camelcase from \"camelcase\";\nimport pluralize from \"pluralize\";\nimport picomatch from \"picomatch\";\nimport os from \"node:os\";\nimport pLimit from \"p-limit\";\nimport fs2 from \"fs\";\nimport path2 from \"path\";\nimport { build } from \"esbuild\";\nimport { createRequire } from \"module\";\nimport serializeJs from \"serialize-javascript\";\nimport { EventEmitter } from \"node:events\";\nimport chokidar from \"chokidar\";\n\n//#region src/cache.ts\nfunction createKey(config$1, input, key) {\n\treturn createHash(\"sha256\").update(config$1).update(JSON.stringify(input)).update(key).digest(\"hex\");\n}\nasync function createCacheDirectory(directory) {\n\tconst cacheDirectory = path.join(directory, \".content-collections\", \"cache\");\n\tif (!existsSync(cacheDirectory)) await mkdir(cacheDirectory, { recursive: true });\n\treturn cacheDirectory;\n}\nfunction fileName(input) {\n\treturn input.replace(/[^a-z0-9]/gi, \"_\").toLowerCase();\n}\nasync function readMapping(mappingPath) {\n\tif (existsSync(mappingPath)) try {\n\t\treturn JSON.parse(await readFile(mappingPath, \"utf-8\"));\n\t} catch (e) {\n\t\tconsole.error(\"Failed to parse the cache mapping. We will recreate the cache.\");\n\t}\n\treturn {};\n}\nasync function createCacheManager(baseDirectory, configChecksum) {\n\tconst cacheDirectory = await createCacheDirectory(baseDirectory);\n\tconst mappingPath = join(cacheDirectory, \"mapping.json\");\n\tconst mapping = await readMapping(mappingPath);\n\tasync function flush() {\n\t\tawait writeFile(mappingPath, JSON.stringify(mapping));\n\t}\n\tfunction cache(collection, file) {\n\t\tconst directory = join(cacheDirectory, fileName(collection), fileName(file));\n\t\tlet collectionMapping = mapping[collection];\n\t\tif (!collectionMapping) {\n\t\t\tcollectionMapping = {};\n\t\t\tmapping[collection] = collectionMapping;\n\t\t}\n\t\tlet fileMapping = collectionMapping[file];\n\t\tif (!fileMapping) {\n\t\t\tfileMapping = [];\n\t\t\tcollectionMapping[file] = fileMapping;\n\t\t}\n\t\tlet newFileMapping = [];\n\t\tconst cacheFn = async (input, fn, options) => {\n\t\t\tconst key = createKey(configChecksum, input, options?.key || \"\");\n\t\t\tnewFileMapping.push(key);\n\t\t\tconst filePath = join(directory, `${key}.cache`);\n\t\t\tif (fileMapping?.includes(key) || newFileMapping.includes(key)) {\n\t\t\t\tif (existsSync(filePath)) try {\n\t\t\t\t\treturn JSON.parse(await readFile(filePath, \"utf-8\"));\n\t\t\t\t} catch (e) {\n\t\t\t\t\tconsole.error(\"Failed to parse the cache file. We will recompute the value.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst output = await fn(input);\n\t\t\tif (!existsSync(directory)) await mkdir(directory, { recursive: true });\n\t\t\tawait writeFile(filePath, JSON.stringify(output));\n\t\t\treturn output;\n\t\t};\n\t\tconst tidyUp = async () => {\n\t\t\tconst filesToDelete = fileMapping?.filter((key) => !newFileMapping.includes(key)) || [];\n\t\t\tfor (const key of filesToDelete) {\n\t\t\t\tconst filePath = join(directory, `${key}.cache`);\n\t\t\t\tif (existsSync(filePath)) await unlink(filePath);\n\t\t\t}\n\t\t\tif (collectionMapping) collectionMapping[file] = newFileMapping;\n\t\t};\n\t\treturn {\n\t\t\tcacheFn,\n\t\t\ttidyUp\n\t\t};\n\t}\n\treturn {\n\t\tcache,\n\t\tflush\n\t};\n}\n\n//#endregion\n//#region src/parser.ts\nfunction parseYaml(content) {\n\treturn parse(content.trim());\n}\nfunction frontmatter(fileContent) {\n\treturn matter(fileContent, { engines: { yaml: {\n\t\tparse: parseYaml,\n\t\tstringify\n\t} } });\n}\nfunction frontmatterParser(fileContent) {\n\tconst { data, content } = frontmatter(fileContent);\n\treturn {\n\t\t...data,\n\t\tcontent: content.trim()\n\t};\n}\nfunction frontmatterOnlyParser(fileContent) {\n\tconst { data } = frontmatter(fileContent);\n\treturn data;\n}\nconst parsers = {\n\tfrontmatter: {\n\t\thasContent: true,\n\t\tparse: frontmatterParser\n\t},\n\t[\"frontmatter-only\"]: {\n\t\thasContent: false,\n\t\tparse: frontmatterOnlyParser\n\t},\n\tjson: {\n\t\thasContent: false,\n\t\tparse: JSON.parse\n\t},\n\tyaml: {\n\t\thasContent: false,\n\t\tparse: parseYaml\n\t}\n};\nfunction getParser(configuredParser) {\n\tif (typeof configuredParser === \"string\") return parsers[configuredParser];\n\treturn configuredParser;\n}\nfunction defineParser(parser) {\n\tif (typeof parser === \"function\") return {\n\t\thasContent: false,\n\t\tparse: parser\n\t};\n\treturn parser;\n}\nfunction isValidParser(parser) {\n\tif (typeof parser === \"string\") return parser in parsers;\n\treturn \"hasContent\" in parser && typeof parser.parse === \"function\";\n}\n\n//#endregion\n//#region src/utils.ts\nfunction generateTypeName(name) {\n\treturn camelcase(pluralize.singular(name), { pascalCase: true });\n}\nfunction isDefined(value) {\n\treturn value !== void 0 && value !== null;\n}\nfunction orderByPath(a, b) {\n\treturn a.path.localeCompare(b.path);\n}\nfunction removeChildPaths(paths) {\n\treturn Array.from(new Set(paths.filter((path$1) => {\n\t\treturn !paths.some((otherPath) => {\n\t\t\tif (path$1 === otherPath) return false;\n\t\t\treturn path$1.startsWith(otherPath);\n\t\t});\n\t})));\n}\nfunction posixToNativePath(pathName) {\n\tif (path.sep !== path.posix.sep) return pathName.replaceAll(path.posix.sep, path.sep);\n\treturn pathName;\n}\nfunction toError(error) {\n\treturn error instanceof Error ? error : new Error(String(error));\n}\n\n//#endregion\n//#region src/collector.ts\nvar CollectError = class extends Error {\n\ttype;\n\tconstructor(type, message) {\n\t\tsuper(message);\n\t\tthis.type = type;\n\t}\n};\nfunction createCollector(emitter, baseDirectory = \".\") {\n\tasync function read(filePath) {\n\t\ttry {\n\t\t\treturn await readFile$1(filePath, \"utf-8\");\n\t\t} catch (error) {\n\t\t\temitter.emit(\"collector:read-error\", {\n\t\t\t\tfilePath,\n\t\t\t\terror: new CollectError(\"Read\", String(error))\n\t\t\t});\n\t\t\treturn null;\n\t\t}\n\t}\n\tasync function collectFile(collection, filePath) {\n\t\tconst file = await read(path.join(baseDirectory, collection.directory, filePath));\n\t\tif (!file) return null;\n\t\ttry {\n\t\t\treturn {\n\t\t\t\tdata: await getParser(collection.parser).parse(file),\n\t\t\t\tpath: filePath\n\t\t\t};\n\t\t} catch (error) {\n\t\t\temitter.emit(\"collector:parse-error\", {\n\t\t\t\tfilePath: path.join(collection.directory, filePath),\n\t\t\t\terror: new CollectError(\"Parse\", String(error))\n\t\t\t});\n\t\t\treturn null;\n\t\t}\n\t}\n\tfunction createIgnorePattern(collection) {\n\t\tif (collection.exclude) if (Array.isArray(collection.exclude)) return collection.exclude;\n\t\telse return [collection.exclude];\n\t}\n\tasync function resolveCollection(collection) {\n\t\tconst collectionDirectory = path.join(baseDirectory, collection.directory);\n\t\tconst promises = (await glob(Array.isArray(collection.include) ? collection.include : [collection.include], {\n\t\t\tcwd: collectionDirectory,\n\t\t\tonlyFiles: true,\n\t\t\tabsolute: false,\n\t\t\tignore: createIgnorePattern(collection)\n\t\t})).map((filePath) => collectFile(collection, posixToNativePath(filePath)));\n\t\tconst files = await Promise.all(promises);\n\t\treturn {\n\t\t\t...collection,\n\t\t\tfiles: files.filter(isDefined).sort(orderByPath)\n\t\t};\n\t}\n\tasync function collect(unresolvedCollections) {\n\t\tconst promises = unresolvedCollections.map((collection) => resolveCollection(collection));\n\t\treturn await Promise.all(promises);\n\t}\n\treturn {\n\t\tcollect,\n\t\tcollectFile\n\t};\n}\n\n//#endregion\n//#region src/synchronizer.ts\nfunction createSynchronizer(readCollectionFile, collections, baseDirectory = \".\") {\n\tfunction findCollections(filePath) {\n\t\tconst resolvedFilePath = path.resolve(filePath);\n\t\treturn collections.filter((collection) => {\n\t\t\treturn resolvedFilePath.startsWith(path.resolve(baseDirectory, collection.directory));\n\t\t});\n\t}\n\tfunction createRelativePath(collectionPath, filePath) {\n\t\tconst resolvedCollectionPath = path.resolve(baseDirectory, collectionPath);\n\t\tlet relativePath = path.resolve(filePath).slice(resolvedCollectionPath.length);\n\t\tif (relativePath.startsWith(path.sep)) relativePath = relativePath.slice(path.sep.length);\n\t\treturn relativePath;\n\t}\n\tfunction resolve$1(filePath) {\n\t\treturn findCollections(filePath).map((collection) => {\n\t\t\treturn {\n\t\t\t\tcollection,\n\t\t\t\trelativePath: createRelativePath(collection.directory, filePath)\n\t\t\t};\n\t\t}).filter(({ collection, relativePath }) => {\n\t\t\treturn picomatch.isMatch(relativePath, collection.include, {\n\t\t\t\twindows: process.platform === \"win32\",\n\t\t\t\tignore: collection.exclude\n\t\t\t});\n\t\t});\n\t}\n\tfunction deleted(filePath) {\n\t\tconst resolvedCollections = resolve$1(filePath);\n\t\tif (resolvedCollections.length === 0) return false;\n\t\tlet changed$1 = false;\n\t\tfor (const { collection, relativePath } of resolvedCollections) {\n\t\t\tconst index = collection.files.findIndex((file) => file.path === relativePath);\n\t\t\tif (collection.files.splice(index, 1).length > 0) changed$1 = true;\n\t\t}\n\t\treturn changed$1;\n\t}\n\tasync function changed(filePath) {\n\t\tconst resolvedCollections = resolve$1(filePath);\n\t\tif (resolvedCollections.length === 0) return false;\n\t\tlet changed$1 = false;\n\t\tfor (const { collection, relativePath } of resolvedCollections) {\n\t\t\tconst index = collection.files.findIndex((file$1) => file$1.path === relativePath);\n\t\t\tconst file = await readCollectionFile(collection, relativePath);\n\t\t\tif (file) {\n\t\t\t\tchanged$1 = true;\n\t\t\t\tif (index === -1) {\n\t\t\t\t\tcollection.files.push(file);\n\t\t\t\t\tcollection.files.sort(orderByPath);\n\t\t\t\t} else collection.files[index] = file;\n\t\t\t}\n\t\t}\n\t\treturn changed$1;\n\t}\n\treturn {\n\t\tdeleted,\n\t\tchanged\n\t};\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/load-tsconfig@0.2.5/node_modules/load-tsconfig/dist/index.js\nvar singleComment = Symbol(\"singleComment\");\nvar multiComment = Symbol(\"multiComment\");\nvar stripWithoutWhitespace = () => \"\";\nvar stripWithWhitespace = (string$2, start, end) => string$2.slice(start, end).replace(/\\S/g, \" \");\nvar isEscaped = (jsonString, quotePosition) => {\n\tlet index = quotePosition - 1;\n\tlet backslashCount = 0;\n\twhile (jsonString[index] === \"\\\\\") {\n\t\tindex -= 1;\n\t\tbackslashCount += 1;\n\t}\n\treturn Boolean(backslashCount % 2);\n};\nfunction stripJsonComments(jsonString, { whitespace = true, trailingCommas = false } = {}) {\n\tif (typeof jsonString !== \"string\") throw new TypeError(`Expected argument \\`jsonString\\` to be a \\`string\\`, got \\`${typeof jsonString}\\``);\n\tconst strip = whitespace ? stripWithWhitespace : stripWithoutWhitespace;\n\tlet isInsideString = false;\n\tlet isInsideComment = false;\n\tlet offset = 0;\n\tlet buffer = \"\";\n\tlet result = \"\";\n\tlet commaIndex = -1;\n\tfor (let index = 0; index < jsonString.length; index++) {\n\t\tconst currentCharacter = jsonString[index];\n\t\tconst nextCharacter = jsonString[index + 1];\n\t\tif (!isInsideComment && currentCharacter === \"\\\"\") {\n\t\t\tif (!isEscaped(jsonString, index)) isInsideString = !isInsideString;\n\t\t}\n\t\tif (isInsideString) continue;\n\t\tif (!isInsideComment && currentCharacter + nextCharacter === \"//\") {\n\t\t\tbuffer += jsonString.slice(offset, index);\n\t\t\toffset = index;\n\t\t\tisInsideComment = singleComment;\n\t\t\tindex++;\n\t\t} else if (isInsideComment === singleComment && currentCharacter + nextCharacter === \"\\r\\n\") {\n\t\t\tindex++;\n\t\t\tisInsideComment = false;\n\t\t\tbuffer += strip(jsonString, offset, index);\n\t\t\toffset = index;\n\t\t\tcontinue;\n\t\t} else if (isInsideComment === singleComment && currentCharacter === \"\\n\") {\n\t\t\tisInsideComment = false;\n\t\t\tbuffer += strip(jsonString, offset, index);\n\t\t\toffset = index;\n\t\t} else if (!isInsideComment && currentCharacter + nextCharacter === \"/*\") {\n\t\t\tbuffer += jsonString.slice(offset, index);\n\t\t\toffset = index;\n\t\t\tisInsideComment = multiComment;\n\t\t\tindex++;\n\t\t\tcontinue;\n\t\t} else if (isInsideComment === multiComment && currentCharacter + nextCharacter === \"*/\") {\n\t\t\tindex++;\n\t\t\tisInsideComment = false;\n\t\t\tbuffer += strip(jsonString, offset, index + 1);\n\t\t\toffset = index + 1;\n\t\t\tcontinue;\n\t\t} else if (trailingCommas && !isInsideComment) {\n\t\t\tif (commaIndex !== -1) {\n\t\t\t\tif (currentCharacter === \"}\" || currentCharacter === \"]\") {\n\t\t\t\t\tbuffer += jsonString.slice(offset, index);\n\t\t\t\t\tresult += strip(buffer, 0, 1) + buffer.slice(1);\n\t\t\t\t\tbuffer = \"\";\n\t\t\t\t\toffset = index;\n\t\t\t\t\tcommaIndex = -1;\n\t\t\t\t} else if (currentCharacter !== \" \" && currentCharacter !== \"\t\" && currentCharacter !== \"\\r\" && currentCharacter !== \"\\n\") {\n\t\t\t\t\tbuffer += jsonString.slice(offset, index);\n\t\t\t\t\toffset = index;\n\t\t\t\t\tcommaIndex = -1;\n\t\t\t\t}\n\t\t\t} else if (currentCharacter === \",\") {\n\t\t\t\tresult += buffer + jsonString.slice(offset, index);\n\t\t\t\tbuffer = \"\";\n\t\t\t\toffset = index;\n\t\t\t\tcommaIndex = index;\n\t\t\t}\n\t\t}\n\t}\n\treturn result + buffer + (isInsideComment ? strip(jsonString.slice(offset)) : jsonString.slice(offset));\n}\nfunction jsoncParse(data) {\n\ttry {\n\t\treturn new Function(\"return \" + stripJsonComments(data).trim())();\n\t} catch (_) {\n\t\treturn {};\n\t}\n}\nvar req = createRequire(import.meta.url);\nvar findUp = (name, startDir, stopDir = path2.parse(startDir).root) => {\n\tlet dir = startDir;\n\twhile (dir !== stopDir) {\n\t\tconst file = path2.join(dir, name);\n\t\tif (fs2.existsSync(file)) return file;\n\t\tif (!file.endsWith(\".json\")) {\n\t\t\tconst fileWithExt = file + \".json\";\n\t\t\tif (fs2.existsSync(fileWithExt)) return fileWithExt;\n\t\t}\n\t\tdir = path2.dirname(dir);\n\t}\n\treturn null;\n};\nvar resolveTsConfigFromFile = (cwd, filename) => {\n\tif (path2.isAbsolute(filename)) return fs2.existsSync(filename) ? filename : null;\n\treturn findUp(filename, cwd);\n};\nvar resolveTsConfigFromExtends = (cwd, name) => {\n\tif (path2.isAbsolute(name)) return fs2.existsSync(name) ? name : null;\n\tif (name.startsWith(\".\")) return findUp(name, cwd);\n\treturn req.resolve(name, { paths: [cwd] });\n};\nvar loadTsConfigInternal = (dir = process.cwd(), name = \"tsconfig.json\", isExtends = false) => {\n\tvar _a, _b;\n\tdir = path2.resolve(dir);\n\tconst id = isExtends ? resolveTsConfigFromExtends(dir, name) : resolveTsConfigFromFile(dir, name);\n\tif (!id) return null;\n\tconst data = jsoncParse(fs2.readFileSync(id, \"utf-8\"));\n\tconst configDir = path2.dirname(id);\n\tif ((_a = data.compilerOptions) == null ? void 0 : _a.baseUrl) data.compilerOptions.baseUrl = path2.join(configDir, data.compilerOptions.baseUrl);\n\tlet extendsFiles = [];\n\tif (data.extends) {\n\t\tconst extendsList = Array.isArray(data.extends) ? data.extends : [data.extends];\n\t\tconst extendsData = {};\n\t\tfor (const name2 of extendsList) {\n\t\t\tconst parentConfig = loadTsConfigInternal(configDir, name2, true);\n\t\t\tif (parentConfig) {\n\t\t\t\tObject.assign(extendsData, {\n\t\t\t\t\t...parentConfig == null ? void 0 : parentConfig.data,\n\t\t\t\t\tcompilerOptions: {\n\t\t\t\t\t\t...extendsData.compilerOptions,\n\t\t\t\t\t\t...(_b = parentConfig == null ? void 0 : parentConfig.data) == null ? void 0 : _b.compilerOptions\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\textendsFiles.push(...parentConfig.files);\n\t\t\t}\n\t\t}\n\t\tObject.assign(data, {\n\t\t\t...extendsData,\n\t\t\t...data,\n\t\t\tcompilerOptions: {\n\t\t\t\t...extendsData.compilerOptions,\n\t\t\t\t...data.compilerOptions\n\t\t\t}\n\t\t});\n\t}\n\tdelete data.extends;\n\treturn {\n\t\tpath: id,\n\t\tdata,\n\t\tfiles: [...extendsFiles, id]\n\t};\n};\nvar loadTsConfig = (dir, name) => loadTsConfigInternal(dir, name);\n\n//#endregion\n//#region ../../node_modules/.pnpm/bundle-require@5.0.0_esbuild@0.25.11/node_modules/bundle-require/dist/index.js\nvar tsconfigPathsToRegExp = (paths) => {\n\treturn Object.keys(paths || {}).map((key) => {\n\t\treturn /* @__PURE__ */ new RegExp(`^${key.replace(/\\*/, \".*\")}$`);\n\t});\n};\nvar match = (id, patterns) => {\n\tif (!patterns) return false;\n\treturn patterns.some((p) => {\n\t\tif (p instanceof RegExp) return p.test(id);\n\t\treturn id === p || id.startsWith(p + \"/\");\n\t});\n};\n\n//#endregion\n//#region src/esbuild.ts\nfunction tsconfigResolvePaths(configPath) {\n\tlet tsconfig = loadTsConfig(dirname(configPath));\n\tif (!tsconfig) tsconfig = loadTsConfig();\n\treturn tsconfig?.data?.compilerOptions?.paths || {};\n}\nconst NON_NODE_MODULE_RE = /^[A-Z]:[/\\\\]|^\\.{0,2}\\/|^\\.{1,2}$/;\nfunction isCoreImport(path$1, kind) {\n\treturn path$1 === \"@content-collections/core\" && kind === \"import-statement\";\n}\nfunction createExternalsPlugin(configPath) {\n\tconst resolvePatterns = tsconfigPathsToRegExp(tsconfigResolvePaths(configPath));\n\treturn {\n\t\tname: \"external-packages\",\n\t\tsetup: (build$2) => {\n\t\t\tbuild$2.onResolve({ filter: /.*/ }, ({ path: path$1, kind }) => {\n\t\t\t\tif (process.env.NODE_ENV === \"test\" && isCoreImport(path$1, kind)) return {\n\t\t\t\t\tpath: join(__dirname, \"index.ts\"),\n\t\t\t\t\texternal: true\n\t\t\t\t};\n\t\t\t\tif (match(path$1, resolvePatterns)) {\n\t\t\t\t\tif (kind === \"dynamic-import\") return {\n\t\t\t\t\t\tpath: path$1,\n\t\t\t\t\t\texternal: true\n\t\t\t\t\t};\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (!NON_NODE_MODULE_RE.test(path$1)) return {\n\t\t\t\t\tpath: path$1,\n\t\t\t\t\texternal: true\n\t\t\t\t};\n\t\t\t});\n\t\t}\n\t};\n}\nasync function compile(configurationPath, outfile) {\n\tconst result = await build({\n\t\tentryPoints: [configurationPath],\n\t\tpackages: \"external\",\n\t\tbundle: true,\n\t\tplatform: \"node\",\n\t\tformat: \"esm\",\n\t\tplugins: [createExternalsPlugin(configurationPath)],\n\t\toutfile,\n\t\tmetafile: true\n\t});\n\treturn Object.keys(result.metafile.inputs);\n}\n\n//#endregion\n//#region src/configurationReader.ts\nvar ConfigurationError = class extends Error {\n\ttype;\n\tconstructor(type, message) {\n\t\tsuper(message);\n\t\tthis.type = type;\n\t}\n};\nconst defaultConfigName = \"content-collection-config.mjs\";\nfunction resolveCacheDir(config$1, options) {\n\tif (options.cacheDir) return options.cacheDir;\n\treturn path.join(path.dirname(config$1), \".content-collections\", \"cache\");\n}\nfunction createConfigurationReader() {\n\treturn async (configurationPath, options = { configName: defaultConfigName }) => {\n\t\tif (!existsSync(configurationPath)) throw new ConfigurationError(\"Read\", `configuration file ${configurationPath} does not exist`);\n\t\tconst cacheDir = resolveCacheDir(configurationPath, options);\n\t\tawait fs.mkdir(cacheDir, { recursive: true });\n\t\tconst outfile = path.join(cacheDir, options.configName);\n\t\ttry {\n\t\t\tconst configurationPaths = await compile(configurationPath, outfile);\n\t\t\tconst module = await import(`file://${path.resolve(outfile)}?x=${Date.now()}`);\n\t\t\tconst hash = createHash(\"sha256\");\n\t\t\thash.update(await fs.readFile(outfile, \"utf-8\"));\n\t\t\tconst checksum = hash.digest(\"hex\");\n\t\t\treturn {\n\t\t\t\t...module.default,\n\t\t\t\tpath: configurationPath,\n\t\t\t\tinputPaths: configurationPaths.map((p) => path.resolve(p)),\n\t\t\t\tgenerateTypes: true,\n\t\t\t\tchecksum\n\t\t\t};\n\t\t} catch (error) {\n\t\t\tthrow new ConfigurationError(\"Compile\", `configuration file ${configurationPath} is invalid: ${error}`);\n\t\t}\n\t};\n}\n\n//#endregion\n//#region src/features.ts\nconst deprecations = { implicitContentProperty: `The implicit addition of a content property to schemas is deprecated.\nPlease add an explicit content property to your schema.\nFor more information, see:\nhttps://content-collections.dev/docs/deprecations/implicit-content-property` };\nconst _suppressDeprecatedWarnings = [];\nfunction suppressDeprecatedWarnings(...suppresses) {\n\tfor (const deprecation of suppresses) if (deprecation === \"all\") {\n\t\t_suppressDeprecatedWarnings.push(...Object.keys(deprecations));\n\t\treturn;\n\t} else _suppressDeprecatedWarnings.push(deprecation);\n}\nfunction deprecated(deprecation, logger = console.warn) {\n\tif (_suppressDeprecatedWarnings.includes(deprecation)) return;\n\tlogger(`[CC DEPRECATED]: ${deprecations[deprecation]}`);\n}\nconst retiredFeatures = { legacySchema: `The use of a function as a schema is retired.\nPlease use a StandardSchema compliant library directly.\nFor more information, see:\nhttps://content-collections.dev/docs/deprecations/schema-as-function` };\nvar RetiredFeatureError = class RetiredFeatureError extends Error {\n\tfeature;\n\tconstructor(feature) {\n\t\tsuper(`This feature has been removed:\\n${retiredFeatures[feature]}`);\n\t\tthis.feature = feature;\n\t\tthis.name = \"RetiredFeatureError\";\n\t\tObject.setPrototypeOf(this, RetiredFeatureError.prototype);\n\t}\n};\nfunction retired(feature) {\n\tthrow new RetiredFeatureError(feature);\n}\n\n//#endregion\n//#region src/config.ts\nconst skippedSymbol = Symbol(\"skipped\");\nfunction defineCollection(collection) {\n\tlet typeName = collection.typeName;\n\tif (!typeName) typeName = generateTypeName(collection.name);\n\tlet parser = collection.parser;\n\tif (!parser) parser = \"frontmatter\";\n\telse if (!isValidParser(parser)) throw new ConfigurationError(\"Read\", `Parser ${parser} is not valid a parser`);\n\tlet schema$1 = collection.schema;\n\tif (!schema$1[\"~standard\"]) retired(\"legacySchema\");\n\treturn {\n\t\t...collection,\n\t\ttypeName,\n\t\tparser,\n\t\tschema: schema$1\n\t};\n}\nfunction defineConfig(config$1) {\n\treturn config$1;\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/core.js\n/** A special constant with type `never` */\nconst NEVER = Object.freeze({ status: \"aborted\" });\nfunction $constructor(name, initializer$1, params) {\n\tfunction init(inst, def) {\n\t\tvar _a;\n\t\tObject.defineProperty(inst, \"_zod\", {\n\t\t\tvalue: inst._zod ?? {},\n\t\t\tenumerable: false\n\t\t});\n\t\t(_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());\n\t\tinst._zod.traits.add(name);\n\t\tinitializer$1(inst, def);\n\t\tfor (const k in _.prototype) if (!(k in inst)) Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });\n\t\tinst._zod.constr = _;\n\t\tinst._zod.def = def;\n\t}\n\tconst Parent = params?.Parent ?? Object;\n\tclass Definition extends Parent {}\n\tObject.defineProperty(Definition, \"name\", { value: name });\n\tfunction _(def) {\n\t\tvar _a;\n\t\tconst inst = params?.Parent ? new Definition() : this;\n\t\tinit(inst, def);\n\t\t(_a = inst._zod).deferred ?? (_a.deferred = []);\n\t\tfor (const fn of inst._zod.deferred) fn();\n\t\treturn inst;\n\t}\n\tObject.defineProperty(_, \"init\", { value: init });\n\tObject.defineProperty(_, Symbol.hasInstance, { value: (inst) => {\n\t\tif (params?.Parent && inst instanceof params.Parent) return true;\n\t\treturn inst?._zod?.traits?.has(name);\n\t} });\n\tObject.defineProperty(_, \"name\", { value: name });\n\treturn _;\n}\nconst $brand = Symbol(\"zod_brand\");\nvar $ZodAsyncError = class extends Error {\n\tconstructor() {\n\t\tsuper(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);\n\t}\n};\nconst globalConfig = {};\nfunction config(newConfig) {\n\tif (newConfig) Object.assign(globalConfig, newConfig);\n\treturn globalConfig;\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/util.js\nfunction jsonStringifyReplacer(_, value) {\n\tif (typeof value === \"bigint\") return value.toString();\n\treturn value;\n}\nfunction cached(getter) {\n\treturn { get value() {\n\t\t{\n\t\t\tconst value = getter();\n\t\t\tObject.defineProperty(this, \"value\", { value });\n\t\t\treturn value;\n\t\t}\n\t\tthrow new Error(\"cached value already set\");\n\t} };\n}\nfunction cleanRegex(source) {\n\tconst start = source.startsWith(\"^\") ? 1 : 0;\n\tconst end = source.endsWith(\"$\") ? source.length - 1 : source.length;\n\treturn source.slice(start, end);\n}\nconst EVALUATING = Symbol(\"evaluating\");\nfunction defineLazy(object$1, key, getter) {\n\tlet value = void 0;\n\tObject.defineProperty(object$1, key, {\n\t\tget() {\n\t\t\tif (value === EVALUATING) return;\n\t\t\tif (value === void 0) {\n\t\t\t\tvalue = EVALUATING;\n\t\t\t\tvalue = getter();\n\t\t\t}\n\t\t\treturn value;\n\t\t},\n\t\tset(v) {\n\t\t\tObject.defineProperty(object$1, key, { value: v });\n\t\t},\n\t\tconfigurable: true\n\t});\n}\nconst captureStackTrace = \"captureStackTrace\" in Error ? Error.captureStackTrace : (..._args) => {};\nfunction isObject(data) {\n\treturn typeof data === \"object\" && data !== null && !Array.isArray(data);\n}\nconst allowsEval = cached(() => {\n\tif (typeof navigator !== \"undefined\" && navigator?.userAgent?.includes(\"Cloudflare\")) return false;\n\ttry {\n\t\tnew Function(\"\");\n\t\treturn true;\n\t} catch (_) {\n\t\treturn false;\n\t}\n});\nfunction isPlainObject(o) {\n\tif (isObject(o) === false) return false;\n\tconst ctor = o.constructor;\n\tif (ctor === void 0) return true;\n\tconst prot = ctor.prototype;\n\tif (isObject(prot) === false) return false;\n\tif (Object.prototype.hasOwnProperty.call(prot, \"isPrototypeOf\") === false) return false;\n\treturn true;\n}\nconst propertyKeyTypes = new Set([\n\t\"string\",\n\t\"number\",\n\t\"symbol\"\n]);\nfunction escapeRegex(str) {\n\treturn str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\nfunction clone(inst, def, params) {\n\tconst cl = new inst._zod.constr(def ?? inst._zod.def);\n\tif (!def || params?.parent) cl._zod.parent = inst;\n\treturn cl;\n}\nfunction normalizeParams(_params) {\n\tconst params = _params;\n\tif (!params) return {};\n\tif (typeof params === \"string\") return { error: () => params };\n\tif (params?.message !== void 0) {\n\t\tif (params?.error !== void 0) throw new Error(\"Cannot specify both `message` and `error` params\");\n\t\tparams.error = params.message;\n\t}\n\tdelete params.message;\n\tif (typeof params.error === \"string\") return {\n\t\t...params,\n\t\terror: () => params.error\n\t};\n\treturn params;\n}\nfunction optionalKeys(shape) {\n\treturn Object.keys(shape).filter((k) => {\n\t\treturn shape[k]._zod.optin === \"optional\" && shape[k]._zod.optout === \"optional\";\n\t});\n}\nconst NUMBER_FORMAT_RANGES = {\n\tsafeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],\n\tint32: [-2147483648, 2147483647],\n\tuint32: [0, 4294967295],\n\tfloat32: [-34028234663852886e22, 34028234663852886e22],\n\tfloat64: [-Number.MAX_VALUE, Number.MAX_VALUE]\n};\nfunction aborted(x, startIndex = 0) {\n\tif (x.aborted === true) return true;\n\tfor (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;\n\treturn false;\n}\nfunction prefixIssues(path$1, issues) {\n\treturn issues.map((iss) => {\n\t\tvar _a;\n\t\t(_a = iss).path ?? (_a.path = []);\n\t\tiss.path.unshift(path$1);\n\t\treturn iss;\n\t});\n}\nfunction unwrapMessage(message) {\n\treturn typeof message === \"string\" ? message : message?.message;\n}\nfunction finalizeIssue(iss, ctx, config$1) {\n\tconst full = {\n\t\t...iss,\n\t\tpath: iss.path ?? []\n\t};\n\tif (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config$1.customError?.(iss)) ?? unwrapMessage(config$1.localeError?.(iss)) ?? \"Invalid input\";\n\tdelete full.inst;\n\tdelete full.continue;\n\tif (!ctx?.reportInput) delete full.input;\n\treturn full;\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.js\nconst initializer = (inst, def) => {\n\tinst.name = \"$ZodError\";\n\tObject.defineProperty(inst, \"_zod\", {\n\t\tvalue: inst._zod,\n\t\tenumerable: false\n\t});\n\tObject.defineProperty(inst, \"issues\", {\n\t\tvalue: def,\n\t\tenumerable: false\n\t});\n\tinst.message = JSON.stringify(def, jsonStringifyReplacer, 2);\n\tObject.defineProperty(inst, \"toString\", {\n\t\tvalue: () => inst.message,\n\t\tenumerable: false\n\t});\n};\nconst $ZodError = $constructor(\"$ZodError\", initializer);\nconst $ZodRealError = $constructor(\"$ZodError\", initializer, { Parent: Error });\n\n//#endregion\n//#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/parse.js\nconst _parse = (_Err) => (schema$1, value, _ctx, _params) => {\n\tconst ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };\n\tconst result = schema$1._zod.run({\n\t\tvalue,\n\t\tissues: []\n\t}, ctx);\n\tif (result instanceof Promise) throw new $ZodAsyncError();\n\tif (result.issues.length) {\n\t\tconst e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));\n\t\tcaptureStackTrace(e, _params?.callee);\n\t\tthrow e;\n\t}\n\treturn result.value;\n};\nconst parse$1 = /* @__PURE__ */ _parse($ZodRealError);\nconst _parseAsync = (_Err) => async (schema$1, value, _ctx, params) => {\n\tconst ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };\n\tlet result = schema$1._zod.run({\n\t\tvalue,\n\t\tissues: []\n\t}, ctx);\n\tif (result instanceof Promise) result = await result;\n\tif (result.issues.length) {\n\t\tconst e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));\n\t\tcaptureStackTrace(e, params?.callee);\n\t\tthrow e;\n\t}\n\treturn result.value;\n};\nconst parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);\nconst _safeParse = (_Err) => (schema$1, value, _ctx) => {\n\tconst ctx = _ctx ? {\n\t\t..._ctx,\n\t\tasync: false\n\t} : { async: false };\n\tconst result = schema$1._zod.run({\n\t\tvalue,\n\t\tissues: []\n\t}, ctx);\n\tif (result instanceof Promise) throw new $ZodAsyncError();\n\treturn result.issues.length ? {\n\t\tsuccess: false,\n\t\terror: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))\n\t} : {\n\t\tsuccess: true,\n\t\tdata: result.value\n\t};\n};\nconst safeParse = /* @__PURE__ */ _safeParse($ZodRealError);\nconst _safeParseAsync = (_Err) => async (schema$1, value, _ctx) => {\n\tconst ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };\n\tlet result = schema$1._zod.run({\n\t\tvalue,\n\t\tissues: []\n\t}, ctx);\n\tif (result instanceof Promise) result = await result;\n\treturn result.issues.length ? {\n\t\tsuccess: false,\n\t\terror: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))\n\t} : {\n\t\tsuccess: true,\n\t\tdata: result.value\n\t};\n};\nconst safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);\nconst _encode = (_Err) => (schema$1, value, _ctx) => {\n\tconst ctx = _ctx ? Object.assign(_ctx, { direction: \"backward\" }) : { direction: \"backward\" };\n\treturn _parse(_Err)(schema$1, value, ctx);\n};\nconst encode = /* @__PURE__ */ _encode($ZodRealError);\nconst _decode = (_Err) => (schema$1, value, _ctx) => {\n\treturn _parse(_Err)(schema$1, value, _ctx);\n};\nconst decode = /* @__PURE__ */ _decode($ZodRealError);\nconst _encodeAsync = (_Err) => async (schema$1, value, _ctx) => {\n\tconst ctx = _ctx ? Object.assign(_ctx, { direction: \"backward\" }) : { direction: \"backward\" };\n\treturn _parseAsync(_Err)(schema$1, value, ctx);\n};\nconst encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);\nconst _decodeAsync = (_Err) => async (schema$1, value, _ctx) => {\n\treturn _parseAsync(_Err)(schema$1, value, _ctx);\n};\nconst decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);\nconst _safeEncode = (_Err) => (schema$1, value, _ctx) => {\n\tconst ctx = _ctx ? Object.assign(_ctx, { direction: \"backward\" }) : { direction: \"backward\" };\n\treturn _safeParse(_Err)(schema$1, value, ctx);\n};\nconst safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);\nconst _safeDecode = (_Err) => (schema$1, value, _ctx) => {\n\treturn _safeParse(_Err)(schema$1, value, _ctx);\n};\nconst safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);\nconst _safeEncodeAsync = (_Err) => async (schema$1, value, _ctx) => {\n\tconst ctx = _ctx ? Object.assign(_ctx, { direction: \"backward\" }) : { direction: \"backward\" };\n\treturn _safeParseAsync(_Err)(schema$1, value, ctx);\n};\nconst safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);\nconst _safeDecodeAsync = (_Err) => async (schema$1, value, _ctx) => {\n\treturn _safeParseAsync(_Err)(schema$1, value, _ctx);\n};\nconst safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);\n\n//#endregion\n//#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/regexes.js\nconst dateSource = `(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`;\nconst date$1 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);\nconst string$1 = (params) => {\n\tconst regex = params ? `[\\\\s\\\\S]{${params?.minimum ?? 0},${params?.maximum ?? \"\"}}` : `[\\\\s\\\\S]*`;\n\treturn /* @__PURE__ */ new RegExp(`^${regex}$`);\n};\nconst bigint$1 = /^-?\\d+n?$/;\nconst number$1 = /^-?\\d+(?:\\.\\d+)?/;\nconst boolean$1 = /^(?:true|false)$/i;\nconst _null$2 = /^null$/i;\nconst _undefined$2 = /^undefined$/i;\n\n//#endregion\n//#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/versions.js\nconst version = {\n\tmajor: 4,\n\tminor: 1,\n\tpatch: 11\n};\n\n//#endregion\n//#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.js\nconst $ZodType = /* @__PURE__ */ $constructor(\"$ZodType\", (inst, def) => {\n\tvar _a;\n\tinst ?? (inst = {});\n\tinst._zod.def = def;\n\tinst._zod.bag = inst._zod.bag || {};\n\tinst._zod.version = version;\n\tconst checks = [...inst._zod.def.checks ?? []];\n\tif (inst._zod.traits.has(\"$ZodCheck\")) checks.unshift(inst);\n\tfor (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);\n\tif (checks.length === 0) {\n\t\t(_a = inst._zod).deferred ?? (_a.deferred = []);\n\t\tinst._zod.deferred?.push(() => {\n\t\t\tinst._zod.run = inst._zod.parse;\n\t\t});\n\t} else {\n\t\tconst runChecks = (payload, checks$1, ctx) => {\n\t\t\tlet isAborted = aborted(payload);\n\t\t\tlet asyncResult;\n\t\t\tfor (const ch of checks$1) {\n\t\t\t\tif (ch._zod.def.when) {\n\t\t\t\t\tif (!ch._zod.def.when(payload)) continue;\n\t\t\t\t} else if (isAborted) continue;\n\t\t\t\tconst currLen = payload.issues.length;\n\t\t\t\tconst _ = ch._zod.check(payload);\n\t\t\t\tif (_ instanceof Promise && ctx?.async === false) throw new $ZodAsyncError();\n\t\t\t\tif (asyncResult || _ instanceof Promise) asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {\n\t\t\t\t\tawait _;\n\t\t\t\t\tif (payload.issues.length === currLen) return;\n\t\t\t\t\tif (!isAborted) isAborted = aborted(payload, currLen);\n\t\t\t\t});\n\t\t\t\telse {\n\t\t\t\t\tif (payload.issues.length === currLen) continue;\n\t\t\t\t\tif (!isAborted) isAborted = aborted(payload, currLen);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (asyncResult) return asyncResult.then(() => {\n\t\t\t\treturn payload;\n\t\t\t});\n\t\t\treturn payload;\n\t\t};\n\t\tconst handleCanaryResult = (canary, payload, ctx) => {\n\t\t\tif (aborted(canary)) {\n\t\t\t\tcanary.aborted = true;\n\t\t\t\treturn canary;\n\t\t\t}\n\t\t\tconst checkResult = runChecks(payload, checks, ctx);\n\t\t\tif (checkResult instanceof Promise) {\n\t\t\t\tif (ctx.async === false) throw new $ZodAsyncError();\n\t\t\t\treturn checkResult.then((checkResult$1) => inst._zod.parse(checkResult$1, ctx));\n\t\t\t}\n\t\t\treturn inst._zod.parse(checkResult, ctx);\n\t\t};\n\t\tinst._zod.run = (payload, ctx) => {\n\t\t\tif (ctx.skipChecks) return inst._zod.parse(payload, ctx);\n\t\t\tif (ctx.direction === \"backward\") {\n\t\t\t\tconst canary = inst._zod.parse({\n\t\t\t\t\tvalue: payload.value,\n\t\t\t\t\tissues: []\n\t\t\t\t}, {\n\t\t\t\t\t...ctx,\n\t\t\t\t\tskipChecks: true\n\t\t\t\t});\n\t\t\t\tif (canary instanceof Promise) return canary.then((canary$1) => {\n\t\t\t\t\treturn handleCanaryResult(canary$1, payload, ctx);\n\t\t\t\t});\n\t\t\t\treturn handleCanaryResult(canary, payload, ctx);\n\t\t\t}\n\t\t\tconst result = inst._zod.parse(payload, ctx);\n\t\t\tif (result instanceof Promise) {\n\t\t\t\tif (ctx.async === false) throw new $ZodAsyncError();\n\t\t\t\treturn result.then((result$1) => runChecks(result$1, checks, ctx));\n\t\t\t}\n\t\t\treturn runChecks(result, checks, ctx);\n\t\t};\n\t}\n\tinst[\"~standard\"] = {\n\t\tvalidate: (value) => {\n\t\t\ttry {\n\t\t\t\tconst r = safeParse(inst, value);\n\t\t\t\treturn r.success ? { value: r.data } : { issues: r.error?.issues };\n\t\t\t} catch (_) {\n\t\t\t\treturn safeParseAsync(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });\n\t\t\t}\n\t\t},\n\t\tvendor: \"zod\",\n\t\tversion: 1\n\t};\n});\nconst $ZodString = /* @__PURE__ */ $constructor(\"$ZodString\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);\n\tinst._zod.parse = (payload, _) => {\n\t\tif (def.coerce) try {\n\t\t\tpayload.value = String(payload.value);\n\t\t} catch (_$1) {}\n\t\tif (typeof payload.value === \"string\") return payload;\n\t\tpayload.issues.push({\n\t\t\texpected: \"string\",\n\t\t\tcode: \"invalid_type\",\n\t\t\tinput: payload.value,\n\t\t\tinst\n\t\t});\n\t\treturn payload;\n\t};\n});\nconst $ZodNumber = /* @__PURE__ */ $constructor(\"$ZodNumber\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.pattern = inst._zod.bag.pattern ?? number$1;\n\tinst._zod.parse = (payload, _ctx) => {\n\t\tif (def.coerce) try {\n\t\t\tpayload.value = Number(payload.value);\n\t\t} catch (_) {}\n\t\tconst input = payload.value;\n\t\tif (typeof input === \"number\" && !Number.isNaN(input) && Number.isFinite(input)) return payload;\n\t\tconst received = typeof input === \"number\" ? Number.isNaN(input) ? \"NaN\" : !Number.isFinite(input) ? \"Infinity\" : void 0 : void 0;\n\t\tpayload.issues.push({\n\t\t\texpected: \"number\",\n\t\t\tcode: \"invalid_type\",\n\t\t\tinput,\n\t\t\tinst,\n\t\t\t...received ? { received } : {}\n\t\t});\n\t\treturn payload;\n\t};\n});\nconst $ZodBoolean = /* @__PURE__ */ $constructor(\"$ZodBoolean\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.pattern = boolean$1;\n\tinst._zod.parse = (payload, _ctx) => {\n\t\tif (def.coerce) try {\n\t\t\tpayload.value = Boolean(payload.value);\n\t\t} catch (_) {}\n\t\tconst input = payload.value;\n\t\tif (typeof input === \"boolean\") return payload;\n\t\tpayload.issues.push({\n\t\t\texpected: \"boolean\",\n\t\t\tcode: \"invalid_type\",\n\t\t\tinput,\n\t\t\tinst\n\t\t});\n\t\treturn payload;\n\t};\n});\nconst $ZodBigInt = /* @__PURE__ */ $constructor(\"$ZodBigInt\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.pattern = bigint$1;\n\tinst._zod.parse = (payload, _ctx) => {\n\t\tif (def.coerce) try {\n\t\t\tpayload.value = BigInt(payload.value);\n\t\t} catch (_) {}\n\t\tif (typeof payload.value === \"bigint\") return payload;\n\t\tpayload.issues.push({\n\t\t\texpected: \"bigint\",\n\t\t\tcode: \"invalid_type\",\n\t\t\tinput: payload.value,\n\t\t\tinst\n\t\t});\n\t\treturn payload;\n\t};\n});\nconst $ZodUndefined = /* @__PURE__ */ $constructor(\"$ZodUndefined\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.pattern = _undefined$2;\n\tinst._zod.values = new Set([void 0]);\n\tinst._zod.optin = \"optional\";\n\tinst._zod.optout = \"optional\";\n\tinst._zod.parse = (payload, _ctx) => {\n\t\tconst input = payload.value;\n\t\tif (typeof input === \"undefined\") return payload;\n\t\tpayload.issues.push({\n\t\t\texpected: \"undefined\",\n\t\t\tcode: \"invalid_type\",\n\t\t\tinput,\n\t\t\tinst\n\t\t});\n\t\treturn payload;\n\t};\n});\nconst $ZodNull = /* @__PURE__ */ $constructor(\"$ZodNull\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.pattern = _null$2;\n\tinst._zod.values = new Set([null]);\n\tinst._zod.parse = (payload, _ctx) => {\n\t\tconst input = payload.value;\n\t\tif (input === null) return payload;\n\t\tpayload.issues.push({\n\t\t\texpected: \"null\",\n\t\t\tcode: \"invalid_type\",\n\t\t\tinput,\n\t\t\tinst\n\t\t});\n\t\treturn payload;\n\t};\n});\nconst $ZodUnknown = /* @__PURE__ */ $constructor(\"$ZodUnknown\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.parse = (payload) => payload;\n});\nconst $ZodDate = /* @__PURE__ */ $constructor(\"$ZodDate\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.parse = (payload, _ctx) => {\n\t\tif (def.coerce) try {\n\t\t\tpayload.value = new Date(payload.value);\n\t\t} catch (_err) {}\n\t\tconst input = payload.value;\n\t\tconst isDate = input instanceof Date;\n\t\tif (isDate && !Number.isNaN(input.getTime())) return payload;\n\t\tpayload.issues.push({\n\t\t\texpected: \"date\",\n\t\t\tcode: \"invalid_type\",\n\t\t\tinput,\n\t\t\t...isDate ? { received: \"Invalid Date\" } : {},\n\t\t\tinst\n\t\t});\n\t\treturn payload;\n\t};\n});\nfunction handleArrayResult(result, final, index) {\n\tif (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));\n\tfinal.value[index] = result.value;\n}\nconst $ZodArray = /* @__PURE__ */ $constructor(\"$ZodArray\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.parse = (payload, ctx) => {\n\t\tconst input = payload.value;\n\t\tif (!Array.isArray(input)) {\n\t\t\tpayload.issues.push({\n\t\t\t\texpected: \"array\",\n\t\t\t\tcode: \"invalid_type\",\n\t\t\t\tinput,\n\t\t\t\tinst\n\t\t\t});\n\t\t\treturn payload;\n\t\t}\n\t\tpayload.value = Array(input.length);\n\t\tconst proms = [];\n\t\tfor (let i = 0; i < input.length; i++) {\n\t\t\tconst item = input[i];\n\t\t\tconst result = def.element._zod.run({\n\t\t\t\tvalue: item,\n\t\t\t\tissues: []\n\t\t\t}, ctx);\n\t\t\tif (result instanceof Promise) proms.push(result.then((result$1) => handleArrayResult(result$1, payload, i)));\n\t\t\telse handleArrayResult(result, payload, i);\n\t\t}\n\t\tif (proms.length) return Promise.all(proms).then(() => payload);\n\t\treturn payload;\n\t};\n});\nfunction handlePropertyResult(result, final, key, input) {\n\tif (result.issues.length) final.issues.push(...prefixIssues(key, result.issues));\n\tif (result.value === void 0) {\n\t\tif (key in input) final.value[key] = void 0;\n\t} else final.value[key] = result.value;\n}\nfunction normalizeDef(def) {\n\tconst keys = Object.keys(def.shape);\n\tfor (const k of keys) if (!def.shape?.[k]?._zod?.traits?.has(\"$ZodType\")) throw new Error(`Invalid element at key \"${k}\": expected a Zod schema`);\n\tconst okeys = optionalKeys(def.shape);\n\treturn {\n\t\t...def,\n\t\tkeys,\n\t\tkeySet: new Set(keys),\n\t\tnumKeys: keys.length,\n\t\toptionalKeys: new Set(okeys)\n\t};\n}\nfunction handleCatchall(proms, input, payload, ctx, def, inst) {\n\tconst unrecognized = [];\n\tconst keySet = def.keySet;\n\tconst _catchall = def.catchall._zod;\n\tconst t = _catchall.def.type;\n\tfor (const key of Object.keys(input)) {\n\t\tif (keySet.has(key)) continue;\n\t\tif (t === \"never\") {\n\t\t\tunrecognized.push(key);\n\t\t\tcontinue;\n\t\t}\n\t\tconst r = _catchall.run({\n\t\t\tvalue: input[key],\n\t\t\tissues: []\n\t\t}, ctx);\n\t\tif (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input)));\n\t\telse handlePropertyResult(r, payload, key, input);\n\t}\n\tif (unrecognized.length) payload.issues.push({\n\t\tcode: \"unrecognized_keys\",\n\t\tkeys: unrecognized,\n\t\tinput,\n\t\tinst\n\t});\n\tif (!proms.length) return payload;\n\treturn Promise.all(proms).then(() => {\n\t\treturn payload;\n\t});\n}\nconst $ZodObject = /* @__PURE__ */ $constructor(\"$ZodObject\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tif (!Object.getOwnPropertyDescriptor(def, \"shape\")?.get) {\n\t\tconst sh = def.shape;\n\t\tObject.defineProperty(def, \"shape\", { get: () => {\n\t\t\tconst newSh = { ...sh };\n\t\t\tObject.defineProperty(def, \"shape\", { value: newSh });\n\t\t\treturn newSh;\n\t\t} });\n\t}\n\tconst _normalized = cached(() => normalizeDef(def));\n\tdefineLazy(inst._zod, \"propValues\", () => {\n\t\tconst shape = def.shape;\n\t\tconst propValues = {};\n\t\tfor (const key in shape) {\n\t\t\tconst field = shape[key]._zod;\n\t\t\tif (field.values) {\n\t\t\t\tpropValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());\n\t\t\t\tfor (const v of field.values) propValues[key].add(v);\n\t\t\t}\n\t\t}\n\t\treturn propValues;\n\t});\n\tconst isObject$1 = isObject;\n\tconst catchall = def.catchall;\n\tlet value;\n\tinst._zod.parse = (payload, ctx) => {\n\t\tvalue ?? (value = _normalized.value);\n\t\tconst input = payload.value;\n\t\tif (!isObject$1(input)) {\n\t\t\tpayload.issues.push({\n\t\t\t\texpected: \"object\",\n\t\t\t\tcode: \"invalid_type\",\n\t\t\t\tinput,\n\t\t\t\tinst\n\t\t\t});\n\t\t\treturn payload;\n\t\t}\n\t\tpayload.value = {};\n\t\tconst proms = [];\n\t\tconst shape = value.shape;\n\t\tfor (const key of value.keys) {\n\t\t\tconst r = shape[key]._zod.run({\n\t\t\t\tvalue: input[key],\n\t\t\t\tissues: []\n\t\t\t}, ctx);\n\t\t\tif (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input)));\n\t\t\telse handlePropertyResult(r, payload, key, input);\n\t\t}\n\t\tif (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;\n\t\treturn handleCatchall(proms, input, payload, ctx, _normalized.value, inst);\n\t};\n});\nfunction handleUnionResults(results, final, inst, ctx) {\n\tfor (const result of results) if (result.issues.length === 0) {\n\t\tfinal.value = result.value;\n\t\treturn final;\n\t}\n\tconst nonaborted = results.filter((r) => !aborted(r));\n\tif (nonaborted.length === 1) {\n\t\tfinal.value = nonaborted[0].value;\n\t\treturn nonaborted[0];\n\t}\n\tfinal.issues.push({\n\t\tcode: \"invalid_union\",\n\t\tinput: final.value,\n\t\tinst,\n\t\terrors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))\n\t});\n\treturn final;\n}\nconst $ZodUnion = /* @__PURE__ */ $constructor(\"$ZodUnion\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tdefineLazy(inst._zod, \"optin\", () => def.options.some((o) => o._zod.optin === \"optional\") ? \"optional\" : void 0);\n\tdefineLazy(inst._zod, \"optout\", () => def.options.some((o) => o._zod.optout === \"optional\") ? \"optional\" : void 0);\n\tdefineLazy(inst._zod, \"values\", () => {\n\t\tif (def.options.every((o) => o._zod.values)) return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));\n\t});\n\tdefineLazy(inst._zod, \"pattern\", () => {\n\t\tif (def.options.every((o) => o._zod.pattern)) {\n\t\t\tconst patterns = def.options.map((o) => o._zod.pattern);\n\t\t\treturn /* @__PURE__ */ new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join(\"|\")})$`);\n\t\t}\n\t});\n\tconst single = def.options.length === 1;\n\tconst first = def.options[0]._zod.run;\n\tinst._zod.parse = (payload, ctx) => {\n\t\tif (single) return first(payload, ctx);\n\t\tlet async = false;\n\t\tconst results = [];\n\t\tfor (const option of def.options) {\n\t\t\tconst result = option._zod.run({\n\t\t\t\tvalue: payload.value,\n\t\t\t\tissues: []\n\t\t\t}, ctx);\n\t\t\tif (result instanceof Promise) {\n\t\t\t\tresults.push(result);\n\t\t\t\tasync = true;\n\t\t\t} else {\n\t\t\t\tif (result.issues.length === 0) return result;\n\t\t\t\tresults.push(result);\n\t\t\t}\n\t\t}\n\t\tif (!async) return handleUnionResults(results, payload, inst, ctx);\n\t\treturn Promise.all(results).then((results$1) => {\n\t\t\treturn handleUnionResults(results$1, payload, inst, ctx);\n\t\t});\n\t};\n});\nconst $ZodRecord = /* @__PURE__ */ $constructor(\"$ZodRecord\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.parse = (payload, ctx) => {\n\t\tconst input = payload.value;\n\t\tif (!isPlainObject(input)) {\n\t\t\tpayload.issues.push({\n\t\t\t\texpected: \"record\",\n\t\t\t\tcode: \"invalid_type\",\n\t\t\t\tinput,\n\t\t\t\tinst\n\t\t\t});\n\t\t\treturn payload;\n\t\t}\n\t\tconst proms = [];\n\t\tif (def.keyType._zod.values) {\n\t\t\tconst values = def.keyType._zod.values;\n\t\t\tpayload.value = {};\n\t\t\tfor (const key of values) if (typeof key === \"string\" || typeof key === \"number\" || typeof key === \"symbol\") {\n\t\t\t\tconst result = def.valueType._zod.run({\n\t\t\t\t\tvalue: input[key],\n\t\t\t\t\tissues: []\n\t\t\t\t}, ctx);\n\t\t\t\tif (result instanceof Promise) proms.push(result.then((result$1) => {\n\t\t\t\t\tif (result$1.issues.length) payload.issues.push(...prefixIssues(key, result$1.issues));\n\t\t\t\t\tpayload.value[key] = result$1.value;\n\t\t\t\t}));\n\t\t\t\telse {\n\t\t\t\t\tif (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));\n\t\t\t\t\tpayload.value[key] = result.value;\n\t\t\t\t}\n\t\t\t}\n\t\t\tlet unrecognized;\n\t\t\tfor (const key in input) if (!values.has(key)) {\n\t\t\t\tunrecognized = unrecognized ?? [];\n\t\t\t\tunrecognized.push(key);\n\t\t\t}\n\t\t\tif (unrecognized && unrecognized.length > 0) payload.issues.push({\n\t\t\t\tcode: \"unrecognized_keys\",\n\t\t\t\tinput,\n\t\t\t\tinst,\n\t\t\t\tkeys: unrecognized\n\t\t\t});\n\t\t} else {\n\t\t\tpayload.value = {};\n\t\t\tfor (const key of Reflect.ownKeys(input)) {\n\t\t\t\tif (key === \"__proto__\") continue;\n\t\t\t\tconst keyResult = def.keyType._zod.run({\n\t\t\t\t\tvalue: key,\n\t\t\t\t\tissues: []\n\t\t\t\t}, ctx);\n\t\t\t\tif (keyResult instanceof Promise) throw new Error(\"Async schemas not supported in object keys currently\");\n\t\t\t\tif (keyResult.issues.length) {\n\t\t\t\t\tpayload.issues.push({\n\t\t\t\t\t\tcode: \"invalid_key\",\n\t\t\t\t\t\torigin: \"record\",\n\t\t\t\t\t\tissues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),\n\t\t\t\t\t\tinput: key,\n\t\t\t\t\t\tpath: [key],\n\t\t\t\t\t\tinst\n\t\t\t\t\t});\n\t\t\t\t\tpayload.value[keyResult.value] = keyResult.value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tconst result = def.valueType._zod.run({\n\t\t\t\t\tvalue: input[key],\n\t\t\t\t\tissues: []\n\t\t\t\t}, ctx);\n\t\t\t\tif (result instanceof Promise) proms.push(result.then((result$1) => {\n\t\t\t\t\tif (result$1.issues.length) payload.issues.push(...prefixIssues(key, result$1.issues));\n\t\t\t\t\tpayload.value[keyResult.value] = result$1.value;\n\t\t\t\t}));\n\t\t\t\telse {\n\t\t\t\t\tif (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));\n\t\t\t\t\tpayload.value[keyResult.value] = result.value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (proms.length) return Promise.all(proms).then(() => payload);\n\t\treturn payload;\n\t};\n});\nconst $ZodMap = /* @__PURE__ */ $constructor(\"$ZodMap\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.parse = (payload, ctx) => {\n\t\tconst input = payload.value;\n\t\tif (!(input instanceof Map)) {\n\t\t\tpayload.issues.push({\n\t\t\t\texpected: \"map\",\n\t\t\t\tcode: \"invalid_type\",\n\t\t\t\tinput,\n\t\t\t\tinst\n\t\t\t});\n\t\t\treturn payload;\n\t\t}\n\t\tconst proms = [];\n\t\tpayload.value = /* @__PURE__ */ new Map();\n\t\tfor (const [key, value] of input) {\n\t\t\tconst keyResult = def.keyType._zod.run({\n\t\t\t\tvalue: key,\n\t\t\t\tissues: []\n\t\t\t}, ctx);\n\t\t\tconst valueResult = def.valueType._zod.run({\n\t\t\t\tvalue,\n\t\t\t\tissues: []\n\t\t\t}, ctx);\n\t\t\tif (keyResult instanceof Promise || valueResult instanceof Promise) proms.push(Promise.all([keyResult, valueResult]).then(([keyResult$1, valueResult$1]) => {\n\t\t\t\thandleMapResult(keyResult$1, valueResult$1, payload, key, input, inst, ctx);\n\t\t\t}));\n\t\t\telse handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);\n\t\t}\n\t\tif (proms.length) return Promise.all(proms).then(() => payload);\n\t\treturn payload;\n\t};\n});\nfunction handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {\n\tif (keyResult.issues.length) if (propertyKeyTypes.has(typeof key)) final.issues.push(...prefixIssues(key, keyResult.issues));\n\telse final.issues.push({\n\t\tcode: \"invalid_key\",\n\t\torigin: \"map\",\n\t\tinput,\n\t\tinst,\n\t\tissues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))\n\t});\n\tif (valueResult.issues.length) if (propertyKeyTypes.has(typeof key)) final.issues.push(...prefixIssues(key, valueResult.issues));\n\telse final.issues.push({\n\t\torigin: \"map\",\n\t\tcode: \"invalid_element\",\n\t\tinput,\n\t\tinst,\n\t\tkey,\n\t\tissues: valueResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))\n\t});\n\tfinal.value.set(keyResult.value, valueResult.value);\n}\nconst $ZodSet = /* @__PURE__ */ $constructor(\"$ZodSet\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.parse = (payload, ctx) => {\n\t\tconst input = payload.value;\n\t\tif (!(input instanceof Set)) {\n\t\t\tpayload.issues.push({\n\t\t\t\tinput,\n\t\t\t\tinst,\n\t\t\t\texpected: \"set\",\n\t\t\t\tcode: \"invalid_type\"\n\t\t\t});\n\t\t\treturn payload;\n\t\t}\n\t\tconst proms = [];\n\t\tpayload.value = /* @__PURE__ */ new Set();\n\t\tfor (const item of input) {\n\t\t\tconst result = def.valueType._zod.run({\n\t\t\t\tvalue: item,\n\t\t\t\tissues: []\n\t\t\t}, ctx);\n\t\t\tif (result instanceof Promise) proms.push(result.then((result$1) => handleSetResult(result$1, payload)));\n\t\t\telse handleSetResult(result, payload);\n\t\t}\n\t\tif (proms.length) return Promise.all(proms).then(() => payload);\n\t\treturn payload;\n\t};\n});\nfunction handleSetResult(result, final) {\n\tif (result.issues.length) final.issues.push(...result.issues);\n\tfinal.value.add(result.value);\n}\nconst $ZodLiteral = /* @__PURE__ */ $constructor(\"$ZodLiteral\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tif (def.values.length === 0) throw new Error(\"Cannot create literal schema with no valid values\");\n\tinst._zod.values = new Set(def.values);\n\tinst._zod.pattern = /* @__PURE__ */ new RegExp(`^(${def.values.map((o) => typeof o === \"string\" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join(\"|\")})$`);\n\tinst._zod.parse = (payload, _ctx) => {\n\t\tconst input = payload.value;\n\t\tif (inst._zod.values.has(input)) return payload;\n\t\tpayload.issues.push({\n\t\t\tcode: \"invalid_value\",\n\t\t\tvalues: def.values,\n\t\t\tinput,\n\t\t\tinst\n\t\t});\n\t\treturn payload;\n\t};\n});\nfunction handleOptionalResult(result, input) {\n\tif (result.issues.length && input === void 0) return {\n\t\tissues: [],\n\t\tvalue: void 0\n\t};\n\treturn result;\n}\nconst $ZodOptional = /* @__PURE__ */ $constructor(\"$ZodOptional\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tinst._zod.optin = \"optional\";\n\tinst._zod.optout = \"optional\";\n\tdefineLazy(inst._zod, \"values\", () => {\n\t\treturn def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;\n\t});\n\tdefineLazy(inst._zod, \"pattern\", () => {\n\t\tconst pattern = def.innerType._zod.pattern;\n\t\treturn pattern ? /* @__PURE__ */ new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;\n\t});\n\tinst._zod.parse = (payload, ctx) => {\n\t\tif (def.innerType._zod.optin === \"optional\") {\n\t\t\tconst result = def.innerType._zod.run(payload, ctx);\n\t\t\tif (result instanceof Promise) return result.then((r) => handleOptionalResult(r, payload.value));\n\t\t\treturn handleOptionalResult(result, payload.value);\n\t\t}\n\t\tif (payload.value === void 0) return payload;\n\t\treturn def.innerType._zod.run(payload, ctx);\n\t};\n});\nconst $ZodLazy = /* @__PURE__ */ $constructor(\"$ZodLazy\", (inst, def) => {\n\t$ZodType.init(inst, def);\n\tdefineLazy(inst._zod, \"innerType\", () => def.getter());\n\tdefineLazy(inst._zod, \"pattern\", () => inst._zod.innerType._zod.pattern);\n\tdefineLazy(inst._zod, \"propValues\", () => inst._zod.innerType._zod.propValues);\n\tdefineLazy(inst._zod, \"optin\", () => inst._zod.innerType._zod.optin ?? void 0);\n\tdefineLazy(inst._zod, \"optout\", () => inst._zod.innerType._zod.optout ?? void 0);\n\tinst._zod.parse = (payload, ctx) => {\n\t\treturn inst._zod.innerType._zod.run(payload, ctx);\n\t};\n});\n\n//#endregion\n//#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/api.js\nfunction _string(Class, params) {\n\treturn new Class({\n\t\ttype: \"string\",\n\t\t...normalizeParams(params)\n\t});\n}\nfunction _number(Class, params) {\n\treturn new Class({\n\t\ttype: \"number\",\n\t\tchecks: [],\n\t\t...normalizeParams(params)\n\t});\n}\nfunction _boolean(Class, params) {\n\treturn new Class({\n\t\ttype: \"boolean\",\n\t\t...normalizeParams(params)\n\t});\n}\nfunction _bigint(Class, params) {\n\treturn new Class({\n\t\ttype: \"bigint\",\n\t\t...normalizeParams(params)\n\t});\n}\nfunction _undefined$1(Class, params) {\n\treturn new Class({\n\t\ttype: \"undefined\",\n\t\t...normalizeParams(params)\n\t});\n}\nfunction _null$1(Class, params) {\n\treturn new Class({\n\t\ttype: \"null\",\n\t\t...normalizeParams(params)\n\t});\n}\nfunction _unknown(Class) {\n\treturn new Class({ type: \"unknown\" });\n}\nfunction _date(Class, params) {\n\treturn new Class({\n\t\ttype: \"date\",\n\t\t...normalizeParams(params)\n\t});\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/schemas.js\nconst ZodMiniType = /* @__PURE__ */ $constructor(\"ZodMiniType\", (inst, def) => {\n\tif (!inst._zod) throw new Error(\"Uninitialized schema in ZodMiniType.\");\n\t$ZodType.init(inst, def);\n\tinst.def = def;\n\tinst.type = def.type;\n\tinst.parse = (data, params) => parse$1(inst, data, params, { callee: inst.parse });\n\tinst.safeParse = (data, params) => safeParse(inst, data, params);\n\tinst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });\n\tinst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);\n\tinst.check = (...checks) => {\n\t\treturn inst.clone({\n\t\t\t...def,\n\t\t\tchecks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === \"function\" ? { _zod: {\n\t\t\t\tcheck: ch,\n\t\t\t\tdef: { check: \"custom\" },\n\t\t\t\tonattach: []\n\t\t\t} } : ch)]\n\t\t});\n\t};\n\tinst.clone = (_def, params) => clone(inst, _def, params);\n\tinst.brand = () => inst;\n\tinst.register = ((reg, meta) => {\n\t\treg.add(inst, meta);\n\t\treturn inst;\n\t});\n});\nconst ZodMiniString = /* @__PURE__ */ $constructor(\"ZodMiniString\", (inst, def) => {\n\t$ZodString.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction string(params) {\n\treturn _string(ZodMiniString, params);\n}\nconst ZodMiniNumber = /* @__PURE__ */ $constructor(\"ZodMiniNumber\", (inst, def) => {\n\t$ZodNumber.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction number(params) {\n\treturn _number(ZodMiniNumber, params);\n}\nconst ZodMiniBoolean = /* @__PURE__ */ $constructor(\"ZodMiniBoolean\", (inst, def) => {\n\t$ZodBoolean.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction boolean(params) {\n\treturn _boolean(ZodMiniBoolean, params);\n}\nconst ZodMiniBigInt = /* @__PURE__ */ $constructor(\"ZodMiniBigInt\", (inst, def) => {\n\t$ZodBigInt.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction bigint(params) {\n\treturn _bigint(ZodMiniBigInt, params);\n}\nconst ZodMiniUndefined = /* @__PURE__ */ $constructor(\"ZodMiniUndefined\", (inst, def) => {\n\t$ZodUndefined.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction _undefined(params) {\n\treturn _undefined$1(ZodMiniUndefined, params);\n}\nconst ZodMiniNull = /* @__PURE__ */ $constructor(\"ZodMiniNull\", (inst, def) => {\n\t$ZodNull.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction _null(params) {\n\treturn _null$1(ZodMiniNull, params);\n}\nconst ZodMiniUnknown = /* @__PURE__ */ $constructor(\"ZodMiniUnknown\", (inst, def) => {\n\t$ZodUnknown.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction unknown() {\n\treturn _unknown(ZodMiniUnknown);\n}\nconst ZodMiniDate = /* @__PURE__ */ $constructor(\"ZodMiniDate\", (inst, def) => {\n\t$ZodDate.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction date(params) {\n\treturn _date(ZodMiniDate, params);\n}\nconst ZodMiniArray = /* @__PURE__ */ $constructor(\"ZodMiniArray\", (inst, def) => {\n\t$ZodArray.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction array(element, params) {\n\treturn new ZodMiniArray({\n\t\ttype: \"array\",\n\t\telement,\n\t\t...normalizeParams(params)\n\t});\n}\nconst ZodMiniObject = /* @__PURE__ */ $constructor(\"ZodMiniObject\", (inst, def) => {\n\t$ZodObject.init(inst, def);\n\tZodMiniType.init(inst, def);\n\tdefineLazy(inst, \"shape\", () => def.shape);\n});\nfunction object(shape, params) {\n\treturn new ZodMiniObject({\n\t\ttype: \"object\",\n\t\tshape: shape ?? {},\n\t\t...normalizeParams(params)\n\t});\n}\nconst ZodMiniUnion = /* @__PURE__ */ $constructor(\"ZodMiniUnion\", (inst, def) => {\n\t$ZodUnion.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction union(options, params) {\n\treturn new ZodMiniUnion({\n\t\ttype: \"union\",\n\t\toptions,\n\t\t...normalizeParams(params)\n\t});\n}\nconst ZodMiniRecord = /* @__PURE__ */ $constructor(\"ZodMiniRecord\", (inst, def) => {\n\t$ZodRecord.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction record(keyType, valueType, params) {\n\treturn new ZodMiniRecord({\n\t\ttype: \"record\",\n\t\tkeyType,\n\t\tvalueType,\n\t\t...normalizeParams(params)\n\t});\n}\nconst ZodMiniMap = /* @__PURE__ */ $constructor(\"ZodMiniMap\", (inst, def) => {\n\t$ZodMap.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction map(keyType, valueType, params) {\n\treturn new ZodMiniMap({\n\t\ttype: \"map\",\n\t\tkeyType,\n\t\tvalueType,\n\t\t...normalizeParams(params)\n\t});\n}\nconst ZodMiniSet = /* @__PURE__ */ $constructor(\"ZodMiniSet\", (inst, def) => {\n\t$ZodSet.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction set(valueType, params) {\n\treturn new ZodMiniSet({\n\t\ttype: \"set\",\n\t\tvalueType,\n\t\t...normalizeParams(params)\n\t});\n}\nconst ZodMiniLiteral = /* @__PURE__ */ $constructor(\"ZodMiniLiteral\", (inst, def) => {\n\t$ZodLiteral.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction literal(value, params) {\n\treturn new ZodMiniLiteral({\n\t\ttype: \"literal\",\n\t\tvalues: Array.isArray(value) ? value : [value],\n\t\t...normalizeParams(params)\n\t});\n}\nconst ZodMiniOptional = /* @__PURE__ */ $constructor(\"ZodMiniOptional\", (inst, def) => {\n\t$ZodOptional.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction optional(innerType) {\n\treturn new ZodMiniOptional({\n\t\ttype: \"optional\",\n\t\tinnerType\n\t});\n}\nconst ZodMiniLazy = /* @__PURE__ */ $constructor(\"ZodMiniLazy\", (inst, def) => {\n\t$ZodLazy.init(inst, def);\n\tZodMiniType.init(inst, def);\n});\nfunction _lazy(getter) {\n\treturn new ZodMiniLazy({\n\t\ttype: \"lazy\",\n\t\tgetter\n\t});\n}\n\n//#endregion\n//#region src/import.ts\nconst importSchema = object({\n\t__cc_import: literal(true),\n\tpath: string(),\n\tname: optional(string())\n});\nfunction isImport(value) {\n\treturn value && value.__cc_import;\n}\nfunction createDefaultImport(path$1) {\n\treturn {\n\t\t__cc_import: true,\n\t\tpath: path$1\n\t};\n}\nfunction createNamedImport(name, path$1) {\n\treturn {\n\t\t__cc_import: true,\n\t\tpath: path$1,\n\t\tname\n\t};\n}\n\n//#endregion\n//#region src/serializer.ts\nconst literalSchema = union([\n\tstring(),\n\tnumber(),\n\tboolean(),\n\t_null(),\n\t_undefined(),\n\tdate(),\n\tmap(unknown(), unknown()),\n\tset(unknown()),\n\tbigint(),\n\timportSchema\n]);\nconst schema = _lazy(() => union([\n\tliteralSchema,\n\tarray(schema),\n\trecord(string(), schema)\n]));\nconst extension = \"js\";\nconst serializableSchema = record(string(), schema);\nfunction createImport(imp, variableName) {\n\treturn `import ${imp.name ? `{ ${imp.name} as ${variableName} }` : variableName} from \"${imp.path}\";\\n`;\n}\nfunction serialize(value) {\n\tlet serializedValue = \"\";\n\tlet counter = 0;\n\tfunction handleImports(item) {\n\t\tif (item instanceof Object) Object.entries(item).forEach(([key, value$1]) => {\n\t\t\tif (isImport(value$1)) {\n\t\t\t\tcounter++;\n\t\t\t\tconst variableName = `__v_${counter}`;\n\t\t\t\tserializedValue += createImport(value$1, variableName);\n\t\t\t\titem[key] = variableName;\n\t\t\t} else if (value$1 instanceof Object) handleImports(value$1);\n\t\t});\n\t}\n\tvalue.forEach(handleImports);\n\tserializedValue += \"\\n\";\n\tconst js = serializeJs(value, {\n\t\tspace: 2,\n\t\tunsafe: true,\n\t\tignoreFunction: true\n\t}).replace(/\"__v_(\\d+)\"/g, (_, index) => {\n\t\treturn `__v_${index}`;\n\t});\n\tserializedValue += \"export default \" + js;\n\treturn serializedValue;\n}\n\n//#endregion\n//#region src/transformer.ts\nvar TransformError = class extends Error {\n\ttype;\n\tconstructor(type, message) {\n\t\tsuper(message);\n\t\tthis.type = type;\n\t}\n};\nfunction isSkippedSignal(signal) {\n\treturn signal[skippedSymbol] === true;\n}\nfunction createPath(path$1, ext) {\n\tlet p = path$1.slice(0, -ext.length);\n\tif (p.endsWith(\"/index\")) p = p.slice(0, -6);\n\treturn p;\n}\nfunction isContentDefined(value) {\n\treturn value !== null && typeof value === \"object\" && \"content\" in value;\n}\nfunction createTransformer(emitter, cacheManager) {\n\tconst deprecatedWarnings = /* @__PURE__ */ new Set();\n\tfunction warnImplicitContentProperty(collection) {\n\t\tconst key = `implicitContentProperty:${collection.name}`;\n\t\tif (deprecatedWarnings.has(key)) return;\n\t\tdeprecatedWarnings.add(key);\n\t\tdeprecated(\"implicitContentProperty\");\n\t}\n\tasync function parseFile(collection, file) {\n\t\tconst { data, path: path$1 } = file;\n\t\tconst parsedData = await collection.schema[\"~standard\"].validate(data);\n\t\tif (parsedData.issues) {\n\t\t\temitter.emit(\"transformer:validation-error\", {\n\t\t\t\tcollection,\n\t\t\t\tfile,\n\t\t\t\terror: new TransformError(\"Validation\", parsedData.issues.map((issue) => issue.message).join(\", \"))\n\t\t\t});\n\t\t\treturn null;\n\t\t}\n\t\tlet values = parsedData.value;\n\t\tif (getParser(collection.parser).hasContent && !isContentDefined(values)) {\n\t\t\twarnImplicitContentProperty(collection);\n\t\t\tif (typeof data.content !== \"string\") {\n\t\t\t\temitter.emit(\"transformer:validation-error\", {\n\t\t\t\t\tcollection,\n\t\t\t\t\tfile,\n\t\t\t\t\terror: new TransformError(\"Validation\", `The content property is not a string`)\n\t\t\t\t});\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tvalues = {\n\t\t\t\t...values,\n\t\t\t\tcontent: data.content\n\t\t\t};\n\t\t}\n\t\tconst ext = extname(path$1);\n\t\tlet extension$1 = ext;\n\t\tif (extension$1.startsWith(\".\")) extension$1 = extension$1.slice(1);\n\t\treturn { document: {\n\t\t\t...values,\n\t\t\t_meta: {\n\t\t\t\tfilePath: path$1,\n\t\t\t\tfileName: basename(path$1),\n\t\t\t\tdirectory: dirname(path$1),\n\t\t\t\textension: extension$1,\n\t\t\t\tpath: createPath(path$1, ext)\n\t\t\t}\n\t\t} };\n\t}\n\tasync function parseCollection(collection) {\n\t\tconst promises = collection.files.map((file) => parseFile(collection, file));\n\t\treturn {\n\t\t\t...collection,\n\t\t\tdocuments: (await Promise.all(promises)).filter(isDefined)\n\t\t};\n\t}\n\tfunction createContext(collections, collection, cache) {\n\t\treturn {\n\t\t\tdocuments: (collection$1) => {\n\t\t\t\tconst resolved = collections.find((c) => c.name === collection$1.name);\n\t\t\t\tif (!resolved) throw new TransformError(\"Configuration\", `Collection ${collection$1.name} not found, do you have registered it in your configuration?`);\n\t\t\t\treturn resolved.documents.map((doc) => doc.document);\n\t\t\t},\n\t\t\tcollection: {\n\t\t\t\tname: collection.name,\n\t\t\t\tdirectory: collection.directory,\n\t\t\t\tdocuments: async () => {\n\t\t\t\t\treturn collection.documents.map((doc) => doc.document);\n\t\t\t\t}\n\t\t\t},\n\t\t\tcache: cache.cacheFn,\n\t\t\tskip: (reason) => ({\n\t\t\t\t[skippedSymbol]: true,\n\t\t\t\treason\n\t\t\t})\n\t\t};\n\t}\n\tasync function transformDocument(collections, collection, transform, doc) {\n\t\tconst cache = cacheManager.cache(collection.name, doc.document._meta.path);\n\t\tconst context = createContext(collections, collection, cache);\n\t\ttry {\n\t\t\tconst document = await transform(doc.document, context);\n\t\t\tawait cache.tidyUp();\n\t\t\tif (isSkippedSignal(document)) emitter.emit(\"transformer:document-skipped\", {\n\t\t\t\tcollection,\n\t\t\t\tfilePath: join(collection.directory, doc.document._meta.filePath),\n\t\t\t\treason: document.reason\n\t\t\t});\n\t\t\telse return {\n\t\t\t\t...doc,\n\t\t\t\tdocument\n\t\t\t};\n\t\t} catch (error) {\n\t\t\tif (error instanceof TransformError) emitter.emit(\"transformer:error\", {\n\t\t\t\tcollection,\n\t\t\t\terror\n\t\t\t});\n\t\t\telse emitter.emit(\"transformer:error\", {\n\t\t\t\tcollection,\n\t\t\t\terror: new TransformError(\"Transform\", String(error))\n\t\t\t});\n\t\t}\n\t}\n\tasync function transformCollection(collections, collection) {\n\t\tconst transform = collection.transform;\n\t\tif (transform) {\n\t\t\tconst limit = pLimit(os.cpus().length);\n\t\t\tconst docs = collection.documents.map((doc) => limit(() => transformDocument(collections, collection, transform, doc)));\n\t\t\tconst transformed = await Promise.all(docs);\n\t\t\tawait cacheManager.flush();\n\t\t\treturn transformed.filter(isDefined);\n\t\t}\n\t\treturn collection.documents;\n\t}\n\tasync function validateDocuments(collection, documents) {\n\t\tconst docs = [];\n\t\tfor (const doc of documents) {\n\t\t\tlet parsedData = await serializableSchema.safeParseAsync(doc.document);\n\t\t\tif (parsedData.success) docs.push(doc);\n\t\t\telse emitter.emit(\"transformer:result-error\", {\n\t\t\t\tcollection,\n\t\t\t\tdocument: doc.document,\n\t\t\t\terror: new TransformError(\"Result\", parsedData.error.message)\n\t\t\t});\n\t\t}\n\t\treturn docs;\n\t}\n\treturn async (untransformedCollections) => {\n\t\tconst promises = untransformedCollections.map((collection) => parseCollection(collection));\n\t\tconst collections = await Promise.all(promises);\n\t\tfor (const collection of collections) collection.documents = await validateDocuments(collection, await transformCollection(collections, collection));\n\t\treturn collections;\n\t};\n}\n\n//#endregion\n//#region src/writer.ts\nfunction createArrayConstName(name) {\n\treturn \"all\" + pluralize(name.charAt(0).toUpperCase() + name.slice(1));\n}\nasync function createDataFile(directory, collection) {\n\tconst dataPath = path.join(directory, `${createArrayConstName(collection.name)}.${extension}`);\n\tawait fs.writeFile(dataPath, serialize(collection.documents.map((doc) => doc.document)));\n}\nfunction createDataFiles(directory, collections) {\n\treturn Promise.all(collections.map((collection) => createDataFile(directory, collection)));\n}\nasync function createJavaScriptFile(directory, configuration) {\n\tconst collections = configuration.collections.map(({ name }) => createArrayConstName(name));\n\tlet content = `// generated by content-collections at ${/* @__PURE__ */ new Date()}\\n\\n`;\n\tfor (const name of collections) content += `import ${name} from \"./${name}.${extension}\";\\n`;\n\tcontent += \"\\n\";\n\tcontent += \"export { \" + collections.join(\", \") + \" };\\n\";\n\tawait fs.writeFile(path.join(directory, \"index.js\"), content, \"utf-8\");\n}\nfunction createImportPath(directory, target) {\n\tlet importPath = path.posix.join(...path.relative(directory, target).split(path.sep));\n\tif (!importPath.startsWith(\".\")) importPath = \"./\" + importPath;\n\treturn importPath;\n}\nasync function createTypeDefinitionFile(directory, configuration) {\n\tif (!configuration.generateTypes) return;\n\tlet content = `import configuration from \"${createImportPath(directory, configuration.path)}\";\nimport { GetTypeByName } from \"@content-collections/core\";\n`;\n\tconst collections = configuration.collections;\n\tfor (const collection of collections) {\n\t\tcontent += `\\n`;\n\t\tcontent += `export type ${collection.typeName} = GetTypeByName<typeof configuration, \"${collection.name}\">;\\n`;\n\t\tcontent += `export declare const ${createArrayConstName(collection.name)}: Array<${collection.typeName}>;\\n`;\n\t}\n\tcontent += \"\\n\";\n\tcontent += \"export {};\\n\";\n\tawait fs.writeFile(path.join(directory, \"index.d.ts\"), content, \"utf-8\");\n}\nasync function createWriter(directory) {\n\tawait fs.mkdir(directory, { recursive: true });\n\treturn {\n\t\tcreateJavaScriptFile: (configuration) => createJavaScriptFile(directory, configuration),\n\t\tcreateTypeDefinitionFile: (configuration) => createTypeDefinitionFile(directory, configuration),\n\t\tcreateDataFiles: (collections) => createDataFiles(directory, collections)\n\t};\n}\n\n//#endregion\n//#region src/build.ts\nasync function createBuildContext({ emitter, outputDirectory, baseDirectory, configuration }) {\n\tconst collector = createCollector(emitter, baseDirectory);\n\tconst [writer, resolved, cacheManager] = await Promise.all([\n\t\tcreateWriter(outputDirectory),\n\t\tcollector.collect(configuration.collections),\n\t\tcreateCacheManager(baseDirectory, configuration.checksum)\n\t]);\n\treturn {\n\t\tresolved,\n\t\twriter,\n\t\tsynchronizer: createSynchronizer(collector.collectFile, resolved, baseDirectory),\n\t\ttransform: createTransformer(emitter, cacheManager),\n\t\temitter,\n\t\tcacheManager,\n\t\tconfiguration\n\t};\n}\nasync function build$1({ emitter, transform, resolved, writer, configuration }) {\n\tconst startedAt = Date.now();\n\temitter.emit(\"builder:start\", { startedAt });\n\tconst collections = await transform(resolved);\n\tawait Promise.all([\n\t\twriter.createDataFiles(collections),\n\t\twriter.createTypeDefinitionFile(configuration),\n\t\twriter.createJavaScriptFile(configuration)\n\t]);\n\tconst pendingOnSuccess = collections.filter((collection) => Boolean(collection.onSuccess)).map((collection) => collection.onSuccess?.(collection.documents.map((doc) => doc.document)));\n\tawait Promise.all(pendingOnSuccess.filter(isDefined));\n\tconst stats = collections.reduce((acc, collection) => {\n\t\tacc.collections++;\n\t\tacc.documents += collection.documents.length;\n\t\treturn acc;\n\t}, {\n\t\tcollections: 0,\n\t\tdocuments: 0\n\t});\n\temitter.emit(\"builder:end\", {\n\t\tstartedAt,\n\t\tendedAt: Date.now(),\n\t\tstats\n\t});\n}\n\n//#endregion\n//#region src/events.ts\nfunction isEventWithError(event) {\n\treturn typeof event === \"object\" && event !== null && \"error\" in event;\n}\nfunction createEmitter() {\n\tconst emitter = new EventEmitter();\n\tfunction on(key, listener) {\n\t\temitter.on(key, listener);\n\t}\n\tfunction emit(key, event) {\n\t\temitter.emit(key, event);\n\t\tif (isEventWithError(event)) emitter.emit(\"_error\", {\n\t\t\t...event,\n\t\t\t_event: key\n\t\t});\n\t\temitter.emit(\"_all\", {\n\t\t\t...event,\n\t\t\t_event: key\n\t\t});\n\t}\n\treturn {\n\t\ton,\n\t\temit\n\t};\n}\n\n//#endregion\n//#region src/watcher.ts\nasync function createWatcher(emitter, baseDirectory, configuration, sync) {\n\tconst paths = removeChildPaths([...configuration.collections.map((collection) => path.join(baseDirectory, collection.directory)).map((p) => resolve(p)), ...configuration.inputPaths.map((p) => dirname(p))]);\n\tconst watcher = chokidar.watch(paths, {\n\t\tignored: [/(^|[\\/\\\\])\\../, /(^|[\\/\\\\])node_modules([\\/\\\\]|$)/],\n\t\tpersistent: true,\n\t\tignoreInitial: true\n\t});\n\tconst handleEvent = async (modification, filePath) => {\n\t\ttry {\n\t\t\tawait sync(modification, filePath);\n\t\t} catch (error) {\n\t\t\temitter.emit(\"watcher:subscribe-error\", {\n\t\t\t\tpaths,\n\t\t\t\terror: toError(error)\n\t\t\t});\n\t\t}\n\t};\n\twatcher.on(\"add\", (filePath) => handleEvent(\"create\", filePath));\n\twatcher.on(\"change\", (filePath) => handleEvent(\"update\", filePath));\n\twatcher.on(\"unlink\", (filePath) => handleEvent(\"delete\", filePath));\n\twatcher.on(\"error\", (error) => {\n\t\temitter.emit(\"watcher:subscribe-error\", {\n\t\t\tpaths,\n\t\t\terror: toError(error)\n\t\t});\n\t});\n\tawait new Promise((resolve$1, reject) => {\n\t\twatcher.on(\"ready\", () => {\n\t\t\temitter.emit(\"watcher:subscribed\", { paths });\n\t\t\tresolve$1();\n\t\t});\n\t\twatcher.on(\"error\", reject);\n\t});\n\treturn { unsubscribe: async () => {\n\t\tawait watcher.close();\n\t\temitter.emit(\"watcher:unsubscribed\", { paths });\n\t} };\n}\n\n//#endregion\n//#region src/builder.ts\nfunction resolveOutputDir(baseDirectory, options) {\n\tif (options.outputDir) return options.outputDir;\n\treturn path.join(baseDirectory, \".content-collections\", \"generated\");\n}\nvar ConfigurationReloadError = class extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t}\n};\nasync function createBuilder(configurationPath, options = { configName: defaultConfigName }, emitter = createEmitter()) {\n\tconst readConfiguration = createConfigurationReader();\n\tconst baseDirectory = path.dirname(configurationPath);\n\treturn createInternalBuilder(await readConfiguration(configurationPath, options), baseDirectory, options, emitter);\n}\nasync function createInternalBuilder(initialConfiguration, baseDirectory, options, emitter) {\n\tconst readConfiguration = createConfigurationReader();\n\tconst configurationPath = initialConfiguration.path;\n\tconst outputDirectory = resolveOutputDir(baseDirectory, options);\n\temitter.emit(\"builder:created\", {\n\t\tcreatedAt: Date.now(),\n\t\tconfigurationPath,\n\t\toutputDirectory\n\t});\n\tlet configuration = initialConfiguration;\n\tlet watcher = null;\n\tlet context = await createBuildContext({\n\t\temitter,\n\t\tbaseDirectory,\n\t\toutputDirectory,\n\t\tconfiguration\n\t});\n\tasync function sync(modification, filePath) {\n\t\tif (configuration.inputPaths.includes(filePath)) {\n\t\t\tif (await onConfigurationChange()) {\n\t\t\t\temitter.emit(\"watcher:config-changed\", {\n\t\t\t\t\tfilePath,\n\t\t\t\t\tmodification\n\t\t\t\t});\n\t\t\t\tawait build$1(context);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (await onFileChange(modification, filePath)) {\n\t\t\temitter.emit(\"watcher:file-changed\", {\n\t\t\t\tfilePath,\n\t\t\t\tmodification\n\t\t\t});\n\t\t\tawait build$1(context);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\tasync function onConfigurationChange() {\n\t\ttry {\n\t\t\tconfiguration = await readConfiguration(configurationPath, options);\n\t\t} catch (error) {\n\t\t\temitter.emit(\"watcher:config-reload-error\", {\n\t\t\t\terror: new ConfigurationReloadError(`Failed to reload configuration: ${error}`),\n\t\t\t\tconfigurationPath\n\t\t\t});\n\t\t\treturn false;\n\t\t}\n\t\tif (watcher) await watcher.unsubscribe();\n\t\tcontext = await createBuildContext({\n\t\t\temitter,\n\t\t\tbaseDirectory,\n\t\t\toutputDirectory,\n\t\t\tconfiguration\n\t\t});\n\t\tif (watcher) watcher = await createWatcher(emitter, baseDirectory, configuration, sync);\n\t\treturn true;\n\t}\n\tasync function onFileChange(modification, filePath) {\n\t\tconst { synchronizer } = context;\n\t\tif (modification === \"delete\") return synchronizer.deleted(filePath);\n\t\telse return synchronizer.changed(filePath);\n\t}\n\tasync function watch() {\n\t\twatcher = await createWatcher(emitter, baseDirectory, configuration, sync);\n\t\treturn { unsubscribe: async () => {\n\t\t\tif (watcher) await watcher.unsubscribe();\n\t\t} };\n\t}\n\treturn {\n\t\tbuild: () => build$1(context),\n\t\tsync,\n\t\twatch,\n\t\ton: emitter.on\n\t};\n}\n\n//#endregion\nexport {\n CollectError,\n ConfigurationError,\n ConfigurationReloadError,\n TransformError,\n createConfigurationReader,\n createBuilder,\n createDefaultImport,\n createBuildContext,\n createInternalBuilder,\n createNamedImport,\n defineCollection,\n defineConfig,\n defineParser,\n build$1 as build,\n serialize,\n skippedSymbol,\n suppressDeprecatedWarnings\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,UAAU,UAAU,OAAO,KAAK;AACxC,QAAO,WAAW,SAAS,CAAC,OAAO,SAAS,CAAC,OAAO,KAAK,UAAU,MAAM,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,MAAM;;AAErG,eAAe,qBAAqB,WAAW;CAC9C,MAAM,iBAAiB,KAAK,KAAK,WAAW,wBAAwB,QAAQ;AAC5E,KAAI,CAAC,WAAW,eAAe,CAAE,OAAM,MAAM,gBAAgB,EAAE,WAAW,MAAM,CAAC;AACjF,QAAO;;AAER,SAAS,SAAS,OAAO;AACxB,QAAO,MAAM,QAAQ,eAAe,IAAI,CAAC,aAAa;;AAEvD,eAAe,YAAY,aAAa;AACvC,KAAI,WAAW,YAAY,CAAE,KAAI;AAChC,SAAO,KAAK,MAAM,MAAM,SAAS,aAAa,QAAQ,CAAC;UAC/C,GAAG;AACX,UAAQ,MAAM,iEAAiE;;AAEhF,QAAO,EAAE;;AAEV,eAAe,mBAAmB,eAAe,gBAAgB;CAChE,MAAM,iBAAiB,MAAM,qBAAqB,cAAc;CAChE,MAAM,cAAc,KAAK,gBAAgB,eAAe;CACxD,MAAM,UAAU,MAAM,YAAY,YAAY;CAC9C,eAAe,QAAQ;AACtB,QAAM,UAAU,aAAa,KAAK,UAAU,QAAQ,CAAC;;CAEtD,SAAS,MAAM,YAAY,MAAM;EAChC,MAAM,YAAY,KA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AAY,gBAAgB,SAAS,cAAc;CACzD,MAAM,CAAC,QAAQ,UAAU,gBAAgB,MAAM,QAAQ,IAAI;EAC1D,aAAa,gBAAgB;EAC7B,UAAU,QAAQ,cAAc,YAAY;EAC5C,mBAAmB,eAAe,cAAc,SAAS;EACzD,CAAC;AACF,QAAO;EACN;EACA;EACA,cAAc,mBAAmB,UAAU,aAAa,UAAU,cAAc;EAChF,WAAW,kBAAkB,SAAS,aAAa;EACnD;EACA;EACA;EACA;;AAEF,eAAe,QAAQ,EAAE,SAAS,WAAW,UAAU,QAAQ,iBAAiB;CAC/E,MAAM,YAAY,KAAK,KAAK;AAC5B,SAAQ,KAAK,iBAAiB,EAAE,WAAW,CAAC;CAC5C,MAAM,cAAc,MAAM,UAAU,SAAS;AAC7C,OAAM,QAAQ,IAAI;EACjB,OAAO,gBAAgB,YAAY;EACnC,OAAO,yBAAyB,cAAc;EAC9C,OAAO,qBAAqB,cAAc;EAC1C,CAAC;CACF,MAAM,mBAAmB,YAAY,QAAQ,eAAe,QAAQ,WAAW,UAAU,CAAC,CAAC,KAAK,eAAe,WAAW,YAAY,WAAW,UAAU,KAAK,QAAQ,IAAI,SAAS,CAAC,CAAC;AACvL,OAAM,QAAQ,IAAI,iBAAiB,OAAO,UAAU,CAAC;CACrD,MAAM,QAAQ,YAAY,QAAQ,KAAK,eAAe;AACrD,MAAI;AACJ,MAAI,aAAa,WAAW,UAAU;AACtC,SAAO;IACL;EACF,aAAa;EACb,WAAW;EACX,CAAC;AACF,SAAQ,KAAK,eAAe;EAC3B;EACA,SAAS,KAAK,KAAK;EACnB;EACA,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js"],"sourcesContent":["const UPPERCASE = /[\\p{Lu}]/u;\nconst LOWERCASE = /[\\p{Ll}]/u;\nconst LEADING_CAPITAL = /^[\\p{Lu}](?![\\p{Lu}])/gu;\nconst IDENTIFIER = /([\\p{Alpha}\\p{N}_]|$)/u;\nconst SEPARATORS = /[_.\\- ]+/;\n\nconst LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);\nconst SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');\nconst NUMBERS_AND_IDENTIFIER = new RegExp('\\\\d+' + IDENTIFIER.source, 'gu');\n\nconst preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase) => {\n\tlet isLastCharLower = false;\n\tlet isLastCharUpper = false;\n\tlet isLastLastCharUpper = false;\n\tlet isLastLastCharPreserved = false;\n\n\tfor (let index = 0; index < string.length; index++) {\n\t\tconst character = string[index];\n\t\tisLastLastCharPreserved = index > 2 ? string[index - 3] === '-' : true;\n\n\t\tif (isLastCharLower && UPPERCASE.test(character)) {\n\t\t\tstring = string.slice(0, index) + '-' + string.slice(index);\n\t\t\tisLastCharLower = false;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = true;\n\t\t\tindex++;\n\t\t} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase)) {\n\t\t\tstring = string.slice(0, index - 1) + '-' + string.slice(index - 1);\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = false;\n\t\t\tisLastCharLower = true;\n\t\t} else {\n\t\t\tisLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;\n\t\t}\n\t}\n\n\treturn string;\n};\n\nconst preserveConsecutiveUppercase = (input, toLowerCase) => {\n\tLEADING_CAPITAL.lastIndex = 0;\n\n\treturn input.replaceAll(LEADING_CAPITAL, match => toLowerCase(match));\n};\n\nconst postProcess = (input, toUpperCase) => {\n\tSEPARATORS_AND_IDENTIFIER.lastIndex = 0;\n\tNUMBERS_AND_IDENTIFIER.lastIndex = 0;\n\n\treturn input\n\t\t.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ['_', '-'].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match))\n\t\t.replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));\n};\n\nexport default function camelCase(input, options) {\n\tif (!(typeof input === 'string' || Array.isArray(input))) {\n\t\tthrow new TypeError('Expected the input to be `string | string[]`');\n\t}\n\n\toptions = {\n\t\tpascalCase: false,\n\t\tpreserveConsecutiveUppercase: false,\n\t\t...options,\n\t};\n\n\tif (Array.isArray(input)) {\n\t\tinput = input.map(x => x.trim())\n\t\t\t.filter(x => x.length)\n\t\t\t.join('-');\n\t} else {\n\t\tinput = input.trim();\n\t}\n\n\tif (input.length === 0) {\n\t\treturn '';\n\t}\n\n\tconst toLowerCase = options.locale === false\n\t\t? string => string.toLowerCase()\n\t\t: string => string.toLocaleLowerCase(options.locale);\n\n\tconst toUpperCase = options.locale === false\n\t\t? string => string.toUpperCase()\n\t\t: string => string.toLocaleUpperCase(options.locale);\n\n\tif (input.length === 1) {\n\t\tif (SEPARATORS.test(input)) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn options.pascalCase ? toUpperCase(input) : toLowerCase(input);\n\t}\n\n\tconst hasUpperCase = input !== toLowerCase(input);\n\n\tif (hasUpperCase) {\n\t\tinput = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);\n\t}\n\n\tinput = input.replace(LEADING_SEPARATORS, '');\n\tinput = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);\n\n\tif (options.pascalCase) {\n\t\tinput = toUpperCase(input.charAt(0)) + input.slice(1);\n\t}\n\n\treturn postProcess(input, toUpperCase);\n}\n"],"x_google_ignoreList":[0],"mappings":";AAGA,MAAM,aAAa;AACnB,MAAM,aAAa;AAEnB,MAAM,qCAAqB,IAAI,OAAO,MAAM,WAAW,OAAO;AAC9D,MAAM,4BAA4B,IAAI,OAAO,WAAW,SAAS,WAAW,QAAQ,KAAK;AACzF,MAAM,yBAAyB,IAAI,OAAO,SAAS,WAAW,QAAQ,KAAK"}