@speclynx/apidom-ns-openapi-3-0 1.12.2 → 2.1.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 (328) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/NOTICE +16 -7
  3. package/README.md +22 -26
  4. package/dist/apidom-ns-openapi-3-0.browser.js +15751 -13135
  5. package/dist/apidom-ns-openapi-3-0.browser.min.js +1 -1
  6. package/package.json +8 -7
  7. package/src/elements/Callback.cjs +2 -2
  8. package/src/elements/Callback.mjs +1 -1
  9. package/src/elements/Components.cjs +4 -4
  10. package/src/elements/Components.mjs +3 -3
  11. package/src/elements/Contact.cjs +2 -2
  12. package/src/elements/Contact.mjs +1 -1
  13. package/src/elements/Discriminator.cjs +2 -2
  14. package/src/elements/Discriminator.mjs +1 -1
  15. package/src/elements/Encoding.cjs +2 -2
  16. package/src/elements/Encoding.mjs +1 -1
  17. package/src/elements/Example.cjs +2 -2
  18. package/src/elements/Example.mjs +1 -1
  19. package/src/elements/ExternalDocumentation.cjs +2 -2
  20. package/src/elements/ExternalDocumentation.mjs +1 -1
  21. package/src/elements/Header.cjs +6 -6
  22. package/src/elements/Header.mjs +3 -3
  23. package/src/elements/Info.cjs +2 -2
  24. package/src/elements/Info.mjs +1 -1
  25. package/src/elements/License.cjs +2 -2
  26. package/src/elements/License.mjs +1 -1
  27. package/src/elements/Link.cjs +4 -4
  28. package/src/elements/Link.mjs +1 -1
  29. package/src/elements/MediaType.cjs +2 -2
  30. package/src/elements/MediaType.mjs +1 -1
  31. package/src/elements/OAuthFlow.cjs +2 -2
  32. package/src/elements/OAuthFlow.mjs +1 -1
  33. package/src/elements/OAuthFlows.cjs +2 -2
  34. package/src/elements/OAuthFlows.mjs +1 -1
  35. package/src/elements/OpenApi3-0.cjs +2 -2
  36. package/src/elements/OpenApi3-0.mjs +1 -1
  37. package/src/elements/Openapi.cjs +2 -2
  38. package/src/elements/Openapi.mjs +1 -1
  39. package/src/elements/Operation.cjs +3 -3
  40. package/src/elements/Operation.mjs +1 -1
  41. package/src/elements/Parameter.cjs +6 -6
  42. package/src/elements/Parameter.mjs +3 -3
  43. package/src/elements/PathItem.cjs +26 -26
  44. package/src/elements/PathItem.mjs +25 -25
  45. package/src/elements/Paths.cjs +2 -2
  46. package/src/elements/Paths.mjs +1 -1
  47. package/src/elements/Reference.cjs +2 -2
  48. package/src/elements/Reference.mjs +1 -1
  49. package/src/elements/RequestBody.cjs +5 -5
  50. package/src/elements/RequestBody.mjs +3 -3
  51. package/src/elements/Response.cjs +7 -7
  52. package/src/elements/Response.mjs +6 -6
  53. package/src/elements/Responses.cjs +2 -2
  54. package/src/elements/Responses.mjs +1 -1
  55. package/src/elements/Schema.cjs +10 -10
  56. package/src/elements/Schema.mjs +10 -10
  57. package/src/elements/SecurityRequirement.cjs +2 -2
  58. package/src/elements/SecurityRequirement.mjs +1 -1
  59. package/src/elements/SecurityScheme.cjs +2 -2
  60. package/src/elements/SecurityScheme.mjs +1 -1
  61. package/src/elements/Server.cjs +2 -2
  62. package/src/elements/Server.mjs +1 -1
  63. package/src/elements/ServerVariable.cjs +2 -2
  64. package/src/elements/ServerVariable.mjs +1 -1
  65. package/src/elements/Tag.cjs +2 -2
  66. package/src/elements/Tag.mjs +1 -1
  67. package/src/elements/Xml.cjs +2 -2
  68. package/src/elements/Xml.mjs +1 -1
  69. package/src/elements/nces/ComponentsCallbacks.cjs +2 -2
  70. package/src/elements/nces/ComponentsCallbacks.mjs +1 -1
  71. package/src/elements/nces/ComponentsExamples.cjs +2 -2
  72. package/src/elements/nces/ComponentsExamples.mjs +1 -1
  73. package/src/elements/nces/ComponentsHeaders.cjs +2 -2
  74. package/src/elements/nces/ComponentsHeaders.mjs +1 -1
  75. package/src/elements/nces/ComponentsLinks.cjs +2 -2
  76. package/src/elements/nces/ComponentsLinks.mjs +1 -1
  77. package/src/elements/nces/ComponentsParameters.cjs +2 -2
  78. package/src/elements/nces/ComponentsParameters.mjs +1 -1
  79. package/src/elements/nces/ComponentsRequestBodies.cjs +2 -2
  80. package/src/elements/nces/ComponentsRequestBodies.mjs +1 -1
  81. package/src/elements/nces/ComponentsResponses.cjs +2 -2
  82. package/src/elements/nces/ComponentsResponses.mjs +1 -1
  83. package/src/elements/nces/ComponentsSchemas.cjs +2 -2
  84. package/src/elements/nces/ComponentsSchemas.mjs +1 -1
  85. package/src/elements/nces/ComponentsSecuritySchemes.cjs +2 -2
  86. package/src/elements/nces/ComponentsSecuritySchemes.mjs +1 -1
  87. package/src/elements/nces/DiscriminatorMapping.cjs +2 -2
  88. package/src/elements/nces/DiscriminatorMapping.mjs +1 -1
  89. package/src/elements/nces/EncodingHeaders.cjs +2 -2
  90. package/src/elements/nces/EncodingHeaders.mjs +1 -1
  91. package/src/elements/nces/HeaderContent.cjs +2 -2
  92. package/src/elements/nces/HeaderContent.mjs +1 -1
  93. package/src/elements/nces/HeaderExamples.cjs +2 -2
  94. package/src/elements/nces/HeaderExamples.mjs +1 -1
  95. package/src/elements/nces/LinkParameters.cjs +2 -2
  96. package/src/elements/nces/LinkParameters.mjs +1 -1
  97. package/src/elements/nces/MediaTypeEncoding.cjs +2 -2
  98. package/src/elements/nces/MediaTypeEncoding.mjs +1 -1
  99. package/src/elements/nces/MediaTypeExamples.cjs +2 -2
  100. package/src/elements/nces/MediaTypeExamples.mjs +1 -1
  101. package/src/elements/nces/OAuthFlowScopes.cjs +2 -2
  102. package/src/elements/nces/OAuthFlowScopes.mjs +1 -1
  103. package/src/elements/nces/OperationCallbacks.cjs +2 -2
  104. package/src/elements/nces/OperationCallbacks.mjs +1 -1
  105. package/src/elements/nces/OperationParameters.cjs +2 -2
  106. package/src/elements/nces/OperationParameters.mjs +1 -1
  107. package/src/elements/nces/OperationSecurity.cjs +2 -2
  108. package/src/elements/nces/OperationSecurity.mjs +1 -1
  109. package/src/elements/nces/OperationServers.cjs +2 -2
  110. package/src/elements/nces/OperationServers.mjs +1 -1
  111. package/src/elements/nces/OperationTags.cjs +2 -2
  112. package/src/elements/nces/OperationTags.mjs +1 -1
  113. package/src/elements/nces/ParameterContent.cjs +2 -2
  114. package/src/elements/nces/ParameterContent.mjs +1 -1
  115. package/src/elements/nces/ParameterExamples.cjs +2 -2
  116. package/src/elements/nces/ParameterExamples.mjs +1 -1
  117. package/src/elements/nces/PathItemParameters.cjs +2 -2
  118. package/src/elements/nces/PathItemParameters.mjs +1 -1
  119. package/src/elements/nces/PathItemServers.cjs +2 -2
  120. package/src/elements/nces/PathItemServers.mjs +1 -1
  121. package/src/elements/nces/RequestBodyContent.cjs +2 -2
  122. package/src/elements/nces/RequestBodyContent.mjs +1 -1
  123. package/src/elements/nces/ResponseContent.cjs +2 -2
  124. package/src/elements/nces/ResponseContent.mjs +1 -1
  125. package/src/elements/nces/ResponseHeaders.cjs +2 -2
  126. package/src/elements/nces/ResponseHeaders.mjs +1 -1
  127. package/src/elements/nces/ResponseLinks.cjs +2 -2
  128. package/src/elements/nces/ResponseLinks.mjs +1 -1
  129. package/src/elements/nces/Security.cjs +2 -2
  130. package/src/elements/nces/Security.mjs +1 -1
  131. package/src/elements/nces/ServerVariables.cjs +2 -2
  132. package/src/elements/nces/ServerVariables.mjs +1 -1
  133. package/src/elements/nces/Servers.cjs +2 -2
  134. package/src/elements/nces/Servers.mjs +1 -1
  135. package/src/elements/nces/Tags.cjs +2 -2
  136. package/src/elements/nces/Tags.mjs +1 -1
  137. package/src/index.cjs +73 -52
  138. package/src/index.mjs +6 -6
  139. package/src/namespace.cjs +0 -1
  140. package/src/predicates.cjs +54 -187
  141. package/src/predicates.mjs +28 -187
  142. package/src/refractor/index.cjs +321 -17
  143. package/src/refractor/index.mjs +289 -16
  144. package/src/refractor/inspect.cjs +205 -0
  145. package/src/refractor/inspect.mjs +170 -0
  146. package/src/refractor/plugins/replace-empty-element.cjs +25 -21
  147. package/src/refractor/plugins/replace-empty-element.mjs +13 -9
  148. package/src/refractor/predicates.cjs +5 -5
  149. package/src/refractor/predicates.mjs +2 -2
  150. package/src/refractor/specification.cjs +65 -12
  151. package/src/refractor/specification.mjs +65 -12
  152. package/src/refractor/toolbox.cjs +6 -16
  153. package/src/refractor/toolbox.mjs +6 -15
  154. package/src/refractor/visitors/FallbackVisitor.cjs +4 -4
  155. package/src/refractor/visitors/FallbackVisitor.mjs +4 -4
  156. package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +4 -4
  157. package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +4 -4
  158. package/src/refractor/visitors/SpecificationVisitor.cjs +6 -3
  159. package/src/refractor/visitors/SpecificationVisitor.mjs +5 -2
  160. package/src/refractor/visitors/Visitor.cjs +10 -8
  161. package/src/refractor/visitors/Visitor.mjs +11 -9
  162. package/src/refractor/visitors/generics/AlternatingVisitor.cjs +3 -3
  163. package/src/refractor/visitors/generics/AlternatingVisitor.mjs +3 -3
  164. package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +10 -7
  165. package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +9 -6
  166. package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +13 -6
  167. package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +13 -6
  168. package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +9 -6
  169. package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +8 -5
  170. package/src/refractor/visitors/open-api-3-0/ContentVisitor.cjs +4 -7
  171. package/src/refractor/visitors/open-api-3-0/ContentVisitor.mjs +3 -5
  172. package/src/refractor/visitors/open-api-3-0/ExamplesVisitor.cjs +7 -11
  173. package/src/refractor/visitors/open-api-3-0/ExamplesVisitor.mjs +6 -9
  174. package/src/refractor/visitors/open-api-3-0/OpenapiVisitor.cjs +5 -6
  175. package/src/refractor/visitors/open-api-3-0/OpenapiVisitor.mjs +6 -7
  176. package/src/refractor/visitors/open-api-3-0/ParametersVisitor.cjs +8 -10
  177. package/src/refractor/visitors/open-api-3-0/ParametersVisitor.mjs +7 -8
  178. package/src/refractor/visitors/open-api-3-0/SecurityVisitor.cjs +8 -9
  179. package/src/refractor/visitors/open-api-3-0/SecurityVisitor.mjs +6 -7
  180. package/src/refractor/visitors/open-api-3-0/ServersVisitor.cjs +5 -7
  181. package/src/refractor/visitors/open-api-3-0/ServersVisitor.mjs +5 -7
  182. package/src/refractor/visitors/open-api-3-0/TagsVisitor.cjs +5 -7
  183. package/src/refractor/visitors/open-api-3-0/TagsVisitor.mjs +5 -7
  184. package/src/refractor/visitors/open-api-3-0/bases.cjs +72 -0
  185. package/src/refractor/visitors/open-api-3-0/bases.mjs +67 -0
  186. package/src/refractor/visitors/open-api-3-0/callback/index.cjs +5 -8
  187. package/src/refractor/visitors/open-api-3-0/callback/index.mjs +5 -8
  188. package/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.cjs +5 -7
  189. package/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.mjs +5 -7
  190. package/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.cjs +5 -7
  191. package/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.mjs +5 -7
  192. package/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.cjs +6 -8
  193. package/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.mjs +6 -8
  194. package/src/refractor/visitors/open-api-3-0/components/LinksVisitor.cjs +5 -7
  195. package/src/refractor/visitors/open-api-3-0/components/LinksVisitor.mjs +5 -7
  196. package/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.cjs +5 -7
  197. package/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.mjs +5 -7
  198. package/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.cjs +5 -7
  199. package/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.mjs +5 -7
  200. package/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.cjs +6 -8
  201. package/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.mjs +6 -8
  202. package/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.cjs +5 -7
  203. package/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.mjs +5 -7
  204. package/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.cjs +5 -7
  205. package/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.mjs +5 -7
  206. package/src/refractor/visitors/open-api-3-0/components/index.cjs +2 -4
  207. package/src/refractor/visitors/open-api-3-0/components/index.mjs +2 -4
  208. package/src/refractor/visitors/open-api-3-0/contact/index.cjs +2 -8
  209. package/src/refractor/visitors/open-api-3-0/contact/index.mjs +2 -7
  210. package/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.cjs +2 -8
  211. package/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.mjs +2 -7
  212. package/src/refractor/visitors/open-api-3-0/distriminator/index.cjs +2 -8
  213. package/src/refractor/visitors/open-api-3-0/distriminator/index.mjs +2 -7
  214. package/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.cjs +7 -8
  215. package/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.mjs +7 -8
  216. package/src/refractor/visitors/open-api-3-0/encoding/index.cjs +7 -8
  217. package/src/refractor/visitors/open-api-3-0/encoding/index.mjs +7 -8
  218. package/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.cjs +2 -3
  219. package/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.mjs +2 -3
  220. package/src/refractor/visitors/open-api-3-0/example/index.cjs +6 -13
  221. package/src/refractor/visitors/open-api-3-0/example/index.mjs +5 -11
  222. package/src/refractor/visitors/open-api-3-0/external-documentation/index.cjs +2 -8
  223. package/src/refractor/visitors/open-api-3-0/external-documentation/index.mjs +2 -7
  224. package/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.cjs +5 -11
  225. package/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.mjs +5 -10
  226. package/src/refractor/visitors/open-api-3-0/header/index.cjs +2 -8
  227. package/src/refractor/visitors/open-api-3-0/header/index.mjs +2 -7
  228. package/src/refractor/visitors/open-api-3-0/index.cjs +4 -6
  229. package/src/refractor/visitors/open-api-3-0/index.mjs +4 -6
  230. package/src/refractor/visitors/open-api-3-0/info/VersionVisitor.cjs +2 -3
  231. package/src/refractor/visitors/open-api-3-0/info/VersionVisitor.mjs +2 -3
  232. package/src/refractor/visitors/open-api-3-0/info/index.cjs +2 -8
  233. package/src/refractor/visitors/open-api-3-0/info/index.mjs +2 -7
  234. package/src/refractor/visitors/open-api-3-0/license/index.cjs +2 -8
  235. package/src/refractor/visitors/open-api-3-0/license/index.mjs +2 -7
  236. package/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.cjs +2 -3
  237. package/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.mjs +2 -3
  238. package/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.cjs +2 -3
  239. package/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.mjs +2 -3
  240. package/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.cjs +2 -8
  241. package/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.mjs +2 -7
  242. package/src/refractor/visitors/open-api-3-0/link/index.cjs +6 -13
  243. package/src/refractor/visitors/open-api-3-0/link/index.mjs +5 -11
  244. package/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.cjs +2 -8
  245. package/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.mjs +2 -7
  246. package/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.cjs +5 -11
  247. package/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.mjs +5 -10
  248. package/src/refractor/visitors/open-api-3-0/media-type/index.cjs +2 -8
  249. package/src/refractor/visitors/open-api-3-0/media-type/index.mjs +2 -7
  250. package/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.cjs +2 -8
  251. package/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.mjs +2 -7
  252. package/src/refractor/visitors/open-api-3-0/oauth-flow/index.cjs +2 -8
  253. package/src/refractor/visitors/open-api-3-0/oauth-flow/index.mjs +2 -7
  254. package/src/refractor/visitors/open-api-3-0/oauth-flows/index.cjs +2 -8
  255. package/src/refractor/visitors/open-api-3-0/oauth-flows/index.mjs +2 -7
  256. package/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.cjs +5 -7
  257. package/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.mjs +5 -7
  258. package/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.cjs +3 -4
  259. package/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.mjs +3 -4
  260. package/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.cjs +7 -8
  261. package/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.mjs +6 -7
  262. package/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.cjs +5 -4
  263. package/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.mjs +4 -3
  264. package/src/refractor/visitors/open-api-3-0/operation/index.cjs +2 -4
  265. package/src/refractor/visitors/open-api-3-0/operation/index.mjs +2 -4
  266. package/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.cjs +5 -7
  267. package/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.mjs +5 -7
  268. package/src/refractor/visitors/open-api-3-0/parameter/index.cjs +8 -9
  269. package/src/refractor/visitors/open-api-3-0/parameter/index.mjs +9 -10
  270. package/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.cjs +2 -3
  271. package/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.mjs +2 -3
  272. package/src/refractor/visitors/open-api-3-0/path-item/index.cjs +8 -10
  273. package/src/refractor/visitors/open-api-3-0/path-item/index.mjs +7 -9
  274. package/src/refractor/visitors/open-api-3-0/paths/index.cjs +6 -9
  275. package/src/refractor/visitors/open-api-3-0/paths/index.mjs +6 -9
  276. package/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.cjs +2 -3
  277. package/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.mjs +2 -3
  278. package/src/refractor/visitors/open-api-3-0/reference/index.cjs +6 -9
  279. package/src/refractor/visitors/open-api-3-0/reference/index.mjs +5 -8
  280. package/src/refractor/visitors/open-api-3-0/request-body/index.cjs +8 -9
  281. package/src/refractor/visitors/open-api-3-0/request-body/index.mjs +9 -10
  282. package/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.cjs +7 -9
  283. package/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.mjs +7 -9
  284. package/src/refractor/visitors/open-api-3-0/response/LinksVisitor.cjs +5 -8
  285. package/src/refractor/visitors/open-api-3-0/response/LinksVisitor.mjs +5 -8
  286. package/src/refractor/visitors/open-api-3-0/response/index.cjs +10 -12
  287. package/src/refractor/visitors/open-api-3-0/response/index.mjs +10 -12
  288. package/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.cjs +6 -8
  289. package/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.mjs +6 -8
  290. package/src/refractor/visitors/open-api-3-0/responses/index.cjs +8 -10
  291. package/src/refractor/visitors/open-api-3-0/responses/index.mjs +8 -10
  292. package/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.cjs +3 -4
  293. package/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.mjs +3 -4
  294. package/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.cjs +3 -4
  295. package/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.mjs +3 -4
  296. package/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.cjs +8 -14
  297. package/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.mjs +7 -12
  298. package/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.cjs +3 -4
  299. package/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.mjs +3 -4
  300. package/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.cjs +3 -4
  301. package/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.mjs +3 -4
  302. package/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.cjs +3 -5
  303. package/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.mjs +3 -5
  304. package/src/refractor/visitors/open-api-3-0/schema/TypeVisitor.cjs +2 -3
  305. package/src/refractor/visitors/open-api-3-0/schema/TypeVisitor.mjs +2 -3
  306. package/src/refractor/visitors/open-api-3-0/schema/index.cjs +2 -4
  307. package/src/refractor/visitors/open-api-3-0/schema/index.mjs +2 -4
  308. package/src/refractor/visitors/open-api-3-0/security-requirement/index.cjs +2 -8
  309. package/src/refractor/visitors/open-api-3-0/security-requirement/index.mjs +2 -7
  310. package/src/refractor/visitors/open-api-3-0/security-scheme/index.cjs +2 -8
  311. package/src/refractor/visitors/open-api-3-0/security-scheme/index.mjs +2 -7
  312. package/src/refractor/visitors/open-api-3-0/server/UrlVisitor.cjs +2 -3
  313. package/src/refractor/visitors/open-api-3-0/server/UrlVisitor.mjs +2 -3
  314. package/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.cjs +2 -8
  315. package/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.mjs +2 -7
  316. package/src/refractor/visitors/open-api-3-0/server/index.cjs +2 -8
  317. package/src/refractor/visitors/open-api-3-0/server/index.mjs +2 -7
  318. package/src/refractor/visitors/open-api-3-0/server-variable/index.cjs +2 -8
  319. package/src/refractor/visitors/open-api-3-0/server-variable/index.mjs +2 -7
  320. package/src/refractor/visitors/open-api-3-0/tag/index.cjs +2 -8
  321. package/src/refractor/visitors/open-api-3-0/tag/index.mjs +2 -7
  322. package/src/refractor/visitors/open-api-3-0/xml/index.cjs +2 -8
  323. package/src/refractor/visitors/open-api-3-0/xml/index.mjs +2 -7
  324. package/types/apidom-ns-openapi-3-0.d.ts +679 -926
  325. package/src/refractor/registration.cjs +0 -99
  326. package/src/refractor/registration.mjs +0 -64
  327. package/src/traversal/visitor.cjs +0 -57
  328. package/src/traversal/visitor.mjs +0 -54
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsOpenApi3_0=t():e.apidomNsOpenApi3_0=t()}(self,()=>(()=>{var e={88:(e,t,s)=>{var n=s(4700);e.exports=function(e){return n(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},195:(e,t,s)=>{var n=s(4882),r=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},353:(e,t,s)=>{var n=s(1340),r=s(3934),i=s(8861),o=s(1182),c=s(8486),a=s(3142),l=s(5853),u=s(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,d,y,g){var v=a(e),b=a(t),E=v?h:c(e),x=b?h:c(t),j=(E=E==p?m:E)==m,w=(x=x==p?m:x)==m,S=E==x;if(S&&l(e)){if(!l(t))return!1;v=!0,j=!1}if(S&&!j)return g||(g=new n),v||u(e)?r(e,t,s,d,y,g):i(e,t,E,s,d,y,g);if(!(1&s)){var O=j&&f.call(e,"__wrapped__"),P=w&&f.call(t,"__wrapped__");if(O||P){var A=O?e.value():e,k=P?t.value():t;return g||(g=new n),y(A,k,s,d,g)}}return!!S&&(g||(g=new n),o(e,t,s,d,y,g))}},358:(e,t,s)=>{var n=s(6137),r=s(3283),i=s(3142),o=s(5853),c=s(9632),a=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&r(e),p=!s&&!u&&o(e),h=!s&&!u&&!p&&a(e),m=s||u||p||h,f=m?n(e.length,String):[],d=f.length;for(var y in e)!t&&!l.call(e,y)||m&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||f.push(y);return f}},393:(e,t,s)=>{var n=s(8244),r=s(7979),i=s(1211);e.exports=function(e){return n(e,i,r)}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))}),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach(s=>{t.set(s,this.deserialise(e[s]))})}}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,s)=>{var n=s(7379),r=s(5387),i=s(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&r(e.length)&&!!o[n(e)]}},986:(e,t,s)=>{var n=s(7379),r=s(547);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==n(e)}},1112:(e,t,s)=>{var n=s(4497),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return r.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var s=-1,n=t.length,r=e.length;++s<n;)e[r+s]=t[s];return e}},1182:(e,t,s)=>{var n=s(393),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,c){var a=1&s,l=n(e),u=l.length;if(u!=n(t).length&&!a)return!1;for(var p=u;p--;){var h=l[p];if(!(a?h in t:r.call(t,h)))return!1}var m=c.get(e),f=c.get(t);if(m&&f)return m==t&&f==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=a?i(v,g,h,t,e,c):i(g,v,h,e,t,c);if(!(void 0===b?g===v||o(g,v,s,i,c):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var E=e.constructor,x=t.constructor;E==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof x&&x instanceof x||(d=!1)}return c.delete(e),c.delete(t),d}},1211:(e,t,s)=>{var n=s(358),r=s(195),i=s(6529);e.exports=function(e){return i(e)?n(e):r(e)}},1340:(e,t,s)=>{var n=s(1386),r=s(4103),i=s(1779),o=s(4162),c=s(7462),a=s(6638);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=c,l.prototype.set=a,e.exports=l},1386:(e,t,s)=>{var n=s(2393),r=s(2049),i=s(7144),o=s(7452),c=s(3964);function a(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=r,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1623:(e,t,s)=>{var n=s(8942).Uint8Array;e.exports=n},1779:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1950:(e,t,s)=>{var n=s(8942)["__core-js_shared__"];e.exports=n},2049:(e,t,s)=>{var n=s(7034),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=n(t,e);return!(s<0)&&(s==t.length-1?t.pop():r.call(t,s,1),--this.size,!0)}},2306:(e,t,s)=>{e=s.nmd(e);var n=s(4967),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},2555:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,s)=>{var n=s(7379),r=s(547);e.exports=function(e){return!0===e||!1===e||r(e)&&"[object Boolean]"==n(e)}},3004:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e||null,t,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3103:(e,t,s)=>{var n=s(4715)(s(8942),"DataView");e.exports=n},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,s)=>{const n=s(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(s.attributes=this.serialiseObject(n))}if(n)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(s.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let r=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),r.forEach(e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")}),e.content&&0!==s.length&&r.unshift(e.content),r=r.map(e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content])),r.length&&t.set("samples",r),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map(e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)})}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==s.content||(s.content=n),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach(n=>{n.forEach(n=>{const r=new t(n);r.element=s.element,e.push(r)})});const r=e.shift();s.content=r?r.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let n=s.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map(t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map(e=>this.serialise(e)):t.toValue()):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map(e=>this.serialise(e))}serialiseObject(e){const t={};return e.forEach((e,s)=>{if(e){const n=s.toValue();t[n]=this.convertKeyToRefract(n,e)}}),t}deserialiseObject(e,t){Object.keys(e).forEach(s=>{t.set(s,this.deserialise(e[s]))})}}},3212:(e,t,s)=>{var n=s(8250),r=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new n;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=i,e.exports=o},3283:(e,t,s)=>{var n=s(6027),r=s(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return r(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3305:(e,t,s)=>{var n=s(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3311:(e,t,s)=>{const n=s(1517),r=s(4123);class i extends r{map(e,t){return this.elements.map(s=>e.bind(t)(s.value,s.key,s))}filter(e,t){return new i(this.elements.filter(s=>e.bind(t)(s.value,s.key,s)))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach((s,n)=>{e.bind(t)(s.value,s.key,s,n)})}keys(){return this.map((e,t)=>t.toValue())}values(){return this.map(e=>e.toValue())}}e.exports=i},3655:(e,t,s)=>{var n=s(7379),r=s(1580);e.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3766:e=>{e.exports=function(e,t){return function(s){return e(t(s))}}},3934:(e,t,s)=>{var n=s(3212),r=s(6465),i=s(5568);e.exports=function(e,t,s,o,c,a){var l=1&s,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,y=2&s?new n:void 0;for(a.set(e,t),a.set(t,e);++f<u;){var g=e[f],v=t[f];if(o)var b=l?o(v,g,f,t,e,a):o(g,v,f,e,t,a);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!r(t,function(e,t){if(!i(y,t)&&(g===e||c(g,e,s,o,a)))return y.push(t)})){d=!1;break}}else if(g!==v&&!c(g,v,s,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}},3964:(e,t,s)=>{var n=s(7034);e.exports=function(e,t){var s=this.__data__,r=n(s,e);return r<0?(++this.size,s.push([e,t])):s[r][1]=t,this}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},4103:(e,t,s)=>{var n=s(1386);e.exports=function(){this.__data__=new n,this.size=0}},4123:(e,t,s)=>{const n=s(1517);function r(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map(e=>e.toValue())}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce((e,t)=>e.concat(t),[])}compactMap(e,t){const s=[];return this.forEach(n=>{const r=e.bind(t)(n);r&&s.push(r)}),s}filter(e,t){return e=r(e),new i(this.elements.filter(e,t))}reject(e,t){return e=r(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=r(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some(t=>t.equals(e))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4497:(e,t,s)=>{var n=s(4715)(Object,"create");e.exports=n},4512:(e,t,s)=>{var n=s(4715)(s(8942),"Set");e.exports=n},4687:(e,t,s)=>{var n=s(353),r=s(547);e.exports=function e(t,s,i,o,c){return t===s||(null==t||null==s||!r(t)&&!r(s)?t!=t&&s!=s:n(t,s,i,o,e,c))}},4700:(e,t,s)=>{var n=s(9067);e.exports=function(e,t){var s=e.__data__;return n(t)?s["string"==typeof t?"string":"hash"]:s.map}},4715:(e,t,s)=>{var n=s(9624),r=s(155);e.exports=function(e,t){var s=r(e,t);return n(s)?s:void 0}},4732:(e,t,s)=>{var n=s(4700);e.exports=function(e){return n(this,e).has(e)}},4759:(e,t,s)=>{var n,r=s(1950),i=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4772:e=>{e.exports=function(){return!1}},4882:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},4967:(e,t,s)=>{var n="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=n},5071:(e,t,s)=>{var n=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,s)=>{var n=s(3305),r=s(9361),i=s(1112),o=s(5276),c=s(5071);function a(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=r,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},5276:(e,t,s)=>{var n=s(4497),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5568:e=>{e.exports=function(e,t){return e.has(t)}},5642:(e,t,s)=>{const n=s(1517),r=s(1580),i=s(9796),o=s(7309),c=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find(t=>t.key.toValue()===e)}remove(e){let t=null;return this.content=this.content.filter(s=>s.key.toValue()!==e||(t=s,!1)),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(r(e))return Object.keys(e).forEach(t=>{this.set(t,e[t])}),this;const s=e,n=this.getMember(s);return n?n.value=t:this.content.push(new o(s,t)),this}keys(){return this.content.map(e=>e.key.toValue())}values(){return this.content.map(e=>e.value.toValue())}hasKey(e){return this.content.some(t=>t.key.equals(e))}items(){return this.content.map(e=>[e.key.toValue(),e.value.toValue()])}map(e,t){return this.content.map(s=>e.bind(t)(s.value,s.key,s))}compactMap(e,t){const s=[];return this.forEach((n,r,i)=>{const o=e.bind(t)(n,r,i);o&&s.push(o)}),s}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach(s=>e.bind(t)(s.value,s.key,s))}}},5650:(e,t,s)=>{var n=s(8942).Symbol;e.exports=n},5681:(e,t,s)=>{var n=s(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},5735:(e,t,s)=>{const n=s(9310),r=s(8138),i=s(986),o=s(2563),c=s(1580),a=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(n,l.NullElement,!1).detect(r,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(c,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const n=this.elementDetection[s][0],r=this.elementDetection[s][1];if(n(e)){t=new r(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=u,e.exports=u},5853:(e,t,s)=>{e=s.nmd(e);var n=s(8942),r=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||r;e.exports=a},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach(function(e,n){s[++t]=[n,e]}),s}},6027:(e,t,s)=>{var n=s(7379),r=s(547);e.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}},6137:e=>{e.exports=function(e,t){for(var s=-1,n=Array(e);++s<e;)n[s]=t(s);return n}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,s)=>{var n=s(4687);e.exports=function(e,t){return n(e,t)}},6465:e=>{e.exports=function(e,t){for(var s=-1,n=null==e?0:e.length;++s<n;)if(t(e[s],s,e))return!0;return!1}},6529:(e,t,s)=>{var n=s(3655),r=s(5387);e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},6638:(e,t,s)=>{var n=s(1386),r=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof n){var o=s.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},7034:(e,t,s)=>{var n=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(n(e[s][0],t))return s;return-1}},7144:(e,t,s)=>{var n=s(7034);e.exports=function(e){var t=this.__data__,s=n(t,e);return s<0?void 0:t[s][1]}},7309:(e,t,s)=>{const n=s(2322),r=s(8631);e.exports=class extends r{constructor(e,t,s,r){super(new n,s,r),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7379:(e,t,s)=>{var n=s(5650),r=s(8870),i=s(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):i(e)}},7452:(e,t,s)=>{var n=s(7034);e.exports=function(e){return n(this.__data__,e)>-1}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7547:(e,t,s)=>{const n=s(8631),r=s(3004),i=s(8712),o=s(2536),c=s(2555),a=s(9796),l=s(7309),u=s(5642),p=s(9620),h=s(593),m=s(4123),f=s(3311),d=s(2322);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new r;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=h,n.prototype.MemberElement=l,n.prototype.refract=y,m.prototype.refract=y,e.exports={Element:n,NullElement:r,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},7979:(e,t,s)=>{var n=s(9847),r=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),function(t){return i.call(e,t)}))}:r;e.exports=c},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8121:(e,t,s)=>{var n=s(3766)(Object.keys,Object);e.exports=n},8138:(e,t,s)=>{var n=s(7379),r=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!r(e)&&i(e)&&"[object String]"==n(e)}},8244:(e,t,s)=>{var n=s(1129),r=s(3142);e.exports=function(e,t,s){var i=t(e);return r(e)?i:n(i,s(e))}},8250:(e,t,s)=>{var n=s(9753),r=s(5681),i=s(88),o=s(4732),c=s(9068);function a(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=r,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},8326:(e,t,s)=>{const n=s(5735),r=s(7547);t.g$=n,t.KeyValuePair=s(2322),t.G6=r.ArraySlice,t.ot=r.ObjectSlice,t.Hg=r.Element,t.Om=r.StringElement,t.kT=r.NumberElement,t.bd=r.BooleanElement,t.Os=r.NullElement,t.wE=r.ArrayElement,t.Sh=r.ObjectElement,t.Pr=r.MemberElement,t.sI=r.RefElement,t.Ft=r.LinkElement,t.e=r.refract,s(394),s(3148)},8486:(e,t,s)=>{var n=s(3103),r=s(9770),i=s(9413),o=s(4512),c=s(9270),a=s(7379),l=s(4066),u="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=l(n),y=l(r),g=l(i),v=l(o),b=l(c),E=a;(n&&E(new n(new ArrayBuffer(1)))!=f||r&&E(new r)!=u||i&&E(i.resolve())!=p||o&&E(new o)!=h||c&&E(new c)!=m)&&(E=function(e){var t=a(e),s="[object Object]"==t?e.constructor:void 0,n=s?l(s):"";if(n)switch(n){case d:return f;case y:return u;case g:return p;case v:return h;case b:return m}return t}),e.exports=E},8631:(e,t,s)=>{const n=s(6343),r=s(2322),i=s(4123);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach(e=>{e.parent=this,e.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map(e=>e.clone()):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof r?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map(e=>e.toValue(),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let s=new i;const n=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(n,e),s.content instanceof r&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter(t=>{let s=t.parents.map(e=>e.element);for(const t in e){const n=e[t],r=s.indexOf(n);if(-1===r)return!1;s=s.splice(0,r)}return!0})),s}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof r)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map(t=>new this.MemberElement(t,e[t]))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof r){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach(t=>{e.push(t),t.recursiveChildren.forEach(t=>{e.push(t)})}),e}}e.exports=o},8666:(e,t,s)=>{var n=s(674),r=s(9460),i=s(2306),o=i&&i.isTypedArray,c=o?r(o):n;e.exports=c},8712:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,s)=>{var n=s(5650),r=s(1623),i=s(6285),o=s(3934),c=s(5894),a=s(9828),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,n,l,p,h){switch(s){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=c;case"[object Set]":var f=1&n;if(m||(m=a),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;n|=2,h.set(e,t);var y=o(m(e),m(t),n,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,s)=>{var n=s(5650),r=Object.prototype,i=r.hasOwnProperty,o=r.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),s=e[c];try{e[c]=void 0;var n=!0}catch(e){}var r=o.call(e);return n&&(t?e[c]=s:delete e[c]),r}},8942:(e,t,s)=>{var n=s(4967),r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();e.exports=i},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,s)=>{var n=s(4700);e.exports=function(e,t){var s=n(this,e),r=s.size;return s.set(e,t),this.size+=s.size==r?0:1,this}},9270:(e,t,s)=>{var n=s(4715)(s(8942),"WeakMap");e.exports=n},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,s)=>{var n=s(4715)(s(8942),"Promise");e.exports=n},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9620:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,s)=>{var n=s(3655),r=s(4759),i=s(1580),o=s(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,u=a.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||r(e))&&(n(e)?h:c).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var n=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<s}},9753:(e,t,s)=>{var n=s(5098),r=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}},9770:(e,t,s)=>{var n=s(4715)(s(8942),"Map");e.exports=n},9796:(e,t,s)=>{const n=s(1517),r=s(8631),i=s(4123);class o extends r{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce((e,t)=>e.concat(t),[])}compactMap(e,t){const s=[];return this.forEach(n=>{const r=e.bind(t)(n);r&&s.push(r)}),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];n="object"===this.primitive()?this.refract(e(n,s.value,s.key,s,this)):this.refract(e(n,s,t,this))}return n}forEach(e,t){this.content.forEach((s,n)=>{e.bind(t)(s,this.refract(n))})}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},n=!!s.recursive,r=void 0===s.results?[]:s.results;return this.forEach((t,s,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:r,recursive:n}),e(t,s,i)&&r.push(t)}),r}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>t.classes.includes(e))}getById(e){return this.find(t=>t.id.toValue()===e).first}includes(e){return this.content.some(t=>t.equals(e))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map(t=>e(t),this).reduce((e,t)=>e.concat(t),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach(function(e){s[++t]=e}),s}},9847:e=>{e.exports=function(e,t){for(var s=-1,n=null==e?0:e.length,r=0,i=[];++s<n;){var o=e[s];t(o,s,e)&&(i[r++]=o)}return i}}},t={};function s(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n](i,i.exports,s),i.loaded=!0,i.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";s.r(n),s.d(n,{AlternatingVisitor:()=>fa,CallbackElement:()=>_s,ComponentsCallbacksElement:()=>Co,ComponentsElement:()=>Fs,ComponentsExamplesElement:()=>xo,ComponentsHeadersElement:()=>Oo,ComponentsLinksElement:()=>$o,ComponentsParametersElement:()=>bo,ComponentsRequestBodiesElement:()=>wo,ComponentsResponsesElement:()=>go,ComponentsSchemasElement:()=>fo,ComponentsSecuritySchemesElement:()=>Ao,ContactElement:()=>qs,DiscriminatorElement:()=>Ns,DiscriminatorMappingElement:()=>pc,EncodingElement:()=>Vs,EncodingHeadersElement:()=>nc,ExampleElement:()=>zs,ExternalDocumentationElement:()=>Us,FallbackVisitor:()=>Pc,FixedFieldsVisitor:()=>qc,HeaderContentElement:()=>bc,HeaderElement:()=>Gs,HeaderExamplesElement:()=>gc,InfoElement:()=>Hs,LicenseElement:()=>Xs,LinkElement:()=>Zs,LinkParametersElement:()=>dc,MapVisitor:()=>ea,MediaTypeElement:()=>en,MediaTypeEncodingElement:()=>tc,MediaTypeExamplesElement:()=>Qo,MixedFieldsVisitor:()=>Tu,OAuthFlowElement:()=>sn,OAuthFlowScopesElement:()=>mc,OAuthFlowsElement:()=>rn,OpenAPIMediaTypes:()=>$e,OpenApi3_0Element:()=>ln,OpenapiElement:()=>cn,OperationCallbacksElement:()=>Jo,OperationElement:()=>pn,OperationParametersElement:()=>Io,OperationSecurityElement:()=>Ko,OperationServersElement:()=>Wo,OperationTagsElement:()=>Lo,ParameterContentElement:()=>Do,ParameterElement:()=>mn,ParameterExamplesElement:()=>Bo,PathItemElement:()=>dn,PathItemParametersElement:()=>To,PathItemServersElement:()=>Ro,PathsElement:()=>gn,PatternedFieldsVisitor:()=>Qc,ReferenceElement:()=>bn,RequestBodyContentElement:()=>Yo,RequestBodyElement:()=>xn,ResponseContentElement:()=>cc,ResponseElement:()=>wn,ResponseHeadersElement:()=>ic,ResponseLinksElement:()=>lc,ResponsesElement:()=>On,SchemaElement:()=>Ji,SecurityElement:()=>ao,SecurityRequirementElement:()=>Ki,SecuritySchemeElement:()=>Wi,ServerElement:()=>Yi,ServerVariableElement:()=>Qi,ServerVariablesElement:()=>ho,ServersElement:()=>oo,SpecificationExtensionVisitor:()=>Dc,SpecificationVisitor:()=>Ac,TagElement:()=>to,TagsElement:()=>uo,Visitor:()=>Oc,XmlElement:()=>no,createRefractor:()=>gp,createToolbox:()=>dp,default:()=>ro,getNodeType:()=>Ec,isArrayElement:()=>ae,isBooleanElement:()=>oe,isBooleanJsonSchemaElement:()=>Ta,isCallbackElement:()=>da,isComponentsElement:()=>ya,isContactElement:()=>ga,isElement:()=>se,isExampleElement:()=>va,isExternalDocumentationElement:()=>ba,isInfoElement:()=>xa,isLicenseElement:()=>ja,isLinkElement:()=>wa,isLinkPrimitiveElement:()=>ue,isMediaTypeElement:()=>Va,isMemberElement:()=>le,isNullElement:()=>ie,isNumberElement:()=>re,isObjectElement:()=>ce,isOpenApi3_0Element:()=>Oa,isOpenApiExtension:()=>Tc,isOpenapiElement:()=>Sa,isOperationElement:()=>Pa,isParameterElement:()=>Aa,isPathItemElement:()=>ka,isPathsElement:()=>$a,isRefElement:()=>pe,isReferenceElement:()=>Ma,isReferenceLikeElement:()=>_c,isRequestBodyElement:()=>Ca,isResponseElement:()=>_a,isResponsesElement:()=>Ra,isSchemaElement:()=>Fa,isSecurityRequirementElement:()=>qa,isSecuritySchemeElement:()=>Ia,isServerElement:()=>Na,isServerLikeElement:()=>Rc,isServerVariableElement:()=>Ba,isServersElement:()=>Da,isStringElement:()=>ne,isTagLikeElement:()=>Fc,keyMap:()=>xc,mediaTypes:()=>Me,refract:()=>vp,refractorPluginReplaceEmptyElement:()=>Sc,specificationObj:()=>fp});var e={};s.r(e),s.d(e,{hasElementSourceMap:()=>ge,includesClasses:()=>be,includesSymbols:()=>ve,isAnnotationElement:()=>he,isArrayElement:()=>ae,isBooleanElement:()=>oe,isCommentElement:()=>me,isElement:()=>se,isLinkElement:()=>ue,isMemberElement:()=>le,isNullElement:()=>ie,isNumberElement:()=>re,isObjectElement:()=>ce,isParseResultElement:()=>fe,isPrimitiveElement:()=>ye,isRefElement:()=>pe,isSourceMapElement:()=>de,isStringElement:()=>ne});var t={};s.r(t),s.d(t,{isJSONReferenceElement:()=>Dr,isJSONSchemaElement:()=>Vr,isLinkDescriptionElement:()=>Lr,isMediaElement:()=>zr});var r={};s.r(r),s.d(r,{isBooleanJsonSchemaElement:()=>Ta,isCallbackElement:()=>da,isComponentsElement:()=>ya,isContactElement:()=>ga,isExampleElement:()=>va,isExternalDocumentationElement:()=>ba,isHeaderElement:()=>Ea,isInfoElement:()=>xa,isLicenseElement:()=>ja,isLinkElement:()=>wa,isMediaTypeElement:()=>Va,isOpenApi3_0Element:()=>Oa,isOpenapiElement:()=>Sa,isOperationElement:()=>Pa,isParameterElement:()=>Aa,isPathItemElement:()=>ka,isPathsElement:()=>$a,isReferenceElement:()=>Ma,isRequestBodyElement:()=>Ca,isResponseElement:()=>_a,isResponsesElement:()=>Ra,isSchemaElement:()=>Fa,isSecurityRequirementElement:()=>qa,isSecuritySchemeElement:()=>Ia,isServerElement:()=>Na,isServerVariableElement:()=>Ba,isServersElement:()=>Da});var i=s(8326);function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function t(s){return 0===arguments.length||o(s)?t:e.apply(this,arguments)}}function a(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return o(s)?t:c(function(t){return e(s,t)});default:return o(s)&&o(n)?t:o(s)?c(function(t){return e(t,n)}):o(n)?c(function(t){return e(s,t)}):e(s,n)}}}const l=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function u(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!l(n)){for(var r=0;r<e.length;){if("function"==typeof n[e[r]])return n[e[r]].apply(n,Array.prototype.slice.call(arguments,0,-1));r+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return s.apply(this,arguments)}}function p(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const h=function(){return this.xf["@@transducer/init"]()},m=function(e){return this.xf["@@transducer/result"](e)};var f=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=h,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=p(this.xf["@@transducer/step"](e,!1))),e},e}();function d(e){return function(t){return new f(e,t)}}const y=a(u(["all"],d,function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}));function g(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,n){return t.apply(this,arguments)};case 4:return function(e,s,n,r){return t.apply(this,arguments)};case 5:return function(e,s,n,r,i){return t.apply(this,arguments)};case 6:return function(e,s,n,r,i,o){return t.apply(this,arguments)};case 7:return function(e,s,n,r,i,o,c){return t.apply(this,arguments)};case 8:return function(e,s,n,r,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,n,r,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,n,r,i,o,c,a,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function v(e,t,s){return function(){for(var n=[],r=0,i=e,c=0,a=!1;c<t.length||r<arguments.length;){var l;c<t.length&&(!o(t[c])||r>=arguments.length)?l=t[c]:(l=arguments[r],r+=1),n[c]=l,o(l)?a=!0:i-=1,c+=1}return!a&&i<=0?s.apply(this,n):g(Math.max(0,i),v(e,n,s))}}const b=a(function(e,t){return 1===e?c(t):g(e,v(e,[],t))});const E=c(function(e){return b(e.length,function(t,s){var n=Array.prototype.slice.call(arguments,0);return n[0]=s,n[1]=t,e.apply(this,n)})});function x(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function j(e,t,s){for(var n=0,r=s.length;n<r;){if(e(t,s[n]))return!0;n+=1}return!1}function w(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const S="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var O=Object.prototype.toString;const P=function(){return"[object Arguments]"===O.call(arguments)?function(e){return"[object Arguments]"===O.call(e)}:function(e){return w("callee",e)}}();var A=!{toString:null}.propertyIsEnumerable("toString"),k=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=function(){return arguments.propertyIsEnumerable("length")}(),M=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},C="function"!=typeof Object.keys||$?c(function(e){if(Object(e)!==e)return[];var t,s,n=[],r=$&&P(e);for(t in e)!w(t,e)||r&&"length"===t||(n[n.length]=t);if(A)for(s=k.length-1;s>=0;)w(t=k[s],e)&&!M(n,t)&&(n[n.length]=t),s-=1;return n}):c(function(e){return Object(e)!==e?[]:Object.keys(e)});const _=C;const R=c(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function F(e,t,s,n){var r=x(e);function i(e,t){return T(e,t,s.slice(),n.slice())}return!j(function(e,t){return!j(i,t,e)},x(t),r)}function T(e,t,s,n){if(S(e,t))return!0;var r,i,o=R(e);if(o!==R(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(r=e.constructor,null==(i=String(r).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!S(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!S(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=s.length-1;c>=0;){if(s[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&F(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&F(e.values(),t.values(),s.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=_(e);if(a.length!==_(t).length)return!1;var l=s.concat([e]),u=n.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!w(p,t)||!T(t[p],e[p],l,u))return!1;c-=1}return!0}const q=a(function(e,t){return T(e,t,[],[])});function I(e,t){return function(e,t,s){var n,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(r=e[s])&&1/r===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(r=e[s])&&r!=r)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(q(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}const N=E(a(I));class B extends i.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const V=B;class D extends i.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const z=D;const L=c(function(e){return function(){return e}});const U=L(void 0);const J=q(U());class G extends i.wE{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>"annotation"===e.element)}get warnings(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>"annotation"===e.element).isEmpty}replaceResult(e){const{result:t}=this;if(J(t))return!1;const s=this.content.findIndex(e=>e===t);return-1!==s&&(this.content[s]=e,!0)}}const K=G;class H extends i.wE{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}get positionStart(){return this.children.filter(e=>e.classes.contains("position")).get(0)}get positionEnd(){return this.children.filter(e=>e.classes.contains("position")).get(1)}set position(e){if(void 0===e)return;const t=new i.wE([e.start.row,e.start.column,e.start.char]),s=new i.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const W=H,X=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Y=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Z=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Q=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof i.wE)&&t.classes.includes(e),ee=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,te=e=>e({hasMethod:X,hasBasicElementProps:Y,primitiveEq:Z,isElementType:ee,hasClass:Q}),se=te(({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof i.Hg||e(s)&&t(void 0,s)),ne=te(({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof i.Om||e(s)&&t("string",s)),re=te(({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof i.kT||e(s)&&t("number",s)),ie=te(({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof i.Os||e(s)&&t("null",s)),oe=te(({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof i.bd||e(s)&&t("boolean",s)),ce=te(({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>n=>n instanceof i.Sh||e(n)&&t("object",n)&&s("keys",n)&&s("values",n)&&s("items",n)),ae=te(({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>n=>n instanceof i.wE&&!(n instanceof i.Sh)||e(n)&&t("array",n)&&s("push",n)&&s("unshift",n)&&s("map",n)&&s("reduce",n)),le=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof i.Pr||e(n)&&t("member",n)&&s(void 0,n)),ue=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof i.Ft||e(n)&&t("link",n)&&s(void 0,n)),pe=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof i.sI||e(n)&&t("ref",n)&&s(void 0,n)),he=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof V||e(n)&&t("annotation",n)&&s("array",n)),me=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof z||e(n)&&t("comment",n)&&s("string",n)),fe=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof K||e(n)&&t("parseResult",n)&&s("array",n)),de=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof W||e(n)&&t("sourceMap",n)&&s("array",n)),ye=e=>ee("object",e)||ee("array",e)||ee("boolean",e)||ee("number",e)||ee("string",e)||ee("null",e)||ee("member",e),ge=e=>de(e.meta.get("sourceMap")),ve=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!ae(s)&&y(N(s.toValue()),e)},be=(e,t)=>0===e.length||y(N(t.classes.toValue()),e);function Ee(e,t){return t[e<0?t.length+e:e]}const xe=c(function(e){return Ee(-1,e)});class je extends AggregateError{constructor(e,t,s){super(e,t,s),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const we=je;class Se extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(we,e)}constructor(e,t){super(e,t),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Oe=Se;const Pe=class extends Oe{};const Ae=class extends Pe{};const ke=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Ae("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Ae("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Ae("latest method in MediaTypes class is not yet implemented.")}};class $e extends ke{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="3.0.4",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find(e=>e.includes(s))||this.unknownMediaType}latest(e="generic"){return xe(this.filterByFormat(e))}}const Me=new $e("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3","application/vnd.oai.openapi;version=3.0.4","application/vnd.oai.openapi+json;version=3.0.4","application/vnd.oai.openapi+yaml;version=3.0.4");function Ce(e){return function t(s,n,r){switch(arguments.length){case 0:return t;case 1:return o(s)?t:a(function(t,n){return e(s,t,n)});case 2:return o(s)&&o(n)?t:o(s)?a(function(t,s){return e(t,n,s)}):o(n)?a(function(t,n){return e(s,t,n)}):c(function(t){return e(s,n,t)});default:return o(s)&&o(n)&&o(r)?t:o(s)&&o(n)?a(function(t,s){return e(t,s,r)}):o(s)&&o(r)?a(function(t,s){return e(t,n,s)}):o(n)&&o(r)?a(function(t,n){return e(s,t,n)}):o(s)?c(function(t){return e(t,n,r)}):o(n)?c(function(t){return e(s,t,r)}):o(r)?c(function(t){return e(s,n,t)}):e(s,n,r)}}}function _e(e){return"[object Object]"===Object.prototype.toString.call(e)}const Re=Ce(function(e,t,s){var n,r={};for(n in s=s||{},t=t||{})w(n,t)&&(r[n]=w(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)w(n,s)&&!w(n,r)&&(r[n]=s[n]);return r});const Fe=Ce(function e(t,s,n){return Re(function(s,n,r){return _e(n)&&_e(r)?e(t,n,r):t(s,n,r)},s,n)});const Te=a(function(e,t){return Fe(function(e,t,s){return s},e,t)});const qe=a(function(e,t){return null==t||t!=t?e:t}),Ie=Number.isInteger||function(e){return(e|0)===e};const Ne=a(function(e,t){if(null!=t)return Ie(e)?Ee(e,t):t[e]});const Be=Ce(function(e,t,s){return qe(e,Ne(t,s))});function Ve(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=Ie(r)?Ee(r,s):s[r]}return s}const De=a(Ve);function ze(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return l(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const Le=Ce(ze("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const Ue=Le(0,-1);const Je=a(function(e,t){return g(e.length,function(){return e.apply(t,arguments)})});const Ge=a(function(e,t){return e.apply(this,t)});function Ke(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}function He(e){return"[object String]"===Object.prototype.toString.call(e)}const We=c(function(e){return!!l(e)||!!e&&("object"==typeof e&&(!He(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Xe="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ye(e,t,s){return function(n,r,i){if(We(i))return e(n,r,i);if(null==i)return r;if("function"==typeof i["fantasy-land/reduce"])return t(n,r,i,"fantasy-land/reduce");if(null!=i[Xe])return s(n,r,i[Xe]());if("function"==typeof i.next)return s(n,r,i);if("function"==typeof i.reduce)return t(n,r,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ze(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function Qe(e,t,s,n){return s[n](e,t)}const et=Ye(Ke,Qe,Ze);function tt(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}var st=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=h,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const nt=a(u(["fantasy-land/map","map"],function(e){return function(t){return new st(e,t)}},function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return b(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return Ke(function(s,n){return s[n]=e(t[n]),s},{},_(t));default:return tt(e,t)}}));const rt=a(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:et(function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,r=t.length,i=[];for(s=0;s<n;)i[i.length]=e[s],s+=1;for(s=0;s<r;)i[i.length]=t[s],s+=1;return i}(e,nt(s,t))},[],e)});const it=a(function(e,t){var s=b(e,t);return b(e,function(){return Ke(rt,nt(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const ot=c(function(e){return it(e.length,e)});const ct=ot(c(function(e){return!e}));function at(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var lt=function(e){return(e<10?"0":"")+e};const ut="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+lt(e.getUTCMonth()+1)+"-"+lt(e.getUTCDate())+"T"+lt(e.getUTCHours())+":"+lt(e.getUTCMinutes())+":"+lt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var pt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=h,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function ht(e){return function(t){return new pt(e,t)}}var mt=a(u(["fantasy-land/filter","filter"],ht,function(e,t){return _e(t)?Ke(function(s,n){return e(t[n])&&(s[n]=t[n]),s},{},_(t)):(s=t,"[object Map]"===Object.prototype.toString.call(s)?function(e,t){for(var s=new Map,n=t.entries(),r=n.next();!r.done;)e(r.value[1])&&s.set(r.value[0],r.value[1]),r=n.next();return s}(e,t):function(e,t){for(var s=0,n=t.length,r=[];s<n;)e(t[s])&&(r[r.length]=t[s]),s+=1;return r}(e,t));var s}));const ft=mt;const dt=a(function(e,t){return ft((s=e,function(){return!s.apply(this,arguments)}),t);var s});function yt(e,t){var s=function(s){var n=t.concat([e]);return I(s,n)?"<Circular>":yt(s,n)},n=function(e,t){return tt(function(t){return at(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+tt(s,e).join(", ")+"))";case"[object Array]":return"["+tt(s,e).concat(n(e,dt(function(e){return/^\d+$/.test(e)},_(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):at(ut(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":at(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var r=e.toString();if("[object Object]"!==r)return r}return"{"+n(e,_(e)).join(", ")+"}"}}const gt=c(function(e){return yt(e,[])});const vt=a(function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var n=s(e,t);if(void 0!==n)return n;var r=s(typeof e,typeof t);if(void 0!==r)return r===typeof e?e:t;var i=gt(e),o=s(i,gt(t));return void 0!==o&&o===i?e:t});const bt=a(function(e,t){return nt(Ne(e),t)});function Et(e,t,s){for(var n=0,r=s.length;n<r;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function xt(e,t,s){for(var n=s.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=s.next()}return e["@@transducer/result"](t)}function jt(e,t,s,n){return e["@@transducer/result"](s[n](Je(e["@@transducer/step"],e),t))}const wt=Ye(Et,jt,xt);var St=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const Ot=Ce(function(e,t,s){return wt("function"==typeof e?new St(e):e,t,s)});const Pt=c(function(e){return b(Ot(vt,0,bt("length",e)),function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});function At(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const kt=c(ze("tail",Le(1,1/0)));function $t(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return g(arguments[0].length,Ot(At,arguments[0],kt(arguments)))}var Mt=function(e,t){switch(arguments.length){case 0:return Mt;case 1:return function t(s){return 0===arguments.length?t:S(e,s)};default:return S(e,t)}};const Ct=Mt;const _t=b(1,$t(R,Ct("GeneratorFunction")));const Rt=b(1,$t(R,Ct("AsyncFunction")));const Ft=Pt([$t(R,Ct("Function")),_t,Rt]);const Tt=ct(Ft);function qt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const It=a(function(e,t){return e&&t});const Nt=a(function(e,t){return qt(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ot(It)(e,t)});var Bt=c(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():e==Set||e instanceof Set?new Set:e==Map||e instanceof Map?new Map:l(e)?[]:He(e)?"":_e(e)?{}:P(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0});const Vt=Bt;const Dt=c(function(e){return null!=e&&q(e,Vt(e))});const zt=b(1,Ft(Array.isArray)?Array.isArray:$t(R,Ct("Array")));const Lt=Nt(zt,Dt);const Ut=b(3,function(e,t,s){var n=De(e,s),r=De(Ue(e),s);if(!Tt(n)&&!Lt(e)){var i=Je(n,r);return Ge(i,t)}});const Jt=Ce(function(e,t,s){return e(Ve(t,s))});const Gt=q(null);const Kt=ct(Gt);function Ht(e){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(e)}const Wt=function(e){return"object"===Ht(e)};const Xt=b(1,Nt(Kt,Wt));var Yt=$t(R,Ct("Object")),Zt=$t(gt,q(gt(Object))),Qt=Jt(Nt(Ft,Zt),["constructor"]);const es=b(1,function(e){if(!Xt(e)||!Yt(e))return!1;var t=Object.getPrototypeOf(e);return!!Gt(t)||Qt(t)});class ts extends i.g${constructor(){super(),this.register("annotation",V),this.register("comment",z),this.register("parseResult",K),this.register("sourceMap",W)}}const ss=new ts,ns=e=>{const t=new ts;return es(e)&&t.use(e),t},rs=ss,is=()=>({predicates:{...e},namespace:rs});const os=b(1,$t(R,Ct("String")));const cs=class extends Oe{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},as=(e,t,s)=>{const n=e[t];if(null!=n){if(!s&&"function"==typeof n)return n;const e=s?n.leave:n.enter;if("function"==typeof e)return e}else{const n=s?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},ls={},us=e=>e?.type,ps=e=>"string"==typeof us(e),hs=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ms=(e,{visitFnGetter:t=as,nodeTypeGetter:s=us,breakSymbol:n=ls,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(l,u,p,h,m,f){let d=l,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let l=0;l<e.length;l+=1)if(a[l]===c){const c=t(e[l],s(d),!1);if("function"==typeof c){const t=c.call(e[l],d,u,p,h,m,g);if("function"==typeof t?.then)throw new cs("Async visitor not supported in sync mode",{visitor:e[l],visitFn:c});if(t===i)a[l]=d;else if(t===n)a[l]=n;else{if(t===r)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(r,o,l,u,p,h){let m=r;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let r=0;r<e.length;r+=1)if(a[r]===c){const c=t(e[r],s(m),!0);if("function"==typeof c){const t=c.call(e[r],m,o,l,u,p,f);if("function"==typeof t?.then)throw new cs("Async visitor not supported in sync mode",{visitor:e[r],visitFn:c});if(t===n)a[r]=n;else if(void 0!==t&&t!==i)return t}}else a[r]===m&&(a[r]=c)}}};ms[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=as,nodeTypeGetter:s=us,breakSymbol:n=ls,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(l,u,p,h,m,f){let d=l,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let l=0;l<e.length;l+=1)if(a[l]===c){const c=t(e[l],s(d),!1);if("function"==typeof c){const t=await c.call(e[l],d,u,p,h,m,g);if(t===i)a[l]=d;else if(t===n)a[l]=n;else{if(t===r)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(r,o,l,u,p,h){let m=r;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let r=0;r<e.length;r+=1)if(a[r]===c){const c=t(e[r],s(m),!0);if("function"==typeof c){const t=await c.call(e[r],m,o,l,u,p,f);if(t===n)a[r]=n;else if(void 0!==t&&t!==i)return t}}else a[r]===m&&(a[r]=c)}}};const fs=(e,t,{keyMap:s=null,state:n={},breakSymbol:r=ls,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=as,nodeTypeGetter:a=us,nodePredicate:l=ps,nodeCloneFn:u=hs,detectCycles:p=!0}={})=>{const h=s||{};let m,f,d=Array.isArray(e),y=[e],g=-1,v=[],b=e;const E=[],x=[];do{g+=1;const e=g===y.length;let s;const j=e&&0!==v.length;if(e){if(s=0===x.length?void 0:E.pop(),b=f,f=x.pop(),j)if(d){b=b.slice();let e=0;for(const[t,s]of v){const n=t-e;s===i?(b.splice(n,1),e+=1):b[n]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=m.index,y=m.keys,v=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(s=d?g:y[g],b=f[s],b===i||void 0===b)continue;E.push(s)}let w;if(!Array.isArray(b)){if(!l(b))throw new cs(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&x.includes(b)){E.pop();continue}const i=c(t,a(b),e);if(i){for(const[e,s]of Object.entries(n))t[e]=s;const r={replaceWith(t,n){"function"==typeof n?n(t,b,s,f,E,x):f&&(f[s]=t),e||(b=t)}};w=i.call(t,b,s,f,E,x,r)}if("function"==typeof w?.then)throw new cs("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(w===r)break;if(w===o){if(!e){E.pop();continue}}else if(void 0!==w&&(v.push([s,w]),!e)){if(!l(w)){E.pop();continue}b=w}}void 0===w&&j&&v.push([s,b]),e||(m={inArray:d,index:g,keys:y,edits:v,prev:m},d=Array.isArray(b),y=d?b:h[a(b)]??[],g=-1,v=[],f!==i&&void 0!==f&&x.push(f),f=b)}while(void 0!==m);return 0!==v.length?v.at(-1)[1]:e};fs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:n={},breakSymbol:r=ls,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=as,nodeTypeGetter:a=us,nodePredicate:l=ps,nodeCloneFn:u=hs,detectCycles:p=!0}={})=>{const h=s||{};let m,f,d=Array.isArray(e),y=[e],g=-1,v=[],b=e;const E=[],x=[];do{g+=1;const e=g===y.length;let s;const j=e&&0!==v.length;if(e){if(s=0===x.length?void 0:E.pop(),b=f,f=x.pop(),j)if(d){b=b.slice();let e=0;for(const[t,s]of v){const n=t-e;s===i?(b.splice(n,1),e+=1):b[n]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=m.index,y=m.keys,v=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(s=d?g:y[g],b=f[s],b===i||void 0===b)continue;E.push(s)}let w;if(!Array.isArray(b)){if(!l(b))throw new cs(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&x.includes(b)){E.pop();continue}const i=c(t,a(b),e);if(i){for(const[e,s]of Object.entries(n))t[e]=s;const r={replaceWith(t,n){"function"==typeof n?n(t,b,s,f,E,x):f&&(f[s]=t),e||(b=t)}};w=await i.call(t,b,s,f,E,x,r)}if(w===r)break;if(w===o){if(!e){E.pop();continue}}else if(void 0!==w&&(v.push([s,w]),!e)){if(!l(w)){E.pop();continue}b=w}}void 0===w&&j&&v.push([s,b]),e||(m={inArray:d,index:g,keys:y,edits:v,prev:m},d=Array.isArray(b),y=d?b:h[a(b)]??[],g=-1,v=[],f!==i&&void 0!==f&&x.push(f),f=b)}while(void 0!==m);return 0!==v.length?v.at(-1)[1]:e};const ds=class extends cs{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ys=class extends ds{};const gs=class extends ds{},vs=(e,t={})=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof i.KeyValuePair){const{key:t,value:r}=e,o=se(t)?vs(t,n):t,c=se(r)?vs(r,n):r,a=new i.KeyValuePair(o,c);return s.set(e,a),a}if(e instanceof i.ot){const t=e=>vs(e,n),r=[...e].map(t),o=new i.ot(r);return s.set(e,o),o}if(e instanceof i.G6){const t=e=>vs(e,n),r=[...e].map(t),o=new i.G6(r);return s.set(e,o),o}if(se(e)){const t=xs(e);if(s.set(e,t),e.content)if(se(e.content))t.content=vs(e.content,n);else if(e.content instanceof i.KeyValuePair)t.content=vs(e.content,n);else if(Array.isArray(e.content)){const s=e=>vs(e,n);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new ys("Value provided to cloneDeep function couldn't be cloned",{value:e})};vs.safe=e=>{try{return vs(e)}catch{return e}};const bs=e=>{const{key:t,value:s}=e;return new i.KeyValuePair(t,s)},Es=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=vs(e.meta)),e.attributes.length>0&&(t._attributes=vs(e.attributes)),se(e.content)){const s=e.content;t.content=Es(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof i.KeyValuePair?t.content=bs(e.content):t.content=e.content;return t},xs=e=>{if(e instanceof i.KeyValuePair)return bs(e);if(e instanceof i.ot)return(e=>{const t=[...e];return new i.ot(t)})(e);if(e instanceof i.G6)return(e=>{const t=[...e];return new i.G6(t)})(e);if(se(e))return Es(e);throw new gs("Value provided to cloneShallow function couldn't be cloned",{value:e})};xs.safe=e=>{try{return xs(e)}catch{return e}};const js=e=>ce(e)?"ObjectElement":ae(e)?"ArrayElement":le(e)?"MemberElement":ne(e)?"StringElement":oe(e)?"BooleanElement":re(e)?"NumberElement":ie(e)?"NullElement":ue(e)?"LinkElement":pe(e)?"RefElement":void 0,ws=e=>se(e)?xs(e):hs(e),Ss=$t(js,os),Os={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Ps=(e,t,{keyMap:s=Os,...n}={})=>fs(e,t,{keyMap:s,nodeTypeGetter:js,nodePredicate:Ss,nodeCloneFn:ws,...n});Ps[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=Os,...n}={})=>fs[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:js,nodePredicate:Ss,nodeCloneFn:ws,...n});const As={toolboxCreator:is,visitorOptions:{nodeTypeGetter:js,exposeEdits:!0}},ks=(e,t,s={})=>{if(0===t.length)return e;const n=Te(As,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=ms(c.map(Be({},"visitor")),{...i});c.forEach(Ut(["pre"],[]));const l=Ps(e,a,i);return c.forEach(Ut(["post"],[])),l};ks[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=Te(As,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=ms[Symbol.for("nodejs.util.promisify.custom")],l=Ps[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(Be({},"visitor")),{...i});await Promise.allSettled(c.map(Ut(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(Ut(["post"],[]))),p};const $s=(e,{Type:t,plugins:s=[]})=>{const n=new t(e);return se(e)&&(e.meta.length>0&&(n.meta=vs(e.meta)),e.attributes.length>0&&(n.attributes=vs(e.attributes))),ks(n,s,{toolboxCreator:is,visitorOptions:{nodeTypeGetter:js}})},Ms=e=>(t,s={})=>$s(t,{...s,Type:e});i.Sh.refract=Ms(i.Sh),i.wE.refract=Ms(i.wE),i.Om.refract=Ms(i.Om),i.bd.refract=Ms(i.bd),i.Os.refract=Ms(i.Os),i.kT.refract=Ms(i.kT),i.Ft.refract=Ms(i.Ft),i.sI.refract=Ms(i.sI),V.refract=Ms(V),z.refract=Ms(z),K.refract=Ms(K),W.refract=Ms(W);class Cs extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const _s=Cs;class Rs extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Fs=Rs;class Ts extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const qs=Ts;class Is extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Ns=Is;class Bs extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Vs=Bs;class Ds extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const zs=Ds;class Ls extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Us=Ls;class Js extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new i.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new i.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Js.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Gs=Js;class Ks extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Hs=Ks;class Ws extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Xs=Ws;class Ys extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){return ne(this.operationRef)?this.operationRef?.meta.get("operation"):ne(this.operationId)?this.operationId?.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Zs=Ys;class Qs extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const en=Qs;class tn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const sn=tn;class nn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const rn=nn;class on extends i.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const cn=on;class an extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const ln=an;class un extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new i.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const pn=un;class hn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new i.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new i.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(hn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const mn=hn;class fn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const dn=fn;class yn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const gn=yn;class vn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const bn=vn;class En extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new i.bd(!1)}set required(e){this.set("required",e)}}const xn=En;class jn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const wn=jn;class Sn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const On=Sn;class Pn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const An=Pn;class kn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const $n=kn;class Mn extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Cn=Mn;class _n extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Rn=_n;const Fn=a(function(e,t){return Ke(function(s,n){return s[n]=e(t[n],n,t),s},{},_(t))});const Tn=c(function(e){return null==e});var qn=a(function(e,t){if(0===e.length||Tn(t))return!1;for(var s=t,n=0;n<e.length;){if(Tn(s)||!w(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const In=qn;var Nn=a(function(e,t){return In([e],t)});const Bn=Nn;const Vn=Ce(function(e,t,s){return e(Ne(t,s))});const Dn=c(function(e){return b(e.length,e)});const zn=a(function(e,t){return b(e+1,function(){var s=arguments[e];if(null!=s&&qt(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(gt(s)+' does not have a method named "'+t+'"')})});const Ln=zn(1,"split");var Un=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=h,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Jn(e){return function(t){return new Un(e,t)}}const Gn=a(u(["dropWhile"],Jn,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return Le(s,1/0,t)}));const Kn=zn(1,"join");const Hn=Dn(function(e,t){return $t(Ln(""),Gn(N(e)),Kn(""))(t)}),Wn=(e,t)=>{const s=qe(e,t);return Fn(e=>{if(es(e)&&Bn("$ref",e)&&Vn(os,"$ref",e)){const t=De(["$ref"],e),n=Hn("#/",t);return De(n.split("/"),s)}return es(e)?Wn(e,s):e},e)};const Xn=function(){return!0},Yn=e=>"string"==typeof e?.type?e.type:js(e),Zn={EphemeralObject:["content"],EphemeralArray:["content"],...Os},Qn=(e,t,{keyMap:s=Zn,...n}={})=>Ps(e,t,{keyMap:s,nodeTypeGetter:Yn,nodePredicate:Xn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Qn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Zn,...s}={})=>Ps[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Yn,nodePredicate:Xn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const er=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const tr=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class sr{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new tr(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new er(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){const s=t[3];return"EphemeralObject"===s[s.length-1]?.type?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ne(e.href)?e.href.toValue():""}}const nr=e=>se(e)?ne(e)||re(e)||oe(e)||ie(e)?e.toValue():Qn(e,new sr):e,rr=e=>{const t=e.meta.length>0?vs(e.meta):void 0,s=e.attributes.length>0?vs(e.attributes):void 0;return new e.constructor(void 0,t,s)},ir=(e,t)=>t.clone&&t.isMergeableElement(e)?cr(rr(e),e,t):e,or={clone:!0,isMergeableElement:e=>ce(e)||ae(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"](e=>ir(e,s)),objectElementMerge:(e,t,s)=>{const n=ce(e)?rr(e):rr(t);return ce(e)&&e.forEach((e,t,r)=>{const i=xs(r);i.value=ir(e,s),n.content.push(i)}),t.forEach((t,r,i)=>{const o=nr(r);let c;if(ce(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=xs(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return cr;const s=t.customMerge(e,t);return"function"==typeof s?s:cr})(r,s)(n,t,s)}else c=xs(i),c.value=ir(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},cr=(e,t,s)=>{const n={...or,...s};n.isMergeableElement=n.isMergeableElement??or.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??or.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??or.objectElementMerge;const r=ae(t);if(!(r===ae(e)))return ir(t,n);const i=r&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return i.meta=(e=>"function"!=typeof e.customMetaMerge?e=>vs(e):e.customMetaMerge)(n)(e.meta,t.meta),i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>vs(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),i};cr.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new i.Sh:e.reduce((e,s)=>cr(e,s,t),rr(e[0]))};const ar=cr;const lr=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ar(t.meta,e.meta),ge(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ar(t.attributes,e.attributes))}};const ur=class extends lr{enter(e){return this.element=vs(e),ls}},pr=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},hr=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:hr(s,[...t,s])},mr=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>hr(e));for(;s.every(e=>e.length>0);){const e=s.map(e=>e.pop()),n=e[0];if(!e.every(e=>e===n))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(r),o=hr(r);for(let t of e){let e=hr(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(pr(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},fr=e=>e.filter((t,s)=>e.indexOf(t)==s),dr=(e,t)=>{const s=t.map(e=>hr(e));let n=0,r=!0;for(;r;){r=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][n];if(null!=t&&(r=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}n++}},yr=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(dr(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==dr(n,e)||void 0!==t[n],get:(s,n)=>(dr(n,e)||t)[n],set(t,s,n){const r=dr(s,e);if(void 0===r)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return r[s]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))}),gr=null,vr="copy",br="copy",Er="deep",xr=new WeakMap,jr=e=>xr.get(e),wr=(e,t)=>{var s,n;const r=fr([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=fr([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},Sr=(e,t)=>{var s,n,r,i;return{property:wr(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:wr(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Or=(e,t)=>{var s,n,r,i,o,c;return{class:fr([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:Sr(null!==(r=null==e?void 0:e.static)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:Sr(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Pr=new Map,Ar=(...e)=>{const t=((...e)=>{var t;const s=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const r=[...hr(e.prototype).map(e=>e.constructor),...null!==(t=jr(e))&&void 0!==t?t:[]].filter(e=>!s.has(e));for(let e of r)n.add(e);s.add(e),n.delete(e)}return[...s]})(...e).map(e=>Pr.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>Or(e,t))},kr=e=>{let t=Pr.get(e);return t||(t={},Pr.set(e,t)),t};function $r(...e){var t,s,n;const r=e.map(e=>e.prototype),i=gr;if(null!==i){const e=r.map(e=>e[i]).filter(e=>"function"==typeof e),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};r.push(s)}function o(...t){for(const s of e)pr(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===br?mr(r,o):(c=r,a=o,yr([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===vr?mr(e,null,["prototype"]):yr(e,Function.prototype));let l=o;if("none"!==Er){const r="deep"===Er?Ar(...e):((...e)=>{const t=e.map(e=>kr(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>Or(e,t))})(...e);for(let e of null!==(t=null==r?void 0:r.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Mr(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},l),Mr(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},l.prototype)}var u,p;return u=l,p=e,xr.set(u,p),l}const Mr=(e,t)=>{const s=e.property,n=e.method;if(s)for(let e in s)for(let n of s[e])n(t,e);if(n)for(let e in n)for(let s of n[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const Cr=c(function(e){return b(Ot(vt,0,bt("length",e)),function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});const _r=c(function(e){return!Dt(e)});const Rr=a(function(e,t){return e||t});var Fr=ct(b(1,Nt(Kt,a(function(e,t){return qt(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ot(Rr)(e,t)})(Wt,Ft))));const Tr=Cr([os,Fr,_r]);const qr=a(function(e,t){for(var s={},n=0;n<e.length;)e[n]in t&&(s[e[n]]=t[e[n]]),n+=1;return s});const Ir=class extends lr{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return qr(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=De(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Jt(Ft,["visitors",...e],this.specObj)?De(["visitors",...e],this.specObj):De(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof ur&&n?.constructor===ur?vs(t):(Ps(t,n,s),n.element)}};const Nr=class extends Ir{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach((e,n,r)=>{if(ne(n)&&s.includes(nr(n))&&!this.ignoredFields.includes(nr(n))){const s=this.toRefractedElement([...t,"fixedFields",nr(n)],e),o=new i.Pr(vs(n),s);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(nr(n))||this.element.content.push(vs(r))}),this.copyMetaAndAttributes(e,this.element),ls}};const Br=class{parent;constructor({parent:e}){this.parent=e}},Vr=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof An||e(n)&&t("JSONSchemaDraft4",n)&&s("object",n)),Dr=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof $n||e(n)&&t("JSONReference",n)&&s("object",n)),zr=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Cn||e(n)&&t("media",n)&&s("object",n)),Lr=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Rn||e(n)&&t("linkDescription",n)&&s("object",n));class Ur extends($r(Nr,Br,ur)){constructor(e){super(e),this.element=new An,this.specPath=L(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Nr.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(J(this.parent)&&!ne(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Vr(this.parent)&&!ne(e.get("$schema"))){const e=qe(nr(this.parent.meta.get("inheritedDialectIdentifier")),nr(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?vs(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new i.wE,n=nr(e.get(t));Tr(n)&&s.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const Jr=Ur,Gr=e=>ce(e)&&e.hasKey("$ref");class Kr extends($r(Ir,Br,ur)){ObjectElement(e){const t=Gr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ls}ArrayElement(e){return this.element=new i.wE,this.element.classes.push("json-schema-items"),e.forEach(e=>{const t=Gr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ls}}const Hr=Kr;const Wr=class extends ur{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Xr=function(){return!1};const Yr=class extends Ir{specPath;ignoredFields;fieldPatternPredicate=Xr;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){return e.forEach((e,t,s)=>{if(!this.ignoredFields.includes(nr(t))&&this.fieldPatternPredicate(nr(t))){const n=this.specPath(e),r=this.toRefractedElement(n,e),o=new i.Pr(vs(t),r);this.copyMetaAndAttributes(s,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(nr(t))||this.element.content.push(vs(s))}),this.copyMetaAndAttributes(e,this.element),ls}};const Zr=class extends Yr{constructor(e){super(e),this.fieldPatternPredicate=Tr}};class Qr extends($r(Zr,Br,ur)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Gr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ei=Qr;class ti extends($r(Zr,Br,ur)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Gr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const si=ti;class ni extends($r(Zr,Br,ur)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Gr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ri=ni;const ii=class extends ur{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const oi=class extends ur{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class ci extends($r(Ir,Br,ur)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(e=>{const t=Gr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ls}}const ai=ci;class li extends($r(Ir,Br,ur)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(e=>{const t=Gr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ls}}const ui=li;class pi extends($r(Ir,Br,ur)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(e=>{const t=Gr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ls}}const hi=pi;class mi extends($r(Zr,Br,ur)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Gr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const fi=mi;class di extends($r(Ir,Br,ur)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),ls}}const yi=di;class gi extends($r(Nr,ur)){constructor(e){super(e),this.element=new $n,this.specPath=L(["document","objects","JSONReference"])}ObjectElement(e){const t=Nr.prototype.ObjectElement.call(this,e);return ne(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const vi=gi;const bi=class extends ur{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Ei=Ce(function(e,t,s){return b(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const xi=c(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var ji=a(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const wi=ji;const Si=c(function(e){return Ee(0,e)});const Oi=c(p);const Pi=ct(Tn);const Ai=Nt(zt,_r);function ki(e){return function(e){if(Array.isArray(e))return $i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $i(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?$i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $i(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,n=Array(t);s<t;s++)n[s]=e[s];return n}var Mi=$t(wi(xi(function(e,t){return e.length>t.length})),Si,Ne("length")),Ci=Dn(function(e,t,s){var n=s.apply(void 0,ki(e));return Pi(n)?Oi(n):t});const _i=Ei(Ai,function(e){var t=Mi(e);return b(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return Ot(Ci(s),void 0,e)})},U);const Ri=class extends Ir{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>Ei(e,L(t),U)),s=_i(t)(e);return this.element=this.toRefractedElement(s,e),ls}};const Fi=class extends Ri{constructor(e){super(e),this.alternator=[{predicate:Gr,specPath:["document","objects","JSONReference"]},{predicate:Xn,specPath:["document","objects","JSONSchema"]}]}};class Ti extends($r(Nr,ur)){constructor(e){super(e),this.element=new Cn,this.specPath=L(["document","objects","Media"])}}const qi=Ti;class Ii extends($r(Nr,ur)){constructor(e){super(e),this.element=new Rn,this.specPath=L(["document","objects","LinkDescription"])}}const Ni={visitors:{value:ur,JSONSchemaOrJSONReferenceVisitor:Fi,document:{objects:{JSONSchema:{$visitor:Jr,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Fi,items:Hr,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Wr,properties:ei,additionalProperties:Fi,patternProperties:si,dependencies:ri,enum:ii,type:oi,allOf:ai,anyOf:ui,oneOf:hi,not:Fi,definitions:fi,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:yi,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:vi,fixedFields:{$ref:bi}},Media:{$visitor:qi,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Ii,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Fi,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Fi}}}}}},Bi=e=>{if(se(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Vi={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Os},Di={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",An),t.register("jSONReference",$n),t.register("media",Cn),t.register("linkDescription",Rn),t}},zi=()=>{const e=ns(Di);return{predicates:{...t,isStringElement:ne},namespace:e}},Li=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:n=Ni}={})=>{const r=(0,i.e)(e),o=Wn(n),c=new(De(t,o))({specObj:o});return Ps(r,c),ks(c.element,s,{toolboxCreator:zi,visitorOptions:{keyMap:Vi,nodeTypeGetter:Bi}})},Ui=e=>(t,s={})=>Li(t,{specPath:e,...s});An.refract=Ui(["visitors","document","objects","JSONSchema","$visitor"]),$n.refract=Ui(["visitors","document","objects","JSONReference","$visitor"]),Cn.refract=Ui(["visitors","document","objects","Media","$visitor"]),Rn.refract=Ui(["visitors","document","objects","LinkDescription","$visitor"]);const Ji=class extends An{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Pe("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Pe("idProp setter in Schema class is not not supported.")}get $schema(){throw new Pe("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Pe("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Pe("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Pe("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Pe("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Pe("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Pe("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Pe("definitions setter in Schema class is not not supported.")}get base(){throw new Pe("base getter in Schema class is not not supported.")}set base(e){throw new Pe("base setter in Schema class is not not supported.")}get links(){throw new Pe("links getter in Schema class is not not supported.")}set links(e){throw new Pe("links setter in Schema class is not not supported.")}get media(){throw new Pe("media getter in Schema class is not not supported.")}set media(e){throw new Pe("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Gi extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Ki=Gi;class Hi extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Wi=Hi;class Xi extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Yi=Xi;class Zi extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Qi=Zi;class eo extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const to=eo;class so extends i.Sh{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const no=so,ro={namespace:e=>{const{base:t}=e;return t.register("callback",_s),t.register("components",Fs),t.register("contact",qs),t.register("discriminator",Ns),t.register("encoding",Vs),t.register("example",zs),t.register("externalDocumentation",Us),t.register("header",Gs),t.register("info",Hs),t.register("license",Xs),t.register("link",Zs),t.register("mediaType",en),t.register("oAuthFlow",sn),t.register("oAuthFlows",rn),t.register("openapi",cn),t.register("openApi3_0",ln),t.register("operation",pn),t.register("parameter",mn),t.register("pathItem",dn),t.register("paths",gn),t.register("reference",bn),t.register("requestBody",xn),t.register("response",wn),t.register("responses",On),t.register("schema",Ji),t.register("securityRequirement",Ki),t.register("securityScheme",Wi),t.register("server",Yi),t.register("serverVariable",Qi),t.register("tag",to),t.register("xml",no),t}};class io extends i.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(io.primaryClass)}}const oo=io;class co extends i.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(co.primaryClass)}}const ao=co;class lo extends i.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(lo.primaryClass)}}const uo=lo;class po extends i.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(po.primaryClass)}}const ho=po;class mo extends i.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(mo.primaryClass)}}const fo=mo;class yo extends i.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(yo.primaryClass)}}const go=yo;class vo extends i.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(vo.primaryClass),this.classes.push("parameters")}}const bo=vo;class Eo extends i.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Eo.primaryClass),this.classes.push("examples")}}const xo=Eo;class jo extends i.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(jo.primaryClass)}}const wo=jo;class So extends i.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(So.primaryClass)}}const Oo=So;class Po extends i.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(Po.primaryClass)}}const Ao=Po;class ko extends i.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(ko.primaryClass)}}const $o=ko;class Mo extends i.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Mo.primaryClass)}}const Co=Mo;class _o extends i.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(_o.primaryClass),this.classes.push("servers")}}const Ro=_o;class Fo extends i.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Fo.primaryClass),this.classes.push("parameters")}}const To=Fo;class qo extends i.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(qo.primaryClass),this.classes.push("parameters")}}const Io=qo;class No extends i.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(No.primaryClass),this.classes.push("examples")}}const Bo=No;class Vo extends i.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Vo.primaryClass),this.classes.push("content")}}const Do=Vo;class zo extends i.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(zo.primaryClass)}}const Lo=zo;class Uo extends i.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Uo.primaryClass)}}const Jo=Uo;class Go extends i.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Go.primaryClass),this.classes.push("security")}}const Ko=Go;class Ho extends i.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Ho.primaryClass),this.classes.push("servers")}}const Wo=Ho;class Xo extends i.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Xo.primaryClass),this.classes.push("content")}}const Yo=Xo;class Zo extends i.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Zo.primaryClass),this.classes.push("examples")}}const Qo=Zo;class ec extends i.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(ec.primaryClass)}}const tc=ec;class sc extends i.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(sc.primaryClass)}}const nc=sc;class rc extends i.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(rc.primaryClass)}}const ic=rc;class oc extends i.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(oc.primaryClass),this.classes.push("content")}}const cc=oc;class ac extends i.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(ac.primaryClass)}}const lc=ac;class uc extends i.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(uc.primaryClass)}}const pc=uc;class hc extends i.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(hc.primaryClass)}}const mc=hc;class fc extends i.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(fc.primaryClass)}}const dc=fc;class yc extends i.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(yc.primaryClass),this.classes.push("examples")}}const gc=yc;class vc extends i.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(vc.primaryClass),this.classes.push("content")}}const bc=vc,Ec=e=>{if(se(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xc={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Os},jc={OpenApi3_0Element:{info:(...e)=>new Hs(...e),servers:(...e)=>new oo(...e),paths:(...e)=>new gn(...e),components:(...e)=>new Fs(...e),security:(...e)=>new ao(...e),tags:(...e)=>new uo(...e),externalDocs:(...e)=>new Us(...e)},InfoElement:{contact:(...e)=>new qs(...e),license:(...e)=>new Xs(...e)},ServerElement:{variables:(...e)=>new ho(...e)},ServerVariableElement:{enum:(...e)=>new i.wE(...e)},PathsElement:{"[key: *]":function(...e){return new dn(...e)}},PathItemElement:{get:(...e)=>new pn(...e),put:(...e)=>new pn(...e),post:(...e)=>new pn(...e),delete:(...e)=>new pn(...e),options:(...e)=>new pn(...e),head:(...e)=>new pn(...e),patch:(...e)=>new pn(...e),trace:(...e)=>new pn(...e),servers:(...e)=>new Ro(...e),parameters:(...e)=>new To(...e)},OperationElement:{tags:(...e)=>new Lo(...e),externalDocs:(...e)=>new Us(...e),parameters:(...e)=>new Io(...e),requestBody:(...e)=>new xn(...e),responses:(...e)=>new On(...e),callbacks:(...e)=>new Jo(...e),security:(...e)=>new Ko(...e),servers:(...e)=>new Wo(...e)},ParameterElement:{schema:(...e)=>new Ji(...e),examples:(...e)=>new Bo(...e),content:(...e)=>new Do(...e)},RequestBodyElement:{content:(...e)=>new Yo(...e)},MediaTypeElement:{schema:(...e)=>new Ji(...e),examples:(...e)=>new Qo(...e),encoding:(...e)=>new tc(...e)},EncodingElement:{headers:(...e)=>new nc(...e)},ResponsesElement:{"[key: *]":function(...e){return new wn(...e)}},ResponseElement:{headers:(...e)=>new ic(...e),content:(...e)=>new cc(...e),links:(...e)=>new lc(...e)},CallbackElement:{"[key: *]":function(...e){return new dn(...e)}},LinkElement:{parameters:(...e)=>new dc(...e),server:(...e)=>new Yi(...e)},HeaderElement:{schema:(...e)=>new Ji(...e),examples:(...e)=>new gc(...e),content:(...e)=>new bc(...e)},ComponentsElement:{schemas:(...e)=>new fo(...e),responses:(...e)=>new go(...e),parameters:(...e)=>new bo(...e),examples:(...e)=>new xo(...e),requestBodies:(...e)=>new wo(...e),headers:(...e)=>new Oo(...e),securitySchemes:(...e)=>new Ao(...e),links:(...e)=>new $o(...e),callbacks:(...e)=>new Co(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new i.wE(...e)}},TagElement:{externalDocs:(...e)=>new Us(...e)},SchemaElement:{definitions(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-definitions"),t},allOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new Ji(...e),items:(...e)=>new Ji(...e),properties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new Ji(...e),enum(...e){const t=new i.wE(...e);return t.classes.push("json-schema-enum"),t},required(...e){const t=new i.wE(...e);return t.classes.push("json-schema-required"),t},discriminator:(...e)=>new Ns(...e),xml:(...e)=>new no(...e),externalDocs:(...e)=>new Us(...e)},DiscriminatorElement:{mapping:(...e)=>new pc(...e)},SecuritySchemeElement:{flows:(...e)=>new rn(...e)},OAuthFlowsElement:{implicit:(...e)=>new sn(...e),password:(...e)=>new sn(...e),clientCredentials:(...e)=>new sn(...e),authorizationCode:(...e)=>new sn(...e)},OAuthFlowElement:{scopes:(...e)=>new mc(...e)},[ho.primaryClass]:{"[key: *]":function(...e){return new Qi(...e)}},[fo.primaryClass]:{"[key: *]":function(...e){return new Ji(...e)}},[go.primaryClass]:{"[key: *]":function(...e){return new wn(...e)}},[bo.primaryClass]:{"[key: *]":function(...e){return new mn(...e)}},[xo.primaryClass]:{"[key: *]":function(...e){return new zs(...e)}},[wo.primaryClass]:{"[key: *]":function(...e){return new xn(...e)}},[Oo.primaryClass]:{"[key: *]":function(...e){return new Gs(...e)}},[Ao.primaryClass]:{"[key: *]":function(...e){return new Wi(...e)}},[$o.primaryClass]:{"[key: *]":function(...e){return new Zs(...e)}},[Co.primaryClass]:{"[key: *]":function(...e){return new _s(...e)}},[Jo.primaryClass]:{"[key: *]":function(...e){return new _s(...e)}},[Bo.primaryClass]:{"[key: *]":function(...e){return new zs(...e)}},[Do.primaryClass]:{"[key: *]":function(...e){return new en(...e)}},[Yo.primaryClass]:{"[key: *]":function(...e){return new en(...e)}},[Qo.primaryClass]:{"[key: *]":function(...e){return new zs(...e)}},[tc.primaryClass]:{"[key: *]":function(...e){return new Vs(...e)}},[nc.primaryClass]:{"[key: *]":function(...e){return new Gs(...e)}},[ic.primaryClass]:{"[key: *]":function(...e){return new Gs(...e)}},[cc.primaryClass]:{"[key: *]":function(...e){return new en(...e)}},[lc.primaryClass]:{"[key: *]":function(...e){return new Zs(...e)}},"json-schema-$defs":{"[key: *]":function(...e){return new Ji(...e)}},"json-schema-dependentSchemas":{"[key: *]":function(...e){return new Ji(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new Ji(...e)}},[oo.primaryClass]:{"<*>":function(...e){return new Yi(...e)}},[ao.primaryClass]:{"<*>":function(...e){return new Ki(...e)}},[uo.primaryClass]:{"<*>":function(...e){return new to(...e)}},[Ro.primaryClass]:{"<*>":function(...e){return new Yi(...e)}},[To.primaryClass]:{"<*>":function(...e){return new mn(...e)}},[Io.primaryClass]:{"<*>":function(...e){return new mn(...e)}},[Ko.primaryClass]:{"<*>":function(...e){return new Ki(...e)}},[Wo.primaryClass]:{"<*>":function(...e){return new Yi(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Ji(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Ji(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Ji(...e)}},"json-schema-prefixItems":{"<*>":function(...e){return new Ji(...e)}}},wc=(e,t)=>{const s=Ec(e),n=jc[s]||jc[nr(e.classes.first)];return void 0===n?void 0:Object.hasOwn(n,"[key: *]")?n["[key: *]"]:n[t]},Sc=()=>()=>({visitor:{StringElement(e,t,s,n,r){if(!(e=>ne(e)&&be(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...r,s].filter(se),o=i.at(-1);let c,a;return ae(o)?(a=e,c=wc(o,"<*>")):le(o)&&(a=i.at(-2),c=wc(a,nr(o.key))),"function"==typeof c?c.call({context:a},void 0,vs(e.meta),vs(e.attributes)):void 0}}});const Oc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ar(t.meta,e.meta),ge(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ar(t.attributes,e.attributes))}};const Pc=class extends Oc{enter(e){return this.element=vs(e),ls}};const Ac=class extends Oc{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:n,...r}){super({...r}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return qr(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=De(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Jt(Ft,["visitors",...e],this.specObj)?De(["visitors",...e],this.specObj):De(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof Pc&&n?.constructor===Pc?vs(t):(Ps(t,n,s),n.element)}};var kc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=h,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?p(s):s},e}();function $c(e){return function(t){return new kc(e,t)}}const Mc=a(u(["take"],$c,function(e,t){return Le(0,e<0?1/0:e,t)}));const Cc=a(function(e,t){return q(Mc(e.length,t),e)}),_c=e=>ce(e)&&e.hasKey("$ref"),Rc=ce,Fc=ce,Tc=e=>ne(e.key)&&Cc("x-",nr(e.key));const qc=class extends Ac{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Tc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach((e,n,r)=>{if(ne(n)&&s.includes(nr(n))&&!this.ignoredFields.includes(nr(n))){const s=this.toRefractedElement([...t,"fixedFields",nr(n)],e),o=new i.Pr(vs(n),s);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else this.ignoredFields.includes(nr(n))||this.element.content.push(vs(r))}),this.copyMetaAndAttributes(e,this.element),ls}};class Ic extends($r(qc,Pc)){constructor(e){super(e),this.element=new ln,this.specPath=L(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return qc.prototype.ObjectElement.call(this,e)}}const Nc=Ic;class Bc extends($r(Ac,Pc)){StringElement(e){const t=new cn(nr(e));return this.copyMetaAndAttributes(e,t),this.element=t,ls}}const Vc=Bc;const Dc=class extends Ac{MemberElement(e){return this.element=vs(e),this.element.classes.push("specification-extension"),ls}};class zc extends($r(qc,Pc)){constructor(e){super(e),this.element=new Hs,this.specPath=L(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Lc=zc;const Uc=class extends Pc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Jc extends($r(qc,Pc)){constructor(e){super(e),this.element=new qs,this.specPath=L(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Gc=Jc;class Kc extends($r(qc,Pc)){constructor(e){super(e),this.element=new Xs,this.specPath=L(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Hc=Kc;class Wc extends($r(qc,Pc)){constructor(e){super(e),this.element=new Zs,this.specPath=L(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=qc.prototype.ObjectElement.call(this,e);return(ne(this.element.operationId)||ne(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Xc=Wc;const Yc=class extends Pc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Zc=class extends Pc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Qc=class extends Ac{specPath;ignoredFields;fieldPatternPredicate=Xr;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Tc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){return e.forEach((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(nr(t))&&this.fieldPatternPredicate(nr(t))){const n=this.specPath(e),r=this.toRefractedElement(n,e),o=new i.Pr(vs(t),r);this.copyMetaAndAttributes(s,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(nr(t))||this.element.content.push(vs(s))}),this.copyMetaAndAttributes(e,this.element),ls}};const ea=class extends Qc{constructor(e){super(e),this.fieldPatternPredicate=Tr}};class ta extends($r(ea,Pc)){constructor(e){super(e),this.element=new dc,this.specPath=L(["value"])}}const sa=ta;class na extends($r(qc,Pc)){constructor(e){super(e),this.element=new Yi,this.specPath=L(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const ra=na;const ia=class extends Pc{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class oa extends($r(Ac,Pc)){constructor(e){super(e),this.element=new oo}ArrayElement(e){return e.forEach(e=>{const t=Rc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ls}}const ca=oa;class aa extends($r(qc,Pc)){constructor(e){super(e),this.element=new Qi,this.specPath=L(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const la=aa;class ua extends($r(ea,Pc)){constructor(e){super(e),this.element=new ho,this.specPath=L(["document","objects","ServerVariable"])}}const pa=ua;class ha extends($r(qc,Pc)){constructor(e){super(e),this.element=new en,this.specPath=L(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const ma=ha;const fa=class extends Ac{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>Ei(e,L(t),U)),s=_i(t)(e);return this.element=this.toRefractedElement(s,e),ls}},da=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof _s||e(n)&&t("callback",n)&&s("object",n)),ya=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Fs||e(n)&&t("components",n)&&s("object",n)),ga=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof qs||e(n)&&t("contact",n)&&s("object",n)),va=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof zs||e(n)&&t("example",n)&&s("object",n)),ba=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Us||e(n)&&t("externalDocumentation",n)&&s("object",n)),Ea=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Gs||e(n)&&t("header",n)&&s("object",n)),xa=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Hs||e(n)&&t("info",n)&&s("object",n)),ja=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Xs||e(n)&&t("license",n)&&s("object",n)),wa=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Zs||e(n)&&t("link",n)&&s("object",n)),Sa=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof cn||e(n)&&t("openapi",n)&&s("string",n)),Oa=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:n})=>r=>r instanceof ln||e(r)&&t("openApi3_0",r)&&s("object",r)&&n("api",r)),Pa=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof pn||e(n)&&t("operation",n)&&s("object",n)),Aa=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof mn||e(n)&&t("parameter",n)&&s("object",n)),ka=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof dn||e(n)&&t("pathItem",n)&&s("object",n)),$a=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof gn||e(n)&&t("paths",n)&&s("object",n)),Ma=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof bn||e(n)&&t("reference",n)&&s("object",n)),Ca=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof xn||e(n)&&t("requestBody",n)&&s("object",n)),_a=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof wn||e(n)&&t("response",n)&&s("object",n)),Ra=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof On||e(n)&&t("responses",n)&&s("object",n)),Fa=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ji||e(n)&&t("schema",n)&&s("object",n)),Ta=e=>oe(e)&&e.classes.includes("boolean-json-schema"),qa=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ki||e(n)&&t("securityRequirement",n)&&s("object",n)),Ia=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Wi||e(n)&&t("securityScheme",n)&&s("object",n)),Na=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Yi||e(n)&&t("server",n)&&s("object",n)),Ba=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Qi||e(n)&&t("serverVariable",n)&&s("object",n)),Va=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof en||e(n)&&t("mediaType",n)&&s("object",n)),Da=te(({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:n})=>r=>r instanceof oo||e(r)&&t("array",r)&&s("array",r)&&n("servers",r));class za extends($r(fa,Pc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=fa.prototype.enter.call(this,e);return Ma(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const La=za;class Ua extends($r(ea,Pc)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("examples"),this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","example")}),t}}const Ja=Ua;const Ga=class extends Ja{constructor(e){super(e),this.element=new Qo}};class Ka extends($r(ea,Pc)){constructor(e){super(e),this.element=new tc,this.specPath=L(["document","objects","Encoding"])}}const Ha=Ka;class Wa extends($r(ea,Pc)){constructor(e){super(e),this.element=new Ki,this.specPath=L(["value"])}}const Xa=Wa;class Ya extends($r(Ac,Pc)){constructor(e){super(e),this.element=new ao}ArrayElement(e){return e.forEach(e=>{if(ce(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(vs(e))}),this.copyMetaAndAttributes(e,this.element),ls}}const Za=Ya;class Qa extends($r(qc,Pc)){constructor(e){super(e),this.element=new Fs,this.specPath=L(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const el=Qa;class tl extends($r(qc,Pc)){constructor(e){super(e),this.element=new to,this.specPath=L(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const sl=tl;class nl extends($r(qc,Pc)){constructor(e){super(e),this.element=new bn,this.specPath=L(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=qc.prototype.ObjectElement.call(this,e);return ne(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const rl=nl;const il=class extends Pc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ol extends($r(qc,Pc)){constructor(e){super(e),this.element=new mn,this.specPath=L(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=qc.prototype.ObjectElement.call(this,e);return ce(this.element.contentProp)&&this.element.contentProp.filter(Va).forEach((e,t)=>{e.setMetaProperty("media-type",nr(t))}),t}}const cl=ol;class al extends($r(fa,Pc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=fa.prototype.enter.call(this,e);return Ma(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const ll=al;class ul extends($r(qc,Pc)){constructor(e){super(e),this.element=new Gs,this.specPath=L(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const pl=ul;class hl extends($r(fa,Pc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=fa.prototype.enter.call(this,e);return Ma(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const ml=hl;const fl=class extends Ja{constructor(e){super(e),this.element=new gc}};class dl extends($r(ea,Pc)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("content"),this.specPath=L(["document","objects","MediaType"])}}const yl=dl;const gl=class extends yl{constructor(e){super(e),this.element=new bc}};class vl extends($r(qc,Pc)){constructor(e){super(e),this.element=new Ji,this.specPath=L(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const bl=vl,El=Ni.visitors.document.objects.JSONSchema.fixedFields.allOf;const xl=class extends El{ArrayElement(e){const t=El.prototype.ArrayElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},jl=Ni.visitors.document.objects.JSONSchema.fixedFields.anyOf;const wl=class extends jl{ArrayElement(e){const t=jl.prototype.ArrayElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Sl=Ni.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Ol=class extends Sl{ArrayElement(e){const t=Sl.prototype.ArrayElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Pl=Ni.visitors.document.objects.JSONSchema.fixedFields.items;const Al=class extends Pl{ObjectElement(e){const t=Pl.prototype.ObjectElement.call(this,e);return Ma(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},kl=Ni.visitors.document.objects.JSONSchema.fixedFields.properties;const $l=class extends kl{ObjectElement(e){const t=kl.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Ml=Ni.visitors.document.objects.JSONSchema.fixedFields.type;const Cl=class extends Ml{ArrayElement(e){return this.enter(e)}},_l=Ni.visitors.JSONSchemaOrJSONReferenceVisitor;const Rl=class extends _l{ObjectElement(e){const t=_l.prototype.enter.call(this,e);return Ma(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Fl extends($r(qc,Pc)){constructor(e){super(e),this.element=new Ns,this.specPath=L(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Tl=Fl;class ql extends($r(ea,Pc)){constructor(e){super(e),this.element=new pc,this.specPath=L(["value"])}}const Il=ql;class Nl extends($r(qc,Pc)){constructor(e){super(e),this.element=new no,this.specPath=L(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Bl=Nl;const Vl=class extends Ja{constructor(e){super(e),this.element=new Bo}};const Dl=class extends yl{constructor(e){super(e),this.element=new Do}};class zl extends($r(ea,Pc)){constructor(e){super(e),this.element=new fo,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}}const Ll=zl;class Ul extends($r(ea,Pc)){constructor(e){super(e),this.element=new go,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","response")}),this.element.filter(_a).forEach((e,t)=>{e.setMetaProperty("http-status-code",nr(t))}),t}}const Jl=Ul;class Gl extends($r(ea,Pc)){constructor(e){super(e),this.element=new bo,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","parameter")}),t}}const Kl=Gl;class Hl extends($r(ea,Pc)){constructor(e){super(e),this.element=new xo,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","example")}),t}}const Wl=Hl;class Xl extends($r(ea,Pc)){constructor(e){super(e),this.element=new wo,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","requestBody")}),t}}const Yl=Xl;class Zl extends($r(ea,Pc)){constructor(e){super(e),this.element=new Oo,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.filter(Ea).forEach((e,t)=>{e.setMetaProperty("header-name",nr(t))}),t}}const Ql=Zl;class eu extends($r(ea,Pc)){constructor(e){super(e),this.element=new Ao,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","securityScheme")}),t}}const tu=eu;class su extends($r(ea,Pc)){constructor(e){super(e),this.element=new $o,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","link")}),t}}const nu=su;class ru extends($r(ea,Pc)){constructor(e){super(e),this.element=new Co,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","callback")}),t}}const iu=ru;class ou extends($r(qc,Pc)){constructor(e){super(e),this.element=new zs,this.specPath=L(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=qc.prototype.ObjectElement.call(this,e);return ne(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const cu=ou;const au=class extends Pc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class lu extends($r(qc,Pc)){constructor(e){super(e),this.element=new Us,this.specPath=L(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const uu=lu;class pu extends($r(qc,Pc)){constructor(e){super(e),this.element=new Vs,this.specPath=L(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=qc.prototype.ObjectElement.call(this,e);return ce(this.element.headers)&&this.element.headers.filter(Ea).forEach((e,t)=>{e.setMetaProperty("header-name",nr(t))}),t}}const hu=pu;class mu extends($r(ea,Pc)){constructor(e){super(e),this.element=new nc,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Ea(e))return;const s=nr(t);e.setMetaProperty("headerName",s)}),t}}const fu=mu;class du extends($r(Qc,Pc)){constructor(e){super(e),this.element=new gn,this.specPath=L(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Xn}ObjectElement(e){const t=Qc.prototype.ObjectElement.call(this,e);return this.element.filter(ka).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",vs(t))}),t}}const yu=du;class gu extends($r(qc,Pc)){constructor(e){super(e),this.element=new xn,this.specPath=L(["document","objects","RequestBody"])}ObjectElement(e){const t=qc.prototype.ObjectElement.call(this,e);return ce(this.element.contentProp)&&this.element.contentProp.filter(Va).forEach((e,t)=>{e.setMetaProperty("media-type",nr(t))}),t}}const vu=gu;const bu=class extends yl{constructor(e){super(e),this.element=new Yo}};class Eu extends($r(Qc,Pc)){constructor(e){super(e),this.element=new _s,this.specPath=L(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(ka).forEach((e,t)=>{e.setMetaProperty("runtime-expression",nr(t))}),t}}const xu=Eu;class ju extends($r(qc,Pc)){constructor(e){super(e),this.element=new wn,this.specPath=L(["document","objects","Response"])}ObjectElement(e){const t=qc.prototype.ObjectElement.call(this,e);return ce(this.element.contentProp)&&this.element.contentProp.filter(Va).forEach((e,t)=>{e.setMetaProperty("media-type",nr(t))}),ce(this.element.headers)&&this.element.headers.filter(Ea).forEach((e,t)=>{e.setMetaProperty("header-name",nr(t))}),t}}const wu=ju;class Su extends($r(ea,Pc)){constructor(e){super(e),this.element=new ic,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Ea(e))return;const s=nr(t);e.setMetaProperty("header-name",s)}),t}}const Ou=Su;const Pu=class extends yl{constructor(e){super(e),this.element=new cc}};class Au extends($r(ea,Pc)){constructor(e){super(e),this.element=new lc,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","link")}),t}}const ku=Au;function $u(e){return"[object Number]"===Object.prototype.toString.call(e)}const Mu=a(function(e,t){if(!$u(e)||!$u(t))throw new TypeError("Both arguments to range must be numbers");for(var s=e<t?Math.ceil(t-e):0,n=Array(s),r=0;r<s;)n[r]=r+e,r+=1;return n});function Cu(e,t,s){var n,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?e in s._items[r]||(t&&(s._items[r][e]=!0),!1):(t&&(s._items[r]={},s._items[r][e]=!0),!1);case"boolean":if(r in s._items){var i=e?1:0;return!!s._items[r][i]||(t&&(s._items[r][i]=!0),!1)}return t&&(s._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?!!I(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1);case"undefined":return!!s._items[r]||(t&&(s._items[r]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(r=Object.prototype.toString.call(e))in s._items?!!I(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const _u=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Cu(e,!0,this)},e.prototype.has=function(e){return Cu(e,!1,this)},e}();const Ru=a(function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new _u,c=0;c<i;c+=1)o.add(t[c]);for(;n<r;)o.add(e[n])&&(s[s.length]=e[n]),n+=1;return s});class Fu extends($r(qc,Qc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...Ru(e.keys(),t)],qc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Qc.prototype.ObjectElement.call(this,e);const n=e.keys();this.element.content.sort((e,t)=>n.indexOf(nr(e.key))-n.indexOf(nr(t.key)))}catch(e){throw this.specPath=t,e}return ls}}const Tu=Fu;class qu extends($r(Tu,Pc)){constructor(e){super(e),this.element=new On,this.specPathFixedFields=L(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>_c(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Mu(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Tu.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","response")}),this.element.filter(_a).forEach((e,t)=>{const s=vs(t);this.fieldPatternPredicate(nr(s))&&e.setMetaProperty("http-status-code",s)}),t}}const Iu=qu;class Nu extends($r(fa,Pc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=fa.prototype.enter.call(this,e);return Ma(this.element)?this.element.setMetaProperty("referenced-element","response"):_a(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Bu=Nu;class Vu extends($r(qc,Pc)){constructor(e){super(e),this.element=new pn,this.specPath=L(["document","objects","Operation"])}}const Du=Vu;const zu=class extends Pc{constructor(e){super(e),this.element=new Lo}ArrayElement(e){return this.element=this.element.concat(vs(e)),ls}};class Lu extends($r(Ac,Pc)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach(e=>{const t=_c(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);Ma(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ls}}const Uu=Lu;const Ju=class extends Uu{constructor(e){super(e),this.element=new Io}};const Gu=class extends fa{constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=fa.prototype.enter.call(this,e);return Ma(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Ku extends($r(ea,Pc)){specPath;constructor(e){super(e),this.element=new Jo,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=ea.prototype.ObjectElement.call(this,e);return this.element.filter(Ma).forEach(e=>{e.setMetaProperty("referenced-element","callback")}),t}}const Hu=Ku;class Wu extends($r(Ac,Pc)){constructor(e){super(e),this.element=new Ko}ArrayElement(e){return e.forEach(e=>{const t=ce(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ls}}const Xu=Wu;const Yu=class extends ca{constructor(e){super(e),this.element=new Wo}};class Zu extends($r(qc,Pc)){constructor(e){super(e),this.element=new dn,this.specPath=L(["document","objects","PathItem"])}ObjectElement(e){const t=qc.prototype.ObjectElement.call(this,e);return this.element.filter(Pa).forEach((e,t)=>{const s=vs(t);s.content=nr(s).toUpperCase(),e.setMetaProperty("http-method",s)}),ne(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Qu=Zu;const ep=class extends Pc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const tp=class extends ca{constructor(e){super(e),this.element=new Ro}};const sp=class extends Uu{constructor(e){super(e),this.element=new To}};class np extends($r(qc,Pc)){constructor(e){super(e),this.element=new Wi,this.specPath=L(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const rp=np;class ip extends($r(qc,Pc)){constructor(e){super(e),this.element=new rn,this.specPath=L(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const op=ip;class cp extends($r(qc,Pc)){constructor(e){super(e),this.element=new sn,this.specPath=L(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const ap=cp;class lp extends($r(ea,Pc)){constructor(e){super(e),this.element=new mc,this.specPath=L(["value"])}}const up=lp;class pp extends($r(Ac,Pc)){constructor(e){super(e),this.element=new uo}ArrayElement(e){return e.forEach(e=>{const t=Fc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ls}}const hp=pp,{fixedFields:mp}=Ni.visitors.document.objects.JSONSchema,fp={visitors:{value:Pc,document:{objects:{OpenApi:{$visitor:Nc,fixedFields:{openapi:Vc,info:{$ref:"#/visitors/document/objects/Info"},servers:ca,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Za,tags:hp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Lc,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Uc}},Contact:{$visitor:Gc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Hc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:ra,fixedFields:{url:ia,description:{$ref:"#/visitors/value"},variables:pa}},ServerVariable:{$visitor:la,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:el,fixedFields:{schemas:Ll,responses:Jl,parameters:Kl,examples:Wl,requestBodies:Yl,headers:Ql,securitySchemes:tu,links:nu,callbacks:iu}},Paths:{$visitor:yu},PathItem:{$visitor:Qu,fixedFields:{$ref:ep,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:tp,parameters:sp}},Operation:{$visitor:Du,fixedFields:{tags:zu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Ju,requestBody:Gu,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Hu,deprecated:{$ref:"#/visitors/value"},security:Xu,servers:Yu}},ExternalDocumentation:{$visitor:uu,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:cl,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:ll,example:{$ref:"#/visitors/value"},examples:Vl,content:Dl}},RequestBody:{$visitor:vu,fixedFields:{description:{$ref:"#/visitors/value"},content:bu,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ma,fixedFields:{schema:La,example:{$ref:"#/visitors/value"},examples:Ga,encoding:Ha}},Encoding:{$visitor:hu,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:fu,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Iu,fixedFields:{default:Bu}},Response:{$visitor:wu,fixedFields:{description:{$ref:"#/visitors/value"},headers:Ou,content:Pu,links:ku}},Callback:{$visitor:xu},Example:{$visitor:cu,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:au}},Link:{$visitor:Xc,fixedFields:{operationRef:Yc,operationId:Zc,parameters:sa,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:pl,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:ml,example:{$ref:"#/visitors/value"},examples:fl,content:gl}},Tag:{$visitor:sl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:rl,fixedFields:{$ref:il}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:bl,fixedFields:{title:mp.title,multipleOf:mp.multipleOf,maximum:mp.maximum,exclusiveMaximum:mp.exclusiveMaximum,minimum:mp.minimum,exclusiveMinimum:mp.exclusiveMinimum,maxLength:mp.maxLength,minLength:mp.minLength,pattern:mp.pattern,maxItems:mp.maxItems,minItems:mp.minItems,uniqueItems:mp.uniqueItems,maxProperties:mp.maxProperties,minProperties:mp.minProperties,required:mp.required,enum:mp.enum,type:Cl,allOf:xl,anyOf:wl,oneOf:Ol,not:Rl,items:Al,properties:$l,additionalProperties:Rl,description:mp.description,format:mp.format,default:mp.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Tl,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Il}},XML:{$visitor:Bl,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:rp,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:op,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:ap,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:up}},SecurityRequirement:{$visitor:Xa}},extension:{$visitor:Dc}}}},dp=()=>{const e=ns(ro);return{predicates:{...r,isElement:se,isStringElement:ne,isArrayElement:ae,isObjectElement:ce,isMemberElement:le,includesClasses:be,hasElementSourceMap:ge},namespace:e}},yp=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const n=(0,i.e)(e),r=Wn(fp),o=new(De(t,r))({specObj:r});return Ps(n,o),ks(o.element,s,{toolboxCreator:dp,visitorOptions:{keyMap:xc,nodeTypeGetter:Ec}})},gp=e=>(t,s={})=>yp(t,{specPath:e,...s}),vp=yp})(),n})());
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsOpenApi3_0=t():e.apidomNsOpenApi3_0=t()}(self,()=>(()=>{"use strict";var e={d:(t,s)=>{for(var n in s)e.o(s,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:s[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AlternatingVisitor:()=>gc,BaseAlternatingVisitor:()=>Ac,BaseFixedFieldsVisitor:()=>Sc,BaseMapVisitor:()=>kc,BaseMixedFieldsVisitor:()=>Pc,BasePatternedFieldsVisitor:()=>jc,BaseSpecificationVisitor:()=>Oc,CallbackElement:()=>U,ComponentsCallbacksElement:()=>Li,ComponentsElement:()=>H,ComponentsExamplesElement:()=>Ii,ComponentsHeadersElement:()=>Di,ComponentsLinksElement:()=>Bi,ComponentsParametersElement:()=>Ci,ComponentsRequestBodiesElement:()=>Mi,ComponentsResponsesElement:()=>Ai,ComponentsSchemasElement:()=>ji,ComponentsSecuritySchemesElement:()=>qi,ContactElement:()=>G,DiscriminatorElement:()=>z,DiscriminatorMappingElement:()=>Eo,EncodingElement:()=>J,EncodingHeadersElement:()=>mo,ExampleElement:()=>X,ExternalDocumentationElement:()=>K,FallbackVisitor:()=>rc,FixedFieldsVisitor:()=>mc,HeaderContentElement:()=>Fo,HeaderElement:()=>Z,HeaderExamplesElement:()=>Po,InfoElement:()=>Q,LicenseElement:()=>ee,LinkElement:()=>de,LinkParametersElement:()=>ko,MapVisitor:()=>yc,MediaTypeElement:()=>me,MediaTypeEncodingElement:()=>po,MediaTypeExamplesElement:()=>lo,MixedFieldsVisitor:()=>Ec,MixedFieldsVisitorBase:()=>wc,OAuthFlowElement:()=>fe,OAuthFlowScopesElement:()=>So,OAuthFlowsElement:()=>ye,OpenAPIMediaTypes:()=>f,OpenApi3_0Element:()=>xe,OpenapiElement:()=>ge,OperationCallbacksElement:()=>to,OperationElement:()=>ve,OperationParametersElement:()=>Ji,OperationSecurityElement:()=>no,OperationServersElement:()=>io,OperationTagsElement:()=>Qi,ParameterContentElement:()=>Yi,ParameterElement:()=>we,ParameterExamplesElement:()=>Ki,PathItemElement:()=>Ee,PathItemParametersElement:()=>Gi,PathItemServersElement:()=>Ui,PathsElement:()=>Oe,PatternedFieldsVisitor:()=>fc,ReferenceElement:()=>Se,RequestBodyContentElement:()=>co,RequestBodyElement:()=>je,ResponseContentElement:()=>xo,ResponseElement:()=>ke,ResponseHeadersElement:()=>yo,ResponseLinksElement:()=>bo,ResponsesElement:()=>Ae,SchemaElement:()=>ai,SecurityElement:()=>vi,SecurityRequirementElement:()=>li,SecuritySchemeElement:()=>ui,ServerElement:()=>pi,ServerVariableElement:()=>hi,ServerVariablesElement:()=>Oi,ServersElement:()=>gi,SpecificationExtensionVisitor:()=>Ic,SpecificationVisitor:()=>ic,TagElement:()=>di,TagsElement:()=>wi,Visitor:()=>nc,XmlElement:()=>mi,default:()=>fi,isBooleanJsonSchemaElement:()=>ha,isCallbackElement:()=>zc,isComponentsElement:()=>Jc,isContactElement:()=>Xc,isExampleElement:()=>Kc,isExternalDocumentationElement:()=>Wc,isInfoElement:()=>Zc,isLicenseElement:()=>Qc,isLinkElement:()=>ea,isMediaTypeElement:()=>ga,isOpenApi3_0Element:()=>sa,isOpenApiExtension:()=>dc,isOpenapiElement:()=>ta,isOperationElement:()=>na,isParameterElement:()=>ra,isPathItemElement:()=>ia,isPathsElement:()=>oa,isReferenceElement:()=>ca,isReferenceLikeElement:()=>uc,isRequestBodyElement:()=>aa,isResponseElement:()=>la,isResponsesElement:()=>ua,isSchemaElement:()=>pa,isSecurityRequirementElement:()=>da,isSecuritySchemeElement:()=>ma,isServerElement:()=>fa,isServerLikeElement:()=>pc,isServerVariableElement:()=>ya,isServersElement:()=>xa,isTagLikeElement:()=>hc,mediaTypes:()=>y,refract:()=>Su,refractCallback:()=>pu,refractComponents:()=>eu,refractContact:()=>Wl,refractDiscriminator:()=>xu,refractEncoding:()=>au,refractExample:()=>hu,refractExternalDocumentation:()=>ru,refractHeader:()=>mu,refractInfo:()=>Kl,refractLicense:()=>Yl,refractLink:()=>du,refractMediaType:()=>cu,refractOAuthFlow:()=>Eu,refractOAuthFlows:()=>wu,refractOpenApi3_0:()=>Xl,refractOperation:()=>nu,refractParameter:()=>iu,refractPathItem:()=>su,refractPaths:()=>tu,refractReference:()=>yu,refractRequestBody:()=>ou,refractResponse:()=>uu,refractResponses:()=>lu,refractSchema:()=>gu,refractSecurityRequirement:()=>Ou,refractSecurityScheme:()=>bu,refractServer:()=>Zl,refractServerVariable:()=>Ql,refractTag:()=>fu,refractXml:()=>vu,refractorPluginReplaceEmptyElement:()=>Mo,specificationObj:()=>Gl});var s={};e.r(s),e.d(s,{isOpenApiExtension:()=>dc,isReferenceLikeElement:()=>uc,isServerLikeElement:()=>pc,isTagLikeElement:()=>hc});var n={};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(s){return 0===arguments.length||r(s)?t:e.apply(this,arguments)}}function o(e,t){return t[e<0?t.length+e:e]}e.r(n),e.d(n,{isBooleanJsonSchemaElement:()=>ha,isCallbackElement:()=>zc,isComponentsElement:()=>Jc,isContactElement:()=>Xc,isExampleElement:()=>Kc,isExternalDocumentationElement:()=>Wc,isHeaderElement:()=>Yc,isInfoElement:()=>Zc,isLicenseElement:()=>Qc,isLinkElement:()=>ea,isMediaTypeElement:()=>ga,isOpenApi3_0Element:()=>sa,isOpenapiElement:()=>ta,isOperationElement:()=>na,isParameterElement:()=>ra,isPathItemElement:()=>ia,isPathsElement:()=>oa,isReferenceElement:()=>ca,isRequestBodyElement:()=>aa,isResponseElement:()=>la,isResponsesElement:()=>ua,isSchemaElement:()=>pa,isSecurityRequirementElement:()=>da,isSecuritySchemeElement:()=>ma,isServerElement:()=>fa,isServerVariableElement:()=>ya,isServersElement:()=>xa});const c=i(function(e){return o(-1,e)});class a extends AggregateError{constructor(e,t,s){super(e,t,s),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const l=a;class u extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(l,e)}constructor(e,t){super(e,t),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const p=u;const h=class extends p{};const d=class extends h{};const m=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new d("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new d("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new d("latest method in MediaTypes class is not yet implemented.")}};class f extends m{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="3.0.4",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find(e=>e.includes(s))||this.unknownMediaType}latest(e="generic"){return c(this.filterByFormat(e))}}const y=new f("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3","application/vnd.oai.openapi;version=3.0.4","application/vnd.oai.openapi+json;version=3.0.4","application/vnd.oai.openapi+yaml;version=3.0.4");function g(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return r(s)?t:i(function(t){return e(s,t)});default:return r(s)&&r(n)?t:r(s)?i(function(t){return e(t,n)}):r(n)?i(function(t){return e(s,t)}):e(s,n)}}}function x(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function v(e,t,s){for(var n=0,r=s.length;n<r;){if(e(t,s[n]))return!0;n+=1}return!1}function b(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var E=Object.prototype.toString;const O=function(){return"[object Arguments]"===E.call(arguments)?function(e){return"[object Arguments]"===E.call(e)}:function(e){return b("callee",e)}}();var S=!{toString:null}.propertyIsEnumerable("toString"),j=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),A=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},P="function"!=typeof Object.keys||k?i(function(e){if(Object(e)!==e)return[];var t,s,n=[],r=k&&O(e);for(t in e)!b(t,e)||r&&"length"===t||(n[n.length]=t);if(S)for(s=j.length-1;s>=0;)b(t=j[s],e)&&!A(n,t)&&(n[n.length]=t),s-=1;return n}):i(function(e){return Object(e)!==e?[]:Object.keys(e)});const C=P;const F=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function I(e,t,s,n){var r=x(e);function i(e,t){return T(e,t,s.slice(),n.slice())}return!v(function(e,t){return!v(i,t,e)},x(t),r)}function T(e,t,s,n){if(w(e,t))return!0;var r,i,o=F(e);if(o!==F(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(r=e.constructor,null==(i=String(r).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=s.length-1;c>=0;){if(s[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),s.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=C(e);if(a.length!==C(t).length)return!1;var l=s.concat([e]),u=n.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!b(p,t)||!T(t[p],e[p],l,u))return!1;c-=1}return!0}const M=g(function(e,t){return T(e,t,[],[])});const $=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class D{elements;constructor(e){this.elements=e??[]}toValue(){return this.elements.map(e=>({key:e.key?.toValue(),value:e.value?.toValue()}))}map(e,t){return this.elements.map(s=>{const n=s.value,r=s.key;if(void 0===n||void 0===r)throw new Error("MemberElement must have both key and value");return void 0!==t?e.call(t,n,r,s):e(n,r,s)})}filter(e,t){const s=this.elements.filter(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))});return new D(s)}reject(e,t){const s=[];for(const n of this.elements){const r=n.value,i=n.key;void 0!==r&&void 0!==i&&(e.call(t,r,i,n)||s.push(n))}return new D(s)}forEach(e,t){this.elements.forEach((s,n)=>{const r=s.value,i=s.key;void 0!==r&&void 0!==i&&(void 0!==t?e.call(t,r,i,s,n):e(r,i,s,n))})}find(e,t){return this.elements.find(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))})}keys(){return this.elements.map(e=>e.key?.toValue()).filter(e=>void 0!==e)}values(){return this.elements.map(e=>e.value?.toValue()).filter(e=>void 0!==e)}get length(){return this.elements.length}get isEmpty(){return 0===this.length}get first(){return this.elements[0]}get(e){return this.elements[e]}push(e){return this.elements.push(e),this}includesKey(e){return this.elements.some(t=>t.key?.equals(e))}[Symbol.iterator](){return this.elements[Symbol.iterator]()}}const R=D;class q{parent;startLine;startCharacter;startOffset;endLine;endCharacter;endOffset;_storedElement="element";_content;_meta;_attributes;constructor(e,t,s){void 0!==t&&(this.meta=t),void 0!==s&&(this.attributes=s),void 0!==e&&(this.content=e)}get element(){return this._storedElement}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof q)this._content=e;else if(null!=e&&"string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e&&"bigint"!=typeof e&&"symbol"!=typeof e)if(e instanceof $)this._content=e;else if(e instanceof R)this._content=e.elements;else if(Array.isArray(e))this._content=e.map(e=>this.refract(e));else{if("object"!=typeof e)throw new Error("Cannot set content to value of type "+typeof e);this._content=Object.entries(e).map(([e,t])=>new this.MemberElement(e,t))}else this._content=e}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof q?this._meta=e:this.meta.set(e??{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof q?this._attributes=e:this.attributes.set(e??{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get children(){const{_content:e}=this;if(Array.isArray(e))return e;if(e instanceof $){const t=[];return e.key&&t.push(e.key),e.value&&t.push(e.value),t}return e instanceof q?[e]:[]}get isFrozen(){return Object.isFrozen(this)}freeze(){if(!this.isFrozen){this._meta&&(this._meta.parent=this,this._meta.freeze()),this._attributes&&(this._attributes.parent=this,this._attributes.freeze());for(const e of this.children)e.parent=this,e.freeze();Array.isArray(this._content)&&Object.freeze(this._content),Object.freeze(this)}}toValue(){const{_content:e}=this;return e instanceof q||e instanceof $?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){return M(this.toValue(),e)}primitive(){}set(e){return this.content=e,this}toRef(e){const t=this.id.toValue();if(""===t)throw new Error("Cannot create reference to an element without an ID");const s=new this.RefElement(t);return"string"==typeof e&&(s.path=this.refract(e)),s}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}hasMetaProperty(e){return!this.isMetaEmpty&&this.meta.hasKey(e)}get isMetaEmpty(){return void 0===this._meta||this.meta.isEmpty}getAttributesProperty(e,t){if(!this.hasAttributesProperty(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.attributes.set(e,t)}return this.attributes.get(e)}setAttributesProperty(e,t){this.attributes.set(e,t)}hasAttributesProperty(e){return!this.isAttributesEmpty&&this.attributes.hasKey(e)}get isAttributesEmpty(){return void 0===this._attributes||this.attributes.isEmpty}}const N=q;class B extends N{constructor(e,t,s){super(e||[],t,s)}get length(){return this._content.length}get isEmpty(){return 0===this.length}get first(){return this._content[0]}get second(){return this._content[1]}get last(){return this._content.at(-1)}push(...e){for(const t of e)this._content.push(this.refract(t));return this}shift(){return this._content.shift()}unshift(e){this._content.unshift(this.refract(e))}includes(e){return this._content.some(t=>t.equals(e))}findElements(e,t){const s=t||{},n=!!s.recursive,r=void 0===s.results?[]:s.results;for(let t=0;t<this._content.length;t+=1){const s=this._content[t],i=s;n&&"function"==typeof i.findElements&&i.findElements(e,{results:r,recursive:n}),e(s,t,void 0)&&r.push(s)}return r}find(e){const t=this.findElements(e,{recursive:!0});return new this.ArrayElement(t)}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>{const s=t.classes;return"function"==typeof s.includes&&s.includes(e)})}getById(e){return this.find(t=>t.id.toValue()===e).first}concat(e){return new(0,this.constructor)(this._content.concat(e._content))}[Symbol.iterator](){return this._content[Symbol.iterator]()}}const _=B;const L=class extends N{constructor(e,t,s,n){super(new $,s,n),this.element="member",void 0!==e&&(this.key=e),arguments.length>=2&&(this.value=t)}primitive(){return"member"}get key(){return this._content.key}set key(e){this._content.key=this.refract(e)}get value(){return this._content.value}set value(e){this._content.value=void 0===e?void 0:this.refract(e)}};const V=class extends _{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this._content.reduce((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e),{})}get(e){const t=this.getMember(e);if(t)return t.value}getValue(e){const t=this.get(e);if(t)return t.toValue()}getMember(e){if(void 0!==e)return this._content.find(t=>t.key.toValue()===e)}remove(e){let t=null;return this.content=this._content.filter(s=>s.key.toValue()!==e||(t=s,!1)),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if("string"==typeof e){const s=this.getMember(e);s?s.value=t:this._content.push(new L(e,t))}else if("object"==typeof e&&!Array.isArray(e))for(const t of Object.keys(e))this.set(t,e[t]);return this}keys(){return this._content.map(e=>e.key.toValue())}values(){return this._content.map(e=>e.value.toValue())}hasKey(e){return this._content.some(t=>t.key.equals(e))}items(){return this._content.map(e=>[e.key.toValue(),e.value.toValue()])}map(e,t){return this._content.map(s=>e.call(t,s.value,s.key,s))}compactMap(e,t){const s=[];return this.forEach((n,r,i)=>{const o=e.call(t,n,r,i);o&&s.push(o)}),s}filter(e,t){return new R(this._content).filter(e,t)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n.value,n.key,n)||s.push(n);return new R(s)}forEach(e,t){this._content.forEach(s=>e.call(t,s.value,s.key,s))}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this._content[0]?.value);for(let t=s;t<this._content.length;t+=1){const s=this._content[t],r=e(n,s.value,s.key,s,this);n=void 0===r?r:this.refract(r)}return n}empty(){return new this.constructor([])}};const U=class extends V{constructor(e,t,s){super(e,t,s),this.element="callback"}};const H=class extends V{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}};const G=class extends V{constructor(e,t,s){super(e,t,s),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}};const z=class extends V{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}};const J=class extends V{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}};const X=class extends V{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}};const K=class extends V{constructor(e,t,s){super(e,t,s),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}};const W=class extends N{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};class Y extends V{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new W(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new W(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(Y.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Z=Y;const Q=class extends V{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}};const ee=class extends V{constructor(e,t,s){super(e,t,s),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}};const te=class extends N{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content?.length??0}};const se=class extends N{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const ne=class extends N{constructor(e,t,s){super(e??null,t,s),this.element="null"}primitive(){return"null"}set(e){throw new Error("Cannot set the value of null")}};const re=class extends _{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this._content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}set(e,t){return"number"==typeof e&&void 0!==t?this._content[e]=this.refract(t):this.content=e,this}remove(e){return this._content.splice(e,1)[0]??null}map(e,t){return this._content.map(e,t)}flatMap(e,t){return this._content.flatMap(e,t)}compactMap(e,t){const s=[];for(const n of this._content){const r=e.call(t,n);r&&s.push(r)}return s}filter(e,t){const s=this._content.filter(e,t);return new this.constructor(s)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n)||s.push(n);return new this.constructor(s)}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this.first);for(let t=s;t<this.length;t+=1){const s=e(n,this._content[t],t,this);n=void 0===s?s:this.refract(s)}return n}forEach(e,t){this._content.forEach((s,n)=>{e.call(t,s,n)})}empty(){return new this.constructor([])}},ie=e=>e instanceof N,oe=e=>e instanceof te,ce=e=>e instanceof se,ae=e=>e instanceof ne,le=e=>e instanceof W,ue=e=>e instanceof re,pe=e=>e instanceof V,he=e=>e instanceof L;const de=class extends V{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){return oe(this.operationRef)?this.operationRef?.meta.get("operation"):oe(this.operationId)?this.operationId?.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}};const me=class extends V{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}};const fe=class extends V{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}};const ye=class extends V{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}};const ge=class extends te{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};const xe=class extends V{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}};const ve=class extends V{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new W(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}};class be extends V{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new W(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new W(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(be.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const we=be;const Ee=class extends V{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get getField(){return this.get("get")}set getField(e){this.set("get",e)}get put(){return this.get("put")}set put(e){this.set("put",e)}get post(){return this.get("post")}set post(e){this.set("post",e)}get deleteField(){return this.get("delete")}set deleteField(e){this.set("delete",e)}get options(){return this.get("options")}set options(e){this.set("options",e)}get head(){return this.get("head")}set head(e){this.set("head",e)}get patch(){return this.get("patch")}set patch(e){this.set("patch",e)}get trace(){return this.get("trace")}set trace(e){this.set("trace",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}};const Oe=class extends V{constructor(e,t,s){super(e,t,s),this.element="paths"}};const Se=class extends V{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};const je=class extends V{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new W(!1)}set required(e){this.set("required",e)}};const ke=class extends V{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}};const Ae=class extends V{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}};function Pe(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}const Ce=g(function(e,t){return Pe(function(s,n){return s[n]=e(t[n],n,t),s},{},C(t))});const Fe=i(function(e){return null==e});var Ie=g(function(e,t){if(0===e.length||Fe(t))return!1;for(var s=t,n=0;n<e.length;){if(Fe(s)||!b(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const Te=Ie;var Me=g(function(e,t){return Te([e],t)});const $e=Me;function De(e){return function t(s,n,o){switch(arguments.length){case 0:return t;case 1:return r(s)?t:g(function(t,n){return e(s,t,n)});case 2:return r(s)&&r(n)?t:r(s)?g(function(t,s){return e(t,n,s)}):r(n)?g(function(t,n){return e(s,t,n)}):i(function(t){return e(s,n,t)});default:return r(s)&&r(n)&&r(o)?t:r(s)&&r(n)?g(function(t,s){return e(t,s,o)}):r(s)&&r(o)?g(function(t,s){return e(t,n,s)}):r(n)&&r(o)?g(function(t,n){return e(s,t,n)}):r(s)?i(function(t){return e(t,n,o)}):r(n)?i(function(t){return e(s,t,o)}):r(o)?i(function(t){return e(s,n,t)}):e(s,n,o)}}}const Re=Number.isInteger||function(e){return(e|0)===e};const qe=g(function(e,t){if(null!=t)return Re(e)?o(e,t):t[e]});const Ne=De(function(e,t,s){return e(qe(t,s))});function Be(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=Re(r)?o(r,s):s[r]}return s}const _e=g(Be);function Le(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,n){return t.apply(this,arguments)};case 4:return function(e,s,n,r){return t.apply(this,arguments)};case 5:return function(e,s,n,r,i){return t.apply(this,arguments)};case 6:return function(e,s,n,r,i,o){return t.apply(this,arguments)};case 7:return function(e,s,n,r,i,o,c){return t.apply(this,arguments)};case 8:return function(e,s,n,r,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,n,r,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,n,r,i,o,c,a,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Ve(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Ue=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function He(e){return"[object String]"===Object.prototype.toString.call(e)}const Ge=i(function(e){return!!Ue(e)||!!e&&("object"==typeof e&&(!He(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var ze="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Je(e,t,s){return function(n,r,i){if(Ge(i))return e(n,r,i);if(null==i)return r;if("function"==typeof i["fantasy-land/reduce"])return t(n,r,i,"fantasy-land/reduce");if(null!=i[ze])return s(n,r,i[ze]());if("function"==typeof i.next)return s(n,r,i);if("function"==typeof i.reduce)return t(n,r,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Xe(e,t,s){for(var n=0,r=s.length;n<r;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const Ke=g(function(e,t){return Le(e.length,function(){return e.apply(t,arguments)})});function We(e,t,s){for(var n=s.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=s.next()}return e["@@transducer/result"](t)}function Ye(e,t,s,n){return e["@@transducer/result"](s[n](Ke(e["@@transducer/step"],e),t))}const Ze=Je(Xe,Ye,We);var Qe=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const et=De(function(e,t,s){return Ze("function"==typeof e?new Qe(e):e,t,s)});function tt(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return Ue(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const st=De(tt("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const nt=i(tt("tail",st(1,1/0)));function rt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Le(arguments[0].length,et(Ve,arguments[0],nt(arguments)))}var it=function(e,t){switch(arguments.length){case 0:return it;case 1:return function t(s){return 0===arguments.length?t:w(e,s)};default:return w(e,t)}};const ot=it;function ct(e,t){return function(e,t,s){var n,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(r=e[s])&&1/r===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(r=e[s])&&r!=r)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(M(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function at(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}function lt(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ut=function(e){return(e<10?"0":"")+e};const pt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ut(e.getUTCMonth()+1)+"-"+ut(e.getUTCDate())+"T"+ut(e.getUTCHours())+":"+ut(e.getUTCMinutes())+":"+ut(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ht(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!Ue(n)){for(var r=0;r<e.length;){if("function"==typeof n[e[r]])return n[e[r]].apply(n,Array.prototype.slice.call(arguments,0,-1));r+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return s.apply(this,arguments)}}function dt(e){return"[object Object]"===Object.prototype.toString.call(e)}const mt=function(){return this.xf["@@transducer/init"]()},ft=function(e){return this.xf["@@transducer/result"](e)};var yt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=mt,e.prototype["@@transducer/result"]=ft,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function gt(e){return function(t){return new yt(e,t)}}var xt=g(ht(["fantasy-land/filter","filter"],gt,function(e,t){return dt(t)?Pe(function(s,n){return e(t[n])&&(s[n]=t[n]),s},{},C(t)):(s=t,"[object Map]"===Object.prototype.toString.call(s)?function(e,t){for(var s=new Map,n=t.entries(),r=n.next();!r.done;)e(r.value[1])&&s.set(r.value[0],r.value[1]),r=n.next();return s}(e,t):function(e,t){for(var s=0,n=t.length,r=[];s<n;)e(t[s])&&(r[r.length]=t[s]),s+=1;return r}(e,t));var s}));const vt=xt;const bt=g(function(e,t){return vt((s=e,function(){return!s.apply(this,arguments)}),t);var s});function wt(e,t){var s=function(s){var n=t.concat([e]);return ct(s,n)?"<Circular>":wt(s,n)},n=function(e,t){return at(function(t){return lt(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+at(s,e).join(", ")+"))";case"[object Array]":return"["+at(s,e).concat(n(e,bt(function(e){return/^\d+$/.test(e)},C(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):lt(pt(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":lt(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var r=e.toString();if("[object Object]"!==r)return r}return"{"+n(e,C(e)).join(", ")+"}"}}const Et=i(function(e){return wt(e,[])});const Ot=De(function(e,t,s){return e(Be(t,s))});function St(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const jt=g(function(e,t){return e&&t});function kt(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function At(e,t,s,n){return s[n](e,t)}const Pt=Je(Pe,At,kt);var Ct=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=mt,e.prototype["@@transducer/result"]=ft,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Ft=function(e){return function(t){return new Ct(e,t)}};function It(e,t,s){return function(){for(var n=[],i=0,o=e,c=0,a=!1;c<t.length||i<arguments.length;){var l;c<t.length&&(!r(t[c])||i>=arguments.length)?l=t[c]:(l=arguments[i],i+=1),n[c]=l,r(l)?a=!0:o-=1,c+=1}return!a&&o<=0?s.apply(this,n):Le(Math.max(0,o),It(e,n,s))}}const Tt=g(function(e,t){return 1===e?i(t):Le(e,It(e,[],t))});const Mt=g(ht(["fantasy-land/map","map"],Ft,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Tt(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return Pe(function(s,n){return s[n]=e(t[n]),s},{},C(t));default:return at(e,t)}}));const $t=g(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:Pt(function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,r=t.length,i=[];for(s=0;s<n;)i[i.length]=e[s],s+=1;for(s=0;s<r;)i[i.length]=t[s],s+=1;return i}(e,Mt(s,t))},[],e)});const Dt=g(function(e,t){var s=Tt(e,t);return Tt(e,function(){return Pe($t,Mt(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const Rt=i(function(e){return Dt(e.length,e)});const qt=g(function(e,t){return St(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Rt(jt)(e,t)});const Nt=M(null);const Bt=Rt(i(function(e){return!e}));const _t=Bt(Nt);function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}const Vt=function(e){return"object"===Lt(e)};const Ut=Tt(1,qt(_t,Vt));const Ht=g(function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var n=s(e,t);if(void 0!==n)return n;var r=s(typeof e,typeof t);if(void 0!==r)return r===typeof e?e:t;var i=Et(e),o=s(i,Et(t));return void 0!==o&&o===i?e:t});const Gt=g(function(e,t){return Mt(qe(e),t)});const zt=i(function(e){return Tt(et(Ht,0,Gt("length",e)),function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});const Jt=Tt(1,rt(F,ot("GeneratorFunction")));const Xt=Tt(1,rt(F,ot("AsyncFunction")));const Kt=zt([rt(F,ot("Function")),Jt,Xt]);var Wt=rt(F,ot("Object")),Yt=rt(Et,M(Et(Object))),Zt=Ot(qt(Kt,Yt),["constructor"]);const Qt=Tt(1,function(e){if(!Ut(e)||!Wt(e))return!1;var t=Object.getPrototypeOf(e);return!!Nt(t)||Zt(t)});const es=Tt(1,rt(F,ot("String")));const ts=i(function(e){return Tt(e.length,e)});const ss=g(function(e,t){return Tt(e+1,function(){var s=arguments[e];if(null!=s&&St(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Et(s)+' does not have a method named "'+t+'"')})});const ns=ss(1,"split");var rs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=mt,e.prototype["@@transducer/result"]=ft,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function is(e){return function(t){return new rs(e,t)}}const os=g(ht(["dropWhile"],is,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return st(s,1/0,t)}));const cs=ss(1,"join");const as=i(function(e){return Tt(e.length,function(t,s){var n=Array.prototype.slice.call(arguments,0);return n[0]=s,n[1]=t,e.apply(this,n)})})(g(ct));const ls=ts(function(e,t){return rt(ns(""),os(as(e)),cs(""))(t)}),us=new WeakMap,ps=e=>{if(us.has(e))return us.get(e);const t={},s=(e,n,r)=>("string"==typeof e.element&&(t[e.element]=e.$visitor?[...r,"$visitor"]:r),Ce((e,t)=>{const i=[...r,t];if(Qt(e)&&$e("$ref",e)&&Ne(es,"$ref",e)){const t=_e(["$ref"],e),s=ls("#/",t);return _e(s.split("/"),n)}return Qt(e)?s(e,n,i):e},e)),n=s(e,e,[]);return n.elementMap=t,us.set(e,n),n};const hs=class extends V{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idField(){return this.get("id")}set idField(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}};const ds=class extends V{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};const ms=class extends V{constructor(e,t,s){super(e,t,s),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}};const fs=class extends V{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},ys=e=>"number"==typeof e.startLine&&"number"==typeof e.startCharacter&&"number"==typeof e.startOffset&&"number"==typeof e.endLine&&"number"==typeof e.endCharacter&&"number"==typeof e.endOffset,gs=(e,t)=>0===t.length||!!ie(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class xs extends te{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}static transfer(e,t){t.startLine=e.startLine,t.startCharacter=e.startCharacter,t.startOffset=e.startOffset,t.endLine=e.endLine,t.endCharacter=e.endCharacter,t.endOffset=e.endOffset}static from(e){const{startLine:t,startCharacter:s,startOffset:n,endLine:r,endCharacter:i,endOffset:o}=e;if("number"!=typeof t||"number"!=typeof s||"number"!=typeof n||"number"!=typeof r||"number"!=typeof i||"number"!=typeof o)return;const c="sm1:"+[t,s,n,r,i,o].map(bs).join("");const a=new xs(c);return a.startLine=t,a.startCharacter=s,a.startOffset=n,a.endLine=r,a.endCharacter=i,a.endOffset=o,a}applyTo(e){this.content&&([e.startLine,e.startCharacter,e.startOffset,e.endLine,e.endCharacter,e.endOffset]=function(e){const t=e.startsWith("sm1:")?e.slice(4):e,s=[];let n=0;for(let e=0;e<6;e++){const e=ws(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const vs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function bs(e){let t=e>>>0,s="";do{let e=31&t;t>>>=5,0!==t&&(e|=32),s+=vs[e]}while(0!==t);return s}function ws(e,t=0){let s=0,n=0,r=t;for(;;){const t=e[r++],i=vs.indexOf(t);if(-1===i)throw new Error(`Invalid Base64 VLQ char: ${t}`);if(s|=(31&i)<<n,n+=5,!!!(32&i))break}return{value:s>>>0,next:r}}const Es=xs;const Os=class extends p{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const Ss=class extends Os{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const js=class extends Ss{};const ks=class extends Ss{},As=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=Is(e);s.set(e,r);const{content:i}=e;return Array.isArray(i)?r.content=i.map(e=>As(e,n)):ie(i)?r.content=As(i,n):r.content=i instanceof $?Ps(i,n):i,r},Ps=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const{key:r,value:i}=e,o=void 0!==r?As(r,n):void 0,c=void 0!==i?As(i,n):void 0,a=new $(o,c);return s.set(e,a),a},Cs=(e,t={})=>{if(e instanceof $)return Ps(e,t);if(e instanceof R)return((e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=[...e].map(e=>As(e,n)),i=new R(r);return s.set(e,i),i})(e,t);if(ie(e))return As(e,t);throw new js("Value provided to cloneDeep function couldn't be cloned",{value:e})};Cs.safe=e=>{try{return Cs(e)}catch{return e}};const Fs=e=>{const{key:t,value:s}=e;return new $(t,s)},Is=e=>{const t=new(0,e.constructor);t.element=e.element,e.isMetaEmpty||(t.meta=Cs(e.meta)),e.isAttributesEmpty||(t.attributes=Cs(e.attributes)),ys(e)&&Es.transfer(e,t);const{content:s}=e;return ie(s)?t.content=Is(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof $?Fs(s):s,t},Ts=e=>{if(e instanceof $)return Fs(e);if(e instanceof R)return(e=>{const t=[...e];return new R(t)})(e);if(ie(e))return Is(e);throw new ks("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ts.safe=e=>{try{return Ts(e)}catch{return e}};const Ms=class extends N{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){if(this.hasAttributesProperty("relation"))return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){if(this.hasAttributesProperty("href"))return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}};const $s=class extends N{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){if(this.hasAttributesProperty("path"))return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}};const Ds=class extends te{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){if(this.hasAttributesProperty("code"))return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}};const Rs=class extends te{constructor(e,t,s){super(e,t,s),this.element="comment"}};const qs=class extends re{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>gs(e,["api"])).first}get results(){return this.filter(e=>gs(e,["result"]))}get result(){return this.results.first}get annotations(){return this.filter(e=>"annotation"===e.element)}get warnings(){return this.filter(e=>"annotation"===e.element&&gs(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&gs(e,["error"]))}get isEmpty(){return 0===this.reject(e=>"annotation"===e.element).length}replaceResult(e){const{result:t}=this;if(void 0===t)return!1;const s=this._content,n=s.findIndex(e=>e===t);return-1!==n&&(s[n]=e,!0)}},Ns=e=>e instanceof Ms,Bs=e=>e instanceof $s,_s=e=>{if(!ie(e))return e;if(oe(e)||ce(e)||le(e)||ae(e))return e.toValue();const t=new WeakMap,s=e=>{if(!ie(e))return e;if(pe(e)){if(t.has(e))return t.get(e);const n={};return t.set(e,n),e.forEach((e,t)=>{const r=s(t),i=s(e);"string"==typeof r&&(n[r]=i)}),n}if(ue(e)){if(t.has(e))return t.get(e);const n=[];return t.set(e,n),e.forEach(e=>n.push(s(e))),n}return Bs(e)?String(e.toValue()):Ns(e)?oe(e.href)?e.href.toValue():"":e.toValue()};return s(e)},Ls=e=>{const t=e.isMetaEmpty?void 0:Cs(e.meta),s=e.isAttributesEmpty?void 0:Cs(e.attributes);return new e.constructor(void 0,t,s)},Vs=(e,t)=>t.clone&&t.isMergeableElement(e)?Hs(Ls(e),e,t):e,Us={clone:!0,isMergeableElement:e=>pe(e)||ue(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>Vs(e,s))),objectElementMerge:(e,t,s)=>{const n=pe(e)?Ls(e):Ls(t);return pe(e)&&e.forEach((e,t,r)=>{const i=Ts(r);i.value=Vs(e,s),n.content.push(i)}),t.forEach((t,r,i)=>{const o=_s(r);let c;if(pe(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=Ts(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return Hs;const s=t.customMerge(e,t);return"function"==typeof s?s:Hs})(r,s)(n,t,s)}else c=Ts(i),c.value=Vs(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Hs=(e,t,s)=>{const n={...Us,...s};n.isMergeableElement=n.isMergeableElement??Us.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??Us.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??Us.objectElementMerge;const r=ue(t);if(!(r===ue(e)))return Vs(t,n);const i=r&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return i.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Cs(e):e.customMetaMerge)(n)(e.meta,t.meta),i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Cs(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),i};Hs.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new V:e.reduce((e,s)=>Hs(e,s,t),Ls(e[0]))};const Gs=Hs;const zs=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new V:t.meta,n=e.isMetaEmpty?new V:e.meta;t.meta=Gs(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new V:t.attributes,n=e.isAttributesEmpty?new V:e.attributes;t.attributes=Gs(s,n)}Es.transfer(e,t)}};const Js=class extends zs{enter(e){this.element=Cs(e.node),e.stop()}};const Xs=i(function(e){return function(){return e}});const Ks=g(function(e,t){return null==t||t!=t?e:t});const Ws=Xs(void 0);const Ys=M(Ws());const Zs=i(function(e){return Tt(et(Ht,0,Gt("length",e)),function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});var Qs=i(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():e==Set||e instanceof Set?new Set:e==Map||e instanceof Map?new Map:Ue(e)?[]:He(e)?"":dt(e)?{}:O(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0});const en=Qs;const tn=i(function(e){return null!=e&&M(e,en(e))});const sn=i(function(e){return!tn(e)});const nn=g(function(e,t){return e||t});const rn=Tt(1,qt(_t,g(function(e,t){return St(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Rt(nn)(e,t)})(Vt,Kt)));var on=Bt(rn);const cn=Zs([es,on,sn]);const an=g(function(e,t){for(var s={},n=0;n<e.length;)e[n]in t&&(s[e[n]]=t[e[n]]),n+=1;return s}),ln=function(){const e=pn,t=un,s=this,n="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let r,i,o,c,a,l,u,p=0,h=0,d=0,m=0,f=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,x,b,w)=>{const E=`${n}parse(): `;p=0,h=0,d=0,m=0,f=0,r=void 0,i=void 0,o=void 0,c=void 0,y.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(b),r=g.rules,i=g.udts;const O=x.toLowerCase();let S;for(const e in r)if(r.hasOwnProperty(e)&&O===r[e].lower){S=r[e].index;break}if(void 0===S)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(a=[],l=[],t=0;t<r.length;t+=1)a[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const c=[];for(t=0;t<r.length;t+=1)c.push(r[t].lower);for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(const n in s.callbacks)if(s.callbacks.hasOwnProperty(n)){if(t=c.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=s.callbacks[n]?s.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<r.length?a[t]=o:l[t-r.length]=o}})(),s.trace&&s.trace.init(r,i,c),s.stats&&s.stats.init(r,i),s.ast&&s.ast.init(r,i,c),u=w,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(y.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:j=!1;break;case e.EMPTY:case e.MATCH:j=y.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:j,state:y.state,stateName:e.idName(y.state),length:c.length,matched:y.phraseLength,maxMatched:f,maxTreeDepth:d,nodeHits:m}};const g=(t,s,r,i)=>{if(s.phraseLength>r){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},x=(t,a)=>{let h,d,m;const f=o[t],g=i[f.index];y.UdtIndex=g.index,p||(m=s.ast&&s.ast.udtDefined(f.index),m&&(d=r.length+f.index,h=s.ast.getLength(),s.ast.down(d,g.name)));const x=c.length-a;l[f.index](y,c,a,u),((t,s,r)=>{if(s.phraseLength>r){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,y,x),p||m&&(y.state===e.NOMATCH?s.ast.setLength(h):s.ast.up(d,g.name,a,y.phraseLength))},v=(t,i)=>{const l=`${n}opExecute(): `,b=o[t];switch(m+=1,h>d&&(d=h),h+=1,y.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const n=o[t];for(let t=0;t<n.children.length&&(v(n.children[t],s),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let r,i,c,a;const l=o[t];s.ast&&(i=s.ast.getLength()),r=!0,c=n,a=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],c),y.state===e.NOMATCH){r=!1;break}c+=y.phraseLength,a+=y.phraseLength}r?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let r,i,a,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=n,a=0,l=0,s.ast&&(r=s.ast.getLength());!(i>=c.length)&&(v(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,a+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(r))})(t,i);break;case e.RNM:((t,n)=>{let i,l,h;const d=o[t],m=r[d.index],f=a[m.index];if(p||(l=s.ast&&s.ast.ruleDefined(d.index),l&&(i=s.ast.getLength(),s.ast.down(d.index,r[d.index].name))),f){const t=c.length-n;f(y,c,n,u),g(m,y,t,!0),y.state===e.ACTIVE&&(h=o,o=m.opcodes,v(0,n),o=h,f(y,c,n,u),g(m,y,t,!1))}else h=o,o=m.opcodes,v(0,n,y),o=h;p||l&&(y.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(d.index,m.name,n,y.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const n=o[t];y.state=e.NOMATCH,s<c.length&&n.min<=c[s]&&c[s]<=n.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const n=o[t],r=n.string.length;if(y.state=e.NOMATCH,s+r<=c.length){for(let e=0;e<r;e+=1)if(c[s+e]!==n.string[e])return;y.state=e.MATCH,y.phraseLength=r}})(t,i);break;case e.TLS:((t,s)=>{let n;const r=o[t];y.state=e.NOMATCH;const i=r.string.length;if(0!==i){if(s+i<=c.length){for(let e=0;e<i;e+=1)if(n=c[s+e],n>=65&&n<=90&&(n+=32),n!==r.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:x(t,i);break;case e.AND:((t,s)=>{switch(p+=1,v(t+1,s),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(p+=1,v(t+1,s),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>f&&(f=i+y.phraseLength),s.stats&&s.stats.collect(b,y),s.trace&&s.trace.up(b,y.state,i,y.phraseLength),h-=1}},un={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,s)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===s){n=e.slice(t);break}if(s<=0)return"";n=e.slice(t,t+s);break}return String.fromCodePoint(...n)}},pn={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case pn.ALT:return"ALT";case pn.CAT:return"CAT";case pn.REP:return"REP";case pn.RNM:return"RNM";case pn.TRG:return"TRG";case pn.TBS:return"TBS";case pn.TLS:return"TLS";case pn.UDT:return"UDT";case pn.AND:return"AND";case pn.NOT:return"NOT";case pn.ACTIVE:return"ACTIVE";case pn.EMPTY:return"EMPTY";case pn.MATCH:return"MATCH";case pn.NOMATCH:return"NOMATCH";case pn.SEM_PRE:return"SEM_PRE";case pn.SEM_POST:return"SEM_POST";case pn.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function hn(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class dn extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const mn=dn;new hn;new hn,new ln,new hn,new ln,new hn,new ln,new hn,new ln;const fn=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const yn=class extends mn{},gn=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map(e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return fn(String(e))}).join("/")}`}catch(t){throw new yn("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class xn extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const vn=xn;new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"jsonpath-query",lower:"jsonpath-query",index:0,isBkr:!1},this.rules[1]={name:"segments",lower:"segments",index:1,isBkr:!1},this.rules[2]={name:"B",lower:"b",index:2,isBkr:!1},this.rules[3]={name:"S",lower:"s",index:3,isBkr:!1},this.rules[4]={name:"root-identifier",lower:"root-identifier",index:4,isBkr:!1},this.rules[5]={name:"selector",lower:"selector",index:5,isBkr:!1},this.rules[6]={name:"name-selector",lower:"name-selector",index:6,isBkr:!1},this.rules[7]={name:"string-literal",lower:"string-literal",index:7,isBkr:!1},this.rules[8]={name:"double-quoted",lower:"double-quoted",index:8,isBkr:!1},this.rules[9]={name:"single-quoted",lower:"single-quoted",index:9,isBkr:!1},this.rules[10]={name:"ESC",lower:"esc",index:10,isBkr:!1},this.rules[11]={name:"unescaped",lower:"unescaped",index:11,isBkr:!1},this.rules[12]={name:"escapable",lower:"escapable",index:12,isBkr:!1},this.rules[13]={name:"hexchar",lower:"hexchar",index:13,isBkr:!1},this.rules[14]={name:"non-surrogate",lower:"non-surrogate",index:14,isBkr:!1},this.rules[15]={name:"high-surrogate",lower:"high-surrogate",index:15,isBkr:!1},this.rules[16]={name:"low-surrogate",lower:"low-surrogate",index:16,isBkr:!1},this.rules[17]={name:"HEXDIG",lower:"hexdig",index:17,isBkr:!1},this.rules[18]={name:"wildcard-selector",lower:"wildcard-selector",index:18,isBkr:!1},this.rules[19]={name:"index-selector",lower:"index-selector",index:19,isBkr:!1},this.rules[20]={name:"int",lower:"int",index:20,isBkr:!1},this.rules[21]={name:"DIGIT1",lower:"digit1",index:21,isBkr:!1},this.rules[22]={name:"slice-selector",lower:"slice-selector",index:22,isBkr:!1},this.rules[23]={name:"start",lower:"start",index:23,isBkr:!1},this.rules[24]={name:"end",lower:"end",index:24,isBkr:!1},this.rules[25]={name:"step",lower:"step",index:25,isBkr:!1},this.rules[26]={name:"filter-selector",lower:"filter-selector",index:26,isBkr:!1},this.rules[27]={name:"logical-expr",lower:"logical-expr",index:27,isBkr:!1},this.rules[28]={name:"logical-or-expr",lower:"logical-or-expr",index:28,isBkr:!1},this.rules[29]={name:"logical-and-expr",lower:"logical-and-expr",index:29,isBkr:!1},this.rules[30]={name:"basic-expr",lower:"basic-expr",index:30,isBkr:!1},this.rules[31]={name:"paren-expr",lower:"paren-expr",index:31,isBkr:!1},this.rules[32]={name:"logical-not-op",lower:"logical-not-op",index:32,isBkr:!1},this.rules[33]={name:"test-expr",lower:"test-expr",index:33,isBkr:!1},this.rules[34]={name:"filter-query",lower:"filter-query",index:34,isBkr:!1},this.rules[35]={name:"rel-query",lower:"rel-query",index:35,isBkr:!1},this.rules[36]={name:"current-node-identifier",lower:"current-node-identifier",index:36,isBkr:!1},this.rules[37]={name:"comparison-expr",lower:"comparison-expr",index:37,isBkr:!1},this.rules[38]={name:"literal",lower:"literal",index:38,isBkr:!1},this.rules[39]={name:"comparable",lower:"comparable",index:39,isBkr:!1},this.rules[40]={name:"comparison-op",lower:"comparison-op",index:40,isBkr:!1},this.rules[41]={name:"singular-query",lower:"singular-query",index:41,isBkr:!1},this.rules[42]={name:"rel-singular-query",lower:"rel-singular-query",index:42,isBkr:!1},this.rules[43]={name:"abs-singular-query",lower:"abs-singular-query",index:43,isBkr:!1},this.rules[44]={name:"singular-query-segments",lower:"singular-query-segments",index:44,isBkr:!1},this.rules[45]={name:"name-segment",lower:"name-segment",index:45,isBkr:!1},this.rules[46]={name:"index-segment",lower:"index-segment",index:46,isBkr:!1},this.rules[47]={name:"number",lower:"number",index:47,isBkr:!1},this.rules[48]={name:"frac",lower:"frac",index:48,isBkr:!1},this.rules[49]={name:"exp",lower:"exp",index:49,isBkr:!1},this.rules[50]={name:"true",lower:"true",index:50,isBkr:!1},this.rules[51]={name:"false",lower:"false",index:51,isBkr:!1},this.rules[52]={name:"null",lower:"null",index:52,isBkr:!1},this.rules[53]={name:"function-name",lower:"function-name",index:53,isBkr:!1},this.rules[54]={name:"function-name-first",lower:"function-name-first",index:54,isBkr:!1},this.rules[55]={name:"function-name-char",lower:"function-name-char",index:55,isBkr:!1},this.rules[56]={name:"LCALPHA",lower:"lcalpha",index:56,isBkr:!1},this.rules[57]={name:"function-expr",lower:"function-expr",index:57,isBkr:!1},this.rules[58]={name:"function-argument",lower:"function-argument",index:58,isBkr:!1},this.rules[59]={name:"segment",lower:"segment",index:59,isBkr:!1},this.rules[60]={name:"child-segment",lower:"child-segment",index:60,isBkr:!1},this.rules[61]={name:"bracketed-selection",lower:"bracketed-selection",index:61,isBkr:!1},this.rules[62]={name:"member-name-shorthand",lower:"member-name-shorthand",index:62,isBkr:!1},this.rules[63]={name:"name-first",lower:"name-first",index:63,isBkr:!1},this.rules[64]={name:"name-char",lower:"name-char",index:64,isBkr:!1},this.rules[65]={name:"DIGIT",lower:"digit",index:65,isBkr:!1},this.rules[66]={name:"ALPHA",lower:"alpha",index:66,isBkr:!1},this.rules[67]={name:"descendant-segment",lower:"descendant-segment",index:67,isBkr:!1},this.rules[68]={name:"normalized-path",lower:"normalized-path",index:68,isBkr:!1},this.rules[69]={name:"normal-index-segment",lower:"normal-index-segment",index:69,isBkr:!1},this.rules[70]={name:"normal-selector",lower:"normal-selector",index:70,isBkr:!1},this.rules[71]={name:"normal-name-selector",lower:"normal-name-selector",index:71,isBkr:!1},this.rules[72]={name:"normal-single-quoted",lower:"normal-single-quoted",index:72,isBkr:!1},this.rules[73]={name:"normal-unescaped",lower:"normal-unescaped",index:73,isBkr:!1},this.rules[74]={name:"normal-escapable",lower:"normal-escapable",index:74,isBkr:!1},this.rules[75]={name:"normal-hexchar",lower:"normal-hexchar",index:75,isBkr:!1},this.rules[76]={name:"normal-HEXDIG",lower:"normal-hexdig",index:76,isBkr:!1},this.rules[77]={name:"normal-index-selector",lower:"normal-index-selector",index:77,isBkr:!1},this.rules[78]={name:"dot-prefix",lower:"dot-prefix",index:78,isBkr:!1},this.rules[79]={name:"double-dot-prefix",lower:"double-dot-prefix",index:79,isBkr:!1},this.rules[80]={name:"left-bracket",lower:"left-bracket",index:80,isBkr:!1},this.rules[81]={name:"right-bracket",lower:"right-bracket",index:81,isBkr:!1},this.rules[82]={name:"left-paren",lower:"left-paren",index:82,isBkr:!1},this.rules[83]={name:"right-paren",lower:"right-paren",index:83,isBkr:!1},this.rules[84]={name:"comma",lower:"comma",index:84,isBkr:!1},this.rules[85]={name:"colon",lower:"colon",index:85,isBkr:!1},this.rules[86]={name:"dquote",lower:"dquote",index:86,isBkr:!1},this.rules[87]={name:"squote",lower:"squote",index:87,isBkr:!1},this.rules[88]={name:"questionmark",lower:"questionmark",index:88,isBkr:!1},this.rules[89]={name:"disjunction",lower:"disjunction",index:89,isBkr:!1},this.rules[90]={name:"conjunction",lower:"conjunction",index:90,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:4},this.rules[0].opcodes[2]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:2,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:59},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[2].opcodes[1]={type:6,string:[32]},this.rules[2].opcodes[2]={type:6,string:[9]},this.rules[2].opcodes[3]={type:6,string:[10]},this.rules[2].opcodes[4]={type:6,string:[13]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:2},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:7,string:[36]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[5].opcodes[1]={type:4,index:6},this.rules[5].opcodes[2]={type:4,index:18},this.rules[5].opcodes[3]={type:4,index:22},this.rules[5].opcodes[4]={type:4,index:19},this.rules[5].opcodes[5]={type:4,index:26},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,6]},this.rules[7].opcodes[1]={type:2,children:[2,3,5]},this.rules[7].opcodes[2]={type:4,index:86},this.rules[7].opcodes[3]={type:3,min:0,max:1/0},this.rules[7].opcodes[4]={type:4,index:8},this.rules[7].opcodes[5]={type:4,index:86},this.rules[7].opcodes[6]={type:2,children:[7,8,10]},this.rules[7].opcodes[7]={type:4,index:87},this.rules[7].opcodes[8]={type:3,min:0,max:1/0},this.rules[7].opcodes[9]={type:4,index:9},this.rules[7].opcodes[10]={type:4,index:87},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[8].opcodes[1]={type:4,index:11},this.rules[8].opcodes[2]={type:6,string:[39]},this.rules[8].opcodes[3]={type:2,children:[4,5]},this.rules[8].opcodes[4]={type:4,index:10},this.rules[8].opcodes[5]={type:6,string:[34]},this.rules[8].opcodes[6]={type:2,children:[7,8]},this.rules[8].opcodes[7]={type:4,index:10},this.rules[8].opcodes[8]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[9].opcodes[1]={type:4,index:11},this.rules[9].opcodes[2]={type:6,string:[34]},this.rules[9].opcodes[3]={type:2,children:[4,5]},this.rules[9].opcodes[4]={type:4,index:10},this.rules[9].opcodes[5]={type:6,string:[39]},this.rules[9].opcodes[6]={type:2,children:[7,8]},this.rules[9].opcodes[7]={type:4,index:10},this.rules[9].opcodes[8]={type:4,index:12},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:6,string:[92]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[11].opcodes[1]={type:5,min:32,max:33},this.rules[11].opcodes[2]={type:5,min:35,max:38},this.rules[11].opcodes[3]={type:5,min:40,max:91},this.rules[11].opcodes[4]={type:5,min:93,max:55295},this.rules[11].opcodes[5]={type:5,min:57344,max:1114111},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[12].opcodes[1]={type:6,string:[98]},this.rules[12].opcodes[2]={type:6,string:[102]},this.rules[12].opcodes[3]={type:6,string:[110]},this.rules[12].opcodes[4]={type:6,string:[114]},this.rules[12].opcodes[5]={type:6,string:[116]},this.rules[12].opcodes[6]={type:7,string:[47]},this.rules[12].opcodes[7]={type:7,string:[92]},this.rules[12].opcodes[8]={type:2,children:[9,10]},this.rules[12].opcodes[9]={type:6,string:[117]},this.rules[12].opcodes[10]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2]},this.rules[13].opcodes[1]={type:4,index:14},this.rules[13].opcodes[2]={type:2,children:[3,4,5,6]},this.rules[13].opcodes[3]={type:4,index:15},this.rules[13].opcodes[4]={type:7,string:[92]},this.rules[13].opcodes[5]={type:6,string:[117]},this.rules[13].opcodes[6]={type:4,index:16},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:1,children:[1,11]},this.rules[14].opcodes[1]={type:2,children:[2,9]},this.rules[14].opcodes[2]={type:1,children:[3,4,5,6,7,8]},this.rules[14].opcodes[3]={type:4,index:65},this.rules[14].opcodes[4]={type:7,string:[97]},this.rules[14].opcodes[5]={type:7,string:[98]},this.rules[14].opcodes[6]={type:7,string:[99]},this.rules[14].opcodes[7]={type:7,string:[101]},this.rules[14].opcodes[8]={type:7,string:[102]},this.rules[14].opcodes[9]={type:3,min:3,max:3},this.rules[14].opcodes[10]={type:4,index:17},this.rules[14].opcodes[11]={type:2,children:[12,13,14]},this.rules[14].opcodes[12]={type:7,string:[100]},this.rules[14].opcodes[13]={type:5,min:48,max:55},this.rules[14].opcodes[14]={type:3,min:2,max:2},this.rules[14].opcodes[15]={type:4,index:17},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2,7]},this.rules[15].opcodes[1]={type:7,string:[100]},this.rules[15].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[15].opcodes[3]={type:7,string:[56]},this.rules[15].opcodes[4]={type:7,string:[57]},this.rules[15].opcodes[5]={type:7,string:[97]},this.rules[15].opcodes[6]={type:7,string:[98]},this.rules[15].opcodes[7]={type:3,min:2,max:2},this.rules[15].opcodes[8]={type:4,index:17},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,2,7]},this.rules[16].opcodes[1]={type:7,string:[100]},this.rules[16].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[16].opcodes[3]={type:7,string:[99]},this.rules[16].opcodes[4]={type:7,string:[100]},this.rules[16].opcodes[5]={type:7,string:[101]},this.rules[16].opcodes[6]={type:7,string:[102]},this.rules[16].opcodes[7]={type:3,min:2,max:2},this.rules[16].opcodes[8]={type:4,index:17},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[17].opcodes[1]={type:4,index:65},this.rules[17].opcodes[2]={type:7,string:[97]},this.rules[17].opcodes[3]={type:7,string:[98]},this.rules[17].opcodes[4]={type:7,string:[99]},this.rules[17].opcodes[5]={type:7,string:[100]},this.rules[17].opcodes[6]={type:7,string:[101]},this.rules[17].opcodes[7]={type:7,string:[102]},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:7,string:[42]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:4,index:20},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,2]},this.rules[20].opcodes[1]={type:7,string:[48]},this.rules[20].opcodes[2]={type:2,children:[3,5,6]},this.rules[20].opcodes[3]={type:3,min:0,max:1},this.rules[20].opcodes[4]={type:7,string:[45]},this.rules[20].opcodes[5]={type:4,index:21},this.rules[20].opcodes[6]={type:3,min:0,max:1/0},this.rules[20].opcodes[7]={type:4,index:65},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:5,min:49,max:57},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:2,children:[1,5,6,7,11]},this.rules[22].opcodes[1]={type:3,min:0,max:1},this.rules[22].opcodes[2]={type:2,children:[3,4]},this.rules[22].opcodes[3]={type:4,index:23},this.rules[22].opcodes[4]={type:4,index:3},this.rules[22].opcodes[5]={type:4,index:85},this.rules[22].opcodes[6]={type:4,index:3},this.rules[22].opcodes[7]={type:3,min:0,max:1},this.rules[22].opcodes[8]={type:2,children:[9,10]},this.rules[22].opcodes[9]={type:4,index:24},this.rules[22].opcodes[10]={type:4,index:3},this.rules[22].opcodes[11]={type:3,min:0,max:1},this.rules[22].opcodes[12]={type:2,children:[13,14]},this.rules[22].opcodes[13]={type:4,index:85},this.rules[22].opcodes[14]={type:3,min:0,max:1},this.rules[22].opcodes[15]={type:2,children:[16,17]},this.rules[22].opcodes[16]={type:4,index:3},this.rules[22].opcodes[17]={type:4,index:25},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:4,index:20},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:4,index:20},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:4,index:20},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:2,children:[1,2,3]},this.rules[26].opcodes[1]={type:4,index:88},this.rules[26].opcodes[2]={type:4,index:3},this.rules[26].opcodes[3]={type:4,index:27},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:4,index:28},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:2,children:[1,2]},this.rules[28].opcodes[1]={type:4,index:29},this.rules[28].opcodes[2]={type:3,min:0,max:1/0},this.rules[28].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[28].opcodes[4]={type:4,index:3},this.rules[28].opcodes[5]={type:4,index:89},this.rules[28].opcodes[6]={type:4,index:3},this.rules[28].opcodes[7]={type:4,index:29},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:2,children:[1,2]},this.rules[29].opcodes[1]={type:4,index:30},this.rules[29].opcodes[2]={type:3,min:0,max:1/0},this.rules[29].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[29].opcodes[4]={type:4,index:3},this.rules[29].opcodes[5]={type:4,index:90},this.rules[29].opcodes[6]={type:4,index:3},this.rules[29].opcodes[7]={type:4,index:30},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:1,children:[1,2,3]},this.rules[30].opcodes[1]={type:4,index:31},this.rules[30].opcodes[2]={type:4,index:37},this.rules[30].opcodes[3]={type:4,index:33},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,5,6,7,8,9]},this.rules[31].opcodes[1]={type:3,min:0,max:1},this.rules[31].opcodes[2]={type:2,children:[3,4]},this.rules[31].opcodes[3]={type:4,index:32},this.rules[31].opcodes[4]={type:4,index:3},this.rules[31].opcodes[5]={type:4,index:82},this.rules[31].opcodes[6]={type:4,index:3},this.rules[31].opcodes[7]={type:4,index:27},this.rules[31].opcodes[8]={type:4,index:3},this.rules[31].opcodes[9]={type:4,index:83},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:7,string:[33]},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:2,children:[1,5]},this.rules[33].opcodes[1]={type:3,min:0,max:1},this.rules[33].opcodes[2]={type:2,children:[3,4]},this.rules[33].opcodes[3]={type:4,index:32},this.rules[33].opcodes[4]={type:4,index:3},this.rules[33].opcodes[5]={type:1,children:[6,7]},this.rules[33].opcodes[6]={type:4,index:34},this.rules[33].opcodes[7]={type:4,index:57},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:1,children:[1,2]},this.rules[34].opcodes[1]={type:4,index:35},this.rules[34].opcodes[2]={type:4,index:0},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:2,children:[1,2]},this.rules[35].opcodes[1]={type:4,index:36},this.rules[35].opcodes[2]={type:4,index:1},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:7,string:[64]},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,2,3,4,5]},this.rules[37].opcodes[1]={type:4,index:39},this.rules[37].opcodes[2]={type:4,index:3},this.rules[37].opcodes[3]={type:4,index:40},this.rules[37].opcodes[4]={type:4,index:3},this.rules[37].opcodes[5]={type:4,index:39},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[38].opcodes[1]={type:4,index:47},this.rules[38].opcodes[2]={type:4,index:7},this.rules[38].opcodes[3]={type:4,index:50},this.rules[38].opcodes[4]={type:4,index:51},this.rules[38].opcodes[5]={type:4,index:52},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:1,children:[1,2,3]},this.rules[39].opcodes[1]={type:4,index:41},this.rules[39].opcodes[2]={type:4,index:57},this.rules[39].opcodes[3]={type:4,index:38},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[40].opcodes[1]={type:7,string:[61,61]},this.rules[40].opcodes[2]={type:7,string:[33,61]},this.rules[40].opcodes[3]={type:7,string:[60,61]},this.rules[40].opcodes[4]={type:7,string:[62,61]},this.rules[40].opcodes[5]={type:7,string:[60]},this.rules[40].opcodes[6]={type:7,string:[62]},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:1,children:[1,2]},this.rules[41].opcodes[1]={type:4,index:42},this.rules[41].opcodes[2]={type:4,index:43},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,2]},this.rules[42].opcodes[1]={type:4,index:36},this.rules[42].opcodes[2]={type:4,index:44},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:2,children:[1,2]},this.rules[43].opcodes[1]={type:4,index:4},this.rules[43].opcodes[2]={type:4,index:44},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:3,min:0,max:1/0},this.rules[44].opcodes[1]={type:2,children:[2,3]},this.rules[44].opcodes[2]={type:4,index:3},this.rules[44].opcodes[3]={type:1,children:[4,5]},this.rules[44].opcodes[4]={type:4,index:45},this.rules[44].opcodes[5]={type:4,index:46},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:1,children:[1,5]},this.rules[45].opcodes[1]={type:2,children:[2,3,4]},this.rules[45].opcodes[2]={type:4,index:80},this.rules[45].opcodes[3]={type:4,index:6},this.rules[45].opcodes[4]={type:4,index:81},this.rules[45].opcodes[5]={type:2,children:[6,7]},this.rules[45].opcodes[6]={type:4,index:78},this.rules[45].opcodes[7]={type:4,index:62},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:2,children:[1,2,3]},this.rules[46].opcodes[1]={type:4,index:80},this.rules[46].opcodes[2]={type:4,index:19},this.rules[46].opcodes[3]={type:4,index:81},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:2,children:[1,4,6]},this.rules[47].opcodes[1]={type:1,children:[2,3]},this.rules[47].opcodes[2]={type:4,index:20},this.rules[47].opcodes[3]={type:7,string:[45,48]},this.rules[47].opcodes[4]={type:3,min:0,max:1},this.rules[47].opcodes[5]={type:4,index:48},this.rules[47].opcodes[6]={type:3,min:0,max:1},this.rules[47].opcodes[7]={type:4,index:49},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:2,children:[1,2]},this.rules[48].opcodes[1]={type:7,string:[46]},this.rules[48].opcodes[2]={type:3,min:1,max:1/0},this.rules[48].opcodes[3]={type:4,index:65},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:2,children:[1,2,6]},this.rules[49].opcodes[1]={type:7,string:[101]},this.rules[49].opcodes[2]={type:3,min:0,max:1},this.rules[49].opcodes[3]={type:1,children:[4,5]},this.rules[49].opcodes[4]={type:7,string:[45]},this.rules[49].opcodes[5]={type:7,string:[43]},this.rules[49].opcodes[6]={type:3,min:1,max:1/0},this.rules[49].opcodes[7]={type:4,index:65},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:6,string:[116,114,117,101]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[102,97,108,115,101]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[110,117,108,108]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,2]},this.rules[53].opcodes[1]={type:4,index:54},this.rules[53].opcodes[2]={type:3,min:0,max:1/0},this.rules[53].opcodes[3]={type:4,index:55},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:4,index:56},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:1,children:[1,2,3]},this.rules[55].opcodes[1]={type:4,index:54},this.rules[55].opcodes[2]={type:7,string:[95]},this.rules[55].opcodes[3]={type:4,index:65},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:5,min:97,max:122},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:2,children:[1,2,3,4,13,14]},this.rules[57].opcodes[1]={type:4,index:53},this.rules[57].opcodes[2]={type:4,index:82},this.rules[57].opcodes[3]={type:4,index:3},this.rules[57].opcodes[4]={type:3,min:0,max:1},this.rules[57].opcodes[5]={type:2,children:[6,7]},this.rules[57].opcodes[6]={type:4,index:58},this.rules[57].opcodes[7]={type:3,min:0,max:1/0},this.rules[57].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[57].opcodes[9]={type:4,index:3},this.rules[57].opcodes[10]={type:4,index:84},this.rules[57].opcodes[11]={type:4,index:3},this.rules[57].opcodes[12]={type:4,index:58},this.rules[57].opcodes[13]={type:4,index:3},this.rules[57].opcodes[14]={type:4,index:83},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[58].opcodes[1]={type:4,index:27},this.rules[58].opcodes[2]={type:4,index:34},this.rules[58].opcodes[3]={type:4,index:57},this.rules[58].opcodes[4]={type:4,index:38},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:1,children:[1,2]},this.rules[59].opcodes[1]={type:4,index:60},this.rules[59].opcodes[2]={type:4,index:67},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:1,children:[1,2]},this.rules[60].opcodes[1]={type:4,index:61},this.rules[60].opcodes[2]={type:2,children:[3,4]},this.rules[60].opcodes[3]={type:4,index:78},this.rules[60].opcodes[4]={type:1,children:[5,6]},this.rules[60].opcodes[5]={type:4,index:18},this.rules[60].opcodes[6]={type:4,index:62},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:2,children:[1,2,3,4,10,11]},this.rules[61].opcodes[1]={type:4,index:80},this.rules[61].opcodes[2]={type:4,index:3},this.rules[61].opcodes[3]={type:4,index:5},this.rules[61].opcodes[4]={type:3,min:0,max:1/0},this.rules[61].opcodes[5]={type:2,children:[6,7,8,9]},this.rules[61].opcodes[6]={type:4,index:3},this.rules[61].opcodes[7]={type:4,index:84},this.rules[61].opcodes[8]={type:4,index:3},this.rules[61].opcodes[9]={type:4,index:5},this.rules[61].opcodes[10]={type:4,index:3},this.rules[61].opcodes[11]={type:4,index:81},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:2,children:[1,2]},this.rules[62].opcodes[1]={type:4,index:63},this.rules[62].opcodes[2]={type:3,min:0,max:1/0},this.rules[62].opcodes[3]={type:4,index:64},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[63].opcodes[1]={type:4,index:66},this.rules[63].opcodes[2]={type:7,string:[95]},this.rules[63].opcodes[3]={type:5,min:128,max:55295},this.rules[63].opcodes[4]={type:5,min:57344,max:1114111},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:1,children:[1,2]},this.rules[64].opcodes[1]={type:4,index:63},this.rules[64].opcodes[2]={type:4,index:65},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:5,min:48,max:57},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:1,children:[1,2]},this.rules[66].opcodes[1]={type:5,min:65,max:90},this.rules[66].opcodes[2]={type:5,min:97,max:122},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:2,children:[1,2]},this.rules[67].opcodes[1]={type:4,index:79},this.rules[67].opcodes[2]={type:1,children:[3,4,5]},this.rules[67].opcodes[3]={type:4,index:61},this.rules[67].opcodes[4]={type:4,index:18},this.rules[67].opcodes[5]={type:4,index:62},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:2,children:[1,2]},this.rules[68].opcodes[1]={type:4,index:4},this.rules[68].opcodes[2]={type:3,min:0,max:1/0},this.rules[68].opcodes[3]={type:4,index:69},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:2,children:[1,2,3]},this.rules[69].opcodes[1]={type:4,index:80},this.rules[69].opcodes[2]={type:4,index:70},this.rules[69].opcodes[3]={type:4,index:81},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:1,children:[1,2]},this.rules[70].opcodes[1]={type:4,index:71},this.rules[70].opcodes[2]={type:4,index:77},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:2,children:[1,2,4]},this.rules[71].opcodes[1]={type:4,index:87},this.rules[71].opcodes[2]={type:3,min:0,max:1/0},this.rules[71].opcodes[3]={type:4,index:72},this.rules[71].opcodes[4]={type:4,index:87},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:1,children:[1,2]},this.rules[72].opcodes[1]={type:4,index:73},this.rules[72].opcodes[2]={type:2,children:[3,4]},this.rules[72].opcodes[3]={type:4,index:10},this.rules[72].opcodes[4]={type:4,index:74},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[73].opcodes[1]={type:5,min:32,max:38},this.rules[73].opcodes[2]={type:5,min:40,max:91},this.rules[73].opcodes[3]={type:5,min:93,max:55295},this.rules[73].opcodes[4]={type:5,min:57344,max:1114111},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[74].opcodes[1]={type:6,string:[98]},this.rules[74].opcodes[2]={type:6,string:[102]},this.rules[74].opcodes[3]={type:6,string:[110]},this.rules[74].opcodes[4]={type:6,string:[114]},this.rules[74].opcodes[5]={type:6,string:[116]},this.rules[74].opcodes[6]={type:7,string:[39]},this.rules[74].opcodes[7]={type:7,string:[92]},this.rules[74].opcodes[8]={type:2,children:[9,10]},this.rules[74].opcodes[9]={type:6,string:[117]},this.rules[74].opcodes[10]={type:4,index:75},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:2,children:[1,2,3]},this.rules[75].opcodes[1]={type:7,string:[48]},this.rules[75].opcodes[2]={type:7,string:[48]},this.rules[75].opcodes[3]={type:1,children:[4,7,10,13]},this.rules[75].opcodes[4]={type:2,children:[5,6]},this.rules[75].opcodes[5]={type:7,string:[48]},this.rules[75].opcodes[6]={type:5,min:48,max:55},this.rules[75].opcodes[7]={type:2,children:[8,9]},this.rules[75].opcodes[8]={type:7,string:[48]},this.rules[75].opcodes[9]={type:6,string:[98]},this.rules[75].opcodes[10]={type:2,children:[11,12]},this.rules[75].opcodes[11]={type:7,string:[48]},this.rules[75].opcodes[12]={type:5,min:101,max:102},this.rules[75].opcodes[13]={type:2,children:[14,15]},this.rules[75].opcodes[14]={type:7,string:[49]},this.rules[75].opcodes[15]={type:4,index:76},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:1,children:[1,2]},this.rules[76].opcodes[1]={type:4,index:65},this.rules[76].opcodes[2]={type:5,min:97,max:102},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:7,string:[48]},this.rules[77].opcodes[2]={type:2,children:[3,4]},this.rules[77].opcodes[3]={type:4,index:21},this.rules[77].opcodes[4]={type:3,min:0,max:1/0},this.rules[77].opcodes[5]={type:4,index:65},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:7,string:[46]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:7,string:[46,46]},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:7,string:[91]},this.rules[81].opcodes=[],this.rules[81].opcodes[0]={type:7,string:[93]},this.rules[82].opcodes=[],this.rules[82].opcodes[0]={type:7,string:[40]},this.rules[83].opcodes=[],this.rules[83].opcodes[0]={type:7,string:[41]},this.rules[84].opcodes=[],this.rules[84].opcodes[0]={type:7,string:[44]},this.rules[85].opcodes=[],this.rules[85].opcodes[0]={type:7,string:[58]},this.rules[86].opcodes=[],this.rules[86].opcodes[0]={type:6,string:[34]},this.rules[87].opcodes=[],this.rules[87].opcodes[0]={type:6,string:[39]},this.rules[88].opcodes=[],this.rules[88].opcodes[0]={type:7,string:[63]},this.rules[89].opcodes=[],this.rules[89].opcodes[0]={type:7,string:[124,124]},this.rules[90].opcodes=[],this.rules[90].opcodes[0]={type:7,string:[38,38]},this.toString=function(){let e="";return e+="; JSONPath: Query Expressions for JSON\n",e+="; https://www.rfc-editor.org/rfc/rfc9535\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\n",e+="jsonpath-query = root-identifier segments\n",e+="segments = *(S segment)\n",e+="\n",e+="B = %x20 / ; Space\n",e+=" %x09 / ; Horizontal tab\n",e+=" %x0A / ; Line feed or New line\n",e+=" %x0D ; Carriage return\n",e+="S = *B ; optional blank space\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\n",e+='root-identifier = "$"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\n",e+="selector = name-selector /\n",e+=" wildcard-selector /\n",e+=" slice-selector /\n",e+=" index-selector /\n",e+=" filter-selector\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\n",e+="name-selector = string-literal\n",e+="\n",e+='string-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n',e+=" squote *single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="\n",e+="double-quoted = unescaped /\n",e+=" %x27 / ; '\n",e+=' ESC %x22 / ; \\"\n',e+=" ESC escapable\n",e+="\n",e+="single-quoted = unescaped /\n",e+=' %x22 / ; "\n',e+=" ESC %x27 / ; \\'\n",e+=" ESC escapable\n",e+="\n",e+="ESC = %x5C ; \\ backslash\n",e+="\n",e+="unescaped = %x20-21 / ; see RFC 8259\n",e+=' ; omit 0x22 "\n',e+=" %x23-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=' "/" / ; / slash (solidus) U+002F\n',e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 hexchar) ; uXXXX U+XXXX\n",e+="\n",e+="hexchar = non-surrogate /\n",e+=' (high-surrogate "\\" %x75 low-surrogate)\n',e+='non-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n',e+=' ("D" %x30-37 2HEXDIG )\n',e+='high-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\n',e+='low-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n',e+="\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\n",e+='wildcard-selector = "*"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\n",e+="index-selector = int ; decimal integer\n",e+="\n",e+='int = "0" /\n',e+=' (["-"] DIGIT1 *DIGIT) ; - optional\n',e+="DIGIT1 = %x31-39 ; 1-9 non-zero digit\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\n",e+="slice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="start = int ; included in selection\n",e+="end = int ; not included in selection\n",e+="step = int ; default: 1\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\n",e+="filter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="logical-expr = logical-or-expr\n",e+="logical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; disjunction\n",e+=" ; binds less tightly than conjunction\n",e+="logical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; conjunction\n",e+=" ; binds more tightly than disjunction\n",e+="\n",e+="basic-expr = paren-expr /\n",e+=" comparison-expr /\n",e+=" test-expr\n",e+="\n",e+="paren-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n",e+=" ; parenthesized expression\n",e+='logical-not-op = "!" ; logical NOT operator\n',e+="\n",e+="test-expr = [logical-not-op S]\n",e+=" (filter-query / ; existence/non-existence\n",e+=" function-expr) ; LogicalType or NodesType\n",e+="filter-query = rel-query / jsonpath-query\n",e+="rel-query = current-node-identifier segments\n",e+='current-node-identifier = "@"\n',e+="\n",e+="comparison-expr = comparable S comparison-op S comparable\n",e+="literal = number / string-literal /\n",e+=" true / false / null\n",e+="comparable = singular-query / ; singular query value\n",e+=" function-expr / ; ValueType\n",e+=" literal\n",e+=" ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\n",e+='comparison-op = "==" / "!=" /\n',e+=' "<=" / ">=" /\n',e+=' "<" / ">"\n',e+="\n",e+="singular-query = rel-singular-query / abs-singular-query\n",e+="rel-singular-query = current-node-identifier singular-query-segments\n",e+="abs-singular-query = root-identifier singular-query-segments\n",e+="singular-query-segments = *(S (name-segment / index-segment))\n",e+="name-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n",e+=" (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\n",e+="index-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="\n",e+='number = (int / "-0") [ frac ] [ exp ] ; decimal number\n',e+='frac = "." 1*DIGIT ; decimal fraction\n',e+='exp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\n',e+="true = %x74.72.75.65 ; true\n",e+="false = %x66.61.6c.73.65 ; false\n",e+="null = %x6e.75.6c.6c ; null\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\n",e+="function-name = function-name-first *function-name-char\n",e+="function-name-first = LCALPHA\n",e+='function-name-char = function-name-first / "_" / DIGIT\n',e+='LCALPHA = %x61-7A ; "a".."z"\n',e+="\n",e+="function-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n",e+=" *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\n",e+="function-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n",e+=" filter-query / ; (includes singular-query)\n",e+=" function-expr /\n",e+=" literal\n",e+="\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\n",e+="segment = child-segment / descendant-segment\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\n",e+="child-segment = bracketed-selection /\n",e+=" (dot-prefix ; MODIFICATION: surrogate text rule used\n",e+=" (wildcard-selector /\n",e+=" member-name-shorthand))\n",e+="\n",e+="bracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n",e+=" ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="member-name-shorthand = name-first *name-char\n",e+="name-first = ALPHA /\n",e+=' "_" /\n',e+=" %x80-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="name-char = name-first / DIGIT\n",e+="\n",e+="DIGIT = %x30-39 ; 0-9\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\n",e+="descendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n",e+=" wildcard-selector /\n",e+=" member-name-shorthand)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\n",e+="normalized-path = root-identifier *(normal-index-segment)\n",e+="normal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="normal-selector = normal-name-selector / normal-index-selector\n",e+="normal-name-selector = squote *normal-single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="normal-single-quoted = normal-unescaped /\n",e+=" ESC normal-escapable\n",e+="normal-unescaped = ; omit %x0-1F control codes\n",e+=" %x20-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="normal-escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=" \"'\" / ; ' apostrophe U+0027\n",e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 normal-hexchar)\n",e+=" ; certain values u00xx U+00XX\n",e+='normal-hexchar = "0" "0"\n',e+=" (\n",e+=' ("0" %x30-37) / ; "00"-"07"\n',e+=" ; omit U+0008-U+000A BS HT LF\n",e+=' ("0" %x62) / ; "0b"\n',e+=" ; omit U+000C-U+000D FF CR\n",e+=' ("0" %x65-66) / ; "0e"-"0f"\n',e+=' ("1" normal-HEXDIG)\n',e+=" )\n",e+='normal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\n',e+='normal-index-selector = "0" / (DIGIT1 *DIGIT)\n',e+=" ; non-negative decimal integer\n",e+="\n",e+="; Surrogate named rules\n",e+='dot-prefix = "."\n',e+='double-dot-prefix = ".."\n',e+='left-bracket = "["\n',e+='right-bracket = "]"\n',e+='left-paren = "("\n',e+='right-paren = ")"\n',e+='comma = ","\n',e+='colon = ":"\n',e+='dquote = %x22 ; "\n',e+="squote = %x27 ; '\n",e+='questionmark = "?"\n',e+='disjunction = "||"\n',e+='conjunction = "&&"\n','; JSONPath: Query Expressions for JSON\n; https://www.rfc-editor.org/rfc/rfc9535\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\njsonpath-query = root-identifier segments\nsegments = *(S segment)\n\nB = %x20 / ; Space\n %x09 / ; Horizontal tab\n %x0A / ; Line feed or New line\n %x0D ; Carriage return\nS = *B ; optional blank space\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\nroot-identifier = "$"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\nselector = name-selector /\n wildcard-selector /\n slice-selector /\n index-selector /\n filter-selector\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\nname-selector = string-literal\n\nstring-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n squote *single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\n\ndouble-quoted = unescaped /\n %x27 / ; \'\n ESC %x22 / ; \\"\n ESC escapable\n\nsingle-quoted = unescaped /\n %x22 / ; "\n ESC %x27 / ; \\\'\n ESC escapable\n\nESC = %x5C ; \\ backslash\n\nunescaped = %x20-21 / ; see RFC 8259\n ; omit 0x22 "\n %x23-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nescapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "/" / ; / slash (solidus) U+002F\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 hexchar) ; uXXXX U+XXXX\n\nhexchar = non-surrogate /\n (high-surrogate "\\" %x75 low-surrogate)\nnon-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n ("D" %x30-37 2HEXDIG )\nhigh-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\nlow-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\nwildcard-selector = "*"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\nindex-selector = int ; decimal integer\n\nint = "0" /\n (["-"] DIGIT1 *DIGIT) ; - optional\nDIGIT1 = %x31-39 ; 1-9 non-zero digit\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\nslice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n\nstart = int ; included in selection\nend = int ; not included in selection\nstep = int ; default: 1\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\nfilter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n\nlogical-expr = logical-or-expr\nlogical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n ; disjunction\n ; binds less tightly than conjunction\nlogical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n ; conjunction\n ; binds more tightly than disjunction\n\nbasic-expr = paren-expr /\n comparison-expr /\n test-expr\n\nparen-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n ; parenthesized expression\nlogical-not-op = "!" ; logical NOT operator\n\ntest-expr = [logical-not-op S]\n (filter-query / ; existence/non-existence\n function-expr) ; LogicalType or NodesType\nfilter-query = rel-query / jsonpath-query\nrel-query = current-node-identifier segments\ncurrent-node-identifier = "@"\n\ncomparison-expr = comparable S comparison-op S comparable\nliteral = number / string-literal /\n true / false / null\ncomparable = singular-query / ; singular query value\n function-expr / ; ValueType\n literal\n ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\ncomparison-op = "==" / "!=" /\n "<=" / ">=" /\n "<" / ">"\n\nsingular-query = rel-singular-query / abs-singular-query\nrel-singular-query = current-node-identifier singular-query-segments\nabs-singular-query = root-identifier singular-query-segments\nsingular-query-segments = *(S (name-segment / index-segment))\nname-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\nindex-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n\nnumber = (int / "-0") [ frac ] [ exp ] ; decimal number\nfrac = "." 1*DIGIT ; decimal fraction\nexp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\ntrue = %x74.72.75.65 ; true\nfalse = %x66.61.6c.73.65 ; false\nnull = %x6e.75.6c.6c ; null\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\nfunction-name = function-name-first *function-name-char\nfunction-name-first = LCALPHA\nfunction-name-char = function-name-first / "_" / DIGIT\nLCALPHA = %x61-7A ; "a".."z"\n\nfunction-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\nfunction-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n filter-query / ; (includes singular-query)\n function-expr /\n literal\n\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\nsegment = child-segment / descendant-segment\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\nchild-segment = bracketed-selection /\n (dot-prefix ; MODIFICATION: surrogate text rule used\n (wildcard-selector /\n member-name-shorthand))\n\nbracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n ; MODIFICATION: surrogate text rule used\n\nmember-name-shorthand = name-first *name-char\nname-first = ALPHA /\n "_" /\n %x80-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\nname-char = name-first / DIGIT\n\nDIGIT = %x30-39 ; 0-9\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\ndescendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n wildcard-selector /\n member-name-shorthand)\n\n; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\nnormalized-path = root-identifier *(normal-index-segment)\nnormal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\nnormal-selector = normal-name-selector / normal-index-selector\nnormal-name-selector = squote *normal-single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\nnormal-single-quoted = normal-unescaped /\n ESC normal-escapable\nnormal-unescaped = ; omit %x0-1F control codes\n %x20-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nnormal-escapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "\'" / ; \' apostrophe U+0027\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 normal-hexchar)\n ; certain values u00xx U+00XX\nnormal-hexchar = "0" "0"\n (\n ("0" %x30-37) / ; "00"-"07"\n ; omit U+0008-U+000A BS HT LF\n ("0" %x62) / ; "0b"\n ; omit U+000C-U+000D FF CR\n ("0" %x65-66) / ; "0e"-"0f"\n ("1" normal-HEXDIG)\n )\nnormal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\nnormal-index-selector = "0" / (DIGIT1 *DIGIT)\n ; non-negative decimal integer\n\n; Surrogate named rules\ndot-prefix = "."\ndouble-dot-prefix = ".."\nleft-bracket = "["\nright-bracket = "]"\nleft-paren = "("\nright-paren = ")"\ncomma = ","\ncolon = ":"\ndquote = %x22 ; "\nsquote = %x27 ; \'\nquestionmark = "?"\ndisjunction = "||"\nconjunction = "&&"\n'}};const bn=e=>{if("string"!=typeof e)throw new TypeError("Selector must be a string");let t="";for(const s of e){const e=s.codePointAt(0);switch(e){case 8:t+="\\b";break;case 9:t+="\\t";break;case 10:t+="\\n";break;case 12:t+="\\f";break;case 13:t+="\\r";break;case 39:t+="\\'";break;case 92:t+="\\\\";break;default:t+=e<=31?`\\u${e.toString(16).padStart(4,"0")}`:s}}return t};const wn=class extends vn{},En=e=>{if(!Array.isArray(e))throw new wn("Selectors must be an array, got: "+typeof e,{selectors:e});try{return`$${e.map(e=>{if("string"==typeof e)return`['${bn(e)}']`;if("number"==typeof e){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Index selector must be a non-negative safe integer, got: ${e}`);return`[${e}]`}throw new TypeError("Selector must be a string or non-negative integer, got: "+typeof e)}).join("")}`}catch(t){throw new wn("Failed to compile normalized JSONPath",{cause:t,selectors:e})}};class On{node;key;index;parent;parentPath;inList;#e=!1;#t=!1;#s=!1;#n=!1;#r;#i=!1;constructor(e,t,s,n,r){this.node=e,this.parent=t,this.parentPath=s,this.key=n,this.index=r&&"number"==typeof n?n:void 0,this.inList=r}get shouldSkip(){return this.#e}get shouldStop(){return this.#t}get removed(){return this.#s}isRoot(){return null===this.parentPath}get depth(){let e=0,t=this.parentPath;for(;null!==t;)e+=1,t=t.parentPath;return e}getAncestry(){const e=[];let t=this.parentPath;for(;null!==t;)e.push(t),t=t.parentPath;return e}getAncestorNodes(){return this.getAncestry().map(e=>e.node)}getPathKeys(){const e=[];let t=this;for(;null!==t&&void 0!==t.key;)e.unshift(t.key),t=t.parentPath;return e}formatPath(e="jsonpointer"){const t=this.getPathKeys();return 0===t.length?"jsonpath"===e?"$":"":"jsonpath"===e?En(t):gn(t)}findParent(e){let t=this.parentPath;for(;null!==t;){if(e(t))return t;t=t.parentPath}return null}find(e){return e(this)?this:this.findParent(e)}skip(){this.#e=!0}stop(){this.#t=!0}replaceWith(e){this.#i&&console.warn("Warning: replaceWith() called on a stale Path. This path belongs to a node whose visit has already completed. The replacement will have no effect. To replace a parent node, do so from the parent's own visitor."),this.#n=!0,this.#r=e,this.node=e}remove(){this.#i&&console.warn("Warning: remove() called on a stale Path. This path belongs to a node whose visit has already completed. The removal will have no effect. To remove a parent node, do so from the parent's own visitor."),this.#s=!0}_getReplacementNode(){return this.#r}_wasReplaced(){return this.#n}_reset(){this.#e=!1,this.#t=!1,this.#s=!1,this.#n=!1,this.#r=void 0}_markStale(){this.#i=!0}}const Sn=Tt(1,qt(rn,rt(Et,M("[object Promise]")))),jn=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},kn=e=>{const t=e.primitive();return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},An=e=>ie(e),Pn=e=>Ts(e),Cn=(e,t,s)=>{he(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},Fn=e=>he(e)?["key","value"]:ue(e)||pe(e)?["content"]:[],In=(e,t)=>{if(void 0!==e[t])return e[t];const s=t.length;for(const n in e){if(!n.includes("|"))continue;const r=n.indexOf(t);if(-1===r)continue;const i=0===r||"|"===n[r-1],o=r+s===n.length||"|"===n[r+s];if(i&&o)return e[n]}},Tn=(e,t,s)=>{if(void 0===t)return null;const n=e,r=s?"leave":"enter",i=In(n,t);if(!s&&"function"==typeof i)return i;if(null!=i){const e=i[r];if("function"==typeof e)return e}const o=n[r];if("function"==typeof o)return o;if(null!=o){const e=In(o,t);if("function"==typeof e)return e}return null},Mn=(e,t={})=>{const{visitFnGetter:s=Tn,nodeTypeGetter:n=jn,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=Dn(t,a),n=i.call(e[u],s);if(Sn(n))throw new Os("Async visitor not supported in sync mode",{visitor:e[u],visitFn:i});if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=Dn(t,r),n=i.call(e[a],s);if(Sn(n))throw new Os("Async visitor not supported in sync mode",{visitor:e[a],visitFn:i});if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}},$n=(e,t={})=>{const{visitFnGetter:s=Tn,nodeTypeGetter:n=jn,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{async enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=Dn(t,a),n=await i.call(e[u],s);if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},async leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=Dn(t,r),n=await i.call(e[a],s);if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}};function Dn(e,t){return new On(t,e.parent,e.parentPath,e.key,e.inList)}function*Rn(e,t,s){const{keyMap:n,state:r,nodeTypeGetter:i,nodePredicate:o,nodeCloneFn:c,detectCycles:a,mutable:l,mutationFn:u}=s,p="function"==typeof n;let h,d,m=Array.isArray(e),f=[e],y=-1,g=[],x=e,v=null,b=null;const w=[];do{y+=1;const e=y===f.length;let s;const E=e&&0!==g.length;if(e){if(s=0===w.length?void 0:v?.key,x=d,d=w.pop(),b=v?.parentPath?.parentPath??null,E)if(l)for(const[e,t]of g)u(x,e,t);else if(m){x=x.slice();let e=0;for(const[t,s]of g){const n=t-e;null===s?(x.splice(n,1),e+=1):x[n]=s}}else{x=c(x);for(const[e,t]of g)x[e]=t}if(void 0!==h){y=h.index,f=h.keys,g=h.edits;const e=h.inArray;if(b=h.parentPath,h=h.prev,E&&!l){const t=e?y:f[y];g.push([t,x])}m=e}}else if(void 0!==d&&(s=m?y:f[y],x=d[s],void 0===x))continue;if(!Array.isArray(x)){if(!o(x))throw new Os(`Invalid AST Node: ${String(x)}`,{node:x});if(a&&w.includes(x))continue;v=new On(x,d,b,s,m);const n=Tn(t,i(x),e);if(n){for(const[e,s]of Object.entries(r))t[e]=s;const i=yield{visitFn:n,path:v,isLeaving:e};if(v.shouldStop)break;if(v.shouldSkip&&!e)continue;if(v.removed){if(g.push([s,null]),!e)continue}else if(v._wasReplaced()){const t=v._getReplacementNode();if(g.push([s,t]),!e){if(!o(t))continue;x=t}}else if(void 0!==i&&(g.push([s,i]),!e)){if(!o(i))continue;x=i}v._markStale()}}if(!e){if(h={inArray:m,index:y,keys:f,edits:g,parentPath:b,prev:h},m=Array.isArray(x),m)f=x;else if(p)f=n(x);else{const e=i(x);f=void 0!==e?n[e]??[]:[]}y=-1,g=[],void 0!==d&&w.push(d),d=x,b=v}}while(void 0!==h);return 0!==g.length?g.at(-1)[1]:e}Mn[Symbol.for("nodejs.util.promisify.custom")]=$n;const qn=(e,t,s={})=>{const n=Rn(e,t,{keyMap:s.keyMap??Fn,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??jn,nodePredicate:s.nodePredicate??An,nodeCloneFn:s.nodeCloneFn??Pn,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??Cn});let r=n.next();for(;!r.done;){const e=r.value,s=e.visitFn.call(t,e.path);if(Sn(s))throw new Os("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});r=n.next(s)}return r.value},Nn=async(e,t,s={})=>{const n=Rn(e,t,{keyMap:s.keyMap??Fn,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??jn,nodePredicate:s.nodePredicate??An,nodeCloneFn:s.nodeCloneFn??Pn,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??Cn});let r=n.next();for(;!r.done;){const e=r.value,s=await e.visitFn.call(t,e.path);r=n.next(s)}return r.value};qn[Symbol.for("nodejs.util.promisify.custom")]=Nn,On.prototype.traverse=function(e,t){return qn(this.node,e,t)},On.prototype.traverseAsync=function(e,t){return Nn(this.node,e,t)};const Bn=class extends zs{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return an(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=_e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ot(Kt,["visitors",...e],this.specObj)?_e(["visitors",...e],this.specObj):_e(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof Js&&n?.constructor===Js?Cs(t):(qn(t,n,s),n.element)}};const _n=class extends Bn{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=_s(t);if(oe(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new L(Cs(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(i)||this.element.content.push(Cs(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},Ln=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},Vn=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:Vn(s,[...t,s])},Un=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>Vn(e));for(;s.every(e=>e.length>0);){const e=s.map(e=>e.pop()),n=e[0];if(!e.every(e=>e===n))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(r),o=Vn(r);for(let t of e){let e=Vn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Ln(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},Hn=e=>e.filter((t,s)=>e.indexOf(t)==s),Gn=(e,t)=>{const s=t.map(e=>Vn(e));let n=0,r=!0;for(;r;){r=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][n];if(null!=t&&(r=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}n++}},zn=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(Gn(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==Gn(n,e)||void 0!==t[n],get:(s,n)=>(Gn(n,e)||t)[n],set(t,s,n){const r=Gn(s,e);if(void 0===r)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return r[s]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))}),Jn=null,Xn="copy",Kn="copy",Wn="deep",Yn=new WeakMap,Zn=e=>Yn.get(e),Qn=(e,t)=>{var s,n;const r=Hn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=Hn([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},er=(e,t)=>{var s,n,r,i;return{property:Qn(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:Qn(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},tr=(e,t)=>{var s,n,r,i,o,c;return{class:Hn([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:er(null!==(r=null==e?void 0:e.static)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:er(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},sr=new Map,nr=(...e)=>{const t=((...e)=>{var t;const s=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const r=[...Vn(e.prototype).map(e=>e.constructor),...null!==(t=Zn(e))&&void 0!==t?t:[]].filter(e=>!s.has(e));for(let e of r)n.add(e);s.add(e),n.delete(e)}return[...s]})(...e).map(e=>sr.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>tr(e,t))},rr=e=>{let t=sr.get(e);return t||(t={},sr.set(e,t)),t};function ir(...e){var t,s,n;const r=e.map(e=>e.prototype),i=Jn;if(null!==i){const e=r.map(e=>e[i]).filter(e=>"function"==typeof e),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};r.push(s)}function o(...t){for(const s of e)Ln(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===Kn?Un(r,o):(c=r,a=o,zn([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===Xn?Un(e,null,["prototype"]):zn(e,Function.prototype));let l=o;if("none"!==Wn){const r="deep"===Wn?nr(...e):((...e)=>{const t=e.map(e=>rr(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>tr(e,t))})(...e);for(let e of null!==(t=null==r?void 0:r.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}or(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},l),or(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},l.prototype)}var u,p;return u=l,p=e,Yn.set(u,p),l}const or=(e,t)=>{const s=e.property,n=e.method;if(s)for(let e in s)for(let n of s[e])n(t,e);if(n)for(let e in n)for(let s of n[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const cr=function(){return!1};const ar=class extends Bn{specPath;ignoredFields;fieldPatternPredicate=cr;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=_s(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new L(Cs(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(n)||this.element.content.push(Cs(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const lr=class extends ar{constructor(e){super(e),this.fieldPatternPredicate=cn}};const ur=class{parent;constructor({parent:e}){this.parent=e}},pr=ir(_n,ur,Js),hr=ir(_n,Js),dr=ir(_n,Js),mr=ir(_n,Js),fr=ir(Bn,ur,Js),yr=ir(Bn,ur,Js),gr=ir(Bn,ur,Js),xr=ir(Bn,ur,Js),vr=ir(Bn,ur,Js),br=ir(lr,ur,Js),wr=ir(lr,ur,Js),Er=ir(lr,ur,Js),Or=ir(lr,ur,Js);const Sr=class extends pr{constructor(e){super(e),this.element=new hs,this.specPath=Xs(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){const t=e.node;return this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,_n.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Ys(this.parent)&&!oe(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof hs&&!oe(e.get("$schema"))){const e=Ks(_s(this.parent.meta.get("inheritedDialectIdentifier")),_s(this.parent.$schema));this.element.meta.set("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?Cs(this.parent.meta.get("ancestorsSchemaIdentifiers")??new re):new re,n=_s(e.get(t));cn(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}},jr=e=>pe(e)&&e.hasKey("$ref");const kr=class extends xr{ObjectElement(e){const t=e.node,s=jr(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new re,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=jr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ar=class extends Js{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const Pr=class extends Or{constructor(e){super(e),this.element=new V,this.element.classes.push("json-schema-properties"),this.specPath=e=>jr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Cr=class extends Er{constructor(e){super(e),this.element=new V,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>jr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Fr=class extends wr{constructor(e){super(e),this.element=new V,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>jr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Ir=class extends Js{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const Tr=class extends Js{StringElement(e){super.enter(e),this.element.classes.push("json-schema-type")}ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-type")}};const Mr=class extends fr{constructor(e){super(e),this.element=new re,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=jr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const $r=class extends yr{constructor(e){super(e),this.element=new re,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=jr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Dr=class extends gr{constructor(e){super(e),this.element=new re,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=jr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Rr=class extends br{constructor(e){super(e),this.element=new V,this.element.classes.push("json-schema-definitions"),this.specPath=e=>jr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const qr=class extends vr{constructor(e){super(e),this.element=new re,this.element.classes.push("json-schema-links")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Nr=class extends hr{constructor(e){super(e),this.element=new ds,this.specPath=Xs(["document","objects","JSONReference"])}ObjectElement(e){_n.prototype.ObjectElement.call(this,e),oe(this.element.$ref)&&this.element.classes.push("reference-element")}};const Br=class extends Js{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const _r=function(){return!0};const Lr=De(function(e,t,s){return Tt(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const Vr=i(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var Ur=g(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const Hr=Ur;const Gr=i(function(e){return o(0,e)});function zr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Jr=i(zr);const Xr=Bt(Fe);const Kr=Tt(1,Kt(Array.isArray)?Array.isArray:rt(F,ot("Array")));const Wr=qt(Kr,sn);function Yr(e){return function(e){if(Array.isArray(e))return Zr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Zr(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Zr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,n=Array(t);s<t;s++)n[s]=e[s];return n}var Qr=rt(Hr(Vr(function(e,t){return e.length>t.length})),Gr,qe("length")),ei=ts(function(e,t,s){var n=s.apply(void 0,Yr(e));return Xr(n)?Jr(n):t});const ti=Lr(Wr,function(e){var t=Qr(e);return Tt(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return et(ei(s),void 0,e)})},Ws);const si=class extends Bn{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Lr(e,Xs(t),Ws)),n=ti(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const ni=class extends si{constructor(e){super(e),this.alternator=[{predicate:jr,specPath:["document","objects","JSONReference"]},{predicate:_r,specPath:["document","objects","JSONSchema"]}]}};const ri=class extends mr{constructor(e){super(e),this.element=new ms,this.specPath=Xs(["document","objects","Media"])}};const ii={visitors:{value:Js,JSONSchemaOrJSONReferenceVisitor:ni,document:{objects:{JSONSchema:{element:"jSONSchemaDraft4",$visitor:Sr,fixedFields:{id:{$visitor:Js,alias:"idField"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:ni,items:{$visitor:kr,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Ar,properties:Pr,additionalProperties:ni,patternProperties:Cr,dependencies:Fr,enum:Ir,type:Tr,allOf:Mr,anyOf:$r,oneOf:Dr,not:ni,definitions:Rr,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:qr,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"jSONReference",$visitor:Nr,fixedFields:{$ref:Br}},Media:{element:"media",$visitor:ri,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:class extends dr{constructor(e){super(e),this.element=new fs,this.specPath=Xs(["document","objects","LinkDescription"])}},fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:ni,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:ni}}}}}},oi=ps(ii),ci=e=>Object.entries(e).map(([e,t])=>Qt(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(hs,"fixedFields",{get:()=>ci(oi.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(ds,"fixedFields",{get:()=>ci(oi.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(ms,"fixedFields",{get:()=>ci(oi.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty(fs,"fixedFields",{get:()=>ci(oi.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const ai=class extends hs{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idField(){throw new h("idField getter in Schema class is not not supported.")}set idField(e){throw new h("idField setter in Schema class is not not supported.")}get $schema(){throw new h("$schema getter in Schema class is not not supported.")}set $schema(e){throw new h("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new h("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new h("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new h("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new h("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new h("definitions getter in Schema class is not not supported.")}set definitions(e){throw new h("definitions setter in Schema class is not not supported.")}get base(){throw new h("base getter in Schema class is not not supported.")}set base(e){throw new h("base setter in Schema class is not not supported.")}get linksField(){throw new h("linksField getter in Schema class is not not supported.")}set linksField(e){throw new h("linksField setter in Schema class is not not supported.")}get media(){throw new h("media getter in Schema class is not not supported.")}set media(e){throw new h("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};const li=class extends V{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}};const ui=class extends V{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}};const pi=class extends V{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}};const hi=class extends V{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}};const di=class extends V{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}};const mi=class extends V{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}},fi={namespace:e=>{const{base:t}=e;return t.register("callback",U),t.register("components",H),t.register("contact",G),t.register("discriminator",z),t.register("encoding",J),t.register("example",X),t.register("externalDocumentation",K),t.register("header",Z),t.register("info",Q),t.register("license",ee),t.register("link",de),t.register("mediaType",me),t.register("oAuthFlow",fe),t.register("oAuthFlows",ye),t.register("openapi",ge),t.register("openApi3_0",xe),t.register("operation",ve),t.register("parameter",we),t.register("pathItem",Ee),t.register("paths",Oe),t.register("reference",Se),t.register("requestBody",je),t.register("response",ke),t.register("responses",Ae),t.register("schema",ai),t.register("securityRequirement",li),t.register("securityScheme",ui),t.register("server",pi),t.register("serverVariable",hi),t.register("tag",di),t.register("xml",mi),t}};class yi extends re{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(yi.primaryClass)}}const gi=yi;class xi extends re{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(xi.primaryClass)}}const vi=xi;class bi extends re{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(bi.primaryClass)}}const wi=bi;class Ei extends V{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Ei.primaryClass)}}const Oi=Ei;class Si extends V{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Si.primaryClass)}}const ji=Si;class ki extends V{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(ki.primaryClass)}}const Ai=ki;class Pi extends V{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Pi.primaryClass),this.classes.push("parameters")}}const Ci=Pi;class Fi extends V{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Fi.primaryClass),this.classes.push("examples")}}const Ii=Fi;class Ti extends V{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(Ti.primaryClass)}}const Mi=Ti;class $i extends V{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push($i.primaryClass)}}const Di=$i;class Ri extends V{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(Ri.primaryClass)}}const qi=Ri;class Ni extends V{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Ni.primaryClass)}}const Bi=Ni;class _i extends V{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(_i.primaryClass)}}const Li=_i;class Vi extends re{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Vi.primaryClass),this.classes.push("servers")}}const Ui=Vi;class Hi extends re{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Hi.primaryClass),this.classes.push("parameters")}}const Gi=Hi;class zi extends re{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(zi.primaryClass),this.classes.push("parameters")}}const Ji=zi;class Xi extends V{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Xi.primaryClass),this.classes.push("examples")}}const Ki=Xi;class Wi extends V{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Wi.primaryClass),this.classes.push("content")}}const Yi=Wi;class Zi extends re{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Zi.primaryClass)}}const Qi=Zi;class eo extends V{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(eo.primaryClass)}}const to=eo;class so extends re{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(so.primaryClass),this.classes.push("security")}}const no=so;class ro extends re{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(ro.primaryClass),this.classes.push("servers")}}const io=ro;class oo extends V{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(oo.primaryClass),this.classes.push("content")}}const co=oo;class ao extends V{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ao.primaryClass),this.classes.push("examples")}}const lo=ao;class uo extends V{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(uo.primaryClass)}}const po=uo;class ho extends V{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(ho.primaryClass)}}const mo=ho;class fo extends V{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(fo.primaryClass)}}const yo=fo;class go extends V{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(go.primaryClass),this.classes.push("content")}}const xo=go;class vo extends V{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(vo.primaryClass)}}const bo=vo;class wo extends V{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(wo.primaryClass)}}const Eo=wo;class Oo extends V{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Oo.primaryClass)}}const So=Oo;class jo extends V{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(jo.primaryClass)}}const ko=jo;class Ao extends V{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Ao.primaryClass),this.classes.push("examples")}}const Po=Ao;class Co extends V{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(Co.primaryClass),this.classes.push("content")}}const Fo=Co,Io={OpenApi3_0Element:{info:(...e)=>new Q(...e),servers:(...e)=>new gi(...e),paths:(...e)=>new Oe(...e),components:(...e)=>new H(...e),security:(...e)=>new vi(...e),tags:(...e)=>new wi(...e),externalDocs:(...e)=>new K(...e)},InfoElement:{contact:(...e)=>new G(...e),license:(...e)=>new ee(...e)},ServerElement:{variables:(...e)=>new Oi(...e)},ServerVariableElement:{enum:(...e)=>new re(...e)},PathsElement:{"[key: *]":function(...e){return new Ee(...e)}},PathItemElement:{get:(...e)=>new ve(...e),put:(...e)=>new ve(...e),post:(...e)=>new ve(...e),delete:(...e)=>new ve(...e),options:(...e)=>new ve(...e),head:(...e)=>new ve(...e),patch:(...e)=>new ve(...e),trace:(...e)=>new ve(...e),servers:(...e)=>new Ui(...e),parameters:(...e)=>new Gi(...e)},OperationElement:{tags:(...e)=>new Qi(...e),externalDocs:(...e)=>new K(...e),parameters:(...e)=>new Ji(...e),requestBody:(...e)=>new je(...e),responses:(...e)=>new Ae(...e),callbacks:(...e)=>new to(...e),security:(...e)=>new no(...e),servers:(...e)=>new io(...e)},ParameterElement:{schema:(...e)=>new ai(...e),examples:(...e)=>new Ki(...e),content:(...e)=>new Yi(...e)},RequestBodyElement:{content:(...e)=>new co(...e)},MediaTypeElement:{schema:(...e)=>new ai(...e),examples:(...e)=>new lo(...e),encoding:(...e)=>new po(...e)},EncodingElement:{headers:(...e)=>new mo(...e)},ResponsesElement:{"[key: *]":function(...e){return new ke(...e)}},ResponseElement:{headers:(...e)=>new yo(...e),content:(...e)=>new xo(...e),links:(...e)=>new bo(...e)},CallbackElement:{"[key: *]":function(...e){return new Ee(...e)}},LinkElement:{parameters:(...e)=>new ko(...e),server:(...e)=>new pi(...e)},HeaderElement:{schema:(...e)=>new ai(...e),examples:(...e)=>new Po(...e),content:(...e)=>new Fo(...e)},ComponentsElement:{schemas:(...e)=>new ji(...e),responses:(...e)=>new Ai(...e),parameters:(...e)=>new Ci(...e),examples:(...e)=>new Ii(...e),requestBodies:(...e)=>new Mi(...e),headers:(...e)=>new Di(...e),securitySchemes:(...e)=>new qi(...e),links:(...e)=>new Bi(...e),callbacks:(...e)=>new Li(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new re(...e)}},TagElement:{externalDocs:(...e)=>new K(...e)},SchemaElement:{definitions(...e){const t=new V(...e);return t.classes.push("json-schema-definitions"),t},allOf(...e){const t=new re(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new re(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new re(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new ai(...e),items:(...e)=>new ai(...e),properties(...e){const t=new V(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new V(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new ai(...e),enum(...e){const t=new re(...e);return t.classes.push("json-schema-enum"),t},required(...e){const t=new re(...e);return t.classes.push("json-schema-required"),t},discriminator:(...e)=>new z(...e),xml:(...e)=>new mi(...e),externalDocs:(...e)=>new K(...e)},DiscriminatorElement:{mapping:(...e)=>new Eo(...e)},SecuritySchemeElement:{flows:(...e)=>new ye(...e)},OAuthFlowsElement:{implicit:(...e)=>new fe(...e),password:(...e)=>new fe(...e),clientCredentials:(...e)=>new fe(...e),authorizationCode:(...e)=>new fe(...e)},OAuthFlowElement:{scopes:(...e)=>new So(...e)},[Oi.primaryClass]:{"[key: *]":function(...e){return new hi(...e)}},[ji.primaryClass]:{"[key: *]":function(...e){return new ai(...e)}},[Ai.primaryClass]:{"[key: *]":function(...e){return new ke(...e)}},[Ci.primaryClass]:{"[key: *]":function(...e){return new we(...e)}},[Ii.primaryClass]:{"[key: *]":function(...e){return new X(...e)}},[Mi.primaryClass]:{"[key: *]":function(...e){return new je(...e)}},[Di.primaryClass]:{"[key: *]":function(...e){return new Z(...e)}},[qi.primaryClass]:{"[key: *]":function(...e){return new ui(...e)}},[Bi.primaryClass]:{"[key: *]":function(...e){return new de(...e)}},[Li.primaryClass]:{"[key: *]":function(...e){return new U(...e)}},[to.primaryClass]:{"[key: *]":function(...e){return new U(...e)}},[Ki.primaryClass]:{"[key: *]":function(...e){return new X(...e)}},[Yi.primaryClass]:{"[key: *]":function(...e){return new me(...e)}},[co.primaryClass]:{"[key: *]":function(...e){return new me(...e)}},[lo.primaryClass]:{"[key: *]":function(...e){return new X(...e)}},[po.primaryClass]:{"[key: *]":function(...e){return new J(...e)}},[mo.primaryClass]:{"[key: *]":function(...e){return new Z(...e)}},[yo.primaryClass]:{"[key: *]":function(...e){return new Z(...e)}},[xo.primaryClass]:{"[key: *]":function(...e){return new me(...e)}},[bo.primaryClass]:{"[key: *]":function(...e){return new de(...e)}},"json-schema-$defs":{"[key: *]":function(...e){return new ai(...e)}},"json-schema-dependentSchemas":{"[key: *]":function(...e){return new ai(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new ai(...e)}},[gi.primaryClass]:{"<*>":function(...e){return new pi(...e)}},[vi.primaryClass]:{"<*>":function(...e){return new li(...e)}},[wi.primaryClass]:{"<*>":function(...e){return new di(...e)}},[Ui.primaryClass]:{"<*>":function(...e){return new pi(...e)}},[Gi.primaryClass]:{"<*>":function(...e){return new we(...e)}},[Ji.primaryClass]:{"<*>":function(...e){return new we(...e)}},[no.primaryClass]:{"<*>":function(...e){return new li(...e)}},[io.primaryClass]:{"<*>":function(...e){return new pi(...e)}},"json-schema-allOf":{"<*>":function(...e){return new ai(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new ai(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new ai(...e)}},"json-schema-prefixItems":{"<*>":function(...e){return new ai(...e)}}},To=(e,t)=>{const s=jn(e),n=Io[s]||Io[_s(e.classes.first)];return void 0===n?void 0:Object.hasOwn(n,"[key: *]")?n["[key: *]"]:n[t]},Mo=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>oe(e)&&gs(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse(),n=s.at(-1);let r,i;if(ue(n)?(i=t,r=To(n,"<*>")):he(n)&&(i=s.at(-2),r=To(i,_s(n.key))),"function"!=typeof r)return;const o=r.call({context:i},void 0,Cs(t.meta),Cs(t.attributes));Es.transfer(t,o),e.replaceWith(o)}}});const $o=De(function(e,t,s){var n,r={};for(n in s=s||{},t=t||{})b(n,t)&&(r[n]=b(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)b(n,s)&&!b(n,r)&&(r[n]=s[n]);return r});const Do=De(function e(t,s,n){return $o(function(s,n,r){return dt(n)&&dt(r)?e(t,n,r):t(s,n,r)},s,n)});const Ro=g(function(e,t){return Do(function(e,t,s){return s},e,t)});const qo=De(function(e,t,s){return Ks(e,qe(t,s))});const No=st(0,-1);const Bo=g(function(e,t){return e.apply(this,t)});const _o=Bt(Kt);const Lo=qt(Kr,tn);const Vo=Tt(3,function(e,t,s){var n=_e(e,s),r=_e(No(e),s);if(!_o(n)&&!Lo(e)){var i=Ke(n,r);return Bo(i,t)}});const Uo=class{namespace;constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};if(e.isMetaEmpty||(t.meta=this.serialiseObject(e.meta)),e.isAttributesEmpty||(t.attributes=this.serialiseObject(e.attributes)),!(e instanceof Es)){const s=Es.from(e);s&&(t.meta||(t.meta={}),t.meta.__mappings__=this.serialise(s))}const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));let s;t.element!==e.element&&(t.element=e.element);let n=e.meta;if(e.meta?.__mappings__){const{__mappings__:t,...r}=e.meta;s=t,n=Object.keys(r).length>0?r:void 0}if(n&&this.deserialiseObject(n,t.meta),s){this.deserialise(s).applyTo(t)}e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t=e,s={key:this.serialise(t.key)};return t.value&&(s.value=this.serialise(t.value)),s}if(e&&Array.isArray(e)){if(0===e.length)return;return e.map(e=>this.serialise(e))}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(Array.isArray(e))return e.map(e=>this.deserialise(e))}return e}serialiseObject(e){const t={};if(e.forEach((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))}),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach(s=>{t.set(s,this.deserialise(e[s]))})}},Ho=e=>null===e,Go=e=>"string"==typeof e,zo=e=>"number"==typeof e,Jo=e=>"boolean"==typeof e,Xo=e=>null!==e&&"object"==typeof e;class Ko{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=N,this.KeyValuePair=$,e&&e.noDefault||this.useDefault()}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",ne).register("string",te).register("number",se).register("boolean",W).register("array",re).register("object",V).register("member",L).register("ref",$s).register("link",Ms).register("sourceMap",Es),this.detect(Ho,ne,!1).detect(Go,te,!1).detect(zo,se,!1).detect(Jo,W,!1).detect(Array.isArray,re,!1).detect(Xo,V,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(const[s,n]of this.elementDetection)if(s(e)){t=new n(e);break}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(e=>{const t=e[0].toUpperCase()+e.substring(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new Uo(this)}}Uo.prototype.Namespace=Ko;const Wo=Ko,Yo=new Wo,Zo={isElement:ie,isStringElement:oe,isNumberElement:ce,isNullElement:ae,isBooleanElement:le,isArrayElement:ue,isObjectElement:pe,isMemberElement:he,isPrimitiveElement:e=>pe(e)&&"object"===e.element||ue(e)&&"array"===e.element||le(e)&&"boolean"===e.element||ce(e)&&"number"===e.element||oe(e)&&"string"===e.element||ae(e)&&"null"===e.element||he(e)&&"member"===e.element,isLinkElement:Ns,isRefElement:Bs,isAnnotationElement:e=>e instanceof Ds,isCommentElement:e=>e instanceof Rs,isParseResultElement:e=>e instanceof qs,isSourceMapElement:e=>e instanceof Es,hasElementSourceMap:ys,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!ue(s)&&t.every(e=>s.includes(e))},includesClasses:gs},Qo={toolboxCreator:()=>({predicates:Zo,namespace:Yo}),visitorOptions:{exposeEdits:!0}},ec=(e,t,s={})=>{if(0===t.length)return e;const n=Ro(Qo,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=Mn(c.map(qo({},"visitor")),i);c.forEach(Vo(["pre"],[]));const l=qn(e,a);return c.forEach(Vo(["post"],[])),l};function tc(e){return void 0===e?new ne:sc(e)}function sc(e){if(e instanceof N)return e;if("string"==typeof e)return new te(e);if("number"==typeof e)return new se(e);if("boolean"==typeof e)return new W(e);if(null===e)return new ne;if(Array.isArray(e))return new re(e.map(tc));if("object"==typeof e)return new V(e);throw new Error("Cannot refract value of type "+typeof e)}ec[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=Ro(Qo,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=$n(c.map(qo({},"visitor")),i);await Promise.allSettled(c.map(Vo(["pre"],[])));const l=await Nn(e,a);return await Promise.allSettled(c.map(Vo(["post"],[]))),l},N.prototype.ObjectElement=V,N.prototype.ArrayElement=re,N.prototype.RefElement=$s,N.prototype.MemberElement=L,N.prototype.refract=sc;const nc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new V:t.meta,n=e.isMetaEmpty?new V:e.meta;t.meta=Gs(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new V:t.attributes,n=e.isAttributesEmpty?new V:e.attributes;t.attributes=Gs(s,n)}Es.transfer(e,t)}};const rc=class extends nc{enter(e){this.element=Cs(e.node),e.stop()}};const ic=class extends nc{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:n,...r}){super({...r}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return an(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=_e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ot(Kt,["visitors",...e],this.specObj)?_e(["visitors",...e],this.specObj):_e(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof rc&&n?.constructor===rc?Cs(t):(qn(t,n,{nodeTypeGetter:kn}),n.element)}};var oc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=mt,e.prototype["@@transducer/result"]=ft,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?zr(s):s},e}();function cc(e){return function(t){return new oc(e,t)}}const ac=g(ht(["take"],cc,function(e,t){return st(0,e<0?1/0:e,t)}));const lc=g(function(e,t){return M(ac(e.length,t),e)}),uc=e=>pe(e)&&e.hasKey("$ref"),pc=pe,hc=pe,dc=e=>oe(e.key)&&lc("x-",_s(e.key));const mc=class extends ic{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=dc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=_s(t);if(oe(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new L(Cs(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else this.ignoredFields.includes(i)||this.element.content.push(Cs(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const fc=class extends ic{specPath;ignoredFields;fieldPatternPredicate=cr;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=dc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=_s(t);if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new L(Cs(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(n)||this.element.content.push(Cs(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const yc=class extends fc{constructor(e){super(e),this.fieldPatternPredicate=cn}};const gc=class extends ic{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Lr(e,Xs(t),Ws)),n=ti(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};function xc(e,t,s){var n,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?e in s._items[r]||(t&&(s._items[r][e]=!0),!1):(t&&(s._items[r]={},s._items[r][e]=!0),!1);case"boolean":if(r in s._items){var i=e?1:0;return!!s._items[r][i]||(t&&(s._items[r][i]=!0),!1)}return t&&(s._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?!!ct(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1);case"undefined":return!!s._items[r]||(t&&(s._items[r]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(r=Object.prototype.toString.call(e))in s._items?!!ct(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const vc=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!xc(e,!0,this)},e.prototype.has=function(e){return xc(e,!1,this)},e}();const bc=g(function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new vc,c=0;c<i;c+=1)o.add(t[c]);for(;n<r;)o.add(e[n])&&(s[s.length]=e[n]),n+=1;return s}),wc=ir(mc,fc);const Ec=class extends wc{specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const t=e.node,{specPath:s,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const s=this.retrieveFixedFields(this.specPath(t));this.ignoredFields=[...n,...bc(t.keys(),s)],mc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,fc.prototype.ObjectElement.call(this,e);const r=t.keys();this.element.content.sort((e,t)=>r.indexOf(_s(e.key))-r.indexOf(_s(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}},Oc=ir(ic,rc),Sc=ir(mc,rc),jc=ir(fc,rc),kc=ir(yc,rc),Ac=ir(gc,rc),Pc=ir(Ec,rc);const Cc=class extends Sc{constructor(e){super(e),this.element=new xe,this.specPath=Xs(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Sc.prototype.ObjectElement.call(this,e)}};const Fc=class extends Oc{StringElement(e){const t=e.node,s=new ge(_s(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const Ic=class extends ic{MemberElement(e){this.element=Cs(e.node),this.element.classes.push("specification-extension"),e.stop()}};const Tc=class extends Sc{constructor(e){super(e),this.element=new Q,this.specPath=Xs(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const Mc=class extends rc{StringElement(e){super.enter(e),this.element.classes.push("api-version"),this.element.classes.push("version")}};const $c=class extends Sc{constructor(e){super(e),this.element=new G,this.specPath=Xs(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const Dc=class extends Sc{constructor(e){super(e),this.element=new ee,this.specPath=Xs(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}};const Rc=class extends Sc{constructor(e){super(e),this.element=new de,this.specPath=Xs(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Sc.prototype.ObjectElement.call(this,e),(oe(this.element.operationId)||oe(this.element.operationRef))&&this.element.classes.push("reference-element")}};const qc=class extends rc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Nc=class extends rc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Bc=class extends kc{constructor(e){super(e),this.element=new ko,this.specPath=Xs(["value"])}};const _c=class extends Sc{constructor(e){super(e),this.element=new pi,this.specPath=Xs(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};const Lc=class extends rc{StringElement(e){super.enter(e),this.element.classes.push("server-url")}};const Vc=class extends Oc{constructor(e){super(e),this.element=new gi}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=pc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Uc=class extends Sc{constructor(e){super(e),this.element=new hi,this.specPath=Xs(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};const Hc=class extends kc{constructor(e){super(e),this.element=new Oi,this.specPath=Xs(["document","objects","ServerVariable"])}};const Gc=class extends Sc{constructor(e){super(e),this.element=new me,this.specPath=Xs(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}},zc=e=>e instanceof U,Jc=e=>e instanceof H,Xc=e=>e instanceof G,Kc=e=>e instanceof X,Wc=e=>e instanceof K,Yc=e=>e instanceof Z,Zc=e=>e instanceof Q,Qc=e=>e instanceof ee,ea=e=>e instanceof de,ta=e=>e instanceof ge,sa=e=>e instanceof xe,na=e=>e instanceof ve,ra=e=>e instanceof we,ia=e=>e instanceof Ee,oa=e=>e instanceof Oe,ca=e=>e instanceof Se,aa=e=>e instanceof je,la=e=>e instanceof ke,ua=e=>e instanceof Ae,pa=e=>e instanceof ai,ha=e=>le(e)&&gs(e,["boolean-json-schema"]),da=e=>e instanceof li,ma=e=>e instanceof ui,fa=e=>e instanceof pi,ya=e=>e instanceof hi,ga=e=>e instanceof me,xa=e=>e instanceof gi;const va=class extends Ac{constructor(e){super(e),this.alternator=[{predicate:uc,specPath:["document","objects","Reference"]},{predicate:_r,specPath:["document","objects","Schema"]}]}ObjectElement(e){gc.prototype.enter.call(this,e),ca(this.element)&&this.element.meta.set("referenced-element","schema")}};const ba=class extends kc{constructor(e){super(e),this.element=new V,this.element.classes.push("examples"),this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){kc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","example")})}};const wa=class extends ba{constructor(e){super(e),this.element=new lo}};const Ea=class extends kc{constructor(e){super(e),this.element=new po,this.specPath=Xs(["document","objects","Encoding"])}};const Oa=class extends kc{constructor(e){super(e),this.element=new li,this.specPath=Xs(["value"])}};const Sa=class extends Oc{constructor(e){super(e),this.element=new vi}ArrayElement(e){const t=e.node;t.forEach(e=>{if(pe(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Cs(e))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ja=class extends Sc{constructor(e){super(e),this.element=new H,this.specPath=Xs(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}};const ka=class extends Sc{constructor(e){super(e),this.element=new di,this.specPath=Xs(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const Aa=class extends Sc{constructor(e){super(e),this.element=new Se,this.specPath=Xs(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){Sc.prototype.ObjectElement.call(this,e),oe(this.element.$ref)&&this.element.classes.push("reference-element")}};const Pa=class extends rc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Ca=class extends Sc{constructor(e){super(e),this.element=new we,this.specPath=Xs(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){mc.prototype.ObjectElement.call(this,e),pe(this.element.contentField)&&this.element.contentField.filter(ga).forEach((e,t)=>{e.meta.set("media-type",_s(t))})}};const Fa=class extends Ac{constructor(e){super(e),this.alternator=[{predicate:uc,specPath:["document","objects","Reference"]},{predicate:_r,specPath:["document","objects","Schema"]}]}ObjectElement(e){gc.prototype.enter.call(this,e),ca(this.element)&&this.element.meta.set("referenced-element","schema")}};const Ia=class extends Sc{constructor(e){super(e),this.element=new Z,this.specPath=Xs(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}};const Ta=class extends Ac{constructor(e){super(e),this.alternator=[{predicate:uc,specPath:["document","objects","Reference"]},{predicate:_r,specPath:["document","objects","Schema"]}]}ObjectElement(e){gc.prototype.enter.call(this,e),ca(this.element)&&this.element.meta.set("referenced-element","schema")}};const Ma=class extends ba{constructor(e){super(e),this.element=new Po}};const $a=class extends kc{constructor(e){super(e),this.element=new V,this.element.classes.push("content"),this.specPath=Xs(["document","objects","MediaType"])}};const Da=class extends $a{constructor(e){super(e),this.element=new Fo}};const Ra=class extends Sc{constructor(e){super(e),this.element=new ai,this.specPath=Xs(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}},qa=ii.visitors.document.objects.JSONSchema.fixedFields.allOf;const Na=class extends qa{ArrayElement(e){qa.prototype.ArrayElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","schema")})}},Ba=ii.visitors.document.objects.JSONSchema.fixedFields.anyOf;const _a=class extends Ba{ArrayElement(e){Ba.prototype.ArrayElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","schema")})}},La=ii.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Va=class extends La{ArrayElement(e){La.prototype.ArrayElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Ua=class extends kr{ObjectElement(e){kr.prototype.ObjectElement.call(this,e),ca(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){this.enter(e)}},Ha=ii.visitors.document.objects.JSONSchema.fixedFields.properties;const Ga=class extends Ha{ObjectElement(e){Ha.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","schema")})}},za=ii.visitors.document.objects.JSONSchema.fixedFields.type;const Ja=class extends za{ArrayElement(e){this.enter(e)}},Xa=ii.visitors.JSONSchemaOrJSONReferenceVisitor;const Ka=class extends Xa{ObjectElement(e){Xa.prototype.enter.call(this,e),ca(this.element)&&this.element.meta.set("referenced-element","schema")}};const Wa=class extends Sc{constructor(e){super(e),this.element=new z,this.specPath=Xs(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};const Ya=class extends kc{constructor(e){super(e),this.element=new Eo,this.specPath=Xs(["value"])}};const Za=class extends Sc{constructor(e){super(e),this.element=new mi,this.specPath=Xs(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}};const Qa=class extends ba{constructor(e){super(e),this.element=new Ki}};const el=class extends $a{constructor(e){super(e),this.element=new Yi}};const tl=class extends kc{constructor(e){super(e),this.element=new ji,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","schema")})}};const sl=class extends kc{constructor(e){super(e),this.element=new Ai,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(la).forEach((e,t)=>{e.meta.set("http-status-code",_s(t))})}};const nl=class extends kc{constructor(e){super(e),this.element=new Ci,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const rl=class extends kc{constructor(e){super(e),this.element=new Ii,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","example")})}};const il=class extends kc{constructor(e){super(e),this.element=new Mi,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","requestBody")})}};const ol=class extends kc{constructor(e){super(e),this.element=new Di,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.filter(Yc).forEach((e,t)=>{e.meta.set("header-name",_s(t))})}};const cl=class extends kc{constructor(e){super(e),this.element=new qi,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","securityScheme")})}};const al=class extends kc{constructor(e){super(e),this.element=new Bi,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","link")})}};const ll=class extends kc{constructor(e){super(e),this.element=new Li,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","callback")})}};const ul=class extends Sc{constructor(e){super(e),this.element=new X,this.specPath=Xs(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Sc.prototype.ObjectElement.call(this,e),oe(this.element.externalValue)&&this.element.classes.push("reference-element")}};const pl=class extends rc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const hl=class extends Sc{constructor(e){super(e),this.element=new K,this.specPath=Xs(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const dl=class extends Sc{constructor(e){super(e),this.element=new J,this.specPath=Xs(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){mc.prototype.ObjectElement.call(this,e),pe(this.element.headers)&&this.element.headers.filter(Yc).forEach((e,t)=>{e.meta.set("header-name",_s(t))})}};const ml=class extends kc{constructor(e){super(e),this.element=new mo,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Yc(e))return;const s=_s(t);e.meta.set("headerName",s)})}};const fl=class extends jc{constructor(e){super(e),this.element=new Oe,this.specPath=Xs(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=_r}ObjectElement(e){jc.prototype.ObjectElement.call(this,e),this.element.filter(ia).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.meta.set("path",Cs(t))})}};const yl=class extends Sc{constructor(e){super(e),this.element=new je,this.specPath=Xs(["document","objects","RequestBody"])}ObjectElement(e){mc.prototype.ObjectElement.call(this,e),pe(this.element.contentField)&&this.element.contentField.filter(ga).forEach((e,t)=>{e.meta.set("media-type",_s(t))})}};const gl=class extends $a{constructor(e){super(e),this.element=new co}};const xl=class extends jc{constructor(e){super(e),this.element=new U,this.specPath=Xs(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ia).forEach((e,t)=>{e.meta.set("runtime-expression",_s(t))})}};const vl=class extends Sc{constructor(e){super(e),this.element=new ke,this.specPath=Xs(["document","objects","Response"])}ObjectElement(e){Sc.prototype.ObjectElement.call(this,e),pe(this.element.contentField)&&this.element.contentField.filter(ga).forEach((e,t)=>{e.meta.set("media-type",_s(t))}),pe(this.element.headers)&&this.element.headers.filter(Yc).forEach((e,t)=>{e.meta.set("header-name",_s(t))})}};const bl=class extends kc{constructor(e){super(e),this.element=new yo,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){kc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Yc(e))return;const s=_s(t);e.meta.set("header-name",s)})}};const wl=class extends $a{constructor(e){super(e),this.element=new xo}};const El=class extends kc{constructor(e){super(e),this.element=new bo,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){kc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","link")})}};function Ol(e){return"[object Number]"===Object.prototype.toString.call(e)}const Sl=g(function(e,t){if(!Ol(e)||!Ol(t))throw new TypeError("Both arguments to range must be numbers");for(var s=e<t?Math.ceil(t-e):0,n=Array(s),r=0;r<s;)n[r]=r+e,r+=1;return n});const jl=class extends Pc{constructor(e){super(e),this.element=new Ae,this.specPathFixedFields=Xs(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>uc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Sl(100,600).join("|")})$`).test(String(e))}ObjectElement(e){Pc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(la).forEach((e,t)=>{const s=Cs(t);this.fieldPatternPredicate(_s(s))&&e.meta.set("http-status-code",s)})}};const kl=class extends Ac{constructor(e){super(e),this.alternator=[{predicate:uc,specPath:["document","objects","Reference"]},{predicate:_r,specPath:["document","objects","Response"]}]}ObjectElement(e){gc.prototype.enter.call(this,e),ca(this.element)?this.element.meta.set("referenced-element","response"):la(this.element)&&this.element.meta.set("http-status-code","default")}};const Al=class extends Sc{constructor(e){super(e),this.element=new ve,this.specPath=Xs(["document","objects","Operation"])}};const Pl=class extends rc{constructor(e){super(e),this.element=new Qi}ArrayElement(e){const t=e.node;this.element=this.element.concat(Cs(t)),e.stop()}};const Cl=class extends Oc{constructor(e){super(e),this.element=new re,this.element.classes.push("parameters")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=uc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);ca(s)&&s.meta.set("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Fl=class extends Cl{constructor(e){super(e),this.element=new Ji}};const Il=class extends gc{constructor(e){super(e),this.alternator=[{predicate:uc,specPath:["document","objects","Reference"]},{predicate:_r,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){gc.prototype.enter.call(this,e),ca(this.element)&&this.element.meta.set("referenced-element","requestBody")}};const Tl=class extends kc{specPath;constructor(e){super(e),this.element=new to,this.specPath=e=>uc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){yc.prototype.ObjectElement.call(this,e),this.element.filter(ca).forEach(e=>{e.meta.set("referenced-element","callback")})}};const Ml=class extends Oc{constructor(e){super(e),this.element=new no}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=pe(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const $l=class extends Vc{constructor(e){super(e),this.element=new io}};const Dl=class extends Sc{constructor(e){super(e),this.element=new Ee,this.specPath=Xs(["document","objects","PathItem"])}ObjectElement(e){Sc.prototype.ObjectElement.call(this,e),this.element.filter(na).forEach((e,t)=>{const s=Cs(t);s.content=_s(s).toUpperCase(),e.meta.set("http-method",s)}),oe(this.element.$ref)&&this.element.classes.push("reference-element")}};const Rl=class extends rc{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const ql=class extends Vc{constructor(e){super(e),this.element=new Ui}};const Nl=class extends Cl{constructor(e){super(e),this.element=new Gi}};const Bl=class extends Sc{constructor(e){super(e),this.element=new ui,this.specPath=Xs(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const _l=class extends Sc{constructor(e){super(e),this.element=new ye,this.specPath=Xs(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}};const Ll=class extends Sc{constructor(e){super(e),this.element=new fe,this.specPath=Xs(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};const Vl=class extends kc{constructor(e){super(e),this.element=new So,this.specPath=Xs(["value"])}};const Ul=class extends Oc{constructor(e){super(e),this.element=new wi}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=hc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}},{fixedFields:Hl}=ii.visitors.document.objects.JSONSchema,Gl={visitors:{value:rc,document:{objects:{OpenApi:{$visitor:Cc,element:"openApi3_0",fixedFields:{openapi:Fc,info:{$ref:"#/visitors/document/objects/Info"},servers:Vc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Sa,tags:Ul,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Tc,element:"info",fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Mc}},Contact:{$visitor:$c,element:"contact",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Dc,element:"license",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:_c,element:"server",fixedFields:{url:Lc,description:{$ref:"#/visitors/value"},variables:Hc}},ServerVariable:{$visitor:Uc,element:"serverVariable",fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:ja,element:"components",fixedFields:{schemas:tl,responses:sl,parameters:nl,examples:rl,requestBodies:il,headers:ol,securitySchemes:cl,links:{$visitor:al,alias:"linksField"},callbacks:ll}},Paths:{$visitor:fl,element:"paths"},PathItem:{$visitor:Dl,element:"pathItem",fixedFields:{$ref:Rl,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation",alias:"getField"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation",alias:"deleteField"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:ql,parameters:Nl}},Operation:{$visitor:Al,element:"operation",fixedFields:{tags:Pl,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Fl,requestBody:Il,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Tl,deprecated:{$ref:"#/visitors/value"},security:Ml,servers:$l}},ExternalDocumentation:{$visitor:hl,element:"externalDocumentation",fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Ca,element:"parameter",fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Fa,example:{$ref:"#/visitors/value"},examples:Qa,content:{$visitor:el,alias:"contentField"}}},RequestBody:{$visitor:yl,element:"requestBody",fixedFields:{description:{$ref:"#/visitors/value"},content:{$visitor:gl,alias:"contentField"},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Gc,element:"mediaType",fixedFields:{schema:va,example:{$ref:"#/visitors/value"},examples:wa,encoding:Ea}},Encoding:{$visitor:dl,element:"encoding",fixedFields:{contentType:{$ref:"#/visitors/value"},headers:ml,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:jl,element:"responses",fixedFields:{default:kl}},Response:{$visitor:vl,element:"response",fixedFields:{description:{$ref:"#/visitors/value"},headers:bl,content:{$visitor:wl,alias:"contentField"},links:{$visitor:El,alias:"linksField"}}},Callback:{$visitor:xl,element:"callback"},Example:{$visitor:ul,element:"example",fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:pl}},Link:{$visitor:Rc,element:"link",fixedFields:{operationRef:qc,operationId:Nc,parameters:Bc,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Ia,element:"header",fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Ta,example:{$ref:"#/visitors/value"},examples:Ma,content:{$visitor:Da,alias:"contentField"}}},Tag:{$visitor:ka,element:"tag",fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Aa,element:"reference",fixedFields:{$ref:Pa}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Ra,element:"schema",fixedFields:{title:Hl.title,multipleOf:Hl.multipleOf,maximum:Hl.maximum,exclusiveMaximum:Hl.exclusiveMaximum,minimum:Hl.minimum,exclusiveMinimum:Hl.exclusiveMinimum,maxLength:Hl.maxLength,minLength:Hl.minLength,pattern:Hl.pattern,maxItems:Hl.maxItems,minItems:Hl.minItems,uniqueItems:Hl.uniqueItems,maxProperties:Hl.maxProperties,minProperties:Hl.minProperties,required:Hl.required,enum:Hl.enum,type:Ja,allOf:Na,anyOf:_a,oneOf:Va,not:Ka,items:{$visitor:Ua,alias:"itemsField"},properties:Ga,additionalProperties:Ka,description:Hl.description,format:Hl.format,default:Hl.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Wa,element:"discriminator",fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Ya}},XML:{$visitor:Za,element:"xml",fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Bl,element:"securityScheme",fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:_l,element:"oAuthFlows",fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Ll,element:"oAuthFlow",fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Vl}},SecurityRequirement:{$visitor:Oa,element:"securityRequirement"}},extension:{$visitor:Ic}}}},zl=()=>{const e=new Wo,t={...s,...n,isStringElement:oe};return e.use(fi),{predicates:t,namespace:e}},Jl=(e,{element:t="openApi3_0",plugins:s=[],specificationObj:n=Gl}={})=>{const r=sc(e),i=ps(n),o=i.elementMap[t];if(!o)throw new Error(`Unknown element type: "${t}"`);const c=new(_e(o,i))({specObj:i});return qn(r,c,{nodeTypeGetter:kn}),ec(c.element,s,{toolboxCreator:zl})},Xl=(e,t={})=>Jl(e,{...t,element:"openApi3_0"}),Kl=(e,t={})=>Jl(e,{...t,element:"info"}),Wl=(e,t={})=>Jl(e,{...t,element:"contact"}),Yl=(e,t={})=>Jl(e,{...t,element:"license"}),Zl=(e,t={})=>Jl(e,{...t,element:"server"}),Ql=(e,t={})=>Jl(e,{...t,element:"serverVariable"}),eu=(e,t={})=>Jl(e,{...t,element:"components"}),tu=(e,t={})=>Jl(e,{...t,element:"paths"}),su=(e,t={})=>Jl(e,{...t,element:"pathItem"}),nu=(e,t={})=>Jl(e,{...t,element:"operation"}),ru=(e,t={})=>Jl(e,{...t,element:"externalDocumentation"}),iu=(e,t={})=>Jl(e,{...t,element:"parameter"}),ou=(e,t={})=>Jl(e,{...t,element:"requestBody"}),cu=(e,t={})=>Jl(e,{...t,element:"mediaType"}),au=(e,t={})=>Jl(e,{...t,element:"encoding"}),lu=(e,t={})=>Jl(e,{...t,element:"responses"}),uu=(e,t={})=>Jl(e,{...t,element:"response"}),pu=(e,t={})=>Jl(e,{...t,element:"callback"}),hu=(e,t={})=>Jl(e,{...t,element:"example"}),du=(e,t={})=>Jl(e,{...t,element:"link"}),mu=(e,t={})=>Jl(e,{...t,element:"header"}),fu=(e,t={})=>Jl(e,{...t,element:"tag"}),yu=(e,t={})=>Jl(e,{...t,element:"reference"}),gu=(e,t={})=>Jl(e,{...t,element:"schema"}),xu=(e,t={})=>Jl(e,{...t,element:"discriminator"}),vu=(e,t={})=>Jl(e,{...t,element:"xml"}),bu=(e,t={})=>Jl(e,{...t,element:"securityScheme"}),wu=(e,t={})=>Jl(e,{...t,element:"oAuthFlows"}),Eu=(e,t={})=>Jl(e,{...t,element:"oAuthFlow"}),Ou=(e,t={})=>Jl(e,{...t,element:"securityRequirement"}),Su=Jl;return t})());