@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,3878 @@
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,
6
+ _u = Object.prototype.hasOwnProperty;
7
+ var dr = e => {
8
+ throw TypeError(e);
9
+ };
10
+ var pr = (e, t) => () => (t || e((t = {
11
+ exports: {}
12
+ }).exports, t), t.exports),
13
+ vt = (e, t) => {
14
+ for (var r in t) At(e, r, {
15
+ get: t[r],
16
+ enumerable: true
17
+ });
18
+ },
19
+ xu = (e, t, r, n) => {
20
+ if (t && typeof t == "object" || typeof t == "function") for (let u of Bu(t)) !_u.call(e, u) && u !== r && At(e, u, {
21
+ get: () => t[u],
22
+ enumerable: !(n = vu(t, u)) || n.enumerable
23
+ });
24
+ return e;
25
+ };
26
+ var Me = (e, t, r) => (r = e != null ? Au(wu(e)) : {}, xu(At(r, "default", {
27
+ value: e,
28
+ enumerable: true
29
+ }) , e));
30
+ var bu = (e, t, r) => t.has(e) || dr("Cannot " + r);
31
+ 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);
32
+ var pe = (e, t, r) => (bu(e, t, "access private method"), r);
33
+ var ot = pr((Da, mn) => {
34
+
35
+ var Fn = new Proxy(String, {
36
+ get: () => Fn
37
+ });
38
+ mn.exports = Fn;
39
+ });
40
+ var $n = pr(ur => {
41
+
42
+ Object.defineProperty(ur, "__esModule", {
43
+ value: true
44
+ });
45
+ function wi() {
46
+ return new Proxy({}, {
47
+ get: () => e => e
48
+ });
49
+ }
50
+ var Wn = /\r\n|[\n\r\u2028\u2029]/;
51
+ function _i(e, t, r) {
52
+ let n = Object.assign({
53
+ column: 0,
54
+ line: -1
55
+ }, e.start),
56
+ u = Object.assign({}, n, e.end),
57
+ {
58
+ linesAbove: i = 2,
59
+ linesBelow: o = 3
60
+ } = r || {},
61
+ s = n.line,
62
+ a = n.column,
63
+ D = u.line,
64
+ l = u.column,
65
+ p = Math.max(s - (i + 1), 0),
66
+ f = Math.min(t.length, D + o);
67
+ s === -1 && (p = 0), D === -1 && (f = t.length);
68
+ let d = D - s,
69
+ c = {};
70
+ if (d) for (let F = 0; F <= d; F++) {
71
+ let m = F + s;
72
+ if (!a) c[m] = true;else if (F === 0) {
73
+ let h = t[m - 1].length;
74
+ c[m] = [a, h - a + 1];
75
+ } else if (F === d) c[m] = [0, l];else {
76
+ let h = t[m - F].length;
77
+ c[m] = [0, h];
78
+ }
79
+ } else a === l ? a ? c[s] = [a, 0] : c[s] = true : c[s] = [a, l - a];
80
+ return {
81
+ start: p,
82
+ end: f,
83
+ markerLines: c
84
+ };
85
+ }
86
+ function xi(e, t, r = {}) {
87
+ let u = wi(),
88
+ i = e.split(Wn),
89
+ {
90
+ start: o,
91
+ end: s,
92
+ markerLines: a
93
+ } = _i(t, i, r),
94
+ D = t.start && typeof t.start.column == "number",
95
+ l = String(s).length,
96
+ f = e.split(Wn, s).slice(o, s).map((d, c) => {
97
+ let F = o + 1 + c,
98
+ h = ` ${` ${F}`.slice(-l)} |`,
99
+ C = a[F],
100
+ v = !a[F + 1];
101
+ if (C) {
102
+ let E = "";
103
+ if (Array.isArray(C)) {
104
+ let g = d.slice(0, Math.max(C[0] - 1, 0)).replace(/[^\t]/g, " "),
105
+ j = C[1] || 1;
106
+ E = [`
107
+ `, u.gutter(h.replace(/\d/g, " ")), " ", g, u.marker("^").repeat(j)].join(""), v && r.message && (E += " " + u.message(r.message));
108
+ }
109
+ return [u.marker(">"), u.gutter(h), d.length > 0 ? ` ${d}` : "", E].join("");
110
+ } else return ` ${u.gutter(h)}${d.length > 0 ? ` ${d}` : ""}`;
111
+ }).join(`
112
+ `);
113
+ return r.message && !D && (f = `${" ".repeat(l + 1)}${r.message}
114
+ ${f}`), f;
115
+ }
116
+ ur.codeFrameColumns = xi;
117
+ });
118
+ var fr = {};
119
+ vt(fr, {
120
+ __debug: () => lo,
121
+ check: () => ao,
122
+ doc: () => Dr,
123
+ format: () => yu,
124
+ formatWithCursor: () => gu,
125
+ getSupportInfo: () => Do,
126
+ util: () => cr,
127
+ version: () => cu
128
+ });
129
+ var Nu = (e, t, r, n) => {
130
+ if (!(e && t == null)) return t.replaceAll ? t.replaceAll(r, n) : r.global ? t.replace(r, n) : t.split(r).join(n);
131
+ },
132
+ ne = Nu;
133
+ function U() {}
134
+ U.prototype = {
135
+ diff: function (t, r) {
136
+ var n,
137
+ u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
138
+ i = u.callback;
139
+ typeof u == "function" && (i = u, u = {});
140
+ var o = this;
141
+ function s(E) {
142
+ return E = o.postProcess(E, u), i ? (setTimeout(function () {
143
+ i(E);
144
+ }, 0), true) : E;
145
+ }
146
+ t = this.castInput(t, u), r = this.castInput(r, u), t = this.removeEmpty(this.tokenize(t, u)), r = this.removeEmpty(this.tokenize(r, u));
147
+ var a = r.length,
148
+ D = t.length,
149
+ l = 1,
150
+ p = a + D;
151
+ u.maxEditLength != null && (p = Math.min(p, u.maxEditLength));
152
+ var f = (n = u.timeout) !== null && n !== void 0 ? n : 1 / 0,
153
+ d = Date.now() + f,
154
+ c = [{
155
+ oldPos: -1,
156
+ lastComponent: void 0
157
+ }],
158
+ F = this.extractCommon(c[0], r, t, 0, u);
159
+ if (c[0].oldPos + 1 >= D && F + 1 >= a) return s(mr(o, c[0].lastComponent, r, t, o.useLongestToken));
160
+ var m = -1 / 0,
161
+ h = 1 / 0;
162
+ function C() {
163
+ for (var E = Math.max(m, -l); E <= Math.min(h, l); E += 2) {
164
+ var g = void 0,
165
+ j = c[E - 1],
166
+ b = c[E + 1];
167
+ j && (c[E - 1] = void 0);
168
+ var X = false;
169
+ if (b) {
170
+ var ae = b.oldPos - E;
171
+ X = b && 0 <= ae && ae < a;
172
+ }
173
+ var $e = j && j.oldPos + 1 < D;
174
+ if (!X && !$e) {
175
+ c[E] = void 0;
176
+ continue;
177
+ }
178
+ 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));
179
+ c[E] = g, g.oldPos + 1 >= D && (h = Math.min(h, E - 1)), F + 1 >= a && (m = Math.max(m, E + 1));
180
+ }
181
+ l++;
182
+ }
183
+ if (i) (function E() {
184
+ setTimeout(function () {
185
+ if (l > p || Date.now() > d) return i();
186
+ C() || E();
187
+ }, 0);
188
+ })();else for (; l <= p && Date.now() <= d;) {
189
+ var v = C();
190
+ if (v) return v;
191
+ }
192
+ },
193
+ addToPath: function (t, r, n, u, i) {
194
+ var o = t.lastComponent;
195
+ return o && !i.oneChangePerToken && o.added === r && o.removed === n ? {
196
+ oldPos: t.oldPos + u,
197
+ lastComponent: {
198
+ count: o.count + 1,
199
+ added: r,
200
+ removed: n,
201
+ previousComponent: o.previousComponent
202
+ }
203
+ } : {
204
+ oldPos: t.oldPos + u,
205
+ lastComponent: {
206
+ count: 1,
207
+ added: r,
208
+ removed: n,
209
+ previousComponent: o
210
+ }
211
+ };
212
+ },
213
+ extractCommon: function (t, r, n, u, i) {
214
+ 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 = {
215
+ count: 1,
216
+ previousComponent: t.lastComponent,
217
+ added: false,
218
+ removed: false
219
+ });
220
+ return l && !i.oneChangePerToken && (t.lastComponent = {
221
+ count: l,
222
+ previousComponent: t.lastComponent,
223
+ added: false,
224
+ removed: false
225
+ }), t.oldPos = a, D;
226
+ },
227
+ equals: function (t, r, n) {
228
+ return n.comparator ? n.comparator(t, r) : t === r || n.ignoreCase && t.toLowerCase() === r.toLowerCase();
229
+ },
230
+ removeEmpty: function (t) {
231
+ for (var r = [], n = 0; n < t.length; n++) t[n] && r.push(t[n]);
232
+ return r;
233
+ },
234
+ castInput: function (t) {
235
+ return t;
236
+ },
237
+ tokenize: function (t) {
238
+ return Array.from(t);
239
+ },
240
+ join: function (t) {
241
+ return t.join("");
242
+ },
243
+ postProcess: function (t) {
244
+ return t;
245
+ }
246
+ };
247
+ function mr(e, t, r, n, u) {
248
+ for (var i = [], o; t;) i.push(t), o = t.previousComponent, delete t.previousComponent, t = o;
249
+ i.reverse();
250
+ for (var s = 0, a = i.length, D = 0, l = 0; s < a; s++) {
251
+ var p = i[s];
252
+ if (p.removed) p.value = e.join(n.slice(l, l + p.count)), l += p.count;else {
253
+ if (!p.added && u) {
254
+ var f = r.slice(D, D + p.count);
255
+ f = f.map(function (d, c) {
256
+ var F = n[l + c];
257
+ return F.length > d.length ? F : d;
258
+ }), p.value = e.join(f);
259
+ } else p.value = e.join(r.slice(D, D + p.count));
260
+ D += p.count, p.added || (l += p.count);
261
+ }
262
+ }
263
+ return i;
264
+ }
265
+ function hr(e, t) {
266
+ var r;
267
+ for (r = 0; r < e.length && r < t.length; r++) if (e[r] != t[r]) return e.slice(0, r);
268
+ return e.slice(0, r);
269
+ }
270
+ function Er(e, t) {
271
+ var r;
272
+ if (!e || !t || e[e.length - 1] != t[t.length - 1]) return "";
273
+ 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);
274
+ return e.slice(-r);
275
+ }
276
+ function Bt(e, t, r) {
277
+ 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"));
278
+ return r + e.slice(t.length);
279
+ }
280
+ function wt(e, t, r) {
281
+ if (!t) return e + r;
282
+ 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"));
283
+ return e.slice(0, -t.length) + r;
284
+ }
285
+ function _e(e, t) {
286
+ return Bt(e, t, "");
287
+ }
288
+ function Ve(e, t) {
289
+ return wt(e, t, "");
290
+ }
291
+ function Cr(e, t) {
292
+ return t.slice(0, Ou(e, t));
293
+ }
294
+ function Ou(e, t) {
295
+ var r = 0;
296
+ e.length > t.length && (r = e.length - t.length);
297
+ var n = t.length;
298
+ e.length < t.length && (n = e.length);
299
+ var u = Array(n),
300
+ i = 0;
301
+ u[0] = 0;
302
+ for (var o = 1; o < n; o++) {
303
+ for (t[o] == t[i] ? u[o] = u[i] : u[o] = i; i > 0 && t[o] != t[i];) i = u[i];
304
+ t[o] == t[i] && i++;
305
+ }
306
+ i = 0;
307
+ for (var s = r; s < e.length; s++) {
308
+ for (; i > 0 && e[s] != t[i];) i = u[i];
309
+ e[s] == t[i] && i++;
310
+ }
311
+ return i;
312
+ }
313
+ 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}",
314
+ Su = new RegExp("[".concat(Ue, "]+|\\s+|[^").concat(Ue, "]"), "ug"),
315
+ Ge = new U();
316
+ Ge.equals = function (e, t, r) {
317
+ return r.ignoreCase && (e = e.toLowerCase(), t = t.toLowerCase()), e.trim() === t.trim();
318
+ };
319
+ Ge.tokenize = function (e) {
320
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
321
+ r;
322
+ if (t.intlSegmenter) {
323
+ if (t.intlSegmenter.resolvedOptions().granularity != "word") throw new Error('The segmenter passed must have a granularity of "word"');
324
+ r = Array.from(t.intlSegmenter.segment(e), function (i) {
325
+ return i.segment;
326
+ });
327
+ } else r = e.match(Su) || [];
328
+ var n = [],
329
+ u = null;
330
+ return r.forEach(function (i) {
331
+ /\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;
332
+ }), n;
333
+ };
334
+ Ge.join = function (e) {
335
+ return e.map(function (t, r) {
336
+ return r == 0 ? t : t.replace(/^\s+/, "");
337
+ }).join("");
338
+ };
339
+ Ge.postProcess = function (e, t) {
340
+ if (!e || t.oneChangePerToken) return e;
341
+ var r = null,
342
+ n = null,
343
+ u = null;
344
+ return e.forEach(function (i) {
345
+ i.added ? n = i : i.removed ? u = i : ((n || u) && gr(r, u, n, i), r = i, n = null, u = null);
346
+ }), (n || u) && gr(r, u, n, null), e;
347
+ };
348
+ function gr(e, t, r, n) {
349
+ if (t && r) {
350
+ var u = t.value.match(/^\s*/)[0],
351
+ i = t.value.match(/\s*$/)[0],
352
+ o = r.value.match(/^\s*/)[0],
353
+ s = r.value.match(/\s*$/)[0];
354
+ if (e) {
355
+ var a = hr(u, o);
356
+ e.value = wt(e.value, o, a), t.value = _e(t.value, a), r.value = _e(r.value, a);
357
+ }
358
+ if (n) {
359
+ var D = Er(i, s);
360
+ n.value = Bt(n.value, s, D), t.value = Ve(t.value, D), r.value = Ve(r.value, D);
361
+ }
362
+ } else if (r) e && (r.value = r.value.replace(/^\s*/, "")), n && (n.value = n.value.replace(/^\s*/, ""));else if (e && n) {
363
+ var l = n.value.match(/^\s*/)[0],
364
+ p = t.value.match(/^\s*/)[0],
365
+ f = t.value.match(/\s*$/)[0],
366
+ d = hr(l, p);
367
+ t.value = _e(t.value, d);
368
+ var c = Er(_e(l, d), f);
369
+ 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));
370
+ } else if (n) {
371
+ var F = n.value.match(/^\s*/)[0],
372
+ m = t.value.match(/\s*$/)[0],
373
+ h = Cr(m, F);
374
+ t.value = Ve(t.value, h);
375
+ } else if (e) {
376
+ var C = e.value.match(/\s*$/)[0],
377
+ v = t.value.match(/^\s*/)[0],
378
+ E = Cr(C, v);
379
+ t.value = _e(t.value, E);
380
+ }
381
+ }
382
+ var Tu = new U();
383
+ Tu.tokenize = function (e) {
384
+ var t = new RegExp("(\\r?\\n)|[".concat(Ue, "]+|[^\\S\\n\\r]+|[^").concat(Ue, "]"), "ug");
385
+ return e.match(t) || [];
386
+ };
387
+ var bt = new U();
388
+ bt.tokenize = function (e, t) {
389
+ t.stripTrailingCr && (e = e.replace(/\r\n/g, `
390
+ `));
391
+ var r = [],
392
+ n = e.split(/(\n|\r\n)/);
393
+ n[n.length - 1] || n.pop();
394
+ for (var u = 0; u < n.length; u++) {
395
+ var i = n[u];
396
+ u % 2 && !t.newlineIsToken ? r[r.length - 1] += i : r.push(i);
397
+ }
398
+ return r;
399
+ };
400
+ bt.equals = function (e, t, r) {
401
+ return r.ignoreWhitespace ? ((!r.newlineIsToken || !e.includes(`
402
+ `)) && (e = e.trim()), (!r.newlineIsToken || !t.includes(`
403
+ `)) && (t = t.trim())) : r.ignoreNewlineAtEof && !r.newlineIsToken && (e.endsWith(`
404
+ `) && (e = e.slice(0, -1)), t.endsWith(`
405
+ `) && (t = t.slice(0, -1))), U.prototype.equals.call(this, e, t, r);
406
+ };
407
+ var ku = new U();
408
+ ku.tokenize = function (e) {
409
+ return e.split(/(\S.+?[.!?])(?=\s+|$)/);
410
+ };
411
+ var Lu = new U();
412
+ Lu.tokenize = function (e) {
413
+ return e.split(/([{}:;,]|\s+)/);
414
+ };
415
+ function _t(e) {
416
+ "@babel/helpers - typeof";
417
+
418
+ return _t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (t) {
419
+ return typeof t;
420
+ } : function (t) {
421
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
422
+ }, _t(e);
423
+ }
424
+ var xe = new U();
425
+ xe.useLongestToken = true;
426
+ xe.tokenize = bt.tokenize;
427
+ xe.castInput = function (e, t) {
428
+ var r = t.undefinedReplacement,
429
+ n = t.stringifyReplacer,
430
+ u = n === void 0 ? function (i, o) {
431
+ return typeof o > "u" ? r : o;
432
+ } : n;
433
+ return typeof e == "string" ? e : JSON.stringify(xt(e, null, null, u), u, " ");
434
+ };
435
+ xe.equals = function (e, t, r) {
436
+ return U.prototype.equals.call(xe, e.replace(/,([\r\n])/g, "$1"), t.replace(/,([\r\n])/g, "$1"), r);
437
+ };
438
+ function xt(e, t, r, n, u) {
439
+ t = t || [], r = r || [], n && (e = n(u, e));
440
+ var i;
441
+ for (i = 0; i < t.length; i += 1) if (t[i] === e) return r[i];
442
+ var o;
443
+ if (Object.prototype.toString.call(e) === "[object Array]") {
444
+ 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);
445
+ return t.pop(), r.pop(), o;
446
+ }
447
+ if (e && e.toJSON && (e = e.toJSON()), _t(e) === "object" && e !== null) {
448
+ t.push(e), o = {}, r.push(o);
449
+ var s = [],
450
+ a;
451
+ for (a in e) Object.prototype.hasOwnProperty.call(e, a) && s.push(a);
452
+ for (s.sort(), i = 0; i < s.length; i += 1) a = s[i], o[a] = xt(e[a], t, r, n, a);
453
+ t.pop(), r.pop();
454
+ } else o = e;
455
+ return o;
456
+ }
457
+ var ze = new U();
458
+ ze.tokenize = function (e) {
459
+ return e.slice();
460
+ };
461
+ ze.join = ze.removeEmpty = function (e) {
462
+ return e;
463
+ };
464
+ function yr(e, t, r) {
465
+ return ze.diff(e, t, r);
466
+ }
467
+ function Ar(e) {
468
+ let t = e.indexOf("\r");
469
+ return t !== -1 ? e.charAt(t + 1) === `
470
+ ` ? "crlf" : "cr" : "lf";
471
+ }
472
+ function be(e) {
473
+ switch (e) {
474
+ case "cr":
475
+ return "\r";
476
+ case "crlf":
477
+ return `\r
478
+ `;
479
+ default:
480
+ return `
481
+ `;
482
+ }
483
+ }
484
+ function Nt(e, t) {
485
+ let r;
486
+ switch (t) {
487
+ case `
488
+ `:
489
+ r = /\n/gu;
490
+ break;
491
+ case "\r":
492
+ r = /\r/gu;
493
+ break;
494
+ case `\r
495
+ `:
496
+ r = /\r\n/gu;
497
+ break;
498
+ default:
499
+ throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`);
500
+ }
501
+ let n = e.match(r);
502
+ return n ? n.length : 0;
503
+ }
504
+ function vr(e) {
505
+ return ne(false, e, /\r\n?/gu, `
506
+ `);
507
+ }
508
+ var $ = "string",
509
+ H = "array",
510
+ z = "cursor",
511
+ T = "indent",
512
+ k = "align",
513
+ L = "trim",
514
+ B = "group",
515
+ N = "fill",
516
+ w = "if-break",
517
+ P = "indent-if-break",
518
+ I = "line-suffix",
519
+ R = "line-suffix-boundary",
520
+ y = "line",
521
+ O = "label",
522
+ _ = "break-parent",
523
+ Ke = new Set([z, T, k, L, B, N, w, P, I, R, y, O, _]);
524
+ var Pu = (e, t, r) => {
525
+ if (!(e && t == null)) return Array.isArray(t) || typeof t == "string" ? t[r < 0 ? t.length + r : r] : t.at(r);
526
+ },
527
+ A = Pu;
528
+ function Iu(e) {
529
+ if (typeof e == "string") return $;
530
+ if (Array.isArray(e)) return H;
531
+ if (!e) return;
532
+ let {
533
+ type: t
534
+ } = e;
535
+ if (Ke.has(t)) return t;
536
+ }
537
+ var M = Iu;
538
+ var Ru = e => new Intl.ListFormat("en-US", {
539
+ type: "disjunction"
540
+ }).format(e);
541
+ function Yu(e) {
542
+ let t = e === null ? "null" : typeof e;
543
+ if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
544
+ Expected it to be 'string' or 'object'.`;
545
+ if (M(e)) throw new Error("doc is valid.");
546
+ let r = Object.prototype.toString.call(e);
547
+ if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
548
+ let n = Ru([...Ke].map(u => `'${u}'`));
549
+ return `Unexpected doc.type '${e.type}'.
550
+ Expected it to be ${n}.`;
551
+ }
552
+ var Ot = class extends Error {
553
+ name = "InvalidDocError";
554
+ constructor(t) {
555
+ super(Yu(t)), this.doc = t;
556
+ }
557
+ },
558
+ Q = Ot;
559
+ var Br = {};
560
+ function ju(e, t, r, n) {
561
+ let u = [e];
562
+ for (; u.length > 0;) {
563
+ let i = u.pop();
564
+ if (i === Br) {
565
+ r(u.pop());
566
+ continue;
567
+ }
568
+ r && u.push(i, Br);
569
+ let o = M(i);
570
+ if (!o) throw new Q(i);
571
+ if ((t == null ? void 0 : t(i)) !== false) switch (o) {
572
+ case H:
573
+ case N:
574
+ {
575
+ let s = o === H ? i : i.parts;
576
+ for (let a = s.length, D = a - 1; D >= 0; --D) u.push(s[D]);
577
+ break;
578
+ }
579
+ case w:
580
+ u.push(i.flatContents, i.breakContents);
581
+ break;
582
+ case B:
583
+ if (n && i.expandedStates) for (let s = i.expandedStates.length, a = s - 1; a >= 0; --a) u.push(i.expandedStates[a]);else u.push(i.contents);
584
+ break;
585
+ case k:
586
+ case T:
587
+ case P:
588
+ case O:
589
+ case I:
590
+ u.push(i.contents);
591
+ break;
592
+ case $:
593
+ case z:
594
+ case L:
595
+ case R:
596
+ case y:
597
+ case _:
598
+ break;
599
+ default:
600
+ throw new Q(i);
601
+ }
602
+ }
603
+ }
604
+ var Fe = ju;
605
+ function Oe(e, t) {
606
+ if (typeof e == "string") return t(e);
607
+ let r = new Map();
608
+ return n(e);
609
+ function n(i) {
610
+ if (r.has(i)) return r.get(i);
611
+ let o = u(i);
612
+ return r.set(i, o), o;
613
+ }
614
+ function u(i) {
615
+ switch (M(i)) {
616
+ case H:
617
+ return t(i.map(n));
618
+ case N:
619
+ return t({
620
+ ...i,
621
+ parts: i.parts.map(n)
622
+ });
623
+ case w:
624
+ return t({
625
+ ...i,
626
+ breakContents: n(i.breakContents),
627
+ flatContents: n(i.flatContents)
628
+ });
629
+ case B:
630
+ {
631
+ let {
632
+ expandedStates: o,
633
+ contents: s
634
+ } = i;
635
+ return o ? (o = o.map(n), s = o[0]) : s = n(s), t({
636
+ ...i,
637
+ contents: s,
638
+ expandedStates: o
639
+ });
640
+ }
641
+ case k:
642
+ case T:
643
+ case P:
644
+ case O:
645
+ case I:
646
+ return t({
647
+ ...i,
648
+ contents: n(i.contents)
649
+ });
650
+ case $:
651
+ case z:
652
+ case L:
653
+ case R:
654
+ case y:
655
+ case _:
656
+ return t(i);
657
+ default:
658
+ throw new Q(i);
659
+ }
660
+ }
661
+ }
662
+ function Je(e, t, r) {
663
+ let n = r,
664
+ u = false;
665
+ function i(o) {
666
+ if (u) return false;
667
+ let s = t(o);
668
+ s !== void 0 && (u = true, n = s);
669
+ }
670
+ return Fe(e, i), n;
671
+ }
672
+ function Hu(e) {
673
+ if (e.type === B && e.break || e.type === y && e.hard || e.type === _) return true;
674
+ }
675
+ function xr(e) {
676
+ return Je(e, Hu, false);
677
+ }
678
+ function wr(e) {
679
+ if (e.length > 0) {
680
+ let t = A(false, e, -1);
681
+ !t.expandedStates && !t.break && (t.break = "propagated");
682
+ }
683
+ return null;
684
+ }
685
+ function br(e) {
686
+ let t = new Set(),
687
+ r = [];
688
+ function n(i) {
689
+ if (i.type === _ && wr(r), i.type === B) {
690
+ if (r.push(i), t.has(i)) return false;
691
+ t.add(i);
692
+ }
693
+ }
694
+ function u(i) {
695
+ i.type === B && r.pop().break && wr(r);
696
+ }
697
+ Fe(e, n, u, true);
698
+ }
699
+ function Wu(e) {
700
+ return e.type === y && !e.hard ? e.soft ? "" : " " : e.type === w ? e.flatContents : e;
701
+ }
702
+ function Nr(e) {
703
+ return Oe(e, Wu);
704
+ }
705
+ function _r(e) {
706
+ for (e = [...e]; e.length >= 2 && A(false, e, -2).type === y && A(false, e, -1).type === _;) e.length -= 2;
707
+ if (e.length > 0) {
708
+ let t = Ne(A(false, e, -1));
709
+ e[e.length - 1] = t;
710
+ }
711
+ return e;
712
+ }
713
+ function Ne(e) {
714
+ switch (M(e)) {
715
+ case T:
716
+ case P:
717
+ case B:
718
+ case I:
719
+ case O:
720
+ {
721
+ let t = Ne(e.contents);
722
+ return {
723
+ ...e,
724
+ contents: t
725
+ };
726
+ }
727
+ case w:
728
+ return {
729
+ ...e,
730
+ breakContents: Ne(e.breakContents),
731
+ flatContents: Ne(e.flatContents)
732
+ };
733
+ case N:
734
+ return {
735
+ ...e,
736
+ parts: _r(e.parts)
737
+ };
738
+ case H:
739
+ return _r(e);
740
+ case $:
741
+ return e.replace(/[\n\r]*$/u, "");
742
+ case k:
743
+ case z:
744
+ case L:
745
+ case R:
746
+ case y:
747
+ case _:
748
+ break;
749
+ default:
750
+ throw new Q(e);
751
+ }
752
+ return e;
753
+ }
754
+ function qe(e) {
755
+ return Ne(Mu(e));
756
+ }
757
+ function $u(e) {
758
+ switch (M(e)) {
759
+ case N:
760
+ if (e.parts.every(t => t === "")) return "";
761
+ break;
762
+ case B:
763
+ if (!e.contents && !e.id && !e.break && !e.expandedStates) return "";
764
+ if (e.contents.type === B && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates) return e.contents;
765
+ break;
766
+ case k:
767
+ case T:
768
+ case P:
769
+ case I:
770
+ if (!e.contents) return "";
771
+ break;
772
+ case w:
773
+ if (!e.flatContents && !e.breakContents) return "";
774
+ break;
775
+ case H:
776
+ {
777
+ let t = [];
778
+ for (let r of e) {
779
+ if (!r) continue;
780
+ let [n, ...u] = Array.isArray(r) ? r : [r];
781
+ typeof n == "string" && typeof A(false, t, -1) == "string" ? t[t.length - 1] += n : t.push(n), t.push(...u);
782
+ }
783
+ return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
784
+ }
785
+ case $:
786
+ case z:
787
+ case L:
788
+ case R:
789
+ case y:
790
+ case O:
791
+ case _:
792
+ break;
793
+ default:
794
+ throw new Q(e);
795
+ }
796
+ return e;
797
+ }
798
+ function Mu(e) {
799
+ return Oe(e, t => $u(t));
800
+ }
801
+ function Or(e, t = Xe) {
802
+ return Oe(e, r => typeof r == "string" ? Se(t, r.split(`
803
+ `)) : r);
804
+ }
805
+ function Vu(e) {
806
+ if (e.type === y) return true;
807
+ }
808
+ function Sr(e) {
809
+ return Je(e, Vu, false);
810
+ }
811
+ function me(e, t) {
812
+ return e.type === O ? {
813
+ ...e,
814
+ contents: t(e.contents)
815
+ } : t(e);
816
+ }
817
+ var St = () => {},
818
+ Tt = St;
819
+ function le(e) {
820
+ return {
821
+ type: T,
822
+ contents: e
823
+ };
824
+ }
825
+ function De(e, t) {
826
+ return {
827
+ type: k,
828
+ contents: t,
829
+ n: e
830
+ };
831
+ }
832
+ function kt(e, t = {}) {
833
+ return Tt(t.expandedStates), {
834
+ type: B,
835
+ id: t.id,
836
+ contents: e,
837
+ break: !!t.shouldBreak,
838
+ expandedStates: t.expandedStates
839
+ };
840
+ }
841
+ function kr(e) {
842
+ return De(Number.NEGATIVE_INFINITY, e);
843
+ }
844
+ function Lr(e) {
845
+ return De({
846
+ type: "root"
847
+ }, e);
848
+ }
849
+ function Pr(e) {
850
+ return De(-1, e);
851
+ }
852
+ function Ir(e, t) {
853
+ return kt(e[0], {
854
+ ...t,
855
+ expandedStates: e
856
+ });
857
+ }
858
+ function Rr(e) {
859
+ return {
860
+ type: N,
861
+ parts: e
862
+ };
863
+ }
864
+ function Yr(e, t = "", r = {}) {
865
+ return {
866
+ type: w,
867
+ breakContents: e,
868
+ flatContents: t,
869
+ groupId: r.groupId
870
+ };
871
+ }
872
+ function jr(e, t) {
873
+ return {
874
+ type: P,
875
+ contents: e,
876
+ groupId: t.groupId,
877
+ negate: t.negate
878
+ };
879
+ }
880
+ function Te(e) {
881
+ return {
882
+ type: I,
883
+ contents: e
884
+ };
885
+ }
886
+ var Hr = {
887
+ type: R
888
+ },
889
+ he = {
890
+ type: _
891
+ },
892
+ Wr = {
893
+ type: L
894
+ },
895
+ ke = {
896
+ type: y,
897
+ hard: true
898
+ },
899
+ Lt = {
900
+ type: y,
901
+ hard: true,
902
+ literal: true
903
+ },
904
+ Qe = {
905
+ type: y
906
+ },
907
+ $r = {
908
+ type: y,
909
+ soft: true
910
+ },
911
+ K = [ke, he],
912
+ Xe = [Lt, he],
913
+ Z = {
914
+ type: z
915
+ };
916
+ function Se(e, t) {
917
+ let r = [];
918
+ for (let n = 0; n < t.length; n++) n !== 0 && r.push(e), r.push(t[n]);
919
+ return r;
920
+ }
921
+ function Ze(e, t, r) {
922
+ let n = e;
923
+ if (t > 0) {
924
+ for (let u = 0; u < Math.floor(t / r); ++u) n = le(n);
925
+ n = De(t % r, n), n = De(Number.NEGATIVE_INFINITY, n);
926
+ }
927
+ return n;
928
+ }
929
+ function Mr(e, t) {
930
+ return e ? {
931
+ type: O,
932
+ label: e,
933
+ contents: t
934
+ } : t;
935
+ }
936
+ function ee(e) {
937
+ var t;
938
+ if (!e) return "";
939
+ if (Array.isArray(e)) {
940
+ let r = [];
941
+ for (let n of e) if (Array.isArray(n)) r.push(...ee(n));else {
942
+ let u = ee(n);
943
+ u !== "" && r.push(u);
944
+ }
945
+ return r;
946
+ }
947
+ return e.type === w ? {
948
+ ...e,
949
+ breakContents: ee(e.breakContents),
950
+ flatContents: ee(e.flatContents)
951
+ } : e.type === B ? {
952
+ ...e,
953
+ contents: ee(e.contents),
954
+ expandedStates: (t = e.expandedStates) == null ? void 0 : t.map(ee)
955
+ } : e.type === N ? {
956
+ type: "fill",
957
+ parts: e.parts.map(ee)
958
+ } : e.contents ? {
959
+ ...e,
960
+ contents: ee(e.contents)
961
+ } : e;
962
+ }
963
+ function Vr(e) {
964
+ let t = Object.create(null),
965
+ r = new Set();
966
+ return n(ee(e));
967
+ function n(i, o, s) {
968
+ var a, D;
969
+ if (typeof i == "string") return JSON.stringify(i);
970
+ if (Array.isArray(i)) {
971
+ let l = i.map(n).filter(Boolean);
972
+ return l.length === 1 ? l[0] : `[${l.join(", ")}]`;
973
+ }
974
+ if (i.type === y) {
975
+ let l = ((a = s == null ? void 0 : s[o + 1]) == null ? void 0 : a.type) === _;
976
+ return i.literal ? l ? "literalline" : "literallineWithoutBreakParent" : i.hard ? l ? "hardline" : "hardlineWithoutBreakParent" : i.soft ? "softline" : "line";
977
+ }
978
+ 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";
979
+ if (i.type === L) return "trim";
980
+ if (i.type === T) return "indent(" + n(i.contents) + ")";
981
+ 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) + ")";
982
+ if (i.type === w) return "ifBreak(" + n(i.breakContents) + (i.flatContents ? ", " + n(i.flatContents) : "") + (i.groupId ? (i.flatContents ? "" : ', ""') + `, { groupId: ${u(i.groupId)} }` : "") + ")";
983
+ if (i.type === P) {
984
+ let l = [];
985
+ i.negate && l.push("negate: true"), i.groupId && l.push(`groupId: ${u(i.groupId)}`);
986
+ let p = l.length > 0 ? `, { ${l.join(", ")} }` : "";
987
+ return `indentIfBreak(${n(i.contents)}${p})`;
988
+ }
989
+ if (i.type === B) {
990
+ let l = [];
991
+ i.break && i.break !== "propagated" && l.push("shouldBreak: true"), i.id && l.push(`id: ${u(i.id)}`);
992
+ let p = l.length > 0 ? `, { ${l.join(", ")} }` : "";
993
+ return i.expandedStates ? `conditionalGroup([${i.expandedStates.map(f => n(f)).join(",")}]${p})` : `group(${n(i.contents)}${p})`;
994
+ }
995
+ if (i.type === N) return `fill([${i.parts.map(l => n(l)).join(", ")}])`;
996
+ if (i.type === I) return "lineSuffix(" + n(i.contents) + ")";
997
+ if (i.type === R) return "lineSuffixBoundary";
998
+ if (i.type === O) return `label(${JSON.stringify(i.label)}, ${n(i.contents)})`;
999
+ throw new Error("Unknown doc type " + i.type);
1000
+ }
1001
+ function u(i) {
1002
+ if (typeof i != "symbol") return JSON.stringify(String(i));
1003
+ if (i in t) return t[i];
1004
+ let o = i.description || "symbol";
1005
+ for (let s = 0;; s++) {
1006
+ let a = o + (s > 0 ? ` #${s}` : "");
1007
+ if (!r.has(a)) return r.add(a), t[i] = `Symbol.for(${JSON.stringify(a)})`;
1008
+ }
1009
+ }
1010
+ }
1011
+ 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;
1012
+ function zr(e) {
1013
+ return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
1014
+ }
1015
+ function Gr(e) {
1016
+ 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;
1017
+ }
1018
+ var Kr = e => !(zr(e) || Gr(e));
1019
+ var Uu = /[^\x20-\x7F]/u;
1020
+ function zu(e) {
1021
+ if (!e) return 0;
1022
+ if (!Uu.test(e)) return e.length;
1023
+ e = e.replace(Ur(), " ");
1024
+ let t = 0;
1025
+ for (let r of e) {
1026
+ let n = r.codePointAt(0);
1027
+ n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || (t += Kr(n) ? 1 : 2);
1028
+ }
1029
+ return t;
1030
+ }
1031
+ var Le = zu;
1032
+ var Y = Symbol("MODE_BREAK"),
1033
+ J = Symbol("MODE_FLAT"),
1034
+ Ee = Symbol("cursor"),
1035
+ Pt = Symbol("DOC_FILL_PRINTED_LENGTH");
1036
+ function Jr() {
1037
+ return {
1038
+ value: "",
1039
+ length: 0,
1040
+ queue: []
1041
+ };
1042
+ }
1043
+ function Gu(e, t) {
1044
+ return It(e, {
1045
+ type: "indent"
1046
+ }, t);
1047
+ }
1048
+ function Ku(e, t, r) {
1049
+ return t === Number.NEGATIVE_INFINITY ? e.root || Jr() : t < 0 ? It(e, {
1050
+ type: "dedent"
1051
+ }, r) : t ? t.type === "root" ? {
1052
+ ...e,
1053
+ root: e
1054
+ } : It(e, {
1055
+ type: typeof t == "string" ? "stringAlign" : "numberAlign",
1056
+ n: t
1057
+ }, r) : e;
1058
+ }
1059
+ function It(e, t, r) {
1060
+ let n = t.type === "dedent" ? e.queue.slice(0, -1) : [...e.queue, t],
1061
+ u = "",
1062
+ i = 0,
1063
+ o = 0,
1064
+ s = 0;
1065
+ for (let c of n) switch (c.type) {
1066
+ case "indent":
1067
+ l(), r.useTabs ? a(1) : D(r.tabWidth);
1068
+ break;
1069
+ case "stringAlign":
1070
+ l(), u += c.n, i += c.n.length;
1071
+ break;
1072
+ case "numberAlign":
1073
+ o += 1, s += c.n;
1074
+ break;
1075
+ default:
1076
+ throw new Error(`Unexpected type '${c.type}'`);
1077
+ }
1078
+ return f(), {
1079
+ ...e,
1080
+ value: u,
1081
+ length: i,
1082
+ queue: n
1083
+ };
1084
+ function a(c) {
1085
+ u += " ".repeat(c), i += r.tabWidth * c;
1086
+ }
1087
+ function D(c) {
1088
+ u += " ".repeat(c), i += c;
1089
+ }
1090
+ function l() {
1091
+ r.useTabs ? p() : f();
1092
+ }
1093
+ function p() {
1094
+ o > 0 && a(o), d();
1095
+ }
1096
+ function f() {
1097
+ s > 0 && D(s), d();
1098
+ }
1099
+ function d() {
1100
+ o = 0, s = 0;
1101
+ }
1102
+ }
1103
+ function Rt(e) {
1104
+ let t = 0,
1105
+ r = 0,
1106
+ n = e.length;
1107
+ e: for (; n--;) {
1108
+ let u = e[n];
1109
+ if (u === Ee) {
1110
+ r++;
1111
+ continue;
1112
+ }
1113
+ for (let i = u.length - 1; i >= 0; i--) {
1114
+ let o = u[i];
1115
+ if (o === " " || o === " ") t++;else {
1116
+ e[n] = u.slice(0, i + 1);
1117
+ break e;
1118
+ }
1119
+ }
1120
+ }
1121
+ if (t > 0 || r > 0) for (e.length = n + 1; r-- > 0;) e.push(Ee);
1122
+ return t;
1123
+ }
1124
+ function et(e, t, r, n, u, i) {
1125
+ if (r === Number.POSITIVE_INFINITY) return true;
1126
+ let o = t.length,
1127
+ s = [e],
1128
+ a = [];
1129
+ for (; r >= 0;) {
1130
+ if (s.length === 0) {
1131
+ if (o === 0) return true;
1132
+ s.push(t[--o]);
1133
+ continue;
1134
+ }
1135
+ let {
1136
+ mode: D,
1137
+ doc: l
1138
+ } = s.pop(),
1139
+ p = M(l);
1140
+ switch (p) {
1141
+ case $:
1142
+ a.push(l), r -= Le(l);
1143
+ break;
1144
+ case H:
1145
+ case N:
1146
+ {
1147
+ let f = p === H ? l : l.parts,
1148
+ d = l[Pt] ?? 0;
1149
+ for (let c = f.length - 1; c >= d; c--) s.push({
1150
+ mode: D,
1151
+ doc: f[c]
1152
+ });
1153
+ break;
1154
+ }
1155
+ case T:
1156
+ case k:
1157
+ case P:
1158
+ case O:
1159
+ s.push({
1160
+ mode: D,
1161
+ doc: l.contents
1162
+ });
1163
+ break;
1164
+ case L:
1165
+ r += Rt(a);
1166
+ break;
1167
+ case B:
1168
+ {
1169
+ if (i && l.break) return false;
1170
+ let f = l.break ? Y : D,
1171
+ d = l.expandedStates && f === Y ? A(false, l.expandedStates, -1) : l.contents;
1172
+ s.push({
1173
+ mode: f,
1174
+ doc: d
1175
+ });
1176
+ break;
1177
+ }
1178
+ case w:
1179
+ {
1180
+ let d = (l.groupId ? u[l.groupId] || J : D) === Y ? l.breakContents : l.flatContents;
1181
+ d && s.push({
1182
+ mode: D,
1183
+ doc: d
1184
+ });
1185
+ break;
1186
+ }
1187
+ case y:
1188
+ if (D === Y || l.hard) return true;
1189
+ l.soft || (a.push(" "), r--);
1190
+ break;
1191
+ case I:
1192
+ n = true;
1193
+ break;
1194
+ case R:
1195
+ if (n) return false;
1196
+ break;
1197
+ }
1198
+ }
1199
+ return false;
1200
+ }
1201
+ function Ce(e, t) {
1202
+ let r = {},
1203
+ n = t.printWidth,
1204
+ u = be(t.endOfLine),
1205
+ i = 0,
1206
+ o = [{
1207
+ ind: Jr(),
1208
+ mode: Y,
1209
+ doc: e
1210
+ }],
1211
+ s = [],
1212
+ a = false,
1213
+ D = [],
1214
+ l = 0;
1215
+ for (br(e); o.length > 0;) {
1216
+ let {
1217
+ ind: f,
1218
+ mode: d,
1219
+ doc: c
1220
+ } = o.pop();
1221
+ switch (M(c)) {
1222
+ case $:
1223
+ {
1224
+ let F = u !== `
1225
+ ` ? ne(false, c, `
1226
+ `, u) : c;
1227
+ s.push(F), o.length > 0 && (i += Le(F));
1228
+ break;
1229
+ }
1230
+ case H:
1231
+ for (let F = c.length - 1; F >= 0; F--) o.push({
1232
+ ind: f,
1233
+ mode: d,
1234
+ doc: c[F]
1235
+ });
1236
+ break;
1237
+ case z:
1238
+ if (l >= 2) throw new Error("There are too many 'cursor' in doc.");
1239
+ s.push(Ee), l++;
1240
+ break;
1241
+ case T:
1242
+ o.push({
1243
+ ind: Gu(f, t),
1244
+ mode: d,
1245
+ doc: c.contents
1246
+ });
1247
+ break;
1248
+ case k:
1249
+ o.push({
1250
+ ind: Ku(f, c.n, t),
1251
+ mode: d,
1252
+ doc: c.contents
1253
+ });
1254
+ break;
1255
+ case L:
1256
+ i -= Rt(s);
1257
+ break;
1258
+ case B:
1259
+ switch (d) {
1260
+ case J:
1261
+ if (!a) {
1262
+ o.push({
1263
+ ind: f,
1264
+ mode: c.break ? Y : J,
1265
+ doc: c.contents
1266
+ });
1267
+ break;
1268
+ }
1269
+ case Y:
1270
+ {
1271
+ a = false;
1272
+ let F = {
1273
+ ind: f,
1274
+ mode: J,
1275
+ doc: c.contents
1276
+ },
1277
+ m = n - i,
1278
+ h = D.length > 0;
1279
+ if (!c.break && et(F, o, m, h, r)) o.push(F);else if (c.expandedStates) {
1280
+ let C = A(false, c.expandedStates, -1);
1281
+ if (c.break) {
1282
+ o.push({
1283
+ ind: f,
1284
+ mode: Y,
1285
+ doc: C
1286
+ });
1287
+ break;
1288
+ } else for (let v = 1; v < c.expandedStates.length + 1; v++) if (v >= c.expandedStates.length) {
1289
+ o.push({
1290
+ ind: f,
1291
+ mode: Y,
1292
+ doc: C
1293
+ });
1294
+ break;
1295
+ } else {
1296
+ let E = c.expandedStates[v],
1297
+ g = {
1298
+ ind: f,
1299
+ mode: J,
1300
+ doc: E
1301
+ };
1302
+ if (et(g, o, m, h, r)) {
1303
+ o.push(g);
1304
+ break;
1305
+ }
1306
+ }
1307
+ } else o.push({
1308
+ ind: f,
1309
+ mode: Y,
1310
+ doc: c.contents
1311
+ });
1312
+ break;
1313
+ }
1314
+ }
1315
+ c.id && (r[c.id] = A(false, o, -1).mode);
1316
+ break;
1317
+ case N:
1318
+ {
1319
+ let F = n - i,
1320
+ m = c[Pt] ?? 0,
1321
+ {
1322
+ parts: h
1323
+ } = c,
1324
+ C = h.length - m;
1325
+ if (C === 0) break;
1326
+ let v = h[m + 0],
1327
+ E = h[m + 1],
1328
+ g = {
1329
+ ind: f,
1330
+ mode: J,
1331
+ doc: v
1332
+ },
1333
+ j = {
1334
+ ind: f,
1335
+ mode: Y,
1336
+ doc: v
1337
+ },
1338
+ b = et(g, [], F, D.length > 0, r, true);
1339
+ if (C === 1) {
1340
+ b ? o.push(g) : o.push(j);
1341
+ break;
1342
+ }
1343
+ let X = {
1344
+ ind: f,
1345
+ mode: J,
1346
+ doc: E
1347
+ },
1348
+ ae = {
1349
+ ind: f,
1350
+ mode: Y,
1351
+ doc: E
1352
+ };
1353
+ if (C === 2) {
1354
+ b ? o.push(X, g) : o.push(ae, j);
1355
+ break;
1356
+ }
1357
+ let $e = h[m + 2],
1358
+ yt = {
1359
+ ind: f,
1360
+ mode: d,
1361
+ doc: {
1362
+ ...c,
1363
+ [Pt]: m + 2
1364
+ }
1365
+ };
1366
+ et({
1367
+ ind: f,
1368
+ mode: J,
1369
+ doc: [v, E, $e]
1370
+ }, [], F, D.length > 0, r, true) ? o.push(yt, X, g) : b ? o.push(yt, ae, g) : o.push(yt, ae, j);
1371
+ break;
1372
+ }
1373
+ case w:
1374
+ case P:
1375
+ {
1376
+ let F = c.groupId ? r[c.groupId] : d;
1377
+ if (F === Y) {
1378
+ let m = c.type === w ? c.breakContents : c.negate ? c.contents : le(c.contents);
1379
+ m && o.push({
1380
+ ind: f,
1381
+ mode: d,
1382
+ doc: m
1383
+ });
1384
+ }
1385
+ if (F === J) {
1386
+ let m = c.type === w ? c.flatContents : c.negate ? le(c.contents) : c.contents;
1387
+ m && o.push({
1388
+ ind: f,
1389
+ mode: d,
1390
+ doc: m
1391
+ });
1392
+ }
1393
+ break;
1394
+ }
1395
+ case I:
1396
+ D.push({
1397
+ ind: f,
1398
+ mode: d,
1399
+ doc: c.contents
1400
+ });
1401
+ break;
1402
+ case R:
1403
+ D.length > 0 && o.push({
1404
+ ind: f,
1405
+ mode: d,
1406
+ doc: ke
1407
+ });
1408
+ break;
1409
+ case y:
1410
+ switch (d) {
1411
+ case J:
1412
+ if (c.hard) a = true;else {
1413
+ c.soft || (s.push(" "), i += 1);
1414
+ break;
1415
+ }
1416
+ case Y:
1417
+ if (D.length > 0) {
1418
+ o.push({
1419
+ ind: f,
1420
+ mode: d,
1421
+ doc: c
1422
+ }, ...D.reverse()), D.length = 0;
1423
+ break;
1424
+ }
1425
+ 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);
1426
+ break;
1427
+ }
1428
+ break;
1429
+ case O:
1430
+ o.push({
1431
+ ind: f,
1432
+ mode: d,
1433
+ doc: c.contents
1434
+ });
1435
+ break;
1436
+ case _:
1437
+ break;
1438
+ default:
1439
+ throw new Q(c);
1440
+ }
1441
+ o.length === 0 && D.length > 0 && (o.push(...D.reverse()), D.length = 0);
1442
+ }
1443
+ let p = s.indexOf(Ee);
1444
+ if (p !== -1) {
1445
+ let f = s.indexOf(Ee, p + 1);
1446
+ if (f === -1) return {
1447
+ formatted: s.filter(m => m !== Ee).join("")
1448
+ };
1449
+ let d = s.slice(0, p).join(""),
1450
+ c = s.slice(p + 1, f).join(""),
1451
+ F = s.slice(f + 1).join("");
1452
+ return {
1453
+ formatted: d + c + F,
1454
+ cursorNodeStart: d.length,
1455
+ cursorNodeText: c
1456
+ };
1457
+ }
1458
+ return {
1459
+ formatted: s.join("")
1460
+ };
1461
+ }
1462
+ function Ju(e, t, r = 0) {
1463
+ let n = 0;
1464
+ for (let u = r; u < e.length; ++u) e[u] === " " ? n = n + t - n % t : n++;
1465
+ return n;
1466
+ }
1467
+ var ge = Ju;
1468
+ var te,
1469
+ jt,
1470
+ tt,
1471
+ Yt = class {
1472
+ constructor(t) {
1473
+ Fr(this, te);
1474
+ this.stack = [t];
1475
+ }
1476
+ get key() {
1477
+ let {
1478
+ stack: t,
1479
+ siblings: r
1480
+ } = this;
1481
+ return A(false, t, r === null ? -2 : -4) ?? null;
1482
+ }
1483
+ get index() {
1484
+ return this.siblings === null ? null : A(false, this.stack, -2);
1485
+ }
1486
+ get node() {
1487
+ return A(false, this.stack, -1);
1488
+ }
1489
+ get parent() {
1490
+ return this.getNode(1);
1491
+ }
1492
+ get grandparent() {
1493
+ return this.getNode(2);
1494
+ }
1495
+ get isInArray() {
1496
+ return this.siblings !== null;
1497
+ }
1498
+ get siblings() {
1499
+ let {
1500
+ stack: t
1501
+ } = this,
1502
+ r = A(false, t, -3);
1503
+ return Array.isArray(r) ? r : null;
1504
+ }
1505
+ get next() {
1506
+ let {
1507
+ siblings: t
1508
+ } = this;
1509
+ return t === null ? null : t[this.index + 1];
1510
+ }
1511
+ get previous() {
1512
+ let {
1513
+ siblings: t
1514
+ } = this;
1515
+ return t === null ? null : t[this.index - 1];
1516
+ }
1517
+ get isFirst() {
1518
+ return this.index === 0;
1519
+ }
1520
+ get isLast() {
1521
+ let {
1522
+ siblings: t,
1523
+ index: r
1524
+ } = this;
1525
+ return t !== null && r === t.length - 1;
1526
+ }
1527
+ get isRoot() {
1528
+ return this.stack.length === 1;
1529
+ }
1530
+ get root() {
1531
+ return this.stack[0];
1532
+ }
1533
+ get ancestors() {
1534
+ return [...pe(this, te, tt).call(this)];
1535
+ }
1536
+ getName() {
1537
+ let {
1538
+ stack: t
1539
+ } = this,
1540
+ {
1541
+ length: r
1542
+ } = t;
1543
+ return r > 1 ? A(false, t, -2) : null;
1544
+ }
1545
+ getValue() {
1546
+ return A(false, this.stack, -1);
1547
+ }
1548
+ getNode(t = 0) {
1549
+ let r = pe(this, te, jt).call(this, t);
1550
+ return r === -1 ? null : this.stack[r];
1551
+ }
1552
+ getParentNode(t = 0) {
1553
+ return this.getNode(t + 1);
1554
+ }
1555
+ call(t, ...r) {
1556
+ let {
1557
+ stack: n
1558
+ } = this,
1559
+ {
1560
+ length: u
1561
+ } = n,
1562
+ i = A(false, n, -1);
1563
+ for (let o of r) i = i[o], n.push(o, i);
1564
+ try {
1565
+ return t(this);
1566
+ } finally {
1567
+ n.length = u;
1568
+ }
1569
+ }
1570
+ callParent(t, r = 0) {
1571
+ let n = pe(this, te, jt).call(this, r + 1),
1572
+ u = this.stack.splice(n + 1);
1573
+ try {
1574
+ return t(this);
1575
+ } finally {
1576
+ this.stack.push(...u);
1577
+ }
1578
+ }
1579
+ each(t, ...r) {
1580
+ let {
1581
+ stack: n
1582
+ } = this,
1583
+ {
1584
+ length: u
1585
+ } = n,
1586
+ i = A(false, n, -1);
1587
+ for (let o of r) i = i[o], n.push(o, i);
1588
+ try {
1589
+ for (let o = 0; o < i.length; ++o) n.push(o, i[o]), t(this, o, i), n.length -= 2;
1590
+ } finally {
1591
+ n.length = u;
1592
+ }
1593
+ }
1594
+ map(t, ...r) {
1595
+ let n = [];
1596
+ return this.each((u, i, o) => {
1597
+ n[i] = t(u, i, o);
1598
+ }, ...r), n;
1599
+ }
1600
+ match(...t) {
1601
+ let r = this.stack.length - 1,
1602
+ n = null,
1603
+ u = this.stack[r--];
1604
+ for (let i of t) {
1605
+ if (u === void 0) return false;
1606
+ let o = null;
1607
+ if (typeof n == "number" && (o = n, n = this.stack[r--], u = this.stack[r--]), i && !i(u, n, o)) return false;
1608
+ n = this.stack[r--], u = this.stack[r--];
1609
+ }
1610
+ return true;
1611
+ }
1612
+ findAncestor(t) {
1613
+ for (let r of pe(this, te, tt).call(this)) if (t(r)) return r;
1614
+ }
1615
+ hasAncestor(t) {
1616
+ for (let r of pe(this, te, tt).call(this)) if (t(r)) return true;
1617
+ return false;
1618
+ }
1619
+ };
1620
+ te = new WeakSet(), jt = function (t) {
1621
+ let {
1622
+ stack: r
1623
+ } = this;
1624
+ for (let n = r.length - 1; n >= 0; n -= 2) if (!Array.isArray(r[n]) && --t < 0) return n;
1625
+ return -1;
1626
+ }, tt = function* () {
1627
+ let {
1628
+ stack: t
1629
+ } = this;
1630
+ for (let r = t.length - 3; r >= 0; r -= 2) {
1631
+ let n = t[r];
1632
+ Array.isArray(n) || (yield n);
1633
+ }
1634
+ };
1635
+ var qr = Yt;
1636
+ var Xr = new Proxy(() => {}, {
1637
+ get: () => Xr
1638
+ }),
1639
+ Pe = Xr;
1640
+ function qu(e) {
1641
+ return e !== null && typeof e == "object";
1642
+ }
1643
+ var Qr = qu;
1644
+ function* ye(e, t) {
1645
+ let {
1646
+ getVisitorKeys: r,
1647
+ filter: n = () => true
1648
+ } = t,
1649
+ u = i => Qr(i) && n(i);
1650
+ for (let i of r(e)) {
1651
+ let o = e[i];
1652
+ if (Array.isArray(o)) for (let s of o) u(s) && (yield s);else u(o) && (yield o);
1653
+ }
1654
+ }
1655
+ function* Zr(e, t) {
1656
+ let r = [e];
1657
+ for (let n = 0; n < r.length; n++) {
1658
+ let u = r[n];
1659
+ for (let i of ye(u, t)) yield i, r.push(i);
1660
+ }
1661
+ }
1662
+ function en(e, t) {
1663
+ return ye(e, t).next().done;
1664
+ }
1665
+ function Ae(e) {
1666
+ return (t, r, n) => {
1667
+ let u = !!(n != null && n.backwards);
1668
+ if (r === false) return false;
1669
+ let {
1670
+ length: i
1671
+ } = t,
1672
+ o = r;
1673
+ for (; o >= 0 && o < i;) {
1674
+ let s = t.charAt(o);
1675
+ if (e instanceof RegExp) {
1676
+ if (!e.test(s)) return o;
1677
+ } else if (!e.includes(s)) return o;
1678
+ u ? o-- : o++;
1679
+ }
1680
+ return o === -1 || o === i ? o : false;
1681
+ };
1682
+ }
1683
+ var tn = Ae(/\s/u),
1684
+ S = Ae(" "),
1685
+ rt = Ae(",; "),
1686
+ nt = Ae(/[^\n\r]/u);
1687
+ function Xu(e, t, r) {
1688
+ let n = !!(r != null && r.backwards);
1689
+ if (t === false) return false;
1690
+ let u = e.charAt(t);
1691
+ if (n) {
1692
+ if (e.charAt(t - 1) === "\r" && u === `
1693
+ `) return t - 2;
1694
+ if (u === `
1695
+ ` || u === "\r" || u === "\u2028" || u === "\u2029") return t - 1;
1696
+ } else {
1697
+ if (u === "\r" && e.charAt(t + 1) === `
1698
+ `) return t + 2;
1699
+ if (u === `
1700
+ ` || u === "\r" || u === "\u2028" || u === "\u2029") return t + 1;
1701
+ }
1702
+ return t;
1703
+ }
1704
+ var W = Xu;
1705
+ function Qu(e, t, r = {}) {
1706
+ let n = S(e, r.backwards ? t - 1 : t, r),
1707
+ u = W(e, n, r);
1708
+ return n !== u;
1709
+ }
1710
+ var V = Qu;
1711
+ function Zu(e) {
1712
+ return Array.isArray(e) && e.length > 0;
1713
+ }
1714
+ var Ht = Zu;
1715
+ var rn = new Set(["tokens", "comments", "parent", "enclosingNode", "precedingNode", "followingNode"]),
1716
+ ei = e => Object.keys(e).filter(t => !rn.has(t));
1717
+ function ti(e) {
1718
+ return e ? t => e(t, rn) : ei;
1719
+ }
1720
+ var q = ti;
1721
+ function ri(e) {
1722
+ let t = e.type || e.kind || "(unknown type)",
1723
+ 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 || "");
1724
+ return r.length > 20 && (r = r.slice(0, 19) + "\u2026"), t + (r ? " " + r : "");
1725
+ }
1726
+ function Wt(e, t) {
1727
+ (e.comments ?? (e.comments = [])).push(t), t.printed = false, t.nodeDescription = ri(e);
1728
+ }
1729
+ function ue(e, t) {
1730
+ t.leading = true, t.trailing = false, Wt(e, t);
1731
+ }
1732
+ function re(e, t, r) {
1733
+ t.leading = false, t.trailing = false, r && (t.marker = r), Wt(e, t);
1734
+ }
1735
+ function ie(e, t) {
1736
+ t.leading = false, t.trailing = true, Wt(e, t);
1737
+ }
1738
+ var $t = new WeakMap();
1739
+ function ut(e, t) {
1740
+ if ($t.has(e)) return $t.get(e);
1741
+ let {
1742
+ printer: {
1743
+ getCommentChildNodes: r,
1744
+ canAttachComment: n,
1745
+ getVisitorKeys: u
1746
+ },
1747
+ locStart: i,
1748
+ locEnd: o
1749
+ } = t;
1750
+ if (!n) return [];
1751
+ let s = ((r == null ? void 0 : r(e, t)) ?? [...ye(e, {
1752
+ getVisitorKeys: q(u)
1753
+ })]).flatMap(a => n(a) ? [a] : ut(a, t));
1754
+ return s.sort((a, D) => i(a) - i(D) || o(a) - o(D)), $t.set(e, s), s;
1755
+ }
1756
+ function un(e, t, r, n) {
1757
+ let {
1758
+ locStart: u,
1759
+ locEnd: i
1760
+ } = r,
1761
+ o = u(t),
1762
+ s = i(t),
1763
+ a = ut(e, r),
1764
+ D,
1765
+ l,
1766
+ p = 0,
1767
+ f = a.length;
1768
+ for (; p < f;) {
1769
+ let d = p + f >> 1,
1770
+ c = a[d],
1771
+ F = u(c),
1772
+ m = i(c);
1773
+ if (F <= o && s <= m) return un(c, t, r, c);
1774
+ if (m <= o) {
1775
+ D = c, p = d + 1;
1776
+ continue;
1777
+ }
1778
+ if (s <= F) {
1779
+ l = c, f = d;
1780
+ continue;
1781
+ }
1782
+ throw new Error("Comment location overlaps with node location");
1783
+ }
1784
+ if ((n == null ? void 0 : n.type) === "TemplateLiteral") {
1785
+ let {
1786
+ quasis: d
1787
+ } = n,
1788
+ c = Vt(d, t, r);
1789
+ D && Vt(d, D, r) !== c && (D = null), l && Vt(d, l, r) !== c && (l = null);
1790
+ }
1791
+ return {
1792
+ enclosingNode: n,
1793
+ precedingNode: D,
1794
+ followingNode: l
1795
+ };
1796
+ }
1797
+ var Mt = () => false;
1798
+ function on(e, t) {
1799
+ let {
1800
+ comments: r
1801
+ } = e;
1802
+ if (delete e.comments, !Ht(r) || !t.printer.canAttachComment) return;
1803
+ let n = [],
1804
+ {
1805
+ locStart: u,
1806
+ locEnd: i,
1807
+ printer: {
1808
+ experimentalFeatures: {
1809
+ avoidAstMutation: o = false
1810
+ } = {},
1811
+ handleComments: s = {}
1812
+ },
1813
+ originalText: a
1814
+ } = t,
1815
+ {
1816
+ ownLine: D = Mt,
1817
+ endOfLine: l = Mt,
1818
+ remaining: p = Mt
1819
+ } = s,
1820
+ f = r.map((d, c) => ({
1821
+ ...un(e, d, t),
1822
+ comment: d,
1823
+ text: a,
1824
+ options: t,
1825
+ ast: e,
1826
+ isLastComment: r.length - 1 === c
1827
+ }));
1828
+ for (let [d, c] of f.entries()) {
1829
+ let {
1830
+ comment: F,
1831
+ precedingNode: m,
1832
+ enclosingNode: h,
1833
+ followingNode: C,
1834
+ text: v,
1835
+ options: E,
1836
+ ast: g,
1837
+ isLastComment: j
1838
+ } = c;
1839
+ 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") {
1840
+ if (u(F) - u(g) <= 0) {
1841
+ ue(g, F);
1842
+ continue;
1843
+ }
1844
+ if (i(F) - i(g) >= 0) {
1845
+ ie(g, F);
1846
+ continue;
1847
+ }
1848
+ }
1849
+ let b;
1850
+ 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));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));else if (F.placement = "remaining", !p(...b)) if (m && C) {
1851
+ let X = n.length;
1852
+ X > 0 && n[X - 1].followingNode !== C && nn(n, E), n.push(c);
1853
+ } else m ? ie(m, F) : C ? ue(C, F) : h ? re(h, F) : re(g, F);
1854
+ }
1855
+ if (nn(n, t), !o) for (let d of r) delete d.precedingNode, delete d.enclosingNode, delete d.followingNode;
1856
+ }
1857
+ var sn = e => !/[\S\n\u2028\u2029]/u.test(e);
1858
+ function ni(e, t, r, n) {
1859
+ let {
1860
+ comment: u,
1861
+ precedingNode: i
1862
+ } = r[n],
1863
+ {
1864
+ locStart: o,
1865
+ locEnd: s
1866
+ } = t,
1867
+ a = o(u);
1868
+ if (i) for (let D = n - 1; D >= 0; D--) {
1869
+ let {
1870
+ comment: l,
1871
+ precedingNode: p
1872
+ } = r[D];
1873
+ if (p !== i || !sn(e.slice(s(l), a))) break;
1874
+ a = o(l);
1875
+ }
1876
+ return V(e, a, {
1877
+ backwards: true
1878
+ });
1879
+ }
1880
+ function ui(e, t, r, n) {
1881
+ let {
1882
+ comment: u,
1883
+ followingNode: i
1884
+ } = r[n],
1885
+ {
1886
+ locStart: o,
1887
+ locEnd: s
1888
+ } = t,
1889
+ a = s(u);
1890
+ if (i) for (let D = n + 1; D < r.length; D++) {
1891
+ let {
1892
+ comment: l,
1893
+ followingNode: p
1894
+ } = r[D];
1895
+ if (p !== i || !sn(e.slice(a, o(l)))) break;
1896
+ a = s(l);
1897
+ }
1898
+ return V(e, a);
1899
+ }
1900
+ function nn(e, t) {
1901
+ var s, a;
1902
+ let r = e.length;
1903
+ if (r === 0) return;
1904
+ let {
1905
+ precedingNode: n,
1906
+ followingNode: u
1907
+ } = e[0],
1908
+ i = t.locStart(u),
1909
+ o;
1910
+ for (o = r; o > 0; --o) {
1911
+ let {
1912
+ comment: D,
1913
+ precedingNode: l,
1914
+ followingNode: p
1915
+ } = e[o - 1];
1916
+ Pe.strictEqual(l, n), Pe.strictEqual(p, u);
1917
+ let f = t.originalText.slice(t.locEnd(D), i);
1918
+ if (((a = (s = t.printer).isGap) == null ? void 0 : a.call(s, f, t)) ?? /^[\s(]*$/u.test(f)) i = t.locStart(D);else break;
1919
+ }
1920
+ for (let [D, {
1921
+ comment: l
1922
+ }] of e.entries()) D < o ? ie(n, l) : ue(u, l);
1923
+ for (let D of [n, u]) D.comments && D.comments.length > 1 && D.comments.sort((l, p) => t.locStart(l) - t.locStart(p));
1924
+ e.length = 0;
1925
+ }
1926
+ function Vt(e, t, r) {
1927
+ let n = r.locStart(t) - 1;
1928
+ for (let u = 1; u < e.length; ++u) if (n < r.locStart(e[u])) return u - 1;
1929
+ return 0;
1930
+ }
1931
+ function ii(e, t) {
1932
+ let r = t - 1;
1933
+ r = S(e, r, {
1934
+ backwards: true
1935
+ }), r = W(e, r, {
1936
+ backwards: true
1937
+ }), r = S(e, r, {
1938
+ backwards: true
1939
+ });
1940
+ let n = W(e, r, {
1941
+ backwards: true
1942
+ });
1943
+ return r !== n;
1944
+ }
1945
+ var Ie = ii;
1946
+ function an(e, t) {
1947
+ let r = e.node;
1948
+ return r.printed = true, t.printer.printComment(e, t);
1949
+ }
1950
+ function oi(e, t) {
1951
+ var l;
1952
+ let r = e.node,
1953
+ n = [an(e, t)],
1954
+ {
1955
+ printer: u,
1956
+ originalText: i,
1957
+ locStart: o,
1958
+ locEnd: s
1959
+ } = t;
1960
+ if ((l = u.isBlockComment) == null ? void 0 : l.call(u, r)) {
1961
+ let p = V(i, s(r)) ? V(i, o(r), {
1962
+ backwards: true
1963
+ }) ? K : Qe : " ";
1964
+ n.push(p);
1965
+ } else n.push(K);
1966
+ let D = W(i, S(i, s(r)));
1967
+ return D !== false && V(i, D) && n.push(K), n;
1968
+ }
1969
+ function si(e, t, r) {
1970
+ var D;
1971
+ let n = e.node,
1972
+ u = an(e, t),
1973
+ {
1974
+ printer: i,
1975
+ originalText: o,
1976
+ locStart: s
1977
+ } = t,
1978
+ a = (D = i.isBlockComment) == null ? void 0 : D.call(i, n);
1979
+ if (r != null && r.hasLineSuffix && !(r != null && r.isBlock) || V(o, s(n), {
1980
+ backwards: true
1981
+ })) {
1982
+ let l = Ie(o, s(n));
1983
+ return {
1984
+ doc: Te([K, l ? K : "", u]),
1985
+ isBlock: a,
1986
+ hasLineSuffix: true
1987
+ };
1988
+ }
1989
+ return !a || r != null && r.hasLineSuffix ? {
1990
+ doc: [Te([" ", u]), he],
1991
+ isBlock: a,
1992
+ hasLineSuffix: true
1993
+ } : {
1994
+ doc: [" ", u],
1995
+ isBlock: a,
1996
+ hasLineSuffix: false
1997
+ };
1998
+ }
1999
+ function ai(e, t) {
2000
+ let r = e.node;
2001
+ if (!r) return {};
2002
+ let n = t[Symbol.for("printedComments")];
2003
+ if ((r.comments || []).filter(a => !n.has(a)).length === 0) return {
2004
+ leading: "",
2005
+ trailing: ""
2006
+ };
2007
+ let i = [],
2008
+ o = [],
2009
+ s;
2010
+ return e.each(() => {
2011
+ let a = e.node;
2012
+ if (n != null && n.has(a)) return;
2013
+ let {
2014
+ leading: D,
2015
+ trailing: l
2016
+ } = a;
2017
+ D ? i.push(oi(e, t)) : l && (s = si(e, t, s), o.push(s.doc));
2018
+ }, "comments"), {
2019
+ leading: i,
2020
+ trailing: o
2021
+ };
2022
+ }
2023
+ function Dn(e, t, r) {
2024
+ let {
2025
+ leading: n,
2026
+ trailing: u
2027
+ } = ai(e, r);
2028
+ return !n && !u ? t : me(t, i => [n, i, u]);
2029
+ }
2030
+ function ln(e) {
2031
+ let {
2032
+ [Symbol.for("comments")]: t,
2033
+ [Symbol.for("printedComments")]: r
2034
+ } = e;
2035
+ for (let n of t) {
2036
+ if (!n.printed && !r.has(n)) throw new Error('Comment "' + n.value.trim() + '" was not printed. Please report this error!');
2037
+ delete n.printed;
2038
+ }
2039
+ }
2040
+ var Re = class extends Error {
2041
+ name = "ConfigError";
2042
+ },
2043
+ Ye = class extends Error {
2044
+ name = "UndefinedParserError";
2045
+ };
2046
+ var fn = {
2047
+ cursorOffset: {
2048
+ category: "Special",
2049
+ type: "int",
2050
+ default: -1,
2051
+ range: {
2052
+ start: -1,
2053
+ end: 1 / 0,
2054
+ step: 1
2055
+ },
2056
+ description: "Print (to stderr) where a cursor at the given position would move to after formatting.",
2057
+ cliCategory: "Editor"
2058
+ },
2059
+ endOfLine: {
2060
+ category: "Global",
2061
+ type: "choice",
2062
+ default: "lf",
2063
+ description: "Which end of line characters to apply.",
2064
+ choices: [{
2065
+ value: "lf",
2066
+ description: "Line Feed only (\\n), common on Linux and macOS as well as inside git repos"
2067
+ }, {
2068
+ value: "crlf",
2069
+ description: "Carriage Return + Line Feed characters (\\r\\n), common on Windows"
2070
+ }, {
2071
+ value: "cr",
2072
+ description: "Carriage Return character only (\\r), used very rarely"
2073
+ }, {
2074
+ value: "auto",
2075
+ description: `Maintain existing
2076
+ (mixed values within one file are normalised by looking at what's used after the first line)`
2077
+ }]
2078
+ },
2079
+ filepath: {
2080
+ category: "Special",
2081
+ type: "path",
2082
+ description: "Specify the input filepath. This will be used to do parser inference.",
2083
+ cliName: "stdin-filepath",
2084
+ cliCategory: "Other",
2085
+ cliDescription: "Path to the file to pretend that stdin comes from."
2086
+ },
2087
+ insertPragma: {
2088
+ category: "Special",
2089
+ type: "boolean",
2090
+ default: false,
2091
+ description: "Insert @format pragma into file's first docblock comment.",
2092
+ cliCategory: "Other"
2093
+ },
2094
+ parser: {
2095
+ category: "Global",
2096
+ type: "choice",
2097
+ default: void 0,
2098
+ description: "Which parser to use.",
2099
+ exception: e => typeof e == "string" || typeof e == "function",
2100
+ choices: [{
2101
+ value: "flow",
2102
+ description: "Flow"
2103
+ }, {
2104
+ value: "babel",
2105
+ description: "JavaScript"
2106
+ }, {
2107
+ value: "babel-flow",
2108
+ description: "Flow"
2109
+ }, {
2110
+ value: "babel-ts",
2111
+ description: "TypeScript"
2112
+ }, {
2113
+ value: "typescript",
2114
+ description: "TypeScript"
2115
+ }, {
2116
+ value: "acorn",
2117
+ description: "JavaScript"
2118
+ }, {
2119
+ value: "espree",
2120
+ description: "JavaScript"
2121
+ }, {
2122
+ value: "meriyah",
2123
+ description: "JavaScript"
2124
+ }, {
2125
+ value: "css",
2126
+ description: "CSS"
2127
+ }, {
2128
+ value: "less",
2129
+ description: "Less"
2130
+ }, {
2131
+ value: "scss",
2132
+ description: "SCSS"
2133
+ }, {
2134
+ value: "json",
2135
+ description: "JSON"
2136
+ }, {
2137
+ value: "json5",
2138
+ description: "JSON5"
2139
+ }, {
2140
+ value: "jsonc",
2141
+ description: "JSON with Comments"
2142
+ }, {
2143
+ value: "json-stringify",
2144
+ description: "JSON.stringify"
2145
+ }, {
2146
+ value: "graphql",
2147
+ description: "GraphQL"
2148
+ }, {
2149
+ value: "markdown",
2150
+ description: "Markdown"
2151
+ }, {
2152
+ value: "mdx",
2153
+ description: "MDX"
2154
+ }, {
2155
+ value: "vue",
2156
+ description: "Vue"
2157
+ }, {
2158
+ value: "yaml",
2159
+ description: "YAML"
2160
+ }, {
2161
+ value: "glimmer",
2162
+ description: "Ember / Handlebars"
2163
+ }, {
2164
+ value: "html",
2165
+ description: "HTML"
2166
+ }, {
2167
+ value: "angular",
2168
+ description: "Angular"
2169
+ }, {
2170
+ value: "lwc",
2171
+ description: "Lightning Web Components"
2172
+ }]
2173
+ },
2174
+ plugins: {
2175
+ type: "path",
2176
+ array: true,
2177
+ default: [{
2178
+ value: []
2179
+ }],
2180
+ category: "Global",
2181
+ description: "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",
2182
+ exception: e => typeof e == "string" || typeof e == "object",
2183
+ cliName: "plugin",
2184
+ cliCategory: "Config"
2185
+ },
2186
+ printWidth: {
2187
+ category: "Global",
2188
+ type: "int",
2189
+ default: 80,
2190
+ description: "The line length where Prettier will try wrap.",
2191
+ range: {
2192
+ start: 0,
2193
+ end: 1 / 0,
2194
+ step: 1
2195
+ }
2196
+ },
2197
+ rangeEnd: {
2198
+ category: "Special",
2199
+ type: "int",
2200
+ default: 1 / 0,
2201
+ range: {
2202
+ start: 0,
2203
+ end: 1 / 0,
2204
+ step: 1
2205
+ },
2206
+ description: `Format code ending at a given character offset (exclusive).
2207
+ The range will extend forwards to the end of the selected statement.`,
2208
+ cliCategory: "Editor"
2209
+ },
2210
+ rangeStart: {
2211
+ category: "Special",
2212
+ type: "int",
2213
+ default: 0,
2214
+ range: {
2215
+ start: 0,
2216
+ end: 1 / 0,
2217
+ step: 1
2218
+ },
2219
+ description: `Format code starting at a given character offset.
2220
+ The range will extend backwards to the start of the first line containing the selected statement.`,
2221
+ cliCategory: "Editor"
2222
+ },
2223
+ requirePragma: {
2224
+ category: "Special",
2225
+ type: "boolean",
2226
+ default: false,
2227
+ description: `Require either '@prettier' or '@format' to be present in the file's first docblock comment
2228
+ in order for it to be formatted.`,
2229
+ cliCategory: "Other"
2230
+ },
2231
+ tabWidth: {
2232
+ type: "int",
2233
+ category: "Global",
2234
+ default: 2,
2235
+ description: "Number of spaces per indentation level.",
2236
+ range: {
2237
+ start: 0,
2238
+ end: 1 / 0,
2239
+ step: 1
2240
+ }
2241
+ },
2242
+ useTabs: {
2243
+ category: "Global",
2244
+ type: "boolean",
2245
+ default: false,
2246
+ description: "Indent with tabs instead of spaces."
2247
+ },
2248
+ embeddedLanguageFormatting: {
2249
+ category: "Global",
2250
+ type: "choice",
2251
+ default: "auto",
2252
+ description: "Control how Prettier formats quoted code embedded in the file.",
2253
+ choices: [{
2254
+ value: "auto",
2255
+ description: "Format embedded code if Prettier can automatically identify it."
2256
+ }, {
2257
+ value: "off",
2258
+ description: "Never automatically format embedded code."
2259
+ }]
2260
+ }
2261
+ };
2262
+ function it({
2263
+ plugins: e = [],
2264
+ showDeprecated: t = false
2265
+ } = {}) {
2266
+ let r = e.flatMap(u => u.languages ?? []),
2267
+ n = [];
2268
+ for (let u of ci(Object.assign({}, ...e.map(({
2269
+ options: i
2270
+ }) => 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 => {
2271
+ var o;
2272
+ return ((o = i.defaultOptions) == null ? void 0 : o[u.name]) !== void 0;
2273
+ }).map(i => [i.name, i.defaultOptions[u.name]])), n.push(u));
2274
+ return {
2275
+ languages: r,
2276
+ options: n
2277
+ };
2278
+ }
2279
+ function* li(e, t, r) {
2280
+ let n = new Set(e.map(u => u.value));
2281
+ for (let u of t) if (u.parsers) {
2282
+ for (let i of u.parsers) if (!n.has(i)) {
2283
+ n.add(i);
2284
+ let o = r.find(a => a.parsers && Object.prototype.hasOwnProperty.call(a.parsers, i)),
2285
+ s = u.name;
2286
+ o != null && o.name && (s += ` (plugin: ${o.name})`), yield {
2287
+ value: i,
2288
+ description: s
2289
+ };
2290
+ }
2291
+ }
2292
+ }
2293
+ function ci(e) {
2294
+ let t = [];
2295
+ for (let [r, n] of Object.entries(e)) {
2296
+ let u = {
2297
+ name: r,
2298
+ ...n
2299
+ };
2300
+ Array.isArray(u.default) && (u.default = A(false, u.default, -1).value), t.push(u);
2301
+ }
2302
+ return t;
2303
+ }
2304
+ var fi = e => String(e).split(/[/\\]/u).pop();
2305
+ function dn(e, t) {
2306
+ if (!t) return;
2307
+ let r = fi(t).toLowerCase();
2308
+ return e.find(({
2309
+ filenames: n
2310
+ }) => n == null ? void 0 : n.some(u => u.toLowerCase() === r)) ?? e.find(({
2311
+ extensions: n
2312
+ }) => n == null ? void 0 : n.some(u => r.endsWith(u)));
2313
+ }
2314
+ function di(e, t) {
2315
+ if (t) return e.find(({
2316
+ name: r
2317
+ }) => r.toLowerCase() === t) ?? e.find(({
2318
+ aliases: r
2319
+ }) => r == null ? void 0 : r.includes(t)) ?? e.find(({
2320
+ extensions: r
2321
+ }) => r == null ? void 0 : r.includes(`.${t}`));
2322
+ }
2323
+ function pi(e, t) {
2324
+ let r = e.plugins.flatMap(u => u.languages ?? []),
2325
+ n = di(r, t.language) ?? dn(r, t.physicalFile) ?? dn(r, t.file) ?? (t.physicalFile, void 0);
2326
+ return n == null ? void 0 : n.parsers[0];
2327
+ }
2328
+ var pn = pi;
2329
+ var oe = {
2330
+ key: e => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e) ? e : JSON.stringify(e),
2331
+ value(e) {
2332
+ if (e === null || typeof e != "object") return JSON.stringify(e);
2333
+ if (Array.isArray(e)) return `[${e.map(r => oe.value(r)).join(", ")}]`;
2334
+ let t = Object.keys(e);
2335
+ return t.length === 0 ? "{}" : `{ ${t.map(r => `${oe.key(r)}: ${oe.value(e[r])}`).join(", ")} }`;
2336
+ },
2337
+ pair: ({
2338
+ key: e,
2339
+ value: t
2340
+ }) => oe.value({
2341
+ [e]: t
2342
+ })
2343
+ };
2344
+ var Ut = Me(ot()),
2345
+ hn = (e, t, {
2346
+ descriptor: r
2347
+ }) => {
2348
+ let n = [`${Ut.default.yellow(typeof e == "string" ? r.key(e) : r.pair(e))} is deprecated`];
2349
+ return t && n.push(`we now treat it as ${Ut.default.blue(typeof t == "string" ? r.key(t) : r.pair(t))}`), n.join("; ") + ".";
2350
+ };
2351
+ var ce = Me(ot());
2352
+ var st = Symbol.for("vnopts.VALUE_NOT_EXIST"),
2353
+ ve = Symbol.for("vnopts.VALUE_UNCHANGED");
2354
+ var En = " ".repeat(2),
2355
+ gn = (e, t, r) => {
2356
+ let {
2357
+ text: n,
2358
+ list: u
2359
+ } = r.normalizeExpectedResult(r.schemas[e].expected(r)),
2360
+ i = [];
2361
+ 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(`
2362
+ `)), An(i, r.loggerPrintWidth);
2363
+ };
2364
+ function Cn(e, t, r, n) {
2365
+ 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(" ");
2366
+ }
2367
+ function yn({
2368
+ text: e,
2369
+ list: t
2370
+ }, r) {
2371
+ let n = [];
2372
+ 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(`
2373
+ `)), An(n, r);
2374
+ }
2375
+ function An(e, t) {
2376
+ if (e.length === 1) return e[0];
2377
+ let [r, n] = e,
2378
+ [u, i] = e.map(o => o.split(`
2379
+ `, 1)[0].length);
2380
+ return u > t && u > i ? n : r;
2381
+ }
2382
+ var Kt = Me(ot());
2383
+ var zt = [],
2384
+ vn = [];
2385
+ function Gt(e, t) {
2386
+ if (e === t) return 0;
2387
+ let r = e;
2388
+ e.length > t.length && (e = t, t = r);
2389
+ let n = e.length,
2390
+ u = t.length;
2391
+ for (; n > 0 && e.charCodeAt(~-n) === t.charCodeAt(~-u);) n--, u--;
2392
+ let i = 0;
2393
+ for (; i < n && e.charCodeAt(i) === t.charCodeAt(i);) i++;
2394
+ if (n -= i, u -= i, n === 0) return u;
2395
+ let o,
2396
+ s,
2397
+ a,
2398
+ D,
2399
+ l = 0,
2400
+ p = 0;
2401
+ for (; l < n;) vn[l] = e.charCodeAt(i + l), zt[l] = ++l;
2402
+ 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;
2403
+ return s;
2404
+ }
2405
+ var at = (e, t, {
2406
+ descriptor: r,
2407
+ logger: n,
2408
+ schemas: u
2409
+ }) => {
2410
+ let i = [`Ignored unknown option ${Kt.default.yellow(r.pair({
2411
+ key: e,
2412
+ value: t
2413
+ }))}.`],
2414
+ o = Object.keys(u).sort().find(s => Gt(e, s) < 3);
2415
+ o && i.push(`Did you mean ${Kt.default.blue(r.key(o))}?`), n.warn(i.join(" "));
2416
+ };
2417
+ var Fi = ["default", "expected", "validate", "deprecated", "forward", "redirect", "overlap", "preprocess", "postprocess"];
2418
+ function mi(e, t) {
2419
+ let r = new e(t),
2420
+ n = Object.create(r);
2421
+ for (let u of Fi) u in t && (n[u] = hi(t[u], r, x.prototype[u].length));
2422
+ return n;
2423
+ }
2424
+ var x = class {
2425
+ static create(t) {
2426
+ return mi(this, t);
2427
+ }
2428
+ constructor(t) {
2429
+ this.name = t.name;
2430
+ }
2431
+ default(t) {}
2432
+ expected(t) {
2433
+ return "nothing";
2434
+ }
2435
+ validate(t, r) {
2436
+ return false;
2437
+ }
2438
+ deprecated(t, r) {
2439
+ return false;
2440
+ }
2441
+ forward(t, r) {}
2442
+ redirect(t, r) {}
2443
+ overlap(t, r, n) {
2444
+ return t;
2445
+ }
2446
+ preprocess(t, r) {
2447
+ return t;
2448
+ }
2449
+ postprocess(t, r) {
2450
+ return ve;
2451
+ }
2452
+ };
2453
+ function hi(e, t, r) {
2454
+ return typeof e == "function" ? (...n) => e(...n.slice(0, r - 1), t, ...n.slice(r - 1)) : () => e;
2455
+ }
2456
+ var Dt = class extends x {
2457
+ constructor(t) {
2458
+ super(t), this._sourceName = t.sourceName;
2459
+ }
2460
+ expected(t) {
2461
+ return t.schemas[this._sourceName].expected(t);
2462
+ }
2463
+ validate(t, r) {
2464
+ return r.schemas[this._sourceName].validate(t, r);
2465
+ }
2466
+ redirect(t, r) {
2467
+ return this._sourceName;
2468
+ }
2469
+ };
2470
+ var lt = class extends x {
2471
+ expected() {
2472
+ return "anything";
2473
+ }
2474
+ validate() {
2475
+ return true;
2476
+ }
2477
+ };
2478
+ var ct = class extends x {
2479
+ constructor({
2480
+ valueSchema: t,
2481
+ name: r = t.name,
2482
+ ...n
2483
+ }) {
2484
+ super({
2485
+ ...n,
2486
+ name: r
2487
+ }), this._valueSchema = t;
2488
+ }
2489
+ expected(t) {
2490
+ let {
2491
+ text: r,
2492
+ list: n
2493
+ } = t.normalizeExpectedResult(this._valueSchema.expected(t));
2494
+ return {
2495
+ text: r && `an array of ${r}`,
2496
+ list: n && {
2497
+ title: "an array of the following values",
2498
+ values: [{
2499
+ list: n
2500
+ }]
2501
+ }
2502
+ };
2503
+ }
2504
+ validate(t, r) {
2505
+ if (!Array.isArray(t)) return false;
2506
+ let n = [];
2507
+ for (let u of t) {
2508
+ let i = r.normalizeValidateResult(this._valueSchema.validate(u, r), u);
2509
+ i !== true && n.push(i.value);
2510
+ }
2511
+ return n.length === 0 ? true : {
2512
+ value: n
2513
+ };
2514
+ }
2515
+ deprecated(t, r) {
2516
+ let n = [];
2517
+ for (let u of t) {
2518
+ let i = r.normalizeDeprecatedResult(this._valueSchema.deprecated(u, r), u);
2519
+ i !== false && n.push(...i.map(({
2520
+ value: o
2521
+ }) => ({
2522
+ value: [o]
2523
+ })));
2524
+ }
2525
+ return n;
2526
+ }
2527
+ forward(t, r) {
2528
+ let n = [];
2529
+ for (let u of t) {
2530
+ let i = r.normalizeForwardResult(this._valueSchema.forward(u, r), u);
2531
+ n.push(...i.map(Bn));
2532
+ }
2533
+ return n;
2534
+ }
2535
+ redirect(t, r) {
2536
+ let n = [],
2537
+ u = [];
2538
+ for (let i of t) {
2539
+ let o = r.normalizeRedirectResult(this._valueSchema.redirect(i, r), i);
2540
+ "remain" in o && n.push(o.remain), u.push(...o.redirect.map(Bn));
2541
+ }
2542
+ return n.length === 0 ? {
2543
+ redirect: u
2544
+ } : {
2545
+ redirect: u,
2546
+ remain: n
2547
+ };
2548
+ }
2549
+ overlap(t, r) {
2550
+ return t.concat(r);
2551
+ }
2552
+ };
2553
+ function Bn({
2554
+ from: e,
2555
+ to: t
2556
+ }) {
2557
+ return {
2558
+ from: [e],
2559
+ to: t
2560
+ };
2561
+ }
2562
+ var ft = class extends x {
2563
+ expected() {
2564
+ return "true or false";
2565
+ }
2566
+ validate(t) {
2567
+ return typeof t == "boolean";
2568
+ }
2569
+ };
2570
+ function _n(e, t) {
2571
+ let r = Object.create(null);
2572
+ for (let n of e) {
2573
+ let u = n[t];
2574
+ if (r[u]) throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);
2575
+ r[u] = n;
2576
+ }
2577
+ return r;
2578
+ }
2579
+ function xn(e, t) {
2580
+ let r = new Map();
2581
+ for (let n of e) {
2582
+ let u = n[t];
2583
+ if (r.has(u)) throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);
2584
+ r.set(u, n);
2585
+ }
2586
+ return r;
2587
+ }
2588
+ function bn() {
2589
+ let e = Object.create(null);
2590
+ return t => {
2591
+ let r = JSON.stringify(t);
2592
+ return e[r] ? true : (e[r] = true, false);
2593
+ };
2594
+ }
2595
+ function Nn(e, t) {
2596
+ let r = [],
2597
+ n = [];
2598
+ for (let u of e) t(u) ? r.push(u) : n.push(u);
2599
+ return [r, n];
2600
+ }
2601
+ function On(e) {
2602
+ return e === Math.floor(e);
2603
+ }
2604
+ function Sn(e, t) {
2605
+ if (e === t) return 0;
2606
+ let r = typeof e,
2607
+ n = typeof t,
2608
+ u = ["undefined", "object", "boolean", "number", "string"];
2609
+ return r !== n ? u.indexOf(r) - u.indexOf(n) : r !== "string" ? Number(e) - Number(t) : e.localeCompare(t);
2610
+ }
2611
+ function Tn(e) {
2612
+ return (...t) => {
2613
+ let r = e(...t);
2614
+ return typeof r == "string" ? new Error(r) : r;
2615
+ };
2616
+ }
2617
+ function Jt(e) {
2618
+ return e === void 0 ? {} : e;
2619
+ }
2620
+ function qt(e) {
2621
+ if (typeof e == "string") return {
2622
+ text: e
2623
+ };
2624
+ let {
2625
+ text: t,
2626
+ list: r
2627
+ } = e;
2628
+ return Ei((t || r) !== void 0, "Unexpected `expected` result, there should be at least one field."), r ? {
2629
+ text: t,
2630
+ list: {
2631
+ title: r.title,
2632
+ values: r.values.map(qt)
2633
+ }
2634
+ } : {
2635
+ text: t
2636
+ };
2637
+ }
2638
+ function Xt(e, t) {
2639
+ return e === true ? true : e === false ? {
2640
+ value: t
2641
+ } : e;
2642
+ }
2643
+ function Qt(e, t, r = false) {
2644
+ return e === false ? false : e === true ? r ? true : [{
2645
+ value: t
2646
+ }] : "value" in e ? [e] : e.length === 0 ? false : e;
2647
+ }
2648
+ function wn(e, t) {
2649
+ return typeof e == "string" || "key" in e ? {
2650
+ from: t,
2651
+ to: e
2652
+ } : "from" in e ? {
2653
+ from: e.from,
2654
+ to: e.to
2655
+ } : {
2656
+ from: t,
2657
+ to: e.to
2658
+ };
2659
+ }
2660
+ function dt(e, t) {
2661
+ return e === void 0 ? [] : Array.isArray(e) ? e.map(r => wn(r, t)) : [wn(e, t)];
2662
+ }
2663
+ function Zt(e, t) {
2664
+ let r = dt(typeof e == "object" && "redirect" in e ? e.redirect : e, t);
2665
+ return r.length === 0 ? {
2666
+ remain: t,
2667
+ redirect: r
2668
+ } : typeof e == "object" && "remain" in e ? {
2669
+ remain: e.remain,
2670
+ redirect: r
2671
+ } : {
2672
+ redirect: r
2673
+ };
2674
+ }
2675
+ function Ei(e, t) {
2676
+ if (!e) throw new Error(t);
2677
+ }
2678
+ var pt = class extends x {
2679
+ constructor(t) {
2680
+ super(t), this._choices = xn(t.choices.map(r => r && typeof r == "object" ? r : {
2681
+ value: r
2682
+ }), "value");
2683
+ }
2684
+ expected({
2685
+ descriptor: t
2686
+ }) {
2687
+ let r = Array.from(this._choices.keys()).map(o => this._choices.get(o)).filter(({
2688
+ hidden: o
2689
+ }) => !o).map(o => o.value).sort(Sn).map(t.value),
2690
+ n = r.slice(0, -2),
2691
+ u = r.slice(-2);
2692
+ return {
2693
+ text: n.concat(u.join(" or ")).join(", "),
2694
+ list: {
2695
+ title: "one of the following values",
2696
+ values: r
2697
+ }
2698
+ };
2699
+ }
2700
+ validate(t) {
2701
+ return this._choices.has(t);
2702
+ }
2703
+ deprecated(t) {
2704
+ let r = this._choices.get(t);
2705
+ return r && r.deprecated ? {
2706
+ value: t
2707
+ } : false;
2708
+ }
2709
+ forward(t) {
2710
+ let r = this._choices.get(t);
2711
+ return r ? r.forward : void 0;
2712
+ }
2713
+ redirect(t) {
2714
+ let r = this._choices.get(t);
2715
+ return r ? r.redirect : void 0;
2716
+ }
2717
+ };
2718
+ var Ft = class extends x {
2719
+ expected() {
2720
+ return "a number";
2721
+ }
2722
+ validate(t, r) {
2723
+ return typeof t == "number";
2724
+ }
2725
+ };
2726
+ var mt = class extends Ft {
2727
+ expected() {
2728
+ return "an integer";
2729
+ }
2730
+ validate(t, r) {
2731
+ return r.normalizeValidateResult(super.validate(t, r), t) === true && On(t);
2732
+ }
2733
+ };
2734
+ var je = class extends x {
2735
+ expected() {
2736
+ return "a string";
2737
+ }
2738
+ validate(t) {
2739
+ return typeof t == "string";
2740
+ }
2741
+ };
2742
+ var kn = oe,
2743
+ Ln = at,
2744
+ Pn = gn,
2745
+ In = hn;
2746
+ var ht = class {
2747
+ constructor(t, r) {
2748
+ let {
2749
+ logger: n = console,
2750
+ loggerPrintWidth: u = 80,
2751
+ descriptor: i = kn,
2752
+ unknown: o = Ln,
2753
+ invalid: s = Pn,
2754
+ deprecated: a = In,
2755
+ missing: D = () => false,
2756
+ required: l = () => false,
2757
+ preprocess: p = d => d,
2758
+ postprocess: f = () => ve
2759
+ } = r || {};
2760
+ this._utils = {
2761
+ descriptor: i,
2762
+ logger: n || {
2763
+ warn: () => {}
2764
+ },
2765
+ loggerPrintWidth: u,
2766
+ schemas: _n(t, "name"),
2767
+ normalizeDefaultResult: Jt,
2768
+ normalizeExpectedResult: qt,
2769
+ normalizeDeprecatedResult: Qt,
2770
+ normalizeForwardResult: dt,
2771
+ normalizeRedirectResult: Zt,
2772
+ normalizeValidateResult: Xt
2773
+ }, 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();
2774
+ }
2775
+ cleanHistory() {
2776
+ this._hasDeprecationWarned = bn();
2777
+ }
2778
+ normalize(t) {
2779
+ let r = {},
2780
+ u = [this._preprocess(t, this._utils)],
2781
+ i = () => {
2782
+ for (; u.length !== 0;) {
2783
+ let o = u.shift(),
2784
+ s = this._applyNormalization(o, r);
2785
+ u.push(...s);
2786
+ }
2787
+ };
2788
+ i();
2789
+ for (let o of Object.keys(this._utils.schemas)) {
2790
+ let s = this._utils.schemas[o];
2791
+ if (!(o in r)) {
2792
+ let a = Jt(s.default(this._utils));
2793
+ "value" in a && u.push({
2794
+ [o]: a.value
2795
+ });
2796
+ }
2797
+ }
2798
+ i();
2799
+ for (let o of Object.keys(this._utils.schemas)) {
2800
+ if (!(o in r)) continue;
2801
+ let s = this._utils.schemas[o],
2802
+ a = r[o],
2803
+ D = s.postprocess(a, this._utils);
2804
+ D !== ve && (this._applyValidation(D, o, s), r[o] = D);
2805
+ }
2806
+ return this._applyPostprocess(r), this._applyRequiredCheck(r), r;
2807
+ }
2808
+ _applyNormalization(t, r) {
2809
+ let n = [],
2810
+ {
2811
+ knownKeys: u,
2812
+ unknownKeys: i
2813
+ } = this._partitionOptionKeys(t);
2814
+ for (let o of u) {
2815
+ let s = this._utils.schemas[o],
2816
+ a = s.preprocess(t[o], this._utils);
2817
+ this._applyValidation(a, o, s);
2818
+ let D = ({
2819
+ from: d,
2820
+ to: c
2821
+ }) => {
2822
+ n.push(typeof c == "string" ? {
2823
+ [c]: d
2824
+ } : {
2825
+ [c.key]: c.value
2826
+ });
2827
+ },
2828
+ l = ({
2829
+ value: d,
2830
+ redirectTo: c
2831
+ }) => {
2832
+ let F = Qt(s.deprecated(d, this._utils), a, true);
2833
+ if (F !== false) if (F === true) this._hasDeprecationWarned(o) || this._utils.logger.warn(this._deprecatedHandler(o, c, this._utils));else for (let {
2834
+ value: m
2835
+ } of F) {
2836
+ let h = {
2837
+ key: o,
2838
+ value: m
2839
+ };
2840
+ if (!this._hasDeprecationWarned(h)) {
2841
+ let C = typeof c == "string" ? {
2842
+ key: c,
2843
+ value: m
2844
+ } : c;
2845
+ this._utils.logger.warn(this._deprecatedHandler(h, C, this._utils));
2846
+ }
2847
+ }
2848
+ };
2849
+ dt(s.forward(a, this._utils), a).forEach(D);
2850
+ let f = Zt(s.redirect(a, this._utils), a);
2851
+ if (f.redirect.forEach(D), "remain" in f) {
2852
+ let d = f.remain;
2853
+ r[o] = o in r ? s.overlap(r[o], d, this._utils) : d, l({
2854
+ value: d
2855
+ });
2856
+ }
2857
+ for (let {
2858
+ from: d,
2859
+ to: c
2860
+ } of f.redirect) l({
2861
+ value: d,
2862
+ redirectTo: c
2863
+ });
2864
+ }
2865
+ for (let o of i) {
2866
+ let s = t[o];
2867
+ this._applyUnknownHandler(o, s, r, (a, D) => {
2868
+ n.push({
2869
+ [a]: D
2870
+ });
2871
+ });
2872
+ }
2873
+ return n;
2874
+ }
2875
+ _applyRequiredCheck(t) {
2876
+ for (let r of Object.keys(this._utils.schemas)) if (this._identifyMissing(r, t) && this._identifyRequired(r)) throw this._invalidHandler(r, st, this._utils);
2877
+ }
2878
+ _partitionOptionKeys(t) {
2879
+ let [r, n] = Nn(Object.keys(t).filter(u => !this._identifyMissing(u, t)), u => u in this._utils.schemas);
2880
+ return {
2881
+ knownKeys: r,
2882
+ unknownKeys: n
2883
+ };
2884
+ }
2885
+ _applyValidation(t, r, n) {
2886
+ let u = Xt(n.validate(t, this._utils), t);
2887
+ if (u !== true) throw this._invalidHandler(r, u.value, this._utils);
2888
+ }
2889
+ _applyUnknownHandler(t, r, n, u) {
2890
+ let i = this._unknownHandler(t, r, this._utils);
2891
+ if (i) for (let o of Object.keys(i)) {
2892
+ if (this._identifyMissing(o, i)) continue;
2893
+ let s = i[o];
2894
+ o in this._utils.schemas ? u(o, s) : n[o] = s;
2895
+ }
2896
+ }
2897
+ _applyPostprocess(t) {
2898
+ let r = this._postprocess(t, this._utils);
2899
+ if (r !== ve) {
2900
+ if (r.delete) for (let n of r.delete) delete t[n];
2901
+ if (r.override) {
2902
+ let {
2903
+ knownKeys: n,
2904
+ unknownKeys: u
2905
+ } = this._partitionOptionKeys(r.override);
2906
+ for (let i of n) {
2907
+ let o = r.override[i];
2908
+ this._applyValidation(o, i, this._utils.schemas[i]), t[i] = o;
2909
+ }
2910
+ for (let i of u) {
2911
+ let o = r.override[i];
2912
+ this._applyUnknownHandler(i, o, t, (s, a) => {
2913
+ let D = this._utils.schemas[s];
2914
+ this._applyValidation(a, s, D), t[s] = a;
2915
+ });
2916
+ }
2917
+ }
2918
+ }
2919
+ }
2920
+ };
2921
+ var er;
2922
+ function gi(e, t, {
2923
+ logger: r = false,
2924
+ isCLI: n = false,
2925
+ passThrough: u = false,
2926
+ FlagSchema: i,
2927
+ descriptor: o
2928
+ } = {}) {
2929
+ if (n) {
2930
+ if (!i) throw new Error("'FlagSchema' option is required.");
2931
+ if (!o) throw new Error("'descriptor' option is required.");
2932
+ } else o = oe;
2933
+ let s = u ? Array.isArray(u) ? (f, d) => u.includes(f) ? {
2934
+ [f]: d
2935
+ } : void 0 : (f, d) => ({
2936
+ [f]: d
2937
+ }) : (f, d, c) => {
2938
+ let {
2939
+ _: F,
2940
+ ...m
2941
+ } = c.schemas;
2942
+ return at(f, d, {
2943
+ ...c,
2944
+ schemas: m
2945
+ });
2946
+ },
2947
+ a = yi(t, {
2948
+ isCLI: n,
2949
+ FlagSchema: i
2950
+ }),
2951
+ D = new ht(a, {
2952
+ logger: r,
2953
+ unknown: s,
2954
+ descriptor: o
2955
+ }),
2956
+ l = r !== false;
2957
+ l && er && (D._hasDeprecationWarned = er);
2958
+ let p = D.normalize(e);
2959
+ return l && (er = D._hasDeprecationWarned), p;
2960
+ }
2961
+ function yi(e, {
2962
+ isCLI: t,
2963
+ FlagSchema: r
2964
+ }) {
2965
+ let n = [];
2966
+ t && n.push(lt.create({
2967
+ name: "_"
2968
+ }));
2969
+ for (let u of e) n.push(Ai(u, {
2970
+ isCLI: t,
2971
+ optionInfos: e,
2972
+ FlagSchema: r
2973
+ })), u.alias && t && n.push(Dt.create({
2974
+ name: u.alias,
2975
+ sourceName: u.name
2976
+ }));
2977
+ return n;
2978
+ }
2979
+ function Ai(e, {
2980
+ isCLI: t,
2981
+ optionInfos: r,
2982
+ FlagSchema: n
2983
+ }) {
2984
+ let {
2985
+ name: u
2986
+ } = e,
2987
+ i = {
2988
+ name: u
2989
+ },
2990
+ o,
2991
+ s = {};
2992
+ switch (e.type) {
2993
+ case "int":
2994
+ o = mt, t && (i.preprocess = Number);
2995
+ break;
2996
+ case "string":
2997
+ o = je;
2998
+ break;
2999
+ case "choice":
3000
+ o = pt, i.choices = e.choices.map(a => a != null && a.redirect ? {
3001
+ ...a,
3002
+ redirect: {
3003
+ to: {
3004
+ key: e.name,
3005
+ value: a.redirect
3006
+ }
3007
+ }
3008
+ } : a);
3009
+ break;
3010
+ case "boolean":
3011
+ o = ft;
3012
+ break;
3013
+ case "flag":
3014
+ o = n, i.flags = r.flatMap(a => [a.alias, a.description && a.name, a.oppositeDescription && `no-${a.name}`].filter(Boolean));
3015
+ break;
3016
+ case "path":
3017
+ o = je;
3018
+ break;
3019
+ default:
3020
+ throw new Error(`Unexpected type ${e.type}`);
3021
+ }
3022
+ 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 ? {
3023
+ to: typeof e.redirect == "string" ? e.redirect : {
3024
+ key: e.redirect.option,
3025
+ value: e.redirect.value
3026
+ }
3027
+ } : void 0), e.deprecated && (s.deprecated = true), t && !e.array) {
3028
+ let a = i.preprocess || (D => D);
3029
+ i.preprocess = (D, l, p) => l.preprocess(a(Array.isArray(D) ? A(false, D, -1) : D), p);
3030
+ }
3031
+ return e.array ? ct.create({
3032
+ ...(t ? {
3033
+ preprocess: a => Array.isArray(a) ? a : [a]
3034
+ } : {}),
3035
+ ...s,
3036
+ valueSchema: o.create(i)
3037
+ }) : o.create({
3038
+ ...i,
3039
+ ...s
3040
+ });
3041
+ }
3042
+ var Rn = gi;
3043
+ var vi = (e, t, r) => {
3044
+ if (!(e && t == null)) {
3045
+ if (t.findLast) return t.findLast(r);
3046
+ for (let n = t.length - 1; n >= 0; n--) {
3047
+ let u = t[n];
3048
+ if (r(u, n, t)) return u;
3049
+ }
3050
+ }
3051
+ },
3052
+ tr = vi;
3053
+ function rr(e, t) {
3054
+ if (!t) throw new Error("parserName is required.");
3055
+ let r = tr(false, e, u => u.parsers && Object.prototype.hasOwnProperty.call(u.parsers, t));
3056
+ if (r) return r;
3057
+ let n = `Couldn't resolve parser "${t}".`;
3058
+ throw n += " Plugins must be explicitly added to the standalone bundle.", new Re(n);
3059
+ }
3060
+ function Yn(e, t) {
3061
+ if (!t) throw new Error("astFormat is required.");
3062
+ let r = tr(false, e, u => u.printers && Object.prototype.hasOwnProperty.call(u.printers, t));
3063
+ if (r) return r;
3064
+ let n = `Couldn't find plugin for AST format "${t}".`;
3065
+ throw n += " Plugins must be explicitly added to the standalone bundle.", new Re(n);
3066
+ }
3067
+ function Et({
3068
+ plugins: e,
3069
+ parser: t
3070
+ }) {
3071
+ let r = rr(e, t);
3072
+ return nr(r, t);
3073
+ }
3074
+ function nr(e, t) {
3075
+ let r = e.parsers[t];
3076
+ return typeof r == "function" ? r() : r;
3077
+ }
3078
+ function jn(e, t) {
3079
+ let r = e.printers[t];
3080
+ return typeof r == "function" ? r() : r;
3081
+ }
3082
+ var Hn = {
3083
+ astFormat: "estree",
3084
+ printer: {},
3085
+ originalText: void 0,
3086
+ locStart: null,
3087
+ locEnd: null
3088
+ };
3089
+ async function Bi(e, t = {}) {
3090
+ var p;
3091
+ let r = {
3092
+ ...e
3093
+ };
3094
+ if (!r.parser) if (r.filepath) {
3095
+ if (r.parser = pn(r, {
3096
+ physicalFile: r.filepath
3097
+ }), !r.parser) throw new Ye(`No parser could be inferred for file "${r.filepath}".`);
3098
+ } else throw new Ye("No parser and no file path given, couldn't infer a parser.");
3099
+ let n = it({
3100
+ plugins: e.plugins,
3101
+ showDeprecated: true
3102
+ }).options,
3103
+ u = {
3104
+ ...Hn,
3105
+ ...Object.fromEntries(n.filter(f => f.default !== void 0).map(f => [f.name, f.default]))
3106
+ },
3107
+ i = rr(r.plugins, r.parser),
3108
+ o = await nr(i, r.parser);
3109
+ r.astFormat = o.astFormat, r.locEnd = o.locEnd, r.locStart = o.locStart;
3110
+ let s = (p = i.printers) != null && p[o.astFormat] ? i : Yn(r.plugins, o.astFormat),
3111
+ a = await jn(s, o.astFormat);
3112
+ r.printer = a;
3113
+ let D = s.defaultOptions ? Object.fromEntries(Object.entries(s.defaultOptions).filter(([, f]) => f !== void 0)) : {},
3114
+ l = {
3115
+ ...u,
3116
+ ...D
3117
+ };
3118
+ for (let [f, d] of Object.entries(l)) (r[f] === null || r[f] === void 0) && (r[f] = d);
3119
+ return r.parser === "json" && (r.trailingComma = "none"), Rn(r, n, {
3120
+ passThrough: Object.keys(Hn),
3121
+ ...t
3122
+ });
3123
+ }
3124
+ var se = Bi;
3125
+ var Mn = Me($n());
3126
+ async function bi(e, t) {
3127
+ let r = await Et(t),
3128
+ n = r.preprocess ? r.preprocess(e, t) : e;
3129
+ t.originalText = n;
3130
+ let u;
3131
+ try {
3132
+ u = await r.parse(n, t, t);
3133
+ } catch (i) {
3134
+ Ni(i, e);
3135
+ }
3136
+ return {
3137
+ text: n,
3138
+ ast: u
3139
+ };
3140
+ }
3141
+ function Ni(e, t) {
3142
+ let {
3143
+ loc: r
3144
+ } = e;
3145
+ if (r) {
3146
+ let n = (0, Mn.codeFrameColumns)(t, r, {
3147
+ highlightCode: true
3148
+ });
3149
+ throw e.message += `
3150
+ ` + n, e.codeFrame = n, e;
3151
+ }
3152
+ throw e;
3153
+ }
3154
+ var fe = bi;
3155
+ async function Vn(e, t, r, n, u) {
3156
+ let {
3157
+ embeddedLanguageFormatting: i,
3158
+ printer: {
3159
+ embed: o,
3160
+ hasPrettierIgnore: s = () => false,
3161
+ getVisitorKeys: a
3162
+ }
3163
+ } = r;
3164
+ if (!o || i !== "auto") return;
3165
+ 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");
3166
+ let D = q(o.getVisitorKeys ?? a),
3167
+ l = [];
3168
+ d();
3169
+ let p = e.stack;
3170
+ for (let {
3171
+ print: c,
3172
+ node: F,
3173
+ pathStack: m
3174
+ } of l) try {
3175
+ e.stack = m;
3176
+ let h = await c(f, t, e, r);
3177
+ h && u.set(F, h);
3178
+ } catch (h) {
3179
+ if (globalThis.PRETTIER_DEBUG) throw h;
3180
+ }
3181
+ e.stack = p;
3182
+ function f(c, F) {
3183
+ return Oi(c, F, r, n);
3184
+ }
3185
+ function d() {
3186
+ let {
3187
+ node: c
3188
+ } = e;
3189
+ if (c === null || typeof c != "object" || s(e)) return;
3190
+ for (let m of D(c)) Array.isArray(c[m]) ? e.each(d, m) : e.call(d, m);
3191
+ let F = o(e, r);
3192
+ if (F) {
3193
+ if (typeof F == "function") {
3194
+ l.push({
3195
+ print: F,
3196
+ node: c,
3197
+ pathStack: [...e.stack]
3198
+ });
3199
+ return;
3200
+ }
3201
+ u.set(c, F);
3202
+ }
3203
+ }
3204
+ }
3205
+ async function Oi(e, t, r, n) {
3206
+ let u = await se({
3207
+ ...r,
3208
+ ...t,
3209
+ parentParser: r.parser,
3210
+ originalText: e
3211
+ }, {
3212
+ passThrough: true
3213
+ }),
3214
+ {
3215
+ ast: i
3216
+ } = await fe(e, u),
3217
+ o = await n(i, u);
3218
+ return qe(o);
3219
+ }
3220
+ function Si(e, t) {
3221
+ let {
3222
+ originalText: r,
3223
+ [Symbol.for("comments")]: n,
3224
+ locStart: u,
3225
+ locEnd: i,
3226
+ [Symbol.for("printedComments")]: o
3227
+ } = t,
3228
+ {
3229
+ node: s
3230
+ } = e,
3231
+ a = u(s),
3232
+ D = i(s);
3233
+ for (let l of n) u(l) >= a && i(l) <= D && o.add(l);
3234
+ return r.slice(a, D);
3235
+ }
3236
+ var Un = Si;
3237
+ async function He(e, t) {
3238
+ ({
3239
+ ast: e
3240
+ } = await ir(e, t));
3241
+ let r = new Map(),
3242
+ n = new qr(e),
3243
+ i = new Map();
3244
+ await Vn(n, s, t, He, i);
3245
+ let o = await zn(n, t, s, void 0, i);
3246
+ if (ln(t), t.nodeAfterCursor && !t.nodeBeforeCursor) return [Z, o];
3247
+ if (t.nodeBeforeCursor && !t.nodeAfterCursor) return [o, Z];
3248
+ return o;
3249
+ function s(D, l) {
3250
+ return D === void 0 || D === n ? a(l) : Array.isArray(D) ? n.call(() => a(l), ...D) : n.call(() => a(l), D);
3251
+ }
3252
+ function a(D) {
3253
+ let l = n.node;
3254
+ if (l == null) return "";
3255
+ let p = l && typeof l == "object" && D === void 0;
3256
+ if (p && r.has(l)) return r.get(l);
3257
+ let f = zn(n, t, s, D, i);
3258
+ return p && r.set(l, f), f;
3259
+ }
3260
+ }
3261
+ function zn(e, t, r, n, u) {
3262
+ var a;
3263
+ let {
3264
+ node: i
3265
+ } = e,
3266
+ {
3267
+ printer: o
3268
+ } = t,
3269
+ s;
3270
+ 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) {
3271
+ case t.cursorNode:
3272
+ s = me(s, D => [Z, D, Z]);
3273
+ break;
3274
+ case t.nodeBeforeCursor:
3275
+ s = me(s, D => [D, Z]);
3276
+ break;
3277
+ case t.nodeAfterCursor:
3278
+ s = me(s, D => [Z, D]);
3279
+ break;
3280
+ }
3281
+ return o.printComment && (!o.willPrintOwnComments || !o.willPrintOwnComments(e, t)) && (s = Dn(e, s, t)), s;
3282
+ }
3283
+ async function ir(e, t) {
3284
+ let r = e.comments ?? [];
3285
+ t[Symbol.for("comments")] = r, t[Symbol.for("tokens")] = e.tokens ?? [], t[Symbol.for("printedComments")] = new Set(), on(e, t);
3286
+ let {
3287
+ printer: {
3288
+ preprocess: n
3289
+ }
3290
+ } = t;
3291
+ return e = n ? await n(e, t) : e, {
3292
+ ast: e,
3293
+ comments: r
3294
+ };
3295
+ }
3296
+ function Ti(e, t) {
3297
+ let {
3298
+ cursorOffset: r,
3299
+ locStart: n,
3300
+ locEnd: u
3301
+ } = t,
3302
+ i = q(t.printer.getVisitorKeys),
3303
+ o = d => n(d) <= r && u(d) >= r,
3304
+ s = e,
3305
+ a = [e];
3306
+ for (let d of Zr(e, {
3307
+ getVisitorKeys: i,
3308
+ filter: o
3309
+ })) a.push(d), s = d;
3310
+ if (en(s, {
3311
+ getVisitorKeys: i
3312
+ })) return {
3313
+ cursorNode: s
3314
+ };
3315
+ let D,
3316
+ l,
3317
+ p = -1,
3318
+ f = Number.POSITIVE_INFINITY;
3319
+ for (; a.length > 0 && (D === void 0 || l === void 0);) {
3320
+ s = a.pop();
3321
+ let d = D !== void 0,
3322
+ c = l !== void 0;
3323
+ for (let F of ye(s, {
3324
+ getVisitorKeys: i
3325
+ })) {
3326
+ if (!d) {
3327
+ let m = u(F);
3328
+ m <= r && m > p && (D = F, p = m);
3329
+ }
3330
+ if (!c) {
3331
+ let m = n(F);
3332
+ m >= r && m < f && (l = F, f = m);
3333
+ }
3334
+ }
3335
+ }
3336
+ return {
3337
+ nodeBeforeCursor: D,
3338
+ nodeAfterCursor: l
3339
+ };
3340
+ }
3341
+ var Gn = Ti;
3342
+ function ki(e, t) {
3343
+ let {
3344
+ printer: {
3345
+ massageAstNode: r,
3346
+ getVisitorKeys: n
3347
+ }
3348
+ } = t;
3349
+ if (!r) return e;
3350
+ let u = q(n),
3351
+ i = r.ignoredProperties ?? new Set();
3352
+ return o(e);
3353
+ function o(s, a) {
3354
+ if (!(s !== null && typeof s == "object")) return s;
3355
+ if (Array.isArray(s)) return s.map(f => o(f, a)).filter(Boolean);
3356
+ let D = {},
3357
+ l = new Set(u(s));
3358
+ 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]);
3359
+ let p = r(s, D, a);
3360
+ if (p !== null) return p ?? D;
3361
+ }
3362
+ }
3363
+ var Kn = ki;
3364
+ var Li = (e, t, r) => {
3365
+ if (!(e && t == null)) {
3366
+ if (t.findLastIndex) return t.findLastIndex(r);
3367
+ for (let n = t.length - 1; n >= 0; n--) {
3368
+ let u = t[n];
3369
+ if (r(u, n, t)) return n;
3370
+ }
3371
+ return -1;
3372
+ }
3373
+ },
3374
+ Jn = Li;
3375
+ var Pi = ({
3376
+ parser: e
3377
+ }) => e === "json" || e === "json5" || e === "jsonc" || e === "json-stringify";
3378
+ function Ii(e, t) {
3379
+ let r = [e.node, ...e.parentNodes],
3380
+ n = new Set([t.node, ...t.parentNodes]);
3381
+ return r.find(u => Qn.has(u.type) && n.has(u));
3382
+ }
3383
+ function qn(e) {
3384
+ let t = Jn(false, e, r => r.type !== "Program" && r.type !== "File");
3385
+ return t === -1 ? e : e.slice(0, t + 1);
3386
+ }
3387
+ function Ri(e, t, {
3388
+ locStart: r,
3389
+ locEnd: n
3390
+ }) {
3391
+ let u = e.node,
3392
+ i = t.node;
3393
+ if (u === i) return {
3394
+ startNode: u,
3395
+ endNode: i
3396
+ };
3397
+ let o = r(e.node);
3398
+ for (let a of qn(t.parentNodes)) if (r(a) >= o) i = a;else break;
3399
+ let s = n(t.node);
3400
+ for (let a of qn(e.parentNodes)) {
3401
+ if (n(a) <= s) u = a;else break;
3402
+ if (u === i) break;
3403
+ }
3404
+ return {
3405
+ startNode: u,
3406
+ endNode: i
3407
+ };
3408
+ }
3409
+ function or(e, t, r, n, u = [], i) {
3410
+ let {
3411
+ locStart: o,
3412
+ locEnd: s
3413
+ } = r,
3414
+ a = o(e),
3415
+ D = s(e);
3416
+ if (!(t > D || t < a || i === "rangeEnd" && t === a || i === "rangeStart" && t === D)) {
3417
+ for (let l of ut(e, r)) {
3418
+ let p = or(l, t, r, n, [e, ...u], i);
3419
+ if (p) return p;
3420
+ }
3421
+ if (!n || n(e, u[0])) return {
3422
+ node: e,
3423
+ parentNodes: u
3424
+ };
3425
+ }
3426
+ }
3427
+ function Yi(e, t) {
3428
+ return t !== "DeclareExportDeclaration" && e !== "TypeParameterDeclaration" && (e === "Directive" || e === "TypeAlias" || e === "TSExportAssignment" || e.startsWith("Declare") || e.startsWith("TSDeclare") || e.endsWith("Statement") || e.endsWith("Declaration"));
3429
+ }
3430
+ var Qn = new Set(["JsonRoot", "ObjectExpression", "ArrayExpression", "StringLiteral", "NumericLiteral", "BooleanLiteral", "NullLiteral", "UnaryExpression", "TemplateLiteral"]),
3431
+ ji = new Set(["OperationDefinition", "FragmentDefinition", "VariableDefinition", "TypeExtensionDefinition", "ObjectTypeDefinition", "FieldDefinition", "DirectiveDefinition", "EnumTypeDefinition", "EnumValueDefinition", "InputValueDefinition", "InputObjectTypeDefinition", "SchemaDefinition", "OperationTypeDefinition", "InterfaceTypeDefinition", "UnionTypeDefinition", "ScalarTypeDefinition"]);
3432
+ function Xn(e, t, r) {
3433
+ if (!t) return false;
3434
+ switch (e.parser) {
3435
+ case "flow":
3436
+ case "babel":
3437
+ case "babel-flow":
3438
+ case "babel-ts":
3439
+ case "typescript":
3440
+ case "acorn":
3441
+ case "espree":
3442
+ case "meriyah":
3443
+ case "__babel_estree":
3444
+ return Yi(t.type, r == null ? void 0 : r.type);
3445
+ case "json":
3446
+ case "json5":
3447
+ case "jsonc":
3448
+ case "json-stringify":
3449
+ return Qn.has(t.type);
3450
+ case "graphql":
3451
+ return ji.has(t.kind);
3452
+ case "vue":
3453
+ return t.tag !== "root";
3454
+ }
3455
+ return false;
3456
+ }
3457
+ function Zn(e, t, r) {
3458
+ let {
3459
+ rangeStart: n,
3460
+ rangeEnd: u,
3461
+ locStart: i,
3462
+ locEnd: o
3463
+ } = t;
3464
+ Pe.ok(u > n);
3465
+ let s = e.slice(n, u).search(/\S/u),
3466
+ a = s === -1;
3467
+ if (!a) for (n += s; u > n && !/\S/u.test(e[u - 1]); --u);
3468
+ let D = or(r, n, t, (d, c) => Xn(t, d, c), [], "rangeStart"),
3469
+ l = a ? D : or(r, u, t, d => Xn(t, d), [], "rangeEnd");
3470
+ if (!D || !l) return {
3471
+ rangeStart: 0,
3472
+ rangeEnd: 0
3473
+ };
3474
+ let p, f;
3475
+ if (Pi(t)) {
3476
+ let d = Ii(D, l);
3477
+ p = d, f = d;
3478
+ } else ({
3479
+ startNode: p,
3480
+ endNode: f
3481
+ } = Ri(D, l, t));
3482
+ return {
3483
+ rangeStart: Math.min(i(p), i(f)),
3484
+ rangeEnd: Math.max(o(p), o(f))
3485
+ };
3486
+ }
3487
+ var nu = "\uFEFF",
3488
+ eu = Symbol("cursor");
3489
+ async function uu(e, t, r = 0) {
3490
+ if (!e || e.trim().length === 0) return {
3491
+ formatted: "",
3492
+ cursorOffset: -1,
3493
+ comments: []
3494
+ };
3495
+ let {
3496
+ ast: n,
3497
+ text: u
3498
+ } = await fe(e, t);
3499
+ t.cursorOffset >= 0 && (t = {
3500
+ ...t,
3501
+ ...Gn(n, t)
3502
+ });
3503
+ let i = await He(n, t);
3504
+ r > 0 && (i = Ze([K, i], r, t.tabWidth));
3505
+ let o = Ce(i, t);
3506
+ if (r > 0) {
3507
+ let a = o.formatted.trim();
3508
+ 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);
3509
+ }
3510
+ let s = t[Symbol.for("comments")];
3511
+ if (t.cursorOffset >= 0) {
3512
+ let a, D, l, p;
3513
+ if ((t.cursorNode || t.nodeBeforeCursor || t.nodeAfterCursor) && o.cursorNodeText) {
3514
+ if (l = o.cursorNodeStart, p = o.cursorNodeText, t.cursorNode) a = t.locStart(t.cursorNode), D = u.slice(a, t.locEnd(t.cursorNode));else {
3515
+ if (!t.nodeBeforeCursor && !t.nodeAfterCursor) throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");
3516
+ a = t.nodeBeforeCursor ? t.locEnd(t.nodeBeforeCursor) : 0;
3517
+ let h = t.nodeAfterCursor ? t.locStart(t.nodeAfterCursor) : u.length;
3518
+ D = u.slice(a, h);
3519
+ }
3520
+ } else a = 0, D = u, l = 0, p = o.formatted;
3521
+ let f = t.cursorOffset - a;
3522
+ if (D === p) return {
3523
+ formatted: o.formatted,
3524
+ cursorOffset: l + f,
3525
+ comments: s
3526
+ };
3527
+ let d = D.split("");
3528
+ d.splice(f, 0, eu);
3529
+ let c = p.split(""),
3530
+ F = yr(d, c),
3531
+ m = l;
3532
+ for (let h of F) if (h.removed) {
3533
+ if (h.value.includes(eu)) break;
3534
+ } else m += h.count;
3535
+ return {
3536
+ formatted: o.formatted,
3537
+ cursorOffset: m,
3538
+ comments: s
3539
+ };
3540
+ }
3541
+ return {
3542
+ formatted: o.formatted,
3543
+ cursorOffset: -1,
3544
+ comments: s
3545
+ };
3546
+ }
3547
+ async function Hi(e, t) {
3548
+ let {
3549
+ ast: r,
3550
+ text: n
3551
+ } = await fe(e, t),
3552
+ {
3553
+ rangeStart: u,
3554
+ rangeEnd: i
3555
+ } = Zn(n, t, r),
3556
+ o = n.slice(u, i),
3557
+ s = Math.min(u, n.lastIndexOf(`
3558
+ `, u) + 1),
3559
+ a = n.slice(s, u).match(/^\s*/u)[0],
3560
+ D = ge(a, t.tabWidth),
3561
+ l = await uu(o, {
3562
+ ...t,
3563
+ rangeStart: 0,
3564
+ rangeEnd: Number.POSITIVE_INFINITY,
3565
+ cursorOffset: t.cursorOffset > u && t.cursorOffset <= i ? t.cursorOffset - u : -1,
3566
+ endOfLine: "lf"
3567
+ }, D),
3568
+ p = l.formatted.trimEnd(),
3569
+ {
3570
+ cursorOffset: f
3571
+ } = t;
3572
+ f > i ? f += p.length - o.length : l.cursorOffset >= 0 && (f = l.cursorOffset + u);
3573
+ let d = n.slice(0, u) + p + n.slice(i);
3574
+ if (t.endOfLine !== "lf") {
3575
+ let c = be(t.endOfLine);
3576
+ f >= 0 && c === `\r
3577
+ ` && (f += Nt(d.slice(0, f), `
3578
+ `)), d = ne(false, d, `
3579
+ `, c);
3580
+ }
3581
+ return {
3582
+ formatted: d,
3583
+ cursorOffset: f,
3584
+ comments: l.comments
3585
+ };
3586
+ }
3587
+ function sr(e, t, r) {
3588
+ return typeof t != "number" || Number.isNaN(t) || t < 0 || t > e.length ? r : t;
3589
+ }
3590
+ function tu(e, t) {
3591
+ let {
3592
+ cursorOffset: r,
3593
+ rangeStart: n,
3594
+ rangeEnd: u
3595
+ } = t;
3596
+ return r = sr(e, r, -1), n = sr(e, n, 0), u = sr(e, u, e.length), {
3597
+ ...t,
3598
+ cursorOffset: r,
3599
+ rangeStart: n,
3600
+ rangeEnd: u
3601
+ };
3602
+ }
3603
+ function iu(e, t) {
3604
+ let {
3605
+ cursorOffset: r,
3606
+ rangeStart: n,
3607
+ rangeEnd: u,
3608
+ endOfLine: i
3609
+ } = tu(e, t),
3610
+ o = e.charAt(0) === nu;
3611
+ if (o && (e = e.slice(1), r--, n--, u--), i === "auto" && (i = Ar(e)), e.includes("\r")) {
3612
+ let s = a => Nt(e.slice(0, Math.max(a, 0)), `\r
3613
+ `);
3614
+ r -= s(r), n -= s(n), u -= s(u), e = vr(e);
3615
+ }
3616
+ return {
3617
+ hasBOM: o,
3618
+ text: e,
3619
+ options: tu(e, {
3620
+ ...t,
3621
+ cursorOffset: r,
3622
+ rangeStart: n,
3623
+ rangeEnd: u,
3624
+ endOfLine: i
3625
+ })
3626
+ };
3627
+ }
3628
+ async function ru(e, t) {
3629
+ let r = await Et(t);
3630
+ return !r.hasPragma || r.hasPragma(e);
3631
+ }
3632
+ async function ar(e, t) {
3633
+ let {
3634
+ hasBOM: r,
3635
+ text: n,
3636
+ options: u
3637
+ } = iu(e, await se(t));
3638
+ if (u.rangeStart >= u.rangeEnd && n !== "" || u.requirePragma && !(await ru(n, u))) return {
3639
+ formatted: e,
3640
+ cursorOffset: t.cursorOffset,
3641
+ comments: []
3642
+ };
3643
+ let i;
3644
+ 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;
3645
+ }
3646
+ async function ou(e, t, r) {
3647
+ let {
3648
+ text: n,
3649
+ options: u
3650
+ } = iu(e, await se(t)),
3651
+ i = await fe(n, u);
3652
+ return r && (r.preprocessForPrint && (i.ast = await ir(i.ast, u)), r.massage && (i.ast = Kn(i.ast, u))), i;
3653
+ }
3654
+ async function su(e, t) {
3655
+ t = await se(t);
3656
+ let r = await He(e, t);
3657
+ return Ce(r, t);
3658
+ }
3659
+ async function au(e, t) {
3660
+ let r = Vr(e),
3661
+ {
3662
+ formatted: n
3663
+ } = await ar(r, {
3664
+ ...t,
3665
+ parser: "__js_expression"
3666
+ });
3667
+ return n;
3668
+ }
3669
+ async function Du(e, t) {
3670
+ t = await se(t);
3671
+ let {
3672
+ ast: r
3673
+ } = await fe(e, t);
3674
+ return He(r, t);
3675
+ }
3676
+ async function lu(e, t) {
3677
+ return Ce(e, await se(t));
3678
+ }
3679
+ var Dr = {};
3680
+ vt(Dr, {
3681
+ builders: () => $i,
3682
+ printer: () => Mi,
3683
+ utils: () => Vi
3684
+ });
3685
+ var $i = {
3686
+ join: Se,
3687
+ line: Qe,
3688
+ softline: $r,
3689
+ hardline: K,
3690
+ literalline: Xe,
3691
+ group: kt,
3692
+ conditionalGroup: Ir,
3693
+ fill: Rr,
3694
+ lineSuffix: Te,
3695
+ lineSuffixBoundary: Hr,
3696
+ cursor: Z,
3697
+ breakParent: he,
3698
+ ifBreak: Yr,
3699
+ trim: Wr,
3700
+ indent: le,
3701
+ indentIfBreak: jr,
3702
+ align: De,
3703
+ addAlignmentToDoc: Ze,
3704
+ markAsRoot: Lr,
3705
+ dedentToRoot: kr,
3706
+ dedent: Pr,
3707
+ hardlineWithoutBreakParent: ke,
3708
+ literallineWithoutBreakParent: Lt,
3709
+ label: Mr,
3710
+ concat: e => e
3711
+ },
3712
+ Mi = {
3713
+ printDocToString: Ce
3714
+ },
3715
+ Vi = {
3716
+ willBreak: xr,
3717
+ traverseDoc: Fe,
3718
+ findInDoc: Je,
3719
+ mapDoc: Oe,
3720
+ removeLines: Nr,
3721
+ stripTrailingHardline: qe,
3722
+ replaceEndOfLine: Or,
3723
+ canBreak: Sr
3724
+ };
3725
+ var cu = "3.5.1";
3726
+ var cr = {};
3727
+ vt(cr, {
3728
+ addDanglingComment: () => re,
3729
+ addLeadingComment: () => ue,
3730
+ addTrailingComment: () => ie,
3731
+ getAlignmentSize: () => ge,
3732
+ getIndentSize: () => fu,
3733
+ getMaxContinuousCount: () => du,
3734
+ getNextNonSpaceNonCommentCharacter: () => pu,
3735
+ getNextNonSpaceNonCommentCharacterIndex: () => no,
3736
+ getPreferredQuote: () => mu,
3737
+ getStringWidth: () => Le,
3738
+ hasNewline: () => V,
3739
+ hasNewlineInRange: () => hu,
3740
+ hasSpaces: () => Eu,
3741
+ isNextLineEmpty: () => so,
3742
+ isNextLineEmptyAfterIndex: () => Ct,
3743
+ isPreviousLineEmpty: () => io,
3744
+ makeString: () => Cu,
3745
+ skip: () => Ae,
3746
+ skipEverythingButNewLine: () => nt,
3747
+ skipInlineComment: () => Be,
3748
+ skipNewline: () => W,
3749
+ skipSpaces: () => S,
3750
+ skipToLineEnd: () => rt,
3751
+ skipTrailingComment: () => we,
3752
+ skipWhitespace: () => tn
3753
+ });
3754
+ function Ui(e, t) {
3755
+ if (t === false) return false;
3756
+ if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
3757
+ for (let r = t + 2; r < e.length; ++r) if (e.charAt(r) === "*" && e.charAt(r + 1) === "/") return r + 2;
3758
+ }
3759
+ return t;
3760
+ }
3761
+ var Be = Ui;
3762
+ function zi(e, t) {
3763
+ return t === false ? false : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? nt(e, t) : t;
3764
+ }
3765
+ var we = zi;
3766
+ function Gi(e, t) {
3767
+ let r = null,
3768
+ n = t;
3769
+ for (; n !== r;) r = n, n = S(e, n), n = Be(e, n), n = we(e, n), n = W(e, n);
3770
+ return n;
3771
+ }
3772
+ var We = Gi;
3773
+ function Ki(e, t) {
3774
+ let r = null,
3775
+ n = t;
3776
+ for (; n !== r;) r = n, n = rt(e, n), n = Be(e, n), n = S(e, n);
3777
+ return n = we(e, n), n = W(e, n), n !== false && V(e, n);
3778
+ }
3779
+ var Ct = Ki;
3780
+ function Ji(e, t) {
3781
+ let r = e.lastIndexOf(`
3782
+ `);
3783
+ return r === -1 ? 0 : ge(e.slice(r + 1).match(/^[\t ]*/u)[0], t);
3784
+ }
3785
+ var fu = Ji;
3786
+ function lr(e) {
3787
+ if (typeof e != "string") throw new TypeError("Expected a string");
3788
+ return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
3789
+ }
3790
+ function qi(e, t) {
3791
+ let r = e.match(new RegExp(`(${lr(t)})+`, "gu"));
3792
+ return r === null ? 0 : r.reduce((n, u) => Math.max(n, u.length / t.length), 0);
3793
+ }
3794
+ var du = qi;
3795
+ function Xi(e, t) {
3796
+ let r = We(e, t);
3797
+ return r === false ? "" : e.charAt(r);
3798
+ }
3799
+ var pu = Xi;
3800
+ var gt = "'",
3801
+ Fu = '"';
3802
+ function Qi(e, t) {
3803
+ let r = t === true || t === gt ? gt : Fu,
3804
+ n = r === gt ? Fu : gt,
3805
+ u = 0,
3806
+ i = 0;
3807
+ for (let o of e) o === r ? u++ : o === n && i++;
3808
+ return u > i ? n : r;
3809
+ }
3810
+ var mu = Qi;
3811
+ function Zi(e, t, r) {
3812
+ for (let n = t; n < r; ++n) if (e.charAt(n) === `
3813
+ `) return true;
3814
+ return false;
3815
+ }
3816
+ var hu = Zi;
3817
+ function eo(e, t, r = {}) {
3818
+ return S(e, r.backwards ? t - 1 : t, r) !== t;
3819
+ }
3820
+ var Eu = eo;
3821
+ function to(e, t, r) {
3822
+ let n = t === '"' ? "'" : '"',
3823
+ 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));
3824
+ return t + i + t;
3825
+ }
3826
+ var Cu = to;
3827
+ function ro(e, t, r) {
3828
+ return We(e, r(t));
3829
+ }
3830
+ function no(e, t) {
3831
+ return arguments.length === 2 || typeof t == "number" ? We(e, t) : ro(...arguments);
3832
+ }
3833
+ function uo(e, t, r) {
3834
+ return Ie(e, r(t));
3835
+ }
3836
+ function io(e, t) {
3837
+ return arguments.length === 2 || typeof t == "number" ? Ie(e, t) : uo(...arguments);
3838
+ }
3839
+ function oo(e, t, r) {
3840
+ return Ct(e, r(t));
3841
+ }
3842
+ function so(e, t) {
3843
+ return arguments.length === 2 || typeof t == "number" ? Ct(e, t) : oo(...arguments);
3844
+ }
3845
+ function de(e, t = 1) {
3846
+ return async (...r) => {
3847
+ let n = r[t] ?? {},
3848
+ u = n.plugins ?? [];
3849
+ return r[t] = {
3850
+ ...n,
3851
+ plugins: Array.isArray(u) ? u : Object.values(u)
3852
+ }, e(...r);
3853
+ };
3854
+ }
3855
+ var gu = de(ar);
3856
+ async function yu(e, t) {
3857
+ let {
3858
+ formatted: r
3859
+ } = await gu(e, {
3860
+ ...t,
3861
+ cursorOffset: -1
3862
+ });
3863
+ return r;
3864
+ }
3865
+ async function ao(e, t) {
3866
+ return (await yu(e, t)) === e;
3867
+ }
3868
+ var Do = de(it, 0),
3869
+ lo = {
3870
+ parse: de(ou),
3871
+ formatAST: de(su),
3872
+ formatDoc: de(au),
3873
+ printToDoc: de(Du),
3874
+ printDocToString: de(lu)
3875
+ };
3876
+ var mc = fr;
3877
+
3878
+ 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 };