zudoku 0.21.15 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/dist/app/demo.js +1 -1
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +1 -15
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +1 -2
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/sentry.js +1 -1
  9. package/dist/app/sentry.js.map +1 -1
  10. package/dist/app/standalone.js +1 -1
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cmds/build.js +1 -0
  13. package/dist/cli/cmds/build.js.map +1 -1
  14. package/dist/config/validators/common.d.ts +104 -104
  15. package/dist/config/validators/icon-types.d.ts +1 -1
  16. package/dist/config/validators/validate.d.ts +90 -90
  17. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  18. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  19. package/dist/lib/authentication/components/SignIn.js +1 -1
  20. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  21. package/dist/lib/authentication/components/SignOut.js +1 -1
  22. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  23. package/dist/lib/components/AnchorLink.d.ts +1 -1
  24. package/dist/lib/components/AnchorLink.js +1 -1
  25. package/dist/lib/components/AnchorLink.js.map +1 -1
  26. package/dist/lib/components/Bootstrap.d.ts +1 -2
  27. package/dist/lib/components/Bootstrap.js +3 -3
  28. package/dist/lib/components/Bootstrap.js.map +1 -1
  29. package/dist/lib/components/Header.js +1 -1
  30. package/dist/lib/components/Header.js.map +1 -1
  31. package/dist/lib/components/Layout.js +1 -1
  32. package/dist/lib/components/Layout.js.map +1 -1
  33. package/dist/lib/components/Markdown.js +1 -1
  34. package/dist/lib/components/Markdown.js.map +1 -1
  35. package/dist/lib/components/NotFoundPage.js +1 -1
  36. package/dist/lib/components/NotFoundPage.js.map +1 -1
  37. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  38. package/dist/lib/components/ReactMarkdown.js +182 -0
  39. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  40. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  41. package/dist/lib/components/TopNavigation.js +1 -1
  42. package/dist/lib/components/TopNavigation.js.map +1 -1
  43. package/dist/lib/components/Zudoku.js +1 -1
  44. package/dist/lib/components/Zudoku.js.map +1 -1
  45. package/dist/lib/components/context/ZudokuContext.js +1 -1
  46. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  47. package/dist/lib/components/index.d.ts +4 -4
  48. package/dist/lib/components/index.js +1 -1
  49. package/dist/lib/components/index.js.map +1 -1
  50. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  51. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  52. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  53. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  54. package/dist/lib/components/navigation/utils.js +1 -1
  55. package/dist/lib/components/navigation/utils.js.map +1 -1
  56. package/dist/lib/core/plugins.d.ts +3 -5
  57. package/dist/lib/core/plugins.js.map +1 -1
  58. package/dist/lib/errors/RouterError.js +1 -1
  59. package/dist/lib/errors/RouterError.js.map +1 -1
  60. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  61. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  62. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  63. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  64. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  65. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  66. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  67. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  68. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  69. package/dist/lib/plugins/markdown/index.js.map +1 -1
  70. package/dist/lib/plugins/openapi/Route.js +1 -1
  71. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  72. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  73. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  74. package/dist/lib/plugins/openapi/index.js +1 -1
  75. package/dist/lib/plugins/openapi/index.js.map +1 -1
  76. package/dist/lib/plugins/redirect/index.js +1 -1
  77. package/dist/lib/plugins/redirect/index.js.map +1 -1
  78. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  79. package/dist/lib/plugins/search-inkeep/index.js +27 -5
  80. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  81. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  82. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  83. package/dist/lib/util/MdxComponents.d.ts +16 -16
  84. package/dist/lib/util/MdxComponents.js +1 -3
  85. package/dist/lib/util/MdxComponents.js.map +1 -1
  86. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  87. package/dist/lib/util/useExposedProps.js +1 -1
  88. package/dist/lib/util/useExposedProps.js.map +1 -1
  89. package/dist/lib/util/useOnScreen.d.ts +1 -1
  90. package/dist/lib/util/useScrollToAnchor.js +1 -1
  91. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  92. package/dist/lib/util/useScrollToTop.js +1 -1
  93. package/dist/lib/util/useScrollToTop.js.map +1 -1
  94. package/dist/vite/config.js +15 -8
  95. package/dist/vite/config.js.map +1 -1
  96. package/dist/vite/css/collect.d.ts +2 -0
  97. package/dist/vite/css/collect.js +27 -0
  98. package/dist/vite/css/collect.js.map +1 -0
  99. package/dist/vite/css/plugin.d.ts +5 -0
  100. package/dist/vite/css/plugin.js +79 -0
  101. package/dist/vite/css/plugin.js.map +1 -0
  102. package/dist/vite/dev-server.js +7 -3
  103. package/dist/vite/dev-server.js.map +1 -1
  104. package/dist/vite/plugin-mdx.js +2 -0
  105. package/dist/vite/plugin-mdx.js.map +1 -1
  106. package/dist/vite/plugin.js +4 -0
  107. package/dist/vite/plugin.js.map +1 -1
  108. package/lib/{AnchorLink-BR0MvI7n.js → AnchorLink-DFZZbmvr.js} +13 -14
  109. package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
  110. package/lib/{AuthenticationPlugin-D0Em0SwR.js → AuthenticationPlugin-DQy635W9.js} +15 -16
  111. package/lib/AuthenticationPlugin-DQy635W9.js.map +1 -0
  112. package/lib/{Button-jK0EsymC.js → Button-DeAoTouo.js} +4 -4
  113. package/lib/{Button-jK0EsymC.js.map → Button-DeAoTouo.js.map} +1 -1
  114. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-CBconmtI.js} +3 -3
  115. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
  116. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  117. package/lib/{Dialog-k70Qfukb.js → Dialog-Bxv1yEIg.js} +3 -3
  118. package/lib/{Dialog-k70Qfukb.js.map → Dialog-Bxv1yEIg.js.map} +1 -1
  119. package/lib/{Markdown-CdkU5HcM.js → Markdown-CZDLNOFc.js} +13235 -13225
  120. package/lib/Markdown-CZDLNOFc.js.map +1 -0
  121. package/lib/{MdxPage-ChziqNPp.js → MdxPage-CBa4X6L5.js} +9 -9
  122. package/lib/MdxPage-CBa4X6L5.js.map +1 -0
  123. package/lib/OperationList-Bj-6EKhp.js +4889 -0
  124. package/lib/{OperationList-CQKkyrZH.js.map → OperationList-Bj-6EKhp.js.map} +1 -1
  125. package/lib/Route-C9cYcP-j.js +11 -0
  126. package/lib/Route-C9cYcP-j.js.map +1 -0
  127. package/lib/{Select-O9ZM3ZgX.js → Select-Bb_Hqc70.js} +5 -5
  128. package/lib/{Select-O9ZM3ZgX.js.map → Select-Bb_Hqc70.js.map} +1 -1
  129. package/lib/{SidebarBadge-DxFJcJ6V.js → SidebarBadge-Bm793GDY.js} +3 -3
  130. package/lib/{SidebarBadge-DxFJcJ6V.js.map → SidebarBadge-Bm793GDY.js.map} +1 -1
  131. package/lib/SlotletProvider-pfc9oejW.js +221 -0
  132. package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
  133. package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
  134. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
  135. package/lib/{SyntaxHighlight-C31iouiO.js → SyntaxHighlight-Bz-lOJtH.js} +8 -10
  136. package/lib/{SyntaxHighlight-C31iouiO.js.map → SyntaxHighlight-Bz-lOJtH.js.map} +1 -1
  137. package/lib/assets/{index-B_Jk_Yzp.js → index-C7jnHK4b.js} +218 -197
  138. package/lib/assets/index-C7jnHK4b.js.map +1 -0
  139. package/lib/assets/{worker-C_2va8B8.js → worker-BmEAZjUP.js} +5249 -4922
  140. package/lib/assets/worker-BmEAZjUP.js.map +1 -0
  141. package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
  142. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
  143. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  144. package/lib/cn-qaFjX9_3.js.map +1 -0
  145. package/lib/{context-D1nXWxm7.js → context-h_UkBLvr.js} +2 -2
  146. package/lib/{context-D1nXWxm7.js.map → context-h_UkBLvr.js.map} +1 -1
  147. package/lib/{createServer-BCAHdrpE.js → createServer-BVFp6Bl3.js} +4521 -4195
  148. package/lib/createServer-BVFp6Bl3.js.map +1 -0
  149. package/lib/{hook-hEqe7fPB.js → hook-DMHiUaIV.js} +3 -3
  150. package/lib/{hook-hEqe7fPB.js.map → hook-DMHiUaIV.js.map} +1 -1
  151. package/lib/{index-DjB6H4GT.js → index-B6rTMjdI.js} +47 -47
  152. package/lib/{index-DjB6H4GT.js.map → index-B6rTMjdI.js.map} +1 -1
  153. package/lib/{index-CkwDvuPt.js → index-CBXSgjaE.js} +259 -238
  154. package/lib/index-CBXSgjaE.js.map +1 -0
  155. package/lib/index-CPNSgwSb.js +36 -0
  156. package/lib/index-CPNSgwSb.js.map +1 -0
  157. package/lib/index-LNp6rxyU.js.map +1 -1
  158. package/lib/index.esm-BSV1C092.js +692 -0
  159. package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-BSV1C092.js.map} +1 -1
  160. package/lib/index.esm-BnnBRKJX.js +1214 -0
  161. package/lib/index.esm-BnnBRKJX.js.map +1 -0
  162. package/lib/invariant-Caa8-XvF.js.map +1 -1
  163. package/lib/jsx-runtime-Dx-03ztt.js +446 -0
  164. package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
  165. package/lib/object_hash-BNWPnMN9.js +787 -0
  166. package/lib/object_hash-BNWPnMN9.js.map +1 -0
  167. package/lib/post-processors/removeExtensions.js.map +1 -1
  168. package/lib/post-processors/removePaths.js.map +1 -1
  169. package/lib/post-processors/traverse.js.map +1 -1
  170. package/lib/prism-csharp.min-DUwvItt4.js +63 -0
  171. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
  172. package/lib/prism-java.min-BtgBR4yd.js +35 -0
  173. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
  174. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  175. package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
  176. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
  177. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  178. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  179. package/lib/state-CFQsUZUP.js +202 -0
  180. package/lib/state-CFQsUZUP.js.map +1 -0
  181. package/lib/ui/Accordion.js +2 -2
  182. package/lib/ui/Accordion.js.map +1 -1
  183. package/lib/ui/ActionButton.js +4 -4
  184. package/lib/ui/ActionButton.js.map +1 -1
  185. package/lib/ui/Alert.js +3 -3
  186. package/lib/ui/Alert.js.map +1 -1
  187. package/lib/ui/AlertDialog.js +2 -2
  188. package/lib/ui/AlertDialog.js.map +1 -1
  189. package/lib/ui/Badge.js +3 -3
  190. package/lib/ui/Badge.js.map +1 -1
  191. package/lib/ui/Breadcrumb.js +2 -2
  192. package/lib/ui/Breadcrumb.js.map +1 -1
  193. package/lib/ui/Button.js +3 -3
  194. package/lib/ui/Button.js.map +1 -1
  195. package/lib/ui/Callout.js +2 -2
  196. package/lib/ui/Callout.js.map +1 -1
  197. package/lib/ui/Card.js +2 -2
  198. package/lib/ui/Card.js.map +1 -1
  199. package/lib/ui/Carousel.js +407 -401
  200. package/lib/ui/Carousel.js.map +1 -1
  201. package/lib/ui/Checkbox.js +2 -2
  202. package/lib/ui/Checkbox.js.map +1 -1
  203. package/lib/ui/Command.js +111 -108
  204. package/lib/ui/Command.js.map +1 -1
  205. package/lib/ui/Dialog.js +2 -2
  206. package/lib/ui/Dialog.js.map +1 -1
  207. package/lib/ui/Drawer.js +2 -2
  208. package/lib/ui/Drawer.js.map +1 -1
  209. package/lib/ui/DropdownMenu.js +2 -2
  210. package/lib/ui/DropdownMenu.js.map +1 -1
  211. package/lib/ui/Form.js +3 -3
  212. package/lib/ui/Form.js.map +1 -1
  213. package/lib/ui/HoverCard.js +2 -2
  214. package/lib/ui/Input.js +2 -2
  215. package/lib/ui/Input.js.map +1 -1
  216. package/lib/ui/Label.js +3 -3
  217. package/lib/ui/Pagination.js +2 -2
  218. package/lib/ui/Pagination.js.map +1 -1
  219. package/lib/ui/Popover.js +2 -2
  220. package/lib/ui/Popover.js.map +1 -1
  221. package/lib/ui/Progress.js +2 -2
  222. package/lib/ui/Progress.js.map +1 -1
  223. package/lib/ui/RadioGroup.js +2 -2
  224. package/lib/ui/RadioGroup.js.map +1 -1
  225. package/lib/ui/ScrollArea.js +2 -2
  226. package/lib/ui/ScrollArea.js.map +1 -1
  227. package/lib/ui/Select.js +2 -2
  228. package/lib/ui/Select.js.map +1 -1
  229. package/lib/ui/Skeleton.js +2 -2
  230. package/lib/ui/Skeleton.js.map +1 -1
  231. package/lib/ui/Slider.js +2 -2
  232. package/lib/ui/Switch.js +2 -2
  233. package/lib/ui/Switch.js.map +1 -1
  234. package/lib/ui/Tabs.js +2 -2
  235. package/lib/ui/Textarea.js +2 -2
  236. package/lib/ui/Textarea.js.map +1 -1
  237. package/lib/ui/Toggle.js +3 -3
  238. package/lib/ui/Toggle.js.map +1 -1
  239. package/lib/ui/ToggleGroup.js +2 -2
  240. package/lib/ui/ToggleGroup.js.map +1 -1
  241. package/lib/ui/Tooltip.js +2 -2
  242. package/lib/useExposedProps-DE9lR6MF.js +9 -0
  243. package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
  244. package/lib/{utils-DcpDOncX.js → utils-R0j3Raw1.js} +30 -31
  245. package/lib/{utils-DcpDOncX.js.map → utils-R0j3Raw1.js.map} +1 -1
  246. package/lib/zudoku.auth-auth0.js +1 -1
  247. package/lib/zudoku.auth-auth0.js.map +1 -1
  248. package/lib/zudoku.auth-clerk.js +2 -2
  249. package/lib/zudoku.auth-clerk.js.map +1 -1
  250. package/lib/zudoku.auth-openid.js +348 -346
  251. package/lib/zudoku.auth-openid.js.map +1 -1
  252. package/lib/zudoku.components.js +679 -939
  253. package/lib/zudoku.components.js.map +1 -1
  254. package/lib/zudoku.openapi-worker.js +1 -1
  255. package/lib/zudoku.openapi-worker.js.map +1 -1
  256. package/lib/zudoku.plugin-api-catalog.js +3 -3
  257. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  258. package/lib/zudoku.plugin-api-keys.js +15 -16
  259. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  260. package/lib/zudoku.plugin-custom-pages.js +4 -4
  261. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  262. package/lib/zudoku.plugin-markdown.js +2 -2
  263. package/lib/zudoku.plugin-markdown.js.map +1 -1
  264. package/lib/zudoku.plugin-openapi.js +5 -5
  265. package/lib/zudoku.plugin-redirect.js +1 -1
  266. package/lib/zudoku.plugin-redirect.js.map +1 -1
  267. package/lib/zudoku.plugin-search-inkeep.js +45 -24
  268. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  269. package/package.json +43 -37
  270. package/src/app/demo.tsx +1 -1
  271. package/src/app/entry.client.tsx +1 -15
  272. package/src/app/entry.server.tsx +2 -2
  273. package/src/app/main.tsx +1 -1
  274. package/src/app/sentry.ts +1 -1
  275. package/src/app/standalone.tsx +1 -1
  276. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  277. package/src/lib/authentication/components/SignIn.tsx +1 -1
  278. package/src/lib/authentication/components/SignOut.tsx +1 -1
  279. package/src/lib/components/AnchorLink.tsx +1 -1
  280. package/src/lib/components/Bootstrap.tsx +4 -6
  281. package/src/lib/components/Header.tsx +1 -1
  282. package/src/lib/components/Layout.tsx +1 -1
  283. package/src/lib/components/Markdown.tsx +1 -1
  284. package/src/lib/components/NotFoundPage.tsx +1 -1
  285. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  286. package/src/lib/components/ReactMarkdown.tsx +264 -0
  287. package/src/lib/components/SlotletProvider.tsx +1 -1
  288. package/src/lib/components/TopNavigation.tsx +1 -1
  289. package/src/lib/components/Zudoku.tsx +1 -1
  290. package/src/lib/components/context/ZudokuContext.ts +1 -1
  291. package/src/lib/components/index.ts +1 -1
  292. package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
  293. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  294. package/src/lib/components/navigation/utils.ts +1 -1
  295. package/src/lib/core/plugins.ts +3 -7
  296. package/src/lib/errors/RouterError.tsx +1 -1
  297. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  298. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  299. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  300. package/src/lib/plugins/api-keys/index.tsx +1 -1
  301. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  302. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  303. package/src/lib/plugins/markdown/index.tsx +2 -1
  304. package/src/lib/plugins/openapi/Route.tsx +1 -1
  305. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  306. package/src/lib/plugins/openapi/index.tsx +1 -1
  307. package/src/lib/plugins/redirect/index.tsx +1 -1
  308. package/src/lib/plugins/search-inkeep/index.tsx +59 -23
  309. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  310. package/src/lib/util/MdxComponents.tsx +1 -3
  311. package/src/lib/util/createVariantComponent.tsx +2 -2
  312. package/src/lib/util/useExposedProps.tsx +1 -1
  313. package/src/lib/util/useScrollToAnchor.ts +1 -1
  314. package/src/lib/util/useScrollToTop.ts +1 -1
  315. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  316. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  317. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  318. package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
  319. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
  320. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  321. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  322. package/lib/Markdown-CdkU5HcM.js.map +0 -1
  323. package/lib/MdxPage-ChziqNPp.js.map +0 -1
  324. package/lib/OperationList-CQKkyrZH.js +0 -4706
  325. package/lib/Route-DlG_HTMu.js +0 -11
  326. package/lib/Route-DlG_HTMu.js.map +0 -1
  327. package/lib/SlotletProvider-D77pO-fA.js +0 -252
  328. package/lib/SlotletProvider-D77pO-fA.js.map +0 -1
  329. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  330. package/lib/assets/worker-C_2va8B8.js.map +0 -1
  331. package/lib/cn-BmFQLtkS.js.map +0 -1
  332. package/lib/createServer-BCAHdrpE.js.map +0 -1
  333. package/lib/index-BuAyrJe3.js +0 -46
  334. package/lib/index-BuAyrJe3.js.map +0 -1
  335. package/lib/index-CkwDvuPt.js.map +0 -1
  336. package/lib/index-Czzd9rjU.js +0 -899
  337. package/lib/index-Czzd9rjU.js.map +0 -1
  338. package/lib/index-Yn8c3UWE.js +0 -921
  339. package/lib/index-Yn8c3UWE.js.map +0 -1
  340. package/lib/index.esm-Bm8pj-bc.js +0 -675
  341. package/lib/index.esm-C5mr_sKO.js +0 -1193
  342. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  343. package/lib/jsx-runtime-B6kdoens.js +0 -635
  344. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  345. package/lib/object_hash-CvlLgU-M.js +0 -785
  346. package/lib/object_hash-CvlLgU-M.js.map +0 -1
  347. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  348. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  349. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  350. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  351. package/lib/router-lfyopgBI.js +0 -3024
  352. package/lib/router-lfyopgBI.js.map +0 -1
  353. package/lib/state-tsXBLONe.js +0 -203
  354. package/lib/state-tsXBLONe.js.map +0 -1
  355. package/lib/useExposedProps-CTPtylCV.js +0 -10
  356. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  357. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
