@dbml/core 10.3.0 → 10.4.0-alpha.0

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 (601) hide show
  1. package/lib/export/DbmlExporter.cjs +2 -2
  2. package/lib/export/DbmlExporter.mjs +7 -5
  3. package/lib/export/MysqlExporter.cjs +1 -1
  4. package/lib/export/MysqlExporter.mjs +4 -4
  5. package/lib/export/OracleExporter.cjs +1 -1
  6. package/lib/export/OracleExporter.mjs +5 -5
  7. package/lib/export/PostgresExporter.cjs +1 -1
  8. package/lib/export/PostgresExporter.mjs +4 -4
  9. package/lib/export/SqlServerExporter.cjs +1 -1
  10. package/lib/export/SqlServerExporter.mjs +4 -4
  11. package/lib/model_structure/database.cjs +1 -1
  12. package/lib/model_structure/database.mjs +3 -3
  13. package/lib/model_structure/dep.cjs +1 -1
  14. package/lib/model_structure/dep.mjs +2 -2
  15. package/lib/model_structure/enum.cjs +1 -1
  16. package/lib/model_structure/enum.mjs +2 -2
  17. package/lib/model_structure/enumValue.cjs +1 -1
  18. package/lib/model_structure/enumValue.mjs +2 -2
  19. package/lib/model_structure/field.cjs +1 -1
  20. package/lib/model_structure/field.mjs +2 -2
  21. package/lib/model_structure/ref.cjs +1 -1
  22. package/lib/model_structure/ref.mjs +3 -2
  23. package/lib/model_structure/schema.cjs +1 -1
  24. package/lib/model_structure/schema.mjs +2 -2
  25. package/lib/model_structure/table.cjs +1 -1
  26. package/lib/model_structure/table.mjs +3 -3
  27. package/lib/model_structure/tableGroup.cjs +1 -1
  28. package/lib/model_structure/tableGroup.mjs +2 -2
  29. package/lib/model_structure/tablePartial.cjs +1 -1
  30. package/lib/model_structure/tablePartial.mjs +2 -2
  31. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.cjs +1 -0
  32. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_DataView.mjs +2 -2
  33. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.cjs +1 -0
  34. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Hash.mjs +2 -2
  35. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.cjs +1 -0
  36. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_ListCache.mjs +2 -2
  37. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.cjs +1 -0
  38. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Map.mjs +2 -2
  39. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.cjs +1 -0
  40. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_MapCache.mjs +2 -2
  41. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.cjs +1 -0
  42. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Promise.mjs +2 -2
  43. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.cjs +1 -0
  44. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Set.mjs +2 -2
  45. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.cjs +1 -0
  46. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_SetCache.mjs +2 -2
  47. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.cjs +1 -0
  48. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Stack.mjs +2 -2
  49. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.cjs +1 -0
  50. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Symbol.mjs +2 -2
  51. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.cjs +1 -0
  52. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Uint8Array.mjs +2 -2
  53. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.cjs +1 -0
  54. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_WeakMap.mjs +2 -2
  55. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayAggregator.cjs +1 -0
  56. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayAggregator.mjs +2 -2
  57. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.cjs +1 -0
  58. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayEach.mjs +2 -2
  59. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.cjs +1 -0
  60. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayFilter.mjs +2 -2
  61. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.cjs +1 -0
  62. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayLikeKeys.mjs +2 -2
  63. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.cjs +1 -0
  64. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayMap.mjs +2 -2
  65. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.cjs +1 -0
  66. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayPush.mjs +2 -2
  67. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.cjs +1 -0
  68. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayReduce.mjs +2 -2
  69. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.cjs +1 -0
  70. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arraySome.mjs +2 -2
  71. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.cjs +1 -0
  72. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.mjs +9 -0
  73. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.cjs +1 -0
  74. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_assocIndexOf.mjs +2 -2
  75. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAggregator.cjs +1 -0
  76. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseAggregator.mjs +2 -2
  77. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.cjs +1 -0
  78. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseAssignValue.mjs +2 -2
  79. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.cjs +1 -0
  80. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseEach.mjs +2 -2
  81. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.cjs +1 -0
  82. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseFlatten.mjs +2 -2
  83. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.cjs +1 -0
  84. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseFor.mjs +2 -2
  85. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.cjs +1 -0
  86. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseForOwn.mjs +2 -2
  87. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.cjs +1 -0
  88. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseGet.mjs +2 -2
  89. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.cjs +1 -0
  90. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseGetAllKeys.mjs +2 -2
  91. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.cjs +1 -0
  92. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseGetTag.mjs +2 -2
  93. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.cjs +1 -0
  94. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.mjs +9 -0
  95. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.cjs +1 -0
  96. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsArguments.mjs +2 -2
  97. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.cjs +1 -0
  98. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsEqual.mjs +2 -2
  99. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.cjs +1 -0
  100. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsEqualDeep.mjs +2 -2
  101. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.cjs +1 -0
  102. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsMatch.mjs +2 -2
  103. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.cjs +1 -0
  104. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsNative.mjs +2 -2
  105. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.cjs +1 -0
  106. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsTypedArray.mjs +2 -2
  107. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.cjs +1 -0
  108. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIteratee.mjs +2 -2
  109. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.cjs +1 -0
  110. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseKeys.mjs +2 -2
  111. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.cjs +1 -0
  112. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseMatches.mjs +2 -2
  113. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.cjs +1 -0
  114. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseMatchesProperty.mjs +2 -2
  115. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseNth.cjs +1 -0
  116. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseNth.mjs +2 -2
  117. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.cjs +1 -0
  118. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.mjs +11 -0
  119. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.cjs +1 -0
  120. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_basePropertyDeep.mjs +2 -2
  121. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.cjs +1 -0
  122. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseReduce.mjs +2 -2
  123. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.cjs +1 -0
  124. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseSlice.mjs +2 -2
  125. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.cjs +1 -0
  126. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseTimes.mjs +2 -2
  127. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.cjs +1 -0
  128. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseToString.mjs +2 -2
  129. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.cjs +1 -0
  130. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseTrim.mjs +2 -2
  131. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.cjs +1 -0
  132. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.mjs +11 -0
  133. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.cjs +1 -0
  134. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.mjs +9 -0
  135. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castFunction.cjs +1 -0
  136. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_castFunction.mjs +2 -2
  137. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.cjs +1 -0
  138. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_castPath.mjs +2 -2
  139. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castSlice.cjs +1 -0
  140. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_castSlice.mjs +2 -2
  141. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.cjs +1 -0
  142. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_copyArray.mjs +2 -2
  143. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.cjs +1 -0
  144. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_coreJsData.mjs +2 -2
  145. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createAggregator.cjs +1 -0
  146. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_createAggregator.mjs +2 -2
  147. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.cjs +1 -0
  148. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_createBaseEach.mjs +2 -2
  149. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.cjs +1 -0
  150. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_createBaseFor.mjs +2 -2
  151. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCaseFirst.cjs +1 -0
  152. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_createCaseFirst.mjs +2 -2
  153. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.cjs +1 -0
  154. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_defineProperty.mjs +2 -2
  155. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.cjs +1 -0
  156. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_equalArrays.mjs +2 -2
  157. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.cjs +1 -0
  158. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_equalByTag.mjs +2 -2
  159. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.cjs +1 -0
  160. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_equalObjects.mjs +2 -2
  161. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.cjs +1 -0
  162. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_freeGlobal.mjs +2 -2
  163. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.cjs +1 -0
  164. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getAllKeys.mjs +2 -2
  165. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.cjs +1 -0
  166. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getMapData.mjs +2 -2
  167. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.cjs +1 -0
  168. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getMatchData.mjs +2 -2
  169. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.cjs +1 -0
  170. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getNative.mjs +2 -2
  171. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.cjs +1 -0
  172. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getRawTag.mjs +2 -2
  173. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.cjs +1 -0
  174. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getSymbols.mjs +2 -2
  175. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.cjs +1 -0
  176. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getTag.mjs +2 -2
  177. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.cjs +1 -0
  178. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.mjs +9 -0
  179. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.cjs +1 -0
  180. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hasPath.mjs +2 -2
  181. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.cjs +1 -0
  182. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hasUnicode.mjs +2 -2
  183. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.cjs +1 -0
  184. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashClear.mjs +2 -2
  185. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.cjs +1 -0
  186. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashDelete.mjs +2 -2
  187. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.cjs +1 -0
  188. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashGet.mjs +2 -2
  189. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.cjs +1 -0
  190. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashHas.mjs +2 -2
  191. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.cjs +1 -0
  192. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashSet.mjs +2 -2
  193. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.cjs +1 -0
  194. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isFlattenable.mjs +2 -2
  195. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.cjs +1 -0
  196. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isIndex.mjs +2 -2
  197. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.cjs +1 -0
  198. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isKey.mjs +2 -2
  199. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.cjs +1 -0
  200. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isKeyable.mjs +2 -2
  201. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.cjs +1 -0
  202. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isMasked.mjs +2 -2
  203. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.cjs +1 -0
  204. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isPrototype.mjs +2 -2
  205. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.cjs +1 -0
  206. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isStrictComparable.mjs +2 -2
  207. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.cjs +1 -0
  208. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.mjs +9 -0
  209. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.cjs +1 -0
  210. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_listCacheDelete.mjs +2 -2
  211. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.cjs +1 -0
  212. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_listCacheGet.mjs +2 -2
  213. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.cjs +1 -0
  214. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_listCacheHas.mjs +2 -2
  215. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.cjs +1 -0
  216. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_listCacheSet.mjs +2 -2
  217. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.cjs +1 -0
  218. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheClear.mjs +2 -2
  219. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.cjs +1 -0
  220. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheDelete.mjs +2 -2
  221. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.cjs +1 -0
  222. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheGet.mjs +2 -2
  223. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.cjs +1 -0
  224. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheHas.mjs +2 -2
  225. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.cjs +1 -0
  226. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheSet.mjs +2 -2
  227. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.cjs +1 -0
  228. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapToArray.mjs +2 -2
  229. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.cjs +1 -0
  230. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_matchesStrictComparable.mjs +2 -2
  231. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.cjs +1 -0
  232. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_memoizeCapped.mjs +2 -2
  233. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.cjs +1 -0
  234. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_nativeCreate.mjs +2 -2
  235. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.cjs +1 -0
  236. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_nativeKeys.mjs +2 -2
  237. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.cjs +1 -0
  238. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_nodeUtil.mjs +2 -2
  239. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.cjs +1 -0
  240. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.mjs +11 -0
  241. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.cjs +1 -0
  242. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.mjs +11 -0
  243. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.cjs +1 -0
  244. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_root.mjs +2 -2
  245. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.cjs +1 -0
  246. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_setCacheAdd.mjs +2 -2
  247. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.cjs +1 -0
  248. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.mjs +9 -0
  249. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.cjs +1 -0
  250. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_setToArray.mjs +2 -2
  251. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.cjs +1 -0
  252. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stackClear.mjs +2 -2
  253. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.cjs +1 -0
  254. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stackDelete.mjs +2 -2
  255. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.cjs +1 -0
  256. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.mjs +9 -0
  257. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.cjs +1 -0
  258. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.mjs +9 -0
  259. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.cjs +1 -0
  260. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stackSet.mjs +2 -2
  261. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToArray.cjs +1 -0
  262. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stringToArray.mjs +2 -2
  263. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.cjs +1 -0
  264. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stringToPath.mjs +2 -2
  265. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.cjs +1 -0
  266. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_toKey.mjs +2 -2
  267. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.cjs +1 -0
  268. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_toSource.mjs +2 -2
  269. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.cjs +1 -0
  270. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_trimmedEndIndex.mjs +2 -2
  271. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeToArray.cjs +1 -0
  272. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_unicodeToArray.mjs +2 -2
  273. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/capitalize.cjs +1 -0
  274. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/capitalize.mjs +2 -2
  275. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/concat.cjs +1 -0
  276. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/concat.mjs +2 -2
  277. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.cjs +1 -0
  278. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.mjs +9 -0
  279. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/first.cjs +1 -0
  280. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/first.mjs +9 -0
  281. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.cjs +1 -0
  282. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/flatten.mjs +2 -2
  283. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flattenDeep.cjs +1 -0
  284. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/flattenDeep.mjs +2 -2
  285. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flattenDepth.cjs +1 -0
  286. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/flattenDepth.mjs +2 -2
  287. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/forEach.cjs +1 -0
  288. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/forEach.mjs +2 -2
  289. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.cjs +1 -0
  290. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/get.mjs +2 -2
  291. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/groupBy.cjs +1 -0
  292. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/groupBy.mjs +2 -2
  293. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/hasIn.cjs +1 -0
  294. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/hasIn.mjs +2 -2
  295. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/head.cjs +1 -0
  296. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/head.mjs +9 -0
  297. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.cjs +1 -0
  298. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.mjs +9 -0
  299. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.cjs +1 -0
  300. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isArguments.mjs +2 -2
  301. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.cjs +1 -0
  302. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs +8 -0
  303. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.cjs +1 -0
  304. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isArrayLike.mjs +2 -2
  305. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.cjs +1 -0
  306. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isBuffer.mjs +2 -2
  307. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.cjs +1 -0
  308. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isEmpty.mjs +2 -2
  309. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.cjs +1 -0
  310. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isFunction.mjs +2 -2
  311. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.cjs +1 -0
  312. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isLength.mjs +2 -2
  313. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.cjs +1 -0
  314. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.mjs +9 -0
  315. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.cjs +1 -0
  316. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isObject.mjs +2 -2
  317. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.cjs +1 -0
  318. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.mjs +9 -0
  319. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.cjs +1 -0
  320. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isSymbol.mjs +2 -2
  321. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.cjs +1 -0
  322. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isTypedArray.mjs +2 -2
  323. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.cjs +1 -0
  324. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/keys.mjs +2 -2
  325. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.cjs +1 -0
  326. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/last.mjs +2 -2
  327. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/lodash.cjs +1 -0
  328. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/lodash.mjs +2 -2
  329. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.cjs +1 -0
  330. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/memoize.mjs +2 -2
  331. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/nth.cjs +1 -0
  332. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/nth.mjs +2 -2
  333. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/property.cjs +1 -0
  334. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/property.mjs +2 -2
  335. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/reduce.cjs +1 -0
  336. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/reduce.mjs +2 -2
  337. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.cjs +1 -0
  338. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.mjs +9 -0
  339. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.cjs +1 -0
  340. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.mjs +9 -0
  341. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toFinite.cjs +1 -0
  342. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/toFinite.mjs +2 -2
  343. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toInteger.cjs +1 -0
  344. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/toInteger.mjs +2 -2
  345. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.cjs +1 -0
  346. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/toNumber.mjs +2 -2
  347. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.cjs +1 -0
  348. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/toString.mjs +2 -2
  349. package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/upperFirst.cjs +1 -0
  350. package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/upperFirst.mjs +2 -2
  351. package/lib/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.cjs +20 -0
  352. package/lib/{packages/dbml-core → node_modules/.pnpm/lodash@4.18.1}/node_modules/lodash/lodash.mjs +2 -2
  353. package/lib/node_modules/{parsimmon → .pnpm/parsimmon@1.18.1/node_modules/parsimmon}/build/parsimmon.umd.min.cjs +1 -1
  354. package/lib/node_modules/{parsimmon → .pnpm/parsimmon@1.18.1/node_modules/parsimmon}/build/parsimmon.umd.min.mjs +2 -2
  355. package/lib/node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs +1 -0
  356. package/lib/node_modules/{pluralize → .pnpm/pluralize@8.0.0/node_modules/pluralize}/pluralize.mjs +2 -2
  357. package/lib/package.json.cjs +1 -0
  358. package/lib/{packages/dbml-core/package.json.mjs → package.json.mjs} +1 -1
  359. package/lib/parse/ANTLR/ASTGeneration/helpers.cjs +1 -1
  360. package/lib/parse/ANTLR/ASTGeneration/helpers.mjs +2 -2
  361. package/lib/parse/ANTLR/ASTGeneration/mssql/MssqlASTGen.cjs +1 -1
  362. package/lib/parse/ANTLR/ASTGeneration/mssql/MssqlASTGen.mjs +6 -6
  363. package/lib/parse/ANTLR/ASTGeneration/mysql/MySQLASTGen.cjs +1 -1
  364. package/lib/parse/ANTLR/ASTGeneration/mysql/MySQLASTGen.mjs +4 -4
  365. package/lib/parse/ANTLR/ASTGeneration/oraclesql/OracleSQLASTGen.cjs +1 -1
  366. package/lib/parse/ANTLR/ASTGeneration/oraclesql/OracleSQLASTGen.mjs +3 -3
  367. package/lib/parse/ANTLR/ASTGeneration/postgres/PostgresASTGen.cjs +1 -1
  368. package/lib/parse/ANTLR/ASTGeneration/postgres/PostgresASTGen.mjs +4 -4
  369. package/lib/parse/ANTLR/ASTGeneration/snowflake/SnowflakeASTGen.cjs +1 -1
  370. package/lib/parse/ANTLR/ASTGeneration/snowflake/SnowflakeASTGen.mjs +4 -4
  371. package/lib/parse/deprecated/dbmlParser.cjs +1 -1
  372. package/lib/parse/deprecated/dbmlParser.mjs +2 -2
  373. package/lib/parse/deprecated/mssql/base_parsers.cjs +1 -1
  374. package/lib/parse/deprecated/mssql/base_parsers.mjs +1 -1
  375. package/lib/parse/deprecated/mssql/column_definition/actions.cjs +1 -1
  376. package/lib/parse/deprecated/mssql/column_definition/actions.mjs +2 -2
  377. package/lib/parse/deprecated/mssql/column_definition/index.cjs +1 -1
  378. package/lib/parse/deprecated/mssql/column_definition/index.mjs +1 -1
  379. package/lib/parse/deprecated/mssql/constraint_definition/index.cjs +1 -1
  380. package/lib/parse/deprecated/mssql/constraint_definition/index.mjs +1 -1
  381. package/lib/parse/deprecated/mssql/expression.cjs +1 -1
  382. package/lib/parse/deprecated/mssql/expression.mjs +3 -3
  383. package/lib/parse/deprecated/mssql/fk_definition/index.cjs +1 -1
  384. package/lib/parse/deprecated/mssql/fk_definition/index.mjs +1 -1
  385. package/lib/parse/deprecated/mssql/index_definition/index.cjs +1 -1
  386. package/lib/parse/deprecated/mssql/index_definition/index.mjs +1 -1
  387. package/lib/parse/deprecated/mssql/keyword_utils.cjs +1 -1
  388. package/lib/parse/deprecated/mssql/keyword_utils.mjs +1 -1
  389. package/lib/parse/deprecated/mssql/statements/actions.cjs +1 -1
  390. package/lib/parse/deprecated/mssql/statements/actions.mjs +2 -2
  391. package/lib/parse/deprecated/mssql/statements/index.cjs +1 -1
  392. package/lib/parse/deprecated/mssql/statements/index.mjs +1 -1
  393. package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/add/index.cjs +1 -1
  394. package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/add/index.mjs +1 -1
  395. package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/index.cjs +1 -1
  396. package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/index.mjs +1 -1
  397. package/lib/parse/deprecated/mssql/statements/statement_types/comments/index.cjs +1 -1
  398. package/lib/parse/deprecated/mssql/statements/statement_types/comments/index.mjs +1 -1
  399. package/lib/parse/deprecated/mssql/statements/statement_types/create_index/index.cjs +1 -1
  400. package/lib/parse/deprecated/mssql/statements/statement_types/create_index/index.mjs +1 -1
  401. package/lib/parse/deprecated/mssql/statements/statement_types/create_table/index.cjs +1 -1
  402. package/lib/parse/deprecated/mssql/statements/statement_types/create_table/index.mjs +1 -1
  403. package/lib/parse/deprecated/mssql/utils.cjs +1 -1
  404. package/lib/parse/deprecated/mssql/utils.mjs +3 -3
  405. package/lib/parse/deprecated/mssql/whitespaces.cjs +1 -1
  406. package/lib/parse/deprecated/mssql/whitespaces.mjs +1 -1
  407. package/lib/parse/deprecated/mysqlParser.cjs +1 -1
  408. package/lib/parse/deprecated/mysqlParser.mjs +2 -2
  409. package/lib/parse/deprecated/postgresParser.cjs +1 -1
  410. package/lib/parse/deprecated/postgresParser.mjs +2 -2
  411. package/lib/parse/deprecated/schemarbParser.cjs +1 -1
  412. package/lib/parse/deprecated/schemarbParser.mjs +2 -2
  413. package/lib/utils/version.cjs +1 -1
  414. package/lib/utils/version.mjs +1 -1
  415. package/package.json +3 -3
  416. package/types/model_structure/ref.d.ts +7 -1
  417. package/types/tsconfig.tsbuildinfo +1 -0
  418. package/lib/node_modules/lodash-es/_DataView.cjs +0 -1
  419. package/lib/node_modules/lodash-es/_Hash.cjs +0 -1
  420. package/lib/node_modules/lodash-es/_ListCache.cjs +0 -1
  421. package/lib/node_modules/lodash-es/_Map.cjs +0 -1
  422. package/lib/node_modules/lodash-es/_MapCache.cjs +0 -1
  423. package/lib/node_modules/lodash-es/_Promise.cjs +0 -1
  424. package/lib/node_modules/lodash-es/_Set.cjs +0 -1
  425. package/lib/node_modules/lodash-es/_SetCache.cjs +0 -1
  426. package/lib/node_modules/lodash-es/_Stack.cjs +0 -1
  427. package/lib/node_modules/lodash-es/_Symbol.cjs +0 -1
  428. package/lib/node_modules/lodash-es/_Uint8Array.cjs +0 -1
  429. package/lib/node_modules/lodash-es/_WeakMap.cjs +0 -1
  430. package/lib/node_modules/lodash-es/_arrayAggregator.cjs +0 -1
  431. package/lib/node_modules/lodash-es/_arrayEach.cjs +0 -1
  432. package/lib/node_modules/lodash-es/_arrayFilter.cjs +0 -1
  433. package/lib/node_modules/lodash-es/_arrayLikeKeys.cjs +0 -1
  434. package/lib/node_modules/lodash-es/_arrayMap.cjs +0 -1
  435. package/lib/node_modules/lodash-es/_arrayPush.cjs +0 -1
  436. package/lib/node_modules/lodash-es/_arrayReduce.cjs +0 -1
  437. package/lib/node_modules/lodash-es/_arraySome.cjs +0 -1
  438. package/lib/node_modules/lodash-es/_asciiToArray.cjs +0 -1
  439. package/lib/node_modules/lodash-es/_asciiToArray.mjs +0 -9
  440. package/lib/node_modules/lodash-es/_assocIndexOf.cjs +0 -1
  441. package/lib/node_modules/lodash-es/_baseAggregator.cjs +0 -1
  442. package/lib/node_modules/lodash-es/_baseAssignValue.cjs +0 -1
  443. package/lib/node_modules/lodash-es/_baseEach.cjs +0 -1
  444. package/lib/node_modules/lodash-es/_baseFlatten.cjs +0 -1
  445. package/lib/node_modules/lodash-es/_baseFor.cjs +0 -1
  446. package/lib/node_modules/lodash-es/_baseForOwn.cjs +0 -1
  447. package/lib/node_modules/lodash-es/_baseGet.cjs +0 -1
  448. package/lib/node_modules/lodash-es/_baseGetAllKeys.cjs +0 -1
  449. package/lib/node_modules/lodash-es/_baseGetTag.cjs +0 -1
  450. package/lib/node_modules/lodash-es/_baseHasIn.cjs +0 -1
  451. package/lib/node_modules/lodash-es/_baseHasIn.mjs +0 -9
  452. package/lib/node_modules/lodash-es/_baseIsArguments.cjs +0 -1
  453. package/lib/node_modules/lodash-es/_baseIsEqual.cjs +0 -1
  454. package/lib/node_modules/lodash-es/_baseIsEqualDeep.cjs +0 -1
  455. package/lib/node_modules/lodash-es/_baseIsMatch.cjs +0 -1
  456. package/lib/node_modules/lodash-es/_baseIsNative.cjs +0 -1
  457. package/lib/node_modules/lodash-es/_baseIsTypedArray.cjs +0 -1
  458. package/lib/node_modules/lodash-es/_baseIteratee.cjs +0 -1
  459. package/lib/node_modules/lodash-es/_baseKeys.cjs +0 -1
  460. package/lib/node_modules/lodash-es/_baseMatches.cjs +0 -1
  461. package/lib/node_modules/lodash-es/_baseMatchesProperty.cjs +0 -1
  462. package/lib/node_modules/lodash-es/_baseNth.cjs +0 -1
  463. package/lib/node_modules/lodash-es/_baseProperty.cjs +0 -1
  464. package/lib/node_modules/lodash-es/_baseProperty.mjs +0 -11
  465. package/lib/node_modules/lodash-es/_basePropertyDeep.cjs +0 -1
  466. package/lib/node_modules/lodash-es/_baseReduce.cjs +0 -1
  467. package/lib/node_modules/lodash-es/_baseSlice.cjs +0 -1
  468. package/lib/node_modules/lodash-es/_baseTimes.cjs +0 -1
  469. package/lib/node_modules/lodash-es/_baseToString.cjs +0 -1
  470. package/lib/node_modules/lodash-es/_baseTrim.cjs +0 -1
  471. package/lib/node_modules/lodash-es/_baseUnary.cjs +0 -1
  472. package/lib/node_modules/lodash-es/_baseUnary.mjs +0 -11
  473. package/lib/node_modules/lodash-es/_cacheHas.cjs +0 -1
  474. package/lib/node_modules/lodash-es/_cacheHas.mjs +0 -9
  475. package/lib/node_modules/lodash-es/_castFunction.cjs +0 -1
  476. package/lib/node_modules/lodash-es/_castPath.cjs +0 -1
  477. package/lib/node_modules/lodash-es/_castSlice.cjs +0 -1
  478. package/lib/node_modules/lodash-es/_copyArray.cjs +0 -1
  479. package/lib/node_modules/lodash-es/_coreJsData.cjs +0 -1
  480. package/lib/node_modules/lodash-es/_createAggregator.cjs +0 -1
  481. package/lib/node_modules/lodash-es/_createBaseEach.cjs +0 -1
  482. package/lib/node_modules/lodash-es/_createBaseFor.cjs +0 -1
  483. package/lib/node_modules/lodash-es/_createCaseFirst.cjs +0 -1
  484. package/lib/node_modules/lodash-es/_defineProperty.cjs +0 -1
  485. package/lib/node_modules/lodash-es/_equalArrays.cjs +0 -1
  486. package/lib/node_modules/lodash-es/_equalByTag.cjs +0 -1
  487. package/lib/node_modules/lodash-es/_equalObjects.cjs +0 -1
  488. package/lib/node_modules/lodash-es/_freeGlobal.cjs +0 -1
  489. package/lib/node_modules/lodash-es/_getAllKeys.cjs +0 -1
  490. package/lib/node_modules/lodash-es/_getMapData.cjs +0 -1
  491. package/lib/node_modules/lodash-es/_getMatchData.cjs +0 -1
  492. package/lib/node_modules/lodash-es/_getNative.cjs +0 -1
  493. package/lib/node_modules/lodash-es/_getRawTag.cjs +0 -1
  494. package/lib/node_modules/lodash-es/_getSymbols.cjs +0 -1
  495. package/lib/node_modules/lodash-es/_getTag.cjs +0 -1
  496. package/lib/node_modules/lodash-es/_getValue.cjs +0 -1
  497. package/lib/node_modules/lodash-es/_getValue.mjs +0 -9
  498. package/lib/node_modules/lodash-es/_hasPath.cjs +0 -1
  499. package/lib/node_modules/lodash-es/_hasUnicode.cjs +0 -1
  500. package/lib/node_modules/lodash-es/_hashClear.cjs +0 -1
  501. package/lib/node_modules/lodash-es/_hashDelete.cjs +0 -1
  502. package/lib/node_modules/lodash-es/_hashGet.cjs +0 -1
  503. package/lib/node_modules/lodash-es/_hashHas.cjs +0 -1
  504. package/lib/node_modules/lodash-es/_hashSet.cjs +0 -1
  505. package/lib/node_modules/lodash-es/_isFlattenable.cjs +0 -1
  506. package/lib/node_modules/lodash-es/_isIndex.cjs +0 -1
  507. package/lib/node_modules/lodash-es/_isKey.cjs +0 -1
  508. package/lib/node_modules/lodash-es/_isKeyable.cjs +0 -1
  509. package/lib/node_modules/lodash-es/_isMasked.cjs +0 -1
  510. package/lib/node_modules/lodash-es/_isPrototype.cjs +0 -1
  511. package/lib/node_modules/lodash-es/_isStrictComparable.cjs +0 -1
  512. package/lib/node_modules/lodash-es/_listCacheClear.cjs +0 -1
  513. package/lib/node_modules/lodash-es/_listCacheClear.mjs +0 -9
  514. package/lib/node_modules/lodash-es/_listCacheDelete.cjs +0 -1
  515. package/lib/node_modules/lodash-es/_listCacheGet.cjs +0 -1
  516. package/lib/node_modules/lodash-es/_listCacheHas.cjs +0 -1
  517. package/lib/node_modules/lodash-es/_listCacheSet.cjs +0 -1
  518. package/lib/node_modules/lodash-es/_mapCacheClear.cjs +0 -1
  519. package/lib/node_modules/lodash-es/_mapCacheDelete.cjs +0 -1
  520. package/lib/node_modules/lodash-es/_mapCacheGet.cjs +0 -1
  521. package/lib/node_modules/lodash-es/_mapCacheHas.cjs +0 -1
  522. package/lib/node_modules/lodash-es/_mapCacheSet.cjs +0 -1
  523. package/lib/node_modules/lodash-es/_mapToArray.cjs +0 -1
  524. package/lib/node_modules/lodash-es/_matchesStrictComparable.cjs +0 -1
  525. package/lib/node_modules/lodash-es/_memoizeCapped.cjs +0 -1
  526. package/lib/node_modules/lodash-es/_nativeCreate.cjs +0 -1
  527. package/lib/node_modules/lodash-es/_nativeKeys.cjs +0 -1
  528. package/lib/node_modules/lodash-es/_nodeUtil.cjs +0 -1
  529. package/lib/node_modules/lodash-es/_objectToString.cjs +0 -1
  530. package/lib/node_modules/lodash-es/_objectToString.mjs +0 -11
  531. package/lib/node_modules/lodash-es/_overArg.cjs +0 -1
  532. package/lib/node_modules/lodash-es/_overArg.mjs +0 -11
  533. package/lib/node_modules/lodash-es/_root.cjs +0 -1
  534. package/lib/node_modules/lodash-es/_setCacheAdd.cjs +0 -1
  535. package/lib/node_modules/lodash-es/_setCacheHas.cjs +0 -1
  536. package/lib/node_modules/lodash-es/_setCacheHas.mjs +0 -9
  537. package/lib/node_modules/lodash-es/_setToArray.cjs +0 -1
  538. package/lib/node_modules/lodash-es/_stackClear.cjs +0 -1
  539. package/lib/node_modules/lodash-es/_stackDelete.cjs +0 -1
  540. package/lib/node_modules/lodash-es/_stackGet.cjs +0 -1
  541. package/lib/node_modules/lodash-es/_stackGet.mjs +0 -9
  542. package/lib/node_modules/lodash-es/_stackHas.cjs +0 -1
  543. package/lib/node_modules/lodash-es/_stackHas.mjs +0 -9
  544. package/lib/node_modules/lodash-es/_stackSet.cjs +0 -1
  545. package/lib/node_modules/lodash-es/_stringToArray.cjs +0 -1
  546. package/lib/node_modules/lodash-es/_stringToPath.cjs +0 -1
  547. package/lib/node_modules/lodash-es/_toKey.cjs +0 -1
  548. package/lib/node_modules/lodash-es/_toSource.cjs +0 -1
  549. package/lib/node_modules/lodash-es/_trimmedEndIndex.cjs +0 -1
  550. package/lib/node_modules/lodash-es/_unicodeToArray.cjs +0 -1
  551. package/lib/node_modules/lodash-es/capitalize.cjs +0 -1
  552. package/lib/node_modules/lodash-es/concat.cjs +0 -1
  553. package/lib/node_modules/lodash-es/eq.cjs +0 -1
  554. package/lib/node_modules/lodash-es/eq.mjs +0 -9
  555. package/lib/node_modules/lodash-es/first.cjs +0 -1
  556. package/lib/node_modules/lodash-es/first.mjs +0 -9
  557. package/lib/node_modules/lodash-es/flatten.cjs +0 -1
  558. package/lib/node_modules/lodash-es/flattenDeep.cjs +0 -1
  559. package/lib/node_modules/lodash-es/flattenDepth.cjs +0 -1
  560. package/lib/node_modules/lodash-es/forEach.cjs +0 -1
  561. package/lib/node_modules/lodash-es/get.cjs +0 -1
  562. package/lib/node_modules/lodash-es/groupBy.cjs +0 -1
  563. package/lib/node_modules/lodash-es/hasIn.cjs +0 -1
  564. package/lib/node_modules/lodash-es/head.cjs +0 -1
  565. package/lib/node_modules/lodash-es/head.mjs +0 -9
  566. package/lib/node_modules/lodash-es/identity.cjs +0 -1
  567. package/lib/node_modules/lodash-es/identity.mjs +0 -9
  568. package/lib/node_modules/lodash-es/isArguments.cjs +0 -1
  569. package/lib/node_modules/lodash-es/isArray.cjs +0 -1
  570. package/lib/node_modules/lodash-es/isArray.mjs +0 -8
  571. package/lib/node_modules/lodash-es/isArrayLike.cjs +0 -1
  572. package/lib/node_modules/lodash-es/isBuffer.cjs +0 -1
  573. package/lib/node_modules/lodash-es/isEmpty.cjs +0 -1
  574. package/lib/node_modules/lodash-es/isFunction.cjs +0 -1
  575. package/lib/node_modules/lodash-es/isLength.cjs +0 -1
  576. package/lib/node_modules/lodash-es/isNil.cjs +0 -1
  577. package/lib/node_modules/lodash-es/isNil.mjs +0 -9
  578. package/lib/node_modules/lodash-es/isObject.cjs +0 -1
  579. package/lib/node_modules/lodash-es/isObjectLike.cjs +0 -1
  580. package/lib/node_modules/lodash-es/isObjectLike.mjs +0 -9
  581. package/lib/node_modules/lodash-es/isSymbol.cjs +0 -1
  582. package/lib/node_modules/lodash-es/isTypedArray.cjs +0 -1
  583. package/lib/node_modules/lodash-es/keys.cjs +0 -1
  584. package/lib/node_modules/lodash-es/last.cjs +0 -1
  585. package/lib/node_modules/lodash-es/lodash.cjs +0 -1
  586. package/lib/node_modules/lodash-es/memoize.cjs +0 -1
  587. package/lib/node_modules/lodash-es/nth.cjs +0 -1
  588. package/lib/node_modules/lodash-es/property.cjs +0 -1
  589. package/lib/node_modules/lodash-es/reduce.cjs +0 -1
  590. package/lib/node_modules/lodash-es/stubArray.cjs +0 -1
  591. package/lib/node_modules/lodash-es/stubArray.mjs +0 -9
  592. package/lib/node_modules/lodash-es/stubFalse.cjs +0 -1
  593. package/lib/node_modules/lodash-es/stubFalse.mjs +0 -9
  594. package/lib/node_modules/lodash-es/toFinite.cjs +0 -1
  595. package/lib/node_modules/lodash-es/toInteger.cjs +0 -1
  596. package/lib/node_modules/lodash-es/toNumber.cjs +0 -1
  597. package/lib/node_modules/lodash-es/toString.cjs +0 -1
  598. package/lib/node_modules/lodash-es/upperFirst.cjs +0 -1
  599. package/lib/node_modules/pluralize/pluralize.cjs +0 -1
  600. package/lib/packages/dbml-core/node_modules/lodash/lodash.cjs +0 -20
  601. package/lib/packages/dbml-core/package.json.cjs +0 -1
