@quilted/create 0.2.44 → 0.2.46

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 (277) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/esm/_virtual/index3.mjs +1 -1
  3. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.mjs +2 -2
  4. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.mjs +12 -10
  5. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.mjs +1 -2
  6. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.mjs +9 -9
  7. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.mjs +14 -14
  8. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.mjs +4 -4
  9. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.mjs +9 -3
  10. package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +0 -2
  11. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.mjs +39 -8
  12. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.mjs +40 -10
  13. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.mjs +2 -2
  14. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.mjs +101 -0
  15. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.mjs +1 -6
  16. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.mjs +6 -6
  17. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.mjs +7 -5
  18. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.mjs +79 -0
  19. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.mjs +69 -29
  20. package/build/esm/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.mjs +4 -4
  21. package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +2 -2
  22. package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.mjs +9 -3
  23. package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.mjs +3 -5
  24. package/build/esm/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.mjs +9 -3
  25. package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/babel.mjs +2448 -3000
  26. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.mjs +6611 -0
  27. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs +22 -0
  28. package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/yaml.mjs +1008 -1007
  29. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.mjs +3878 -0
  30. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.mjs +0 -1
  31. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
  32. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.mjs +0 -1
  33. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
  34. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.mjs +67 -0
  35. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.mjs +3 -0
  36. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.mjs +13 -3
  37. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +8 -4
  38. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.mjs +1 -1
  39. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +12 -5
  40. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +6 -2
  41. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +10 -7
  42. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +11 -3
  43. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +14 -1
  44. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.mjs +20 -7
  45. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +2 -2
  46. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.mjs +13 -10
  47. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.mjs +1 -1
  48. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.mjs +1 -0
  49. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.mjs +4 -4
  50. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.mjs +10 -3
  51. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.mjs +1 -1
  52. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.mjs +7 -0
  53. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.mjs +9 -2
  54. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.mjs +2 -2
  55. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.mjs +44 -0
  56. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.mjs +1 -1
  57. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.mjs +2 -1
  58. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +28 -4
  59. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +22 -4
  60. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +53 -0
  61. package/build/esm/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.mjs → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.mjs} +1 -14
  62. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.mjs +1 -1
  63. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.mjs +1 -0
  64. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.mjs +34 -21
  65. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.mjs +16 -9
  66. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.mjs +2 -0
  67. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.mjs +2 -3
  68. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.mjs +16 -0
  69. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.mjs +16 -0
  70. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.mjs +1 -1
  71. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.mjs +1 -1
  72. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.mjs +20 -9
  73. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +3 -6
  74. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +1 -1
  75. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +1 -1
  76. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +48 -0
  77. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +10 -9
  78. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +4 -2
  79. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +2 -1
  80. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +15 -14
  81. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +2 -4
  82. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +19 -10
  83. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.mjs +8 -2
  84. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +9 -17
  85. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +1 -1
  86. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +40 -17
  87. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +40 -20
  88. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.mjs +1 -1
  89. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.mjs +2 -1
  90. package/build/esm/package.mjs +1 -1
  91. package/build/esm/shared/package-manager.mjs +1 -2
  92. package/build/esm/shared.mjs +1 -3
  93. package/build/esnext/_virtual/index3.esnext +1 -1
  94. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +1 -1
  95. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +1 -1
  96. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +1 -1
  97. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +1 -1
  98. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +1 -1
  99. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +1 -1
  100. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.esnext +2 -2
  101. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.esnext +10 -9
  102. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.esnext +1 -1
  103. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.esnext +9 -9
  104. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.esnext +14 -14
  105. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.esnext +4 -4
  106. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.esnext +9 -3
  107. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.esnext +35 -4
  108. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.esnext +14 -2
  109. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.esnext +92 -0
  110. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.esnext +1 -2
  111. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.esnext +3 -2
  112. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.esnext +58 -0
  113. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.esnext +27 -6
  114. package/build/esnext/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.esnext +4 -4
  115. package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +2 -2
  116. package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.esnext +6 -4
  117. package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.esnext +3 -3
  118. package/build/esnext/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.esnext +8 -3
  119. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/babel.esnext +6956 -0
  120. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.esnext +4320 -0
  121. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.esnext +12888 -0
  122. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/yaml.esnext +4156 -0
  123. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.esnext +2369 -0
  124. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.esnext +60 -0
  125. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.esnext +2 -0
  126. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.esnext +11 -3
  127. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.esnext +13 -5
  128. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.esnext +1 -1
  129. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.esnext +13 -4
  130. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +6 -2
  131. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.esnext +11 -6
  132. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.esnext +12 -3
  133. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +14 -1
  134. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.esnext +20 -9
  135. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.esnext +2 -2
  136. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.esnext +8 -13
  137. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.esnext +1 -1
  138. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.esnext +5 -3
  139. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.esnext +10 -4
  140. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.esnext +1 -1
  141. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.esnext +7 -0
  142. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.esnext +8 -2
  143. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.esnext +2 -2
  144. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.esnext +36 -0
  145. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.esnext +1 -1
  146. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.esnext +2 -1
  147. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +31 -4
  148. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.esnext +20 -4
  149. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +8 -38
  150. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.esnext → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.esnext} +1 -13
  151. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.esnext +1 -1
  152. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.esnext +1 -0
  153. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.esnext +45 -33
  154. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.esnext +12 -9
  155. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.esnext +3 -0
  156. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.esnext +2 -3
  157. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.esnext +17 -0
  158. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.esnext +17 -0
  159. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.esnext +1 -1
  160. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.esnext +1 -1
  161. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.esnext +22 -11
  162. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.esnext +3 -6
  163. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.esnext +1 -1
  164. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.esnext +1 -1
  165. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.esnext +50 -0
  166. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +10 -9
  167. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +4 -3
  168. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.esnext +2 -0
  169. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +15 -14
  170. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.esnext +2 -2
  171. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.esnext +20 -10
  172. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.esnext +9 -2
  173. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.esnext +20 -28
  174. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.esnext +1 -1
  175. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.esnext +44 -23
  176. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +38 -20
  177. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.esnext +1 -1
  178. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.esnext +2 -1
  179. package/build/esnext/package.esnext +1 -1
  180. package/build/esnext/shared/package-manager.esnext +1 -1
  181. package/build/esnext/shared.esnext +5 -6
  182. package/build/tsconfig.tsbuildinfo +1 -1
  183. package/build/typescript/shared/package-manager.d.ts.map +1 -1
  184. package/build/typescript/shared.d.ts.map +1 -1
  185. package/package.json +7 -7
  186. package/source/shared/package-manager.ts +0 -1
  187. package/source/shared.ts +1 -2
  188. package/templates/workspace/_nvmrc +1 -1
  189. package/templates/workspace/package.json +1 -1
  190. package/build/esm/_virtual/patterns.mjs +0 -3
  191. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +0 -32
  192. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +0 -76
  193. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +0 -45
  194. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +0 -6172
  195. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +0 -29
  196. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +0 -4076
  197. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -58
  198. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.mjs +0 -7
  199. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -83
  200. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -37
  201. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -34
  202. package/build/esnext/_virtual/patterns.esnext +0 -3
  203. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +0 -21
  204. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +0 -71
  205. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +0 -38
  206. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +0 -18
  207. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +0 -37
  208. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +0 -29
  209. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +0 -163
  210. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +0 -36
  211. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.esnext +0 -55
  212. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.esnext +0 -10
  213. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.esnext +0 -41
  214. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.esnext +0 -33
  215. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.mjs +0 -0
  216. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.mjs +0 -0
  217. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.mjs +0 -0
  218. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.mjs +0 -0
  219. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.mjs +0 -0
  220. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.mjs +0 -0
  221. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.mjs +0 -0
  222. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.mjs +0 -0
  223. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.mjs +0 -0
  224. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.mjs +0 -0
  225. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.mjs +0 -0
  226. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.mjs +0 -0
  227. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.mjs +0 -0
  228. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.mjs +0 -0
  229. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.mjs +0 -0
  230. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.mjs +0 -0
  231. /package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.mjs +0 -0
  232. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.mjs +0 -0
  233. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +0 -0
  234. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +0 -0
  235. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +0 -0
  236. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.mjs +0 -0
  237. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.mjs +0 -0
  238. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.mjs +0 -0
  239. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.mjs +0 -0
  240. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.mjs +0 -0
  241. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.mjs +0 -0
  242. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +0 -0
  243. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -0
  244. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -0
  245. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.esnext +0 -0
  246. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.esnext +0 -0
  247. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.esnext +0 -0
  248. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.esnext +0 -0
  249. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.esnext +0 -0
  250. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.esnext +0 -0
  251. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.esnext +0 -0
  252. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.esnext +0 -0
  253. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.esnext +0 -0
  254. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.esnext +0 -0
  255. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.esnext +0 -0
  256. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.esnext +0 -0
  257. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.esnext +0 -0
  258. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.esnext +0 -0
  259. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.esnext +0 -0
  260. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.esnext +0 -0
  261. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.esnext +0 -0
  262. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.esnext +0 -0
  263. /package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.esnext +0 -0
  264. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.esnext +0 -0
  265. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.esnext +0 -0
  266. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.esnext +0 -0
  267. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.esnext +0 -0
  268. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.esnext +0 -0
  269. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.esnext +0 -0
  270. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.esnext +0 -0
  271. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.esnext +0 -0
  272. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.esnext +0 -0
  273. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.esnext +0 -0
  274. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.esnext +0 -0
  275. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.esnext +0 -0
  276. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.esnext +0 -0
  277. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.esnext +0 -0