@@ -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;
@@ -669,7 +669,7 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
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
675
  const S = u > b + 1 ? u - 2 : m - 1;
@@ -686,10 +686,10 @@ function Fe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
686
686
  o && o();
687
687
  let w = 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;
689
+ const S = c[N], k = c[N + 1] || s.length;
690
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)}`);
691
+ ${e}${s.slice(0, k)}` : (t === Be && p[S] && (w += `${s[S]}\\`), w += `
692
+ ${e}${s.slice(S + 1, k)}`);
693
693
  }
694
694
  return w;
695
695
  }
@@ -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
  ` : `>
@@ -851,17 +851,24 @@ function Me({ comment: s, type: e, value: t }, n, i, r) {
851
851
  }
852
852
  let w = t.substring(0, b < m ? b + 1 : m);
853
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, `
854
+ let S = (u ? c ? "2" : "1" : "") + f;
855
+ if (s && (S += " " + 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(`${w}${k}${h}`, c, at, I);
864
+ if (!O)
865
+ return `>${S}
866
+ ${c}${g}`;
867
+ }
868
+ return t = t.replace(/\n+/g, `$&${c}`), `|${S}
869
+ ${c}${w}${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),
@@ -1046,35 +1053,35 @@ ${l}:`) : (m = `${m}:`, d && (m += H(m, t.indent, c(d))));
1046
1053
  let b, w, N;
1047
1054
  $(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
1055
  let S = !1;
1049
- const A = fe(e, t, () => S = !0, () => u = !0);
1050
- let k = " ";
1056
+ const k = fe(e, t, () => S = !0, () => u = !0);
1057
+ let O = " ";
1051
1058
  if (d || b || w) {
1052
- if (k = b ? `
1059
+ if (O = b ? `
1053
1060
  ` : "", w) {
1054
- const T = c(w);
1055
- k += `
1056
- ${F(T, t.indent)}`;
1061
+ const I = c(w);
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 ? S && n && n() : N && !S ? m += H(m, t.indent, c(N)) : u && i && i(), m;
1078
1085
  }
