zudoku 0.0.0-fd8f8ad → 0.0.0-feda542

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 (1140) hide show
  1. package/README.md +1 -1
  2. package/cli.js +3 -0
  3. package/client.d.ts +7 -0
  4. package/dist/app/demo.js +1 -2
  5. package/dist/app/demo.js.map +1 -1
  6. package/dist/app/entry.client.d.ts +6 -0
  7. package/dist/app/entry.client.js +15 -15
  8. package/dist/app/entry.client.js.map +1 -1
  9. package/dist/app/entry.server.d.ts +9 -6
  10. package/dist/app/entry.server.js +14 -10
  11. package/dist/app/entry.server.js.map +1 -1
  12. package/dist/app/main.d.ts +2 -2
  13. package/dist/app/main.js +23 -10
  14. package/dist/app/main.js.map +1 -1
  15. package/dist/app/sentry.d.ts +3 -0
  16. package/dist/app/sentry.js +19 -0
  17. package/dist/app/sentry.js.map +1 -0
  18. package/dist/app/standalone.js +1 -2
  19. package/dist/app/standalone.js.map +1 -1
  20. package/dist/app/tailwind.d.ts +2 -1
  21. package/dist/app/tailwind.js +80 -48
  22. package/dist/app/tailwind.js.map +1 -1
  23. package/dist/cli/build/handler.d.ts +1 -3
  24. package/dist/cli/build/handler.js +9 -1
  25. package/dist/cli/build/handler.js.map +1 -1
  26. package/dist/cli/cli.js +5 -2
  27. package/dist/cli/cli.js.map +1 -1
  28. package/dist/cli/cmds/build.d.ts +11 -3
  29. package/dist/cli/cmds/build.js +21 -13
  30. package/dist/cli/cmds/build.js.map +1 -1
  31. package/dist/cli/cmds/dev.d.ts +1 -1
  32. package/dist/cli/cmds/dev.js +5 -0
  33. package/dist/cli/cmds/dev.js.map +1 -1
  34. package/dist/cli/cmds/preview.d.ts +16 -0
  35. package/dist/cli/cmds/preview.js +25 -0
  36. package/dist/cli/cmds/preview.js.map +1 -0
  37. package/dist/cli/common/logger.js +9 -0
  38. package/dist/cli/common/logger.js.map +1 -1
  39. package/dist/cli/common/outdated.js +2 -1
  40. package/dist/cli/common/outdated.js.map +1 -1
  41. package/dist/cli/common/output.js.map +1 -1
  42. package/dist/cli/common/utils/ports.d.ts +1 -1
  43. package/dist/cli/common/utils/ports.js +16 -15
  44. package/dist/cli/common/utils/ports.js.map +1 -1
  45. package/dist/cli/dev/handler.d.ts +1 -0
  46. package/dist/cli/dev/handler.js +15 -12
  47. package/dist/cli/dev/handler.js.map +1 -1
  48. package/dist/cli/preview/handler.d.ts +3 -0
  49. package/dist/cli/preview/handler.js +35 -0
  50. package/dist/cli/preview/handler.js.map +1 -0
  51. package/dist/config/common.d.ts +10 -0
  52. package/dist/config/common.js +2 -0
  53. package/dist/config/common.js.map +1 -0
  54. package/dist/config/config.d.ts +20 -16
  55. package/dist/config/loader.d.ts +21 -0
  56. package/dist/config/loader.js +149 -0
  57. package/dist/config/loader.js.map +1 -0
  58. package/dist/config/validators/BuildSchema.d.ts +59 -0
  59. package/dist/config/validators/BuildSchema.js +31 -0
  60. package/dist/config/validators/BuildSchema.js.map +1 -0
  61. package/dist/config/validators/InputSidebarSchema.d.ts +46 -30
  62. package/dist/config/validators/InputSidebarSchema.js +11 -1
  63. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  64. package/dist/config/validators/common.d.ts +7670 -0
  65. package/dist/config/validators/common.js +402 -0
  66. package/dist/config/validators/common.js.map +1 -0
  67. package/dist/config/validators/icon-types.d.ts +1 -0
  68. package/dist/config/validators/icon-types.js +2 -0
  69. package/dist/config/validators/icon-types.js.map +1 -0
  70. package/dist/config/validators/validate.d.ts +1885 -642
  71. package/dist/config/validators/validate.js +9 -228
  72. package/dist/config/validators/validate.js.map +1 -1
  73. package/dist/index.d.ts +2 -1
  74. package/dist/index.js +1 -0
  75. package/dist/index.js.map +1 -1
  76. package/dist/lib/MissingIcon.d.ts +2 -0
  77. package/dist/lib/MissingIcon.js +7 -0
  78. package/dist/lib/MissingIcon.js.map +1 -0
  79. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  80. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  81. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  82. package/dist/lib/authentication/authentication.d.ts +2 -1
  83. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  84. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  85. package/dist/lib/authentication/components/SignIn.js +1 -1
  86. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  87. package/dist/lib/authentication/components/SignOut.js +2 -2
  88. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  89. package/dist/lib/authentication/hook.d.ts +6 -4
  90. package/dist/lib/authentication/hook.js +12 -4
  91. package/dist/lib/authentication/hook.js.map +1 -1
  92. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  93. package/dist/lib/authentication/providers/auth0.js +4 -3
  94. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  95. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  96. package/dist/lib/authentication/providers/clerk.js +54 -12
  97. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  98. package/dist/lib/authentication/providers/openid.d.ts +12 -4
  99. package/dist/lib/authentication/providers/openid.js +54 -44
  100. package/dist/lib/authentication/providers/openid.js.map +1 -1
  101. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  102. package/dist/lib/authentication/providers/supabase.js +117 -0
  103. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  104. package/dist/lib/authentication/state.d.ts +23 -19
  105. package/dist/lib/authentication/state.js +35 -10
  106. package/dist/lib/authentication/state.js.map +1 -1
  107. package/dist/lib/components/AnchorLink.d.ts +2 -2
  108. package/dist/lib/components/AnchorLink.js +9 -5
  109. package/dist/lib/components/AnchorLink.js.map +1 -1
  110. package/dist/lib/components/Autocomplete.d.ts +13 -0
  111. package/dist/lib/components/Autocomplete.js +47 -0
  112. package/dist/lib/components/Autocomplete.js.map +1 -0
  113. package/dist/lib/components/Banner.js +1 -1
  114. package/dist/lib/components/Banner.js.map +1 -1
  115. package/dist/lib/components/Bootstrap.d.ts +3 -3
  116. package/dist/lib/components/Bootstrap.js +12 -13
  117. package/dist/lib/components/Bootstrap.js.map +1 -1
  118. package/dist/lib/components/Footer.d.ts +1 -0
  119. package/dist/lib/components/Footer.js +32 -0
  120. package/dist/lib/components/Footer.js.map +1 -0
  121. package/dist/lib/components/Header.js +18 -10
  122. package/dist/lib/components/Header.js.map +1 -1
  123. package/dist/lib/components/Heading.d.ts +4 -4
  124. package/dist/lib/components/Heading.js +1 -1
  125. package/dist/lib/components/Heading.js.map +1 -1
  126. package/dist/lib/components/InlineCode.d.ts +2 -1
  127. package/dist/lib/components/InlineCode.js +2 -9
  128. package/dist/lib/components/InlineCode.js.map +1 -1
  129. package/dist/lib/components/Layout.js +9 -20
  130. package/dist/lib/components/Layout.js.map +1 -1
  131. package/dist/lib/components/Main.d.ts +2 -0
  132. package/dist/lib/components/Main.js +17 -0
  133. package/dist/lib/components/Main.js.map +1 -0
  134. package/dist/lib/components/Markdown.d.ts +2 -2
  135. package/dist/lib/components/Markdown.js +4 -2
  136. package/dist/lib/components/Markdown.js.map +1 -1
  137. package/dist/lib/components/MobileTopNavigation.js +9 -8
  138. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  139. package/dist/lib/components/NotFoundPage.js +1 -1
  140. package/dist/lib/components/NotFoundPage.js.map +1 -1
  141. package/dist/lib/components/Pagination.d.ts +11 -0
  142. package/dist/lib/components/Pagination.js +10 -0
  143. package/dist/lib/components/Pagination.js.map +1 -0
  144. package/dist/lib/components/PathRenderer.d.ts +11 -0
  145. package/dist/lib/components/PathRenderer.js +28 -0
  146. package/dist/lib/components/PathRenderer.js.map +1 -0
  147. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  148. package/dist/lib/components/ReactMarkdown.js +182 -0
  149. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  150. package/dist/lib/components/Search.d.ts +3 -1
  151. package/dist/lib/components/Search.js +9 -3
  152. package/dist/lib/components/Search.js.map +1 -1
  153. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  154. package/dist/lib/components/StatusPage.d.ts +7 -0
  155. package/dist/lib/components/StatusPage.js +71 -0
  156. package/dist/lib/components/StatusPage.js.map +1 -0
  157. package/dist/lib/components/ThemeSwitch.js +10 -5
  158. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  159. package/dist/lib/components/TopNavigation.d.ts +4 -1
  160. package/dist/lib/components/TopNavigation.js +37 -17
  161. package/dist/lib/components/TopNavigation.js.map +1 -1
  162. package/dist/lib/components/Zudoku.d.ts +1 -1
  163. package/dist/lib/components/Zudoku.js +15 -8
  164. package/dist/lib/components/Zudoku.js.map +1 -1
  165. package/dist/lib/components/cache.d.ts +13 -0
  166. package/dist/lib/components/cache.js +20 -0
  167. package/dist/lib/components/cache.js.map +1 -0
  168. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  169. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  170. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  171. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  172. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  173. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  174. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  175. package/dist/lib/components/context/ViewportAnchorContext.js +21 -14
  176. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  177. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  178. package/dist/lib/components/context/ZudokuContext.js +22 -9
  179. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  180. package/dist/lib/components/index.d.ts +38 -8
  181. package/dist/lib/components/index.js +17 -4
  182. package/dist/lib/components/index.js.map +1 -1
  183. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  184. package/dist/lib/components/navigation/PoweredByZudoku.js +6 -0
  185. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  186. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  187. package/dist/lib/components/navigation/Sidebar.js +3 -7
  188. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  189. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  190. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  191. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  192. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  193. package/dist/lib/components/navigation/SidebarCategory.js +26 -21
  194. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  195. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  196. package/dist/lib/components/navigation/SidebarItem.js +19 -17
  197. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  198. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  199. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  200. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  201. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
  202. package/dist/lib/components/navigation/Toc.js.map +1 -0
  203. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  204. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  205. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  206. package/dist/lib/components/navigation/utils.js +1 -1
  207. package/dist/lib/components/navigation/utils.js.map +1 -1
  208. package/dist/lib/core/RouteGuard.d.ts +2 -0
  209. package/dist/lib/core/RouteGuard.js +52 -0
  210. package/dist/lib/core/RouteGuard.js.map +1 -0
  211. package/dist/lib/core/ZudokuContext.d.ts +36 -8
  212. package/dist/lib/core/ZudokuContext.js +37 -12
  213. package/dist/lib/core/ZudokuContext.js.map +1 -1
  214. package/dist/lib/core/plugins.d.ts +21 -7
  215. package/dist/lib/core/plugins.js +3 -0
  216. package/dist/lib/core/plugins.js.map +1 -1
  217. package/dist/lib/errors/ErrorAlert.js +6 -1
  218. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  219. package/dist/lib/errors/RouterError.js +1 -1
  220. package/dist/lib/errors/RouterError.js.map +1 -1
  221. package/dist/lib/hooks/index.d.ts +3 -0
  222. package/dist/lib/hooks/index.js +5 -0
  223. package/dist/lib/hooks/index.js.map +1 -0
  224. package/dist/lib/hooks/useEvent.d.ts +11 -0
  225. package/dist/lib/hooks/useEvent.js +19 -0
  226. package/dist/lib/hooks/useEvent.js.map +1 -0
  227. package/dist/lib/hooks/useEvent.test.js +100 -0
  228. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  229. package/dist/lib/icons.d.ts +1 -0
  230. package/dist/lib/icons.js +1 -0
  231. package/dist/lib/icons.js.map +1 -1
  232. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  233. package/dist/lib/oas/graphql/circular.js +38 -0
  234. package/dist/lib/oas/graphql/circular.js.map +1 -0
  235. package/dist/lib/oas/graphql/index.d.ts +25 -1
  236. package/dist/lib/oas/graphql/index.js +213 -66
  237. package/dist/lib/oas/graphql/index.js.map +1 -1
  238. package/dist/lib/oas/parser/dereference/index.js +8 -3
  239. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  240. package/dist/lib/oas/parser/index.d.ts +5 -3
  241. package/dist/lib/oas/parser/index.js +0 -22
  242. package/dist/lib/oas/parser/index.js.map +1 -1
  243. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  244. package/dist/lib/oas/parser/upgrade/index.js +21 -23
  245. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  246. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  247. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  248. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  249. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  250. package/dist/lib/plugins/api-catalog/index.js +46 -0
  251. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  252. package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
  253. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  254. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  255. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  256. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  257. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  258. package/dist/lib/plugins/api-keys/index.d.ts +1 -0
  259. package/dist/lib/plugins/api-keys/index.js +4 -0
  260. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  261. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  262. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  263. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  264. package/dist/lib/plugins/markdown/index.d.ts +3 -1
  265. package/dist/lib/plugins/markdown/index.js +1 -1
  266. package/dist/lib/plugins/markdown/index.js.map +1 -1
  267. package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
  268. package/dist/lib/plugins/markdown/resolver.js +0 -29
  269. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  270. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  271. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  272. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  273. package/dist/lib/plugins/openapi/ColorizedParam.js +19 -8
  274. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  275. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  276. package/dist/lib/plugins/openapi/Endpoint.js +8 -7
  277. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  278. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  279. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  280. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  281. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -2
  282. package/dist/lib/plugins/openapi/OperationList.js +90 -11
  283. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  284. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  285. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  286. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  287. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  288. package/dist/lib/plugins/openapi/ParamInfos.js +42 -0
  289. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  290. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  291. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  292. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  293. package/dist/lib/plugins/openapi/ParameterListItem.js +9 -3
  294. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  295. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  296. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  297. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  298. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  299. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -13
  300. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  301. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -13
  302. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  303. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  304. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  305. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  306. package/dist/lib/plugins/openapi/Sidecar.js +54 -37
  307. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  308. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  309. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  310. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  311. package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
  312. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  313. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  314. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  315. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +2 -2
  316. package/dist/lib/plugins/openapi/client/GraphQLClient.js +23 -82
  317. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  318. package/dist/lib/plugins/openapi/client/createServer.d.ts +2 -1
  319. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  320. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  321. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +6 -2
  322. package/dist/lib/plugins/openapi/client/useCreateQuery.js +6 -5
  323. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  324. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  325. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  326. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  327. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  328. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  329. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  330. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  331. package/dist/lib/plugins/openapi/graphql/gql.d.ts +11 -3
  332. package/dist/lib/plugins/openapi/graphql/gql.js +5 -14
  333. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  334. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +113 -21
  335. package/dist/lib/plugins/openapi/graphql/graphql.js +55 -11
  336. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  337. package/dist/lib/plugins/openapi/index.d.ts +10 -6
  338. package/dist/lib/plugins/openapi/index.js +63 -82
  339. package/dist/lib/plugins/openapi/index.js.map +1 -1
  340. package/dist/lib/plugins/openapi/interfaces.d.ts +56 -3
  341. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  342. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  343. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  344. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  345. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  346. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  347. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  348. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  349. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  350. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  351. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  352. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  353. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  354. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  355. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  356. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  357. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  358. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  359. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  360. package/dist/lib/plugins/openapi/playground/Playground.js +131 -69
  361. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  362. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  363. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  364. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  365. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  366. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  367. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  368. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  369. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  370. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  371. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  372. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  373. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  374. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  375. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  376. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  377. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  378. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  379. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  380. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  381. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  382. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  383. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  384. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  385. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  386. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  387. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  388. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  389. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  390. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +7 -0
  391. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  392. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  393. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  394. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +174 -0
  395. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  396. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +10 -0
  397. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  398. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  399. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  400. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +131 -0
  401. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  402. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +11 -0
  403. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  404. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  405. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  406. package/dist/lib/plugins/openapi/processors/removePaths.test.js +104 -0
  407. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  408. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  409. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  410. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  411. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  412. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  413. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  414. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  415. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  416. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  417. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  418. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  419. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  420. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  421. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
  422. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  423. package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
  424. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +42 -0
  425. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  426. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
  427. package/dist/lib/plugins/openapi/schema/SchemaView.js +34 -49
  428. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  429. package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -0
  430. package/dist/lib/plugins/openapi/schema/utils.js +5 -1
  431. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  432. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  433. package/dist/lib/plugins/openapi/state.js +18 -0
  434. package/dist/lib/plugins/openapi/state.js.map +1 -0
  435. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  436. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  437. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  438. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +19 -11
  439. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  440. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  441. package/dist/lib/plugins/openapi/util/getRoutes.js +80 -0
  442. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  443. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  444. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  445. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  446. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  447. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  448. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  449. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  450. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  451. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  452. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  453. package/dist/lib/plugins/redirect/index.js +1 -1
  454. package/dist/lib/plugins/redirect/index.js.map +1 -1
  455. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  456. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  457. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  458. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  459. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  460. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  461. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  462. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  463. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  464. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  465. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  466. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  467. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  468. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  469. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  470. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  471. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  472. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  473. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  474. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  475. package/dist/lib/ui/Badge.d.ts +1 -1
  476. package/dist/lib/ui/Badge.js +2 -1
  477. package/dist/lib/ui/Badge.js.map +1 -1
  478. package/dist/lib/ui/Button.d.ts +2 -2
  479. package/dist/lib/ui/Button.js +2 -1
  480. package/dist/lib/ui/Button.js.map +1 -1
  481. package/dist/lib/ui/Callout.d.ts +2 -1
  482. package/dist/lib/ui/Callout.js +3 -2
  483. package/dist/lib/ui/Callout.js.map +1 -1
  484. package/dist/lib/ui/Card.js +1 -1
  485. package/dist/lib/ui/Card.js.map +1 -1
  486. package/dist/lib/ui/Checkbox.js +1 -1
  487. package/dist/lib/ui/Checkbox.js.map +1 -1
  488. package/dist/lib/ui/Command.d.ts +17 -3
  489. package/dist/lib/ui/Command.js +7 -3
  490. package/dist/lib/ui/Command.js.map +1 -1
  491. package/dist/lib/ui/Input.d.ts +1 -2
  492. package/dist/lib/ui/Input.js.map +1 -1
  493. package/dist/lib/ui/Select.js +3 -3
  494. package/dist/lib/ui/Select.js.map +1 -1
  495. package/dist/lib/ui/Stepper.d.ts +3 -0
  496. package/dist/lib/ui/Stepper.js +7 -0
  497. package/dist/lib/ui/Stepper.js.map +1 -0
  498. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
  499. package/dist/lib/ui/SyntaxHighlight.js +62 -0
  500. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  501. package/dist/lib/ui/util.d.ts +2 -0
  502. package/dist/lib/ui/util.js +3 -0
  503. package/dist/lib/ui/util.js.map +1 -0
  504. package/dist/lib/util/MdxComponents.d.ts +23 -20
  505. package/dist/lib/util/MdxComponents.js +10 -7
  506. package/dist/lib/util/MdxComponents.js.map +1 -1
  507. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  508. package/dist/lib/util/detectOS.d.ts +1 -0
  509. package/dist/lib/util/detectOS.js +11 -0
  510. package/dist/lib/util/detectOS.js.map +1 -0
  511. package/dist/lib/util/joinPath.d.ts +3 -0
  512. package/dist/lib/util/joinPath.js +3 -0
  513. package/dist/lib/util/joinPath.js.map +1 -1
  514. package/dist/lib/util/joinUrl.d.ts +1 -0
  515. package/dist/lib/util/joinUrl.js +40 -0
  516. package/dist/lib/util/joinUrl.js.map +1 -0
  517. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  518. package/dist/lib/util/joinUrl.test.js +43 -0
  519. package/dist/lib/util/joinUrl.test.js.map +1 -0
  520. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  521. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  522. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  523. package/dist/lib/util/traverse.d.ts +3 -0
  524. package/dist/lib/util/traverse.js +22 -0
  525. package/dist/lib/util/traverse.js.map +1 -0
  526. package/dist/lib/util/types.d.ts +7 -0
  527. package/dist/lib/util/types.js +2 -0
  528. package/dist/lib/util/types.js.map +1 -0
  529. package/dist/lib/util/useExposedProps.js +1 -1
  530. package/dist/lib/util/useExposedProps.js.map +1 -1
  531. package/dist/lib/util/useLatest.d.ts +1 -0
  532. package/dist/lib/util/useLatest.js +15 -0
  533. package/dist/lib/util/useLatest.js.map +1 -0
  534. package/dist/lib/util/useOnScreen.d.ts +3 -2
  535. package/dist/lib/util/useOnScreen.js +3 -3
  536. package/dist/lib/util/useOnScreen.js.map +1 -1
  537. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  538. package/dist/lib/util/useScrollToAnchor.js +42 -37
  539. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  540. package/dist/lib/util/useScrollToTop.js +7 -5
  541. package/dist/lib/util/useScrollToTop.js.map +1 -1
  542. package/dist/vite/api/schema-codegen.d.ts +12 -0
  543. package/dist/vite/api/schema-codegen.js +85 -0
  544. package/dist/vite/api/schema-codegen.js.map +1 -0
  545. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  546. package/dist/vite/api/schema-codegen.test.js +313 -0
  547. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  548. package/dist/vite/build.js +41 -16
  549. package/dist/vite/build.js.map +1 -1
  550. package/dist/vite/config.d.ts +7 -8
  551. package/dist/vite/config.js +109 -64
  552. package/dist/vite/config.js.map +1 -1
  553. package/dist/vite/config.test.js +11 -5
  554. package/dist/vite/config.test.js.map +1 -1
  555. package/dist/vite/create-pagefind-index.d.ts +4 -0
  556. package/dist/vite/create-pagefind-index.js +12 -0
  557. package/dist/vite/create-pagefind-index.js.map +1 -0
  558. package/dist/vite/css/collect.d.ts +2 -0
  559. package/dist/vite/css/collect.js +27 -0
  560. package/dist/vite/css/collect.js.map +1 -0
  561. package/dist/vite/css/plugin.d.ts +5 -0
  562. package/dist/vite/css/plugin.js +79 -0
  563. package/dist/vite/css/plugin.js.map +1 -0
  564. package/dist/vite/dev-server.d.ts +5 -2
  565. package/dist/vite/dev-server.js +65 -15
  566. package/dist/vite/dev-server.js.map +1 -1
  567. package/dist/vite/error-handler.d.ts +1 -1
  568. package/dist/vite/error-handler.js +1 -1
  569. package/dist/vite/error-handler.js.map +1 -1
  570. package/dist/vite/output.d.ts +15 -3
  571. package/dist/vite/output.js +41 -14
  572. package/dist/vite/output.js.map +1 -1
  573. package/dist/vite/plugin-api-keys.d.ts +2 -2
  574. package/dist/vite/plugin-api-keys.js +5 -5
  575. package/dist/vite/plugin-api-keys.js.map +1 -1
  576. package/dist/vite/plugin-api.d.ts +2 -2
  577. package/dist/vite/plugin-api.js +223 -32
  578. package/dist/vite/plugin-api.js.map +1 -1
  579. package/dist/vite/plugin-auth.d.ts +2 -2
  580. package/dist/vite/plugin-auth.js +7 -4
  581. package/dist/vite/plugin-auth.js.map +1 -1
  582. package/dist/vite/plugin-component.d.ts +2 -2
  583. package/dist/vite/plugin-component.js +20 -20
  584. package/dist/vite/plugin-component.js.map +1 -1
  585. package/dist/vite/plugin-config-reload.d.ts +4 -4
  586. package/dist/vite/plugin-config-reload.js +13 -6
  587. package/dist/vite/plugin-config-reload.js.map +1 -1
  588. package/dist/vite/plugin-config.d.ts +2 -2
  589. package/dist/vite/plugin-config.js +25 -1
  590. package/dist/vite/plugin-config.js.map +1 -1
  591. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  592. package/dist/vite/plugin-custom-pages.js +3 -3
  593. package/dist/vite/plugin-custom-pages.js.map +1 -1
  594. package/dist/vite/plugin-docs.d.ts +3 -3
  595. package/dist/vite/plugin-docs.js +23 -6
  596. package/dist/vite/plugin-docs.js.map +1 -1
  597. package/dist/vite/plugin-docs.test.js +15 -23
  598. package/dist/vite/plugin-docs.test.js.map +1 -1
  599. package/dist/vite/plugin-frontmatter.d.ts +2 -2
  600. package/dist/vite/plugin-frontmatter.js +5 -4
  601. package/dist/vite/plugin-frontmatter.js.map +1 -1
  602. package/dist/vite/plugin-mdx.d.ts +2 -2
  603. package/dist/vite/plugin-mdx.js +86 -14
  604. package/dist/vite/plugin-mdx.js.map +1 -1
  605. package/dist/vite/plugin-redirect.d.ts +2 -2
  606. package/dist/vite/plugin-redirect.js +3 -3
  607. package/dist/vite/plugin-redirect.js.map +1 -1
  608. package/dist/vite/plugin-search.d.ts +2 -2
  609. package/dist/vite/plugin-search.js +5 -1
  610. package/dist/vite/plugin-search.js.map +1 -1
  611. package/dist/vite/plugin-sidebar.d.ts +2 -2
  612. package/dist/vite/plugin-sidebar.js +13 -4
  613. package/dist/vite/plugin-sidebar.js.map +1 -1
  614. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
  615. package/dist/vite/plugin-theme-css.js +117 -0
  616. package/dist/vite/plugin-theme-css.js.map +1 -0
  617. package/dist/vite/plugin.d.ts +2 -3
  618. package/dist/vite/plugin.js +6 -2
  619. package/dist/vite/plugin.js.map +1 -1
  620. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  621. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  622. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  623. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  624. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  625. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  626. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  627. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  628. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  629. package/dist/vite/prerender/prerender.d.ts +15 -0
  630. package/dist/vite/prerender/prerender.js +109 -0
  631. package/dist/vite/prerender/prerender.js.map +1 -0
  632. package/dist/vite/prerender/worker.d.ts +13 -0
  633. package/dist/vite/prerender/worker.js +59 -0
  634. package/dist/vite/prerender/worker.js.map +1 -0
  635. package/dist/vite/remarkStaticGeneration.js +5 -5
  636. package/dist/vite/remarkStaticGeneration.js.map +1 -1
  637. package/dist/vite/reporter.d.ts +3 -0
  638. package/dist/vite/reporter.js +33 -0
  639. package/dist/vite/reporter.js.map +1 -0
  640. package/dist/vite/sitemap.d.ts +1 -1
  641. package/dist/vite/sitemap.js +2 -1
  642. package/dist/vite/sitemap.js.map +1 -1
  643. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  644. package/dist/zuplo/enrich-with-zuplo.js +184 -0
  645. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  646. package/dist/zuplo/env.d.ts +7 -0
  647. package/dist/zuplo/env.js +12 -0
  648. package/dist/zuplo/env.js.map +1 -0
  649. package/dist/zuplo/policy-types.d.ts +33 -0
  650. package/dist/zuplo/policy-types.js +8 -0
  651. package/dist/zuplo/policy-types.js.map +1 -0
  652. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  653. package/dist/zuplo/with-zuplo-processors.js +26 -0
  654. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  655. package/dist/zuplo/with-zuplo.d.ts +3 -0
  656. package/dist/zuplo/with-zuplo.js +13 -0
  657. package/dist/zuplo/with-zuplo.js.map +1 -0
  658. package/lib/AuthenticationPlugin-foqdvvkf.js +58 -0
  659. package/lib/AuthenticationPlugin-foqdvvkf.js.map +1 -0
  660. package/lib/Button-Fp19CMUr.js +49 -0
  661. package/lib/Button-Fp19CMUr.js.map +1 -0
  662. package/lib/Callout-Boqdgl-z.js +230 -0
  663. package/lib/Callout-Boqdgl-z.js.map +1 -0
  664. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-DpB47wvk.js} +3 -3
  665. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
  666. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  667. package/lib/Dialog-sbgekbjb.js +98 -0
  668. package/lib/{Dialog-k70Qfukb.js.map → Dialog-sbgekbjb.js.map} +1 -1
  669. package/lib/Drawer-kDAfOq_2.js +1133 -0
  670. package/lib/Drawer-kDAfOq_2.js.map +1 -0
  671. package/lib/{Markdown-BorQdbxW.js → Markdown-CKXePgqR.js} +15142 -13372
  672. package/lib/Markdown-CKXePgqR.js.map +1 -0
  673. package/lib/MdxPage-DzpRK-fu.js +85 -0
  674. package/lib/MdxPage-DzpRK-fu.js.map +1 -0
  675. package/lib/OasProvider-Dw2mP5VZ.js +34 -0
  676. package/lib/OasProvider-Dw2mP5VZ.js.map +1 -0
  677. package/lib/OperationList-Cr_NA4e2.js +5069 -0
  678. package/lib/OperationList-Cr_NA4e2.js.map +1 -0
  679. package/lib/Pagination-DT6eKg_U.js +48 -0
  680. package/lib/Pagination-DT6eKg_U.js.map +1 -0
  681. package/lib/RouteGuard-CqZPoZYJ.js +744 -0
  682. package/lib/RouteGuard-CqZPoZYJ.js.map +1 -0
  683. package/lib/SchemaList-DNvUJgwI.js +148 -0
  684. package/lib/SchemaList-DNvUJgwI.js.map +1 -0
  685. package/lib/SchemaView-Cxh_msLc.js +357 -0
  686. package/lib/SchemaView-Cxh_msLc.js.map +1 -0
  687. package/lib/{Select-DP74t8Yy.js → Select-DVFRKf1R.js} +53 -53
  688. package/lib/{Select-DP74t8Yy.js.map → Select-DVFRKf1R.js.map} +1 -1
  689. package/lib/SlotletProvider-BV1xrg-l.js +338 -0
  690. package/lib/SlotletProvider-BV1xrg-l.js.map +1 -0
  691. package/lib/{Spinner-3cQDBVGr.js → Spinner-CE68iCm0.js} +2 -2
  692. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-CE68iCm0.js.map} +1 -1
  693. package/lib/{SyntaxHighlight-CBmwwKoM.js → SyntaxHighlight-BEoSoPEo.js} +552 -645
  694. package/lib/SyntaxHighlight-BEoSoPEo.js.map +1 -0
  695. package/lib/Toc-D40bDl5J.js +92 -0
  696. package/lib/Toc-D40bDl5J.js.map +1 -0
  697. package/lib/chunk-HA7DTUK3-C4gP41vD.js +1821 -0
  698. package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +1 -0
  699. package/lib/circular-ByJI6Mci.js +15877 -0
  700. package/lib/circular-ByJI6Mci.js.map +1 -0
  701. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  702. package/lib/cn-qaFjX9_3.js.map +1 -0
  703. package/lib/{context-D1nXWxm7.js → context-DLCwaMXN.js} +2 -2
  704. package/lib/context-DLCwaMXN.js.map +1 -0
  705. package/lib/createServer-Cq73y9Kv.js +12454 -0
  706. package/lib/createServer-Cq73y9Kv.js.map +1 -0
  707. package/lib/hook-CqpVYDqN.js +1483 -0
  708. package/lib/hook-CqpVYDqN.js.map +1 -0
  709. package/lib/index-CN3TIw7H.js +2009 -0
  710. package/lib/index-CN3TIw7H.js.map +1 -0
  711. package/lib/index-CPNSgwSb.js +36 -0
  712. package/lib/index-CPNSgwSb.js.map +1 -0
  713. package/lib/{index-CkwDvuPt.js → index-Dl3Yl0yb.js} +303 -286
  714. package/lib/index-Dl3Yl0yb.js.map +1 -0
  715. package/lib/index-DwT-v3zK.js +86 -0
  716. package/lib/index-DwT-v3zK.js.map +1 -0
  717. package/lib/index-LNp6rxyU.js.map +1 -1
  718. package/lib/index-dQecW8K5.js +2227 -0
  719. package/lib/index-dQecW8K5.js.map +1 -0
  720. package/lib/index-gQD2h1wX.js +447 -0
  721. package/lib/index-gQD2h1wX.js.map +1 -0
  722. package/lib/index.esm--gIChbWs.js +1207 -0
  723. package/lib/index.esm--gIChbWs.js.map +1 -0
  724. package/lib/invariant-Caa8-XvF.js.map +1 -1
  725. package/lib/jsx-runtime-CYK1ROHF.js +446 -0
  726. package/lib/jsx-runtime-CYK1ROHF.js.map +1 -0
  727. package/lib/{hook-Diu0rqp-.js → mutation-8LjrN7uz.js} +40 -61
  728. package/lib/mutation-8LjrN7uz.js.map +1 -0
  729. package/lib/objectEntries-yMIkr2mI.js +5 -0
  730. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  731. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  732. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  733. package/lib/prism-csharp.min-bQAo2pmx.js +63 -0
  734. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
  735. package/lib/prism-java.min-BpvsOuIa.js +35 -0
  736. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
  737. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
  738. package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
  739. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  740. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  741. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  742. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  743. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  744. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
  745. package/lib/prism-ruby.min-Dx9KO9ds.js +38 -0
  746. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
  747. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  748. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  749. package/lib/processors/removeExtensions.js +11 -0
  750. package/lib/processors/removeExtensions.js.map +1 -0
  751. package/lib/processors/removeParameters.js +48 -0
  752. package/lib/processors/removeParameters.js.map +1 -0
  753. package/lib/processors/removePaths.js +28 -0
  754. package/lib/processors/removePaths.js.map +1 -0
  755. package/lib/processors/traverse.js +15 -0
  756. package/lib/processors/traverse.js.map +1 -0
  757. package/lib/ui/Accordion.js +2 -2
  758. package/lib/ui/Accordion.js.map +1 -1
  759. package/lib/ui/ActionButton.js +4 -4
  760. package/lib/ui/ActionButton.js.map +1 -1
  761. package/lib/ui/Alert.js +3 -3
  762. package/lib/ui/Alert.js.map +1 -1
  763. package/lib/ui/AlertDialog.js +2 -2
  764. package/lib/ui/AlertDialog.js.map +1 -1
  765. package/lib/ui/Badge.js +5 -4
  766. package/lib/ui/Badge.js.map +1 -1
  767. package/lib/ui/Breadcrumb.js +5 -5
  768. package/lib/ui/Breadcrumb.js.map +1 -1
  769. package/lib/ui/Button.js +14 -13
  770. package/lib/ui/Button.js.map +1 -1
  771. package/lib/ui/Callout.js +40 -21
  772. package/lib/ui/Callout.js.map +1 -1
  773. package/lib/ui/Card.js +9 -9
  774. package/lib/ui/Card.js.map +1 -1
  775. package/lib/ui/Carousel.js +408 -402
  776. package/lib/ui/Carousel.js.map +1 -1
  777. package/lib/ui/Checkbox.js +14 -13
  778. package/lib/ui/Checkbox.js.map +1 -1
  779. package/lib/ui/Command.js +114 -508
  780. package/lib/ui/Command.js.map +1 -1
  781. package/lib/ui/Dialog.js +2 -2
  782. package/lib/ui/Dialog.js.map +1 -1
  783. package/lib/ui/Drawer.js +14 -1150
  784. package/lib/ui/Drawer.js.map +1 -1
  785. package/lib/ui/DropdownMenu.js +2 -2
  786. package/lib/ui/DropdownMenu.js.map +1 -1
  787. package/lib/ui/Form.js +6 -6
  788. package/lib/ui/Form.js.map +1 -1
  789. package/lib/ui/HoverCard.js +2 -2
  790. package/lib/ui/Input.js +2 -2
  791. package/lib/ui/Input.js.map +1 -1
  792. package/lib/ui/Label.js +3 -3
  793. package/lib/ui/Pagination.js +5 -5
  794. package/lib/ui/Pagination.js.map +1 -1
  795. package/lib/ui/Popover.js +2 -2
  796. package/lib/ui/Popover.js.map +1 -1
  797. package/lib/ui/Progress.js +2 -2
  798. package/lib/ui/Progress.js.map +1 -1
  799. package/lib/ui/RadioGroup.js +2 -2
  800. package/lib/ui/RadioGroup.js.map +1 -1
  801. package/lib/ui/ScrollArea.js +2 -2
  802. package/lib/ui/ScrollArea.js.map +1 -1
  803. package/lib/ui/Select.js +5 -5
  804. package/lib/ui/Select.js.map +1 -1
  805. package/lib/ui/Skeleton.js +2 -2
  806. package/lib/ui/Skeleton.js.map +1 -1
  807. package/lib/ui/Slider.js +2 -2
  808. package/lib/ui/Stepper.js +6 -0
  809. package/lib/ui/Stepper.js.map +1 -0
  810. package/lib/ui/Switch.js +2 -2
  811. package/lib/ui/Switch.js.map +1 -1
  812. package/lib/ui/SyntaxHighlight.js +11 -0
  813. package/lib/ui/SyntaxHighlight.js.map +1 -0
  814. package/lib/ui/Tabs.js +2 -2
  815. package/lib/ui/Textarea.js +2 -2
  816. package/lib/ui/Textarea.js.map +1 -1
  817. package/lib/ui/Toggle.js +3 -3
  818. package/lib/ui/Toggle.js.map +1 -1
  819. package/lib/ui/ToggleGroup.js +2 -2
  820. package/lib/ui/ToggleGroup.js.map +1 -1
  821. package/lib/ui/Tooltip.js +2 -2
  822. package/lib/ui/util.js +6 -0
  823. package/lib/ui/util.js.map +1 -0
  824. package/lib/useExposedProps-B9qXJedG.js +9 -0
  825. package/lib/useExposedProps-B9qXJedG.js.map +1 -0
  826. package/lib/useLatest-hmRS46UF.js +11 -0
  827. package/lib/useLatest-hmRS46UF.js.map +1 -0
  828. package/lib/zudoku.auth-auth0.js +25 -25
  829. package/lib/zudoku.auth-auth0.js.map +1 -1
  830. package/lib/zudoku.auth-clerk.js +101 -55
  831. package/lib/zudoku.auth-clerk.js.map +1 -1
  832. package/lib/zudoku.auth-openid.js +448 -484
  833. package/lib/zudoku.auth-openid.js.map +1 -1
  834. package/lib/zudoku.components.js +32 -1584
  835. package/lib/zudoku.components.js.map +1 -1
  836. package/lib/zudoku.hooks.js +19 -0
  837. package/lib/zudoku.hooks.js.map +1 -0
  838. package/lib/zudoku.icons.js +10 -0
  839. package/lib/zudoku.icons.js.map +1 -1
  840. package/lib/zudoku.plugin-api-catalog.js +117 -0
  841. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  842. package/lib/zudoku.plugin-api-keys.js +111 -108
  843. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  844. package/lib/zudoku.plugin-custom-pages.js +4 -4
  845. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  846. package/lib/zudoku.plugin-markdown.js +27 -47
  847. package/lib/zudoku.plugin-markdown.js.map +1 -1
  848. package/lib/zudoku.plugin-openapi.js +6 -6
  849. package/lib/zudoku.plugin-openapi.js.map +1 -1
  850. package/lib/zudoku.plugin-redirect.js +1 -1
  851. package/lib/zudoku.plugin-redirect.js.map +1 -1
  852. package/lib/zudoku.plugin-search-inkeep.js +53 -24
  853. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  854. package/lib/zudoku.plugin-search-pagefind.js +233 -0
  855. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  856. package/lib/zudoku.plugins.js +14 -0
  857. package/lib/zudoku.plugins.js.map +1 -0
  858. package/package.json +140 -95
  859. package/src/app/demo-cdn.html +31 -31
  860. package/src/app/demo.tsx +1 -2
  861. package/src/app/entry.client.tsx +24 -15
  862. package/src/app/entry.server.tsx +26 -15
  863. package/src/app/main.css +100 -39
  864. package/src/app/main.tsx +40 -11
  865. package/src/app/sentry.ts +24 -0
  866. package/src/app/standalone.tsx +1 -2
  867. package/src/app/tailwind.ts +83 -48
  868. package/src/lib/MissingIcon.tsx +22 -0
  869. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  870. package/src/lib/authentication/authentication.ts +3 -1
  871. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  872. package/src/lib/authentication/components/SignIn.tsx +1 -1
  873. package/src/lib/authentication/components/SignOut.tsx +3 -2
  874. package/src/lib/authentication/hook.ts +13 -4
  875. package/src/lib/authentication/providers/auth0.tsx +6 -7
  876. package/src/lib/authentication/providers/clerk.tsx +70 -15
  877. package/src/lib/authentication/providers/openid.tsx +72 -55
  878. package/src/lib/authentication/providers/supabase.tsx +157 -0
  879. package/src/lib/authentication/state.ts +51 -27
  880. package/src/lib/components/AnchorLink.tsx +13 -8
  881. package/src/lib/components/Autocomplete.tsx +113 -0
  882. package/src/lib/components/Banner.tsx +1 -0
  883. package/src/lib/components/Bootstrap.tsx +29 -29
  884. package/src/lib/components/Footer.tsx +139 -0
  885. package/src/lib/components/Header.tsx +65 -24
  886. package/src/lib/components/Heading.tsx +13 -13
  887. package/src/lib/components/InlineCode.tsx +13 -16
  888. package/src/lib/components/Layout.tsx +33 -54
  889. package/src/lib/components/Main.tsx +50 -0
  890. package/src/lib/components/Markdown.tsx +15 -16
  891. package/src/lib/components/MobileTopNavigation.tsx +36 -34
  892. package/src/lib/components/NotFoundPage.tsx +1 -1
  893. package/src/lib/components/Pagination.tsx +50 -0
  894. package/src/lib/components/PathRenderer.tsx +61 -0
  895. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  896. package/src/lib/components/ReactMarkdown.tsx +264 -0
  897. package/src/lib/components/Search.tsx +17 -6
  898. package/src/lib/components/SlotletProvider.tsx +1 -1
  899. package/src/lib/components/StatusPage.tsx +91 -0
  900. package/src/lib/components/ThemeSwitch.tsx +33 -11
  901. package/src/lib/components/TopNavigation.tsx +72 -37
  902. package/src/lib/components/Zudoku.tsx +20 -7
  903. package/src/lib/components/cache.ts +23 -0
  904. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  905. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  906. package/src/lib/components/context/ViewportAnchorContext.tsx +26 -21
  907. package/src/lib/components/context/ZudokuContext.ts +32 -10
  908. package/src/lib/components/index.ts +22 -5
  909. package/src/lib/components/navigation/PoweredByZudoku.tsx +23 -0
  910. package/src/lib/components/navigation/Sidebar.tsx +38 -29
  911. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  912. package/src/lib/components/navigation/SidebarCategory.tsx +59 -56
  913. package/src/lib/components/navigation/SidebarItem.tsx +30 -39
  914. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  915. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
  916. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  917. package/src/lib/components/navigation/utils.ts +1 -1
  918. package/src/lib/core/RouteGuard.tsx +96 -0
  919. package/src/lib/core/ZudokuContext.ts +73 -21
  920. package/src/lib/core/plugins.ts +33 -7
  921. package/src/lib/errors/ErrorAlert.tsx +24 -17
  922. package/src/lib/errors/RouterError.tsx +1 -1
  923. package/src/lib/hooks/index.ts +5 -0
  924. package/src/lib/hooks/useEvent.test.tsx +149 -0
  925. package/src/lib/hooks/useEvent.ts +41 -0
  926. package/src/lib/icons.ts +1 -0
  927. package/src/lib/oas/graphql/circular.ts +50 -0
  928. package/src/lib/oas/graphql/index.ts +295 -101
  929. package/src/lib/oas/parser/dereference/index.ts +10 -4
  930. package/src/lib/oas/parser/index.ts +7 -29
  931. package/src/lib/oas/parser/upgrade/index.ts +24 -31
  932. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  933. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  934. package/src/lib/plugins/api-keys/CreateApiKey.tsx +8 -4
  935. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  936. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  937. package/src/lib/plugins/api-keys/index.tsx +7 -1
  938. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  939. package/src/lib/plugins/markdown/MdxPage.tsx +43 -41
  940. package/src/lib/plugins/markdown/index.tsx +5 -2
  941. package/src/lib/plugins/markdown/resolver.ts +2 -37
  942. package/src/lib/plugins/openapi/CollapsibleCode.tsx +10 -7
  943. package/src/lib/plugins/openapi/ColorizedParam.tsx +30 -13
  944. package/src/lib/plugins/openapi/Endpoint.tsx +14 -12
  945. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  946. package/src/lib/plugins/openapi/OperationList.tsx +220 -42
  947. package/src/lib/plugins/openapi/OperationListItem.tsx +136 -88
  948. package/src/lib/plugins/openapi/ParamInfos.tsx +87 -0
  949. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  950. package/src/lib/plugins/openapi/ParameterListItem.tsx +35 -24
  951. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  952. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -38
  953. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -63
  954. package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
  955. package/src/lib/plugins/openapi/Sidecar.tsx +85 -65
  956. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  957. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  958. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  959. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +29 -104
  960. package/src/lib/plugins/openapi/client/createServer.ts +6 -2
  961. package/src/lib/plugins/openapi/client/useCreateQuery.ts +13 -5
  962. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  963. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  964. package/src/lib/plugins/openapi/context.tsx +2 -2
  965. package/src/lib/plugins/openapi/graphql/gql.ts +36 -11
  966. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -36
  967. package/src/lib/plugins/openapi/index.tsx +99 -98
  968. package/src/lib/plugins/openapi/interfaces.ts +57 -3
  969. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  970. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  971. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  972. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  973. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  974. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  975. package/src/lib/plugins/openapi/playground/Playground.tsx +384 -244
  976. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +6 -3
  977. package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -88
  978. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  979. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  980. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  981. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  982. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  983. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  984. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  985. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  986. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +202 -0
  987. package/src/lib/plugins/openapi/processors/removeExtensions.ts +27 -0
  988. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +148 -0
  989. package/src/lib/plugins/openapi/processors/removeParameters.ts +101 -0
  990. package/src/lib/plugins/openapi/processors/removePaths.test.ts +126 -0
  991. package/src/lib/plugins/openapi/processors/removePaths.ts +55 -0
  992. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  993. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  994. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  995. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  996. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
  997. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +148 -0
  998. package/src/lib/plugins/openapi/schema/SchemaView.tsx +88 -139
  999. package/src/lib/plugins/openapi/schema/utils.ts +11 -1
  1000. package/src/lib/plugins/openapi/state.ts +36 -0
  1001. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1002. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +26 -11
  1003. package/src/lib/plugins/openapi/util/getRoutes.tsx +126 -0
  1004. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1005. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1006. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1007. package/src/lib/plugins/redirect/index.tsx +2 -2
  1008. package/src/lib/plugins/search-inkeep/index.tsx +78 -23
  1009. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1010. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1011. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1012. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1013. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1014. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1015. package/src/lib/ui/Badge.tsx +2 -1
  1016. package/src/lib/ui/Button.tsx +4 -2
  1017. package/src/lib/ui/Callout.tsx +29 -10
  1018. package/src/lib/ui/Card.tsx +1 -1
  1019. package/src/lib/ui/Checkbox.tsx +2 -1
  1020. package/src/lib/ui/Command.tsx +45 -3
  1021. package/src/lib/ui/Input.tsx +1 -2
  1022. package/src/lib/ui/Select.tsx +2 -2
  1023. package/src/lib/ui/Stepper.tsx +8 -0
  1024. package/src/lib/ui/SyntaxHighlight.tsx +186 -0
  1025. package/src/lib/ui/util.tsx +3 -0
  1026. package/src/lib/util/MdxComponents.tsx +12 -11
  1027. package/src/lib/util/createVariantComponent.tsx +2 -2
  1028. package/src/lib/util/detectOS.ts +9 -0
  1029. package/src/lib/util/joinPath.tsx +3 -0
  1030. package/src/lib/util/joinUrl.test.ts +62 -0
  1031. package/src/lib/util/joinUrl.ts +57 -0
  1032. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1033. package/src/lib/util/traverse.ts +31 -0
  1034. package/src/lib/util/types.ts +7 -0
  1035. package/src/lib/util/useExposedProps.tsx +1 -1
  1036. package/src/lib/util/useLatest.ts +18 -0
  1037. package/src/lib/util/useOnScreen.ts +6 -4
  1038. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1039. package/src/lib/util/useScrollToTop.ts +9 -4
  1040. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1041. package/dist/lib/components/SyntaxHighlight.js +0 -57
  1042. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1043. package/dist/lib/components/context/PluginSystem.js +0 -2
  1044. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1045. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1046. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1047. package/dist/lib/plugins/openapi/Route.js +0 -6
  1048. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1049. package/dist/lib/plugins/openapi/client/worker.d.ts +0 -4
  1050. package/dist/lib/plugins/openapi/client/worker.js +0 -29
  1051. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1052. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1053. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1054. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1055. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1056. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1057. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1058. package/dist/lib/plugins/openapi-worker.js +0 -8
  1059. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1060. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1061. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1062. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1063. package/dist/vite/plugin-custom-css.js +0 -55
  1064. package/dist/vite/plugin-custom-css.js.map +0 -1
  1065. package/dist/vite/prerender.d.ts +0 -21
  1066. package/dist/vite/prerender.js +0 -89
  1067. package/dist/vite/prerender.js.map +0 -1
  1068. package/lib/AnchorLink-CDlhr8gL.js +0 -706
  1069. package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
  1070. package/lib/AuthenticationPlugin-DeGDVa1r.js +0 -56
  1071. package/lib/AuthenticationPlugin-DeGDVa1r.js.map +0 -1
  1072. package/lib/Button-jK0EsymC.js +0 -48
  1073. package/lib/Button-jK0EsymC.js.map +0 -1
  1074. package/lib/Dialog-k70Qfukb.js +0 -67
  1075. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1076. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1077. package/lib/Markdown-BorQdbxW.js.map +0 -1
  1078. package/lib/MdxPage-DFlbtJWi.js +0 -174
  1079. package/lib/MdxPage-DFlbtJWi.js.map +0 -1
  1080. package/lib/OperationList-KshJrrLL.js +0 -4691
  1081. package/lib/OperationList-KshJrrLL.js.map +0 -1
  1082. package/lib/Route-DlG_HTMu.js +0 -11
  1083. package/lib/Route-DlG_HTMu.js.map +0 -1
  1084. package/lib/SidebarBadge-DxFJcJ6V.js +0 -51
  1085. package/lib/SidebarBadge-DxFJcJ6V.js.map +0 -1
  1086. package/lib/SlotletProvider-D2v6rJy1.js +0 -252
  1087. package/lib/SlotletProvider-D2v6rJy1.js.map +0 -1
  1088. package/lib/SyntaxHighlight-CBmwwKoM.js.map +0 -1
  1089. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1090. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1091. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  1092. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  1093. package/lib/assets/worker-CPsGZsve.js +0 -18201
  1094. package/lib/assets/worker-CPsGZsve.js.map +0 -1
  1095. package/lib/cn-BmFQLtkS.js.map +0 -1
  1096. package/lib/context-D1nXWxm7.js.map +0 -1
  1097. package/lib/createServer-DK-g7kbB.js +0 -16089
  1098. package/lib/createServer-DK-g7kbB.js.map +0 -1
  1099. package/lib/hook-Diu0rqp-.js.map +0 -1
  1100. package/lib/index-BcesIHH4.js +0 -1273
  1101. package/lib/index-BcesIHH4.js.map +0 -1
  1102. package/lib/index-BuAyrJe3.js +0 -46
  1103. package/lib/index-BuAyrJe3.js.map +0 -1
  1104. package/lib/index-CkwDvuPt.js.map +0 -1
  1105. package/lib/index-Czzd9rjU.js +0 -899
  1106. package/lib/index-Czzd9rjU.js.map +0 -1
  1107. package/lib/index-Yn8c3UWE.js +0 -921
  1108. package/lib/index-Yn8c3UWE.js.map +0 -1
  1109. package/lib/index.esm-C5mr_sKO.js +0 -1193
  1110. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  1111. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1112. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1113. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1114. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1115. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1116. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1117. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1118. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1119. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1120. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1121. package/lib/router-lfyopgBI.js +0 -3024
  1122. package/lib/router-lfyopgBI.js.map +0 -1
  1123. package/lib/state-BsPrOUAh.js +0 -252
  1124. package/lib/state-BsPrOUAh.js.map +0 -1
  1125. package/lib/useExposedProps-CTPtylCV.js +0 -10
  1126. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  1127. package/lib/utils-DcpDOncX.js +0 -1218
  1128. package/lib/utils-DcpDOncX.js.map +0 -1
  1129. package/lib/zudoku.openapi-worker.js +0 -15
  1130. package/lib/zudoku.openapi-worker.js.map +0 -1
  1131. package/src/lib/components/SyntaxHighlight.tsx +0 -160
  1132. package/src/lib/components/context/PluginSystem.ts +0 -0
  1133. package/src/lib/plugins/openapi/Route.tsx +0 -19
  1134. package/src/lib/plugins/openapi/client/worker.ts +0 -44
  1135. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1136. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1137. package/src/lib/plugins/openapi-worker.ts +0 -11
  1138. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1139. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1140. /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), Y = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"), U = Symbol.for("yaml.scalar"), he = Symbol.for("yaml.seq"), j = Symbol.for("yaml.node.type"), x = (s) => !!s && typeof s == "object" && s[j] === dt, ee = (s) => !!s && typeof s == "object" && s[j] === lt, de = (s) => !!s && typeof s == "object" && s[j] === Y, I = (s) => !!s && typeof s == "object" && s[j] === qt, E = (s) => !!s && typeof s == "object" && s[j] === U, pe = (s) => !!s && typeof s == "object" && s[j] === he;