@@ -0,0 +1,2369 @@
1
+ var Au = Object.create;
2
+ var At = Object.defineProperty;
3
+ var vu = Object.getOwnPropertyDescriptor;
4
+ var Bu = Object.getOwnPropertyNames;
5
+ var wu = Object.getPrototypeOf, _u = Object.prototype.hasOwnProperty;
6
+ var dr = (e) => {
7
+ throw TypeError(e);
8
+ };
9
+ var pr = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), vt = (e, t) => {
10
+ for (var r in t) At(e, r, { get: t[r], enumerable: true });
11
+ }, xu = (e, t, r, n) => {
12
+ if (t && typeof t == "object" || typeof t == "function") for (let u of Bu(t)) !_u.call(e, u) && u !== r && At(e, u, { get: () => t[u], enumerable: !(n = vu(t, u)) || n.enumerable });
13
+ return e;
14
+ };
15
+ var Me = (e, t, r) => (r = e != null ? Au(wu(e)) : {}, xu(At(r, "default", { value: e, enumerable: true }) , e));
16
+ var bu = (e, t, r) => t.has(e) || dr("Cannot " + r);
17
+ var Fr = (e, t, r) => t.has(e) ? dr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r);
18
+ var pe = (e, t, r) => (bu(e, t, "access private method"), r);
19
+ var ot = pr((Da, mn) => {
20
+ var Fn = new Proxy(String, { get: () => Fn });
21
+ mn.exports = Fn;
22
+ });
23
+ var $n = pr((ur) => {
24
+ Object.defineProperty(ur, "__esModule", { value: true });
25
+ function wi() {
26
+ return new Proxy({}, { get: () => (e) => e });
27
+ }
28
+ var Wn = /\r\n|[\n\r\u2028\u2029]/;
29
+ function _i(e, t, r) {
30
+ let n = Object.assign({ column: 0, line: -1 }, e.start), u = Object.assign({}, n, e.end), { linesAbove: i = 2, linesBelow: o = 3 } = r || {}, s = n.line, a = n.column, D = u.line, l = u.column, p = Math.max(s - (i + 1), 0), f = Math.min(t.length, D + o);
31
+ s === -1 && (p = 0), D === -1 && (f = t.length);
32
+ let d = D - s, c = {};
33
+ if (d) for (let F = 0; F <= d; F++) {
34
+ let m = F + s;
35
+ if (!a) c[m] = true;
36
+ else if (F === 0) {
37
+ let h = t[m - 1].length;
38
+ c[m] = [a, h - a + 1];
39
+ } else if (F === d) c[m] = [0, l];
40
+ else {
41
+ let h = t[m - F].length;
42
+ c[m] = [0, h];
43
+ }
44
+ }
45
+ else a === l ? a ? c[s] = [a, 0] : c[s] = true : c[s] = [a, l - a];
46
+ return { start: p, end: f, markerLines: c };
47
+ }
48
+ function xi(e, t, r = {}) {
49
+ let u = wi(), i = e.split(Wn), { start: o, end: s, markerLines: a } = _i(t, i, r), D = t.start && typeof t.start.column == "number", l = String(s).length, f = e.split(Wn, s).slice(o, s).map((d, c) => {
50
+ let F = o + 1 + c, h = ` ${` ${F}`.slice(-l)} |`, C = a[F], v = !a[F + 1];
51
+ if (C) {
52
+ let E = "";
53
+ if (Array.isArray(C)) {
54
+ let g = d.slice(0, Math.max(C[0] - 1, 0)).replace(/[^\t]/g, " "), j = C[1] || 1;
55
+ E = [`
56
+ `, u.gutter(h.replace(/\d/g, " ")), " ", g, u.marker("^").repeat(j)].join(""), v && r.message && (E += " " + u.message(r.message));
57
+ }
58
+ return [u.marker(">"), u.gutter(h), d.length > 0 ? ` ${d}` : "", E].join("");
59
+ } else return ` ${u.gutter(h)}${d.length > 0 ? ` ${d}` : ""}`;
60
+ }).join(`
61
+ `);
62
+ return r.message && !D && (f = `${" ".repeat(l + 1)}${r.message}
63
+ ${f}`), f;
64
+ }
65
+ ur.codeFrameColumns = xi;
66
+ });
67
+ var fr = {};
68
+ vt(fr, { __debug: () => lo, check: () => ao, doc: () => Dr, format: () => yu, formatWithCursor: () => gu, getSupportInfo: () => Do, util: () => cr, version: () => cu });
69
+ var Nu = (e, t, r, n) => {
70
+ if (!(e && t == null)) return t.replaceAll ? t.replaceAll(r, n) : r.global ? t.replace(r, n) : t.split(r).join(n);
71
+ }, ne = Nu;
72
+ function U() {
73
+ }
74
+ U.prototype = { diff: function(t, r) {
75
+ var n, u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = u.callback;
76
+ typeof u == "function" && (i = u, u = {});
77
+ var o = this;
78
+ function s(E) {
79
+ return E = o.postProcess(E, u), i ? (setTimeout(function() {
80
+ i(E);
81
+ }, 0), true) : E;
82
+ }
83
+ t = this.castInput(t, u), r = this.castInput(r, u), t = this.removeEmpty(this.tokenize(t, u)), r = this.removeEmpty(this.tokenize(r, u));
84
+ var a = r.length, D = t.length, l = 1, p = a + D;
85
+ u.maxEditLength != null && (p = Math.min(p, u.maxEditLength));
86
+ var f = (n = u.timeout) !== null && n !== void 0 ? n : 1 / 0, d = Date.now() + f, c = [{ oldPos: -1, lastComponent: void 0 }], F = this.extractCommon(c[0], r, t, 0, u);
87
+ if (c[0].oldPos + 1 >= D && F + 1 >= a) return s(mr(o, c[0].lastComponent, r, t, o.useLongestToken));
88
+ var m = -1 / 0, h = 1 / 0;
89
+ function C() {
90
+ for (var E = Math.max(m, -l); E <= Math.min(h, l); E += 2) {
91
+ var g = void 0, j = c[E - 1], b = c[E + 1];
92
+ j && (c[E - 1] = void 0);
93
+ var X = false;
94
+ if (b) {
95
+ var ae = b.oldPos - E;
96
+ X = b && 0 <= ae && ae < a;
97
+ }
98
+ var $e = j && j.oldPos + 1 < D;
99
+ if (!X && !$e) {
100
+ c[E] = void 0;
101
+ continue;
102
+ }
103
+ if (!$e || X && j.oldPos < b.oldPos ? g = o.addToPath(b, true, false, 0, u) : g = o.addToPath(j, false, true, 1, u), F = o.extractCommon(g, r, t, E, u), g.oldPos + 1 >= D && F + 1 >= a) return s(mr(o, g.lastComponent, r, t, o.useLongestToken));
104
+ c[E] = g, g.oldPos + 1 >= D && (h = Math.min(h, E - 1)), F + 1 >= a && (m = Math.max(m, E + 1));
105
+ }
106
+ l++;
107
+ }
108
+ if (i) (function E() {
109
+ setTimeout(function() {
110
+ if (l > p || Date.now() > d) return i();
111
+ C() || E();
112
+ }, 0);
113
+ })();
114
+ else for (; l <= p && Date.now() <= d; ) {
115
+ var v = C();
116
+ if (v) return v;
117
+ }
118
+ }, addToPath: function(t, r, n, u, i) {
119
+ var o = t.lastComponent;
120
+ return o && !i.oneChangePerToken && o.added === r && o.removed === n ? { oldPos: t.oldPos + u, lastComponent: { count: o.count + 1, added: r, removed: n, previousComponent: o.previousComponent } } : { oldPos: t.oldPos + u, lastComponent: { count: 1, added: r, removed: n, previousComponent: o } };
121
+ }, extractCommon: function(t, r, n, u, i) {
122
+ for (var o = r.length, s = n.length, a = t.oldPos, D = a - u, l = 0; D + 1 < o && a + 1 < s && this.equals(n[a + 1], r[D + 1], i); ) D++, a++, l++, i.oneChangePerToken && (t.lastComponent = { count: 1, previousComponent: t.lastComponent, added: false, removed: false });
123
+ return l && !i.oneChangePerToken && (t.lastComponent = { count: l, previousComponent: t.lastComponent, added: false, removed: false }), t.oldPos = a, D;
124
+ }, equals: function(t, r, n) {
125
+ return n.comparator ? n.comparator(t, r) : t === r || n.ignoreCase && t.toLowerCase() === r.toLowerCase();
126
+ }, removeEmpty: function(t) {
127
+ for (var r = [], n = 0; n < t.length; n++) t[n] && r.push(t[n]);
128
+ return r;
129
+ }, castInput: function(t) {
130
+ return t;
131
+ }, tokenize: function(t) {
132
+ return Array.from(t);
133
+ }, join: function(t) {
134
+ return t.join("");
135
+ }, postProcess: function(t) {
136
+ return t;
137
+ } };
138
+ function mr(e, t, r, n, u) {
139
+ for (var i = [], o; t; ) i.push(t), o = t.previousComponent, delete t.previousComponent, t = o;
140
+ i.reverse();
141
+ for (var s = 0, a = i.length, D = 0, l = 0; s < a; s++) {
142
+ var p = i[s];
143
+ if (p.removed) p.value = e.join(n.slice(l, l + p.count)), l += p.count;
144
+ else {
145
+ if (!p.added && u) {
146
+ var f = r.slice(D, D + p.count);
147
+ f = f.map(function(d, c) {
148
+ var F = n[l + c];
149
+ return F.length > d.length ? F : d;
150
+ }), p.value = e.join(f);
151
+ } else p.value = e.join(r.slice(D, D + p.count));
152
+ D += p.count, p.added || (l += p.count);
153
+ }
154
+ }
155
+ return i;
156
+ }
157
+ function hr(e, t) {
158
+ var r;
159
+ for (r = 0; r < e.length && r < t.length; r++) if (e[r] != t[r]) return e.slice(0, r);
160
+ return e.slice(0, r);
161
+ }
162
+ function Er(e, t) {
163
+ var r;
164
+ if (!e || !t || e[e.length - 1] != t[t.length - 1]) return "";
165
+ for (r = 0; r < e.length && r < t.length; r++) if (e[e.length - (r + 1)] != t[t.length - (r + 1)]) return e.slice(-r);
166
+ return e.slice(-r);
167
+ }
168
+ function Bt(e, t, r) {
169
+ if (e.slice(0, t.length) != t) throw Error("string ".concat(JSON.stringify(e), " doesn't start with prefix ").concat(JSON.stringify(t), "; this is a bug"));
170
+ return r + e.slice(t.length);
171
+ }
172
+ function wt(e, t, r) {
173
+ if (!t) return e + r;
174
+ if (e.slice(-t.length) != t) throw Error("string ".concat(JSON.stringify(e), " doesn't end with suffix ").concat(JSON.stringify(t), "; this is a bug"));
175
+ return e.slice(0, -t.length) + r;
176
+ }
177
+ function _e(e, t) {
178
+ return Bt(e, t, "");
179
+ }
180
+ function Ve(e, t) {
181
+ return wt(e, t, "");
182
+ }
183
+ function Cr(e, t) {
184
+ return t.slice(0, Ou(e, t));
185
+ }
186
+ function Ou(e, t) {
187
+ var r = 0;
188
+ e.length > t.length && (r = e.length - t.length);
189
+ var n = t.length;
190
+ e.length < t.length && (n = e.length);
191
+ var u = Array(n), i = 0;
192
+ u[0] = 0;
193
+ for (var o = 1; o < n; o++) {
194
+ for (t[o] == t[i] ? u[o] = u[i] : u[o] = i; i > 0 && t[o] != t[i]; ) i = u[i];
195
+ t[o] == t[i] && i++;
196
+ }
197
+ i = 0;
198
+ for (var s = r; s < e.length; s++) {
199
+ for (; i > 0 && e[s] != t[i]; ) i = u[i];
200
+ e[s] == t[i] && i++;
201
+ }
202
+ return i;
203
+ }
204
+ var Ue = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", Su = new RegExp("[".concat(Ue, "]+|\\s+|[^").concat(Ue, "]"), "ug"), Ge = new U();
205
+ Ge.equals = function(e, t, r) {
206
+ return r.ignoreCase && (e = e.toLowerCase(), t = t.toLowerCase()), e.trim() === t.trim();
207
+ };
208
+ Ge.tokenize = function(e) {
209
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r;
210
+ if (t.intlSegmenter) {
211
+ if (t.intlSegmenter.resolvedOptions().granularity != "word") throw new Error('The segmenter passed must have a granularity of "word"');
212
+ r = Array.from(t.intlSegmenter.segment(e), function(i) {
213
+ return i.segment;
214
+ });
215
+ } else r = e.match(Su) || [];
216
+ var n = [], u = null;
217
+ return r.forEach(function(i) {
218
+ /\s/.test(i) ? u == null ? n.push(i) : n.push(n.pop() + i) : /\s/.test(u) ? n[n.length - 1] == u ? n.push(n.pop() + i) : n.push(u + i) : n.push(i), u = i;
219
+ }), n;
220
+ };
221
+ Ge.join = function(e) {
222
+ return e.map(function(t, r) {
223
+ return r == 0 ? t : t.replace(/^\s+/, "");
224
+ }).join("");
225
+ };
226
+ Ge.postProcess = function(e, t) {
227
+ if (!e || t.oneChangePerToken) return e;
228
+ var r = null, n = null, u = null;
229
+ return e.forEach(function(i) {
230
+ i.added ? n = i : i.removed ? u = i : ((n || u) && gr(r, u, n, i), r = i, n = null, u = null);
231
+ }), (n || u) && gr(r, u, n, null), e;
232
+ };
233
+ function gr(e, t, r, n) {
234
+ if (t && r) {
235
+ var u = t.value.match(/^\s*/)[0], i = t.value.match(/\s*$/)[0], o = r.value.match(/^\s*/)[0], s = r.value.match(/\s*$/)[0];
236
+ if (e) {
237
+ var a = hr(u, o);
238
+ e.value = wt(e.value, o, a), t.value = _e(t.value, a), r.value = _e(r.value, a);
239
+ }
240
+ if (n) {
241
+ var D = Er(i, s);
242
+ n.value = Bt(n.value, s, D), t.value = Ve(t.value, D), r.value = Ve(r.value, D);
243
+ }
244
+ } else if (r) e && (r.value = r.value.replace(/^\s*/, "")), n && (n.value = n.value.replace(/^\s*/, ""));
245
+ else if (e && n) {
246
+ var l = n.value.match(/^\s*/)[0], p = t.value.match(/^\s*/)[0], f = t.value.match(/\s*$/)[0], d = hr(l, p);
247
+ t.value = _e(t.value, d);
248
+ var c = Er(_e(l, d), f);
249
+ t.value = Ve(t.value, c), n.value = Bt(n.value, l, c), e.value = wt(e.value, l, l.slice(0, l.length - c.length));
250
+ } else if (n) {
251
+ var F = n.value.match(/^\s*/)[0], m = t.value.match(/\s*$/)[0], h = Cr(m, F);
252
+ t.value = Ve(t.value, h);
253
+ } else if (e) {
254
+ var C = e.value.match(/\s*$/)[0], v = t.value.match(/^\s*/)[0], E = Cr(C, v);
255
+ t.value = _e(t.value, E);
256
+ }
257
+ }
258
+ var Tu = new U();
259
+ Tu.tokenize = function(e) {
260
+ var t = new RegExp("(\\r?\\n)|[".concat(Ue, "]+|[^\\S\\n\\r]+|[^").concat(Ue, "]"), "ug");
261
+ return e.match(t) || [];
262
+ };
263
+ var bt = new U();
264
+ bt.tokenize = function(e, t) {
265
+ t.stripTrailingCr && (e = e.replace(/\r\n/g, `
266
+ `));
267
+ var r = [], n = e.split(/(\n|\r\n)/);
268
+ n[n.length - 1] || n.pop();
269
+ for (var u = 0; u < n.length; u++) {
270
+ var i = n[u];
271
+ u % 2 && !t.newlineIsToken ? r[r.length - 1] += i : r.push(i);
272
+ }
273
+ return r;
274
+ };
275
+ bt.equals = function(e, t, r) {
276
+ return r.ignoreWhitespace ? ((!r.newlineIsToken || !e.includes(`
277
+ `)) && (e = e.trim()), (!r.newlineIsToken || !t.includes(`
278
+ `)) && (t = t.trim())) : r.ignoreNewlineAtEof && !r.newlineIsToken && (e.endsWith(`
279
+ `) && (e = e.slice(0, -1)), t.endsWith(`
280
+ `) && (t = t.slice(0, -1))), U.prototype.equals.call(this, e, t, r);
281
+ };
282
+ var ku = new U();
283
+ ku.tokenize = function(e) {
284
+ return e.split(/(\S.+?[.!?])(?=\s+|$)/);
285
+ };
286
+ var Lu = new U();
287
+ Lu.tokenize = function(e) {
288
+ return e.split(/([{}:;,]|\s+)/);
289
+ };
290
+ function _t(e) {
291
+ "@babel/helpers - typeof";
292
+ return _t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
293
+ return typeof t;
294
+ } : function(t) {
295
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
296
+ }, _t(e);
297
+ }
298
+ var xe = new U();
299
+ xe.useLongestToken = true;
300
+ xe.tokenize = bt.tokenize;
301
+ xe.castInput = function(e, t) {
302
+ var r = t.undefinedReplacement, n = t.stringifyReplacer, u = n === void 0 ? function(i, o) {
303
+ return typeof o > "u" ? r : o;
304
+ } : n;
305
+ return typeof e == "string" ? e : JSON.stringify(xt(e, null, null, u), u, " ");
306
+ };
307
+ xe.equals = function(e, t, r) {
308
+ return U.prototype.equals.call(xe, e.replace(/,([\r\n])/g, "$1"), t.replace(/,([\r\n])/g, "$1"), r);
309
+ };
310
+ function xt(e, t, r, n, u) {
311
+ t = t || [], r = r || [], n && (e = n(u, e));
312
+ var i;
313
+ for (i = 0; i < t.length; i += 1) if (t[i] === e) return r[i];
314
+ var o;
315
+ if (Object.prototype.toString.call(e) === "[object Array]") {
316
+ for (t.push(e), o = new Array(e.length), r.push(o), i = 0; i < e.length; i += 1) o[i] = xt(e[i], t, r, n, u);
317
+ return t.pop(), r.pop(), o;
318
+ }
319
+ if (e && e.toJSON && (e = e.toJSON()), _t(e) === "object" && e !== null) {
320
+ t.push(e), o = {}, r.push(o);
321
+ var s = [], a;
322
+ for (a in e) Object.prototype.hasOwnProperty.call(e, a) && s.push(a);
323
+ for (s.sort(), i = 0; i < s.length; i += 1) a = s[i], o[a] = xt(e[a], t, r, n, a);
324
+ t.pop(), r.pop();
325
+ } else o = e;
326
+ return o;
327
+ }
328
+ var ze = new U();
329
+ ze.tokenize = function(e) {
330
+ return e.slice();
331
+ };
332
+ ze.join = ze.removeEmpty = function(e) {
333
+ return e;
334
+ };
335
+ function yr(e, t, r) {
336
+ return ze.diff(e, t, r);
337
+ }
338
+ function Ar(e) {
339
+ let t = e.indexOf("\r");
340
+ return t !== -1 ? e.charAt(t + 1) === `
341
+ ` ? "crlf" : "cr" : "lf";
342
+ }
343
+ function be(e) {
344
+ switch (e) {
345
+ case "cr":
346
+ return "\r";
347
+ case "crlf":
348
+ return `\r
349
+ `;
350
+ default:
351
+ return `
352
+ `;
353
+ }
354
+ }
355
+ function Nt(e, t) {
356
+ let r;
357
+ switch (t) {
358
+ case `
359
+ `:
360
+ r = /\n/gu;
361
+ break;
362
+ case "\r":
363
+ r = /\r/gu;
364
+ break;
365
+ case `\r
366
+ `:
367
+ r = /\r\n/gu;
368
+ break;
369
+ default:
370
+ throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`);
371
+ }
372
+ let n = e.match(r);
373
+ return n ? n.length : 0;
374
+ }
375
+ function vr(e) {
376
+ return ne(false, e, /\r\n?/gu, `
377
+ `);
378
+ }
379
+ var $ = "string", H = "array", z = "cursor", T = "indent", k = "align", L = "trim", B = "group", N = "fill", w = "if-break", P = "indent-if-break", I = "line-suffix", R = "line-suffix-boundary", y = "line", O = "label", _ = "break-parent", Ke = /* @__PURE__ */ new Set([z, T, k, L, B, N, w, P, I, R, y, O, _]);
380
+ var Pu = (e, t, r) => {
381
+ if (!(e && t == null)) return Array.isArray(t) || typeof t == "string" ? t[r < 0 ? t.length + r : r] : t.at(r);
382
+ }, A = Pu;
383
+ function Iu(e) {
384
+ if (typeof e == "string") return $;
385
+ if (Array.isArray(e)) return H;
386
+ if (!e) return;
387
+ let { type: t } = e;
388
+ if (Ke.has(t)) return t;
389
+ }
390
+ var M = Iu;
391
+ var Ru = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
392
+ function Yu(e) {
393
+ let t = e === null ? "null" : typeof e;
394
+ if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
395
+ Expected it to be 'string' or 'object'.`;
396
+ if (M(e)) throw new Error("doc is valid.");
397
+ let r = Object.prototype.toString.call(e);
398
+ if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
399
+ let n = Ru([...Ke].map((u) => `'${u}'`));
400
+ return `Unexpected doc.type '${e.type}'.
401
+ Expected it to be ${n}.`;
402
+ }
403
+ var Ot = class extends Error {
404
+ name = "InvalidDocError";
405
+ constructor(t) {
406
+ super(Yu(t)), this.doc = t;
407
+ }
408
+ }, Q = Ot;
409
+ var Br = {};
410
+ function ju(e, t, r, n) {
411
+ let u = [e];
412
+ for (; u.length > 0; ) {
413
+ let i = u.pop();
414
+ if (i === Br) {
415
+ r(u.pop());
416
+ continue;
417
+ }
418
+ r && u.push(i, Br);
419
+ let o = M(i);
420
+ if (!o) throw new Q(i);
421
+ if ((t == null ? void 0 : t(i)) !== false) switch (o) {
422
+ case H:
423
+ case N: {
424
+ let s = o === H ? i : i.parts;
425
+ for (let a = s.length, D = a - 1; D >= 0; --D) u.push(s[D]);
426
+ break;
427
+ }
428
+ case w:
429
+ u.push(i.flatContents, i.breakContents);
430
+ break;
431
+ case B:
432
+ if (n && i.expandedStates) for (let s = i.expandedStates.length, a = s - 1; a >= 0; --a) u.push(i.expandedStates[a]);
433
+ else u.push(i.contents);
434
+ break;
435
+ case k:
436
+ case T:
437
+ case P:
438
+ case O:
439
+ case I:
440
+ u.push(i.contents);
441
+ break;
442
+ case $:
443
+ case z:
444
+ case L:
445
+ case R:
446
+ case y:
447
+ case _:
448
+ break;
449
+ default:
450
+ throw new Q(i);
451
+ }
452
+ }
453
+ }
454
+ var Fe = ju;
455
+ function Oe(e, t) {
456
+ if (typeof e == "string") return t(e);
457
+ let r = /* @__PURE__ */ new Map();
458
+ return n(e);
459
+ function n(i) {
460
+ if (r.has(i)) return r.get(i);
461
+ let o = u(i);
462
+ return r.set(i, o), o;
463
+ }
464
+ function u(i) {
465
+ switch (M(i)) {
466
+ case H:
467
+ return t(i.map(n));
468
+ case N:
469
+ return t({ ...i, parts: i.parts.map(n) });
470
+ case w:
471
+ return t({ ...i, breakContents: n(i.breakContents), flatContents: n(i.flatContents) });
472
+ case B: {
473
+ let { expandedStates: o, contents: s } = i;
474
+ return o ? (o = o.map(n), s = o[0]) : s = n(s), t({ ...i, contents: s, expandedStates: o });
475
+ }
476
+ case k:
477
+ case T:
478
+ case P:
479
+ case O:
480
+ case I:
481
+ return t({ ...i, contents: n(i.contents) });
482
+ case $:
483
+ case z:
484
+ case L:
485
+ case R:
486
+ case y:
487
+ case _:
488
+ return t(i);
489
+ default:
490
+ throw new Q(i);
491
+ }
492
+ }
493
+ }
494
+ function Je(e, t, r) {
495
+ let n = r, u = false;
496
+ function i(o) {
497
+ if (u) return false;
498
+ let s = t(o);
499
+ s !== void 0 && (u = true, n = s);
500
+ }
501
+ return Fe(e, i), n;
502
+ }
503
+ function Hu(e) {
504
+ if (e.type === B && e.break || e.type === y && e.hard || e.type === _) return true;
505
+ }
506
+ function xr(e) {
507
+ return Je(e, Hu, false);
508
+ }
509
+ function wr(e) {
510
+ if (e.length > 0) {
511
+ let t = A(false, e, -1);
512
+ !t.expandedStates && !t.break && (t.break = "propagated");
513
+ }
514
+ return null;
515
+ }
516
+ function br(e) {
517
+ let t = /* @__PURE__ */ new Set(), r = [];
518
+ function n(i) {
519
+ if (i.type === _ && wr(r), i.type === B) {
520
+ if (r.push(i), t.has(i)) return false;
521
+ t.add(i);
522
+ }
523
+ }
524
+ function u(i) {
525
+ i.type === B && r.pop().break && wr(r);
526
+ }
527
+ Fe(e, n, u, true);
528
+ }
529
+ function Wu(e) {
530
+ return e.type === y && !e.hard ? e.soft ? "" : " " : e.type === w ? e.flatContents : e;
531
+ }
532
+ function Nr(e) {
533
+ return Oe(e, Wu);
534
+ }
535
+ function _r(e) {
536
+ for (e = [...e]; e.length >= 2 && A(false, e, -2).type === y && A(false, e, -1).type === _; ) e.length -= 2;
537
+ if (e.length > 0) {
538
+ let t = Ne(A(false, e, -1));
539
+ e[e.length - 1] = t;
540
+ }
541
+ return e;
542
+ }
543
+ function Ne(e) {
544
+ switch (M(e)) {
545
+ case T:
546
+ case P:
547
+ case B:
548
+ case I:
549
+ case O: {
550
+ let t = Ne(e.contents);
551
+ return { ...e, contents: t };
552
+ }
553
+ case w:
554
+ return { ...e, breakContents: Ne(e.breakContents), flatContents: Ne(e.flatContents) };
555
+ case N:
556
+ return { ...e, parts: _r(e.parts) };
557
+ case H:
558
+ return _r(e);
559
+ case $:
560
+ return e.replace(/[\n\r]*$/u, "");
561
+ case k:
562
+ case z:
563
+ case L:
564
+ case R:
565
+ case y:
566
+ case _:
567
+ break;
568
+ default:
569
+ throw new Q(e);
570
+ }
571
+ return e;
572
+ }
573
+ function qe(e) {
574
+ return Ne(Mu(e));
575
+ }
576
+ function $u(e) {
577
+ switch (M(e)) {
578
+ case N:
579
+ if (e.parts.every((t) => t === "")) return "";
580
+ break;
581
+ case B:
582
+ if (!e.contents && !e.id && !e.break && !e.expandedStates) return "";
583
+ if (e.contents.type === B && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates) return e.contents;
584
+ break;
585
+ case k:
586
+ case T:
587
+ case P:
588
+ case I:
589
+ if (!e.contents) return "";
590
+ break;
591
+ case w:
592
+ if (!e.flatContents && !e.breakContents) return "";
593
+ break;
594
+ case H: {
595
+ let t = [];
596
+ for (let r of e) {
597
+ if (!r) continue;
598
+ let [n, ...u] = Array.isArray(r) ? r : [r];
599
+ typeof n == "string" && typeof A(false, t, -1) == "string" ? t[t.length - 1] += n : t.push(n), t.push(...u);
600
+ }
601
+ return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
602
+ }
603
+ case $:
604
+ case z:
605
+ case L:
606
+ case R:
607
+ case y:
608
+ case O:
609
+ case _:
610
+ break;
611
+ default:
612
+ throw new Q(e);
613
+ }
614
+ return e;
615
+ }
616
+ function Mu(e) {
617
+ return Oe(e, (t) => $u(t));
618
+ }
619
+ function Or(e, t = Xe) {
620
+ return Oe(e, (r) => typeof r == "string" ? Se(t, r.split(`
621
+ `)) : r);
622
+ }
623
+ function Vu(e) {
624
+ if (e.type === y) return true;
625
+ }
626
+ function Sr(e) {
627
+ return Je(e, Vu, false);
628
+ }
629
+ function me(e, t) {
630
+ return e.type === O ? { ...e, contents: t(e.contents) } : t(e);
631
+ }
632
+ var St = () => {
633
+ }, Tt = St;
634
+ function le(e) {
635
+ return { type: T, contents: e };
636
+ }
637
+ function De(e, t) {
638
+ return { type: k, contents: t, n: e };
639
+ }
640
+ function kt(e, t = {}) {
641
+ return Tt(t.expandedStates), { type: B, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
642
+ }
643
+ function kr(e) {
644
+ return De(Number.NEGATIVE_INFINITY, e);
645
+ }
646
+ function Lr(e) {
647
+ return De({ type: "root" }, e);
648
+ }
649
+ function Pr(e) {
650
+ return De(-1, e);
651
+ }
652
+ function Ir(e, t) {
653
+ return kt(e[0], { ...t, expandedStates: e });
654
+ }
655
+ function Rr(e) {
656
+ return { type: N, parts: e };
657
+ }
658
+ function Yr(e, t = "", r = {}) {
659
+ return { type: w, breakContents: e, flatContents: t, groupId: r.groupId };
660
+ }
661
+ function jr(e, t) {
662
+ return { type: P, contents: e, groupId: t.groupId, negate: t.negate };
663
+ }
664
+ function Te(e) {
665
+ return { type: I, contents: e };
666
+ }
667
+ var Hr = { type: R }, he = { type: _ }, Wr = { type: L }, ke = { type: y, hard: true }, Lt = { type: y, hard: true, literal: true }, Qe = { type: y }, $r = { type: y, soft: true }, K = [ke, he], Xe = [Lt, he], Z = { type: z };
668
+ function Se(e, t) {
669
+ let r = [];
670
+ for (let n = 0; n < t.length; n++) n !== 0 && r.push(e), r.push(t[n]);
671
+ return r;
672
+ }
673
+ function Ze(e, t, r) {
674
+ let n = e;
675
+ if (t > 0) {
676
+ for (let u = 0; u < Math.floor(t / r); ++u) n = le(n);
677
+ n = De(t % r, n), n = De(Number.NEGATIVE_INFINITY, n);
678
+ }
679
+ return n;
680
+ }
681
+ function Mr(e, t) {
682
+ return e ? { type: O, label: e, contents: t } : t;
683
+ }
684
+ function ee(e) {
685
+ var t;
686
+ if (!e) return "";
687
+ if (Array.isArray(e)) {
688
+ let r = [];
689
+ for (let n of e) if (Array.isArray(n)) r.push(...ee(n));
690
+ else {
691
+ let u = ee(n);
692
+ u !== "" && r.push(u);
693
+ }
694
+ return r;
695
+ }
696
+ return e.type === w ? { ...e, breakContents: ee(e.breakContents), flatContents: ee(e.flatContents) } : e.type === B ? { ...e, contents: ee(e.contents), expandedStates: (t = e.expandedStates) == null ? void 0 : t.map(ee) } : e.type === N ? { type: "fill", parts: e.parts.map(ee) } : e.contents ? { ...e, contents: ee(e.contents) } : e;
697
+ }
698
+ function Vr(e) {
699
+ let t = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ new Set();
700
+ return n(ee(e));
701
+ function n(i, o, s) {
702
+ var a, D;
703
+ if (typeof i == "string") return JSON.stringify(i);
704
+ if (Array.isArray(i)) {
705
+ let l = i.map(n).filter(Boolean);
706
+ return l.length === 1 ? l[0] : `[${l.join(", ")}]`;
707
+ }
708
+ if (i.type === y) {
709
+ let l = ((a = s == null ? void 0 : s[o + 1]) == null ? void 0 : a.type) === _;
710
+ return i.literal ? l ? "literalline" : "literallineWithoutBreakParent" : i.hard ? l ? "hardline" : "hardlineWithoutBreakParent" : i.soft ? "softline" : "line";
711
+ }
712
+ if (i.type === _) return ((D = s == null ? void 0 : s[o - 1]) == null ? void 0 : D.type) === y && s[o - 1].hard ? void 0 : "breakParent";
713
+ if (i.type === L) return "trim";
714
+ if (i.type === T) return "indent(" + n(i.contents) + ")";
715
+ if (i.type === k) return i.n === Number.NEGATIVE_INFINITY ? "dedentToRoot(" + n(i.contents) + ")" : i.n < 0 ? "dedent(" + n(i.contents) + ")" : i.n.type === "root" ? "markAsRoot(" + n(i.contents) + ")" : "align(" + JSON.stringify(i.n) + ", " + n(i.contents) + ")";
716
+ if (i.type === w) return "ifBreak(" + n(i.breakContents) + (i.flatContents ? ", " + n(i.flatContents) : "") + (i.groupId ? (i.flatContents ? "" : ', ""') + `, { groupId: ${u(i.groupId)} }` : "") + ")";
717
+ if (i.type === P) {
718
+ let l = [];
719
+ i.negate && l.push("negate: true"), i.groupId && l.push(`groupId: ${u(i.groupId)}`);
720
+ let p = l.length > 0 ? `, { ${l.join(", ")} }` : "";
721
+ return `indentIfBreak(${n(i.contents)}${p})`;
722
+ }
723
+ if (i.type === B) {
724
+ let l = [];
725
+ i.break && i.break !== "propagated" && l.push("shouldBreak: true"), i.id && l.push(`id: ${u(i.id)}`);
726
+ let p = l.length > 0 ? `, { ${l.join(", ")} }` : "";
727
+ return i.expandedStates ? `conditionalGroup([${i.expandedStates.map((f) => n(f)).join(",")}]${p})` : `group(${n(i.contents)}${p})`;
728
+ }
729
+ if (i.type === N) return `fill([${i.parts.map((l) => n(l)).join(", ")}])`;
730
+ if (i.type === I) return "lineSuffix(" + n(i.contents) + ")";
731
+ if (i.type === R) return "lineSuffixBoundary";
732
+ if (i.type === O) return `label(${JSON.stringify(i.label)}, ${n(i.contents)})`;
733
+ throw new Error("Unknown doc type " + i.type);
734
+ }
735
+ function u(i) {
736
+ if (typeof i != "symbol") return JSON.stringify(String(i));
737
+ if (i in t) return t[i];
738
+ let o = i.description || "symbol";
739
+ for (let s = 0; ; s++) {
740
+ let a = o + (s > 0 ? ` #${s}` : "");
741
+ if (!r.has(a)) return r.add(a), t[i] = `Symbol.for(${JSON.stringify(a)})`;
742
+ }
743
+ }
744
+ }
745
+ var Ur = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
746
+ function zr(e) {
747
+ return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
748
+ }
749
+ function Gr(e) {
750
+ return e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9776 && e <= 9783 || e >= 9800 && e <= 9811 || e === 9855 || e >= 9866 && e <= 9871 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12773 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101631 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e >= 119552 && e <= 119638 || e >= 119648 && e <= 119670 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129673 || e >= 129679 && e <= 129734 || e >= 129742 && e <= 129756 || e >= 129759 && e <= 129769 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141;
751
+ }
752
+ var Kr = (e) => !(zr(e) || Gr(e));
753
+ var Uu = /[^\x20-\x7F]/u;
754
+ function zu(e) {
755
+ if (!e) return 0;
756
+ if (!Uu.test(e)) return e.length;
757
+ e = e.replace(Ur(), " ");
758
+ let t = 0;
759
+ for (let r of e) {
760
+ let n = r.codePointAt(0);
761
+ n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || (t += Kr(n) ? 1 : 2);
762
+ }
763
+ return t;
764
+ }
765
+ var Le = zu;
766
+ var Y = Symbol("MODE_BREAK"), J = Symbol("MODE_FLAT"), Ee = Symbol("cursor"), Pt = Symbol("DOC_FILL_PRINTED_LENGTH");
767
+ function Jr() {
768
+ return { value: "", length: 0, queue: [] };
769
+ }
770
+ function Gu(e, t) {
771
+ return It(e, { type: "indent" }, t);
772
+ }
773
+ function Ku(e, t, r) {
774
+ return t === Number.NEGATIVE_INFINITY ? e.root || Jr() : t < 0 ? It(e, { type: "dedent" }, r) : t ? t.type === "root" ? { ...e, root: e } : It(e, { type: typeof t == "string" ? "stringAlign" : "numberAlign", n: t }, r) : e;
775
+ }
776
+ function It(e, t, r) {
777
+ let n = t.type === "dedent" ? e.queue.slice(0, -1) : [...e.queue, t], u = "", i = 0, o = 0, s = 0;
778
+ for (let c of n) switch (c.type) {
779
+ case "indent":
780
+ l(), r.useTabs ? a(1) : D(r.tabWidth);
781
+ break;
782
+ case "stringAlign":
783
+ l(), u += c.n, i += c.n.length;
784
+ break;
785
+ case "numberAlign":
786
+ o += 1, s += c.n;
787
+ break;
788
+ default:
789
+ throw new Error(`Unexpected type '${c.type}'`);
790
+ }
791
+ return f(), { ...e, value: u, length: i, queue: n };
792
+ function a(c) {
793
+ u += " ".repeat(c), i += r.tabWidth * c;
794
+ }
795
+ function D(c) {
796
+ u += " ".repeat(c), i += c;
797
+ }
798
+ function l() {
799
+ r.useTabs ? p() : f();
800
+ }
801
+ function p() {
802
+ o > 0 && a(o), d();
803
+ }
804
+ function f() {
805
+ s > 0 && D(s), d();
806
+ }
807
+ function d() {
808
+ o = 0, s = 0;
809
+ }
810
+ }
811
+ function Rt(e) {
812
+ let t = 0, r = 0, n = e.length;
813
+ e: for (; n--; ) {
814
+ let u = e[n];
815
+ if (u === Ee) {
816
+ r++;
817
+ continue;
818
+ }
819
+ for (let i = u.length - 1; i >= 0; i--) {
820
+ let o = u[i];
821
+ if (o === " " || o === " ") t++;
822
+ else {
823
+ e[n] = u.slice(0, i + 1);
824
+ break e;
825
+ }
826
+ }
827
+ }
828
+ if (t > 0 || r > 0) for (e.length = n + 1; r-- > 0; ) e.push(Ee);
829
+ return t;
830
+ }
831
+ function et(e, t, r, n, u, i) {
832
+ if (r === Number.POSITIVE_INFINITY) return true;
833
+ let o = t.length, s = [e], a = [];
834
+ for (; r >= 0; ) {
835
+ if (s.length === 0) {
836
+ if (o === 0) return true;
837
+ s.push(t[--o]);
838
+ continue;
839
+ }
840
+ let { mode: D, doc: l } = s.pop(), p = M(l);
841
+ switch (p) {
842
+ case $:
843
+ a.push(l), r -= Le(l);
844
+ break;
845
+ case H:
846
+ case N: {
847
+ let f = p === H ? l : l.parts, d = l[Pt] ?? 0;
848
+ for (let c = f.length - 1; c >= d; c--) s.push({ mode: D, doc: f[c] });
849
+ break;
850
+ }
851
+ case T:
852
+ case k:
853
+ case P:
854
+ case O:
855
+ s.push({ mode: D, doc: l.contents });
856
+ break;
857
+ case L:
858
+ r += Rt(a);
859
+ break;
860
+ case B: {
861
+ if (i && l.break) return false;
862
+ let f = l.break ? Y : D, d = l.expandedStates && f === Y ? A(false, l.expandedStates, -1) : l.contents;
863
+ s.push({ mode: f, doc: d });
864
+ break;
865
+ }
866
+ case w: {
867
+ let d = (l.groupId ? u[l.groupId] || J : D) === Y ? l.breakContents : l.flatContents;
868
+ d && s.push({ mode: D, doc: d });
869
+ break;
870
+ }
871
+ case y:
872
+ if (D === Y || l.hard) return true;
873
+ l.soft || (a.push(" "), r--);
874
+ break;
875
+ case I:
876
+ n = true;
877
+ break;
878
+ case R:
879
+ if (n) return false;
880
+ break;
881
+ }
882
+ }
883
+ return false;
884
+ }
885
+ function Ce(e, t) {
886
+ let r = {}, n = t.printWidth, u = be(t.endOfLine), i = 0, o = [{ ind: Jr(), mode: Y, doc: e }], s = [], a = false, D = [], l = 0;
887
+ for (br(e); o.length > 0; ) {
888
+ let { ind: f, mode: d, doc: c } = o.pop();
889
+ switch (M(c)) {
890
+ case $: {
891
+ let F = u !== `
892
+ ` ? ne(false, c, `
893
+ `, u) : c;
894
+ s.push(F), o.length > 0 && (i += Le(F));
895
+ break;
896
+ }
897
+ case H:
898
+ for (let F = c.length - 1; F >= 0; F--) o.push({ ind: f, mode: d, doc: c[F] });
899
+ break;
900
+ case z:
901
+ if (l >= 2) throw new Error("There are too many 'cursor' in doc.");
902
+ s.push(Ee), l++;
903
+ break;
904
+ case T:
905
+ o.push({ ind: Gu(f, t), mode: d, doc: c.contents });
906
+ break;
907
+ case k:
908
+ o.push({ ind: Ku(f, c.n, t), mode: d, doc: c.contents });
909
+ break;
910
+ case L:
911
+ i -= Rt(s);
912
+ break;
913
+ case B:
914
+ switch (d) {
915
+ case J:
916
+ if (!a) {
917
+ o.push({ ind: f, mode: c.break ? Y : J, doc: c.contents });
918
+ break;
919
+ }
920
+ case Y: {
921
+ a = false;
922
+ let F = { ind: f, mode: J, doc: c.contents }, m = n - i, h = D.length > 0;
923
+ if (!c.break && et(F, o, m, h, r)) o.push(F);
924
+ else if (c.expandedStates) {
925
+ let C = A(false, c.expandedStates, -1);
926
+ if (c.break) {
927
+ o.push({ ind: f, mode: Y, doc: C });
928
+ break;
929
+ } else for (let v = 1; v < c.expandedStates.length + 1; v++) if (v >= c.expandedStates.length) {
930
+ o.push({ ind: f, mode: Y, doc: C });
931
+ break;
932
+ } else {
933
+ let E = c.expandedStates[v], g = { ind: f, mode: J, doc: E };
934
+ if (et(g, o, m, h, r)) {
935
+ o.push(g);
936
+ break;
937
+ }
938
+ }
939
+ } else o.push({ ind: f, mode: Y, doc: c.contents });
940
+ break;
941
+ }
942
+ }
943
+ c.id && (r[c.id] = A(false, o, -1).mode);
944
+ break;
945
+ case N: {
946
+ let F = n - i, m = c[Pt] ?? 0, { parts: h } = c, C = h.length - m;
947
+ if (C === 0) break;
948
+ let v = h[m + 0], E = h[m + 1], g = { ind: f, mode: J, doc: v }, j = { ind: f, mode: Y, doc: v }, b = et(g, [], F, D.length > 0, r, true);
949
+ if (C === 1) {
950
+ b ? o.push(g) : o.push(j);
951
+ break;
952
+ }
953
+ let X = { ind: f, mode: J, doc: E }, ae = { ind: f, mode: Y, doc: E };
954
+ if (C === 2) {
955
+ b ? o.push(X, g) : o.push(ae, j);
956
+ break;
957
+ }
958
+ let $e = h[m + 2], yt = { ind: f, mode: d, doc: { ...c, [Pt]: m + 2 } };
959
+ et({ ind: f, mode: J, doc: [v, E, $e] }, [], F, D.length > 0, r, true) ? o.push(yt, X, g) : b ? o.push(yt, ae, g) : o.push(yt, ae, j);
960
+ break;
961
+ }
962
+ case w:
963
+ case P: {
964
+ let F = c.groupId ? r[c.groupId] : d;
965
+ if (F === Y) {
966
+ let m = c.type === w ? c.breakContents : c.negate ? c.contents : le(c.contents);
967
+ m && o.push({ ind: f, mode: d, doc: m });
968
+ }
969
+ if (F === J) {
970
+ let m = c.type === w ? c.flatContents : c.negate ? le(c.contents) : c.contents;
971
+ m && o.push({ ind: f, mode: d, doc: m });
972
+ }
973
+ break;
974
+ }
975
+ case I:
976
+ D.push({ ind: f, mode: d, doc: c.contents });
977
+ break;
978
+ case R:
979
+ D.length > 0 && o.push({ ind: f, mode: d, doc: ke });
980
+ break;
981
+ case y:
982
+ switch (d) {
983
+ case J:
984
+ if (c.hard) a = true;
985
+ else {
986
+ c.soft || (s.push(" "), i += 1);
987
+ break;
988
+ }
989
+ case Y:
990
+ if (D.length > 0) {
991
+ o.push({ ind: f, mode: d, doc: c }, ...D.reverse()), D.length = 0;
992
+ break;
993
+ }
994
+ c.literal ? f.root ? (s.push(u, f.root.value), i = f.root.length) : (s.push(u), i = 0) : (i -= Rt(s), s.push(u + f.value), i = f.length);
995
+ break;
996
+ }
997
+ break;
998
+ case O:
999
+ o.push({ ind: f, mode: d, doc: c.contents });
1000
+ break;
1001
+ case _:
1002
+ break;
1003
+ default:
1004
+ throw new Q(c);
1005
+ }
1006
+ o.length === 0 && D.length > 0 && (o.push(...D.reverse()), D.length = 0);
1007
+ }
1008
+ let p = s.indexOf(Ee);
1009
+ if (p !== -1) {
1010
+ let f = s.indexOf(Ee, p + 1);
1011
+ if (f === -1) return { formatted: s.filter((m) => m !== Ee).join("") };
1012
+ let d = s.slice(0, p).join(""), c = s.slice(p + 1, f).join(""), F = s.slice(f + 1).join("");
1013
+ return { formatted: d + c + F, cursorNodeStart: d.length, cursorNodeText: c };
1014
+ }
1015
+ return { formatted: s.join("") };
1016
+ }
1017
+ function Ju(e, t, r = 0) {
1018
+ let n = 0;
1019
+ for (let u = r; u < e.length; ++u) e[u] === " " ? n = n + t - n % t : n++;
1020
+ return n;
1021
+ }
1022
+ var ge = Ju;
1023
+ var te, jt, tt, Yt = class {
1024
+ constructor(t) {
1025
+ Fr(this, te);
1026
+ this.stack = [t];
1027
+ }
1028
+ get key() {
1029
+ let { stack: t, siblings: r } = this;
1030
+ return A(false, t, r === null ? -2 : -4) ?? null;
1031
+ }
1032
+ get index() {
1033
+ return this.siblings === null ? null : A(false, this.stack, -2);
1034
+ }
1035
+ get node() {
1036
+ return A(false, this.stack, -1);
1037
+ }
1038
+ get parent() {
1039
+ return this.getNode(1);
1040
+ }
1041
+ get grandparent() {
1042
+ return this.getNode(2);
1043
+ }
1044
+ get isInArray() {
1045
+ return this.siblings !== null;
1046
+ }
1047
+ get siblings() {
1048
+ let { stack: t } = this, r = A(false, t, -3);
1049
+ return Array.isArray(r) ? r : null;
1050
+ }
1051
+ get next() {
1052
+ let { siblings: t } = this;
1053
+ return t === null ? null : t[this.index + 1];
1054
+ }
1055
+ get previous() {
1056
+ let { siblings: t } = this;
1057
+ return t === null ? null : t[this.index - 1];
1058
+ }
1059
+ get isFirst() {
1060
+ return this.index === 0;
1061
+ }
1062
+ get isLast() {
1063
+ let { siblings: t, index: r } = this;
1064
+ return t !== null && r === t.length - 1;
1065
+ }
1066
+ get isRoot() {
1067
+ return this.stack.length === 1;
1068
+ }
1069
+ get root() {
1070
+ return this.stack[0];
1071
+ }
1072
+ get ancestors() {
1073
+ return [...pe(this, te, tt).call(this)];
1074
+ }
1075
+ getName() {
1076
+ let { stack: t } = this, { length: r } = t;
1077
+ return r > 1 ? A(false, t, -2) : null;
1078
+ }
1079
+ getValue() {
1080
+ return A(false, this.stack, -1);
1081
+ }
1082
+ getNode(t = 0) {
1083
+ let r = pe(this, te, jt).call(this, t);
1084
+ return r === -1 ? null : this.stack[r];
1085
+ }
1086
+ getParentNode(t = 0) {
1087
+ return this.getNode(t + 1);
1088
+ }
1089
+ call(t, ...r) {
1090
+ let { stack: n } = this, { length: u } = n, i = A(false, n, -1);
1091
+ for (let o of r) i = i[o], n.push(o, i);
1092
+ try {
1093
+ return t(this);
1094
+ } finally {
1095
+ n.length = u;
1096
+ }
1097
+ }
1098
+ callParent(t, r = 0) {
1099
+ let n = pe(this, te, jt).call(this, r + 1), u = this.stack.splice(n + 1);
1100
+ try {
1101
+ return t(this);
1102
+ } finally {
1103
+ this.stack.push(...u);
1104
+ }
1105
+ }
1106
+ each(t, ...r) {
1107
+ let { stack: n } = this, { length: u } = n, i = A(false, n, -1);
1108
+ for (let o of r) i = i[o], n.push(o, i);
1109
+ try {
1110
+ for (let o = 0; o < i.length; ++o) n.push(o, i[o]), t(this, o, i), n.length -= 2;
1111
+ } finally {
1112
+ n.length = u;
1113
+ }
1114
+ }
1115
+ map(t, ...r) {
1116
+ let n = [];
1117
+ return this.each((u, i, o) => {
1118
+ n[i] = t(u, i, o);
1119
+ }, ...r), n;
1120
+ }
1121
+ match(...t) {
1122
+ let r = this.stack.length - 1, n = null, u = this.stack[r--];
1123
+ for (let i of t) {
1124
+ if (u === void 0) return false;
1125
+ let o = null;
1126
+ if (typeof n == "number" && (o = n, n = this.stack[r--], u = this.stack[r--]), i && !i(u, n, o)) return false;
1127
+ n = this.stack[r--], u = this.stack[r--];
1128
+ }
1129
+ return true;
1130
+ }
1131
+ findAncestor(t) {
1132
+ for (let r of pe(this, te, tt).call(this)) if (t(r)) return r;
1133
+ }
1134
+ hasAncestor(t) {
1135
+ for (let r of pe(this, te, tt).call(this)) if (t(r)) return true;
1136
+ return false;
1137
+ }
1138
+ };
1139
+ te = /* @__PURE__ */ new WeakSet(), jt = function(t) {
1140
+ let { stack: r } = this;
1141
+ for (let n = r.length - 1; n >= 0; n -= 2) if (!Array.isArray(r[n]) && --t < 0) return n;
1142
+ return -1;
1143
+ }, tt = function* () {
1144
+ let { stack: t } = this;
1145
+ for (let r = t.length - 3; r >= 0; r -= 2) {
1146
+ let n = t[r];
1147
+ Array.isArray(n) || (yield n);
1148
+ }
1149
+ };
1150
+ var qr = Yt;
1151
+ var Xr = new Proxy(() => {
1152
+ }, { get: () => Xr }), Pe = Xr;
1153
+ function qu(e) {
1154
+ return e !== null && typeof e == "object";
1155
+ }
1156
+ var Qr = qu;
1157
+ function* ye(e, t) {
1158
+ let { getVisitorKeys: r, filter: n = () => true } = t, u = (i) => Qr(i) && n(i);
1159
+ for (let i of r(e)) {
1160
+ let o = e[i];
1161
+ if (Array.isArray(o)) for (let s of o) u(s) && (yield s);
1162
+ else u(o) && (yield o);
1163
+ }
1164
+ }
1165
+ function* Zr(e, t) {
1166
+ let r = [e];
1167
+ for (let n = 0; n < r.length; n++) {
1168
+ let u = r[n];
1169
+ for (let i of ye(u, t)) yield i, r.push(i);
1170
+ }
1171
+ }
1172
+ function en(e, t) {
1173
+ return ye(e, t).next().done;
1174
+ }
1175
+ function Ae(e) {
1176
+ return (t, r, n) => {
1177
+ let u = !!(n != null && n.backwards);
1178
+ if (r === false) return false;
1179
+ let { length: i } = t, o = r;
1180
+ for (; o >= 0 && o < i; ) {
1181
+ let s = t.charAt(o);
1182
+ if (e instanceof RegExp) {
1183
+ if (!e.test(s)) return o;
1184
+ } else if (!e.includes(s)) return o;
1185
+ u ? o-- : o++;
1186
+ }
1187
+ return o === -1 || o === i ? o : false;
1188
+ };
1189
+ }
1190
+ var tn = Ae(/\s/u), S = Ae(" "), rt = Ae(",; "), nt = Ae(/[^\n\r]/u);
1191
+ function Xu(e, t, r) {
1192
+ let n = !!(r != null && r.backwards);
1193
+ if (t === false) return false;
1194
+ let u = e.charAt(t);
1195
+ if (n) {
1196
+ if (e.charAt(t - 1) === "\r" && u === `
1197
+ `) return t - 2;
1198
+ if (u === `
1199
+ ` || u === "\r" || u === "\u2028" || u === "\u2029") return t - 1;
1200
+ } else {
1201
+ if (u === "\r" && e.charAt(t + 1) === `
1202
+ `) return t + 2;
1203
+ if (u === `
1204
+ ` || u === "\r" || u === "\u2028" || u === "\u2029") return t + 1;
1205
+ }
1206
+ return t;
1207
+ }
1208
+ var W = Xu;
1209
+ function Qu(e, t, r = {}) {
1210
+ let n = S(e, r.backwards ? t - 1 : t, r), u = W(e, n, r);
1211
+ return n !== u;
1212
+ }
1213
+ var V = Qu;
1214
+ function Zu(e) {
1215
+ return Array.isArray(e) && e.length > 0;
1216
+ }
1217
+ var Ht = Zu;
1218
+ var rn = /* @__PURE__ */ new Set(["tokens", "comments", "parent", "enclosingNode", "precedingNode", "followingNode"]), ei = (e) => Object.keys(e).filter((t) => !rn.has(t));
1219
+ function ti(e) {
1220
+ return e ? (t) => e(t, rn) : ei;
1221
+ }
1222
+ var q = ti;
1223
+ function ri(e) {
1224
+ let t = e.type || e.kind || "(unknown type)", r = String(e.name || e.id && (typeof e.id == "object" ? e.id.name : e.id) || e.key && (typeof e.key == "object" ? e.key.name : e.key) || e.value && (typeof e.value == "object" ? "" : String(e.value)) || e.operator || "");
1225
+ return r.length > 20 && (r = r.slice(0, 19) + "\u2026"), t + (r ? " " + r : "");
1226
+ }
1227
+ function Wt(e, t) {
1228
+ (e.comments ?? (e.comments = [])).push(t), t.printed = false, t.nodeDescription = ri(e);
1229
+ }
1230
+ function ue(e, t) {
1231
+ t.leading = true, t.trailing = false, Wt(e, t);
1232
+ }
1233
+ function re(e, t, r) {
1234
+ t.leading = false, t.trailing = false, r && (t.marker = r), Wt(e, t);
1235
+ }
1236
+ function ie(e, t) {
1237
+ t.leading = false, t.trailing = true, Wt(e, t);
1238
+ }
1239
+ var $t = /* @__PURE__ */ new WeakMap();
1240
+ function ut(e, t) {
1241
+ if ($t.has(e)) return $t.get(e);
1242
+ let { printer: { getCommentChildNodes: r, canAttachComment: n, getVisitorKeys: u }, locStart: i, locEnd: o } = t;
1243
+ if (!n) return [];
1244
+ let s = ((r == null ? void 0 : r(e, t)) ?? [...ye(e, { getVisitorKeys: q(u) })]).flatMap((a) => n(a) ? [a] : ut(a, t));
1245
+ return s.sort((a, D) => i(a) - i(D) || o(a) - o(D)), $t.set(e, s), s;
1246
+ }
1247
+ function un(e, t, r, n) {
1248
+ let { locStart: u, locEnd: i } = r, o = u(t), s = i(t), a = ut(e, r), D, l, p = 0, f = a.length;
1249
+ for (; p < f; ) {
1250
+ let d = p + f >> 1, c = a[d], F = u(c), m = i(c);
1251
+ if (F <= o && s <= m) return un(c, t, r, c);
1252
+ if (m <= o) {
1253
+ D = c, p = d + 1;
1254
+ continue;
1255
+ }
1256
+ if (s <= F) {
1257
+ l = c, f = d;
1258
+ continue;
1259
+ }
1260
+ throw new Error("Comment location overlaps with node location");
1261
+ }
1262
+ if ((n == null ? void 0 : n.type) === "TemplateLiteral") {
1263
+ let { quasis: d } = n, c = Vt(d, t, r);
1264
+ D && Vt(d, D, r) !== c && (D = null), l && Vt(d, l, r) !== c && (l = null);
1265
+ }
1266
+ return { enclosingNode: n, precedingNode: D, followingNode: l };
1267
+ }
1268
+ var Mt = () => false;
1269
+ function on(e, t) {
1270
+ let { comments: r } = e;
1271
+ if (delete e.comments, !Ht(r) || !t.printer.canAttachComment) return;
1272
+ let n = [], { locStart: u, locEnd: i, printer: { experimentalFeatures: { avoidAstMutation: o = false } = {}, handleComments: s = {} }, originalText: a } = t, { ownLine: D = Mt, endOfLine: l = Mt, remaining: p = Mt } = s, f = r.map((d, c) => ({ ...un(e, d, t), comment: d, text: a, options: t, ast: e, isLastComment: r.length - 1 === c }));
1273
+ for (let [d, c] of f.entries()) {
1274
+ let { comment: F, precedingNode: m, enclosingNode: h, followingNode: C, text: v, options: E, ast: g, isLastComment: j } = c;
1275
+ if (E.parser === "json" || E.parser === "json5" || E.parser === "jsonc" || E.parser === "__js_expression" || E.parser === "__ts_expression" || E.parser === "__vue_expression" || E.parser === "__vue_ts_expression") {
1276
+ if (u(F) - u(g) <= 0) {
1277
+ ue(g, F);
1278
+ continue;
1279
+ }
1280
+ if (i(F) - i(g) >= 0) {
1281
+ ie(g, F);
1282
+ continue;
1283
+ }
1284
+ }
1285
+ let b;
1286
+ if (o ? b = [c] : (F.enclosingNode = h, F.precedingNode = m, F.followingNode = C, b = [F, v, E, g, j]), ni(v, E, f, d)) F.placement = "ownLine", D(...b) || (C ? ue(C, F) : m ? ie(m, F) : h ? re(h, F) : re(g, F));
1287
+ else if (ui(v, E, f, d)) F.placement = "endOfLine", l(...b) || (m ? ie(m, F) : C ? ue(C, F) : h ? re(h, F) : re(g, F));
1288
+ else if (F.placement = "remaining", !p(...b)) if (m && C) {
1289
+ let X = n.length;
1290
+ X > 0 && n[X - 1].followingNode !== C && nn(n, E), n.push(c);
1291
+ } else m ? ie(m, F) : C ? ue(C, F) : h ? re(h, F) : re(g, F);
1292
+ }
1293
+ if (nn(n, t), !o) for (let d of r) delete d.precedingNode, delete d.enclosingNode, delete d.followingNode;
1294
+ }
1295
+ var sn = (e) => !/[\S\n\u2028\u2029]/u.test(e);
1296
+ function ni(e, t, r, n) {
1297
+ let { comment: u, precedingNode: i } = r[n], { locStart: o, locEnd: s } = t, a = o(u);
1298
+ if (i) for (let D = n - 1; D >= 0; D--) {
1299
+ let { comment: l, precedingNode: p } = r[D];
1300
+ if (p !== i || !sn(e.slice(s(l), a))) break;
1301
+ a = o(l);
1302
+ }
1303
+ return V(e, a, { backwards: true });
1304
+ }
1305
+ function ui(e, t, r, n) {
1306
+ let { comment: u, followingNode: i } = r[n], { locStart: o, locEnd: s } = t, a = s(u);
1307
+ if (i) for (let D = n + 1; D < r.length; D++) {
1308
+ let { comment: l, followingNode: p } = r[D];
1309
+ if (p !== i || !sn(e.slice(a, o(l)))) break;
1310
+ a = s(l);
1311
+ }
1312
+ return V(e, a);
1313
+ }
1314
+ function nn(e, t) {
1315
+ var s, a;
1316
+ let r = e.length;
1317
+ if (r === 0) return;
1318
+ let { precedingNode: n, followingNode: u } = e[0], i = t.locStart(u), o;
1319
+ for (o = r; o > 0; --o) {
1320
+ let { comment: D, precedingNode: l, followingNode: p } = e[o - 1];
1321
+ Pe.strictEqual(l, n), Pe.strictEqual(p, u);
1322
+ let f = t.originalText.slice(t.locEnd(D), i);
1323
+ if (((a = (s = t.printer).isGap) == null ? void 0 : a.call(s, f, t)) ?? /^[\s(]*$/u.test(f)) i = t.locStart(D);
1324
+ else break;
1325
+ }
1326
+ for (let [D, { comment: l }] of e.entries()) D < o ? ie(n, l) : ue(u, l);
1327
+ for (let D of [n, u]) D.comments && D.comments.length > 1 && D.comments.sort((l, p) => t.locStart(l) - t.locStart(p));
1328
+ e.length = 0;
1329
+ }
1330
+ function Vt(e, t, r) {
1331
+ let n = r.locStart(t) - 1;
1332
+ for (let u = 1; u < e.length; ++u) if (n < r.locStart(e[u])) return u - 1;
1333
+ return 0;
1334
+ }
1335
+ function ii(e, t) {
1336
+ let r = t - 1;
1337
+ r = S(e, r, { backwards: true }), r = W(e, r, { backwards: true }), r = S(e, r, { backwards: true });
1338
+ let n = W(e, r, { backwards: true });
1339
+ return r !== n;
1340
+ }
1341
+ var Ie = ii;
1342
+ function an(e, t) {
1343
+ let r = e.node;
1344
+ return r.printed = true, t.printer.printComment(e, t);
1345
+ }
1346
+ function oi(e, t) {
1347
+ var l;
1348
+ let r = e.node, n = [an(e, t)], { printer: u, originalText: i, locStart: o, locEnd: s } = t;
1349
+ if ((l = u.isBlockComment) == null ? void 0 : l.call(u, r)) {
1350
+ let p = V(i, s(r)) ? V(i, o(r), { backwards: true }) ? K : Qe : " ";
1351
+ n.push(p);
1352
+ } else n.push(K);
1353
+ let D = W(i, S(i, s(r)));
1354
+ return D !== false && V(i, D) && n.push(K), n;
1355
+ }
1356
+ function si(e, t, r) {
1357
+ var D;
1358
+ let n = e.node, u = an(e, t), { printer: i, originalText: o, locStart: s } = t, a = (D = i.isBlockComment) == null ? void 0 : D.call(i, n);
1359
+ if (r != null && r.hasLineSuffix && !(r != null && r.isBlock) || V(o, s(n), { backwards: true })) {
1360
+ let l = Ie(o, s(n));
1361
+ return { doc: Te([K, l ? K : "", u]), isBlock: a, hasLineSuffix: true };
1362
+ }
1363
+ return !a || r != null && r.hasLineSuffix ? { doc: [Te([" ", u]), he], isBlock: a, hasLineSuffix: true } : { doc: [" ", u], isBlock: a, hasLineSuffix: false };
1364
+ }
1365
+ function ai(e, t) {
1366
+ let r = e.node;
1367
+ if (!r) return {};
1368
+ let n = t[Symbol.for("printedComments")];
1369
+ if ((r.comments || []).filter((a) => !n.has(a)).length === 0) return { leading: "", trailing: "" };
1370
+ let i = [], o = [], s;
1371
+ return e.each(() => {
1372
+ let a = e.node;
1373
+ if (n != null && n.has(a)) return;
1374
+ let { leading: D, trailing: l } = a;
1375
+ D ? i.push(oi(e, t)) : l && (s = si(e, t, s), o.push(s.doc));
1376
+ }, "comments"), { leading: i, trailing: o };
1377
+ }
1378
+ function Dn(e, t, r) {
1379
+ let { leading: n, trailing: u } = ai(e, r);
1380
+ return !n && !u ? t : me(t, (i) => [n, i, u]);
1381
+ }
1382
+ function ln(e) {
1383
+ let { [Symbol.for("comments")]: t, [Symbol.for("printedComments")]: r } = e;
1384
+ for (let n of t) {
1385
+ if (!n.printed && !r.has(n)) throw new Error('Comment "' + n.value.trim() + '" was not printed. Please report this error!');
1386
+ delete n.printed;
1387
+ }
1388
+ }
1389
+ var Re = class extends Error {
1390
+ name = "ConfigError";
1391
+ }, Ye = class extends Error {
1392
+ name = "UndefinedParserError";
1393
+ };
1394
+ var fn = { cursorOffset: { category: "Special", type: "int", default: -1, range: { start: -1, end: 1 / 0, step: 1 }, description: "Print (to stderr) where a cursor at the given position would move to after formatting.", cliCategory: "Editor" }, endOfLine: { category: "Global", type: "choice", default: "lf", description: "Which end of line characters to apply.", choices: [{ value: "lf", description: "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { value: "crlf", description: "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { value: "cr", description: "Carriage Return character only (\\r), used very rarely" }, { value: "auto", description: `Maintain existing
1395
+ (mixed values within one file are normalised by looking at what's used after the first line)` }] }, filepath: { category: "Special", type: "path", description: "Specify the input filepath. This will be used to do parser inference.", cliName: "stdin-filepath", cliCategory: "Other", cliDescription: "Path to the file to pretend that stdin comes from." }, insertPragma: { category: "Special", type: "boolean", default: false, description: "Insert @format pragma into file's first docblock comment.", cliCategory: "Other" }, parser: { category: "Global", type: "choice", default: void 0, description: "Which parser to use.", exception: (e) => typeof e == "string" || typeof e == "function", choices: [{ value: "flow", description: "Flow" }, { value: "babel", description: "JavaScript" }, { value: "babel-flow", description: "Flow" }, { value: "babel-ts", description: "TypeScript" }, { value: "typescript", description: "TypeScript" }, { value: "acorn", description: "JavaScript" }, { value: "espree", description: "JavaScript" }, { value: "meriyah", description: "JavaScript" }, { value: "css", description: "CSS" }, { value: "less", description: "Less" }, { value: "scss", description: "SCSS" }, { value: "json", description: "JSON" }, { value: "json5", description: "JSON5" }, { value: "jsonc", description: "JSON with Comments" }, { value: "json-stringify", description: "JSON.stringify" }, { value: "graphql", description: "GraphQL" }, { value: "markdown", description: "Markdown" }, { value: "mdx", description: "MDX" }, { value: "vue", description: "Vue" }, { value: "yaml", description: "YAML" }, { value: "glimmer", description: "Ember / Handlebars" }, { value: "html", description: "HTML" }, { value: "angular", description: "Angular" }, { value: "lwc", description: "Lightning Web Components" }] }, plugins: { type: "path", array: true, default: [{ value: [] }], category: "Global", description: "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.", exception: (e) => typeof e == "string" || typeof e == "object", cliName: "plugin", cliCategory: "Config" }, printWidth: { category: "Global", type: "int", default: 80, description: "The line length where Prettier will try wrap.", range: { start: 0, end: 1 / 0, step: 1 } }, rangeEnd: { category: "Special", type: "int", default: 1 / 0, range: { start: 0, end: 1 / 0, step: 1 }, description: `Format code ending at a given character offset (exclusive).
1396
+ The range will extend forwards to the end of the selected statement.`, cliCategory: "Editor" }, rangeStart: { category: "Special", type: "int", default: 0, range: { start: 0, end: 1 / 0, step: 1 }, description: `Format code starting at a given character offset.
1397
+ The range will extend backwards to the start of the first line containing the selected statement.`, cliCategory: "Editor" }, requirePragma: { category: "Special", type: "boolean", default: false, description: `Require either '@prettier' or '@format' to be present in the file's first docblock comment
1398
+ in order for it to be formatted.`, cliCategory: "Other" }, tabWidth: { type: "int", category: "Global", default: 2, description: "Number of spaces per indentation level.", range: { start: 0, end: 1 / 0, step: 1 } }, useTabs: { category: "Global", type: "boolean", default: false, description: "Indent with tabs instead of spaces." }, embeddedLanguageFormatting: { category: "Global", type: "choice", default: "auto", description: "Control how Prettier formats quoted code embedded in the file.", choices: [{ value: "auto", description: "Format embedded code if Prettier can automatically identify it." }, { value: "off", description: "Never automatically format embedded code." }] } };
1399
+ function it({ plugins: e = [], showDeprecated: t = false } = {}) {
1400
+ let r = e.flatMap((u) => u.languages ?? []), n = [];
1401
+ for (let u of ci(Object.assign({}, ...e.map(({ options: i }) => i), fn))) !t && u.deprecated || (Array.isArray(u.choices) && (t || (u.choices = u.choices.filter((i) => !i.deprecated)), u.name === "parser" && (u.choices = [...u.choices, ...li(u.choices, r, e)])), u.pluginDefaults = Object.fromEntries(e.filter((i) => {
1402
+ var o;
1403
+ return ((o = i.defaultOptions) == null ? void 0 : o[u.name]) !== void 0;
1404
+ }).map((i) => [i.name, i.defaultOptions[u.name]])), n.push(u));
1405
+ return { languages: r, options: n };
1406
+ }
1407
+ function* li(e, t, r) {
1408
+ let n = new Set(e.map((u) => u.value));
1409
+ for (let u of t) if (u.parsers) {
1410
+ for (let i of u.parsers) if (!n.has(i)) {
1411
+ n.add(i);
1412
+ let o = r.find((a) => a.parsers && Object.prototype.hasOwnProperty.call(a.parsers, i)), s = u.name;
1413
+ o != null && o.name && (s += ` (plugin: ${o.name})`), yield { value: i, description: s };
1414
+ }
1415
+ }
1416
+ }
1417
+ function ci(e) {
1418
+ let t = [];
1419
+ for (let [r, n] of Object.entries(e)) {
1420
+ let u = { name: r, ...n };
1421
+ Array.isArray(u.default) && (u.default = A(false, u.default, -1).value), t.push(u);
1422
+ }
1423
+ return t;
1424
+ }
1425
+ var fi = (e) => String(e).split(/[/\\]/u).pop();
1426
+ function dn(e, t) {
1427
+ if (!t) return;
1428
+ let r = fi(t).toLowerCase();
1429
+ return e.find(({ filenames: n }) => n == null ? void 0 : n.some((u) => u.toLowerCase() === r)) ?? e.find(({ extensions: n }) => n == null ? void 0 : n.some((u) => r.endsWith(u)));
1430
+ }
1431
+ function di(e, t) {
1432
+ if (t) return e.find(({ name: r }) => r.toLowerCase() === t) ?? e.find(({ aliases: r }) => r == null ? void 0 : r.includes(t)) ?? e.find(({ extensions: r }) => r == null ? void 0 : r.includes(`.${t}`));
1433
+ }
1434
+ function pi(e, t) {
1435
+ let r = e.plugins.flatMap((u) => u.languages ?? []), n = di(r, t.language) ?? dn(r, t.physicalFile) ?? dn(r, t.file) ?? (t.physicalFile, void 0);
1436
+ return n == null ? void 0 : n.parsers[0];
1437
+ }
1438
+ var pn = pi;
1439
+ var oe = { key: (e) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e) ? e : JSON.stringify(e), value(e) {
1440
+ if (e === null || typeof e != "object") return JSON.stringify(e);
1441
+ if (Array.isArray(e)) return `[${e.map((r) => oe.value(r)).join(", ")}]`;
1442
+ let t = Object.keys(e);
1443
+ return t.length === 0 ? "{}" : `{ ${t.map((r) => `${oe.key(r)}: ${oe.value(e[r])}`).join(", ")} }`;
1444
+ }, pair: ({ key: e, value: t }) => oe.value({ [e]: t }) };
1445
+ var Ut = Me(ot()), hn = (e, t, { descriptor: r }) => {
1446
+ let n = [`${Ut.default.yellow(typeof e == "string" ? r.key(e) : r.pair(e))} is deprecated`];
1447
+ return t && n.push(`we now treat it as ${Ut.default.blue(typeof t == "string" ? r.key(t) : r.pair(t))}`), n.join("; ") + ".";
1448
+ };
1449
+ var ce = Me(ot());
1450
+ var st = Symbol.for("vnopts.VALUE_NOT_EXIST"), ve = Symbol.for("vnopts.VALUE_UNCHANGED");
1451
+ var En = " ".repeat(2), gn = (e, t, r) => {
1452
+ let { text: n, list: u } = r.normalizeExpectedResult(r.schemas[e].expected(r)), i = [];
1453
+ return n && i.push(Cn(e, t, n, r.descriptor)), u && i.push([Cn(e, t, u.title, r.descriptor)].concat(u.values.map((o) => yn(o, r.loggerPrintWidth))).join(`
1454
+ `)), An(i, r.loggerPrintWidth);
1455
+ };
1456
+ function Cn(e, t, r, n) {
1457
+ return [`Invalid ${ce.default.red(n.key(e))} value.`, `Expected ${ce.default.blue(r)},`, `but received ${t === st ? ce.default.gray("nothing") : ce.default.red(n.value(t))}.`].join(" ");
1458
+ }
1459
+ function yn({ text: e, list: t }, r) {
1460
+ let n = [];
1461
+ return e && n.push(`- ${ce.default.blue(e)}`), t && n.push([`- ${ce.default.blue(t.title)}:`].concat(t.values.map((u) => yn(u, r - En.length).replace(/^|\n/g, `$&${En}`))).join(`
1462
+ `)), An(n, r);
1463
+ }
1464
+ function An(e, t) {
1465
+ if (e.length === 1) return e[0];
1466
+ let [r, n] = e, [u, i] = e.map((o) => o.split(`
1467
+ `, 1)[0].length);
1468
+ return u > t && u > i ? n : r;
1469
+ }
1470
+ var Kt = Me(ot());
1471
+ var zt = [], vn = [];
1472
+ function Gt(e, t) {
1473
+ if (e === t) return 0;
1474
+ let r = e;
1475
+ e.length > t.length && (e = t, t = r);
1476
+ let n = e.length, u = t.length;
1477
+ for (; n > 0 && e.charCodeAt(~-n) === t.charCodeAt(~-u); ) n--, u--;
1478
+ let i = 0;
1479
+ for (; i < n && e.charCodeAt(i) === t.charCodeAt(i); ) i++;
1480
+ if (n -= i, u -= i, n === 0) return u;
1481
+ let o, s, a, D, l = 0, p = 0;
1482
+ for (; l < n; ) vn[l] = e.charCodeAt(i + l), zt[l] = ++l;
1483
+ for (; p < u; ) for (o = t.charCodeAt(i + p), a = p++, s = p, l = 0; l < n; l++) D = o === vn[l] ? a : a + 1, a = zt[l], s = zt[l] = a > s ? D > s ? s + 1 : D : D > a ? a + 1 : D;
1484
+ return s;
1485
+ }
1486
+ var at = (e, t, { descriptor: r, logger: n, schemas: u }) => {
1487
+ let i = [`Ignored unknown option ${Kt.default.yellow(r.pair({ key: e, value: t }))}.`], o = Object.keys(u).sort().find((s) => Gt(e, s) < 3);
1488
+ o && i.push(`Did you mean ${Kt.default.blue(r.key(o))}?`), n.warn(i.join(" "));
1489
+ };
1490
+ var Fi = ["default", "expected", "validate", "deprecated", "forward", "redirect", "overlap", "preprocess", "postprocess"];
1491
+ function mi(e, t) {
1492
+ let r = new e(t), n = Object.create(r);
1493
+ for (let u of Fi) u in t && (n[u] = hi(t[u], r, x.prototype[u].length));
1494
+ return n;
1495
+ }
1496
+ var x = class {
1497
+ static create(t) {
1498
+ return mi(this, t);
1499
+ }
1500
+ constructor(t) {
1501
+ this.name = t.name;
1502
+ }
1503
+ default(t) {
1504
+ }
1505
+ expected(t) {
1506
+ return "nothing";
1507
+ }
1508
+ validate(t, r) {
1509
+ return false;
1510
+ }
1511
+ deprecated(t, r) {
1512
+ return false;
1513
+ }
1514
+ forward(t, r) {
1515
+ }
1516
+ redirect(t, r) {
1517
+ }
1518
+ overlap(t, r, n) {
1519
+ return t;
1520
+ }
1521
+ preprocess(t, r) {
1522
+ return t;
1523
+ }
1524
+ postprocess(t, r) {
1525
+ return ve;
1526
+ }
1527
+ };
1528
+ function hi(e, t, r) {
1529
+ return typeof e == "function" ? (...n) => e(...n.slice(0, r - 1), t, ...n.slice(r - 1)) : () => e;
1530
+ }
1531
+ var Dt = class extends x {
1532
+ constructor(t) {
1533
+ super(t), this._sourceName = t.sourceName;
1534
+ }
1535
+ expected(t) {
1536
+ return t.schemas[this._sourceName].expected(t);
1537
+ }
1538
+ validate(t, r) {
1539
+ return r.schemas[this._sourceName].validate(t, r);
1540
+ }
1541
+ redirect(t, r) {
1542
+ return this._sourceName;
1543
+ }
1544
+ };
1545
+ var lt = class extends x {
1546
+ expected() {
1547
+ return "anything";
1548
+ }
1549
+ validate() {
1550
+ return true;
1551
+ }
1552
+ };
1553
+ var ct = class extends x {
1554
+ constructor({ valueSchema: t, name: r = t.name, ...n }) {
1555
+ super({ ...n, name: r }), this._valueSchema = t;
1556
+ }
1557
+ expected(t) {
1558
+ let { text: r, list: n } = t.normalizeExpectedResult(this._valueSchema.expected(t));
1559
+ return { text: r && `an array of ${r}`, list: n && { title: "an array of the following values", values: [{ list: n }] } };
1560
+ }
1561
+ validate(t, r) {
1562
+ if (!Array.isArray(t)) return false;
1563
+ let n = [];
1564
+ for (let u of t) {
1565
+ let i = r.normalizeValidateResult(this._valueSchema.validate(u, r), u);
1566
+ i !== true && n.push(i.value);
1567
+ }
1568
+ return n.length === 0 ? true : { value: n };
1569
+ }
1570
+ deprecated(t, r) {
1571
+ let n = [];
1572
+ for (let u of t) {
1573
+ let i = r.normalizeDeprecatedResult(this._valueSchema.deprecated(u, r), u);
1574
+ i !== false && n.push(...i.map(({ value: o }) => ({ value: [o] })));
1575
+ }
1576
+ return n;
1577
+ }
1578
+ forward(t, r) {
1579
+ let n = [];
1580
+ for (let u of t) {
1581
+ let i = r.normalizeForwardResult(this._valueSchema.forward(u, r), u);
1582
+ n.push(...i.map(Bn));
1583
+ }
1584
+ return n;
1585
+ }
1586
+ redirect(t, r) {
1587
+ let n = [], u = [];
1588
+ for (let i of t) {
1589
+ let o = r.normalizeRedirectResult(this._valueSchema.redirect(i, r), i);
1590
+ "remain" in o && n.push(o.remain), u.push(...o.redirect.map(Bn));
1591
+ }
1592
+ return n.length === 0 ? { redirect: u } : { redirect: u, remain: n };
1593
+ }
1594
+ overlap(t, r) {
1595
+ return t.concat(r);
1596
+ }
1597
+ };
1598
+ function Bn({ from: e, to: t }) {
1599
+ return { from: [e], to: t };
1600
+ }
1601
+ var ft = class extends x {
1602
+ expected() {
1603
+ return "true or false";
1604
+ }
1605
+ validate(t) {
1606
+ return typeof t == "boolean";
1607
+ }
1608
+ };
1609
+ function _n(e, t) {
1610
+ let r = /* @__PURE__ */ Object.create(null);
1611
+ for (let n of e) {
1612
+ let u = n[t];
1613
+ if (r[u]) throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);
1614
+ r[u] = n;
1615
+ }
1616
+ return r;
1617
+ }
1618
+ function xn(e, t) {
1619
+ let r = /* @__PURE__ */ new Map();
1620
+ for (let n of e) {
1621
+ let u = n[t];
1622
+ if (r.has(u)) throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);
1623
+ r.set(u, n);
1624
+ }
1625
+ return r;
1626
+ }
1627
+ function bn() {
1628
+ let e = /* @__PURE__ */ Object.create(null);
1629
+ return (t) => {
1630
+ let r = JSON.stringify(t);
1631
+ return e[r] ? true : (e[r] = true, false);
1632
+ };
1633
+ }
1634
+ function Nn(e, t) {
1635
+ let r = [], n = [];
1636
+ for (let u of e) t(u) ? r.push(u) : n.push(u);
1637
+ return [r, n];
1638
+ }
1639
+ function On(e) {
1640
+ return e === Math.floor(e);
1641
+ }
1642
+ function Sn(e, t) {
1643
+ if (e === t) return 0;
1644
+ let r = typeof e, n = typeof t, u = ["undefined", "object", "boolean", "number", "string"];
1645
+ return r !== n ? u.indexOf(r) - u.indexOf(n) : r !== "string" ? Number(e) - Number(t) : e.localeCompare(t);
1646
+ }
1647
+ function Tn(e) {
1648
+ return (...t) => {
1649
+ let r = e(...t);
1650
+ return typeof r == "string" ? new Error(r) : r;
1651
+ };
1652
+ }
1653
+ function Jt(e) {
1654
+ return e === void 0 ? {} : e;
1655
+ }
1656
+ function qt(e) {
1657
+ if (typeof e == "string") return { text: e };
1658
+ let { text: t, list: r } = e;
1659
+ return Ei((t || r) !== void 0, "Unexpected `expected` result, there should be at least one field."), r ? { text: t, list: { title: r.title, values: r.values.map(qt) } } : { text: t };
1660
+ }
1661
+ function Xt(e, t) {
1662
+ return e === true ? true : e === false ? { value: t } : e;
1663
+ }
1664
+ function Qt(e, t, r = false) {
1665
+ return e === false ? false : e === true ? r ? true : [{ value: t }] : "value" in e ? [e] : e.length === 0 ? false : e;
1666
+ }
1667
+ function wn(e, t) {
1668
+ return typeof e == "string" || "key" in e ? { from: t, to: e } : "from" in e ? { from: e.from, to: e.to } : { from: t, to: e.to };
1669
+ }
1670
+ function dt(e, t) {
1671
+ return e === void 0 ? [] : Array.isArray(e) ? e.map((r) => wn(r, t)) : [wn(e, t)];
1672
+ }
1673
+ function Zt(e, t) {
1674
+ let r = dt(typeof e == "object" && "redirect" in e ? e.redirect : e, t);
1675
+ return r.length === 0 ? { remain: t, redirect: r } : typeof e == "object" && "remain" in e ? { remain: e.remain, redirect: r } : { redirect: r };
1676
+ }
1677
+ function Ei(e, t) {
1678
+ if (!e) throw new Error(t);
1679
+ }
1680
+ var pt = class extends x {
1681
+ constructor(t) {
1682
+ super(t), this._choices = xn(t.choices.map((r) => r && typeof r == "object" ? r : { value: r }), "value");
1683
+ }
1684
+ expected({ descriptor: t }) {
1685
+ let r = Array.from(this._choices.keys()).map((o) => this._choices.get(o)).filter(({ hidden: o }) => !o).map((o) => o.value).sort(Sn).map(t.value), n = r.slice(0, -2), u = r.slice(-2);
1686
+ return { text: n.concat(u.join(" or ")).join(", "), list: { title: "one of the following values", values: r } };
1687
+ }
1688
+ validate(t) {
1689
+ return this._choices.has(t);
1690
+ }
1691
+ deprecated(t) {
1692
+ let r = this._choices.get(t);
1693
+ return r && r.deprecated ? { value: t } : false;
1694
+ }
1695
+ forward(t) {
1696
+ let r = this._choices.get(t);
1697
+ return r ? r.forward : void 0;
1698
+ }
1699
+ redirect(t) {
1700
+ let r = this._choices.get(t);
1701
+ return r ? r.redirect : void 0;
1702
+ }
1703
+ };
1704
+ var Ft = class extends x {
1705
+ expected() {
1706
+ return "a number";
1707
+ }
1708
+ validate(t, r) {
1709
+ return typeof t == "number";
1710
+ }
1711
+ };
1712
+ var mt = class extends Ft {
1713
+ expected() {
1714
+ return "an integer";
1715
+ }
1716
+ validate(t, r) {
1717
+ return r.normalizeValidateResult(super.validate(t, r), t) === true && On(t);
1718
+ }
1719
+ };
1720
+ var je = class extends x {
1721
+ expected() {
1722
+ return "a string";
1723
+ }
1724
+ validate(t) {
1725
+ return typeof t == "string";
1726
+ }
1727
+ };
1728
+ var kn = oe, Ln = at, Pn = gn, In = hn;
1729
+ var ht = class {
1730
+ constructor(t, r) {
1731
+ let { logger: n = console, loggerPrintWidth: u = 80, descriptor: i = kn, unknown: o = Ln, invalid: s = Pn, deprecated: a = In, missing: D = () => false, required: l = () => false, preprocess: p = (d) => d, postprocess: f = () => ve } = r || {};
1732
+ this._utils = { descriptor: i, logger: n || { warn: () => {
1733
+ } }, loggerPrintWidth: u, schemas: _n(t, "name"), normalizeDefaultResult: Jt, normalizeExpectedResult: qt, normalizeDeprecatedResult: Qt, normalizeForwardResult: dt, normalizeRedirectResult: Zt, normalizeValidateResult: Xt }, this._unknownHandler = o, this._invalidHandler = Tn(s), this._deprecatedHandler = a, this._identifyMissing = (d, c) => !(d in c) || D(d, c), this._identifyRequired = l, this._preprocess = p, this._postprocess = f, this.cleanHistory();
1734
+ }
1735
+ cleanHistory() {
1736
+ this._hasDeprecationWarned = bn();
1737
+ }
1738
+ normalize(t) {
1739
+ let r = {}, u = [this._preprocess(t, this._utils)], i = () => {
1740
+ for (; u.length !== 0; ) {
1741
+ let o = u.shift(), s = this._applyNormalization(o, r);
1742
+ u.push(...s);
1743
+ }
1744
+ };
1745
+ i();
1746
+ for (let o of Object.keys(this._utils.schemas)) {
1747
+ let s = this._utils.schemas[o];
1748
+ if (!(o in r)) {
1749
+ let a = Jt(s.default(this._utils));
1750
+ "value" in a && u.push({ [o]: a.value });
1751
+ }
1752
+ }
1753
+ i();
1754
+ for (let o of Object.keys(this._utils.schemas)) {
1755
+ if (!(o in r)) continue;
1756
+ let s = this._utils.schemas[o], a = r[o], D = s.postprocess(a, this._utils);
1757
+ D !== ve && (this._applyValidation(D, o, s), r[o] = D);
1758
+ }
1759
+ return this._applyPostprocess(r), this._applyRequiredCheck(r), r;
1760
+ }
1761
+ _applyNormalization(t, r) {
1762
+ let n = [], { knownKeys: u, unknownKeys: i } = this._partitionOptionKeys(t);
1763
+ for (let o of u) {
1764
+ let s = this._utils.schemas[o], a = s.preprocess(t[o], this._utils);
1765
+ this._applyValidation(a, o, s);
1766
+ let D = ({ from: d, to: c }) => {
1767
+ n.push(typeof c == "string" ? { [c]: d } : { [c.key]: c.value });
1768
+ }, l = ({ value: d, redirectTo: c }) => {
1769
+ let F = Qt(s.deprecated(d, this._utils), a, true);
1770
+ if (F !== false) if (F === true) this._hasDeprecationWarned(o) || this._utils.logger.warn(this._deprecatedHandler(o, c, this._utils));
1771
+ else for (let { value: m } of F) {
1772
+ let h = { key: o, value: m };
1773
+ if (!this._hasDeprecationWarned(h)) {
1774
+ let C = typeof c == "string" ? { key: c, value: m } : c;
1775
+ this._utils.logger.warn(this._deprecatedHandler(h, C, this._utils));
1776
+ }
1777
+ }
1778
+ };
1779
+ dt(s.forward(a, this._utils), a).forEach(D);
1780
+ let f = Zt(s.redirect(a, this._utils), a);
1781
+ if (f.redirect.forEach(D), "remain" in f) {
1782
+ let d = f.remain;
1783
+ r[o] = o in r ? s.overlap(r[o], d, this._utils) : d, l({ value: d });
1784
+ }
1785
+ for (let { from: d, to: c } of f.redirect) l({ value: d, redirectTo: c });
1786
+ }
1787
+ for (let o of i) {
1788
+ let s = t[o];
1789
+ this._applyUnknownHandler(o, s, r, (a, D) => {
1790
+ n.push({ [a]: D });
1791
+ });
1792
+ }
1793
+ return n;
1794
+ }
1795
+ _applyRequiredCheck(t) {
1796
+ for (let r of Object.keys(this._utils.schemas)) if (this._identifyMissing(r, t) && this._identifyRequired(r)) throw this._invalidHandler(r, st, this._utils);
1797
+ }
1798
+ _partitionOptionKeys(t) {
1799
+ let [r, n] = Nn(Object.keys(t).filter((u) => !this._identifyMissing(u, t)), (u) => u in this._utils.schemas);
1800
+ return { knownKeys: r, unknownKeys: n };
1801
+ }
1802
+ _applyValidation(t, r, n) {
1803
+ let u = Xt(n.validate(t, this._utils), t);
1804
+ if (u !== true) throw this._invalidHandler(r, u.value, this._utils);
1805
+ }
1806
+ _applyUnknownHandler(t, r, n, u) {
1807
+ let i = this._unknownHandler(t, r, this._utils);
1808
+ if (i) for (let o of Object.keys(i)) {
1809
+ if (this._identifyMissing(o, i)) continue;
1810
+ let s = i[o];
1811
+ o in this._utils.schemas ? u(o, s) : n[o] = s;
1812
+ }
1813
+ }
1814
+ _applyPostprocess(t) {
1815
+ let r = this._postprocess(t, this._utils);
1816
+ if (r !== ve) {
1817
+ if (r.delete) for (let n of r.delete) delete t[n];
1818
+ if (r.override) {
1819
+ let { knownKeys: n, unknownKeys: u } = this._partitionOptionKeys(r.override);
1820
+ for (let i of n) {
1821
+ let o = r.override[i];
1822
+ this._applyValidation(o, i, this._utils.schemas[i]), t[i] = o;
1823
+ }
1824
+ for (let i of u) {
1825
+ let o = r.override[i];
1826
+ this._applyUnknownHandler(i, o, t, (s, a) => {
1827
+ let D = this._utils.schemas[s];
1828
+ this._applyValidation(a, s, D), t[s] = a;
1829
+ });
1830
+ }
1831
+ }
1832
+ }
1833
+ }
1834
+ };
1835
+ var er;
1836
+ function gi(e, t, { logger: r = false, isCLI: n = false, passThrough: u = false, FlagSchema: i, descriptor: o } = {}) {
1837
+ if (n) {
1838
+ if (!i) throw new Error("'FlagSchema' option is required.");
1839
+ if (!o) throw new Error("'descriptor' option is required.");
1840
+ } else o = oe;
1841
+ let s = u ? Array.isArray(u) ? (f, d) => u.includes(f) ? { [f]: d } : void 0 : (f, d) => ({ [f]: d }) : (f, d, c) => {
1842
+ let { _: F, ...m } = c.schemas;
1843
+ return at(f, d, { ...c, schemas: m });
1844
+ }, a = yi(t, { isCLI: n, FlagSchema: i }), D = new ht(a, { logger: r, unknown: s, descriptor: o }), l = r !== false;
1845
+ l && er && (D._hasDeprecationWarned = er);
1846
+ let p = D.normalize(e);
1847
+ return l && (er = D._hasDeprecationWarned), p;
1848
+ }
1849
+ function yi(e, { isCLI: t, FlagSchema: r }) {
1850
+ let n = [];
1851
+ t && n.push(lt.create({ name: "_" }));
1852
+ for (let u of e) n.push(Ai(u, { isCLI: t, optionInfos: e, FlagSchema: r })), u.alias && t && n.push(Dt.create({ name: u.alias, sourceName: u.name }));
1853
+ return n;
1854
+ }
1855
+ function Ai(e, { isCLI: t, optionInfos: r, FlagSchema: n }) {
1856
+ let { name: u } = e, i = { name: u }, o, s = {};
1857
+ switch (e.type) {
1858
+ case "int":
1859
+ o = mt, t && (i.preprocess = Number);
1860
+ break;
1861
+ case "string":
1862
+ o = je;
1863
+ break;
1864
+ case "choice":
1865
+ o = pt, i.choices = e.choices.map((a) => a != null && a.redirect ? { ...a, redirect: { to: { key: e.name, value: a.redirect } } } : a);
1866
+ break;
1867
+ case "boolean":
1868
+ o = ft;
1869
+ break;
1870
+ case "flag":
1871
+ o = n, i.flags = r.flatMap((a) => [a.alias, a.description && a.name, a.oppositeDescription && `no-${a.name}`].filter(Boolean));
1872
+ break;
1873
+ case "path":
1874
+ o = je;
1875
+ break;
1876
+ default:
1877
+ throw new Error(`Unexpected type ${e.type}`);
1878
+ }
1879
+ if (e.exception ? i.validate = (a, D, l) => e.exception(a) || D.validate(a, l) : i.validate = (a, D, l) => a === void 0 || D.validate(a, l), e.redirect && (s.redirect = (a) => a ? { to: typeof e.redirect == "string" ? e.redirect : { key: e.redirect.option, value: e.redirect.value } } : void 0), e.deprecated && (s.deprecated = true), t && !e.array) {
1880
+ let a = i.preprocess || ((D) => D);
1881
+ i.preprocess = (D, l, p) => l.preprocess(a(Array.isArray(D) ? A(false, D, -1) : D), p);
1882
+ }
1883
+ return e.array ? ct.create({ ...t ? { preprocess: (a) => Array.isArray(a) ? a : [a] } : {}, ...s, valueSchema: o.create(i) }) : o.create({ ...i, ...s });
1884
+ }
1885
+ var Rn = gi;
1886
+ var vi = (e, t, r) => {
1887
+ if (!(e && t == null)) {
1888
+ if (t.findLast) return t.findLast(r);
1889
+ for (let n = t.length - 1; n >= 0; n--) {
1890
+ let u = t[n];
1891
+ if (r(u, n, t)) return u;
1892
+ }
1893
+ }
1894
+ }, tr = vi;
1895
+ function rr(e, t) {
1896
+ if (!t) throw new Error("parserName is required.");
1897
+ let r = tr(false, e, (u) => u.parsers && Object.prototype.hasOwnProperty.call(u.parsers, t));
1898
+ if (r) return r;
1899
+ let n = `Couldn't resolve parser "${t}".`;
1900
+ throw n += " Plugins must be explicitly added to the standalone bundle.", new Re(n);
1901
+ }
1902
+ function Yn(e, t) {
1903
+ if (!t) throw new Error("astFormat is required.");
1904
+ let r = tr(false, e, (u) => u.printers && Object.prototype.hasOwnProperty.call(u.printers, t));
1905
+ if (r) return r;
1906
+ let n = `Couldn't find plugin for AST format "${t}".`;
1907
+ throw n += " Plugins must be explicitly added to the standalone bundle.", new Re(n);
1908
+ }
1909
+ function Et({ plugins: e, parser: t }) {
1910
+ let r = rr(e, t);
1911
+ return nr(r, t);
1912
+ }
1913
+ function nr(e, t) {
1914
+ let r = e.parsers[t];
1915
+ return typeof r == "function" ? r() : r;
1916
+ }
1917
+ function jn(e, t) {
1918
+ let r = e.printers[t];
1919
+ return typeof r == "function" ? r() : r;
1920
+ }
1921
+ var Hn = { astFormat: "estree", printer: {}, originalText: void 0, locStart: null, locEnd: null };
1922
+ async function Bi(e, t = {}) {
1923
+ var p;
1924
+ let r = { ...e };
1925
+ if (!r.parser) if (r.filepath) {
1926
+ if (r.parser = pn(r, { physicalFile: r.filepath }), !r.parser) throw new Ye(`No parser could be inferred for file "${r.filepath}".`);
1927
+ } else throw new Ye("No parser and no file path given, couldn't infer a parser.");
1928
+ let n = it({ plugins: e.plugins, showDeprecated: true }).options, u = { ...Hn, ...Object.fromEntries(n.filter((f) => f.default !== void 0).map((f) => [f.name, f.default])) }, i = rr(r.plugins, r.parser), o = await nr(i, r.parser);
1929
+ r.astFormat = o.astFormat, r.locEnd = o.locEnd, r.locStart = o.locStart;
1930
+ let s = (p = i.printers) != null && p[o.astFormat] ? i : Yn(r.plugins, o.astFormat), a = await jn(s, o.astFormat);
1931
+ r.printer = a;
1932
+ let D = s.defaultOptions ? Object.fromEntries(Object.entries(s.defaultOptions).filter(([, f]) => f !== void 0)) : {}, l = { ...u, ...D };
1933
+ for (let [f, d] of Object.entries(l)) (r[f] === null || r[f] === void 0) && (r[f] = d);
1934
+ return r.parser === "json" && (r.trailingComma = "none"), Rn(r, n, { passThrough: Object.keys(Hn), ...t });
1935
+ }
1936
+ var se = Bi;
1937
+ var Mn = Me($n());
1938
+ async function bi(e, t) {
1939
+ let r = await Et(t), n = r.preprocess ? r.preprocess(e, t) : e;
1940
+ t.originalText = n;
1941
+ let u;
1942
+ try {
1943
+ u = await r.parse(n, t, t);
1944
+ } catch (i) {
1945
+ Ni(i, e);
1946
+ }
1947
+ return { text: n, ast: u };
1948
+ }
1949
+ function Ni(e, t) {
1950
+ let { loc: r } = e;
1951
+ if (r) {
1952
+ let n = (0, Mn.codeFrameColumns)(t, r, { highlightCode: true });
1953
+ throw e.message += `
1954
+ ` + n, e.codeFrame = n, e;
1955
+ }
1956
+ throw e;
1957
+ }
1958
+ var fe = bi;
1959
+ async function Vn(e, t, r, n, u) {
1960
+ let { embeddedLanguageFormatting: i, printer: { embed: o, hasPrettierIgnore: s = () => false, getVisitorKeys: a } } = r;
1961
+ if (!o || i !== "auto") return;
1962
+ if (o.length > 2) throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");
1963
+ let D = q(o.getVisitorKeys ?? a), l = [];
1964
+ d();
1965
+ let p = e.stack;
1966
+ for (let { print: c, node: F, pathStack: m } of l) try {
1967
+ e.stack = m;
1968
+ let h = await c(f, t, e, r);
1969
+ h && u.set(F, h);
1970
+ } catch (h) {
1971
+ if (globalThis.PRETTIER_DEBUG) throw h;
1972
+ }
1973
+ e.stack = p;
1974
+ function f(c, F) {
1975
+ return Oi(c, F, r, n);
1976
+ }
1977
+ function d() {
1978
+ let { node: c } = e;
1979
+ if (c === null || typeof c != "object" || s(e)) return;
1980
+ for (let m of D(c)) Array.isArray(c[m]) ? e.each(d, m) : e.call(d, m);
1981
+ let F = o(e, r);
1982
+ if (F) {
1983
+ if (typeof F == "function") {
1984
+ l.push({ print: F, node: c, pathStack: [...e.stack] });
1985
+ return;
1986
+ }
1987
+ u.set(c, F);
1988
+ }
1989
+ }
1990
+ }
1991
+ async function Oi(e, t, r, n) {
1992
+ let u = await se({ ...r, ...t, parentParser: r.parser, originalText: e }, { passThrough: true }), { ast: i } = await fe(e, u), o = await n(i, u);
1993
+ return qe(o);
1994
+ }
1995
+ function Si(e, t) {
1996
+ let { originalText: r, [Symbol.for("comments")]: n, locStart: u, locEnd: i, [Symbol.for("printedComments")]: o } = t, { node: s } = e, a = u(s), D = i(s);
1997
+ for (let l of n) u(l) >= a && i(l) <= D && o.add(l);
1998
+ return r.slice(a, D);
1999
+ }
2000
+ var Un = Si;
2001
+ async function He(e, t) {
2002
+ ({ ast: e } = await ir(e, t));
2003
+ let r = /* @__PURE__ */ new Map(), n = new qr(e), i = /* @__PURE__ */ new Map();
2004
+ await Vn(n, s, t, He, i);
2005
+ let o = await zn(n, t, s, void 0, i);
2006
+ if (ln(t), t.nodeAfterCursor && !t.nodeBeforeCursor) return [Z, o];
2007
+ if (t.nodeBeforeCursor && !t.nodeAfterCursor) return [o, Z];
2008
+ return o;
2009
+ function s(D, l) {
2010
+ return D === void 0 || D === n ? a(l) : Array.isArray(D) ? n.call(() => a(l), ...D) : n.call(() => a(l), D);
2011
+ }
2012
+ function a(D) {
2013
+ let l = n.node;
2014
+ if (l == null) return "";
2015
+ let p = l && typeof l == "object" && D === void 0;
2016
+ if (p && r.has(l)) return r.get(l);
2017
+ let f = zn(n, t, s, D, i);
2018
+ return p && r.set(l, f), f;
2019
+ }
2020
+ }
2021
+ function zn(e, t, r, n, u) {
2022
+ var a;
2023
+ let { node: i } = e, { printer: o } = t, s;
2024
+ switch ((a = o.hasPrettierIgnore) != null && a.call(o, e) ? s = Un(e, t) : u.has(i) ? s = u.get(i) : s = o.print(e, t, r, n), i) {
2025
+ case t.cursorNode:
2026
+ s = me(s, (D) => [Z, D, Z]);
2027
+ break;
2028
+ case t.nodeBeforeCursor:
2029
+ s = me(s, (D) => [D, Z]);
2030
+ break;
2031
+ case t.nodeAfterCursor:
2032
+ s = me(s, (D) => [Z, D]);
2033
+ break;
2034
+ }
2035
+ return o.printComment && (!o.willPrintOwnComments || !o.willPrintOwnComments(e, t)) && (s = Dn(e, s, t)), s;
2036
+ }
2037
+ async function ir(e, t) {
2038
+ let r = e.comments ?? [];
2039
+ t[Symbol.for("comments")] = r, t[Symbol.for("tokens")] = e.tokens ?? [], t[Symbol.for("printedComments")] = /* @__PURE__ */ new Set(), on(e, t);
2040
+ let { printer: { preprocess: n } } = t;
2041
+ return e = n ? await n(e, t) : e, { ast: e, comments: r };
2042
+ }
2043
+ function Ti(e, t) {
2044
+ let { cursorOffset: r, locStart: n, locEnd: u } = t, i = q(t.printer.getVisitorKeys), o = (d) => n(d) <= r && u(d) >= r, s = e, a = [e];
2045
+ for (let d of Zr(e, { getVisitorKeys: i, filter: o })) a.push(d), s = d;
2046
+ if (en(s, { getVisitorKeys: i })) return { cursorNode: s };
2047
+ let D, l, p = -1, f = Number.POSITIVE_INFINITY;
2048
+ for (; a.length > 0 && (D === void 0 || l === void 0); ) {
2049
+ s = a.pop();
2050
+ let d = D !== void 0, c = l !== void 0;
2051
+ for (let F of ye(s, { getVisitorKeys: i })) {
2052
+ if (!d) {
2053
+ let m = u(F);
2054
+ m <= r && m > p && (D = F, p = m);
2055
+ }
2056
+ if (!c) {
2057
+ let m = n(F);
2058
+ m >= r && m < f && (l = F, f = m);
2059
+ }
2060
+ }
2061
+ }
2062
+ return { nodeBeforeCursor: D, nodeAfterCursor: l };
2063
+ }
2064
+ var Gn = Ti;
2065
+ function ki(e, t) {
2066
+ let { printer: { massageAstNode: r, getVisitorKeys: n } } = t;
2067
+ if (!r) return e;
2068
+ let u = q(n), i = r.ignoredProperties ?? /* @__PURE__ */ new Set();
2069
+ return o(e);
2070
+ function o(s, a) {
2071
+ if (!(s !== null && typeof s == "object")) return s;
2072
+ if (Array.isArray(s)) return s.map((f) => o(f, a)).filter(Boolean);
2073
+ let D = {}, l = new Set(u(s));
2074
+ for (let f in s) !Object.prototype.hasOwnProperty.call(s, f) || i.has(f) || (l.has(f) ? D[f] = o(s[f], s) : D[f] = s[f]);
2075
+ let p = r(s, D, a);
2076
+ if (p !== null) return p ?? D;
2077
+ }
2078
+ }
2079
+ var Kn = ki;
2080
+ var Li = (e, t, r) => {
2081
+ if (!(e && t == null)) {
2082
+ if (t.findLastIndex) return t.findLastIndex(r);
2083
+ for (let n = t.length - 1; n >= 0; n--) {
2084
+ let u = t[n];
2085
+ if (r(u, n, t)) return n;
2086
+ }
2087
+ return -1;
2088
+ }
2089
+ }, Jn = Li;
2090
+ var Pi = ({ parser: e }) => e === "json" || e === "json5" || e === "jsonc" || e === "json-stringify";
2091
+ function Ii(e, t) {
2092
+ let r = [e.node, ...e.parentNodes], n = /* @__PURE__ */ new Set([t.node, ...t.parentNodes]);
2093
+ return r.find((u) => Qn.has(u.type) && n.has(u));
2094
+ }
2095
+ function qn(e) {
2096
+ let t = Jn(false, e, (r) => r.type !== "Program" && r.type !== "File");
2097
+ return t === -1 ? e : e.slice(0, t + 1);
2098
+ }
2099
+ function Ri(e, t, { locStart: r, locEnd: n }) {
2100
+ let u = e.node, i = t.node;
2101
+ if (u === i) return { startNode: u, endNode: i };
2102
+ let o = r(e.node);
2103
+ for (let a of qn(t.parentNodes)) if (r(a) >= o) i = a;
2104
+ else break;
2105
+ let s = n(t.node);
2106
+ for (let a of qn(e.parentNodes)) {
2107
+ if (n(a) <= s) u = a;
2108
+ else break;
2109
+ if (u === i) break;
2110
+ }
2111
+ return { startNode: u, endNode: i };
2112
+ }
2113
+ function or(e, t, r, n, u = [], i) {
2114
+ let { locStart: o, locEnd: s } = r, a = o(e), D = s(e);
2115
+ if (!(t > D || t < a || i === "rangeEnd" && t === a || i === "rangeStart" && t === D)) {
2116
+ for (let l of ut(e, r)) {
2117
+ let p = or(l, t, r, n, [e, ...u], i);
2118
+ if (p) return p;
2119
+ }
2120
+ if (!n || n(e, u[0])) return { node: e, parentNodes: u };
2121
+ }
2122
+ }
2123
+ function Yi(e, t) {
2124
+ return t !== "DeclareExportDeclaration" && e !== "TypeParameterDeclaration" && (e === "Directive" || e === "TypeAlias" || e === "TSExportAssignment" || e.startsWith("Declare") || e.startsWith("TSDeclare") || e.endsWith("Statement") || e.endsWith("Declaration"));
2125
+ }
2126
+ var Qn = /* @__PURE__ */ new Set(["JsonRoot", "ObjectExpression", "ArrayExpression", "StringLiteral", "NumericLiteral", "BooleanLiteral", "NullLiteral", "UnaryExpression", "TemplateLiteral"]), ji = /* @__PURE__ */ new Set(["OperationDefinition", "FragmentDefinition", "VariableDefinition", "TypeExtensionDefinition", "ObjectTypeDefinition", "FieldDefinition", "DirectiveDefinition", "EnumTypeDefinition", "EnumValueDefinition", "InputValueDefinition", "InputObjectTypeDefinition", "SchemaDefinition", "OperationTypeDefinition", "InterfaceTypeDefinition", "UnionTypeDefinition", "ScalarTypeDefinition"]);
2127
+ function Xn(e, t, r) {
2128
+ if (!t) return false;
2129
+ switch (e.parser) {
2130
+ case "flow":
2131
+ case "babel":
2132
+ case "babel-flow":
2133
+ case "babel-ts":
2134
+ case "typescript":
2135
+ case "acorn":
2136
+ case "espree":
2137
+ case "meriyah":
2138
+ case "__babel_estree":
2139
+ return Yi(t.type, r == null ? void 0 : r.type);
2140
+ case "json":
2141
+ case "json5":
2142
+ case "jsonc":
2143
+ case "json-stringify":
2144
+ return Qn.has(t.type);
2145
+ case "graphql":
2146
+ return ji.has(t.kind);
2147
+ case "vue":
2148
+ return t.tag !== "root";
2149
+ }
2150
+ return false;
2151
+ }
2152
+ function Zn(e, t, r) {
2153
+ let { rangeStart: n, rangeEnd: u, locStart: i, locEnd: o } = t;
2154
+ Pe.ok(u > n);
2155
+ let s = e.slice(n, u).search(/\S/u), a = s === -1;
2156
+ if (!a) for (n += s; u > n && !/\S/u.test(e[u - 1]); --u) ;
2157
+ let D = or(r, n, t, (d, c) => Xn(t, d, c), [], "rangeStart"), l = a ? D : or(r, u, t, (d) => Xn(t, d), [], "rangeEnd");
2158
+ if (!D || !l) return { rangeStart: 0, rangeEnd: 0 };
2159
+ let p, f;
2160
+ if (Pi(t)) {
2161
+ let d = Ii(D, l);
2162
+ p = d, f = d;
2163
+ } else ({ startNode: p, endNode: f } = Ri(D, l, t));
2164
+ return { rangeStart: Math.min(i(p), i(f)), rangeEnd: Math.max(o(p), o(f)) };
2165
+ }
2166
+ var nu = "\uFEFF", eu = Symbol("cursor");
2167
+ async function uu(e, t, r = 0) {
2168
+ if (!e || e.trim().length === 0) return { formatted: "", cursorOffset: -1, comments: [] };
2169
+ let { ast: n, text: u } = await fe(e, t);
2170
+ t.cursorOffset >= 0 && (t = { ...t, ...Gn(n, t) });
2171
+ let i = await He(n, t);
2172
+ r > 0 && (i = Ze([K, i], r, t.tabWidth));
2173
+ let o = Ce(i, t);
2174
+ if (r > 0) {
2175
+ let a = o.formatted.trim();
2176
+ o.cursorNodeStart !== void 0 && (o.cursorNodeStart -= o.formatted.indexOf(a), o.cursorNodeStart < 0 && (o.cursorNodeStart = 0, o.cursorNodeText = o.cursorNodeText.trimStart()), o.cursorNodeStart + o.cursorNodeText.length > a.length && (o.cursorNodeText = o.cursorNodeText.trimEnd())), o.formatted = a + be(t.endOfLine);
2177
+ }
2178
+ let s = t[Symbol.for("comments")];
2179
+ if (t.cursorOffset >= 0) {
2180
+ let a, D, l, p;
2181
+ if ((t.cursorNode || t.nodeBeforeCursor || t.nodeAfterCursor) && o.cursorNodeText) if (l = o.cursorNodeStart, p = o.cursorNodeText, t.cursorNode) a = t.locStart(t.cursorNode), D = u.slice(a, t.locEnd(t.cursorNode));
2182
+ else {
2183
+ if (!t.nodeBeforeCursor && !t.nodeAfterCursor) throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");
2184
+ a = t.nodeBeforeCursor ? t.locEnd(t.nodeBeforeCursor) : 0;
2185
+ let h = t.nodeAfterCursor ? t.locStart(t.nodeAfterCursor) : u.length;
2186
+ D = u.slice(a, h);
2187
+ }
2188
+ else a = 0, D = u, l = 0, p = o.formatted;
2189
+ let f = t.cursorOffset - a;
2190
+ if (D === p) return { formatted: o.formatted, cursorOffset: l + f, comments: s };
2191
+ let d = D.split("");
2192
+ d.splice(f, 0, eu);
2193
+ let c = p.split(""), F = yr(d, c), m = l;
2194
+ for (let h of F) if (h.removed) {
2195
+ if (h.value.includes(eu)) break;
2196
+ } else m += h.count;
2197
+ return { formatted: o.formatted, cursorOffset: m, comments: s };
2198
+ }
2199
+ return { formatted: o.formatted, cursorOffset: -1, comments: s };
2200
+ }
2201
+ async function Hi(e, t) {
2202
+ let { ast: r, text: n } = await fe(e, t), { rangeStart: u, rangeEnd: i } = Zn(n, t, r), o = n.slice(u, i), s = Math.min(u, n.lastIndexOf(`
2203
+ `, u) + 1), a = n.slice(s, u).match(/^\s*/u)[0], D = ge(a, t.tabWidth), l = await uu(o, { ...t, rangeStart: 0, rangeEnd: Number.POSITIVE_INFINITY, cursorOffset: t.cursorOffset > u && t.cursorOffset <= i ? t.cursorOffset - u : -1, endOfLine: "lf" }, D), p = l.formatted.trimEnd(), { cursorOffset: f } = t;
2204
+ f > i ? f += p.length - o.length : l.cursorOffset >= 0 && (f = l.cursorOffset + u);
2205
+ let d = n.slice(0, u) + p + n.slice(i);
2206
+ if (t.endOfLine !== "lf") {
2207
+ let c = be(t.endOfLine);
2208
+ f >= 0 && c === `\r
2209
+ ` && (f += Nt(d.slice(0, f), `
2210
+ `)), d = ne(false, d, `
2211
+ `, c);
2212
+ }
2213
+ return { formatted: d, cursorOffset: f, comments: l.comments };
2214
+ }
2215
+ function sr(e, t, r) {
2216
+ return typeof t != "number" || Number.isNaN(t) || t < 0 || t > e.length ? r : t;
2217
+ }
2218
+ function tu(e, t) {
2219
+ let { cursorOffset: r, rangeStart: n, rangeEnd: u } = t;
2220
+ return r = sr(e, r, -1), n = sr(e, n, 0), u = sr(e, u, e.length), { ...t, cursorOffset: r, rangeStart: n, rangeEnd: u };
2221
+ }
2222
+ function iu(e, t) {
2223
+ let { cursorOffset: r, rangeStart: n, rangeEnd: u, endOfLine: i } = tu(e, t), o = e.charAt(0) === nu;
2224
+ if (o && (e = e.slice(1), r--, n--, u--), i === "auto" && (i = Ar(e)), e.includes("\r")) {
2225
+ let s = (a) => Nt(e.slice(0, Math.max(a, 0)), `\r
2226
+ `);
2227
+ r -= s(r), n -= s(n), u -= s(u), e = vr(e);
2228
+ }
2229
+ return { hasBOM: o, text: e, options: tu(e, { ...t, cursorOffset: r, rangeStart: n, rangeEnd: u, endOfLine: i }) };
2230
+ }
2231
+ async function ru(e, t) {
2232
+ let r = await Et(t);
2233
+ return !r.hasPragma || r.hasPragma(e);
2234
+ }
2235
+ async function ar(e, t) {
2236
+ let { hasBOM: r, text: n, options: u } = iu(e, await se(t));
2237
+ if (u.rangeStart >= u.rangeEnd && n !== "" || u.requirePragma && !await ru(n, u)) return { formatted: e, cursorOffset: t.cursorOffset, comments: [] };
2238
+ let i;
2239
+ return u.rangeStart > 0 || u.rangeEnd < n.length ? i = await Hi(n, u) : (!u.requirePragma && u.insertPragma && u.printer.insertPragma && !await ru(n, u) && (n = u.printer.insertPragma(n)), i = await uu(n, u)), r && (i.formatted = nu + i.formatted, i.cursorOffset >= 0 && i.cursorOffset++), i;
2240
+ }
2241
+ async function ou(e, t, r) {
2242
+ let { text: n, options: u } = iu(e, await se(t)), i = await fe(n, u);
2243
+ return r && (r.preprocessForPrint && (i.ast = await ir(i.ast, u)), r.massage && (i.ast = Kn(i.ast, u))), i;
2244
+ }
2245
+ async function su(e, t) {
2246
+ t = await se(t);
2247
+ let r = await He(e, t);
2248
+ return Ce(r, t);
2249
+ }
2250
+ async function au(e, t) {
2251
+ let r = Vr(e), { formatted: n } = await ar(r, { ...t, parser: "__js_expression" });
2252
+ return n;
2253
+ }
2254
+ async function Du(e, t) {
2255
+ t = await se(t);
2256
+ let { ast: r } = await fe(e, t);
2257
+ return He(r, t);
2258
+ }
2259
+ async function lu(e, t) {
2260
+ return Ce(e, await se(t));
2261
+ }
2262
+ var Dr = {};
2263
+ vt(Dr, { builders: () => $i, printer: () => Mi, utils: () => Vi });
2264
+ var $i = { join: Se, line: Qe, softline: $r, hardline: K, literalline: Xe, group: kt, conditionalGroup: Ir, fill: Rr, lineSuffix: Te, lineSuffixBoundary: Hr, cursor: Z, breakParent: he, ifBreak: Yr, trim: Wr, indent: le, indentIfBreak: jr, align: De, addAlignmentToDoc: Ze, markAsRoot: Lr, dedentToRoot: kr, dedent: Pr, hardlineWithoutBreakParent: ke, literallineWithoutBreakParent: Lt, label: Mr, concat: (e) => e }, Mi = { printDocToString: Ce }, Vi = { willBreak: xr, traverseDoc: Fe, findInDoc: Je, mapDoc: Oe, removeLines: Nr, stripTrailingHardline: qe, replaceEndOfLine: Or, canBreak: Sr };
2265
+ var cu = "3.5.1";
2266
+ var cr = {};
2267
+ vt(cr, { addDanglingComment: () => re, addLeadingComment: () => ue, addTrailingComment: () => ie, getAlignmentSize: () => ge, getIndentSize: () => fu, getMaxContinuousCount: () => du, getNextNonSpaceNonCommentCharacter: () => pu, getNextNonSpaceNonCommentCharacterIndex: () => no, getPreferredQuote: () => mu, getStringWidth: () => Le, hasNewline: () => V, hasNewlineInRange: () => hu, hasSpaces: () => Eu, isNextLineEmpty: () => so, isNextLineEmptyAfterIndex: () => Ct, isPreviousLineEmpty: () => io, makeString: () => Cu, skip: () => Ae, skipEverythingButNewLine: () => nt, skipInlineComment: () => Be, skipNewline: () => W, skipSpaces: () => S, skipToLineEnd: () => rt, skipTrailingComment: () => we, skipWhitespace: () => tn });
2268
+ function Ui(e, t) {
2269
+ if (t === false) return false;
2270
+ if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
2271
+ for (let r = t + 2; r < e.length; ++r) if (e.charAt(r) === "*" && e.charAt(r + 1) === "/") return r + 2;
2272
+ }
2273
+ return t;
2274
+ }
2275
+ var Be = Ui;
2276
+ function zi(e, t) {
2277
+ return t === false ? false : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? nt(e, t) : t;
2278
+ }
2279
+ var we = zi;
2280
+ function Gi(e, t) {
2281
+ let r = null, n = t;
2282
+ for (; n !== r; ) r = n, n = S(e, n), n = Be(e, n), n = we(e, n), n = W(e, n);
2283
+ return n;
2284
+ }
2285
+ var We = Gi;
2286
+ function Ki(e, t) {
2287
+ let r = null, n = t;
2288
+ for (; n !== r; ) r = n, n = rt(e, n), n = Be(e, n), n = S(e, n);
2289
+ return n = we(e, n), n = W(e, n), n !== false && V(e, n);
2290
+ }
2291
+ var Ct = Ki;
2292
+ function Ji(e, t) {
2293
+ let r = e.lastIndexOf(`
2294
+ `);
2295
+ return r === -1 ? 0 : ge(e.slice(r + 1).match(/^[\t ]*/u)[0], t);
2296
+ }
2297
+ var fu = Ji;
2298
+ function lr(e) {
2299
+ if (typeof e != "string") throw new TypeError("Expected a string");
2300
+ return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
2301
+ }
2302
+ function qi(e, t) {
2303
+ let r = e.match(new RegExp(`(${lr(t)})+`, "gu"));
2304
+ return r === null ? 0 : r.reduce((n, u) => Math.max(n, u.length / t.length), 0);
2305
+ }
2306
+ var du = qi;
2307
+ function Xi(e, t) {
2308
+ let r = We(e, t);
2309
+ return r === false ? "" : e.charAt(r);
2310
+ }
2311
+ var pu = Xi;
2312
+ var gt = "'", Fu = '"';
2313
+ function Qi(e, t) {
2314
+ let r = t === true || t === gt ? gt : Fu, n = r === gt ? Fu : gt, u = 0, i = 0;
2315
+ for (let o of e) o === r ? u++ : o === n && i++;
2316
+ return u > i ? n : r;
2317
+ }
2318
+ var mu = Qi;
2319
+ function Zi(e, t, r) {
2320
+ for (let n = t; n < r; ++n) if (e.charAt(n) === `
2321
+ `) return true;
2322
+ return false;
2323
+ }
2324
+ var hu = Zi;
2325
+ function eo(e, t, r = {}) {
2326
+ return S(e, r.backwards ? t - 1 : t, r) !== t;
2327
+ }
2328
+ var Eu = eo;
2329
+ function to(e, t, r) {
2330
+ let n = t === '"' ? "'" : '"', i = ne(false, e, /\\(.)|(["'])/gsu, (o, s, a) => s === n ? s : a === t ? "\\" + a : a || (r && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s) ? s : "\\" + s));
2331
+ return t + i + t;
2332
+ }
2333
+ var Cu = to;
2334
+ function ro(e, t, r) {
2335
+ return We(e, r(t));
2336
+ }
2337
+ function no(e, t) {
2338
+ return arguments.length === 2 || typeof t == "number" ? We(e, t) : ro(...arguments);
2339
+ }
2340
+ function uo(e, t, r) {
2341
+ return Ie(e, r(t));
2342
+ }
2343
+ function io(e, t) {
2344
+ return arguments.length === 2 || typeof t == "number" ? Ie(e, t) : uo(...arguments);
2345
+ }
2346
+ function oo(e, t, r) {
2347
+ return Ct(e, r(t));
2348
+ }
2349
+ function so(e, t) {
2350
+ return arguments.length === 2 || typeof t == "number" ? Ct(e, t) : oo(...arguments);
2351
+ }
2352
+ function de(e, t = 1) {
2353
+ return async (...r) => {
2354
+ let n = r[t] ?? {}, u = n.plugins ?? [];
2355
+ return r[t] = { ...n, plugins: Array.isArray(u) ? u : Object.values(u) }, e(...r);
2356
+ };
2357
+ }
2358
+ var gu = de(ar);
2359
+ async function yu(e, t) {
2360
+ let { formatted: r } = await gu(e, { ...t, cursorOffset: -1 });
2361
+ return r;
2362
+ }
2363
+ async function ao(e, t) {
2364
+ return await yu(e, t) === e;
2365
+ }
2366
+ var Do = de(it, 0), lo = { parse: de(ou), formatAST: de(su), formatDoc: de(au), printToDoc: de(Du), printDocToString: de(lu) };
2367
+ var mc = fr;
2368
+
2369
+ export { lo as __debug, ao as check, mc as default, Dr as doc, yu as format, gu as formatWithCursor, Do as getSupportInfo, cr as util, cu as version };