1079
1086
  function zt(s, e) {
1080
1087
  (s === "debug" || s === "warn") && (typeof process < "u" && process.emitWarning ? process.emitWarning(e) : console.warn(e));
@@ -1084,11 +1091,11 @@ const Te = "<<", V = {
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,7 +1195,7 @@ 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)) {
1198
+ else if (T(u)) {
1192
1199
  const w = $(u.key) ? u.key : null;
1193
1200
  w && (!f && w.spaceBefore && d.push(""), je(t, d, w.commentBefore, f));
1194
1201
  }
@@ -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,7 +1233,7 @@ 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)) {
1236
+ else if (T(u)) {
1230
1237
  const w = $(u.key) ? u.key : null;
1231
1238
  w && (w.spaceBefore && f.push(""), je(e, f, w.commentBefore, !1), w.comment && (c = !0));
1232
1239
  const N = $(u.value) ? u.value : 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
  },
@@ -1667,11 +1674,11 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
1667
1674
  l = btoa(a);
1668
1675
  } else
1669
1676
  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) {
1677
+ if (e || (e = A.BLOCK_LITERAL), e !== A.QUOTE_DOUBLE) {
1671
1678
  const a = Math.max(n.options.lineWidth - n.indent.length, n.options.minContentWidth), c = Math.ceil(l.length / a), p = new Array(c);
1672
1679
  for (let f = 0, d = 0; f < c; ++f, d += a)
1673
1680
  p[f] = l.substr(d, a);
1674
- l = p.join(e === O.BLOCK_LITERAL ? `
1681
+ l = p.join(e === A.BLOCK_LITERAL ? `
1675
1682
  ` : " ");
1676
1683
  }
1677
1684
  return Ae({ comment: s, type: e, value: l }, n, i, r);
@@ -1681,10 +1688,10 @@ function as(s, e) {
1681
1688
  if (pe(s))
1682
1689
  for (let t = 0; t < s.items.length; ++t) {
1683
1690
  let n = s.items[t];
1684
- if (!I(n)) {
1691
+ if (!T(n)) {
1685
1692
  if (de(n)) {
1686
1693
  n.items.length > 1 && e("Each pair must have its own sequence indicator");
1687
- const i = n.items[0] || new B(new O(null));
1694
+ const i = n.items[0] || new v(new A(null));
1688
1695
  if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
1689
1696
  ${i.key.commentBefore}` : n.commentBefore), n.comment) {
1690
1697
  const r = i.value ?? i.key;
@@ -1693,7 +1700,7 @@ ${r.comment}` : n.comment;
1693
1700
  }
1694
1701
  n = i;
1695
1702
  }
1696
- s.items[t] = I(n) ? n : new B(n);
1703
+ s.items[t] = T(n) ? n : new v(n);
1697
1704
  }
1698
1705
  }
1699
1706
  else
@@ -1747,7 +1754,7 @@ class ae extends Q {
1747
1754
  t != null && t.onCreate && t.onCreate(n);
1748
1755
  for (const i of this.items) {
1749
1756
  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))
1757
+ if (T(i) ? (r = P(i.key, "", t), o = P(i.value, r, t)) : r = P(i, "", t), n.has(r))
1751
1758
  throw new Error("Ordered maps must not include duplicate keys");
1752
1759
  n.set(r, o);
1753
1760
  }
@@ -1781,14 +1788,14 @@ const us = {
1781
1788
  default: !0,
1782
1789
  tag: "tag:yaml.org,2002:bool",
1783
1790
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1784
- resolve: () => new O(!0),
1791
+ resolve: () => new A(!0),
1785
1792
  stringify: fs
1786
1793
  }, hs = {
1787
1794
  identify: (s) => s === !1,
1788
1795
  default: !0,
1789
1796
  tag: "tag:yaml.org,2002:bool",
1790
1797
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1791
- resolve: () => new O(!1),
1798
+ resolve: () => new A(!1),
1792
1799
  stringify: fs
1793
1800
  }, Zs = {
1794
1801
  identify: (s) => typeof s == "number",
@@ -1814,7 +1821,7 @@ const us = {
1814
1821
  tag: "tag:yaml.org,2002:float",
1815
1822
  test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
1816
1823
  resolve(s) {
1817
- const e = new O(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
1824
+ const e = new A(parseFloat(s.replace(/_/g, ""))), t = s.indexOf(".");
1818
1825
  if (t !== -1) {
1819
1826
  const n = s.substring(t + 1).replace(/_/g, "");
1820
1827
  n[n.length - 1] === "0" && (e.minFractionDigits = n.length);
@@ -1889,7 +1896,7 @@ class ce extends K {
1889
1896
  }
1890
1897
  add(e) {
1891
1898
  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);
1899
+ 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
1900
  }
1894
1901
  /**
1895
1902
  * If `keepPair` is `true`, returns the Pair matching `key`.
@@ -1897,13 +1904,13 @@ class ce extends K {
1897
1904
  */
1898
1905
  get(e, t) {
1899
1906
  const n = X(this.items, e);
1900
- return !t && I(n) ? E(n.key) ? n.key.value : n.key : n;
1907
+ return !t && T(n) ? E(n.key) ? n.key.value : n.key : n;
1901
1908
  }
1902
1909
  set(e, t) {
1903
1910
  if (typeof t != "boolean")
1904
1911
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
1905
1912
  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));
1913
+ n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new v(e));
1907
1914
  }
1908
1915
  toJSON(e, t) {
1909
1916
  return super.toJSON(e, t, Set);
@@ -1993,7 +2000,7 @@ const ps = {
1993
2000
  }
1994
2001
  return new Date(c);
1995
2002
  },
1996
- stringify: ({ value: s }) => s.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "")
2003
+ stringify: ({ value: s }) => s.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
1997
2004
  }, Ct = [
1998
2005
  me,
1999
2006
  ye,
@@ -2016,13 +2023,13 @@ const ps = {
2016
2023
  ps,
2017
2024
  ms,
2018
2025
  He
2019
- ], Bt = /* @__PURE__ */ new Map([
2026
+ ], vt = /* @__PURE__ */ new Map([
2020
2027
  ["core", Ws],
2021
2028
  ["failsafe", [me, ye, Ye]],
2022
2029
  ["json", zs],
2023
2030
  ["yaml11", Ct],
2024
2031
  ["yaml-1.1", Ct]
2025
- ]), vt = {
2032
+ ]), Bt = {
2026
2033
  binary: bt,
2027
2034
  bool: yt,
2028
2035
  float: ns,
@@ -2050,7 +2057,7 @@ const ps = {
2050
2057
  "tag:yaml.org,2002:timestamp": He
2051
2058
  };
2052
2059
  function tt(s, e, t) {
2053
- const n = Bt.get(e);
2060
+ const n = vt.get(e);
2054
2061
  if (n && !s)
2055
2062
  return t && !n.includes(V) ? n.concat(V) : n.slice();
2056
2063
  let i = n;
@@ -2058,7 +2065,7 @@ function tt(s, e, t) {
2058
2065
  if (Array.isArray(s))
2059
2066
  i = [];
2060
2067
  else {
2061
- const r = Array.from(Bt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
2068
+ const r = Array.from(vt.keys()).filter((o) => o !== "yaml11").map((o) => JSON.stringify(o)).join(", ");
2062
2069
  throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`);
2063
2070
  }