1
+ const dt = Symbol.for("yaml.alias"), lt = Symbol.for("yaml.document"), Y = Symbol.for("yaml.map"), qt = Symbol.for("yaml.pair"), R = Symbol.for("yaml.scalar"), he = Symbol.for("yaml.seq"), j = Symbol.for("yaml.node.type"), x = (s) => !!s && typeof s == "object" && s[j] === dt, ee = (s) => !!s && typeof s == "object" && s[j] === lt, de = (s) => !!s && typeof s == "object" && s[j] === Y, T = (s) => !!s && typeof s == "object" && s[j] === qt, E = (s) => !!s && typeof s == "object" && s[j] === R, pe = (s) => !!s && typeof s == "object" && s[j] === he;
2
2
  function L(s) {
3
3
  if (s && typeof s == "object")
4
4
  switch (s[j]) {
@@ -13,23 +13,23 @@ function $(s) {
13
13
  switch (s[j]) {
14
14
  case dt:
15
15
  case Y:
16
- case U:
16
+ case R:
17
17
  case he:
18
18
  return !0;
19
19
  }
20
20
  return !1;
21
21
  }
22
- const Bs = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Rt = Symbol("skip children"), R = Symbol("remove node");
22
+ const vs = (s) => (E(s) || L(s)) && !!s.anchor, M = Symbol("break visit"), Ft = Symbol("skip children"), F = Symbol("remove node");
23
23
  function G(s, e) {
24
- const t = Ut(e);
25
- ee(s) ? ie(null, s.contents, t, Object.freeze([s])) === R && (s.contents = null) : ie(null, s, t, Object.freeze([]));
24
+ const t = Rt(e);
25
+ ee(s) ? ie(null, s.contents, t, Object.freeze([s])) === F && (s.contents = null) : ie(null, s, t, Object.freeze([]));
26
26
  }
27
27
  G.BREAK = M;
28
- G.SKIP = Rt;
29
- G.REMOVE = R;
28
+ G.SKIP = Ft;
29
+ G.REMOVE = F;
30
30
  function ie(s, e, t, n) {
31
- const i = Ft(s, e, t, n);
32
- if ($(i) || I(i))
31
+ const i = Ut(s, e, t, n);
32
+ if ($(i) || T(i))
33
33
  return Vt(s, n, i), ie(s, i, t, n);
34
34
  if (typeof i != "symbol") {
35
35
  if (L(e)) {
@@ -41,33 +41,33 @@ function ie(s, e, t, n) {
41
41
  else {
42
42
  if (o === M)
43
43
  return M;
44
- o === R && (e.items.splice(r, 1), r -= 1);
44
+ o === F && (e.items.splice(r, 1), r -= 1);
45
45
  }
46
46
  }
47
- } else if (I(e)) {
47
+ } else if (T(e)) {
48
48
  n = Object.freeze(n.concat(e));
49
49
  const r = ie("key", e.key, t, n);
50
50
  if (r === M)
51
51
  return M;
52
- r === R && (e.key = null);
52
+ r === F && (e.key = null);
53
53
  const o = ie("value", e.value, t, n);
54
54
  if (o === M)
55
55
  return M;
56
- o === R && (e.value = null);
56
+ o === F && (e.value = null);
57
57
  }
58
58
  }
59
59
  return i;
60
60
  }
61
- async function Re(s, e) {
62
- const t = Ut(e);
63
- ee(s) ? await re(null, s.contents, t, Object.freeze([s])) === R && (s.contents = null) : await re(null, s, t, Object.freeze([]));
61
+ async function Fe(s, e) {
62
+ const t = Rt(e);
63
+ ee(s) ? await re(null, s.contents, t, Object.freeze([s])) === F && (s.contents = null) : await re(null, s, t, Object.freeze([]));
64
64
  }
65
- Re.BREAK = M;
66
- Re.SKIP = Rt;
67
- Re.REMOVE = R;
65
+ Fe.BREAK = M;
66
+ Fe.SKIP = Ft;
67
+ Fe.REMOVE = F;
68
68
  async function re(s, e, t, n) {
69
- const i = await Ft(s, e, t, n);
70
- if ($(i) || I(i))
69
+ const i = await Ut(s, e, t, n);
70
+ if ($(i) || T(i))
71
71
  return Vt(s, n, i), re(s, i, t, n);
72
72
  if (typeof i != "symbol") {
73
73
  if (L(e)) {
@@ -79,24 +79,24 @@ async function re(s, e, t, n) {
79
79
  else {
80
80
  if (o === M)
81
81
  return M;
82
- o === R && (e.items.splice(r, 1), r -= 1);
82
+ o === F && (e.items.splice(r, 1), r -= 1);
83
83
  }
84
84
  }
85
- } else if (I(e)) {
85
+ } else if (T(e)) {
86
86
  n = Object.freeze(n.concat(e));
87
87
  const r = await re("key", e.key, t, n);
88
88
  if (r === M)
89
89
  return M;
90
- r === R && (e.key = null);
90
+ r === F && (e.key = null);
91
91
  const o = await re("value", e.value, t, n);
92
92
  if (o === M)
93
93
  return M;
94
- o === R && (e.value = null);
94
+ o === F && (e.value = null);
95
95
  }
96
96
  }
97
97
  return i;
98
98
  }
99
- function Ut(s) {
99
+ function Rt(s) {
100
100
  return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
101
101
  Alias: s.Node,
102
102
  Map: s.Node,
@@ -111,7 +111,7 @@ function Ut(s) {
111
111
  Seq: s.Collection
112
112
  }, s) : s;
113
113
  }
114
- function Ft(s, e, t, n) {
114
+ function Ut(s, e, t, n) {
115
115
  var i, r, o, l, a;
116
116
  if (typeof t == "function")
117
117
  return t(s, e, n);
@@ -119,7 +119,7 @@ function Ft(s, e, t, n) {
119
119
  return (i = t.Map) == null ? void 0 : i.call(t, s, e, n);
120
120
  if (pe(e))
121
121
  return (r = t.Seq) == null ? void 0 : r.call(t, s, e, n);
122
- if (I(e))
122
+ if (T(e))
123
123
  return (o = t.Pair) == null ? void 0 : o.call(t, s, e, n);
124
124
  if (E(e))
125
125
  return (l = t.Scalar) == null ? void 0 : l.call(t, s, e, n);
@@ -130,7 +130,7 @@ function Vt(s, e, t) {
130
130
  const n = e[e.length - 1];
131
131
  if (L(n))
132
132
  n.items[s] = t;
133
- else if (I(n))
133
+ else if (T(n))
134
134
  s === "key" ? n.key = t : n.value = t;
135
135
  else if (ee(n))
136
136
  n.contents = t;
@@ -139,20 +139,20 @@ function Vt(s, e, t) {
139
139
  throw new Error(`Cannot replace node with ${i} parent`);
140
140
  }
141
141
  }
142
- const vs = {
142
+ const Bs = {
143
143
  "!": "%21",
144
144
  ",": "%2C",
145
145
  "[": "%5B",
146
146
  "]": "%5D",
147
147
  "{": "%7B",
148
148
  "}": "%7D"
149
- }, Ms = (s) => s.replace(/[!,[\]{}]/g, (e) => vs[e]);
150
- class v {
149
+ }, Ms = (s) => s.replace(/[!,[\]{}]/g, (e) => Bs[e]);
150
+ class B {
151
151
  constructor(e, t) {
152
- this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, v.defaultYaml, e), this.tags = Object.assign({}, v.defaultTags, t);
152
+ this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, B.defaultYaml, e), this.tags = Object.assign({}, B.defaultTags, t);
153
153
  }
154
154
  clone() {
155
- const e = new v(this.yaml, this.tags);
155
+ const e = new B(this.yaml, this.tags);
156
156
  return e.docStart = this.docStart, e;
157
157
  }
158
158
  /**
@@ -160,16 +160,16 @@ class v {
160
160
  * update the stream state according to the current version's spec.
161
161
  */
162
162
  atDocument() {
163
- const e = new v(this.yaml, this.tags);
163
+ const e = new B(this.yaml, this.tags);
164
164
  switch (this.yaml.version) {
165
165
  case "1.1":
166
166
  this.atNextDocument = !0;
167
167
  break;
168
168
  case "1.2":
169
169
  this.atNextDocument = !1, this.yaml = {
170
- explicit: v.defaultYaml.explicit,
170
+ explicit: B.defaultYaml.explicit,
171
171
  version: "1.2"
172
- }, this.tags = Object.assign({}, v.defaultTags);
172
+ }, this.tags = Object.assign({}, B.defaultTags);
173
173
  break;
174
174
  }
175
175
  return e;
@@ -179,7 +179,7 @@ class v {
179
179
  * @returns `true` on success
180
180
  */
181
181
  add(e, t) {
182
- this.atNextDocument && (this.yaml = { explicit: v.defaultYaml.explicit, version: "1.1" }, this.tags = Object.assign({}, v.defaultTags), this.atNextDocument = !1);
182
+ this.atNextDocument && (this.yaml = { explicit: B.defaultYaml.explicit, version: "1.1" }, this.tags = Object.assign({}, B.defaultTags), this.atNextDocument = !1);
183
183
  const n = e.trim().split(/[ \t]+/), i = n.shift();
184
184
  switch (i) {
185
185
  case "%TAG": {
@@ -255,8 +255,8 @@ class v {
255
255
  `);
256
256
  }
257
257
  }
258
- v.defaultYaml = { explicit: !1, version: "1.2" };
259
- v.defaultTags = { "!!": "tag:yaml.org,2002:" };
258
+ B.defaultYaml = { explicit: !1, version: "1.2" };
259
+ B.defaultTags = { "!!": "tag:yaml.org,2002:" };
260
260
  function Jt(s) {
261
261
  if (/[\x00-\x19\s,[\]{}]/.test(s)) {
262
262
  const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
@@ -335,7 +335,7 @@ function P(s, e, t) {
335
335
  if (Array.isArray(s))
336
336
  return s.map((n, i) => P(n, String(i), t));
337
337
  if (s && typeof s.toJSON == "function") {
338
- if (!t || !Bs(s))
338
+ if (!t || !vs(s))
339
339
  return s.toJSON(e, t);
340
340
  const n = { aliasCount: 0, count: 1, res: void 0 };
341
341
  t.anchors.set(s, n), t.onCreate = (r) => {
@@ -373,7 +373,7 @@ class pt {
373
373
  return typeof r == "function" ? oe(r, { "": l }, "", l) : l;
374
374
  }
375
375
  }
376
- class Ue extends pt {
376
+ class Re extends pt {
377
377
  constructor(e) {
378
378
  super(dt), this.source = e, Object.defineProperty(this, "tag", {
379
379
  set() {
@@ -408,7 +408,7 @@ class Ue extends pt {
408
408
  const a = "This should not happen: Alias anchor was not resolved?";
409
409
  throw new ReferenceError(a);
410
410
  }
411
- if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = Be(i, o, n)), l.count * l.aliasCount > r)) {
411
+ if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = ve(i, o, n)), l.count * l.aliasCount > r)) {
412
412
  const a = "Excessive alias count indicates a resource exhaustion attack";
413
413
  throw new ReferenceError(a);
414
414
  }
@@ -427,27 +427,27 @@ class Ue extends pt {
427
427
  return i;
428
428
  }
429
429
  }
430
- function Be(s, e, t) {
430
+ function ve(s, e, t) {
431
431
  if (x(e)) {
432
432
  const n = e.resolve(s), i = t && n && t.get(n);
433
433
  return i ? i.count * i.aliasCount : 0;
434
434
  } else if (L(e)) {
435
435
  let n = 0;
436
436
  for (const i of e.items) {
437
- const r = Be(s, i, t);
437
+ const r = ve(s, i, t);
438
438
  r > n && (n = r);
439
439
  }
440
440
  return n;
441
- } else if (I(e)) {
442
- const n = Be(s, e.key, t), i = Be(s, e.value, t);
441
+ } else if (T(e)) {
442
+ const n = ve(s, e.key, t), i = ve(s, e.value, t);
443
443
  return Math.max(n, i);
444
444
  }
445
445
  return 1;
446
446
  }
447
447
  const Qt = (s) => !s || typeof s != "function" && typeof s != "object";
448
- class O extends pt {
448
+ class A extends pt {
449
449
  constructor(e) {
450
- super(U), this.value = e;
450
+ super(R), this.value = e;
451
451
  }
452
452
  toJSON(e, t) {
453
453
  return t != null && t.keep ? this.value : P(this.value, e, t);
@@ -456,11 +456,11 @@ class O extends pt {
456
456
  return String(this.value);
457
457
  }
458
458
  }
459
- O.BLOCK_FOLDED = "BLOCK_FOLDED";
460
- O.BLOCK_LITERAL = "BLOCK_LITERAL";
461
- O.PLAIN = "PLAIN";
462
- O.QUOTE_DOUBLE = "QUOTE_DOUBLE";
463
- O.QUOTE_SINGLE = "QUOTE_SINGLE";
459
+ A.BLOCK_FOLDED = "BLOCK_FOLDED";
460
+ A.BLOCK_LITERAL = "BLOCK_LITERAL";
461
+ A.PLAIN = "PLAIN";
462
+ A.QUOTE_DOUBLE = "QUOTE_DOUBLE";
463
+ A.QUOTE_SINGLE = "QUOTE_SINGLE";
464
464
  const Ps = "tag:yaml.org,2002:";
465
465
  function js(s, e, t) {
466
466
  if (e) {
@@ -478,7 +478,7 @@ function ke(s, e, t) {
478
478
  var f, d, h;
479
479
  if (ee(s) && (s = s.contents), $(s))
480
480
  return s;
481
- if (I(s)) {
481
+ if (T(s)) {
482
482
  const y = (d = (f = t.schema[Y]).createNode) == null ? void 0 : d.call(f, t.schema, null, t);
483
483
  return y.items.push(s), y;
484
484
  }
@@ -487,20 +487,20 @@ function ke(s, e, t) {
487
487
  let a;
488
488
  if (n && s && typeof s == "object") {
489
489
  if (a = l.get(s), a)
490
- return a.anchor || (a.anchor = i(s)), new Ue(a.anchor);
490
+ return a.anchor || (a.anchor = i(s)), new Re(a.anchor);
491
491
  a = { anchor: null, node: null }, l.set(s, a);
492
492
  }
493
493
  e != null && e.startsWith("!!") && (e = Ps + e.slice(2));
494
494
  let c = js(s, e, o.tags);
495
495
  if (!c) {
496
496
  if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
497
- const y = new O(s);
497
+ const y = new A(s);
498
498
  return a && (a.node = y), y;
499
499
  }
500
500
  c = s instanceof Map ? o[Y] : Symbol.iterator in Object(s) ? o[he] : o[Y];
501
501
  }
502
502
  r && (r(c), delete t.onTagObj);
503
- const p = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((h = c == null ? void 0 : c.nodeClass) == null ? void 0 : h.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new O(s);
503
+ const p = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((h = c == null ? void 0 : c.nodeClass) == null ? void 0 : h.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new A(s);
504
504
  return e ? p.tag = e : c.default || (p.tag = c.tag), a && (a.node = p), p;
505
505
  }
506
506
  function Pe(s, e, t) {
@@ -540,7 +540,7 @@ class Wt extends pt {
540
540
  */
541
541
  clone(e) {
542
542
  const t = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
543
- return e && (t.schema = e), t.items = t.items.map((n) => $(n) || I(n) ? n.clone(e) : n), this.range && (t.range = this.range.slice()), t;
543
+ return e && (t.schema = e), t.items = t.items.map((n) => $(n) || T(n) ? n.clone(e) : n), this.range && (t.range = this.range.slice()), t;
544
544
  }
545
545
  /**
546
546
  * Adds a value to the collection. For `!!map` and `!!omap` the value must
@@ -584,7 +584,7 @@ class Wt extends pt {
584
584
  }
585
585
  hasAllNullValues(e) {
586
586
  return this.items.every((t) => {
587
- if (!I(t))
587
+ if (!T(t))
588
588
  return !1;
589
589
  const n = t.value;
590
590
  return n == null || e && E(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
@@ -620,14 +620,14 @@ class Wt extends pt {
620
620
  }
621
621
  }
622
622
  const Ds = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
623
- function F(s, e) {
623
+ function U(s, e) {
624
624
  return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
625
625
  }
626
626
  const H = (s, e, t) => s.endsWith(`
627
- `) ? F(t, e) : t.includes(`
627
+ `) ? U(t, e) : t.includes(`
628
628
  `) ? `
629
- ` + F(t, e) : (s.endsWith(" ") ? "" : " ") + t, Ht = "flow", at = "block", ve = "quoted";
630
- function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
629
+ ` + U(t, e) : (s.endsWith(" ") ? "" : " ") + t, Ht = "flow", at = "block", Be = "quoted";
630
+ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
631
631
  if (!i || i < 0)
632
632
  return s;
633
633
  i < r && (r = 0);
@@ -640,7 +640,7 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
640
640
  let d, h, y = !1, u = -1, m = -1, b = -1;
641
641
  t === at && (u = $t(s, u, e.length), u !== -1 && (f = u + a));
642
642
  for (let N; N = s[u += 1]; ) {
643
- if (t === ve && N === "\\") {
643
+ if (t === Be && N === "\\") {
644
644
  switch (m = u, s[u + 1]) {
645
645
  case "x":
646
646
  u += 3;
@@ -662,20 +662,20 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
662
662
  else {
663
663
  if (N === " " && h && h !== " " && h !== `
664
664
  ` && h !== " ") {
665
- const S = s[u + 1];
666
- S && S !== " " && S !== `
667
- ` && S !== " " && (d = u);
665
+ const w = s[u + 1];
666
+ w && w !== " " && w !== `
667
+ ` && w !== " " && (d = u);
668
668
  }
669
669
  if (u >= f)
670
670
  if (d)
671
671
  c.push(d), f = d + a, d = void 0;
672
- else if (t === ve) {
672
+ else if (t === Be) {
673
673
  for (; h === " " || h === " "; )
674
674
  h = N, N = s[u += 1], y = !0;
675
- const S = u > b + 1 ? u - 2 : m - 1;
676
- if (p[S])
675
+ const w = u > b + 1 ? u - 2 : m - 1;
676
+ if (p[w])
677
677
  return s;
678
- c.push(S), p[S] = !0, f = S + a, d = void 0;
678
+ c.push(w), p[w] = !0, f = w + a, d = void 0;
679
679
  } else
680
680
  y = !0;
681
681
  }
@@ -684,14 +684,14 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
684
684
  if (y && l && l(), c.length === 0)
685
685
  return s;
686
686
  o && o();
687
- let w = s.slice(0, c[0]);
687
+ let S = s.slice(0, c[0]);
688
688
  for (let N = 0; N < c.length; ++N) {
689
- const S = c[N], A = c[N + 1] || s.length;
690
- S === 0 ? w = `
691
- ${e}${s.slice(0, A)}` : (t === ve && p[S] && (w += `${s[S]}\\`), w += `
692
- ${e}${s.slice(S + 1, A)}`);
689
+ const w = c[N], k = c[N + 1] || s.length;
690
+ w === 0 ? S = `
691
+ ${e}${s.slice(0, k)}` : (t === Be && p[w] && (S += `${s[w]}\\`), S += `
692
+ ${e}${s.slice(w + 1, k)}`);
693
693
  }
694
- return w;
694
+ return S;
695
695
  }
696
696
  function $t(s, e, t) {
697
697
  let n = e, i = e + 1, r = s[i];
@@ -787,7 +787,7 @@ function Se(s, e) {
787
787
  default:
788
788
  a += 1;
789
789
  }
790
- return o = l ? o + t.slice(l) : t, n ? o : Fe(o, r, ve, Ve(e, !1));
790
+ return o = l ? o + t.slice(l) : t, n ? o : Ue(o, r, Be, Ve(e, !1));
791
791
  }
792
792
  function ct(s, e) {
793
793
  if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
@@ -795,7 +795,7 @@ function ct(s, e) {
795
795
  return Se(s, e);
796
796
  const t = e.indent || (Je(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
797
797
  ${t}`) + "'";
798
- return e.implicitKey ? n : Fe(n, t, Ht, Ve(e, !1));
798
+ return e.implicitKey ? n : Ue(n, t, Ht, Ve(e, !1));
799
799
  }
800
800
  function le(s, e) {
801
801
  const { singleQuote: t } = e.options;
@@ -821,7 +821,7 @@ function Me({ comment: s, type: e, value: t }, n, i, r) {
821
821
  const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
822
822
  if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
823
823
  return le(t, n);
824
- const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), p = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !qs(t, a, c.length);
824
+ const c = n.indent || (n.forceBlockIndent || Je(t) ? " " : ""), p = o === "literal" ? !0 : o === "folded" || e === A.BLOCK_FOLDED ? !1 : e === A.BLOCK_LITERAL ? !0 : !qs(t, a, c.length);
825
825
  if (!t)
826
826
  return p ? `|
827
827
  ` : `>
@@ -849,19 +849,26 @@ function Me({ comment: s, type: e, value: t }, n, i, r) {
849
849
  else
850
850
  break;
851
851
  }
852
- let w = t.substring(0, b < m ? b + 1 : m);
853
- w && (t = t.substring(w.length), w = w.replace(/\n+/g, `$&${c}`));
854
- let S = (p ? "|" : ">") + (u ? c ? "2" : "1" : "") + f;
855
- if (s && (S += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), p)
856
- return t = t.replace(/\n+/g, `$&${c}`), `${S}
857
- ${c}${w}${t}${h}`;
858
- t = t.replace(/\n+/g, `
852
+ let S = t.substring(0, b < m ? b + 1 : m);
853
+ S && (t = t.substring(S.length), S = S.replace(/\n+/g, `$&${c}`));
854
+ let w = (u ? c ? "2" : "1" : "") + f;
855
+ if (s && (w += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), !p) {
856
+ const k = t.replace(/\n+/g, `
859
857
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
860
- const A = Fe(`${w}${t}${h}`, c, at, Ve(n, !0));
861
- return `${S}
862
- ${c}${A}`;
858
+ let O = !1;
859
+ const I = Ve(n, !0);
860
+ o !== "folded" && e !== A.BLOCK_FOLDED && (I.onOverflow = () => {
861
+ O = !0;
862
+ });
863
+ const g = Ue(`${S}${k}${h}`, c, at, I);
864
+ if (!O)
865
+ return `>${w}
866
+ ${c}${g}`;
867
+ }
868
+ return t = t.replace(/\n+/g, `$&${c}`), `|${w}
869
+ ${c}${S}${t}${h}`;
863
870
  }
864
- function Rs(s, e, t, n) {
871
+ function Fs(s, e, t, n) {
865
872
  const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: p } = e;
866
873
  if (l && r.includes(`
867
874
  `) || p && /[[\]{},]/.test(r))
@@ -869,7 +876,7 @@ function Rs(s, e, t, n) {
869
876
  if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
870
877
  return l || p || !r.includes(`
871
878
  `) ? le(r, e) : Me(s, e, t, n);
872
- if (!l && !p && i !== O.PLAIN && r.includes(`
879
+ if (!l && !p && i !== A.PLAIN && r.includes(`
873
880
  `))
874
881
  return Me(s, e, t, n);
875
882
  if (Je(r)) {
@@ -888,23 +895,23 @@ ${a}`);
888
895
  if (y.some(d) || h != null && h.some(d))
889
896
  return le(r, e);
890
897
  }
891
- return l ? f : Fe(f, a, Ht, Ve(e, !1));
898
+ return l ? f : Ue(f, a, Ht, Ve(e, !1));
892
899
  }
893
900
  function Ae(s, e, t, n) {
894
901
  const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
895
902
  let { type: l } = s;
896
- l !== O.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = O.QUOTE_DOUBLE);
903
+ l !== A.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = A.QUOTE_DOUBLE);
897
904
  const a = (p) => {
898
905
  switch (p) {
899
- case O.BLOCK_FOLDED:
900
- case O.BLOCK_LITERAL:
906
+ case A.BLOCK_FOLDED:
907
+ case A.BLOCK_LITERAL:
901
908
  return i || r ? le(o.value, e) : Me(o, e, t, n);
902
- case O.QUOTE_DOUBLE:
909
+ case A.QUOTE_DOUBLE:
903
910
  return Se(o.value, e);
904
- case O.QUOTE_SINGLE:
911
+ case A.QUOTE_SINGLE:
905
912
  return ct(o.value, e);
906
- case O.PLAIN:
907
- return Rs(o, e, t, n);
913
+ case A.PLAIN:
914
+ return Fs(o, e, t, n);
908
915
  default:
909
916
  return null;
910
917
  }
@@ -958,7 +965,7 @@ function Xt(s, e) {
958
965
  options: t
959
966
  };
960
967
  }
961
- function Us(s, e) {
968
+ function Rs(s, e) {
962
969
  var i;
963
970
  if (e.tag) {
964
971
  const r = s.filter((o) => o.tag === e.tag);
@@ -985,7 +992,7 @@ function Us(s, e) {
985
992
  }
986
993
  return t;
987
994
  }
988
- function Fs(s, e, { anchors: t, doc: n }) {
995
+ function Us(s, e, { anchors: t, doc: n }) {
989
996
  if (!n.directives)
990
997
  return "";
991
998
  const i = [], r = (E(s) || L(s)) && s.anchor;
@@ -995,7 +1002,7 @@ function Fs(s, e, { anchors: t, doc: n }) {
995
1002
  }
996
1003
  function fe(s, e, t, n) {
997
1004
  var a;
998
- if (I(s))
1005
+ if (T(s))
999
1006
  return s.toString(e, t, n);
1000
1007
  if (x(s)) {
1001
1008
  if (e.doc.directives)
@@ -1006,8 +1013,8 @@ function fe(s, e, t, n) {
1006
1013
  }
1007
1014
  let i;
1008
1015
  const r = $(s) ? s : e.doc.createNode(s, { onTagObj: (c) => i = c });
1009
- i || (i = Us(e.doc.schema.tags, r));
1010
- const o = Fs(r, i, e);
1016
+ i || (i = Rs(e.doc.schema.tags, r));
1017
+ const o = Us(r, i, e);
1011
1018
  o.length > 0 && (e.indentAtStart = (e.indentAtStart ?? 0) + o.length + 1);
1012
1019
  const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? Ae(r, e, t, n) : r.toString(e, t, n);
1013
1020
  return o ? E(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
@@ -1020,11 +1027,11 @@ function Vs({ key: s, value: e }, t, n, i) {
1020
1027
  if (d)
1021
1028
  throw new Error("With simple keys, key nodes cannot have comments");
1022
1029
  if (L(s) || !$(s) && typeof s == "object") {
1023
- const T = "With simple keys, collection cannot be used as a key value";
1024
- throw new Error(T);
1030
+ const I = "With simple keys, collection cannot be used as a key value";
1031
+ throw new Error(I);
1025
1032
  }
1026
1033
  }
1027
- let h = !f && (!s || d && e == null && !t.inFlow || L(s) || (E(s) ? s.type === O.BLOCK_FOLDED || s.type === O.BLOCK_LITERAL : typeof s == "object"));
1034
+ let h = !f && (!s || d && e == null && !t.inFlow || L(s) || (E(s) ? s.type === A.BLOCK_FOLDED || s.type === A.BLOCK_LITERAL : typeof s == "object"));
1028
1035
  t = Object.assign({}, t, {
1029
1036
  allNullValues: !1,
1030
1037
  implicitKey: !h && (f || !r),
@@ -1043,52 +1050,52 @@ function Vs({ key: s, value: e }, t, n, i) {
1043
1050
  return m = `? ${m}`, d && !y ? m += H(m, t.indent, c(d)) : u && i && i(), m;
1044
1051
  y && (d = null), h ? (d && (m += H(m, t.indent, c(d))), m = `? ${m}
1045
1052
  ${l}:`) : (m = `${m}:`, d && (m += H(m, t.indent, c(d))));
1046
- let b, w, N;
1047
- $(e) ? (b = !!e.spaceBefore, w = e.commentBefore, N = e.comment) : (b = !1, w = null, N = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !h && !d && E(e) && (t.indentAtStart = m.length + 1), u = !1, !p && a.length >= 2 && !t.inFlow && !h && pe(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
1048
- let S = !1;
1049
- const A = fe(e, t, () => S = !0, () => u = !0);
1050
- let k = " ";
1051
- if (d || b || w) {
1052
- if (k = b ? `
1053
- ` : "", w) {
1054
- const T = c(w);
1055
- k += `
1056
- ${F(T, t.indent)}`;
1053
+ let b, S, N;
1054
+ $(e) ? (b = !!e.spaceBefore, S = e.commentBefore, N = e.comment) : (b = !1, S = null, N = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !h && !d && E(e) && (t.indentAtStart = m.length + 1), u = !1, !p && a.length >= 2 && !t.inFlow && !h && pe(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
1055
+ let w = !1;
1056
+ const k = fe(e, t, () => w = !0, () => u = !0);
1057
+ let O = " ";
1058
+ if (d || b || S) {
1059
+ if (O = b ? `
1060
+ ` : "", S) {
1061
+ const I = c(S);
1062
+ O += `
1063
+ ${U(I, t.indent)}`;
1057
1064
  }
1058
- A === "" && !t.inFlow ? k === `
1059
- ` && (k = `
1065
+ k === "" && !t.inFlow ? O === `
1066
+ ` && (O = `
1060
1067
 
1061
- `) : k += `
1068
+ `) : O += `
1062
1069
  ${t.indent}`;
1063
1070
  } else if (!h && L(e)) {
1064
- const T = A[0], g = A.indexOf(`
1071
+ const I = k[0], g = k.indexOf(`
1065
1072
  `), _ = g !== -1, J = t.inFlow ?? e.flow ?? e.items.length === 0;
1066
1073
  if (_ || !J) {
1067
1074
  let te = !1;
1068
- if (_ && (T === "&" || T === "!")) {
1069
- let C = A.indexOf(" ");
1070
- T === "&" && C !== -1 && C < g && A[C + 1] === "!" && (C = A.indexOf(" ", C + 1)), (C === -1 || g < C) && (te = !0);
1075
+ if (_ && (I === "&" || I === "!")) {
1076
+ let C = k.indexOf(" ");
1077
+ I === "&" && C !== -1 && C < g && k[C + 1] === "!" && (C = k.indexOf(" ", C + 1)), (C === -1 || g < C) && (te = !0);
1071
1078
  }
1072
- te || (k = `
1079
+ te || (O = `
1073
1080
  ${t.indent}`);
1074
1081
  }
1075
- } else (A === "" || A[0] === `
1076
- `) && (k = "");
1077
- return m += k + A, t.inFlow ? S && n && n() : N && !S ? m += H(m, t.indent, c(N)) : u && i && i(), m;
1082
+ } else (k === "" || k[0] === `
1083
+ `) && (O = "");
1084
+ return m += O + k, t.inFlow ? w && n && n() : N && !w ? m += H(m, t.indent, c(N)) : u && i && i(), m;
1078
1085
  }
1079
1086
  function zt(s, e) {
1080
- (s === "debug" || s === "warn") && (typeof process < "u" && process.emitWarning ? process.emitWarning(e) : console.warn(e));
1087
+ (s === "debug" || s === "warn") && console.warn(e);
1081
1088
  }
1082
1089
  const Te = "<<", V = {
1083
1090
  identify: (s) => s === Te || typeof s == "symbol" && s.description === Te,
1084
1091
  default: "key",
1085
1092
  tag: "tag:yaml.org,2002:merge",
1086
1093
  test: /^<<$/,
1087
- resolve: () => Object.assign(new O(Symbol(Te)), {
1094
+ resolve: () => Object.assign(new A(Symbol(Te)), {
1088
1095
  addToJSMap: Zt
1089
1096
  }),
1090
1097
  stringify: () => Te
1091
- }, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type === O.PLAIN) && V.identify(e.value)) && (s == null ? void 0 : s.doc.schema.tags.some((t) => t.tag === V.tag && t.default));
1098
+ }, Js = (s, e) => (V.identify(e) || E(e) && (!e.type || e.type === A.PLAIN) && V.identify(e.value)) && (s == null ? void 0 : s.doc.schema.tags.some((t) => t.tag === V.tag && t.default));
1092
1099
  function Zt(s, e, t) {
1093
1100
  if (t = s && x(t) ? t.resolve(s.doc) : t, pe(t))
1094
1101
  for (const n of t.items)
@@ -1158,15 +1165,15 @@ function Ys(s, e, t) {
1158
1165
  }
1159
1166
  function mt(s, e, t) {
1160
1167
  const n = ke(s, void 0, t), i = ke(e, void 0, t);
1161
- return new B(n, i);
1168
+ return new v(n, i);
1162
1169
  }
1163
- class B {
1170
+ class v {
1164
1171
  constructor(e, t = null) {
1165
1172
  Object.defineProperty(this, j, { value: qt }), this.key = e, this.value = t;
1166
1173
  }
1167
1174
  clone(e) {
1168
1175
  let { key: t, value: n } = this;
1169
- return $(t) && (t = t.clone(e)), $(n) && (n = n.clone(e)), new B(t, n);
1176
+ return $(t) && (t = t.clone(e)), $(n) && (n = n.clone(e)), new v(t, n);
1170
1177
  }
1171
1178
  toJSON(e, t) {
1172
1179
  const n = t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
@@ -1188,9 +1195,9 @@ function Gs({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, ite
1188
1195
  let m = null;
1189
1196
  if ($(u))
1190
1197
  !f && u.spaceBefore && d.push(""), je(t, d, u.commentBefore, f), u.comment && (m = u.comment);
1191
- else if (I(u)) {
1192
- const w = $(u.key) ? u.key : null;
1193
- w && (!f && w.spaceBefore && d.push(""), je(t, d, w.commentBefore, f));
1198
+ else if (T(u)) {
1199
+ const S = $(u.key) ? u.key : null;
1200
+ S && (!f && S.spaceBefore && d.push(""), je(t, d, S.commentBefore, f));
1194
1201
  }
1195
1202
  f = !1;
1196
1203
  let b = fe(u, p, () => m = null, () => f = !0);
@@ -1209,7 +1216,7 @@ ${a}${u}` : `
1209
1216
  }
1210
1217
  }
1211
1218
  return s ? (h += `
1212
- ` + F(c(s), a), l && l()) : f && o && o(), h;
1219
+ ` + U(c(s), a), l && l()) : f && o && o(), h;
1213
1220
  }
1214
1221
  function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
1215
1222
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
@@ -1226,11 +1233,11 @@ function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
1226
1233
  let m = null;
1227
1234
  if ($(u))
1228
1235
  u.spaceBefore && f.push(""), je(e, f, u.commentBefore, !1), u.comment && (m = u.comment);
1229
- else if (I(u)) {
1230
- const w = $(u.key) ? u.key : null;
1231
- w && (w.spaceBefore && f.push(""), je(e, f, w.commentBefore, !1), w.comment && (c = !0));
1236
+ else if (T(u)) {
1237
+ const S = $(u.key) ? u.key : null;
1238
+ S && (S.spaceBefore && f.push(""), je(e, f, S.commentBefore, !1), S.comment && (c = !0));
1232
1239
  const N = $(u.value) ? u.value : null;
1233
- N ? (N.comment && (m = N.comment), N.commentBefore && (c = !0)) : u.value == null && (w != null && w.comment) && (m = w.comment);
1240
+ N ? (N.comment && (m = N.comment), N.commentBefore && (c = !0)) : u.value == null && (S != null && S.comment) && (m = S.comment);
1234
1241
  }
1235
1242
  m && (c = !0);
1236
1243
  let b = fe(u, a, () => m = null);
@@ -1257,14 +1264,14 @@ ${i}${h}`;
1257
1264
  }
1258
1265
  function je({ indent: s, options: { commentString: e } }, t, n, i) {
1259
1266
  if (n && i && (n = n.replace(/^\n+/, "")), n) {
1260
- const r = F(e(n), s);
1267
+ const r = U(e(n), s);
1261
1268
  t.push(r.trimStart());
1262
1269
  }
1263
1270
  }
1264
1271
  function X(s, e) {
1265
1272
  const t = E(e) ? e.value : e;
1266
1273
  for (const n of s)
1267
- if (I(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
1274
+ if (T(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
1268
1275
  return n;
1269
1276
  }
1270
1277
  class K extends Wt {
@@ -1303,7 +1310,7 @@ class K extends Wt {
1303
1310
  add(e, t) {
1304
1311
  var o;
1305
1312
  let n;
1306
- I(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new B(e, e == null ? void 0 : e.value) : n = new B(e.key, e.value);
1313
+ T(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new v(e, e == null ? void 0 : e.value) : n = new v(e.key, e.value);
1307
1314
  const i = X(this.items, n.key), r = (o = this.schema) == null ? void 0 : o.sortMapEntries;
1308
1315
  if (i) {
1309
1316
  if (!t)
@@ -1327,7 +1334,7 @@ class K extends Wt {
1327
1334
  return !!X(this.items, e);
1328
1335
  }
1329
1336
  set(e, t) {
1330
- this.add(new B(e, t), !0);
1337
+ this.add(new v(e, t), !0);
1331
1338
  }
1332
1339
  /**
1333
1340
  * @param ctx - Conversion context, originally set in Document#toJS()
@@ -1345,7 +1352,7 @@ class K extends Wt {
1345
1352
  if (!e)
1346
1353
  return JSON.stringify(this);
1347
1354
  for (const i of this.items)
1348
- if (!I(i))
1355
+ if (!T(i))
1349
1356
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
1350
1357
  return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), es(this, e, {
1351
1358
  blockItemPrefix: "",
@@ -1474,18 +1481,18 @@ const ye = {
1474
1481
  }
1475
1482
  }, Ge = {
1476
1483
  identify: (s) => s == null,
1477
- createNode: () => new O(null),
1484
+ createNode: () => new A(null),
1478
1485
  default: !0,
1479
1486
  tag: "tag:yaml.org,2002:null",
1480
1487
  test: /^(?:~|[Nn]ull|NULL)?$/,
1481
- resolve: () => new O(null),
1488
+ resolve: () => new A(null),
1482
1489
  stringify: ({ source: s }, e) => typeof s == "string" && Ge.test.test(s) ? s : e.options.nullStr
1483
1490
  }, yt = {
1484
1491
  identify: (s) => typeof s == "boolean",
1485
1492
  default: !0,
1486
1493
  tag: "tag:yaml.org,2002:bool",
1487
1494
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
1488
- resolve: (s) => new O(s[0] === "t" || s[0] === "T"),
1495
+ resolve: (s) => new A(s[0] === "t" || s[0] === "T"),
1489
1496
  stringify({ source: s, value: e }, t) {
1490
1497
  if (s && yt.test.test(s)) {
1491
1498
  const n = s[0] === "t" || s[0] === "T";
@@ -1535,7 +1542,7 @@ const ts = {
1535
1542
  tag: "tag:yaml.org,2002:float",
1536
1543
  test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
1537
1544
  resolve(s) {
1538
- const e = new O(parseFloat(s)), t = s.indexOf(".");
1545
+ const e = new A(parseFloat(s)), t = s.indexOf(".");
1539
1546
  return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1540
1547
  },
1541
1548
  stringify: q
@@ -1593,7 +1600,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1593
1600
  },
1594
1601
  {
1595
1602
  identify: (s) => s == null,
1596
- createNode: () => new O(null),
1603
+ createNode: () => new A(null),
1597
1604
  default: !0,
1598
1605
  tag: "tag:yaml.org,2002:null",
1599
1606
  test: /^null$/,
@@ -1604,7 +1611,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1604
1611
  identify: (s) => typeof s == "boolean",
1605
1612
  default: !0,
1606
1613
  tag: "tag:yaml.org,2002:bool",
1607
- test: /^true|false$/,
1614
+ test: /^true$|^false$/,
1608
1615
  resolve: (s) => s === "true",
1609
1616
  stringify: $e
1610
1617
  },
@@ -1645,8 +1652,6 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1645
1652
  * document.querySelector('#photo').src = URL.createObjectURL(blob)
1646
1653
  */
1647
1654
  resolve(s, e) {
1648
- if (typeof Buffer == "function")
1649
- return Buffer.from(s, "base64");
1650
1655
  if (typeof atob == "function") {
1651
1656
  const t = atob(s.replace(/[\n\r]/g, "")), n = new Uint8Array(t.length);
1652
1657
  for (let i = 0; i < t.length; ++i)
@@ -1658,20 +1663,18 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1658
1663
  stringify({ comment: s, type: e, value: t }, n, i, r) {
1659
1664
  const o = t;
1660
1665
  let l;
1661
- if (typeof Buffer == "function")
1662
- l = o instanceof Buffer ? o.toString("base64") : Buffer.from(o.buffer).toString("base64");
1663
- else if (typeof btoa == "function") {
1666
+ if (typeof btoa == "function") {
1664
1667
  let a = "";
1665
1668
  for (let c = 0; c < o.length; ++c)
1666
1669
  a += String.fromCharCode(o[c]);
1667
1670
  l = btoa(a);
1668
1671
  } else
1669
1672
  throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
1670
- if (e || (e = O.BLOCK_LITERAL), e !== O.QUOTE_DOUBLE) {
1673
+ if (e || (e = A.BLOCK_LITERAL), e !== A.QUOTE_DOUBLE) {
1671
1674
  const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), p = new Array(c);
1672
1675
  for (let f = 0, d = 0; f < c; ++f, d += a)
1673
1676
  p[f] = l.substr(d, a);
1674
- l = p.join(e === O.BLOCK_LITERAL ? `
1677
+ l = p.join(e === A.BLOCK_LITERAL ? `
1675
1678
  ` : " ");
1676
1679
  }
1677
1680
  return Ae({ comment: s, type: e, value: l }, n, i, r);
@@ -1681,10 +1684,10 @@ function as(s, e) {
1681
1684
  if (pe(s))
1682
1685
  for (let t = 0; t < s.items.length; ++t) {
1683
1686
  let n = s.items[t];
1684
- if (!I(n)) {
1687
+ if (!T(n)) {
1685
1688
  if (de(n)) {
1686
1689
  n.items.length > 1 && e("Each pair must have its own sequence indicator");
1687
- const i = n.items[0] || new B(new O(null));
1690
+ const i = n.items[0] || new v(new A(null));
1688
1691
  if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
1689
1692
  ${i.key.commentBefore}` : n.commentBefore), n.comment) {
1690
1693
  const r = i.value ?? i.key;
@@ -1693,7 +1696,7 @@ ${r.comment}` : n.comment;
1693
1696
  }
1694
1697
  n = i;
1695
1698
  }
1696
- s.items[t] = I(n) ? n : new B(n);
1699
+ s.items[t] = T(n) ? n : new v(n);
1697
1700
  }
1698
1701
  }
1699
1702
  else
@@ -1747,7 +1750,7 @@ class ae extends Q {
1747
1750
  t != null && t.onCreate && t.onCreate(n);
1748
1751
  for (const i of this.items) {
1749
1752
  let r, o;
1750
- if (I(i) ? (r = P(i.key, "", t), o = P(i.value, r, t)) : r = P(i, "", t), n.has(r))
1753
+ if (T(i) ? (r = P(i.key, "", t), o = P(i.value, r, t)) : r = P(i, "", t), n.has(r))
1751
1754
  throw new Error("Ordered maps must not include duplicate keys");
1752
1755
  n.set(r, o);
1753
1756
  }
@@ -1781,14 +1784,14 @@ const us = {
1781
1784
  default: !0,
1782
1785
  tag: "tag:yaml.org,2002:bool",
1783
1786
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1784
- resolve: () => new O(!0),
1787
+ resolve: () => new A(!0),
1785
1788
  stringify: fs
1786
1789
  }, hs = {
1787
1790
  identify: (s) => s === !1,
1788
1791
  default: !0,
1789
1792
  tag: "tag:yaml.org,2002:bool",
1790
1793
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1791
- resolve: () => new O(!1),
1794
+ resolve: () => new A(!1),
1792
1795
  stringify: fs
1793
1796
  }, Zs = {
1794
1797
  identify: (s) => typeof s == "number",
@@ -1814,7 +1817,7 @@ const us = {
1814
1817
  tag: "tag:yaml.org,2002:float",
1815
1818
  test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
1816
1819
  resolve(s) {
1817
- const e = new O(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
1820
+ const e = new A(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
1818
1821
  if (t !== -1) {
1819
1822
  const n = s.substring(t + 1).replace(/_/g, "");
1820
1823
  n[n.length - 1] === "0" && (e.minFractionDigits = n.length);
@@ -1889,7 +1892,7 @@ class ce extends K {
1889
1892
  }
1890
1893
  add(e) {
1891
1894
  let t;
1892
- I(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new B(e.key, null) : t = new B(e, null), X(this.items, t.key) || this.items.push(t);
1895
+ T(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new v(e.key, null) : t = new v(e, null), X(this.items, t.key) || this.items.push(t);
1893
1896
  }
1894
1897
  /**
1895
1898
  * If `keepPair` is `true`, returns the Pair matching `key`.
@@ -1897,13 +1900,13 @@ class ce extends K {
1897
1900
  */
1898
1901
  get(e, t) {
1899
1902
  const n = X(this.items, e);
1900
- return !t && I(n) ? E(n.key) ? n.key.value : n.key : n;
1903
+ return !t && T(n) ? E(n.key) ? n.key.value : n.key : n;
1901
1904
  }
1902
1905
  set(e, t) {
1903
1906
  if (typeof t != "boolean")
1904
1907
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
1905
1908
  const n = X(this.items, e);
1906
- n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new B(e));
1909
+ n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new v(e));
1907
1910
  }
1908
1911
  toJSON(e, t) {
1909
1912
  return super.toJSON(e, t, Set);
@@ -1993,7 +1996,7 @@ const ps = {
1993
1996
  }
1994
1997
  return new Date(c);
1995
1998
  },
1996
- stringify: ({ value: s }) => s.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "")
1999
+ stringify: ({ value: s }) => s.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
1997
2000
  }, Ct = [
1998
2001
  me,
1999
2002
  ye,
@@ -2016,13 +2019,13 @@ const ps = {
2016
2019
  ps,
2017
2020
  ms,
2018
2021
  He
2019
- ], Bt = /* @__PURE__ */ new Map([
2022
+ ], vt = /* @__PURE__ */ new Map([
2020
2023
  ["core", Ws],
2021
2024
  ["failsafe", [me, ye, Ye]],
2022
2025
  ["json", zs],
2023
2026
  ["yaml11", Ct],
2024
2027
  ["yaml-1.1", Ct]
2025
- ]), vt = {
2028
+ ]), Bt = {
2026
2029
  binary: bt,
2027
2030
  bool: yt,
2028
2031
  float: ns,
@@ -2050,7 +2053,7 @@ const ps = {
2050
2053
  "tag:yaml.org,2002:timestamp": He
2051
2054
  };
2052
2055
  function tt(s, e, t) {
2053
- const n = Bt.get(e);
2056
+ const n = vt.get(e);
2054
2057
  if (n && !s)
2055
2058
  return t && !n.includes(V) ? n.concat(V) : n.slice();
2056
2059
  let i = n;
@@ -2058,7 +2061,7 @@ function tt(s, e, t) {
2058
2061
  if (Array.isArray(s))
2059
2062
  i = [];
2060
2063
  else {
2061
- const r = Array.from(Bt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
2064
+ const r = Array.from(vt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
2062
2065
  throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`);
2063
2066
  }
2064
2067
  if (Array.isArray(s))
@@ -2066,9 +2069,9 @@ function tt(s, e, t) {
2066
2069
  i = i.concat(r);
2067
2070
  else typeof s == "function" && (i = s(i.slice()));
2068
2071
  return t && (i = i.concat(V)), i.reduce((r, o) => {
2069
- const l = typeof o == "string" ? vt[o] : o;
2072
+ const l = typeof o == "string" ? Bt[o] : o;
2070
2073
  if (!l) {
2071
- const a = JSON.stringify(o), c = Object.keys(vt).map((p) => JSON.stringify(p)).join(", ");
2074
+ const a = JSON.stringify(o), c = Object.keys(Bt).map((p) => JSON.stringify(p)).join(", ");
2072
2075
  throw new Error(`Unknown custom tag ${a}; use one of ${c}`);
2073
2076
  }
2074
2077
  return r.includes(l) || r.push(l), r;
@@ -2077,7 +2080,7 @@ function tt(s, e, t) {
2077
2080
  const ln = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2078
2081
  class Xe {
2079
2082
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
2080
- this.compat = Array.isArray(e) ? tt(e, "compat") : e ? tt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? on : {}, this.tags = tt(t, this.name, n), this.toStringOptions = l ?? null, Object.defineProperty(this, Y, { value: me }), Object.defineProperty(this, U, { value: Ye }), Object.defineProperty(this, he, { value: ye }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? ln : null;
2083
+ this.compat = Array.isArray(e) ? tt(e, "compat") : e ? tt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? on : {}, this.tags = tt(t, this.name, n), this.toStringOptions = l ?? null, Object.defineProperty(this, Y, { value: me }), Object.defineProperty(this, R, { value: Ye }), Object.defineProperty(this, he, { value: ye }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? ln : null;
2081
2084
  }
2082
2085
  clone() {
2083
2086
  const e = Object.create(Xe.prototype, Object.getOwnPropertyDescriptors(this));
@@ -2097,14 +2100,14 @@ function an(s, e) {
2097
2100
  if (s.commentBefore) {
2098
2101
  t.length !== 1 && t.unshift("");
2099
2102
  const c = r(s.commentBefore);
2100
- t.unshift(F(c, ""));
2103
+ t.unshift(U(c, ""));
2101
2104
  }
2102
2105
  let o = !1, l = null;
2103
2106
  if (s.contents) {
2104
2107
  if ($(s.contents)) {
2105
2108
  if (s.contents.spaceBefore && n && t.push(""), s.contents.commentBefore) {
2106
2109
  const f = r(s.contents.commentBefore);
2107
- t.push(F(f, ""));
2110
+ t.push(U(f, ""));
2108
2111
  }
2109
2112
  i.forceBlockIndent = !!s.comment, l = s.contents.comment;
2110
2113
  }
@@ -2117,12 +2120,12 @@ function an(s, e) {
2117
2120
  if (s.comment) {
2118
2121
  const c = r(s.comment);
2119
2122
  c.includes(`
2120
- `) ? (t.push("..."), t.push(F(c, ""))) : t.push(`... ${c}`);
2123
+ `) ? (t.push("..."), t.push(U(c, ""))) : t.push(`... ${c}`);
2121
2124
  } else
2122
2125
  t.push("...");
2123
2126
  else {
2124
2127
  let c = s.comment;
2125
- c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(F(r(c), "")));
2128
+ c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(U(r(c), "")));
2126
2129
  }
2127
2130
  return t.join(`
2128
2131
  `) + `
@@ -2145,7 +2148,7 @@ class ge {
2145
2148
  }, n);
2146
2149
  this.options = r;
2147
2150
  let { version: o } = r;
2148
- n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new v({ version: o }), this.setSchema(o, n), this.contents = e === void 0 ? null : this.createNode(e, i, n);
2151
+ n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new B({ version: o }), this.setSchema(o, n), this.contents = e === void 0 ? null : this.createNode(e, i, n);
2149
2152
  }
2150
2153
  /**
2151
2154
  * Create a deep copy of this Document and its contents.
@@ -2181,14 +2184,14 @@ class ge {
2181
2184
  e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2182
2185
  !t || n.has(t) ? Gt(t || "a", n) : t;
2183
2186
  }
2184
- return new Ue(e.anchor);
2187
+ return new Re(e.anchor);
2185
2188
  }
2186
2189
  createNode(e, t, n) {
2187
2190
  let i;
2188
2191
  if (typeof t == "function")
2189
2192
  e = t.call({ "": e }, "", e), i = t;
2190
2193
  else if (Array.isArray(t)) {
2191
- const m = (w) => typeof w == "number" || w instanceof String || w instanceof Number, b = t.filter(m).map(String);
2194
+ const m = (S) => typeof S == "number" || S instanceof String || S instanceof Number, b = t.filter(m).map(String);
2192
2195
  b.length > 0 && (t = t.concat(b)), i = t;
2193
2196
  } else n === void 0 && t && (n = t, t = void 0);
2194
2197
  const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: p } = n ?? {}, { onAnchor: f, setAnchors: d, sourceObjects: h } = Ks(
@@ -2212,7 +2215,7 @@ class ge {
2212
2215
  */
2213
2216
  createPair(e, t, n = {}) {
2214
2217
  const i = this.createNode(e, null, n), r = this.createNode(t, null, n);
2215
- return new B(i, r);
2218
+ return new v(i, r);
2216
2219
  }
2217
2220
  /**
2218
2221
  * Removes a value from the document.
@@ -2282,11 +2285,11 @@ class ge {
2282
2285
  let n;
2283
2286
  switch (e) {
2284
2287
  case "1.1":
2285
- this.directives ? this.directives.yaml.version = "1.1" : this.directives = new v({ version: "1.1" }), n = { resolveKnownTags: !1, schema: "yaml-1.1" };
2288
+ this.directives ? this.directives.yaml.version = "1.1" : this.directives = new B({ version: "1.1" }), n = { resolveKnownTags: !1, schema: "yaml-1.1" };
2286
2289
  break;
2287
2290
  case "1.2":
2288
2291
  case "next":
2289
- this.directives ? this.directives.yaml.version = e : this.directives = new v({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
2292
+ this.directives ? this.directives.yaml.version = e : this.directives = new B({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
2290
2293
  break;
2291
2294
  case null:
2292
2295
  this.directives && delete this.directives, n = null;
@@ -2387,7 +2390,7 @@ ${c}
2387
2390
  }
2388
2391
  };
2389
2392
  function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIndent: o, startOnNewline: l }) {
2390
- let a = !1, c = l, p = l, f = "", d = "", h = !1, y = !1, u = null, m = null, b = null, w = null, N = null, S = null, A = null;
2393
+ let a = !1, c = l, p = l, f = "", d = "", h = !1, y = !1, u = null, m = null, b = null, S = null, N = null, w = null, k = null;
2391
2394
  for (const g of s)
2392
2395
  switch (y && (g.type !== "space" && g.type !== "newline" && g.type !== "comma" && r(g.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), y = !1), u && (c && g.type !== "comment" && g.type !== "newline" && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), u = null), g.type) {
2393
2396
  case "space":
@@ -2400,38 +2403,39 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
2400
2403
  break;
2401
2404
  }
2402
2405
  case "newline":
2403
- c ? f ? f += g.source : a = !0 : d += g.source, c = !0, h = !0, (m || b) && (w = g), p = !0;
2406
+ c ? f ? f += g.source : (!w || t !== "seq-item-ind") && (a = !0) : d += g.source, c = !0, h = !0, (m || b) && (S = g), p = !0;
2404
2407
  break;
2405
2408
  case "anchor":
2406
- m && r(g, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), g.source.endsWith(":") && r(g.offset + g.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), m = g, A === null && (A = g.offset), c = !1, p = !1, y = !0;
2409
+ m && r(g, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), g.source.endsWith(":") && r(g.offset + g.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), m = g, k === null && (k = g.offset), c = !1, p = !1, y = !0;
2407
2410
  break;
2408
2411
  case "tag": {
2409
- b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, A === null && (A = g.offset), c = !1, p = !1, y = !0;
2412
+ b && r(g, "MULTIPLE_TAGS", "A node can have at most one tag"), b = g, k === null && (k = g.offset), c = !1, p = !1, y = !0;
2410
2413
  break;
2411
2414
  }
2412
2415
  case t:
2413
- (m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`), S && r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.source} in ${e ?? "collection"}`), S = g, c = t === "seq-item-ind" || t === "explicit-key-ind", p = !1;
2416
+ (m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`), w && r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.source} in ${e ?? "collection"}`), w = g, c = t === "seq-item-ind" || t === "explicit-key-ind", p = !1;
2414
2417
  break;
2415
2418
  case "comma":
2416
2419
  if (e) {
2417
2420
  N && r(g, "UNEXPECTED_TOKEN", `Unexpected , in ${e}`), N = g, c = !1, p = !1;
2418
2421
  break;
2419
2422
  }
2423
+ // else fallthrough
2420
2424
  default:
2421
2425
  r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.type} token`), c = !1, p = !1;
2422
2426
  }
2423
- const k = s[s.length - 1], T = k ? k.offset + k.source.length : i;
2427
+ const O = s[s.length - 1], I = O ? O.offset + O.source.length : i;
2424
2428
  return y && n && n.type !== "space" && n.type !== "newline" && n.type !== "comma" && (n.type !== "scalar" || n.source !== "") && r(n.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), u && (c && u.indent <= o || (n == null ? void 0 : n.type) === "block-map" || (n == null ? void 0 : n.type) === "block-seq") && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
2425
2429
  comma: N,
2426
- found: S,
2430
+ found: w,
2427
2431
  spaceBefore: a,
2428
2432
  comment: f,
2429
2433
  hasNewline: h,
2430
2434
  anchor: m,
2431
2435
  tag: b,
2432
- newlineAfterProp: w,
2433
- end: T,
2434
- start: A ?? T
2436
+ newlineAfterProp: S,
2437
+ end: I,
2438
+ start: k ?? I
2435
2439
  };
2436
2440
  }
2437
2441
  function Ne(s) {
@@ -2506,9 +2510,9 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2506
2510
  (m.newlineAfterProp || Ne(h)) && i(h ?? d[d.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2507
2511
  } else ((p = m.found) == null ? void 0 : p.indent) !== n.indent && i(a, "BAD_INDENT", Mt);
2508
2512
  t.atKey = !0;
2509
- const w = m.end, N = h ? s(t, h, m, i) : e(t, w, d, null, m, i);
2510
- t.schema.compat && ut(n.indent, h, i), t.atKey = !1, gs(t, l.items, N) && i(w, "DUPLICATE_KEY", "Map keys must be unique");
2511
- const S = ue(y ?? [], {
2513
+ const S = m.end, N = h ? s(t, h, m, i) : e(t, S, d, null, m, i);
2514
+ t.schema.compat && ut(n.indent, h, i), t.atKey = !1, gs(t, l.items, N) && i(S, "DUPLICATE_KEY", "Map keys must be unique");
2515
+ const w = ue(y ?? [], {
2512
2516
  indicator: "map-value-ind",
2513
2517
  next: u,
2514
2518
  offset: N.range[2],
@@ -2516,17 +2520,17 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2516
2520
  parentIndent: n.indent,
2517
2521
  startOnNewline: !h || h.type === "block-scalar"
2518
2522
  });
2519
- if (a = S.end, S.found) {
2520
- b && ((u == null ? void 0 : u.type) === "block-map" && !S.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && m.start < S.found.offset - 1024 && i(N.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2521
- const A = u ? s(t, u, S, i) : e(t, a, y, null, S, i);
2522
- t.schema.compat && ut(n.indent, u, i), a = A.range[2];
2523
- const k = new B(N, A);
2524
- t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
2523
+ if (a = w.end, w.found) {
2524
+ b && ((u == null ? void 0 : u.type) === "block-map" && !w.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && m.start < w.found.offset - 1024 && i(N.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2525
+ const k = u ? s(t, u, w, i) : e(t, a, y, null, w, i);
2526
+ t.schema.compat && ut(n.indent, u, i), a = k.range[2];
2527
+ const O = new v(N, k);
2528
+ t.options.keepSourceTokens && (O.srcToken = f), l.items.push(O);
2525
2529
  } else {
2526
- b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), S.comment && (N.comment ? N.comment += `
2527
- ` + S.comment : N.comment = S.comment);
2528
- const A = new B(N);
2529
- t.options.keepSourceTokens && (A.srcToken = f), l.items.push(A);
2530
+ b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), w.comment && (N.comment ? N.comment += `
2531
+ ` + w.comment : N.comment = w.comment);
2532
+ const k = new v(N);
2533
+ t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
2530
2534
  }
2531
2535
  }
2532
2536
  return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c ?? a], l;
@@ -2591,19 +2595,19 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2591
2595
  p && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2592
2596
  let f = n.offset + n.start.source.length;
2593
2597
  for (let m = 0; m < n.items.length; ++m) {
2594
- const b = n.items[m], { start: w, key: N, sep: S, value: A } = b, k = ue(w, {
2598
+ const b = n.items[m], { start: S, key: N, sep: w, value: k } = b, O = ue(S, {
2595
2599
  flow: l,
2596
2600
  indicator: "explicit-key-ind",
2597
- next: N ?? (S == null ? void 0 : S[0]),
2601
+ next: N ?? (w == null ? void 0 : w[0]),
2598
2602
  offset: f,
2599
2603
  onError: i,
2600
2604
  parentIndent: n.indent,
2601
2605
  startOnNewline: !1
2602
2606
  });
2603
- if (!k.found) {
2604
- if (!k.anchor && !k.tag && !S && !A) {
2605
- m === 0 && k.comma ? i(k.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : m < n.items.length - 1 && i(k.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), k.comment && (c.comment ? c.comment += `
2606
- ` + k.comment : c.comment = k.comment), f = k.end;
2607
+ if (!O.found) {
2608
+ if (!O.anchor && !O.tag && !w && !k) {
2609
+ m === 0 && O.comma ? i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : m < n.items.length - 1 && i(O.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), O.comment && (c.comment ? c.comment += `
2610
+ ` + O.comment : c.comment = O.comment), f = O.end;
2607
2611
  continue;
2608
2612
  }
2609
2613
  !o && t.options.strict && Ne(N) && i(
@@ -2614,46 +2618,46 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2614
2618
  );
2615
2619
  }
2616
2620
  if (m === 0)
2617
- k.comma && i(k.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
2618
- else if (k.comma || i(k.start, "MISSING_CHAR", `Missing , between ${l} items`), k.comment) {
2619
- let T = "";
2620
- e: for (const g of w)
2621
+ O.comma && i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
2622
+ else if (O.comma || i(O.start, "MISSING_CHAR", `Missing , between ${l} items`), O.comment) {
2623
+ let I = "";
2624
+ e: for (const g of S)
2621
2625
  switch (g.type) {
2622
2626
  case "comma":
2623
2627
  case "space":
2624
2628
  break;
2625
2629
  case "comment":
2626
- T = g.source.substring(1);
2630
+ I = g.source.substring(1);
2627
2631
  break e;
2628
2632
  default:
2629
2633
  break e;
2630
2634
  }
2631
- if (T) {
2635
+ if (I) {
2632
2636
  let g = c.items[c.items.length - 1];
2633
- I(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
2634
- ` + T : g.comment = T, k.comment = k.comment.substring(T.length + 1);
2637
+ T(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
2638
+ ` + I : g.comment = I, O.comment = O.comment.substring(I.length + 1);
2635
2639
  }
2636
2640
  }
2637
- if (!o && !S && !k.found) {
2638
- const T = A ? s(t, A, k, i) : e(t, k.end, S, null, k, i);
2639
- c.items.push(T), f = T.range[2], nt(A) && i(T.range, "BLOCK_IN_FLOW", st);
2641
+ if (!o && !w && !O.found) {
2642
+ const I = k ? s(t, k, O, i) : e(t, O.end, w, null, O, i);
2643
+ c.items.push(I), f = I.range[2], nt(k) && i(I.range, "BLOCK_IN_FLOW", st);
2640
2644
  } else {
2641
2645
  t.atKey = !0;
2642
- const T = k.end, g = N ? s(t, N, k, i) : e(t, T, w, null, k, i);
2646
+ const I = O.end, g = N ? s(t, N, O, i) : e(t, I, S, null, O, i);
2643
2647
  nt(N) && i(g.range, "BLOCK_IN_FLOW", st), t.atKey = !1;
2644
- const _ = ue(S ?? [], {
2648
+ const _ = ue(w ?? [], {
2645
2649
  flow: l,
2646
2650
  indicator: "map-value-ind",
2647
- next: A,
2651
+ next: k,
2648
2652
  offset: g.range[2],
2649
2653
  onError: i,
2650
2654
  parentIndent: n.indent,
2651
2655
  startOnNewline: !1
2652
2656
  });
2653
2657
  if (_.found) {
2654
- if (!o && !k.found && t.options.strict) {
2655
- if (S)
2656
- for (const C of S) {
2658
+ if (!o && !O.found && t.options.strict) {
2659
+ if (w)
2660
+ for (const C of w) {
2657
2661
  if (C === _.found)
2658
2662
  break;
2659
2663
  if (C.type === "newline") {
@@ -2661,16 +2665,16 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2661
2665
  break;
2662
2666
  }
2663
2667
  }
2664
- k.start < _.found.offset - 1024 && i(_.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
2668
+ O.start < _.found.offset - 1024 && i(_.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
2665
2669
  }
2666
- } else A && ("source" in A && A.source && A.source[0] === ":" ? i(A, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2667
- const J = A ? s(t, A, _, i) : _.found ? e(t, _.end, S, null, _, i) : null;
2668
- J ? nt(A) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
2670
+ } else k && ("source" in k && k.source && k.source[0] === ":" ? i(k, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2671
+ const J = k ? s(t, k, _, i) : _.found ? e(t, _.end, w, null, _, i) : null;
2672
+ J ? nt(k) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
2669
2673
  ` + _.comment : g.comment = _.comment);
2670
- const te = new B(g, J);
2674
+ const te = new v(g, J);
2671
2675
  if (t.options.keepSourceTokens && (te.srcToken = b), o) {
2672
2676
  const C = c;
2673
- gs(t, C.items, g) && i(T, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
2677
+ gs(t, C.items, g) && i(I, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
2674
2678
  } else {
2675
2679
  const C = new K(t.schema);
2676
2680
  C.flow = !0, C.items.push(te);
@@ -2718,14 +2722,14 @@ function hn(s, e, t, n, i) {
2718
2722
  else
2719
2723
  return h != null && h.collection ? i(r, "BAD_COLLECTION_TYPE", `${h.tag} used for ${l} collection, but expects ${h.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), it(s, e, t, i, o);
2720
2724
  }
2721
- const c = it(s, e, t, i, o, a), p = ((d = a.resolve) == null ? void 0 : d.call(a, c, (h) => i(r, "TAG_RESOLVE_FAILED", h), e.options)) ?? c, f = $(p) ? p : new O(p);
2725
+ const c = it(s, e, t, i, o, a), p = ((d = a.resolve) == null ? void 0 : d.call(a, c, (h) => i(r, "TAG_RESOLVE_FAILED", h), e.options)) ?? c, f = $(p) ? p : new A(p);
2722
2726
  return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
2723
2727
  }
2724
2728
  function bs(s, e, t) {
2725
2729
  const n = e.offset, i = dn(e, s.options.strict, t);
2726
2730
  if (!i)
2727
2731
  return { value: "", type: null, comment: "", range: [n, n, n] };
2728
- const r = i.mode === ">" ? O.BLOCK_FOLDED : O.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
2732
+ const r = i.mode === ">" ? A.BLOCK_FOLDED : A.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
2729
2733
  let l = o.length;
2730
2734
  for (let u = o.length - 1; u >= 0; --u) {
2731
2735
  const m = o[u][1];
@@ -2760,12 +2764,12 @@ function bs(s, e, t) {
2760
2764
  for (let u = p; u < l; ++u) {
2761
2765
  let [m, b] = o[u];
2762
2766
  c += m.length + b.length + 1;
2763
- const w = b[b.length - 1] === "\r";
2764
- if (w && (b = b.slice(0, -1)), b && m.length < a) {
2765
- const S = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
2766
- t(c - b.length - (w ? 2 : 1), "BAD_INDENT", S), m = "";
2767
+ const S = b[b.length - 1] === "\r";
2768
+ if (S && (b = b.slice(0, -1)), b && m.length < a) {
2769
+ const w = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
2770
+ t(c - b.length - (S ? 2 : 1), "BAD_INDENT", w), m = "";
2767
2771
  }
2768
- r === O.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
2772
+ r === A.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
2769
2773
  `) : m.length > a || b[0] === " " ? (d === " " ? d = `
2770
2774
  ` : !h && d === `
2771
2775
  ` && (d = `
@@ -2815,6 +2819,7 @@ function dn({ offset: s, props: e }, t, n) {
2815
2819
  switch (h.type) {
2816
2820
  case "space":
2817
2821
  c = !0;
2822
+ // fallthrough
2818
2823
  case "newline":
2819
2824
  f += h.source.length;
2820
2825
  break;
@@ -2824,6 +2829,7 @@ function dn({ offset: s, props: e }, t, n) {
2824
2829
  case "error":
2825
2830
  n(h, "UNEXPECTED_TOKEN", h.message), f += h.source.length;
2826
2831
  break;
2832
+ /* istanbul ignore next should not happen */
2827
2833
  default: {
2828
2834
  const y = `Unexpected token in block scalar header: ${h.type}`;
2829
2835
  n(h, "UNEXPECTED_TOKEN", y);
@@ -2846,14 +2852,15 @@ function ws(s, e, t) {
2846
2852
  const c = (d, h, y) => t(n + d, h, y);
2847
2853
  switch (i) {
2848
2854
  case "scalar":
2849
- l = O.PLAIN, a = mn(r, c);
2855
+ l = A.PLAIN, a = mn(r, c);
2850
2856
  break;
2851
2857
  case "single-quoted-scalar":
2852
- l = O.QUOTE_SINGLE, a = yn(r, c);
2858
+ l = A.QUOTE_SINGLE, a = yn(r, c);
2853
2859
  break;
2854
2860
  case "double-quoted-scalar":
2855
- l = O.QUOTE_DOUBLE, a = gn(r, c);
2861
+ l = A.QUOTE_DOUBLE, a = gn(r, c);
2856
2862
  break;
2863
+ /* istanbul ignore next should not happen */
2857
2864
  default:
2858
2865
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
2859
2866
  value: "",
@@ -2873,6 +2880,7 @@ function ws(s, e, t) {
2873
2880
  function mn(s, e) {
2874
2881
  let t = "";
2875
2882
  switch (s[0]) {
2883
+ /* istanbul ignore next should not happen */
2876
2884
  case " ":
2877
2885
  t = "a tab character";
2878
2886
  break;
@@ -3016,21 +3024,21 @@ function Sn(s, e, t, n) {
3016
3024
  function ks(s, e, t, n) {
3017
3025
  const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? bs(s, e, n) : ws(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null;
3018
3026
  let c;
3019
- s.options.stringKeys && s.atKey ? c = s.schema[U] : a ? c = kn(s.schema, i, a, t, n) : e.type === "scalar" ? c = Nn(s, i, e, n) : c = s.schema[U];
3027
+ s.options.stringKeys && s.atKey ? c = s.schema[R] : a ? c = kn(s.schema, i, a, t, n) : e.type === "scalar" ? c = Nn(s, i, e, n) : c = s.schema[R];
3020
3028
  let p;
3021
3029
  try {
3022
3030
  const f = c.resolve(i, (d) => n(t ?? e, "TAG_RESOLVE_FAILED", d), s.options);
3023
- p = E(f) ? f : new O(f);
3031
+ p = E(f) ? f : new A(f);
3024
3032
  } catch (f) {
3025
3033
  const d = f instanceof Error ? f.message : String(f);
3026
- n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new O(i);
3034
+ n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new A(i);
3027
3035
  }
3028
3036
  return p.range = l, p.source = i, r && (p.type = r), a && (p.tag = a), c.format && (p.format = c.format), o && (p.comment = o), p;
3029
3037
  }
3030
3038
  function kn(s, e, t, n, i) {
3031
3039
  var l;
3032
3040
  if (t === "!")
3033
- return s[U];
3041
+ return s[R];
3034
3042
  const r = [];
3035
3043
  for (const a of s.tags)
3036
3044
  if (!a.collection && a.tag === t)
@@ -3042,18 +3050,18 @@ function kn(s, e, t, n, i) {
3042
3050
  if ((l = a.test) != null && l.test(e))
3043
3051
  return a;
3044
3052
  const o = s.knownTags[t];
3045
- return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[U]);
3053
+ return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[R]);
3046
3054
  }
3047
3055
  function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
3048
3056
  const o = t.tags.find((l) => {
3049
3057
  var a;
3050
3058
  return (l.default === !0 || s && l.default === "key") && ((a = l.test) == null ? void 0 : a.test(n));
3051
- }) || t[U];
3059
+ }) || t[R];
3052
3060
  if (t.compat) {
3053
3061
  const l = t.compat.find((a) => {
3054
3062
  var c;
3055
3063
  return a.default && ((c = a.test) == null ? void 0 : c.test(n));
3056
- }) ?? t[U];
3064
+ }) ?? t[R];
3057
3065
  if (o.tag !== l.tag) {
3058
3066
  const a = e.tagString(o.tag), c = e.tagString(l.tag), p = `Value may be parsed as either ${a} or ${c}`;
3059
3067
  r(i, "TAG_RESOLVE_FAILED", p, !0);
@@ -3116,7 +3124,7 @@ function Et(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a
3116
3124
  return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
3117
3125
  }
3118
3126
  function En({ options: s }, { offset: e, source: t, end: n }, i) {
3119
- const r = new Ue(t.substring(1));
3127
+ const r = new Re(t.substring(1));
3120
3128
  r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
3121
3129
  const o = e + t.length, l = Ie(n, o, s.strict, i);
3122
3130
  return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
@@ -3174,7 +3182,7 @@ class It {
3174
3182
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3175
3183
  const o = be(t);
3176
3184
  r ? this.warnings.push(new ys(o, n, i)) : this.errors.push(new z(o, n, i));
3177
- }, this.directives = new v({ version: e.version || "1.2" }), this.options = e;
3185
+ }, this.directives = new B({ version: e.version || "1.2" }), this.options = e;
3178
3186
  }
3179
3187
  decorate(e, t) {
3180
3188
  const { comment: n, afterEmptyLine: i } = Kt(this.prelude);
@@ -3187,7 +3195,7 @@ ${n}` : n;
3187
3195
  e.commentBefore = n;
3188
3196
  else if (L(r) && !r.flow && r.items.length > 0) {
3189
3197
  let o = r.items[0];
3190
- I(o) && (o = o.key);
3198
+ T(o) && (o = o.key);
3191
3199
  const l = o.commentBefore;
3192
3200
  o.commentBefore = l ? `${n}
3193
3201
  ${l}` : n;
@@ -3487,12 +3495,12 @@ function Ke({ start: s, key: e, sep: t, value: n }) {
3487
3495
  i += r.source;
3488
3496
  return n && (i += qe(n)), i;
3489
3497
  }
3490
- const ht = Symbol("break visit"), Bn = Symbol("skip children"), As = Symbol("remove item");
3498
+ const ht = Symbol("break visit"), vn = Symbol("skip children"), As = Symbol("remove item");
3491
3499
  function Z(s, e) {
3492
3500
  "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Es(Object.freeze([]), s, e);
3493
3501
  }
3494
3502
  Z.BREAK = ht;
3495
- Z.SKIP = Bn;
3503
+ Z.SKIP = vn;
3496
3504
  Z.REMOVE = As;
3497
3505
  Z.itemAtPath = (s, e) => {
3498
3506
  let t = s;
@@ -3533,7 +3541,7 @@ function Es(s, e, t) {
3533
3541
  }
3534
3542
  return typeof n == "function" ? n(e, s) : n;
3535
3543
  }
3536
- const ze = "\uFEFF", Ze = "", xe = "", Oe = "", vn = (s) => !!s && "items" in s, Mn = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3544
+ const ze = "\uFEFF", Ze = "", xe = "", Oe = "", Bn = (s) => !!s && "items" in s, Mn = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3537
3545
  function Kn(s) {
3538
3546
  switch (s) {
3539
3547
  case ze:
@@ -3616,7 +3624,7 @@ const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3616
3624
  FLOW_END: xe,
3617
3625
  SCALAR: Oe,
3618
3626
  createScalarToken: Ln,
3619
- isCollection: vn,
3627
+ isCollection: Bn,
3620
3628
  isScalar: Mn,
3621
3629
  prettyToken: Kn,
3622
3630
  resolveAsScalar: Tn,
@@ -3790,6 +3798,7 @@ class Ts {
3790
3798
  switch (e[t]) {
3791
3799
  case "#":
3792
3800
  yield* this.pushCount(e.length - t);
3801
+ // fallthrough
3793
3802
  case void 0:
3794
3803
  return yield* this.pushNewline(), yield* this.parseLineStart();
3795
3804
  case "{":
@@ -3844,6 +3853,7 @@ class Ts {
3844
3853
  if (this.flowKey || D(o) || o === ",")
3845
3854
  return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
3846
3855
  }
3856
+ // fallthrough
3847
3857
  default:
3848
3858
  return this.flowKey = !1, yield* this.parsePlainScalar();
3849
3859
  }
@@ -3916,6 +3926,7 @@ class Ts {
3916
3926
  `)
3917
3927
  break;
3918
3928
  }
3929
+ // fallthrough
3919
3930
  default:
3920
3931
  break e;
3921
3932
  }
@@ -4002,7 +4013,9 @@ class Ts {
4002
4013
  case "&":
4003
4014
  return (yield* this.pushUntil(ot)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
4004
4015
  case "-":
4016
+ // this is an error
4005
4017
  case "?":
4018
+ // this is an error outside flow collections
4006
4019
  case ":": {
4007
4020
  const e = this.flowLevel > 0, t = this.charAt(1);
4008
4021
  if (D(t) || e && _e.has(t))
@@ -4107,6 +4120,7 @@ function Ce(s) {
4107
4120
  }
4108
4121
  case "block-seq":
4109
4122
  return s.items[s.items.length - 1].start;
4123
+ /* istanbul ignore next should not happen */
4110
4124
  default:
4111
4125
  return [];
4112
4126
  }
@@ -4283,6 +4297,7 @@ class Tt {
4283
4297
  !i || i.value ? n.items.push({ start: [], key: t, sep: [] }) : i.sep ? i.value = t : Object.assign(i, { key: t, sep: [] });
4284
4298
  return;
4285
4299
  }
4300
+ /* istanbul ignore next should not happen */
4286
4301
  default:
4287
4302
  yield* this.pop(), yield* this.pop(t);
4288
4303
  }
@@ -4377,6 +4392,7 @@ class Tt {
4377
4392
  }
4378
4393
  yield* this.pop();
4379
4394
  break;
4395
+ /* istanbul ignore next should not happen */
4380
4396
  default:
4381
4397
  yield* this.pop(), yield* this.step();
4382
4398
  }
@@ -4697,6 +4713,7 @@ class Tt {
4697
4713
  break;
4698
4714
  case "newline":
4699
4715
  this.onKeyLine = !1;
4716
+ // fallthrough
4700
4717
  case "space":
4701
4718
  case "comment":
4702
4719
  default:
@@ -4727,7 +4744,7 @@ function Cs(s, e = {}) {
4727
4744
  }
4728
4745
  return n && t && (o.errors.forEach(De(s, t)), o.warnings.forEach(De(s, t))), o;
4729
4746
  }
4730
- function Rn(s, e, t) {
4747
+ function Fn(s, e, t) {
4731
4748
  let n;
4732
4749
  typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
4733
4750
  const i = Cs(s, t);
@@ -4740,7 +4757,7 @@ function Rn(s, e, t) {
4740
4757
  }
4741
4758
  return i.toJS(Object.assign({ reviver: n }, t));
4742
4759
  }
4743
- function Un(s, e, t) {
4760
+ function Rn(s, e, t) {
4744
4761
  let n = null;
4745
4762
  if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
4746
4763
  const i = Math.round(t);
@@ -4753,17 +4770,17 @@ function Un(s, e, t) {
4753
4770
  }
4754
4771
  return ee(s) && !n ? s.toString(t) : new ge(s, n, t).toString(t);
4755
4772
  }
4756
- const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4773
+ const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4757
4774
  __proto__: null,
4758
- Alias: Ue,
4775
+ Alias: Re,
4759
4776
  CST: Pn,
4760
4777
  Composer: It,
4761
4778
  Document: ge,
4762
4779
  Lexer: Ts,
4763
4780
  LineCounter: Ls,
4764
- Pair: B,
4781
+ Pair: v,
4765
4782
  Parser: Tt,
4766
- Scalar: O,
4783
+ Scalar: A,
4767
4784
  Schema: Xe,
4768
4785
  YAMLError: At,
4769
4786
  YAMLMap: K,
@@ -4775,46 +4792,46 @@ const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4775
4792
  isDocument: ee,
4776
4793
  isMap: de,
4777
4794
  isNode: $,
4778
- isPair: I,
4795
+ isPair: T,
4779
4796
  isScalar: E,
4780
4797
  isSeq: pe,
4781
- parse: Rn,
4798
+ parse: Fn,
4782
4799
  parseAllDocuments: qn,
4783
4800
  parseDocument: Cs,
4784
- stringify: Un,
4801
+ stringify: Rn,
4785
4802
  visit: G,
4786
- visitAsync: Re
4803
+ visitAsync: Fe
4787
4804
  }, Symbol.toStringTag, { value: "Module" }));
4788
4805
  export {
4789
- Ue as Alias,
4806
+ Re as Alias,
4790
4807
  Pn as CST,
4791
4808
  It as Composer,
4792
4809
  ge as Document,
4793
4810
  Ts as Lexer,
4794
4811
  Ls as LineCounter,
4795
- B as Pair,
4812
+ v as Pair,
4796
4813
  Tt as Parser,
4797
- O as Scalar,
4814
+ A as Scalar,
4798
4815
  Xe as Schema,
4799
4816
  At as YAMLError,
4800
4817
  K as YAMLMap,
4801
4818
  z as YAMLParseError,
4802
4819
  Q as YAMLSeq,
4803
4820
  ys as YAMLWarning,
4804
- Fn as default,
4821
+ Un as default,
4805
4822
  x as isAlias,
4806
4823
  L as isCollection,
4807
4824
  ee as isDocument,
4808
4825
  de as isMap,
4809
4826
  $ as isNode,
4810
- I as isPair,
4827
+ T as isPair,
4811
4828
  E as isScalar,
4812
4829
  pe as isSeq,
4813
- Rn as parse,
4830
+ Fn as parse,
4814
4831
  qn as parseAllDocuments,
4815
4832
  Cs as parseDocument,
4816
- Un as stringify,
4833
+ Rn as stringify,
4817
4834
  G as visit,
4818
- Re as visitAsync
4835
+ Fe as visitAsync
4819
4836
  };
4820
- //# sourceMappingURL=index-CkwDvuPt.js.map
4837
+ //# sourceMappingURL=index-Dl3Yl0yb.js.map