@@ -1,5 +1,5 @@
1
1
  import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
- import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
2
+ import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
3
3
  import { KeywordAlter as r, KeywordAlterColumn as i, KeywordCheck as a, KeywordDisable as o, KeywordDrop as s, KeywordEnable as c, KeywordRebuild as l, KeywordSet as u, KeywordSwitch as d, KeywordTable as f, KeywordWith as p, init_keyword_parsers as m } from "../../../keyword_parsers.mjs";
4
4
  import { init_base_parsers as h, pDotDelimitedName as g, pIgnore as _ } from "../../../base_parsers.mjs";
5
5
  import { handleAlterTableResult as v, init_actions as y } from "./actions.mjs";
@@ -1 +1 @@
1
- const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("./actions.cjs");var a,o,s,c=e.__esmMin((()=>{a=e.__toESM(t.default),n.init_keyword_parsers(),i.init_actions(),r.init_utils(),o=a.default.createLanguage({StartComment:()=>a.default.seq(n.KeywordExec,n.KeywordSP_ADDEXTENDEDPROPERTY),EndComment:()=>a.default.seq(n.Semicolon.atMost(1),n.KeywordGo),StartString:()=>a.default.alt(n.SingleQuote,a.default.string(`N'`)),ManyDoubleSingleQuote:()=>a.default.string(`''`),NoSingleQuote:()=>a.default.regex(/[^']/),StringType:e=>a.default.alt(e.NoSingleQuote,e.ManyDoubleSingleQuote).atLeast(1).map(e=>e.join(``)),NVarchar:e=>e.StartString.then(e.StringType).skip(n.SingleQuote),NameOption:e=>n.KeywordAtName.skip(n.Equal).then(e.NVarchar),ValueOption:e=>n.KeywordAtValue.skip(n.Equal).then(e.NVarchar),Level0Type:e=>n.KeywordAtLevel0Type.skip(n.Equal).then(e.NVarchar),Level0Name:e=>n.KeywordAtLevel0Name.skip(n.Equal).then(e.NVarchar),Level1Type:e=>n.KeywordAtLevel1Type.skip(n.Equal).then(e.NVarchar),Level1Name:e=>n.KeywordAtLevel1Name.skip(n.Equal).then(e.NVarchar),Level2Type:e=>n.KeywordAtLevel2Type.skip(n.Equal).then(e.NVarchar),Level2Name:e=>n.KeywordAtLevel2Name.skip(n.Equal).then(e.NVarchar),Level0Stmt:e=>a.default.seqObj([`type`,e.Level0Type],n.Comma,[`name`,e.Level0Name]),Level1Stmt:e=>a.default.seqObj([`type`,e.Level1Type],n.Comma,[`name`,e.Level1Name]),Level2Stmt:e=>a.default.seqObj([`type`,e.Level2Type],n.Comma,[`name`,e.Level2Name]),Level0Wrapper:e=>a.default.alt(a.default.seq(e.Level0Stmt.skip(n.Comma),e.Level1Wrapper),e.Level0Stmt).map(e=>Array.isArray(e)?[e[0],...e[1]]:[e]).atMost(1).map(e=>e.length===1?e[0]:e),Level1Wrapper:e=>a.default.alt(a.default.seq(e.Level1Stmt.skip(n.Comma),e.Level2Stmt),e.Level1Stmt).map(e=>Array.isArray(e)?e:[e]),CommentSyntax:e=>a.default.seqObj(e.StartComment,[`name`,e.NameOption],n.Comma,[`note`,e.ValueOption],n.Comma,[`level`,e.Level0Wrapper],e.EndComment).map(i.handleComment).thru(r.makeNode())}),s=o.CommentSyntax}));c(),exports.default=s,Object.defineProperty(exports,"init_comments",{enumerable:!0,get:function(){return c}});
1
+ const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("./actions.cjs");var a,o,s,c=e.__esmMin((()=>{a=e.__toESM(t.default),n.init_keyword_parsers(),i.init_actions(),r.init_utils(),o=a.default.createLanguage({StartComment:()=>a.default.seq(n.KeywordExec,n.KeywordSP_ADDEXTENDEDPROPERTY),EndComment:()=>a.default.seq(n.Semicolon.atMost(1),n.KeywordGo),StartString:()=>a.default.alt(n.SingleQuote,a.default.string(`N'`)),ManyDoubleSingleQuote:()=>a.default.string(`''`),NoSingleQuote:()=>a.default.regex(/[^']/),StringType:e=>a.default.alt(e.NoSingleQuote,e.ManyDoubleSingleQuote).atLeast(1).map(e=>e.join(``)),NVarchar:e=>e.StartString.then(e.StringType).skip(n.SingleQuote),NameOption:e=>n.KeywordAtName.skip(n.Equal).then(e.NVarchar),ValueOption:e=>n.KeywordAtValue.skip(n.Equal).then(e.NVarchar),Level0Type:e=>n.KeywordAtLevel0Type.skip(n.Equal).then(e.NVarchar),Level0Name:e=>n.KeywordAtLevel0Name.skip(n.Equal).then(e.NVarchar),Level1Type:e=>n.KeywordAtLevel1Type.skip(n.Equal).then(e.NVarchar),Level1Name:e=>n.KeywordAtLevel1Name.skip(n.Equal).then(e.NVarchar),Level2Type:e=>n.KeywordAtLevel2Type.skip(n.Equal).then(e.NVarchar),Level2Name:e=>n.KeywordAtLevel2Name.skip(n.Equal).then(e.NVarchar),Level0Stmt:e=>a.default.seqObj([`type`,e.Level0Type],n.Comma,[`name`,e.Level0Name]),Level1Stmt:e=>a.default.seqObj([`type`,e.Level1Type],n.Comma,[`name`,e.Level1Name]),Level2Stmt:e=>a.default.seqObj([`type`,e.Level2Type],n.Comma,[`name`,e.Level2Name]),Level0Wrapper:e=>a.default.alt(a.default.seq(e.Level0Stmt.skip(n.Comma),e.Level1Wrapper),e.Level0Stmt).map(e=>Array.isArray(e)?[e[0],...e[1]]:[e]).atMost(1).map(e=>e.length===1?e[0]:e),Level1Wrapper:e=>a.default.alt(a.default.seq(e.Level1Stmt.skip(n.Comma),e.Level2Stmt),e.Level1Stmt).map(e=>Array.isArray(e)?e:[e]),CommentSyntax:e=>a.default.seqObj(e.StartComment,[`name`,e.NameOption],n.Comma,[`note`,e.ValueOption],n.Comma,[`level`,e.Level0Wrapper],e.EndComment).map(i.handleComment).thru(r.makeNode())}),s=o.CommentSyntax}));c(),exports.default=s,Object.defineProperty(exports,"init_comments",{enumerable:!0,get:function(){return c}});
@@ -1,5 +1,5 @@
1
1
  import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
- import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
2
+ import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
3
3
  import { Comma as r, Equal as i, KeywordAtLevel0Name as a, KeywordAtLevel0Type as o, KeywordAtLevel1Name as s, KeywordAtLevel1Type as c, KeywordAtLevel2Name as l, KeywordAtLevel2Type as u, KeywordAtName as d, KeywordAtValue as f, KeywordExec as p, KeywordGo as m, KeywordSP_ADDEXTENDEDPROPERTY as h, Semicolon as g, SingleQuote as _, init_keyword_parsers as v } from "../../../keyword_parsers.mjs";
4
4
  import { init_utils as y, makeNode as b } from "../../../utils.mjs";
5
5
  import { handleComment as x, init_actions as S } from "./actions.mjs";
@@ -1 +1 @@
1
- const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("./actions.cjs");var s,c,l,u=e.__esmMin((()=>{s=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_actions(),a.init_index_definition(),c=s.default.createLanguage({CreateIndex:e=>s.default.seqMap(n.KeywordCreate,n.KeywordUnique.fallback(null),i.pKeywordClusteredOrNon.fallback(null),n.KeywordIndex,i.pIdentifier,n.KeywordOn,i.pDotDelimitedName,i.pColumnNames,o.makeIndex).thru(r.makeNode()).skip(e.IgnoredCreateIndexOptions),IgnoredCreateIndexOptions:e=>s.default.alt(a.pIgnoredIndexOption,e.IncludeIndexOption,e.WhereIndexOption).many(),IncludeIndexOption:()=>s.default.seq(n.KeywordInclude,i.pColumnNames),WhereIndexOption:e=>s.default.seq(n.KeywordWhere,e.FilterPredicate),FilterPredicate:e=>s.default.seq(e.Conjunct,s.default.seq(n.LogicalOpAnd,e.Conjunct).fallback(null)),Conjunct:e=>s.default.alt(e.Disjunct,e.Comparsion),Disjunct:()=>s.default.seq(i.pIdentifier,n.KeywordIn,r.makeList(i.pConst)),Comparsion:()=>s.default.seq(i.pIdentifier,i.pComparsionOp,i.pConst)}),l=c.CreateIndex}));u(),exports.default=l,Object.defineProperty(exports,"init_create_index",{enumerable:!0,get:function(){return u}});
1
+ const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("./actions.cjs");var s,c,l,u=e.__esmMin((()=>{s=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_actions(),a.init_index_definition(),c=s.default.createLanguage({CreateIndex:e=>s.default.seqMap(n.KeywordCreate,n.KeywordUnique.fallback(null),i.pKeywordClusteredOrNon.fallback(null),n.KeywordIndex,i.pIdentifier,n.KeywordOn,i.pDotDelimitedName,i.pColumnNames,o.makeIndex).thru(r.makeNode()).skip(e.IgnoredCreateIndexOptions),IgnoredCreateIndexOptions:e=>s.default.alt(a.pIgnoredIndexOption,e.IncludeIndexOption,e.WhereIndexOption).many(),IncludeIndexOption:()=>s.default.seq(n.KeywordInclude,i.pColumnNames),WhereIndexOption:e=>s.default.seq(n.KeywordWhere,e.FilterPredicate),FilterPredicate:e=>s.default.seq(e.Conjunct,s.default.seq(n.LogicalOpAnd,e.Conjunct).fallback(null)),Conjunct:e=>s.default.alt(e.Disjunct,e.Comparsion),Disjunct:()=>s.default.seq(i.pIdentifier,n.KeywordIn,r.makeList(i.pConst)),Comparsion:()=>s.default.seq(i.pIdentifier,i.pComparsionOp,i.pConst)}),l=c.CreateIndex}));u(),exports.default=l,Object.defineProperty(exports,"init_create_index",{enumerable:!0,get:function(){return u}});
@@ -1,5 +1,5 @@
1
1
  import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
- import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
2
+ import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
3
3
  import { KeywordCreate as r, KeywordIn as i, KeywordInclude as a, KeywordIndex as o, KeywordOn as s, KeywordUnique as c, KeywordWhere as l, LogicalOpAnd as u, init_keyword_parsers as d } from "../../../keyword_parsers.mjs";
4
4
  import { init_utils as f, makeList as p, makeNode as m } from "../../../utils.mjs";
5
5
  import { init_base_parsers as h, pColumnNames as g, pComparsionOp as _, pConst as v, pDotDelimitedName as y, pIdentifier as b, pKeywordClusteredOrNon as x } from "../../../base_parsers.mjs";
@@ -1 +1 @@
1
- const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("../../../constraint_definition/index.cjs"),s=require("../../../column_definition/index.cjs"),c=require("./actions.cjs");var l,u,d,f=e.__esmMin((()=>{l=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_constraint_definition(),a.init_index_definition(),s.init_column_definition(),c.init_actions(),u=l.default.createLanguage({CreateTable:e=>l.default.seqMap(e.CreateTableKeywords,i.pDotDelimitedName,e.AsFileTableKeywords.fallback(null),r.makeList(e.Line),c.makeTable).thru(r.makeNode()).skip(e.IgnoredTableOptions),CreateTableKeywords:()=>l.default.seq(n.KeywordCreate,n.KeywordTable),AsFileTableKeywords:()=>l.default.seq(n.KeywordAs,n.KeywordFileTable),Line:e=>l.default.alt(e.SystemTimeTableOption,o.pTableConstraint,a.pTableIndex,s.pColumnsDefinition),SystemTimeTableOption:()=>l.default.seq(n.KeywordPeriodForST,r.makeList(i.pIdentifier)).result(null),IgnoredTableOptions:e=>l.default.alt(a.pIgnoredIndexOption,e.TextImageTableOption).many(),TextImageTableOption:()=>l.default.seq(n.KeywordTextImage_On,i.pIdentifier)}),d=u.CreateTable}));f(),exports.default=d,Object.defineProperty(exports,"init_create_table",{enumerable:!0,get:function(){return f}});
1
+ const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("../../../constraint_definition/index.cjs"),s=require("../../../column_definition/index.cjs"),c=require("./actions.cjs");var l,u,d,f=e.__esmMin((()=>{l=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_constraint_definition(),a.init_index_definition(),s.init_column_definition(),c.init_actions(),u=l.default.createLanguage({CreateTable:e=>l.default.seqMap(e.CreateTableKeywords,i.pDotDelimitedName,e.AsFileTableKeywords.fallback(null),r.makeList(e.Line),c.makeTable).thru(r.makeNode()).skip(e.IgnoredTableOptions),CreateTableKeywords:()=>l.default.seq(n.KeywordCreate,n.KeywordTable),AsFileTableKeywords:()=>l.default.seq(n.KeywordAs,n.KeywordFileTable),Line:e=>l.default.alt(e.SystemTimeTableOption,o.pTableConstraint,a.pTableIndex,s.pColumnsDefinition),SystemTimeTableOption:()=>l.default.seq(n.KeywordPeriodForST,r.makeList(i.pIdentifier)).result(null),IgnoredTableOptions:e=>l.default.alt(a.pIgnoredIndexOption,e.TextImageTableOption).many(),TextImageTableOption:()=>l.default.seq(n.KeywordTextImage_On,i.pIdentifier)}),d=u.CreateTable}));f(),exports.default=d,Object.defineProperty(exports,"init_create_table",{enumerable:!0,get:function(){return f}});
@@ -1,5 +1,5 @@
1
1
  import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
- import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
2
+ import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
3
3
  import { KeywordAs as r, KeywordCreate as i, KeywordFileTable as a, KeywordPeriodForST as o, KeywordTable as s, KeywordTextImage_On as c, init_keyword_parsers as l } from "../../../keyword_parsers.mjs";
4
4
  import { init_utils as u, makeList as d, makeNode as f } from "../../../utils.mjs";
5
5
  import { init_base_parsers as p, pDotDelimitedName as m, pIdentifier as h } from "../../../base_parsers.mjs";
@@ -1 +1 @@
1
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/lodash-es/last.cjs"),n=require("../../../node_modules/lodash-es/lodash.cjs"),r=require("../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),i=require("./whitespaces.cjs"),a=require("./keyword_parsers.cjs");function o(){return function(e){return u.default.seqMap(u.default.index,e,u.default.index,(t,n,r)=>n?(typeof n.value!=`object`&&(n.value={value:n.value}),n.value.token={start:t,end:r},n):e).skip(i.default)}}function s(e,t=!1){let n=e.sepBy1(a.Comma);return t&&(n=e.sepBy(a.Comma)),u.default.seq(a.LParen,n,a.RParen).map(e=>e[1])}function c(e){return function(t){return t.skip(i.default).map(t=>(t!==0&&!t&&(t=``),{type:e,value:t}))}}function l(e){let n=null;return e.length>1&&(n=e[e.length-2]),{name:t.default(e),schemaName:n}}var u,d=e.__esmMin((()=>{u=e.__toESM(r.default),n.init_lodash(),a.init_keyword_parsers(),i.init_whitespaces()}));d(),exports.getFullTableName=l,Object.defineProperty(exports,"init_utils",{enumerable:!0,get:function(){return d}}),exports.makeList=s,exports.makeNode=o,exports.streamline=c;
1
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.cjs"),n=require("../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/lodash.cjs"),r=require("../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs"),i=require("./whitespaces.cjs"),a=require("./keyword_parsers.cjs");function o(){return function(e){return u.default.seqMap(u.default.index,e,u.default.index,(t,n,r)=>n?(typeof n.value!=`object`&&(n.value={value:n.value}),n.value.token={start:t,end:r},n):e).skip(i.default)}}function s(e,t=!1){let n=e.sepBy1(a.Comma);return t&&(n=e.sepBy(a.Comma)),u.default.seq(a.LParen,n,a.RParen).map(e=>e[1])}function c(e){return function(t){return t.skip(i.default).map(t=>(t!==0&&!t&&(t=``),{type:e,value:t}))}}function l(e){let n=null;return e.length>1&&(n=e[e.length-2]),{name:t.default(e),schemaName:n}}var u,d=e.__esmMin((()=>{u=e.__toESM(r.default),n.init_lodash(),a.init_keyword_parsers(),i.init_whitespaces()}));d(),exports.getFullTableName=l,Object.defineProperty(exports,"init_utils",{enumerable:!0,get:function(){return d}}),exports.makeList=s,exports.makeNode=o,exports.streamline=c;
@@ -1,7 +1,7 @@
1
1
  import { __esmMin as e, __toESM as t } from "../../../_virtual/_rolldown/runtime.mjs";
2
- import n from "../../../node_modules/lodash-es/last.mjs";
3
- import { init_lodash as r } from "../../../node_modules/lodash-es/lodash.mjs";
4
- import { require_parsimmon_umd_min as i } from "../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
2
+ import n from "../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.mjs";
3
+ import { init_lodash as r } from "../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/lodash.mjs";
4
+ import { require_parsimmon_umd_min as i } from "../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
5
5
  import a, { init_whitespaces as o } from "./whitespaces.mjs";
6
6
  import { Comma as s, LParen as c, RParen as l, init_keyword_parsers as u } from "./keyword_parsers.mjs";
7
7
  //#region src/parse/deprecated/mssql/utils.js
@@ -1 +1 @@
1
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs");var n,r,i,a=e.__esmMin((()=>{n=e.__toESM(t.default),r=n.default.createLanguage({WhiteSpaces:e=>n.default.alt(e.WhiteSpace,e.InlineComment,e.MulLineComment).many().desc(`whitespaces or comments`),WhiteSpace:()=>n.default.regexp(/\s/).desc(`whitespaces`),InlineComment:()=>n.default.seq(n.default.string(`--`),n.default.regexp(/[^\n\r]*/)).desc(`comments`),MulLineComment:()=>n.default.regexp(/\/\*[\s\S]+?\*\//).desc(`comments`)}),i=r.WhiteSpaces}));a(),exports.default=i,Object.defineProperty(exports,"init_whitespaces",{enumerable:!0,get:function(){return a}});
1
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs");var n,r,i,a=e.__esmMin((()=>{n=e.__toESM(t.default),r=n.default.createLanguage({WhiteSpaces:e=>n.default.alt(e.WhiteSpace,e.InlineComment,e.MulLineComment).many().desc(`whitespaces or comments`),WhiteSpace:()=>n.default.regexp(/\s/).desc(`whitespaces`),InlineComment:()=>n.default.seq(n.default.string(`--`),n.default.regexp(/[^\n\r]*/)).desc(`comments`),MulLineComment:()=>n.default.regexp(/\/\*[\s\S]+?\*\//).desc(`comments`)}),i=r.WhiteSpaces}));a(),exports.default=i,Object.defineProperty(exports,"init_whitespaces",{enumerable:!0,get:function(){return a}});
@@ -1,5 +1,5 @@
1
1
  import { __esmMin as e, __toESM as t } from "../../../_virtual/_rolldown/runtime.mjs";
2
- import { require_parsimmon_umd_min as n } from "../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
2
+ import { require_parsimmon_umd_min as n } from "../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
3
3
  //#region src/parse/deprecated/mssql/whitespaces.js
4
4
  var r, i, a, o = e((() => {
5
5
  r = /* @__PURE__ */ t(n()), i = r.default.createLanguage({
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../packages/dbml-core/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{t.default,n.default;function i(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function a(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,a)}i(a,Error),a.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function o(e,n){n=n===void 0?{}:n;var r={},i={Rule:Ma},o=Ma,s=function(){return{tables:Go,refs:Ko,enums:qo}},c=function(e){Go.push(e)},l=`(`,u=B(`(`,!1),d=`)`,f=B(`)`,!1),p=function(e,t,n){let r=t.fields,i=t.indexes,a=t.refs;r.forEach(t=>{if(t.type.type_name.toLowerCase()===`enum`){let n=t.type.args.split(/[\s\r\n\n]*,[\s\r\n\n]*/),r=[];n.forEach(e=>{let t={name:e.replace(/'|"|`/g,``).trim()};r.push(t)});let i={name:`${e.schemaName?`${e.schemaName}_`:``}${e.name}_${t.name}_enum`,values:r};qo.push(i),t.type.type_name=i.name}}),a.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName,t.endpoints[0].relation=`*`,Ko.push(t)});let o={...e,fields:r};return n&&n.comment&&(o.note={value:n.comment}),i&&(o.indexes=i),o},m=function(e){let t=$.flatten(e.filter(e=>e.type===`pk`).map(e=>e.pk)),n=$.flatten(e.filter(e=>e.type===`fk`).map(e=>e.fk)),r=$.flatten(e.filter(e=>e.type===`index`).map(e=>e.index)),i=e.filter(e=>e.type===`field`).map(e=>e.field);if(t.length>1){let e={columns:t.map(e=>({value:e,type:`column`})),pk:!0};r.push(e)}else t.forEach(e=>i.find(t=>t.name===e).pk=!0);return n.map(e=>{let t=i.find(t=>t.name===e.endpoints[0].fieldNames[0]);t.inline_ref||=[],t.inline_ref.push({endpoint:e.endpoints[1],onUpdate:e.onUpdate,onDelete:e.onDelete})}),{fields:i,indexes:r,refs:n}},h=H(`fields`),g=function(e){return{type:`pk`,pk:e}},_=function(e){return{type:`fk`,fk:e}},v=function(e){return{type:`index`,index:e}},y=function(e){return{type:`field`,field:e}},b=function(e){return e},x=`constraint`,S=B(`CONSTRAINT`,!0),ee=function(e,t,n,r,i){let a={name:e?e[2]:null,endpoints:[{tableName:null,fieldNames:t,relation:`*`},{tableName:n.name,schemaName:n.schemaName,fieldNames:r,relation:`1`}]};return i.forEach(e=>{if(e.type===`delete`){a.onDelete=e.action;return}a.onUpdate=e.action}),a},te=`on`,C=B(`ON`,!0),ne=`update`,re=B(`UPDATE`,!0),ie=`delete`,ae=B(`DELETE`,!0),oe=function(e,t){return{type:e.toLowerCase(),action:t.toLowerCase()}},w=`unique`,T=B(`UNIQUE`,!0),se=`key`,ce=B(`KEY`,!0),le=function(e,t,n,r,i){let a={columns:r};return t&&(a.name=t),e&&(a.unique=!0),i&&i[1]&&i[1].type===`index_type`&&i[1].value?a.type=i[1].value:n&&(a.type=n),a},ue=`index`,de=B(`INDEX`,!0),fe=function(e){return e},pe=function(){return`unique`},me=`ASC`,he=B(`ASC`,!1),ge=`DESC`,_e=B(`DESC`,!1),ve=function(e,t,n){let r={name:e,type:t};return n&&Object.assign(r,n),r},ye=function(e){let t={};return e.forEach(e=>{e===`null`?t.not_null=!1:e.type==="default"&&e.value?t.dbdefault=e.value:e.type===`comment`&&e.value?t.note={value:e.value}:e!==`not_supported`&&(t[e]=!0)}),t},be=H(`field setting`),xe=`not`,Se=B(`NOT`,!0),Ce=`null`,we=B(`NULL`,!0),Te=function(e){return`not_null`},Ee=function(e){return`null`},De=function(e){return`pk`},Oe=function(e){return`unique`},ke=`auto_increment`,Ae=B(`AUTO_INCREMENT`,!0),je=function(e){return`increment`},Me=`unsigned`,Ne=B(`UNSIGNED`,!0),Pe=function(e){return`unsigned`},Fe=`collate`,Ie=B(`COLLATE`,!0),Le=`column_format`,Re=B(`COLUMN_FORMAT`,!0),ze=`storage`,Be=B(`STORAGE`,!0),Ve=`check`,He=B(`CHECK`,!0),Ue=`generated_always`,We=B(`GENERATED_ALWAYS`,!0),Ge=`as`,Ke=B(`AS`,!0),qe=`virtual`,Je=B(`VIRTUAL`,!0),Ye=`stored`,Xe=B(`STORED`,!0),Ze=`character`,Qe=B(`CHARACTER`,!0),$e=`set`,et=B(`SET`,!0),tt=`charset`,nt=B(`CHARSET`,!0),rt=function(){return`not_supported`},it=function(e){return{type:`default`,value:e}},at=function(e){return{type:`comment`,value:e}},ot=`default`,st=B(`DEFAULT`,!0),ct=function(e){return e},lt=function(e){return{value:e,type:`string`}},ut=function(e){return{value:e,type:`number`}},dt=`true`,ft=B(`TRUE`,!0),pt=`false`,mt=B(`FALSE`,!0),ht=function(e){return{value:e,type:`boolean`}},gt=function(e){let t=e;return e&&e.length>2&&e[0]===`(`&&e[e.length-1]===`)`&&(t=e.slice(1,-1)),{value:t,type:`expression`}},_t=function(e,t){let n=e;return t.forEach(e=>Object.assign(n,e[2])),n},vt=H(`table option`),E=`=`,D=B(`=`,!1),yt=function(e){return{auto_increment:e}},bt=`avg_row_length`,xt=B(`AVG_ROW_LENGTH`,!0),St=function(e){return{avg_row_length:e}},Ct=function(e){return{charset_name:e}},wt=function(e){return{collation_name:e}},Tt=`compression`,Et=B(`COMPRESSION`,!0),Dt=`zlib`,Ot=B(`ZLIB`,!0),kt=`lz4`,At=B(`LZ4`,!0),jt=`none`,Mt=B(`NONE`,!0),Nt=function(e){return{compression:e.toUpperCase()}},Pt=`connection`,Ft=B(`CONNECTION`,!0),It=`connect_string`,Lt=B(`connect_string`,!1),Rt=function(e){return{connect_string:e}},zt=`encryption`,Bt=B(`ENCRYPTION`,!0),Vt=`y`,Ht=B(`Y`,!0),Ut=`n`,Wt=B(`N`,!0),Gt=function(e){return{encryption:e.toUpperCase()}},Kt=`engine`,qt=B(`ENGINE`,!0),Jt=function(e){return{engine:e}},Yt=`insert_method`,Xt=B(`INSERT_METHOD`,!0),Zt=`no`,Qt=B(`NO`,!0),$t=`first`,en=B(`FIRST`,!0),tn=`last`,nn=B(`LAST`,!0),rn=function(e){return{insert_method:e.toUpperCase()}},an=`max_rows`,on=B(`MAX_ROWS`,!0),sn=function(e){return{max_rows:e}},cn=`min_rows`,ln=B(`MIN_ROWS`,!0),un=function(e){return{min_rows:e}},dn=`tablespace`,fn=B(`TABLESPACE`,!0),pn=`STORAGE`,mn=B(`STORAGE`,!1),hn=`disk`,gn=B(`DISK`,!0),_n=`memory`,vn=B(`MEMORY`,!0),yn=function(e){return{tablespace:e}},bn=function(e){return{comment:e}},xn=`enforce`,Sn=B(`ENFORCE`,!0),Cn=function(e,t){let n=$.flatten(t.filter(e=>e.type===`add_fk`).map(e=>e.fks));n.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName}),Ko.push(...n);let r=$.flatten(t.filter(e=>e.type===`add_pk`).map(e=>e.pks)),i=Jo(e.schemaName,e.name),a={columns:r.map(e=>({value:e,type:`column`})),pk:!0};if(r.length>1)i.indexes?i.indexes.push(a):i.indexes=[a];else if(r.length===1){let e=i.fields.find(e=>e.name===r[0]);e.pk=!0}},wn=`add`,Tn=B(`ADD`,!0),En=function(e){return{type:`add_fk`,fks:e}},Dn=function(e){return{type:`add_pk`,pks:e}},On=`column`,kn=B(`COLUMN`,!0),An=function(e,t){return{type:`add_column`,field:{col_name:e,col_type:t}}},jn=function(e,t){return{type:`add_index`,index:{column:t}}},Mn=`change`,Nn=B(`CHANGE`,!0),O=/^[^;]/,k=V([`;`],!0,!1),Pn=`drop`,Fn=B(`DROP`,!0),In=function(e,t,n,r,i,a){let o={columns:i},s=a&&a.type===`index_type`?a.value:null;t&&(o.name=t),e.toLowerCase()===`unique`&&(o.unique=!0);let c=s||r;c&&(o.type=c);let l=Jo(n.schemaName,n.name);l.indexes?l.indexes.push(o):l.indexes=[o]},Ln=function(e){return e},Rn=function(e,t){return[e,...t.map(e=>e[3])]},zn=function(e,t){return{value:`${e}(${Yo($.flattenDeep(t).join(``))})`,type:`expression`}},Bn=function(e){return{value:`${e}`,type:`string`}},Vn=function(e){return{value:`${e}`,type:`expression`}},Hn=`COLLATE`,Un=B(`COLLATE`,!1),Wn=`NULLS`,Gn=B(`NULLS`,!1),Kn=`FIRST`,qn=B(`FIRST`,!1),Jn=`LAST`,Yn=B(`LAST`,!1),Xn=function(e){return e},Zn=`key_block_size`,Qn=B(`KEY_BLOCK_SIZE`,!0),$n=`with`,er=B(`WITH`,!0),tr=`parser`,nr=B(`PARSER`,!0),rr=`comment`,ir=B(`COMMENT`,!0),ar=`string`,or=B(`string`,!1),sr=`visible`,cr=B(`VISIBLE`,!0),lr=`invisible`,ur=B(`INVISIBLE`,!0),dr=function(e){return{type:`index_type`,value:e}},fr=`alter`,pr=B(`ALTER`,!0),A=Da(),mr=`insert`,hr=B(`INSERT`,!0),gr=`;`,_r=B(`;`,!1),vr=`create`,yr=B(`CREATE`,!0),br=`schema`,xr=B(`SCHEMA`,!0),Sr=`database`,Cr=B(`DATABASE`,!0),wr=`use`,Tr=B(`USE`,!0),Er=`begin`,Dr=B(`BEGIN`,!0),Or=`commit`,kr=B(`COMMIT`,!0),Ar=`rollback`,jr=B(`ROLLBACK`,!0),Mr=function(e,t){return[e,...t.map(e=>e[2])]},j=`'`,M=B(`'`,!1),Nr=/^[^']/,Pr=V([`'`],!0,!1),Fr=function(e,t){return t.join(``)},N=`"`,P=B(`"`,!1),Ir=/^[^"]/,Lr=V([`"`],!0,!1),Rr=H(`CREATE TABLE`),zr=`temporary`,Br=B(`TEMPORARY`,!0),Vr=`table`,Hr=B(`TABLE`,!0),Ur=H(`IF NOT EXISTS`),Wr=`if`,Gr=B(`IF`,!0),Kr=`exists`,qr=B(`EXISTS`,!0),Jr=H(`ALTER TABLE`),Yr=H(`CREATE INDEX`),Xr=function(e){return e},Zr=function(){return`INDEX`},Qr=`primary`,$r=B(`PRIMARY`,!0),ei=`foreign`,ti=B(`FOREIGN`,!0),ni=`references`,ri=B(`REFERENCES`,!0),ii=`restrict`,ai=B(`RESTRICT`,!0),oi=`cascade`,si=B(`CASCADE`,!0),ci=`action`,li=B(`ACTION`,!0),ui=H(`index type`),di=`using`,fi=B(`USING`,!0),pi=`btree`,mi=B(`BTREE`,!0),hi=`hash`,gi=B(`HASH`,!0),_i=function(e){return e.toUpperCase()},vi=H(`valid name`),yi=function(e){return e.join(``)},bi=/^[^`]/,xi=V(["`"],!0,!1),Si=`.`,Ci=B(`.`,!1),wi=function(e){let t=null,n=null;return e&&e.length>0&&(e.length===1?n=e[0][0]:(t=e[0][0],n=e[1][0])),{dbName:t,schemaName:n}},Ti=H(`valid table name`),Ei=function(e,t){return{...e,name:t}},Di=H(`type`),Oi=function(e){return e},ki=function(e){return{type_name:e}},Ai=function(e,t){return t=t?t[2]:null,e.toLowerCase()!==`enum`&&(e=t?e+`(`+t+`)`:e),{type_name:e,args:t}},ji=H(`expression`),Mi=function(e){return Yo($.flattenDeep(e).join(``))},Ni=`,`,Pi=B(`,`,!1),Fi=`);`,Ii=B(`);`,!1),Li=function(e){return $.flattenDeep(e).join(``)},Ri=/^[',.a-z0-9_+-`%]/i,zi=V([`'`,`,`,`.`,[`a`,`z`],[`0`,`9`],`_`,[`+`,"`"],`%`],!1,!0),Bi=/^['.a-z0-9_+\-]/i,Vi=V([`'`,`.`,[`a`,`z`],[`0`,`9`],`_`,`+`,`-`],!1,!0),Hi=H(`letter, number or underscore`),Ui=/^[a-z0-9_]/i,Wi=V([[`a`,`z`],[`0`,`9`],`_`],!1,!0),Gi=` `,Ki=B(` `,!1),qi="`",Ji=B("`",!1),Yi=` `,Xi=B(` `,!1),Zi=H(`endline`),Qi=H(`newline`),$i=`\r
1
+ "use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{t.default,n.default;function i(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function a(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,a)}i(a,Error),a.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function o(e,n){n=n===void 0?{}:n;var r={},i={Rule:Ma},o=Ma,s=function(){return{tables:Go,refs:Ko,enums:qo}},c=function(e){Go.push(e)},l=`(`,u=B(`(`,!1),d=`)`,f=B(`)`,!1),p=function(e,t,n){let r=t.fields,i=t.indexes,a=t.refs;r.forEach(t=>{if(t.type.type_name.toLowerCase()===`enum`){let n=t.type.args.split(/[\s\r\n\n]*,[\s\r\n\n]*/),r=[];n.forEach(e=>{let t={name:e.replace(/'|"|`/g,``).trim()};r.push(t)});let i={name:`${e.schemaName?`${e.schemaName}_`:``}${e.name}_${t.name}_enum`,values:r};qo.push(i),t.type.type_name=i.name}}),a.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName,t.endpoints[0].relation=`*`,Ko.push(t)});let o={...e,fields:r};return n&&n.comment&&(o.note={value:n.comment}),i&&(o.indexes=i),o},m=function(e){let t=$.flatten(e.filter(e=>e.type===`pk`).map(e=>e.pk)),n=$.flatten(e.filter(e=>e.type===`fk`).map(e=>e.fk)),r=$.flatten(e.filter(e=>e.type===`index`).map(e=>e.index)),i=e.filter(e=>e.type===`field`).map(e=>e.field);if(t.length>1){let e={columns:t.map(e=>({value:e,type:`column`})),pk:!0};r.push(e)}else t.forEach(e=>i.find(t=>t.name===e).pk=!0);return n.map(e=>{let t=i.find(t=>t.name===e.endpoints[0].fieldNames[0]);t.inline_ref||=[],t.inline_ref.push({endpoint:e.endpoints[1],onUpdate:e.onUpdate,onDelete:e.onDelete})}),{fields:i,indexes:r,refs:n}},h=H(`fields`),g=function(e){return{type:`pk`,pk:e}},_=function(e){return{type:`fk`,fk:e}},v=function(e){return{type:`index`,index:e}},y=function(e){return{type:`field`,field:e}},b=function(e){return e},x=`constraint`,S=B(`CONSTRAINT`,!0),ee=function(e,t,n,r,i){let a={name:e?e[2]:null,endpoints:[{tableName:null,fieldNames:t,relation:`*`},{tableName:n.name,schemaName:n.schemaName,fieldNames:r,relation:`1`}]};return i.forEach(e=>{if(e.type===`delete`){a.onDelete=e.action;return}a.onUpdate=e.action}),a},te=`on`,C=B(`ON`,!0),ne=`update`,re=B(`UPDATE`,!0),ie=`delete`,ae=B(`DELETE`,!0),oe=function(e,t){return{type:e.toLowerCase(),action:t.toLowerCase()}},w=`unique`,T=B(`UNIQUE`,!0),se=`key`,ce=B(`KEY`,!0),le=function(e,t,n,r,i){let a={columns:r};return t&&(a.name=t),e&&(a.unique=!0),i&&i[1]&&i[1].type===`index_type`&&i[1].value?a.type=i[1].value:n&&(a.type=n),a},ue=`index`,de=B(`INDEX`,!0),fe=function(e){return e},pe=function(){return`unique`},me=`ASC`,he=B(`ASC`,!1),ge=`DESC`,_e=B(`DESC`,!1),ve=function(e,t,n){let r={name:e,type:t};return n&&Object.assign(r,n),r},ye=function(e){let t={};return e.forEach(e=>{e===`null`?t.not_null=!1:e.type==="default"&&e.value?t.dbdefault=e.value:e.type===`comment`&&e.value?t.note={value:e.value}:e!==`not_supported`&&(t[e]=!0)}),t},be=H(`field setting`),xe=`not`,Se=B(`NOT`,!0),Ce=`null`,we=B(`NULL`,!0),Te=function(e){return`not_null`},Ee=function(e){return`null`},De=function(e){return`pk`},Oe=function(e){return`unique`},ke=`auto_increment`,Ae=B(`AUTO_INCREMENT`,!0),je=function(e){return`increment`},Me=`unsigned`,Ne=B(`UNSIGNED`,!0),Pe=function(e){return`unsigned`},Fe=`collate`,Ie=B(`COLLATE`,!0),Le=`column_format`,Re=B(`COLUMN_FORMAT`,!0),ze=`storage`,Be=B(`STORAGE`,!0),Ve=`check`,He=B(`CHECK`,!0),Ue=`generated_always`,We=B(`GENERATED_ALWAYS`,!0),Ge=`as`,Ke=B(`AS`,!0),qe=`virtual`,Je=B(`VIRTUAL`,!0),Ye=`stored`,Xe=B(`STORED`,!0),Ze=`character`,Qe=B(`CHARACTER`,!0),$e=`set`,et=B(`SET`,!0),tt=`charset`,nt=B(`CHARSET`,!0),rt=function(){return`not_supported`},it=function(e){return{type:`default`,value:e}},at=function(e){return{type:`comment`,value:e}},ot=`default`,st=B(`DEFAULT`,!0),ct=function(e){return e},lt=function(e){return{value:e,type:`string`}},ut=function(e){return{value:e,type:`number`}},dt=`true`,ft=B(`TRUE`,!0),pt=`false`,mt=B(`FALSE`,!0),ht=function(e){return{value:e,type:`boolean`}},gt=function(e){let t=e;return e&&e.length>2&&e[0]===`(`&&e[e.length-1]===`)`&&(t=e.slice(1,-1)),{value:t,type:`expression`}},_t=function(e,t){let n=e;return t.forEach(e=>Object.assign(n,e[2])),n},vt=H(`table option`),E=`=`,D=B(`=`,!1),yt=function(e){return{auto_increment:e}},bt=`avg_row_length`,xt=B(`AVG_ROW_LENGTH`,!0),St=function(e){return{avg_row_length:e}},Ct=function(e){return{charset_name:e}},wt=function(e){return{collation_name:e}},Tt=`compression`,Et=B(`COMPRESSION`,!0),Dt=`zlib`,Ot=B(`ZLIB`,!0),kt=`lz4`,At=B(`LZ4`,!0),jt=`none`,Mt=B(`NONE`,!0),Nt=function(e){return{compression:e.toUpperCase()}},Pt=`connection`,Ft=B(`CONNECTION`,!0),It=`connect_string`,Lt=B(`connect_string`,!1),Rt=function(e){return{connect_string:e}},zt=`encryption`,Bt=B(`ENCRYPTION`,!0),Vt=`y`,Ht=B(`Y`,!0),Ut=`n`,Wt=B(`N`,!0),Gt=function(e){return{encryption:e.toUpperCase()}},Kt=`engine`,qt=B(`ENGINE`,!0),Jt=function(e){return{engine:e}},Yt=`insert_method`,Xt=B(`INSERT_METHOD`,!0),Zt=`no`,Qt=B(`NO`,!0),$t=`first`,en=B(`FIRST`,!0),tn=`last`,nn=B(`LAST`,!0),rn=function(e){return{insert_method:e.toUpperCase()}},an=`max_rows`,on=B(`MAX_ROWS`,!0),sn=function(e){return{max_rows:e}},cn=`min_rows`,ln=B(`MIN_ROWS`,!0),un=function(e){return{min_rows:e}},dn=`tablespace`,fn=B(`TABLESPACE`,!0),pn=`STORAGE`,mn=B(`STORAGE`,!1),hn=`disk`,gn=B(`DISK`,!0),_n=`memory`,vn=B(`MEMORY`,!0),yn=function(e){return{tablespace:e}},bn=function(e){return{comment:e}},xn=`enforce`,Sn=B(`ENFORCE`,!0),Cn=function(e,t){let n=$.flatten(t.filter(e=>e.type===`add_fk`).map(e=>e.fks));n.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName}),Ko.push(...n);let r=$.flatten(t.filter(e=>e.type===`add_pk`).map(e=>e.pks)),i=Jo(e.schemaName,e.name),a={columns:r.map(e=>({value:e,type:`column`})),pk:!0};if(r.length>1)i.indexes?i.indexes.push(a):i.indexes=[a];else if(r.length===1){let e=i.fields.find(e=>e.name===r[0]);e.pk=!0}},wn=`add`,Tn=B(`ADD`,!0),En=function(e){return{type:`add_fk`,fks:e}},Dn=function(e){return{type:`add_pk`,pks:e}},On=`column`,kn=B(`COLUMN`,!0),An=function(e,t){return{type:`add_column`,field:{col_name:e,col_type:t}}},jn=function(e,t){return{type:`add_index`,index:{column:t}}},Mn=`change`,Nn=B(`CHANGE`,!0),O=/^[^;]/,k=V([`;`],!0,!1),Pn=`drop`,Fn=B(`DROP`,!0),In=function(e,t,n,r,i,a){let o={columns:i},s=a&&a.type===`index_type`?a.value:null;t&&(o.name=t),e.toLowerCase()===`unique`&&(o.unique=!0);let c=s||r;c&&(o.type=c);let l=Jo(n.schemaName,n.name);l.indexes?l.indexes.push(o):l.indexes=[o]},Ln=function(e){return e},Rn=function(e,t){return[e,...t.map(e=>e[3])]},zn=function(e,t){return{value:`${e}(${Yo($.flattenDeep(t).join(``))})`,type:`expression`}},Bn=function(e){return{value:`${e}`,type:`string`}},Vn=function(e){return{value:`${e}`,type:`expression`}},Hn=`COLLATE`,Un=B(`COLLATE`,!1),Wn=`NULLS`,Gn=B(`NULLS`,!1),Kn=`FIRST`,qn=B(`FIRST`,!1),Jn=`LAST`,Yn=B(`LAST`,!1),Xn=function(e){return e},Zn=`key_block_size`,Qn=B(`KEY_BLOCK_SIZE`,!0),$n=`with`,er=B(`WITH`,!0),tr=`parser`,nr=B(`PARSER`,!0),rr=`comment`,ir=B(`COMMENT`,!0),ar=`string`,or=B(`string`,!1),sr=`visible`,cr=B(`VISIBLE`,!0),lr=`invisible`,ur=B(`INVISIBLE`,!0),dr=function(e){return{type:`index_type`,value:e}},fr=`alter`,pr=B(`ALTER`,!0),A=Da(),mr=`insert`,hr=B(`INSERT`,!0),gr=`;`,_r=B(`;`,!1),vr=`create`,yr=B(`CREATE`,!0),br=`schema`,xr=B(`SCHEMA`,!0),Sr=`database`,Cr=B(`DATABASE`,!0),wr=`use`,Tr=B(`USE`,!0),Er=`begin`,Dr=B(`BEGIN`,!0),Or=`commit`,kr=B(`COMMIT`,!0),Ar=`rollback`,jr=B(`ROLLBACK`,!0),Mr=function(e,t){return[e,...t.map(e=>e[2])]},j=`'`,M=B(`'`,!1),Nr=/^[^']/,Pr=V([`'`],!0,!1),Fr=function(e,t){return t.join(``)},N=`"`,P=B(`"`,!1),Ir=/^[^"]/,Lr=V([`"`],!0,!1),Rr=H(`CREATE TABLE`),zr=`temporary`,Br=B(`TEMPORARY`,!0),Vr=`table`,Hr=B(`TABLE`,!0),Ur=H(`IF NOT EXISTS`),Wr=`if`,Gr=B(`IF`,!0),Kr=`exists`,qr=B(`EXISTS`,!0),Jr=H(`ALTER TABLE`),Yr=H(`CREATE INDEX`),Xr=function(e){return e},Zr=function(){return`INDEX`},Qr=`primary`,$r=B(`PRIMARY`,!0),ei=`foreign`,ti=B(`FOREIGN`,!0),ni=`references`,ri=B(`REFERENCES`,!0),ii=`restrict`,ai=B(`RESTRICT`,!0),oi=`cascade`,si=B(`CASCADE`,!0),ci=`action`,li=B(`ACTION`,!0),ui=H(`index type`),di=`using`,fi=B(`USING`,!0),pi=`btree`,mi=B(`BTREE`,!0),hi=`hash`,gi=B(`HASH`,!0),_i=function(e){return e.toUpperCase()},vi=H(`valid name`),yi=function(e){return e.join(``)},bi=/^[^`]/,xi=V(["`"],!0,!1),Si=`.`,Ci=B(`.`,!1),wi=function(e){let t=null,n=null;return e&&e.length>0&&(e.length===1?n=e[0][0]:(t=e[0][0],n=e[1][0])),{dbName:t,schemaName:n}},Ti=H(`valid table name`),Ei=function(e,t){return{...e,name:t}},Di=H(`type`),Oi=function(e){return e},ki=function(e){return{type_name:e}},Ai=function(e,t){return t=t?t[2]:null,e.toLowerCase()!==`enum`&&(e=t?e+`(`+t+`)`:e),{type_name:e,args:t}},ji=H(`expression`),Mi=function(e){return Yo($.flattenDeep(e).join(``))},Ni=`,`,Pi=B(`,`,!1),Fi=`);`,Ii=B(`);`,!1),Li=function(e){return $.flattenDeep(e).join(``)},Ri=/^[',.a-z0-9_+-`%]/i,zi=V([`'`,`,`,`.`,[`a`,`z`],[`0`,`9`],`_`,[`+`,"`"],`%`],!1,!0),Bi=/^['.a-z0-9_+\-]/i,Vi=V([`'`,`.`,[`a`,`z`],[`0`,`9`],`_`,`+`,`-`],!1,!0),Hi=H(`letter, number or underscore`),Ui=/^[a-z0-9_]/i,Wi=V([[`a`,`z`],[`0`,`9`],`_`],!1,!0),Gi=` `,Ki=B(` `,!1),qi="`",Ji=B("`",!1),Yi=` `,Xi=B(` `,!1),Zi=H(`endline`),Qi=H(`newline`),$i=`\r
2
2
  `,ea=B(`\r
3
3
  `,!1),ta=`
4
4
  `,na=B(`
@@ -1,6 +1,6 @@
1
1
  import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.mjs";
2
- import { require_lodash as t } from "../../packages/dbml-core/node_modules/lodash/lodash.mjs";
3
- import { require_pluralize as n } from "../../node_modules/pluralize/pluralize.mjs";
2
+ import { require_lodash as t } from "../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.mjs";
3
+ import { require_pluralize as n } from "../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.mjs";
4
4
  //#region src/parse/deprecated/mysqlParser.cjs
5
5
  var r = /* @__PURE__ */ e(((e, r) => {
6
6
  t(), n();
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../packages/dbml-core/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{var i=t.default;n.default;function a(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function o(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,o)}a(o,Error),o.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function s(e,t){t=t===void 0?{}:t;var n={},r={parser:Dl},a=Dl,s=function(e){return e.forEach(e=>{let{command_name:t,value:{syntax_name:n,value:r},warning:i}=e;switch(t.toLowerCase()){case`create_table`:let e=r;switch(n.toLowerCase()){case`create_table_normal`:Qf.push(e);let t=[];if(e.fields.forEach(n=>{n.inline_refs&&$f.push(...n.inline_refs.map(t=>({name:t.name,endpoints:[{tableName:e.name,schemaName:e.schemaName,fieldNames:[n.name],relation:`*`},t.endpoint],onDelete:t.onDelete,onUpdate:t.onUpdate}))),n.pk&&t.push(n)}),t.length>1){e.fields=e.fields.map(e=>(delete e.pk,e));let n={columns:t.map(e=>({value:e.name,type:`column`})),pk:!0};e.indexes?e.indexes.push(n):e.indexes=[n]}break;case`create_table_of`:break;case`create_table_partition_of`:break}break;case`create_index`:let{table_name:t}=r;delete r.table_name;let i=np(t.schemaName,t.name);i.indexes?i.indexes.push(r):i.indexes=[r];break;case`create_type`:switch(n.toLowerCase()){case`create_type_enum`:ep.push(r);break;case`create_type_range`:break}break;case`alter_table`:switch(n.toLowerCase()){case`alter_table_action`:r.forEach(e=>{let{type:t}=e;switch(t.toLowerCase()){case`fk`:e.t_value.forEach(e=>{$f.push(e)})}});break}break;case`comment`:switch(n.toLowerCase()){case`column`:{let{schemaName:e,tableName:t,columnName:n}=r,i=np(e,t);if(i){let e=rp(i,n);e&&(e.note=r.text?{value:r.text}:null)}break}case`table`:{let{schemaName:e,name:t}=r.table_name,n=np(e,t);n&&(n.note=r.text?{value:r.text}:null);break}}break;case`ignore_syntax`:break}}),{tables:Qf,refs:$f,enums:ep}},c=`create`,l=U(`CREATE`,!0),u=`alter`,d=U(`ALTER`,!0),f=`unique`,p=U(`UNIQUE`,!0),m=`index`,h=U(`INDEX`,!0),g=`type`,_=U(`TYPE`,!0),v=`enum`,y=U(`ENUM`,!0),b=`concurrenly`,x=U(`CONCURRENLY`,!0),S=`foreign`,C=U(`FOREIGN`,!0),w=`key`,T=U(`KEY`,!0),E=`references`,D=U(`REFERENCES`,!0),O=`on`,k=U(`ON`,!0),A=`using`,j=U(`USING`,!0),M=`table`,N=U(`TABLE`,!0),ee=`if`,te=U(`IF`,!0),ne=`not`,re=U(`NOT`,!0),ie=`exists`,ae=U(`EXISTS`,!0),oe=`global`,se=U(`GLOBAL`,!0),ce=`local`,le=U(`LOCAL`,!0),ue=`temporary`,de=U(`TEMPORARY`,!0),fe=`temp`,pe=U(`TEMP`,!0),me=`unlogged`,he=U(`UNLOGGED`,!0),ge=`collate`,_e=U(`COLLATE`,!0),ve=`partition`,ye=U(`PARTITION`,!0),be=`by`,xe=U(`BY`,!0),Se=`range`,Ce=U(`RANGE`,!0),we=`list`,Te=U(`LIST`,!0),Ee=`hash`,De=U(`HASH`,!0),Oe=`like`,ke=U(`LIKE`,!0),Ae=`inherits`,je=U(`INHERITS`,!0),Me=`inherit`,Ne=U(`INHERIT`,!0),Pe=`with`,Fe=U(`WITH`,!0),Ie=`without`,Le=U(`WITHOUT`,!0),Re=`oids`,ze=U(`OIDS`,!0),Be=`commit`,Ve=U(`COMMIT`,!0),He=`preserve`,Ue=U(`PRESERVE`,!0),We=`rows`,Ge=U(`ROWS`,!0),Ke=`delete`,qe=U(`DELETE`,!0),Je=`drop`,Ye=U(`DROP`,!0),Xe=`tablespace`,Ze=U(`TABLESPACE`,!0),Qe=`constraint`,$e=U(`CONSTRAINT`,!0),et=`no`,tt=U(`NO`,!0),nt=`null`,rt=U(`NULL`,!0),it=`check`,at=U(`CHECK`,!0),ot=`default`,st=U(`DEFAULT`,!0),ct=`primary`,lt=U(`PRIMARY`,!0),ut=`match`,dt=U(`MATCH`,!0),ft=`full`,pt=U(`FULL`,!0),mt=`partial`,ht=U(`PARTIAL`,!0),gt=`simple`,_t=U(`SIMPLE`,!0),vt=`update`,yt=U(`UPDATE`,!0),bt=`deferrable`,xt=U(`DEFERRABLE`,!0),St=`initially`,Ct=U(`INITIALLY`,!0),wt=`deferred`,Tt=U(`DEFERRED`,!0),Et=`immediate`,Dt=U(`IMMEDIATE`,!0),Ot=`exclude`,kt=U(`EXCLUDE`,!0),At=`where`,jt=U(`WHERE`,!0),Mt=`including`,Nt=U(`INCLUDING`,!0),Pt=`excluding`,Ft=U(`EXCLUDING`,!0),It=`comments`,Lt=U(`COMMENTS`,!0),Rt=`constraints`,zt=U(`CONSTRAINTS`,!0),Bt=`generated`,Vt=U(`GENERATED`,!0),Ht=`always`,Ut=U(`ALWAYS`,!0),Wt=`as`,Gt=U(`AS`,!0),Kt=`add`,qt=U(`ADD`,!0),Jt=`only`,Yt=U(`ONLY`,!0),Xt=`defaults`,Zt=U(`DEFAULTS`,!0),Qt=`identity`,$t=U(`IDENTITY`,!0),en=`indexes`,tn=U(`INDEXES`,!0),nn=`statistics`,rn=U(`STATISTICS`,!0),an=`storage`,on=U(`STORAGE`,!0),sn=`include`,cn=U(`INCLUDE`,!0),ln=`includes`,un=U(`INCLUDES`,!0),dn=`all`,fn=U(`ALL`,!0),pn=`of`,mn=U(`OF`,!0),hn=`options`,gn=U(`OPTIONS`,!0),_n=`for`,vn=U(`FOR`,!0),yn=`values`,bn=U(`VALUES`,!0),xn=`in`,Sn=U(`IN`,!0),Cn=`from`,wn=U(`FROM`,!0),Tn=`to`,En=U(`TO`,!0),Dn=`modulus`,On=U(`MODULUS`,!0),kn=`remainder`,An=U(`REMAINDER`,!0),jn=`true`,Mn=U(`TRUE`,!0),Nn=`false`,Pn=U(`FALSE`,!0),Fn=`maxvalue`,In=U(`MAXVALUE`,!0),Ln=`minvalue`,Rn=U(`MINVALUE`,!0),zn=`subtype`,Bn=U(`SUBTYPE`,!0),Vn=`subtype_opclass`,Hn=U(`SUBTYPE_OPCLASS`,!0),Un=`canonical`,Wn=U(`CANONICAL`,!0),Gn=`subtype_diff`,Kn=U(`SUBTYPE_DIFF`,!0),qn=`valid`,Jn=U(`VALID`,!0),Yn=`column`,Xn=U(`COLUMN`,!0),Zn=`set`,Qn=U(`SET`,!0),$n=`data`,er=U(`DATA`,!0),tr=`reset`,nr=U(`RESET`,!0),rr=`plain`,ir=U(`PLAIN`,!0),ar=`external`,or=U(`EXTERNAL`,!0),sr=`extended`,cr=U(`EXTENDED`,!0),lr=`main`,ur=U(`MAIN`,!0),dr=`comment`,fr=U(`COMMENT`,!0),pr=`IS`,mr=U(`IS`,!1),hr=`insert`,gr=U(`INSERT`,!0),_r=`select`,vr=U(`SELECT`,!0),yr=`use`,br=U(`USE`,!0),xr=`sequence`,Sr=U(`SEQUENCE`,!0),Cr=`schema`,wr=U(`SCHEMA`,!0),Tr=`view`,Er=U(`VIEW`,!0),Dr=`rename`,Or=U(`RENAME`,!0),kr=`owned`,Ar=U(`OWNED`,!0),jr=`attach`,Mr=U(`ATTACH`,!0),Nr=`detach`,Pr=U(`DETACH`,!0),Fr=Cl(`expression`),Ir=function(e){return tp(i.flattenDeep(e).join(``))},P=`(`,F=U(`(`,!1),I=`)`,L=U(`)`,!1),Lr=`,`,Rr=U(`,`,!1),zr=`);`,Br=U(`);`,!1),Vr=xl(),Hr=function(e){return i.flattenDeep(e).join(``)},Ur=/^["',.a-z0-9_+-:<>=!*]/i,Wr=bl([`"`,`'`,`,`,`.`,[`a`,`z`],[`0`,`9`],`_`,[`+`,`:`],`<`,`>`,`=`,`!`,`*`],!1,!0),Gr=/^['.a-z0-9_+\-]/i,Kr=bl([`'`,`.`,[`a`,`z`],[`0`,`9`],`_`,`+`,`-`],!1,!0),qr=Cl(`valid column name`),Jr=`.`,Yr=U(`.`,!1),Xr=function(e){let t=null,n=null;return e&&e.length>0&&(e.length===1?n=e[0][0]:(t=e[0][0],n=e[1][0])),{dbName:t,schemaName:n}},Zr=Cl(`valid table name`),Qr=function(e,t){return{...e,name:t}},$r=Cl(`valid enum name`),ei=Cl(`string`),ti=`'`,ni=U(`'`,!1),ri=function(e){return e.join(``)},ii=`''`,ai=U(`''`,!1),oi=function(){return`'`},si=/^[^']/,ci=bl([`'`],!0,!1),li=`"`,ui=U(`"`,!1),di=function(e){return e.join(``)},fi=`""`,pi=U(`""`,!1),mi=function(){return`"`},hi=/^[^"]/,gi=bl([`"`],!0,!1),_i=Cl(`number`),vi=`e`,yi=U(`e`,!1),bi=`+`,xi=U(`+`,!1),Si=`-`,Ci=U(`-`,!1),wi=function(e){return i.flattenDeep(e).filter(e=>e).join(``)},Ti=function(e){return e.join(``)},Ei=/^[0-9]/,Di=bl([[`0`,`9`]],!1,!1),Oi=Cl(`VALID TYPE`),ki=`character`,Ai=U(`CHARACTER`,!0),ji=`varying`,Mi=U(`VARYING`,!0),Ni=function(e,t,n,r){let i=`${e} ${t}`;return i=n?i+`(`+n[1]+`)`:i,{type_name:i+(r?r.map(e=>`[`+e+`]`).join(``):``),args:n?n[1]:null}},Pi=`timestamptz`,Fi=U(`timestamptz`,!0),Ii=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`timestamptz`:`timestamptz(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Li=`timestamp`,Ri=U(`timestamp`,!0),zi=U(`without`,!0),Bi=U(`with`,!0),Vi=`time`,Hi=U(`time`,!0),Ui=`zone`,Wi=U(`zone`,!0),Gi=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`timestamp`:`timestamp(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Ki=`timetz`,qi=U(`timetz`,!0),Ji=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`timetz`:`timetz(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Yi=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`time`:`time(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Xi=function(e,t){let n=e.args;return{type_name:e.type_name+(t?t.map(e=>`[`+e+`]`).join(``):``),schemaName:e.schemaName,args:n}},Zi=/^[^"\n]/,Qi=bl([`"`,`
1
+ "use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{var i=t.default;n.default;function a(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function o(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,o)}a(o,Error),o.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function s(e,t){t=t===void 0?{}:t;var n={},r={parser:Dl},a=Dl,s=function(e){return e.forEach(e=>{let{command_name:t,value:{syntax_name:n,value:r},warning:i}=e;switch(t.toLowerCase()){case`create_table`:let e=r;switch(n.toLowerCase()){case`create_table_normal`:Qf.push(e);let t=[];if(e.fields.forEach(n=>{n.inline_refs&&$f.push(...n.inline_refs.map(t=>({name:t.name,endpoints:[{tableName:e.name,schemaName:e.schemaName,fieldNames:[n.name],relation:`*`},t.endpoint],onDelete:t.onDelete,onUpdate:t.onUpdate}))),n.pk&&t.push(n)}),t.length>1){e.fields=e.fields.map(e=>(delete e.pk,e));let n={columns:t.map(e=>({value:e.name,type:`column`})),pk:!0};e.indexes?e.indexes.push(n):e.indexes=[n]}break;case`create_table_of`:break;case`create_table_partition_of`:break}break;case`create_index`:let{table_name:t}=r;delete r.table_name;let i=np(t.schemaName,t.name);i.indexes?i.indexes.push(r):i.indexes=[r];break;case`create_type`:switch(n.toLowerCase()){case`create_type_enum`:ep.push(r);break;case`create_type_range`:break}break;case`alter_table`:switch(n.toLowerCase()){case`alter_table_action`:r.forEach(e=>{let{type:t}=e;switch(t.toLowerCase()){case`fk`:e.t_value.forEach(e=>{$f.push(e)})}});break}break;case`comment`:switch(n.toLowerCase()){case`column`:{let{schemaName:e,tableName:t,columnName:n}=r,i=np(e,t);if(i){let e=rp(i,n);e&&(e.note=r.text?{value:r.text}:null)}break}case`table`:{let{schemaName:e,name:t}=r.table_name,n=np(e,t);n&&(n.note=r.text?{value:r.text}:null);break}}break;case`ignore_syntax`:break}}),{tables:Qf,refs:$f,enums:ep}},c=`create`,l=U(`CREATE`,!0),u=`alter`,d=U(`ALTER`,!0),f=`unique`,p=U(`UNIQUE`,!0),m=`index`,h=U(`INDEX`,!0),g=`type`,_=U(`TYPE`,!0),v=`enum`,y=U(`ENUM`,!0),b=`concurrenly`,x=U(`CONCURRENLY`,!0),S=`foreign`,C=U(`FOREIGN`,!0),w=`key`,T=U(`KEY`,!0),E=`references`,D=U(`REFERENCES`,!0),O=`on`,k=U(`ON`,!0),A=`using`,j=U(`USING`,!0),M=`table`,N=U(`TABLE`,!0),ee=`if`,te=U(`IF`,!0),ne=`not`,re=U(`NOT`,!0),ie=`exists`,ae=U(`EXISTS`,!0),oe=`global`,se=U(`GLOBAL`,!0),ce=`local`,le=U(`LOCAL`,!0),ue=`temporary`,de=U(`TEMPORARY`,!0),fe=`temp`,pe=U(`TEMP`,!0),me=`unlogged`,he=U(`UNLOGGED`,!0),ge=`collate`,_e=U(`COLLATE`,!0),ve=`partition`,ye=U(`PARTITION`,!0),be=`by`,xe=U(`BY`,!0),Se=`range`,Ce=U(`RANGE`,!0),we=`list`,Te=U(`LIST`,!0),Ee=`hash`,De=U(`HASH`,!0),Oe=`like`,ke=U(`LIKE`,!0),Ae=`inherits`,je=U(`INHERITS`,!0),Me=`inherit`,Ne=U(`INHERIT`,!0),Pe=`with`,Fe=U(`WITH`,!0),Ie=`without`,Le=U(`WITHOUT`,!0),Re=`oids`,ze=U(`OIDS`,!0),Be=`commit`,Ve=U(`COMMIT`,!0),He=`preserve`,Ue=U(`PRESERVE`,!0),We=`rows`,Ge=U(`ROWS`,!0),Ke=`delete`,qe=U(`DELETE`,!0),Je=`drop`,Ye=U(`DROP`,!0),Xe=`tablespace`,Ze=U(`TABLESPACE`,!0),Qe=`constraint`,$e=U(`CONSTRAINT`,!0),et=`no`,tt=U(`NO`,!0),nt=`null`,rt=U(`NULL`,!0),it=`check`,at=U(`CHECK`,!0),ot=`default`,st=U(`DEFAULT`,!0),ct=`primary`,lt=U(`PRIMARY`,!0),ut=`match`,dt=U(`MATCH`,!0),ft=`full`,pt=U(`FULL`,!0),mt=`partial`,ht=U(`PARTIAL`,!0),gt=`simple`,_t=U(`SIMPLE`,!0),vt=`update`,yt=U(`UPDATE`,!0),bt=`deferrable`,xt=U(`DEFERRABLE`,!0),St=`initially`,Ct=U(`INITIALLY`,!0),wt=`deferred`,Tt=U(`DEFERRED`,!0),Et=`immediate`,Dt=U(`IMMEDIATE`,!0),Ot=`exclude`,kt=U(`EXCLUDE`,!0),At=`where`,jt=U(`WHERE`,!0),Mt=`including`,Nt=U(`INCLUDING`,!0),Pt=`excluding`,Ft=U(`EXCLUDING`,!0),It=`comments`,Lt=U(`COMMENTS`,!0),Rt=`constraints`,zt=U(`CONSTRAINTS`,!0),Bt=`generated`,Vt=U(`GENERATED`,!0),Ht=`always`,Ut=U(`ALWAYS`,!0),Wt=`as`,Gt=U(`AS`,!0),Kt=`add`,qt=U(`ADD`,!0),Jt=`only`,Yt=U(`ONLY`,!0),Xt=`defaults`,Zt=U(`DEFAULTS`,!0),Qt=`identity`,$t=U(`IDENTITY`,!0),en=`indexes`,tn=U(`INDEXES`,!0),nn=`statistics`,rn=U(`STATISTICS`,!0),an=`storage`,on=U(`STORAGE`,!0),sn=`include`,cn=U(`INCLUDE`,!0),ln=`includes`,un=U(`INCLUDES`,!0),dn=`all`,fn=U(`ALL`,!0),pn=`of`,mn=U(`OF`,!0),hn=`options`,gn=U(`OPTIONS`,!0),_n=`for`,vn=U(`FOR`,!0),yn=`values`,bn=U(`VALUES`,!0),xn=`in`,Sn=U(`IN`,!0),Cn=`from`,wn=U(`FROM`,!0),Tn=`to`,En=U(`TO`,!0),Dn=`modulus`,On=U(`MODULUS`,!0),kn=`remainder`,An=U(`REMAINDER`,!0),jn=`true`,Mn=U(`TRUE`,!0),Nn=`false`,Pn=U(`FALSE`,!0),Fn=`maxvalue`,In=U(`MAXVALUE`,!0),Ln=`minvalue`,Rn=U(`MINVALUE`,!0),zn=`subtype`,Bn=U(`SUBTYPE`,!0),Vn=`subtype_opclass`,Hn=U(`SUBTYPE_OPCLASS`,!0),Un=`canonical`,Wn=U(`CANONICAL`,!0),Gn=`subtype_diff`,Kn=U(`SUBTYPE_DIFF`,!0),qn=`valid`,Jn=U(`VALID`,!0),Yn=`column`,Xn=U(`COLUMN`,!0),Zn=`set`,Qn=U(`SET`,!0),$n=`data`,er=U(`DATA`,!0),tr=`reset`,nr=U(`RESET`,!0),rr=`plain`,ir=U(`PLAIN`,!0),ar=`external`,or=U(`EXTERNAL`,!0),sr=`extended`,cr=U(`EXTENDED`,!0),lr=`main`,ur=U(`MAIN`,!0),dr=`comment`,fr=U(`COMMENT`,!0),pr=`IS`,mr=U(`IS`,!1),hr=`insert`,gr=U(`INSERT`,!0),_r=`select`,vr=U(`SELECT`,!0),yr=`use`,br=U(`USE`,!0),xr=`sequence`,Sr=U(`SEQUENCE`,!0),Cr=`schema`,wr=U(`SCHEMA`,!0),Tr=`view`,Er=U(`VIEW`,!0),Dr=`rename`,Or=U(`RENAME`,!0),kr=`owned`,Ar=U(`OWNED`,!0),jr=`attach`,Mr=U(`ATTACH`,!0),Nr=`detach`,Pr=U(`DETACH`,!0),Fr=Cl(`expression`),Ir=function(e){return tp(i.flattenDeep(e).join(``))},P=`(`,F=U(`(`,!1),I=`)`,L=U(`)`,!1),Lr=`,`,Rr=U(`,`,!1),zr=`);`,Br=U(`);`,!1),Vr=xl(),Hr=function(e){return i.flattenDeep(e).join(``)},Ur=/^["',.a-z0-9_+-:<>=!*]/i,Wr=bl([`"`,`'`,`,`,`.`,[`a`,`z`],[`0`,`9`],`_`,[`+`,`:`],`<`,`>`,`=`,`!`,`*`],!1,!0),Gr=/^['.a-z0-9_+\-]/i,Kr=bl([`'`,`.`,[`a`,`z`],[`0`,`9`],`_`,`+`,`-`],!1,!0),qr=Cl(`valid column name`),Jr=`.`,Yr=U(`.`,!1),Xr=function(e){let t=null,n=null;return e&&e.length>0&&(e.length===1?n=e[0][0]:(t=e[0][0],n=e[1][0])),{dbName:t,schemaName:n}},Zr=Cl(`valid table name`),Qr=function(e,t){return{...e,name:t}},$r=Cl(`valid enum name`),ei=Cl(`string`),ti=`'`,ni=U(`'`,!1),ri=function(e){return e.join(``)},ii=`''`,ai=U(`''`,!1),oi=function(){return`'`},si=/^[^']/,ci=bl([`'`],!0,!1),li=`"`,ui=U(`"`,!1),di=function(e){return e.join(``)},fi=`""`,pi=U(`""`,!1),mi=function(){return`"`},hi=/^[^"]/,gi=bl([`"`],!0,!1),_i=Cl(`number`),vi=`e`,yi=U(`e`,!1),bi=`+`,xi=U(`+`,!1),Si=`-`,Ci=U(`-`,!1),wi=function(e){return i.flattenDeep(e).filter(e=>e).join(``)},Ti=function(e){return e.join(``)},Ei=/^[0-9]/,Di=bl([[`0`,`9`]],!1,!1),Oi=Cl(`VALID TYPE`),ki=`character`,Ai=U(`CHARACTER`,!0),ji=`varying`,Mi=U(`VARYING`,!0),Ni=function(e,t,n,r){let i=`${e} ${t}`;return i=n?i+`(`+n[1]+`)`:i,{type_name:i+(r?r.map(e=>`[`+e+`]`).join(``):``),args:n?n[1]:null}},Pi=`timestamptz`,Fi=U(`timestamptz`,!0),Ii=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`timestamptz`:`timestamptz(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Li=`timestamp`,Ri=U(`timestamp`,!0),zi=U(`without`,!0),Bi=U(`with`,!0),Vi=`time`,Hi=U(`time`,!0),Ui=`zone`,Wi=U(`zone`,!0),Gi=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`timestamp`:`timestamp(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Ki=`timetz`,qi=U(`timetz`,!0),Ji=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`timetz`:`timetz(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Yi=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`time`:`time(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Xi=function(e,t){let n=e.args;return{type_name:e.type_name+(t?t.map(e=>`[`+e+`]`).join(``):``),schemaName:e.schemaName,args:n}},Zi=/^[^"\n]/,Qi=bl([`"`,`
2
2
  `],!0,!1),$i=function(e){return{type_name:e.join(``),args:null}},ea=function(e,t,n){let r=t.join(``);return n=n?n[1]:null,r.toLowerCase()!==`enum`&&(r=n?r+`(`+n+`)`:r),{...e,type_name:r,args:n}},ta=`array`,na=U(`array`,!0),ra=`[`,ia=U(`[`,!1),aa=`]`,oa=U(`]`,!1),sa=function(e){return[e?e[3]:``]},ca=function(e){return e.map(e=>e[2])},la=function(e){return{value:e,type:`string`}},ua=function(e){return{value:e,type:`number`}},da=function(e){return{value:e,type:`boolean`}},fa=function(e){let t=e;return e&&e.length>2&&e[0]===`(`&&e[e.length-1]===`)`&&(t=e.slice(1,-1)),{value:t,type:`expression`}},pa=` `,ma=U(` `,!1),ha=` `,ga=U(` `,!1),_a=`;`,va=U(`;`,!1),ya=Cl(`endline`),ba=Cl(`newline`),xa=`\r
3
3
  `,Sa=U(`\r
4
4
  `,!1),Ca=`
@@ -1,6 +1,6 @@
1
1
  import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.mjs";
2
- import { require_lodash as t } from "../../packages/dbml-core/node_modules/lodash/lodash.mjs";
3
- import { require_pluralize as n } from "../../node_modules/pluralize/pluralize.mjs";
2
+ import { require_lodash as t } from "../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.mjs";
3
+ import { require_pluralize as n } from "../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.mjs";
4
4
  //#region src/parse/deprecated/postgresParser.cjs
5
5
  var r = /* @__PURE__ */ e(((e, r) => {
6
6
  var i = t();
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../packages/dbml-core/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{t.default,n.default;function i(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function a(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,a)}i(a,Error),a.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function o(e,r){r=r===void 0?{}:r;var i={},o={schema:yt},s=yt,c=function(){return mn(Z)},l=function(e){let{table:t,refs:n}=e;an(t),un(n)},u=function(e){$(e)},d=`,`,f=L(`,`,!1),p=function(e,t,n){let r=n.find(e=>e.name)?.name;on(e,t,r)},m=function(e,t,n){return dn(fn(e,t,n))},h=`:`,g=L(`:`,!1),ee=function(e){return{columnName:e}},te=function(e){return{primaryKey:e}},ne=function(e,t){switch(e.toLowerCase()){case`on_delete`:return{onDelete:t.split(`_`).join(` `)};case`on_update`:return{onUpdate:t.split(`_`).join(` `)}}},re=function(e,t){let n={name:e,fields:sn(t.fields)};return t.checks&&t.checks.length>0&&(n.checks=t.checks),{table:n,refs:pn(n,t.references)}},ie=function(e){return{fields:e.filter(e=>e.isField).map(e=>e.field),index:e.filter(e=>e.isIndex).map(e=>e.index),references:e.filter(e=>e.isReferences).map(e=>e.reference),checks:e.filter(e=>e.isCheck).map(e=>e.check)}},ae=function(e){return e},oe=function(e){return{reference:e,isReferences:!0}},se=function(e){return{check:e,isCheck:!0}},ce=function(e){return{field:e,isField:!0}},le=function(e){return e},ue=function(e,t){let n={expression:e};for(let e=0;e<t.length;e++)t[e].name&&(n.name=t[e].name);return n},de=function(e,t){return{name:t,type:{type_name:e}}},fe=function(e){return e},pe=`name`,me=L(`name`,!0),he=function(e){return{name:e}},ge=`on_delete`,_e=L(`on_delete`,!0),ve=`on_update`,ye=L(`on_update`,!0),be=z(`create table`),xe=`create_table`,Se=L(`create_table`,!0),Ce=z(`index`),we=`.index`,Te=L(`.index`,!1),Ee=z(`references`),De=`.references`,Oe=L(`.references`,!1),ke=z(`check constraint`),_=`.check_constraint`,Ae=L(`.check_constraint`,!1),je=z(`add check constraint`),Me=`add_check_constraint`,Ne=L(`add_check_constraint`,!0),Pe=z(`add foreign key`),Fe=`add_foreign_key`,Ie=L(`add_foreign_key`,!0),Le=z(`column`),v=`column`,Re=L(`column`,!1),ze=z(`primary key`),y=`primary_key`,Be=L(`primary_key`,!1),b=`end`,Ve=L(`end`,!1),x=/^[^"\n]/,S=R([`"`,`
1
+ "use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{t.default,n.default;function i(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function a(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,a)}i(a,Error),a.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function o(e,r){r=r===void 0?{}:r;var i={},o={schema:yt},s=yt,c=function(){return mn(Z)},l=function(e){let{table:t,refs:n}=e;an(t),un(n)},u=function(e){$(e)},d=`,`,f=L(`,`,!1),p=function(e,t,n){let r=n.find(e=>e.name)?.name;on(e,t,r)},m=function(e,t,n){return dn(fn(e,t,n))},h=`:`,g=L(`:`,!1),ee=function(e){return{columnName:e}},te=function(e){return{primaryKey:e}},ne=function(e,t){switch(e.toLowerCase()){case`on_delete`:return{onDelete:t.split(`_`).join(` `)};case`on_update`:return{onUpdate:t.split(`_`).join(` `)}}},re=function(e,t){let n={name:e,fields:sn(t.fields)};return t.checks&&t.checks.length>0&&(n.checks=t.checks),{table:n,refs:pn(n,t.references)}},ie=function(e){return{fields:e.filter(e=>e.isField).map(e=>e.field),index:e.filter(e=>e.isIndex).map(e=>e.index),references:e.filter(e=>e.isReferences).map(e=>e.reference),checks:e.filter(e=>e.isCheck).map(e=>e.check)}},ae=function(e){return e},oe=function(e){return{reference:e,isReferences:!0}},se=function(e){return{check:e,isCheck:!0}},ce=function(e){return{field:e,isField:!0}},le=function(e){return e},ue=function(e,t){let n={expression:e};for(let e=0;e<t.length;e++)t[e].name&&(n.name=t[e].name);return n},de=function(e,t){return{name:t,type:{type_name:e}}},fe=function(e){return e},pe=`name`,me=L(`name`,!0),he=function(e){return{name:e}},ge=`on_delete`,_e=L(`on_delete`,!0),ve=`on_update`,ye=L(`on_update`,!0),be=z(`create table`),xe=`create_table`,Se=L(`create_table`,!0),Ce=z(`index`),we=`.index`,Te=L(`.index`,!1),Ee=z(`references`),De=`.references`,Oe=L(`.references`,!1),ke=z(`check constraint`),_=`.check_constraint`,Ae=L(`.check_constraint`,!1),je=z(`add check constraint`),Me=`add_check_constraint`,Ne=L(`add_check_constraint`,!0),Pe=z(`add foreign key`),Fe=`add_foreign_key`,Ie=L(`add_foreign_key`,!0),Le=z(`column`),v=`column`,Re=L(`column`,!1),ze=z(`primary key`),y=`primary_key`,Be=L(`primary_key`,!1),b=`end`,Ve=L(`end`,!1),x=/^[^"\n]/,S=R([`"`,`
2
2
  `],!0,!1),C=function(e){return e.join(``)},w=/^[^'\n]/,T=R([`'`,`
3
3
  `],!0,!1),He=`.`,Ue=L(`.`,!1),We=z(`letter, number or underscore`),Ge=/^[a-z0-9_.]/i,Ke=R([[`a`,`z`],[`0`,`9`],`_`,`.`],!1,!0),qe=z(`comment line`),Je=`#`,Ye=L(`#`,!1),Xe=z(`whatever`),E=/^[^\t\r\n]/,D=R([` `,`\r`,`
4
4
  `],!0,!1),Ze=`'`,Qe=L(`'`,!1),$e=`"`,et=L(`"`,!1),tt=z(`comment`),O=`//`,nt=L(`//`,!1),rt=/^[^\n]/,it=R([`
@@ -1,6 +1,6 @@
1
1
  import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.mjs";
2
- import { require_lodash as t } from "../../packages/dbml-core/node_modules/lodash/lodash.mjs";
3
- import { require_pluralize as n } from "../../node_modules/pluralize/pluralize.mjs";
2
+ import { require_lodash as t } from "../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.mjs";
3
+ import { require_pluralize as n } from "../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.mjs";
4
4
  //#region src/parse/deprecated/schemarbParser.cjs
5
5
  var r = /* @__PURE__ */ e(((e, r) => {
6
6
  t(), n();
@@ -1 +1 @@
1
- require("../_virtual/_rolldown/runtime.cjs");var e=require("../packages/dbml-core/package.json.cjs").version;exports.VERSION=e;
1
+ require("../_virtual/_rolldown/runtime.cjs");var e=require("../package.json.cjs").version;exports.VERSION=e;
@@ -1,4 +1,4 @@
1
- import { version as e } from "../packages/dbml-core/package.json.mjs";
1
+ import { version as e } from "../package.json.mjs";
2
2
  //#region src/utils/version.ts
3
3
  var t = e;
4
4
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/core",
4
- "version": "10.3.0",
4
+ "version": "10.4.0-alpha.0",
5
5
  "description": "> TODO: description",
6
6
  "author": "Holistics <dev@holistics.io>",
7
7
  "license": "Apache-2.0",
@@ -48,7 +48,7 @@
48
48
  "lint:fix": "eslint --fix ."
49
49
  },
50
50
  "dependencies": {
51
- "@dbml/parse": "^10.3.0",
51
+ "@dbml/parse": "^10.4.0-alpha.0",
52
52
  "antlr4": "^4.13.1",
53
53
  "lodash": "^4.18.1",
54
54
  "lodash-es": "^4.18.1",
@@ -59,7 +59,7 @@
59
59
  "devDependencies": {
60
60
  "bluebird": "^3.5.5"
61
61
  },
62
- "gitHead": "7b26e1a4849d627ecb64e5a614e50373ee60c208",
62
+ "gitHead": "ed4c390c2ce94cb9e73e3e84610917e1f15527ff",
63
63
  "engines": {
64
64
  "node": ">=16"
65
65
  }
@@ -1,3 +1,4 @@
1
+ import type { CustomMetadata } from '@dbml/parse';
1
2
  import Element, { Token, Color } from './element';
2
3
  import Endpoint from './endpoint';
3
4
  import Schema from './schema';
@@ -11,6 +12,7 @@ export interface RawRef {
11
12
  onDelete: any;
12
13
  onUpdate: any;
13
14
  inactive?: boolean;
15
+ metadata?: CustomMetadata;
14
16
  token: Token;
15
17
  schema: Schema;
16
18
  }
@@ -21,12 +23,13 @@ declare class Ref extends Element {
21
23
  onDelete: any;
22
24
  onUpdate: any;
23
25
  inactive?: boolean;
26
+ metadata: CustomMetadata;
24
27
  schema: Schema;
25
28
  dbState: DbState;
26
29
  id: number;
27
30
  database: Database;
28
31
  injectedPartial?: TablePartial;
29
- constructor({ name, endpoints, onDelete, onUpdate, token, schema }: RawRef);
32
+ constructor({ name, endpoints, onDelete, onUpdate, metadata, token, schema }: RawRef);
30
33
  generateId(): void;
31
34
  processEndpoints(rawEndpoints: any): void;
32
35
  equals(ref: any): any;
@@ -40,12 +43,14 @@ declare class Ref extends Element {
40
43
  name: string;
41
44
  onDelete: any;
42
45
  onUpdate: any;
46
+ metadata: CustomMetadata;
43
47
  injectedPartialId?: number;
44
48
  };
45
49
  shallowExport(): {
46
50
  name: string;
47
51
  onDelete: any;
48
52
  onUpdate: any;
53
+ metadata: CustomMetadata;
49
54
  injectedPartialId?: number;
50
55
  };
51
56
  exportChild(): {
@@ -71,6 +76,7 @@ export interface NormalizedRef {
71
76
  onUpdate?: string;
72
77
  onDelete?: string;
73
78
  inactive?: boolean;
79
+ metadata: CustomMetadata;
74
80
  schemaId: number;
75
81
  endpointIds: number[];
76
82
  injectedPartialId?: number;