2064
2071
  if (Array.isArray(s))
@@ -2066,9 +2073,9 @@ function tt(s, e, t) {
2066
2073
  i = i.concat(r);
2067
2074
  else typeof s == "function" && (i = s(i.slice()));
2068
2075
  return t && (i = i.concat(V)), i.reduce((r, o) => {
2069
- const l = typeof o == "string" ? vt[o] : o;
2076
+ const l = typeof o == "string" ? Bt[o] : o;
2070
2077
  if (!l) {
2071
- const a = JSON.stringify(o), c = Object.keys(vt).map((p) => JSON.stringify(p)).join(", ");
2078
+ const a = JSON.stringify(o), c = Object.keys(Bt).map((p) => JSON.stringify(p)).join(", ");
2072
2079
  throw new Error(`Unknown custom tag ${a}; use one of ${c}`);
2073
2080
  }
2074
2081
  return r.includes(l) || r.push(l), r;
@@ -2077,7 +2084,7 @@ function tt(s, e, t) {
2077
2084
  const ln = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2078
2085
  class Xe {
2079
2086
  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;
2087
+ 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
2088
  }
2082
2089
  clone() {
2083
2090
  const e = Object.create(Xe.prototype, Object.getOwnPropertyDescriptors(this));
@@ -2097,14 +2104,14 @@ function an(s, e) {
2097
2104
  if (s.commentBefore) {
2098
2105
  t.length !== 1 && t.unshift("");
2099
2106
  const c = r(s.commentBefore);
2100
- t.unshift(F(c, ""));
2107
+ t.unshift(U(c, ""));
2101
2108
  }
2102
2109
  let o = !1, l = null;
2103
2110
  if (s.contents) {
2104
2111
  if ($(s.contents)) {
2105
2112
  if (s.contents.spaceBefore && n && t.push(""), s.contents.commentBefore) {
2106
2113
  const f = r(s.contents.commentBefore);
2107
- t.push(F(f, ""));
2114
+ t.push(U(f, ""));
2108
2115
  }
2109
2116
  i.forceBlockIndent = !!s.comment, l = s.contents.comment;
2110
2117
  }
@@ -2117,12 +2124,12 @@ function an(s, e) {
2117
2124
  if (s.comment) {
2118
2125
  const c = r(s.comment);
2119
2126
  c.includes(`
2120
- `) ? (t.push("..."), t.push(F(c, ""))) : t.push(`... ${c}`);
2127
+ `) ? (t.push("..."), t.push(U(c, ""))) : t.push(`... ${c}`);
2121
2128
  } else
2122
2129
  t.push("...");
2123
2130
  else {
2124
2131
  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), "")));
2132
+ c && o && (c = c.replace(/^\n+/, "")), c && ((!o || l) && t[t.length - 1] !== "" && t.push(""), t.push(U(r(c), "")));
2126
2133
  }
2127
2134
  return t.join(`
2128
2135
  `) + `
@@ -2145,7 +2152,7 @@ class ge {
2145
2152
  }, n);
2146
2153
  this.options = r;
2147
2154
  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);
2155
+ 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
2156
  }
2150
2157
  /**
2151
2158
  * Create a deep copy of this Document and its contents.
@@ -2181,7 +2188,7 @@ class ge {
2181
2188
  e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2182
2189
  !t || n.has(t) ? Gt(t || "a", n) : t;
2183
2190
  }
2184
- return new Ue(e.anchor);
2191
+ return new Re(e.anchor);
2185
2192
  }
2186
2193
  createNode(e, t, n) {
2187
2194
  let i;
@@ -2212,7 +2219,7 @@ class ge {
2212
2219
  */
2213
2220
  createPair(e, t, n = {}) {
2214
2221
  const i = this.createNode(e, null, n), r = this.createNode(t, null, n);
2215
- return new B(i, r);
2222
+ return new v(i, r);
2216
2223
  }
2217
2224
  /**
2218
2225
  * Removes a value from the document.
@@ -2282,11 +2289,11 @@ class ge {
2282
2289
  let n;
2283
2290
  switch (e) {
2284
2291
  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" };
2292
+ this.directives ? this.directives.yaml.version = "1.1" : this.directives = new B({ version: "1.1" }), n = { resolveKnownTags: !1, schema: "yaml-1.1" };
2286
2293
  break;
2287
2294
  case "1.2":
2288
2295
  case "next":
2289
- this.directives ? this.directives.yaml.version = e : this.directives = new v({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
2296
+ this.directives ? this.directives.yaml.version = e : this.directives = new B({ version: e }), n = { resolveKnownTags: !0, schema: "core" };
2290
2297
  break;
2291
2298
  case null:
2292
2299
  this.directives && delete this.directives, n = null;
@@ -2387,7 +2394,7 @@ ${c}
2387
2394
  }
2388
2395
  };
2389
2396
  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;
2397
+ 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, k = null;
2391
2398
  for (const g of s)
2392
2399
  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
2400
  case "space":
@@ -2403,10 +2410,10 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
2403
2410
  c ? f ? f += g.source : a = !0 : d += g.source, c = !0, h = !0, (m || b) && (w = g), p = !0;
2404
2411
  break;
2405
2412
  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;
2413
+ 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
2414
  break;
2408
2415
  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;
2416
+ 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
2417
  break;
2411
2418
  }
2412
2419
  case t:
@@ -2417,10 +2424,11 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
2417
2424
  N && r(g, "UNEXPECTED_TOKEN", `Unexpected , in ${e}`), N = g, c = !1, p = !1;
2418
2425
  break;
2419
2426
  }
2427
+ // else fallthrough
2420
2428
  default:
2421
2429
  r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.type} token`), c = !1, p = !1;
2422
2430
  }
2423
- const k = s[s.length - 1], T = k ? k.offset + k.source.length : i;
2431
+ const O = s[s.length - 1], I = O ? O.offset + O.source.length : i;
2424
2432
  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
2433
  comma: N,
2426
2434
  found: S,
@@ -2430,8 +2438,8 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
2430
2438
  anchor: m,
2431
2439
  tag: b,
2432
2440
  newlineAfterProp: w,
2433
- end: T,
2434
- start: A ?? T
2441
+ end: I,
2442
+ start: k ?? I
2435
2443
  };
2436
2444
  }
2437
2445
  function Ne(s) {
@@ -2518,15 +2526,15 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2518
2526
  });
2519
2527
  if (a = S.end, S.found) {
2520
2528
  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);
2529
+ const k = u ? s(t, u, S, i) : e(t, a, y, null, S, i);
2530
+ t.schema.compat && ut(n.indent, u, i), a = k.range[2];
2531
+ const O = new v(N, k);
2532
+ t.options.keepSourceTokens && (O.srcToken = f), l.items.push(O);
2525
2533
  } else {
2526
2534
  b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), S.comment && (N.comment ? N.comment += `
2527
2535
  ` + S.comment : N.comment = S.comment);
2528
- const A = new B(N);
2529
- t.options.keepSourceTokens && (A.srcToken = f), l.items.push(A);
2536
+ const k = new v(N);
2537
+ t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
2530
2538
  }
2531
2539
  }
2532
2540
  return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c ?? a], l;
@@ -2591,7 +2599,7 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2591
2599
  p && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2592
2600
  let f = n.offset + n.start.source.length;
2593
2601
  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, {
2602
+ const b = n.items[m], { start: w, key: N, sep: S, value: k } = b, O = ue(w, {
2595
2603
  flow: l,
2596
2604
  indicator: "explicit-key-ind",
2597
2605
  next: N ?? (S == null ? void 0 : S[0]),
@@ -2600,10 +2608,10 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2600
2608
  parentIndent: n.indent,
2601
2609
  startOnNewline: !1
2602
2610
  });
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;
2611
+ if (!O.found) {
2612
+ if (!O.anchor && !O.tag && !S && !k) {
2613
+ 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 += `
2614
+ ` + O.comment : c.comment = O.comment), f = O.end;
2607
2615
  continue;
2608
2616
  }
2609
2617
  !o && t.options.strict && Ne(N) && i(
@@ -2614,44 +2622,44 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2614
2622
  );
2615
2623
  }
2616
2624
  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 = "";
2625
+ O.comma && i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
2626
+ else if (O.comma || i(O.start, "MISSING_CHAR", `Missing , between ${l} items`), O.comment) {
2627
+ let I = "";
2620
2628
  e: for (const g of w)
2621
2629
  switch (g.type) {
2622
2630
  case "comma":
2623
2631
  case "space":
2624
2632
  break;
2625
2633
  case "comment":
2626
- T = g.source.substring(1);
2634
+ I = g.source.substring(1);
2627
2635
  break e;
2628
2636
  default:
2629
2637
  break e;
2630
2638
  }
2631
- if (T) {
2639
+ if (I) {
2632
2640
  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);
2641
+ T(g) && (g = g.value ?? g.key), g.comment ? g.comment += `
2642
+ ` + I : g.comment = I, O.comment = O.comment.substring(I.length + 1);
2635
2643
  }
2636
2644
  }
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);
2645
+ if (!o && !S && !O.found) {
2646
+ const I = k ? s(t, k, O, i) : e(t, O.end, S, null, O, i);
2647
+ c.items.push(I), f = I.range[2], nt(k) && i(I.range, "BLOCK_IN_FLOW", st);
2640
2648
  } else {
2641
2649
  t.atKey = !0;
2642
- const T = k.end, g = N ? s(t, N, k, i) : e(t, T, w, null, k, i);
2650
+ const I = O.end, g = N ? s(t, N, O, i) : e(t, I, w, null, O, i);
2643
2651
  nt(N) && i(g.range, "BLOCK_IN_FLOW", st), t.atKey = !1;
2644
2652
  const _ = ue(S ?? [], {
2645
2653
  flow: l,
2646
2654
  indicator: "map-value-ind",
2647
- next: A,
2655
+ next: k,
2648
2656
  offset: g.range[2],
2649
2657
  onError: i,
2650
2658
  parentIndent: n.indent,
2651
2659
  startOnNewline: !1
2652
2660
  });
2653
2661
  if (_.found) {
2654
- if (!o && !k.found && t.options.strict) {
2662
+ if (!o && !O.found && t.options.strict) {
2655
2663
  if (S)
2656
2664
  for (const C of S) {
2657
2665
  if (C === _.found)
@@ -2661,16 +2669,16 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2661
2669
  break;
2662
2670
  }
2663
2671
  }
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");
2672
+ 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
2673
  }
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 += `
2674
+ } 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`));
2675
+ const J = k ? s(t, k, _, i) : _.found ? e(t, _.end, S, null, _, i) : null;
2676
+ J ? nt(k) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
2669
2677
  ` + _.comment : g.comment = _.comment);
2670
- const te = new B(g, J);
2678
+ const te = new v(g, J);
2671
2679
  if (t.options.keepSourceTokens && (te.srcToken = b), o) {
2672
2680
  const C = c;
2673
- gs(t, C.items, g) && i(T, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
2681
+ gs(t, C.items, g) && i(I, "DUPLICATE_KEY", "Map keys must be unique"), C.items.push(te);
2674
2682
  } else {
2675
2683
  const C = new K(t.schema);
2676
2684
  C.flow = !0, C.items.push(te);
@@ -2718,14 +2726,14 @@ function hn(s, e, t, n, i) {
2718
2726
  else
2719
2727
  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
2728
  }
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);
2729
+ 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
2730
  return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
2723
2731
  }
2724
2732
  function bs(s, e, t) {
2725
2733
  const n = e.offset, i = dn(e, s.options.strict, t);
2726
2734
  if (!i)
2727
2735
  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) : [];
2736
+ const r = i.mode === ">" ? A.BLOCK_FOLDED : A.BLOCK_LITERAL, o = e.source ? pn(e.source) : [];
2729
2737
  let l = o.length;
2730
2738
  for (let u = o.length - 1; u >= 0; --u) {
2731
2739
  const m = o[u][1];
@@ -2765,7 +2773,7 @@ function bs(s, e, t) {
2765
2773
  const S = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
2766
2774
  t(c - b.length - (w ? 2 : 1), "BAD_INDENT", S), m = "";
2767
2775
  }
2768
- r === O.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
2776
+ r === A.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
2769
2777
  `) : m.length > a || b[0] === " " ? (d === " " ? d = `
2770
2778
  ` : !h && d === `
2771
2779
  ` && (d = `
@@ -2815,6 +2823,7 @@ function dn({ offset: s, props: e }, t, n) {
2815
2823
  switch (h.type) {
2816
2824
  case "space":
2817
2825
  c = !0;
2826
+ // fallthrough
2818
2827
  case "newline":
2819
2828
  f += h.source.length;
2820
2829
  break;
@@ -2824,6 +2833,7 @@ function dn({ offset: s, props: e }, t, n) {
2824
2833
  case "error":
2825
2834
  n(h, "UNEXPECTED_TOKEN", h.message), f += h.source.length;
2826
2835
  break;
2836
+ /* istanbul ignore next should not happen */
2827
2837
  default: {
2828
2838
  const y = `Unexpected token in block scalar header: ${h.type}`;
2829
2839
  n(h, "UNEXPECTED_TOKEN", y);
@@ -2846,14 +2856,15 @@ function ws(s, e, t) {
2846
2856
  const c = (d, h, y) => t(n + d, h, y);
2847
2857
  switch (i) {
2848
2858
  case "scalar":
2849
- l = O.PLAIN, a = mn(r, c);
2859
+ l = A.PLAIN, a = mn(r, c);
2850
2860
  break;
2851
2861
  case "single-quoted-scalar":
2852
- l = O.QUOTE_SINGLE, a = yn(r, c);
2862
+ l = A.QUOTE_SINGLE, a = yn(r, c);
2853
2863
  break;
2854
2864
  case "double-quoted-scalar":
2855
- l = O.QUOTE_DOUBLE, a = gn(r, c);
2865
+ l = A.QUOTE_DOUBLE, a = gn(r, c);
2856
2866
  break;
2867
+ /* istanbul ignore next should not happen */
2857
2868
  default:
2858
2869
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
2859
2870
  value: "",
@@ -2873,6 +2884,7 @@ function ws(s, e, t) {
2873
2884
  function mn(s, e) {
2874
2885
  let t = "";
2875
2886
  switch (s[0]) {
2887
+ /* istanbul ignore next should not happen */
2876
2888
  case " ":
2877
2889
  t = "a tab character";
2878
2890
  break;
@@ -3016,21 +3028,21 @@ function Sn(s, e, t, n) {
3016
3028
  function ks(s, e, t, n) {
3017
3029
  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
3030
  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];
3031
+ 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
3032
  let p;
3021
3033
  try {
3022
3034
  const f = c.resolve(i, (d) => n(t ?? e, "TAG_RESOLVE_FAILED", d), s.options);
3023
- p = E(f) ? f : new O(f);
3035
+ p = E(f) ? f : new A(f);
3024
3036
  } catch (f) {
3025
3037
  const d = f instanceof Error ? f.message : String(f);
3026
- n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new O(i);
3038
+ n(t ?? e, "TAG_RESOLVE_FAILED", d), p = new A(i);
3027
3039
  }
3028
3040
  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
3041
  }
3030
3042
  function kn(s, e, t, n, i) {
3031
3043
  var l;
3032
3044
  if (t === "!")
3033
- return s[U];
3045
+ return s[R];
3034
3046
  const r = [];
3035
3047
  for (const a of s.tags)
3036
3048
  if (!a.collection && a.tag === t)
@@ -3042,18 +3054,18 @@ function kn(s, e, t, n, i) {
3042
3054
  if ((l = a.test) != null && l.test(e))
3043
3055
  return a;
3044
3056
  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]);
3057
+ 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
3058
  }
3047
3059
  function Nn({ atKey: s, directives: e, schema: t }, n, i, r) {
3048
3060
  const o = t.tags.find((l) => {
3049
3061
  var a;
3050
3062
  return (l.default === !0 || s && l.default === "key") && ((a = l.test) == null ? void 0 : a.test(n));
3051
- }) || t[U];
3063
+ }) || t[R];
3052
3064
  if (t.compat) {
3053
3065
  const l = t.compat.find((a) => {
3054
3066
  var c;
3055
3067
  return a.default && ((c = a.test) == null ? void 0 : c.test(n));
3056
- }) ?? t[U];
3068
+ }) ?? t[R];
3057
3069
  if (o.tag !== l.tag) {
3058
3070
  const a = e.tagString(o.tag), c = e.tagString(l.tag), p = `Value may be parsed as either ${a} or ${c}`;
3059
3071
  r(i, "TAG_RESOLVE_FAILED", p, !0);
@@ -3116,7 +3128,7 @@ function Et(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a
3116
3128
  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
3129
  }
3118
3130
  function En({ options: s }, { offset: e, source: t, end: n }, i) {
3119
- const r = new Ue(t.substring(1));
3131
+ const r = new Re(t.substring(1));
3120
3132
  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
3133
  const o = e + t.length, l = Ie(n, o, s.strict, i);
3122
3134
  return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
@@ -3174,7 +3186,7 @@ class It {
3174
3186
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3175
3187
  const o = be(t);
3176
3188
  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;
3189
+ }, this.directives = new B({ version: e.version || "1.2" }), this.options = e;
3178
3190
  }
3179
3191
  decorate(e, t) {
3180
3192
  const { comment: n, afterEmptyLine: i } = Kt(this.prelude);
@@ -3187,7 +3199,7 @@ ${n}` : n;
3187
3199
  e.commentBefore = n;
3188
3200
  else if (L(r) && !r.flow && r.items.length > 0) {
3189
3201
  let o = r.items[0];
3190
- I(o) && (o = o.key);
3202
+ T(o) && (o = o.key);
3191
3203
  const l = o.commentBefore;
3192
3204
  o.commentBefore = l ? `${n}
3193
3205
  ${l}` : n;
@@ -3487,12 +3499,12 @@ function Ke({ start: s, key: e, sep: t, value: n }) {
3487
3499
  i += r.source;
3488
3500
  return n && (i += qe(n)), i;
3489
3501
  }
3490
- const ht = Symbol("break visit"), Bn = Symbol("skip children"), As = Symbol("remove item");
3502
+ const ht = Symbol("break visit"), vn = Symbol("skip children"), As = Symbol("remove item");
3491
3503
  function Z(s, e) {
3492
3504
  "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Es(Object.freeze([]), s, e);
3493
3505
  }
3494
3506
  Z.BREAK = ht;
3495
- Z.SKIP = Bn;
3507
+ Z.SKIP = vn;
3496
3508
  Z.REMOVE = As;
3497
3509
  Z.itemAtPath = (s, e) => {
3498
3510
  let t = s;
@@ -3533,7 +3545,7 @@ function Es(s, e, t) {
3533
3545
  }
3534
3546
  return typeof n == "function" ? n(e, s) : n;
3535
3547
  }
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");
3548
+ 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
3549
  function Kn(s) {
3538
3550
  switch (s) {
3539
3551
  case ze:
@@ -3616,7 +3628,7 @@ const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3616
3628
  FLOW_END: xe,
3617
3629
  SCALAR: Oe,
3618
3630
  createScalarToken: Ln,
3619
- isCollection: vn,
3631
+ isCollection: Bn,
3620
3632
  isScalar: Mn,
3621
3633
  prettyToken: Kn,
3622
3634
  resolveAsScalar: Tn,
@@ -3790,6 +3802,7 @@ class Ts {
3790
3802
  switch (e[t]) {
3791
3803
  case "#":
3792
3804
  yield* this.pushCount(e.length - t);
3805
+ // fallthrough
3793
3806
  case void 0:
3794
3807
  return yield* this.pushNewline(), yield* this.parseLineStart();
3795
3808
  case "{":
@@ -3844,6 +3857,7 @@ class Ts {
3844
3857
  if (this.flowKey || D(o) || o === ",")
3845
3858
  return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
3846
3859
  }
3860
+ // fallthrough
3847
3861
  default:
3848
3862
  return this.flowKey = !1, yield* this.parsePlainScalar();
3849
3863
  }
@@ -3916,6 +3930,7 @@ class Ts {
3916
3930
  `)
3917
3931
  break;
3918
3932
  }
3933
+ // fallthrough
3919
3934
  default:
3920
3935
  break e;
3921
3936
  }
@@ -4002,7 +4017,9 @@ class Ts {
4002
4017
  case "&":
4003
4018
  return (yield* this.pushUntil(ot)) + (yield* this.pushSpaces(!0)) + (yield* this.pushIndicators());
4004
4019
  case "-":
4020
+ // this is an error
4005
4021
  case "?":
4022
+ // this is an error outside flow collections
4006
4023
  case ":": {
4007
4024
  const e = this.flowLevel > 0, t = this.charAt(1);
4008
4025
  if (D(t) || e && _e.has(t))
@@ -4107,6 +4124,7 @@ function Ce(s) {
4107
4124
  }
4108
4125
  case "block-seq":
4109
4126
  return s.items[s.items.length - 1].start;
4127
+ /* istanbul ignore next should not happen */
4110
4128
  default:
4111
4129
  return [];
4112
4130
  }
@@ -4283,6 +4301,7 @@ class Tt {
4283
4301
  !i || i.value ? n.items.push({ start: [], key: t, sep: [] }) : i.sep ? i.value = t : Object.assign(i, { key: t, sep: [] });
4284
4302
  return;
4285
4303
  }
4304
+ /* istanbul ignore next should not happen */
4286
4305
  default:
4287
4306
  yield* this.pop(), yield* this.pop(t);
4288
4307
  }
@@ -4377,6 +4396,7 @@ class Tt {
4377
4396
  }
4378
4397
  yield* this.pop();
4379
4398
  break;
4399
+ /* istanbul ignore next should not happen */
4380
4400
  default:
4381
4401
  yield* this.pop(), yield* this.step();
4382
4402
  }
@@ -4697,6 +4717,7 @@ class Tt {
4697
4717
  break;
4698
4718
  case "newline":
4699
4719
  this.onKeyLine = !1;
4720
+ // fallthrough
4700
4721
  case "space":
4701
4722
  case "comment":
4702
4723
  default:
@@ -4727,7 +4748,7 @@ function Cs(s, e = {}) {
4727
4748
  }
4728
4749
  return n && t && (o.errors.forEach(De(s, t)), o.warnings.forEach(De(s, t))), o;
4729
4750
  }
4730
- function Rn(s, e, t) {
4751
+ function Fn(s, e, t) {
4731
4752
  let n;
4732
4753
  typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
4733
4754
  const i = Cs(s, t);
@@ -4740,7 +4761,7 @@ function Rn(s, e, t) {
4740
4761
  }
4741
4762
  return i.toJS(Object.assign({ reviver: n }, t));
4742
4763
  }
4743
- function Un(s, e, t) {
4764
+ function Rn(s, e, t) {
4744
4765
  let n = null;
4745
4766
  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
4767
  const i = Math.round(t);
@@ -4753,17 +4774,17 @@ function Un(s, e, t) {
4753
4774
  }
4754
4775
  return ee(s) && !n ? s.toString(t) : new ge(s, n, t).toString(t);
4755
4776
  }
4756
- const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4777
+ const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4757
4778
  __proto__: null,
4758
- Alias: Ue,
4779
+ Alias: Re,
4759
4780
  CST: Pn,
4760
4781
  Composer: It,
4761
4782
  Document: ge,
4762
4783
  Lexer: Ts,
4763
4784
  LineCounter: Ls,
4764
- Pair: B,
4785
+ Pair: v,
4765
4786
  Parser: Tt,
4766
- Scalar: O,
4787
+ Scalar: A,
4767
4788
  Schema: Xe,
4768
4789
  YAMLError: At,
4769
4790
  YAMLMap: K,
@@ -4775,46 +4796,46 @@ const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4775
4796
  isDocument: ee,
4776
4797
  isMap: de,
4777
4798
  isNode: $,
4778
- isPair: I,
4799
+ isPair: T,
4779
4800
  isScalar: E,
4780
4801
  isSeq: pe,
4781
- parse: Rn,
4802
+ parse: Fn,
4782
4803
  parseAllDocuments: qn,
4783
4804
  parseDocument: Cs,
4784
- stringify: Un,
4805
+ stringify: Rn,
4785
4806
  visit: G,
4786
- visitAsync: Re
4807
+ visitAsync: Fe
4787
4808
  }, Symbol.toStringTag, { value: "Module" }));
4788
4809
  export {
4789
- Ue as Alias,
4810
+ Re as Alias,
4790
4811
  Pn as CST,
4791
4812
  It as Composer,
4792
4813
  ge as Document,
4793
4814
  Ts as Lexer,
4794
4815
  Ls as LineCounter,
4795
- B as Pair,
4816
+ v as Pair,
4796
4817
  Tt as Parser,
4797
- O as Scalar,
4818
+ A as Scalar,
4798
4819
  Xe as Schema,
4799
4820
  At as YAMLError,
4800
4821
  K as YAMLMap,
4801
4822
  z as YAMLParseError,
4802
4823
  Q as YAMLSeq,
4803
4824
  ys as YAMLWarning,
4804
- Fn as default,
4825
+ Un as default,
4805
4826
  x as isAlias,
4806
4827
  L as isCollection,
4807
4828
  ee as isDocument,
4808
4829
  de as isMap,
4809
4830
  $ as isNode,
4810
- I as isPair,
4831
+ T as isPair,
4811
4832
  E as isScalar,
4812
4833
  pe as isSeq,
4813
- Rn as parse,
4834
+ Fn as parse,
4814
4835
  qn as parseAllDocuments,
4815
4836
  Cs as parseDocument,
4816
- Un as stringify,
4837
+ Rn as stringify,
4817
4838
  G as visit,
4818
- Re as visitAsync
4839
+ Fe as visitAsync
4819
4840
  };
4820
- //# sourceMappingURL=index-CkwDvuPt.js.map
4841
+ //# sourceMappingURL=index-CBXSgjaE.js.map