@speclynx/apidom-ns-openapi-2 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.
- package/CHANGELOG.md +23 -0
- package/NOTICE +16 -7
- package/README.md +18 -13
- package/dist/apidom-ns-openapi-2.browser.js +15352 -12648
- package/dist/apidom-ns-openapi-2.browser.min.js +1 -1
- package/package.json +10 -9
- package/src/elements/Contact.cjs +2 -2
- package/src/elements/Contact.mjs +1 -1
- package/src/elements/Definitions.cjs +2 -2
- package/src/elements/Definitions.mjs +1 -1
- package/src/elements/Example.cjs +2 -2
- package/src/elements/Example.mjs +1 -1
- package/src/elements/ExternalDocumentation.cjs +2 -2
- package/src/elements/ExternalDocumentation.mjs +1 -1
- package/src/elements/Header.cjs +10 -10
- package/src/elements/Header.mjs +10 -10
- package/src/elements/Headers.cjs +2 -2
- package/src/elements/Headers.mjs +1 -1
- package/src/elements/Info.cjs +2 -2
- package/src/elements/Info.mjs +1 -1
- package/src/elements/Items.cjs +10 -10
- package/src/elements/Items.mjs +10 -10
- package/src/elements/License.cjs +2 -2
- package/src/elements/License.mjs +1 -1
- package/src/elements/Operation.cjs +3 -3
- package/src/elements/Operation.mjs +1 -1
- package/src/elements/Parameter.cjs +11 -11
- package/src/elements/Parameter.mjs +11 -11
- package/src/elements/ParametersDefinitions.cjs +2 -2
- package/src/elements/ParametersDefinitions.mjs +1 -1
- package/src/elements/PathItem.cjs +23 -23
- package/src/elements/PathItem.mjs +22 -22
- package/src/elements/Paths.cjs +2 -2
- package/src/elements/Paths.mjs +1 -1
- package/src/elements/Reference.cjs +2 -2
- package/src/elements/Reference.mjs +1 -1
- package/src/elements/Response.cjs +2 -2
- package/src/elements/Response.mjs +1 -1
- package/src/elements/Responses.cjs +2 -2
- package/src/elements/Responses.mjs +1 -1
- package/src/elements/ResponsesDefinitions.cjs +2 -2
- package/src/elements/ResponsesDefinitions.mjs +1 -1
- package/src/elements/Schema.cjs +43 -8
- package/src/elements/Schema.mjs +43 -9
- package/src/elements/Scopes.cjs +2 -2
- package/src/elements/Scopes.mjs +1 -1
- package/src/elements/SecurityDefinitions.cjs +2 -2
- package/src/elements/SecurityDefinitions.mjs +1 -1
- package/src/elements/SecurityRequirement.cjs +2 -2
- package/src/elements/SecurityRequirement.mjs +1 -1
- package/src/elements/SecurityScheme.cjs +2 -2
- package/src/elements/SecurityScheme.mjs +1 -1
- package/src/elements/Swagger.cjs +2 -2
- package/src/elements/Swagger.mjs +1 -1
- package/src/elements/SwaggerVersion.cjs +2 -2
- package/src/elements/SwaggerVersion.mjs +1 -1
- package/src/elements/Tag.cjs +2 -2
- package/src/elements/Tag.mjs +1 -1
- package/src/elements/Xml.cjs +2 -2
- package/src/elements/Xml.mjs +1 -1
- package/src/elements/nces/OperationConsumes.cjs +2 -2
- package/src/elements/nces/OperationConsumes.mjs +1 -1
- package/src/elements/nces/OperationParameters.cjs +2 -2
- package/src/elements/nces/OperationParameters.mjs +1 -1
- package/src/elements/nces/OperationProduces.cjs +2 -2
- package/src/elements/nces/OperationProduces.mjs +1 -1
- package/src/elements/nces/OperationSchemes.cjs +2 -2
- package/src/elements/nces/OperationSchemes.mjs +1 -1
- package/src/elements/nces/OperationSecurity.cjs +2 -2
- package/src/elements/nces/OperationSecurity.mjs +1 -1
- package/src/elements/nces/OperationTags.cjs +2 -2
- package/src/elements/nces/OperationTags.mjs +1 -1
- package/src/elements/nces/PathItemParameters.cjs +2 -2
- package/src/elements/nces/PathItemParameters.mjs +1 -1
- package/src/elements/nces/SwaggerConsumes.cjs +2 -2
- package/src/elements/nces/SwaggerConsumes.mjs +1 -1
- package/src/elements/nces/SwaggerProduces.cjs +2 -2
- package/src/elements/nces/SwaggerProduces.mjs +1 -1
- package/src/elements/nces/SwaggerSchemes.cjs +2 -2
- package/src/elements/nces/SwaggerSchemes.mjs +1 -1
- package/src/elements/nces/SwaggerSecurity.cjs +2 -2
- package/src/elements/nces/SwaggerSecurity.mjs +1 -1
- package/src/elements/nces/SwaggerTags.cjs +2 -2
- package/src/elements/nces/SwaggerTags.mjs +1 -1
- package/src/index.cjs +65 -45
- package/src/index.mjs +6 -5
- package/src/namespace.mjs +2 -2
- package/src/predicates.cjs +54 -190
- package/src/predicates.mjs +27 -190
- package/src/refractor/index.cjs +279 -17
- package/src/refractor/index.mjs +251 -16
- package/src/refractor/inspect.cjs +157 -0
- package/src/refractor/inspect.mjs +126 -0
- package/src/refractor/plugins/replace-empty-element.cjs +20 -14
- package/src/refractor/plugins/replace-empty-element.mjs +14 -8
- package/src/refractor/predicates.cjs +3 -2
- package/src/refractor/predicates.mjs +2 -1
- package/src/refractor/specification.cjs +41 -12
- package/src/refractor/specification.mjs +41 -12
- package/src/refractor/toolbox.cjs +8 -3
- package/src/refractor/toolbox.mjs +6 -2
- package/src/refractor/visitors/FallbackVisitor.cjs +4 -4
- package/src/refractor/visitors/FallbackVisitor.mjs +4 -4
- package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +4 -4
- package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +4 -4
- package/src/refractor/visitors/SpecificationVisitor.cjs +4 -3
- package/src/refractor/visitors/SpecificationVisitor.mjs +3 -2
- package/src/refractor/visitors/Visitor.cjs +10 -8
- package/src/refractor/visitors/Visitor.mjs +11 -9
- package/src/refractor/visitors/generics/AlternatingVisitor.cjs +3 -3
- package/src/refractor/visitors/generics/AlternatingVisitor.mjs +3 -3
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +10 -7
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +9 -6
- package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +13 -6
- package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +13 -6
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +9 -6
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +8 -5
- package/src/refractor/visitors/open-api-2/BasePathVisitor.cjs +2 -3
- package/src/refractor/visitors/open-api-2/BasePathVisitor.mjs +2 -3
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.cjs +5 -4
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.mjs +4 -3
- package/src/refractor/visitors/open-api-2/HostVisitor.cjs +2 -3
- package/src/refractor/visitors/open-api-2/HostVisitor.mjs +2 -3
- package/src/refractor/visitors/open-api-2/ProducesVisitor.cjs +5 -4
- package/src/refractor/visitors/open-api-2/ProducesVisitor.mjs +4 -3
- package/src/refractor/visitors/open-api-2/SchemesVisitor.cjs +5 -4
- package/src/refractor/visitors/open-api-2/SchemesVisitor.mjs +4 -3
- package/src/refractor/visitors/open-api-2/SecurityVisitor.cjs +5 -11
- package/src/refractor/visitors/open-api-2/SecurityVisitor.mjs +5 -10
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.cjs +5 -10
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.mjs +6 -10
- package/src/refractor/visitors/open-api-2/TagsVisitor.cjs +5 -11
- package/src/refractor/visitors/open-api-2/TagsVisitor.mjs +5 -10
- package/src/refractor/visitors/open-api-2/bases.cjs +72 -0
- package/src/refractor/visitors/open-api-2/bases.mjs +67 -0
- package/src/refractor/visitors/open-api-2/contact/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/contact/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/definitions/index.cjs +5 -12
- package/src/refractor/visitors/open-api-2/definitions/index.mjs +5 -11
- package/src/refractor/visitors/open-api-2/example/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/example/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/external-documentation/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/external-documentation/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/header/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/header/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/headers/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/headers/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.cjs +2 -3
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.mjs +2 -3
- package/src/refractor/visitors/open-api-2/info/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/info/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/items/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/items/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/license/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/license/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.cjs +5 -4
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.mjs +4 -3
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.cjs +6 -12
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.mjs +6 -11
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.cjs +5 -4
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.mjs +4 -3
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.cjs +5 -4
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.mjs +4 -3
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.cjs +5 -11
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.mjs +5 -10
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.cjs +5 -4
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.mjs +4 -3
- package/src/refractor/visitors/open-api-2/operation/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/operation/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/parameter/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/parameter/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.cjs +2 -3
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.mjs +2 -3
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.cjs +6 -12
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.mjs +6 -11
- package/src/refractor/visitors/open-api-2/path-item/index.cjs +8 -14
- package/src/refractor/visitors/open-api-2/path-item/index.mjs +7 -12
- package/src/refractor/visitors/open-api-2/paths/index.cjs +6 -13
- package/src/refractor/visitors/open-api-2/paths/index.mjs +6 -12
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.cjs +2 -3
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.mjs +2 -3
- package/src/refractor/visitors/open-api-2/reference/index.cjs +6 -13
- package/src/refractor/visitors/open-api-2/reference/index.mjs +5 -11
- package/src/refractor/visitors/open-api-2/response/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/response/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.cjs +6 -12
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.mjs +6 -11
- package/src/refractor/visitors/open-api-2/responses/index.cjs +8 -14
- package/src/refractor/visitors/open-api-2/responses/index.mjs +8 -13
- package/src/refractor/visitors/open-api-2/responses-definitions/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/responses-definitions/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.cjs +3 -4
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.mjs +3 -4
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.cjs +9 -15
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.mjs +8 -13
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.cjs +3 -4
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.mjs +3 -4
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.cjs +3 -4
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.mjs +3 -4
- package/src/refractor/visitors/open-api-2/schema/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/schema/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/scopes/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/scopes/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/security-definitions/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/security-definitions/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/security-requirement/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/security-requirement/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/security-scheme/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/security-scheme/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/tag/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/tag/index.mjs +2 -7
- package/src/refractor/visitors/open-api-2/xml/index.cjs +2 -8
- package/src/refractor/visitors/open-api-2/xml/index.mjs +2 -7
- package/types/apidom-ns-openapi-2.d.ts +541 -565
- package/src/refractor/registration.cjs +0 -87
- package/src/refractor/registration.mjs +0 -56
- package/src/traversal/visitor.cjs +0 -56
- package/src/traversal/visitor.mjs +0 -53
|
@@ -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.apidomNsOpenApi2=t():e.apidomNsOpenApi2=t()}(self,()=>(()=>{var e={88:(e,t,n)=>{var s=n(4700);e.exports=function(e){return s(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},195:(e,t,n)=>{var s=n(4882),r=n(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return r(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},353:(e,t,n)=>{var s=n(1340),r=n(3934),i=n(8861),o=n(1182),a=n(8486),c=n(3142),l=n(5853),u=n(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,y,g){var v=c(e),b=c(t),E=v?h:a(e),w=b?h:a(t),x=(E=E==p?m:E)==m,j=(w=w==p?m:w)==m,S=E==w;if(S&&l(e)){if(!l(t))return!1;v=!0,x=!1}if(S&&!x)return g||(g=new s),v||u(e)?r(e,t,n,d,y,g):i(e,t,E,n,d,y,g);if(!(1&n)){var P=x&&f.call(e,"__wrapped__"),O=j&&f.call(t,"__wrapped__");if(P||O){var A=P?e.value():e,_=O?t.value():t;return g||(g=new s),y(A,_,n,d,g)}}return!!S&&(g||(g=new s),o(e,t,n,d,y,g))}},358:(e,t,n)=>{var s=n(6137),r=n(3283),i=n(3142),o=n(5853),a=n(9632),c=n(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&r(e),p=!n&&!u&&o(e),h=!n&&!u&&!p&&c(e),m=n||u||p||h,f=m?s(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)||a(y,d))||f.push(y);return f}},393:(e,t,n)=>{var s=n(8244),r=n(7979),i=n(1211);e.exports=function(e){return s(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 n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))}),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach(n=>{t.set(n,this.deserialise(e[n]))})}}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,n)=>{const s=n(8631);e.exports=class extends s{constructor(e,t,n){super(e||[],t,n),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,n)=>{var s=n(7379),r=n(5387),i=n(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[s(e)]}},986:(e,t,n)=>{var s=n(7379),r=n(547);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==s(e)}},1112:(e,t,n)=>{var s=n(4497),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}},1182:(e,t,n)=>{var s=n(393),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var c=1&n,l=s(e),u=l.length;if(u!=s(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:r.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,n,i,a):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var E=e.constructor,w=t.constructor;E==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(e),a.delete(t),d}},1211:(e,t,n)=>{var s=n(358),r=n(195),i=n(6529);e.exports=function(e){return i(e)?s(e):r(e)}},1340:(e,t,n)=>{var s=n(1386),r=n(4103),i=n(1779),o=n(4162),a=n(7462),c=n(6638);function l(e){var t=this.__data__=new s(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1386:(e,t,n)=>{var s=n(2393),r=n(2049),i=n(7144),o=n(7452),a=n(3964);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},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,n)=>{var s=n(8942).Uint8Array;e.exports=s},1779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1950:(e,t,n)=>{var s=n(8942)["__core-js_shared__"];e.exports=s},2049:(e,t,n)=>{var s=n(7034),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=s(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},2306:(e,t,n)=>{e=n.nmd(e);var s=n(4967),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&s.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},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,n)=>{const s=n(8631);e.exports=class extends s{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},2555:(e,t,n)=>{const s=n(8631);e.exports=class extends s{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,n)=>{var s=n(7379),r=n(547);e.exports=function(e){return!0===e||!1===e||r(e)&&"[object Boolean]"==s(e)}},3004:(e,t,n)=>{const s=n(8631);e.exports=class extends s{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3103:(e,t,n)=>{var s=n(4715)(n(8942),"DataView");e.exports=s},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,n)=>{const s=n(394);e.exports=class extends s{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 n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(n.attributes=this.serialiseObject(s))}if(s)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(n.content=s)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}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(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),s=t.get("default");let r=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),r.forEach(e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")}),e.content&&0!==n.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),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const s=this.deserialiseContent(e.content);if(void 0===s&&null!==n.content||(n.content=s),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach(s=>{s.forEach(s=>{const r=new t(s);r.element=n.element,e.push(r)})});const r=e.shift();n.content=r?r.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let s=n.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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,n)=>{if(e){const s=n.toValue();t[s]=this.convertKeyToRefract(s,e)}}),t}deserialiseObject(e,t){Object.keys(e).forEach(n=>{t.set(n,this.deserialise(e[n]))})}}},3212:(e,t,n)=>{var s=n(8250),r=n(1877),i=n(8006);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new s;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=i,e.exports=o},3283:(e,t,n)=>{var s=n(6027),r=n(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return r(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,n)=>{var s=n(4497);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3311:(e,t,n)=>{const s=n(1517),r=n(4123);class i extends r{map(e,t){return this.elements.map(n=>e.bind(t)(n.value,n.key,n))}filter(e,t){return new i(this.elements.filter(n=>e.bind(t)(n.value,n.key,n)))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach((n,s)=>{e.bind(t)(n.value,n.key,n,s)})}keys(){return this.map((e,t)=>t.toValue())}values(){return this.map(e=>e.toValue())}}e.exports=i},3655:(e,t,n)=>{var s=n(7379),r=n(1580);e.exports=function(e){if(!r(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3766:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},3934:(e,t,n)=>{var s=n(3212),r=n(6465),i=n(5568);e.exports=function(e,t,n,o,a,c){var l=1&n,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,y=2&n?new s:void 0;for(c.set(e,t),c.set(t,e);++f<u;){var g=e[f],v=t[f];if(o)var b=l?o(v,g,f,t,e,c):o(g,v,f,e,t,c);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!r(t,function(e,t){if(!i(y,t)&&(g===e||a(g,e,n,o,c)))return y.push(t)})){d=!1;break}}else if(g!==v&&!a(g,v,n,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},3964:(e,t,n)=>{var s=n(7034);e.exports=function(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[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,n)=>{var s=n(1386);e.exports=function(){this.__data__=new s,this.size=0}},4123:(e,t,n)=>{const s=n(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 n=[];return this.forEach(s=>{const r=e.bind(t)(s);r&&n.push(r)}),n}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(s(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,n)=>{var s=n(4715)(Object,"create");e.exports=s},4512:(e,t,n)=>{var s=n(4715)(n(8942),"Set");e.exports=s},4687:(e,t,n)=>{var s=n(353),r=n(547);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:s(t,n,i,o,e,a))}},4700:(e,t,n)=>{var s=n(9067);e.exports=function(e,t){var n=e.__data__;return s(t)?n["string"==typeof t?"string":"hash"]:n.map}},4715:(e,t,n)=>{var s=n(9624),r=n(155);e.exports=function(e,t){var n=r(e,t);return s(n)?n:void 0}},4732:(e,t,n)=>{var s=n(4700);e.exports=function(e){return s(this,e).has(e)}},4759:(e,t,n)=>{var s,r=n(1950),i=(s=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";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 n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},4967:(e,t,n)=>{var s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=s},5071:(e,t,n)=>{var s=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,n)=>{var s=n(3305),r=n(9361),i=n(1112),o=n(5276),a=n(5071);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5276:(e,t,n)=>{var s=n(4497),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?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,n)=>{const s=n(1517),r=n(1580),i=n(9796),o=n(7309),a=n(3311);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),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(n=>n.key.toValue()!==e||(t=n,!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 n=e,s=this.getMember(n);return s?s.value=t:this.content.push(new o(n,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(n=>e.bind(t)(n.value,n.key,n))}compactMap(e,t){const n=[];return this.forEach((s,r,i)=>{const o=e.bind(t)(s,r,i);o&&n.push(o)}),n}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach(n=>e.bind(t)(n.value,n.key,n))}}},5650:(e,t,n)=>{var s=n(8942).Symbol;e.exports=s},5681:(e,t,n)=>{var s=n(4700);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},5735:(e,t,n)=>{const s=n(9310),r=n(8138),i=n(986),o=n(2563),a=n(1580),c=n(394),l=n(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(s,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(a,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,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const s=this.elementDetection[n][0],r=this.elementDetection[n][1];if(s(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 c(this)}}c.prototype.Namespace=u,e.exports=u},5853:(e,t,n)=>{e=n.nmd(e);var s=n(8942),r=n(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||r;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,s){n[++t]=[s,e]}),n}},6027:(e,t,n)=>{var s=n(7379),r=n(547);e.exports=function(e){return r(e)&&"[object Arguments]"==s(e)}},6137:e=>{e.exports=function(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,n)=>{var s=n(4687);e.exports=function(e,t){return s(e,t)}},6465:e=>{e.exports=function(e,t){for(var n=-1,s=null==e?0:e.length;++n<s;)if(t(e[n],n,e))return!0;return!1}},6529:(e,t,n)=>{var s=n(3655),r=n(5387);e.exports=function(e){return null!=e&&r(e.length)&&!s(e)}},6638:(e,t,n)=>{var s=n(1386),r=n(9770),i=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof s){var o=n.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},7034:(e,t,n)=>{var s=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(s(e[n][0],t))return n;return-1}},7144:(e,t,n)=>{var s=n(7034);e.exports=function(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]}},7309:(e,t,n)=>{const s=n(2322),r=n(8631);e.exports=class extends r{constructor(e,t,n,r){super(new s,n,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,n)=>{var s=n(5650),r=n(8870),i=n(9005),o=s?s.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,n)=>{var s=n(7034);e.exports=function(e){return s(this.__data__,e)>-1}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7547:(e,t,n)=>{const s=n(8631),r=n(3004),i=n(8712),o=n(2536),a=n(2555),c=n(9796),l=n(7309),u=n(5642),p=n(9620),h=n(593),m=n(4123),f=n(3311),d=n(2322);function y(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new r;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}s.prototype.ObjectElement=u,s.prototype.RefElement=h,s.prototype.MemberElement=l,s.prototype.refract=y,m.prototype.refract=y,e.exports={Element:s,NullElement:r,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},7979:(e,t,n)=>{var s=n(9847),r=n(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),function(t){return i.call(e,t)}))}:r;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8121:(e,t,n)=>{var s=n(3766)(Object.keys,Object);e.exports=s},8138:(e,t,n)=>{var s=n(7379),r=n(3142),i=n(547);e.exports=function(e){return"string"==typeof e||!r(e)&&i(e)&&"[object String]"==s(e)}},8244:(e,t,n)=>{var s=n(1129),r=n(3142);e.exports=function(e,t,n){var i=t(e);return r(e)?i:s(i,n(e))}},8250:(e,t,n)=>{var s=n(9753),r=n(5681),i=n(88),o=n(4732),a=n(9068);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8326:(e,t,n)=>{const s=n(5735),r=n(7547);t.g$=s,t.KeyValuePair=n(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,n(394),n(3148)},8486:(e,t,n)=>{var s=n(3103),r=n(9770),i=n(9413),o=n(4512),a=n(9270),c=n(7379),l=n(4066),u="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=l(s),y=l(r),g=l(i),v=l(o),b=l(a),E=c;(s&&E(new s(new ArrayBuffer(1)))!=f||r&&E(new r)!=u||i&&E(i.resolve())!=p||o&&E(new o)!=h||a&&E(new a)!=m)&&(E=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,s=n?l(n):"";if(s)switch(s){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,n)=>{const s=n(6343),r=n(2322),i=n(4123);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),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 n=new i;const s=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(s,e),n.content instanceof r&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter(t=>{let n=t.parents.map(e=>e.element);for(const t in e){const s=e[t],r=n.indexOf(s);if(-1===r)return!1;n=n.splice(0,r)}return!0})),n}set(e){return this.content=e,this}equals(e){return s(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,n)=>{var s=n(674),r=n(9460),i=n(2306),o=i&&i.isTypedArray,a=o?r(o):s;e.exports=a},8712:(e,t,n)=>{const s=n(8631);e.exports=class extends s{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,n)=>{var s=n(5650),r=n(1623),i=n(6285),o=n(3934),a=n(5894),c=n(9828),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,s,l,p,h){switch(n){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=a;case"[object Set]":var f=1&s;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;s|=2,h.set(e,t);var y=o(m(e),m(t),s,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,n)=>{var s=n(5650),r=Object.prototype,i=r.hasOwnProperty,o=r.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var s=!0}catch(e){}var r=o.call(e);return s&&(t?e[a]=n:delete e[a]),r}},8942:(e,t,n)=>{var s=n(4967),r="object"==typeof self&&self&&self.Object===Object&&self,i=s||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,n)=>{var s=n(4700);e.exports=function(e,t){var n=s(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},9270:(e,t,n)=>{var s=n(4715)(n(8942),"WeakMap");e.exports=s},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,n)=>{var s=n(4715)(n(8942),"Promise");e.exports=s},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9620:(e,t,n)=>{const s=n(8631);e.exports=class extends s{constructor(e,t,n){super(e||[],t,n),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,n)=>{var s=n(3655),r=n(4759),i=n(1580),o=n(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.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))&&(s(e)?h:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var s=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<n}},9753:(e,t,n)=>{var s=n(5098),r=n(1386),i=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||r),string:new s}}},9770:(e,t,n)=>{var s=n(4715)(n(8942),"Map");e.exports=s},9796:(e,t,n)=>{const s=n(1517),r=n(8631),i=n(4123);class o extends r{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach(s=>{const r=e.bind(t)(s);r&&n.push(r)}),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let n,s;void 0!==t?(n=0,s=this.refract(t)):(n=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];s="object"===this.primitive()?this.refract(e(s,n.value,n.key,n,this)):this.refract(e(s,n,t,this))}return s}forEach(e,t){this.content.forEach((n,s)=>{e.bind(t)(n,this.refract(s))})}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 n=t||{},s=!!n.recursive,r=void 0===n.results?[]:n.results;return this.forEach((t,n,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:r,recursive:s}),e(t,n,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,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},9847:e=>{e.exports=function(e,t){for(var n=-1,s=null==e?0:e.length,r=0,i=[];++n<s;){var o=e[n];t(o,n,e)&&(i[r++]=o)}return i}}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s](i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var s={};return(()=>{"use strict";n.r(s),n.d(s,{AlternatingVisitor:()=>cc,ContactElement:()=>ii,DefinitionsElement:()=>Fi,ExampleElement:()=>bi,ExternalDocumentationElement:()=>di,FallbackVisitor:()=>Oo,FixedFieldsVisitor:()=>To,HeaderElement:()=>Oi,HeadersElement:()=>Pi,InfoElement:()=>si,ItemsElement:()=>gi,JSONReferenceElement:()=>kn,LicenseElement:()=>ai,MapVisitor:()=>mc,MixedFieldsVisitor:()=>ic,OpenAPIMediaTypes:()=>Xr,OperationConsumesElement:()=>Xi,OperationElement:()=>mi,OperationParametersElement:()=>Zi,OperationProducesElement:()=>eo,OperationSchemesElement:()=>no,OperationSecurityElement:()=>ro,OperationTagsElement:()=>oo,ParameterElement:()=>yi,ParametersDefinitionsElement:()=>Ni,PathItemElement:()=>pi,PathItemParametersElement:()=>co,PathsElement:()=>li,PatternedFieldsVisitor:()=>ta,ReferenceElement:()=>Ri,ResponseElement:()=>ji,ResponsesDefinitionsElement:()=>qi,ResponsesElement:()=>wi,SchemaElement:()=>Mi,ScopesElement:()=>Ji,SecurityDefinitionsElement:()=>Bi,SecurityRequirementElement:()=>Gi,SecuritySchemeElement:()=>Li,SpecificationVisitor:()=>Ao,SwaggerConsumesElement:()=>ho,SwaggerElement:()=>Qr,SwaggerProducesElement:()=>fo,SwaggerSchemesElement:()=>uo,SwaggerSecurityElement:()=>go,SwaggerTagsElement:()=>bo,SwaggerVersionElement:()=>ti,TagElement:()=>_i,Visitor:()=>Po,XmlElement:()=>$i,createRefractor:()=>nl,default:()=>Ki,getNodeType:()=>Eo,isArrayElement:()=>le,isBooleanElement:()=>ae,isContactElement:()=>oa,isDefinitionsElement:()=>Sa,isElement:()=>se,isExampleElement:()=>ya,isExternalDocumentationElement:()=>ua,isHeaderElement:()=>ga,isHeadersElement:()=>da,isInfoElement:()=>ra,isItemsElement:()=>ha,isJSONReferenceElement:()=>Dn,isJSONReferenceLikeElement:()=>qn,isLicenseElement:()=>ia,isLinkPrimitiveElement:()=>pe,isMemberElement:()=>ue,isNullElement:()=>oe,isNumberElement:()=>ie,isObjectElement:()=>ce,isOperationElement:()=>la,isParameterElement:()=>pa,isParametersDefinitionsElement:()=>Pa,isPathItemElement:()=>ca,isPathsElement:()=>aa,isRefElement:()=>he,isReferenceElement:()=>ba,isReferenceLikeElement:()=>Ro,isResponseElement:()=>fa,isResponsesDefinitionsElement:()=>xa,isResponsesElement:()=>ma,isSchemaElement:()=>Ea,isScopesElement:()=>Aa,isSecurityDefinitionsElement:()=>ja,isSecurityRequirementElement:()=>_a,isSecuritySchemeElement:()=>Oa,isStringElement:()=>re,isSwaggerElement:()=>na,isSwaggerExtension:()=>Io,isSwaggerVersionElement:()=>sa,isTagElement:()=>va,isXmlElement:()=>wa,keyMap:()=>wo,mediaTypes:()=>Yr,refract:()=>sl,refractorPluginReplaceEmptyElement:()=>So,specificationObj:()=>Qc});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>ve,includesClasses:()=>Ee,includesSymbols:()=>be,isAnnotationElement:()=>me,isArrayElement:()=>le,isBooleanElement:()=>ae,isCommentElement:()=>fe,isElement:()=>se,isLinkElement:()=>pe,isMemberElement:()=>ue,isNullElement:()=>oe,isNumberElement:()=>ie,isObjectElement:()=>ce,isParseResultElement:()=>de,isPrimitiveElement:()=>ge,isRefElement:()=>he,isSourceMapElement:()=>ye,isStringElement:()=>re});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>Dn,isJSONSchemaElement:()=>Fn,isLinkDescriptionElement:()=>Cn,isMediaElement:()=>Nn});var r={};n.r(r),n.d(r,{isReferenceLikeElement:()=>Ro,isSwaggerExtension:()=>Io});var i={};n.r(i),n.d(i,{isContactElement:()=>oa,isDefinitionsElement:()=>Sa,isExampleElement:()=>ya,isExternalDocumentationElement:()=>ua,isHeaderElement:()=>ga,isHeadersElement:()=>da,isInfoElement:()=>ra,isItemsElement:()=>ha,isLicenseElement:()=>ia,isOperationElement:()=>la,isParameterElement:()=>pa,isParametersDefinitionsElement:()=>Pa,isPathItemElement:()=>ca,isPathsElement:()=>aa,isReferenceElement:()=>ba,isResponseElement:()=>fa,isResponsesDefinitionsElement:()=>xa,isResponsesElement:()=>ma,isSchemaElement:()=>Ea,isScopesElement:()=>Aa,isSecurityDefinitionsElement:()=>ja,isSecurityRequirementElement:()=>_a,isSecuritySchemeElement:()=>Oa,isSwaggerElement:()=>na,isSwaggerVersionElement:()=>sa,isTagElement:()=>va,isXmlElement:()=>wa});var o=n(8326);function a(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function t(n){return 0===arguments.length||a(n)?t:e.apply(this,arguments)}}function l(e){return function t(n,s){switch(arguments.length){case 0:return t;case 1:return a(n)?t:c(function(t){return e(n,t)});default:return a(n)&&a(s)?t:a(n)?c(function(t){return e(t,s)}):a(s)?c(function(t){return e(n,t)}):e(n,s)}}}const u=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function p(e,t,n){return function(){if(0===arguments.length)return n();var s=arguments[arguments.length-1];if(!u(s)){for(var r=0;r<e.length;){if("function"==typeof s[e[r]])return s[e[r]].apply(s,Array.prototype.slice.call(arguments,0,-1));r+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return n.apply(this,arguments)}}function h(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const m=function(){return this.xf["@@transducer/init"]()},f=function(e){return this.xf["@@transducer/result"](e)};var d=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=m,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=h(this.xf["@@transducer/step"](e,!1))),e},e}();function y(e){return function(t){return new d(e,t)}}const g=l(p(["all"],y,function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}));function v(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,n){return t.apply(this,arguments)};case 3:return function(e,n,s){return t.apply(this,arguments)};case 4:return function(e,n,s,r){return t.apply(this,arguments)};case 5:return function(e,n,s,r,i){return t.apply(this,arguments)};case 6:return function(e,n,s,r,i,o){return t.apply(this,arguments)};case 7:return function(e,n,s,r,i,o,a){return t.apply(this,arguments)};case 8:return function(e,n,s,r,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,n,s,r,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,n,s,r,i,o,a,c,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 b(e,t,n){return function(){for(var s=[],r=0,i=e,o=0,c=!1;o<t.length||r<arguments.length;){var l;o<t.length&&(!a(t[o])||r>=arguments.length)?l=t[o]:(l=arguments[r],r+=1),s[o]=l,a(l)?c=!0:i-=1,o+=1}return!c&&i<=0?n.apply(this,s):v(Math.max(0,i),b(e,s,n))}}const E=l(function(e,t){return 1===e?c(t):v(e,b(e,[],t))});const w=c(function(e){return E(e.length,function(t,n){var s=Array.prototype.slice.call(arguments,0);return s[0]=n,s[1]=t,e.apply(this,s)})});function x(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function j(e,t,n){for(var s=0,r=n.length;s<r;){if(e(t,n[s]))return!0;s+=1}return!1}function S(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const P="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 A=function(){return"[object Arguments]"===O.call(arguments)?function(e){return"[object Arguments]"===O.call(e)}:function(e){return S("callee",e)}}();var _=!{toString:null}.propertyIsEnumerable("toString"),M=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),$=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},I="function"!=typeof Object.keys||k?c(function(e){if(Object(e)!==e)return[];var t,n,s=[],r=k&&A(e);for(t in e)!S(t,e)||r&&"length"===t||(s[s.length]=t);if(_)for(n=M.length-1;n>=0;)S(t=M[n],e)&&!$(s,t)&&(s[s.length]=t),n-=1;return s}):c(function(e){return Object(e)!==e?[]:Object.keys(e)});const R=I;const T=c(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function F(e,t,n,s){var r=x(e);function i(e,t){return D(e,t,n.slice(),s.slice())}return!j(function(e,t){return!j(i,t,e)},x(t),r)}function D(e,t,n,s){if(P(e,t))return!0;var r,i,o=T(e);if(o!==T(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||!P(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!P(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 a=n.length-1;a>=0;){if(n[a]===e)return s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&F(e.entries(),t.entries(),n.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&F(e.values(),t.values(),n.concat([e]),s.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 c=R(e);if(c.length!==R(t).length)return!1;var l=n.concat([e]),u=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!S(p,t)||!D(t[p],e[p],l,u))return!1;a-=1}return!0}const N=l(function(e,t){return D(e,t,[],[])});function C(e,t){return function(e,t,n){var s,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;n<e.length;){if(0===(r=e[n])&&1/r===s)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(r=e[n])&&r!=r)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(N(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}const q=w(l(C));class V extends o.Om{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const B=V;class H extends o.Om{constructor(e,t,n){super(e,t,n),this.element="comment"}}const L=H;const z=c(function(e){return function(){return e}});const J=z(void 0);const U=N(J());class G extends o.wE{constructor(e,t,n){super(e,t,n),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(U(t))return!1;const n=this.content.findIndex(e=>e===t);return-1!==n&&(this.content[n]=e,!0)}}const K=G;class W extends o.wE{constructor(e,t,n){super(e,t,n),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 o.wE([e.start.row,e.start.column,e.start.char]),n=new o.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const X=W,Y=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Z=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Q=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),ee=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof o.wE)&&t.classes.includes(e),te=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,ne=e=>e({hasMethod:Y,hasBasicElementProps:Z,primitiveEq:Q,isElementType:te,hasClass:ee}),se=ne(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.Hg||e(n)&&t(void 0,n)),re=ne(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.Om||e(n)&&t("string",n)),ie=ne(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.kT||e(n)&&t("number",n)),oe=ne(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.Os||e(n)&&t("null",n)),ae=ne(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.bd||e(n)&&t("boolean",n)),ce=ne(({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>s=>s instanceof o.Sh||e(s)&&t("object",s)&&n("keys",s)&&n("values",s)&&n("items",s)),le=ne(({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>s=>s instanceof o.wE&&!(s instanceof o.Sh)||e(s)&&t("array",s)&&n("push",s)&&n("unshift",s)&&n("map",s)&&n("reduce",s)),ue=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof o.Pr||e(s)&&t("member",s)&&n(void 0,s)),pe=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof o.Ft||e(s)&&t("link",s)&&n(void 0,s)),he=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof o.sI||e(s)&&t("ref",s)&&n(void 0,s)),me=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof B||e(s)&&t("annotation",s)&&n("array",s)),fe=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof L||e(s)&&t("comment",s)&&n("string",s)),de=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof K||e(s)&&t("parseResult",s)&&n("array",s)),ye=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof X||e(s)&&t("sourceMap",s)&&n("array",s)),ge=e=>te("object",e)||te("array",e)||te("boolean",e)||te("number",e)||te("string",e)||te("null",e)||te("member",e),ve=e=>ye(e.meta.get("sourceMap")),be=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!le(n)&&g(q(n.toValue()),e)},Ee=(e,t)=>0===e.length||g(q(t.classes.toValue()),e);function we(e){return function t(n,s,r){switch(arguments.length){case 0:return t;case 1:return a(n)?t:l(function(t,s){return e(n,t,s)});case 2:return a(n)&&a(s)?t:a(n)?l(function(t,n){return e(t,s,n)}):a(s)?l(function(t,s){return e(n,t,s)}):c(function(t){return e(n,s,t)});default:return a(n)&&a(s)&&a(r)?t:a(n)&&a(s)?l(function(t,n){return e(t,n,r)}):a(n)&&a(r)?l(function(t,n){return e(t,s,n)}):a(s)&&a(r)?l(function(t,s){return e(n,t,s)}):a(n)?c(function(t){return e(t,s,r)}):a(s)?c(function(t){return e(n,t,r)}):a(r)?c(function(t){return e(n,s,t)}):e(n,s,r)}}}function xe(e){return"[object Object]"===Object.prototype.toString.call(e)}const je=we(function(e,t,n){var s,r={};for(s in n=n||{},t=t||{})S(s,t)&&(r[s]=S(s,n)?e(s,t[s],n[s]):t[s]);for(s in n)S(s,n)&&!S(s,r)&&(r[s]=n[s]);return r});const Se=we(function e(t,n,s){return je(function(n,s,r){return xe(s)&&xe(r)?e(t,s,r):t(n,s,r)},n,s)});const Pe=l(function(e,t){return Se(function(e,t,n){return n},e,t)});const Oe=l(function(e,t){return null==t||t!=t?e:t}),Ae=Number.isInteger||function(e){return(e|0)===e};function _e(e,t){return t[e<0?t.length+e:e]}const Me=l(function(e,t){if(null!=t)return Ae(e)?_e(e,t):t[e]});const ke=we(function(e,t,n){return Oe(e,Me(t,n))});function $e(e,t){for(var n=t,s=0;s<e.length;s+=1){if(null==n)return;var r=e[s];n=Ae(r)?_e(r,n):n[r]}return n}const Ie=l($e);function Re(e,t){return function(){var n=arguments.length;if(0===n)return t();var s=arguments[n-1];return u(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,n-1))}}const Te=we(Re("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));const Fe=Te(0,-1);const De=l(function(e,t){return v(e.length,function(){return e.apply(t,arguments)})});const Ne=l(function(e,t){return e.apply(this,t)});function Ce(e,t,n){for(var s=0,r=n.length;s<r;)t=e(t,n[s]),s+=1;return t}function qe(e){return"[object String]"===Object.prototype.toString.call(e)}const Ve=c(function(e){return!!u(e)||!!e&&("object"==typeof e&&(!qe(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Be="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function He(e,t,n){return function(s,r,i){if(Ve(i))return e(s,r,i);if(null==i)return r;if("function"==typeof i["fantasy-land/reduce"])return t(s,r,i,"fantasy-land/reduce");if(null!=i[Be])return n(s,r,i[Be]());if("function"==typeof i.next)return n(s,r,i);if("function"==typeof i.reduce)return t(s,r,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Le(e,t,n){for(var s=n.next();!s.done;)t=e(t,s.value),s=n.next();return t}function ze(e,t,n,s){return n[s](e,t)}const Je=He(Ce,ze,Le);function Ue(e,t){for(var n=0,s=t.length,r=Array(s);n<s;)r[n]=e(t[n]),n+=1;return r}var Ge=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=f,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Ke=l(p(["fantasy-land/map","map"],function(e){return function(t){return new Ge(e,t)}},function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return E(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return Ce(function(n,s){return n[s]=e(t[s]),n},{},R(t));default:return Ue(e,t)}}));const We=l(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(n){return e(n)(t(n))}:Je(function(e,n){return function(e,t){var n;t=t||[];var s=(e=e||[]).length,r=t.length,i=[];for(n=0;n<s;)i[i.length]=e[n],n+=1;for(n=0;n<r;)i[i.length]=t[n],n+=1;return i}(e,Ke(n,t))},[],e)});const Xe=l(function(e,t){var n=E(e,t);return E(e,function(){return Ce(We,Ke(n,arguments[0]),Array.prototype.slice.call(arguments,1))})});const Ye=c(function(e){return Xe(e.length,e)});const Ze=Ye(c(function(e){return!e}));function Qe(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 et=function(e){return(e<10?"0":"")+e};const tt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+et(e.getUTCMonth()+1)+"-"+et(e.getUTCDate())+"T"+et(e.getUTCHours())+":"+et(e.getUTCMinutes())+":"+et(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var nt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=f,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function st(e){return function(t){return new nt(e,t)}}var rt=l(p(["fantasy-land/filter","filter"],st,function(e,t){return xe(t)?Ce(function(n,s){return e(t[s])&&(n[s]=t[s]),n},{},R(t)):(n=t,"[object Map]"===Object.prototype.toString.call(n)?function(e,t){for(var n=new Map,s=t.entries(),r=s.next();!r.done;)e(r.value[1])&&n.set(r.value[0],r.value[1]),r=s.next();return n}(e,t):function(e,t){for(var n=0,s=t.length,r=[];n<s;)e(t[n])&&(r[r.length]=t[n]),n+=1;return r}(e,t));var n}));const it=rt;const ot=l(function(e,t){return it((n=e,function(){return!n.apply(this,arguments)}),t);var n});function at(e,t){var n=function(n){var s=t.concat([e]);return C(n,s)?"<Circular>":at(n,s)},s=function(e,t){return Ue(function(t){return Qe(t)+": "+n(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Ue(n,e).join(", ")+"))";case"[object Array]":return"["+Ue(n,e).concat(s(e,ot(function(e){return/^\d+$/.test(e)},R(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):Qe(tt(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":Qe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var r=e.toString();if("[object Object]"!==r)return r}return"{"+s(e,R(e)).join(", ")+"}"}}const ct=c(function(e){return at(e,[])});const lt=l(function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var s=n(e,t);if(void 0!==s)return s;var r=n(typeof e,typeof t);if(void 0!==r)return r===typeof e?e:t;var i=ct(e),o=n(i,ct(t));return void 0!==o&&o===i?e:t});const ut=l(function(e,t){return Ke(Me(e),t)});function pt(e,t,n){for(var s=0,r=n.length;s<r;){if((t=e["@@transducer/step"](t,n[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}function ht(e,t,n){for(var s=n.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=n.next()}return e["@@transducer/result"](t)}function mt(e,t,n,s){return e["@@transducer/result"](n[s](De(e["@@transducer/step"],e),t))}const ft=He(pt,mt,ht);var dt=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 yt=we(function(e,t,n){return ft("function"==typeof e?new dt(e):e,t,n)});const gt=c(function(e){return E(yt(lt,0,ut("length",e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});function vt(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const bt=c(Re("tail",Te(1,1/0)));function Et(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,yt(vt,arguments[0],bt(arguments)))}var wt=function(e,t){switch(arguments.length){case 0:return wt;case 1:return function t(n){return 0===arguments.length?t:P(e,n)};default:return P(e,t)}};const xt=wt;const jt=E(1,Et(T,xt("GeneratorFunction")));const St=E(1,Et(T,xt("AsyncFunction")));const Pt=gt([Et(T,xt("Function")),jt,St]);const Ot=Ze(Pt);function At(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const _t=l(function(e,t){return e&&t});const Mt=l(function(e,t){return At(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Ye(_t)(e,t)});var kt=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:u(e)?[]:qe(e)?"":xe(e)?{}:A(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 $t=kt;const It=c(function(e){return null!=e&&N(e,$t(e))});const Rt=E(1,Pt(Array.isArray)?Array.isArray:Et(T,xt("Array")));const Tt=Mt(Rt,It);const Ft=E(3,function(e,t,n){var s=Ie(e,n),r=Ie(Fe(e),n);if(!Ot(s)&&!Tt(e)){var i=De(s,r);return Ne(i,t)}});const Dt=we(function(e,t,n){return e($e(t,n))});const Nt=N(null);const Ct=Ze(Nt);function qt(e){return qt="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},qt(e)}const Vt=function(e){return"object"===qt(e)};const Bt=E(1,Mt(Ct,Vt));var Ht=Et(T,xt("Object")),Lt=Et(ct,N(ct(Object))),zt=Dt(Mt(Pt,Lt),["constructor"]);const Jt=E(1,function(e){if(!Bt(e)||!Ht(e))return!1;var t=Object.getPrototypeOf(e);return!!Nt(t)||zt(t)});class Ut extends o.g${constructor(){super(),this.register("annotation",B),this.register("comment",L),this.register("parseResult",K),this.register("sourceMap",X)}}const Gt=new Ut,Kt=e=>{const t=new Ut;return Jt(e)&&t.use(e),t},Wt=Gt,Xt=()=>({predicates:{...e},namespace:Wt});const Yt=E(1,Et(T,xt("String")));class Zt extends AggregateError{constructor(e,t,n){super(e,t,n),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Qt=Zt;class en extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Qt,e)}constructor(e,t){super(e,t),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const tn=en;const nn=class extends tn{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}},sn=(e,t,n)=>{const s=e[t];if(null!=s){if(!n&&"function"==typeof s)return s;const e=n?s.leave:s.enter;if("function"==typeof e)return e}else{const s=n?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},rn={},on=e=>e?.type,an=e=>"string"==typeof on(e),cn=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ln=(e,{visitFnGetter:t=sn,nodeTypeGetter:n=on,breakSymbol:s=rn,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);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(c[l]===a){const a=t(e[l],n(d),!1);if("function"==typeof a){const t=a.call(e[l],d,u,p,h,m,g);if("function"==typeof t?.then)throw new nn("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=d;else if(t===s)c[l]=s;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(c[r]===a){const a=t(e[r],n(m),!0);if("function"==typeof a){const t=a.call(e[r],m,o,l,u,p,f);if("function"==typeof t?.then)throw new nn("Async visitor not supported in sync mode",{visitor:e[r],visitFn:a});if(t===s)c[r]=s;else if(void 0!==t&&t!==i)return t}}else c[r]===m&&(c[r]=a)}}};ln[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=sn,nodeTypeGetter:n=on,breakSymbol:s=rn,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);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(c[l]===a){const a=t(e[l],n(d),!1);if("function"==typeof a){const t=await a.call(e[l],d,u,p,h,m,g);if(t===i)c[l]=d;else if(t===s)c[l]=s;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(c[r]===a){const a=t(e[r],n(m),!0);if("function"==typeof a){const t=await a.call(e[r],m,o,l,u,p,f);if(t===s)c[r]=s;else if(void 0!==t&&t!==i)return t}}else c[r]===m&&(c[r]=a)}}};const un=(e,t,{keyMap:n=null,state:s={},breakSymbol:r=rn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=sn,nodeTypeGetter:c=on,nodePredicate:l=an,nodeCloneFn:u=cn,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),y=[e],g=-1,v=[],b=e;const E=[],w=[];do{g+=1;const e=g===y.length;let n;const x=e&&0!==v.length;if(e){if(n=0===w.length?void 0:E.pop(),b=f,f=w.pop(),x)if(d){b=b.slice();let e=0;for(const[t,n]of v){const s=t-e;n===i?(b.splice(s,1),e+=1):b[s]=n}}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(n=d?g:y[g],b=f[n],b===i||void 0===b)continue;E.push(n)}let j;if(!Array.isArray(b)){if(!l(b))throw new nn(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){E.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,n]of Object.entries(s))t[e]=n;const r={replaceWith(t,s){"function"==typeof s?s(t,b,n,f,E,w):f&&(f[n]=t),e||(b=t)}};j=i.call(t,b,n,f,E,w,r)}if("function"==typeof j?.then)throw new nn("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(j===r)break;if(j===o){if(!e){E.pop();continue}}else if(void 0!==j&&(v.push([n,j]),!e)){if(!l(j)){E.pop();continue}b=j}}void 0===j&&x&&v.push([n,b]),e||(m={inArray:d,index:g,keys:y,edits:v,prev:m},d=Array.isArray(b),y=d?b:h[c(b)]??[],g=-1,v=[],f!==i&&void 0!==f&&w.push(f),f=b)}while(void 0!==m);return 0!==v.length?v.at(-1)[1]:e};un[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:s={},breakSymbol:r=rn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=sn,nodeTypeGetter:c=on,nodePredicate:l=an,nodeCloneFn:u=cn,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),y=[e],g=-1,v=[],b=e;const E=[],w=[];do{g+=1;const e=g===y.length;let n;const x=e&&0!==v.length;if(e){if(n=0===w.length?void 0:E.pop(),b=f,f=w.pop(),x)if(d){b=b.slice();let e=0;for(const[t,n]of v){const s=t-e;n===i?(b.splice(s,1),e+=1):b[s]=n}}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(n=d?g:y[g],b=f[n],b===i||void 0===b)continue;E.push(n)}let j;if(!Array.isArray(b)){if(!l(b))throw new nn(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){E.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,n]of Object.entries(s))t[e]=n;const r={replaceWith(t,s){"function"==typeof s?s(t,b,n,f,E,w):f&&(f[n]=t),e||(b=t)}};j=await i.call(t,b,n,f,E,w,r)}if(j===r)break;if(j===o){if(!e){E.pop();continue}}else if(void 0!==j&&(v.push([n,j]),!e)){if(!l(j)){E.pop();continue}b=j}}void 0===j&&x&&v.push([n,b]),e||(m={inArray:d,index:g,keys:y,edits:v,prev:m},d=Array.isArray(b),y=d?b:h[c(b)]??[],g=-1,v=[],f!==i&&void 0!==f&&w.push(f),f=b)}while(void 0!==m);return 0!==v.length?v.at(-1)[1]:e};const pn=class extends nn{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const hn=class extends pn{};const mn=class extends pn{},fn=(e,t={})=>{const{visited:n=new WeakMap}=t,s={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof o.KeyValuePair){const{key:t,value:r}=e,i=se(t)?fn(t,s):t,a=se(r)?fn(r,s):r,c=new o.KeyValuePair(i,a);return n.set(e,c),c}if(e instanceof o.ot){const t=e=>fn(e,s),r=[...e].map(t),i=new o.ot(r);return n.set(e,i),i}if(e instanceof o.G6){const t=e=>fn(e,s),r=[...e].map(t),i=new o.G6(r);return n.set(e,i),i}if(se(e)){const t=gn(e);if(n.set(e,t),e.content)if(se(e.content))t.content=fn(e.content,s);else if(e.content instanceof o.KeyValuePair)t.content=fn(e.content,s);else if(Array.isArray(e.content)){const n=e=>fn(e,s);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new hn("Value provided to cloneDeep function couldn't be cloned",{value:e})};fn.safe=e=>{try{return fn(e)}catch{return e}};const dn=e=>{const{key:t,value:n}=e;return new o.KeyValuePair(t,n)},yn=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=fn(e.meta)),e.attributes.length>0&&(t._attributes=fn(e.attributes)),se(e.content)){const n=e.content;t.content=yn(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof o.KeyValuePair?t.content=dn(e.content):t.content=e.content;return t},gn=e=>{if(e instanceof o.KeyValuePair)return dn(e);if(e instanceof o.ot)return(e=>{const t=[...e];return new o.ot(t)})(e);if(e instanceof o.G6)return(e=>{const t=[...e];return new o.G6(t)})(e);if(se(e))return yn(e);throw new mn("Value provided to cloneShallow function couldn't be cloned",{value:e})};gn.safe=e=>{try{return gn(e)}catch{return e}};const vn=e=>ce(e)?"ObjectElement":le(e)?"ArrayElement":ue(e)?"MemberElement":re(e)?"StringElement":ae(e)?"BooleanElement":ie(e)?"NumberElement":oe(e)?"NullElement":pe(e)?"LinkElement":he(e)?"RefElement":void 0,bn=e=>se(e)?gn(e):cn(e),En=Et(vn,Yt),wn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const xn=(e,t,{keyMap:n=wn,...s}={})=>un(e,t,{keyMap:n,nodeTypeGetter:vn,nodePredicate:En,nodeCloneFn:bn,...s});xn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=wn,...s}={})=>un[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:vn,nodePredicate:En,nodeCloneFn:bn,...s});const jn={toolboxCreator:Xt,visitorOptions:{nodeTypeGetter:vn,exposeEdits:!0}},Sn=(e,t,n={})=>{if(0===t.length)return e;const s=Pe(jn,n),{toolboxCreator:r,visitorOptions:i}=s,o=r(),a=t.map(e=>e(o)),c=ln(a.map(ke({},"visitor")),{...i});a.forEach(Ft(["pre"],[]));const l=xn(e,c,i);return a.forEach(Ft(["post"],[])),l};Sn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const s=Pe(jn,n),{toolboxCreator:r,visitorOptions:i}=s,o=r(),a=t.map(e=>e(o)),c=ln[Symbol.for("nodejs.util.promisify.custom")],l=xn[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(ke({},"visitor")),{...i});await Promise.allSettled(a.map(Ft(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map(Ft(["post"],[]))),p};const Pn=(e,{Type:t,plugins:n=[]})=>{const s=new t(e);return se(e)&&(e.meta.length>0&&(s.meta=fn(e.meta)),e.attributes.length>0&&(s.attributes=fn(e.attributes))),Sn(s,n,{toolboxCreator:Xt,visitorOptions:{nodeTypeGetter:vn}})},On=e=>(t,n={})=>Pn(t,{...n,Type:e});o.Sh.refract=On(o.Sh),o.wE.refract=On(o.wE),o.Om.refract=On(o.Om),o.bd.refract=On(o.bd),o.Os.refract=On(o.Os),o.kT.refract=On(o.kT),o.Ft.refract=On(o.Ft),o.sI.refract=On(o.sI),B.refract=On(B),L.refract=On(L),K.refract=On(K),X.refract=On(X);class An extends o.Sh{constructor(e,t,n){super(e,t,n),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 _n=An;class Mn extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const kn=Mn;class $n extends o.Sh{constructor(e,t,n){super(e,t,n),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 In=$n;class Rn extends o.Sh{constructor(e,t,n){super(e,t,n),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 Tn=Rn,Fn=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof _n||e(s)&&t("JSONSchemaDraft4",s)&&n("object",s)),Dn=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof kn||e(s)&&t("JSONReference",s)&&n("object",s)),Nn=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof In||e(s)&&t("media",s)&&n("object",s)),Cn=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Tn||e(s)&&t("linkDescription",s)&&n("object",s)),qn=e=>ce(e)&&e.hasKey("$ref");const Vn=l(function(e,t){return Ce(function(n,s){return n[s]=e(t[s],s,t),n},{},R(t))});const Bn=c(function(e){return null==e});var Hn=l(function(e,t){if(0===e.length||Bn(t))return!1;for(var n=t,s=0;s<e.length;){if(Bn(n)||!S(e[s],n))return!1;n=n[e[s]],s+=1}return!0});const Ln=Hn;var zn=l(function(e,t){return Ln([e],t)});const Jn=zn;const Un=we(function(e,t,n){return e(Me(t,n))});const Gn=c(function(e){return E(e.length,e)});const Kn=l(function(e,t){return E(e+1,function(){var n=arguments[e];if(null!=n&&At(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(ct(n)+' does not have a method named "'+t+'"')})});const Wn=Kn(1,"split");var Xn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=f,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 Yn(e){return function(t){return new Xn(e,t)}}const Zn=l(p(["dropWhile"],Yn,function(e,t){for(var n=0,s=t.length;n<s&&e(t[n]);)n+=1;return Te(n,1/0,t)}));const Qn=Kn(1,"join");const es=Gn(function(e,t){return Et(Wn(""),Zn(q(e)),Qn(""))(t)}),ts=(e,t)=>{const n=Oe(e,t);return Vn(e=>{if(Jt(e)&&Jn("$ref",e)&&Un(Yt,"$ref",e)){const t=Ie(["$ref"],e),s=es("#/",t);return Ie(s.split("/"),n)}return Jt(e)?ts(e,n):e},e)};const ns=function(){return!0},ss=e=>"string"==typeof e?.type?e.type:vn(e),rs={EphemeralObject:["content"],EphemeralArray:["content"],...wn},is=(e,t,{keyMap:n=rs,...s}={})=>xn(e,t,{keyMap:n,nodeTypeGetter:ss,nodePredicate:ns,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});is[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=rs,...n}={})=>xn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:ss,nodePredicate:ns,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const os=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 as=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 cs{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new as(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 os(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 n=t[3];return"EphemeralObject"===n[n.length-1]?.type?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return re(e.href)?e.href.toValue():""}}const ls=e=>se(e)?re(e)||ie(e)||ae(e)||oe(e)?e.toValue():is(e,new cs):e,us=e=>{const t=e.meta.length>0?fn(e.meta):void 0,n=e.attributes.length>0?fn(e.attributes):void 0;return new e.constructor(void 0,t,n)},ps=(e,t)=>t.clone&&t.isMergeableElement(e)?ms(us(e),e,t):e,hs={clone:!0,isMergeableElement:e=>ce(e)||le(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"](e=>ps(e,n)),objectElementMerge:(e,t,n)=>{const s=ce(e)?us(e):us(t);return ce(e)&&e.forEach((e,t,r)=>{const i=gn(r);i.value=ps(e,n),s.content.push(i)}),t.forEach((t,r,i)=>{const o=ls(r);let a;if(ce(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const s=e.get(o);a=gn(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return ms;const n=t.customMerge(e,t);return"function"==typeof n?n:ms})(r,n)(s,t,n)}else a=gn(i),a.value=ps(t,n);s.remove(o),s.content.push(a)}),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},ms=(e,t,n)=>{const s={...hs,...n};s.isMergeableElement=s.isMergeableElement??hs.isMergeableElement,s.arrayElementMerge=s.arrayElementMerge??hs.arrayElementMerge,s.objectElementMerge=s.objectElementMerge??hs.objectElementMerge;const r=le(t);if(!(r===le(e)))return ps(t,s);const i=r&&"function"==typeof s.arrayElementMerge?s.arrayElementMerge(e,t,s):s.objectElementMerge(e,t,s);return i.meta=(e=>"function"!=typeof e.customMetaMerge?e=>fn(e):e.customMetaMerge)(s)(e.meta,t.meta),i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>fn(e):e.customAttributesMerge)(s)(e.attributes,t.attributes),i};ms.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new o.Sh:e.reduce((e,n)=>ms(e,n,t),us(e[0]))};const fs=ms;const ds=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=fs(t.meta,e.meta),ve(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=fs(t.attributes,e.attributes))}};const ys=class extends ds{enter(e){return this.element=fn(e),rn}},gs=(e,t,n=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of n)delete s[e];Object.defineProperties(e,s)},vs=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:vs(n,[...t,n])},bs=(e,t,n=[])=>{var s;const r=null!==(s=((...e)=>{if(0===e.length)return;let t;const n=e.map(e=>vs(e));for(;n.every(e=>e.length>0);){const e=n.map(e=>e.pop()),s=e[0];if(!e.every(e=>e===s))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(r),o=vs(r);for(let t of e){let e=vs(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(gs(i,s,["constructor",...n]),o.push(s))}}return i.constructor=t,i},Es=e=>e.filter((t,n)=>e.indexOf(t)==n),ws=(e,t)=>{const n=t.map(e=>vs(e));let s=0,r=!0;for(;r;){r=!1;for(let i=t.length-1;i>=0;i--){const t=n[i][s];if(null!=t&&(r=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return n[i][0]}s++}},xs=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor(ws(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,s)=>void 0!==ws(s,e)||void 0!==t[s],get:(n,s)=>(ws(s,e)||t)[s],set(t,n,s){const r=ws(n,e);if(void 0===r)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return r[n]=s,!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)))}),js=null,Ss="copy",Ps="copy",Os="deep",As=new WeakMap,_s=e=>As.get(e),Ms=(e,t)=>{var n,s;const r=Es([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=Es([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},ks=(e,t)=>{var n,s,r,i;return{property:Ms(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:Ms(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},$s=(e,t)=>{var n,s,r,i,o,a;return{class:Es([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:ks(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:ks(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Is=new Map,Rs=(...e)=>{const t=((...e)=>{var t;const n=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const r=[...vs(e.prototype).map(e=>e.constructor),...null!==(t=_s(e))&&void 0!==t?t:[]].filter(e=>!n.has(e));for(let e of r)s.add(e);n.add(e),s.delete(e)}return[...n]})(...e).map(e=>Is.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>$s(e,t))},Ts=e=>{let t=Is.get(e);return t||(t={},Is.set(e,t)),t};function Fs(...e){var t,n,s;const r=e.map(e=>e.prototype),i=js;if(null!==i){const e=r.map(e=>e[i]).filter(e=>"function"==typeof e),t=function(...t){for(let n of e)n.apply(this,t)},n={[i]:t};r.push(n)}function o(...t){for(const n of e)gs(this,new n(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Ps?bs(r,o):(a=r,c=o,xs([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Ss?bs(e,null,["prototype"]):xs(e,Function.prototype));let l=o;if("none"!==Os){const r="deep"===Os?Rs(...e):((...e)=>{const t=e.map(e=>Ts(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>$s(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)}Ds(null!==(n=null==r?void 0:r.static)&&void 0!==n?n:{},l),Ds(null!==(s=null==r?void 0:r.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,As.set(u,p),l}const Ds=(e,t)=>{const n=e.property,s=e.method;if(n)for(let e in n)for(let s of n[e])s(t,e);if(s)for(let e in s)for(let n of s[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))};const Ns=c(function(e){return E(yt(lt,0,ut("length",e)),function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});const Cs=c(function(e){return!It(e)});const qs=l(function(e,t){return e||t});var Vs=Ze(E(1,Mt(Ct,l(function(e,t){return At(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Ye(qs)(e,t)})(Vt,Pt))));const Bs=Ns([Yt,Vs,Cs]);const Hs=l(function(e,t){for(var n={},s=0;s<e.length;)e[s]in t&&(n[e[s]]=t[e[s]]),s+=1;return n});const Ls=class extends ds{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Hs(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Dt(Pt,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const s=this.retrieveVisitorInstance(e,n);return s instanceof ys&&s?.constructor===ys?fn(t):(xn(t,s,n),s.element)}};const zs=class extends Ls{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach((e,s,r)=>{if(re(s)&&n.includes(ls(s))&&!this.ignoredFields.includes(ls(s))){const n=this.toRefractedElement([...t,"fixedFields",ls(s)],e),i=new o.Pr(fn(s),n);this.copyMetaAndAttributes(r,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ls(s))||this.element.content.push(fn(r))}),this.copyMetaAndAttributes(e,this.element),rn}};const Js=class{parent;constructor({parent:e}){this.parent=e}};class Us extends(Fs(zs,Js,ys)){constructor(e){super(e),this.element=new _n,this.specPath=z(["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,zs.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(U(this.parent)&&!re(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Fn(this.parent)&&!re(e.get("$schema"))){const e=Oe(ls(this.parent.meta.get("inheritedDialectIdentifier")),ls(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const n=void 0!==this.parent?fn(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new o.wE,s=ls(e.get(t));Bs(s)&&n.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}}const Gs=Us;class Ks extends(Fs(Ls,Js,ys)){ObjectElement(e){const t=qn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),rn}ArrayElement(e){return this.element=new o.wE,this.element.classes.push("json-schema-items"),e.forEach(e=>{const t=qn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),rn}}const Ws=Ks;const Xs=class extends ys{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Ys=function(){return!1};const Zs=class extends Ls{specPath;ignoredFields;fieldPatternPredicate=Ys;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach((e,t,n)=>{if(!this.ignoredFields.includes(ls(t))&&this.fieldPatternPredicate(ls(t))){const s=this.specPath(e),r=this.toRefractedElement(s,e),i=new o.Pr(fn(t),r);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ls(t))||this.element.content.push(fn(n))}),this.copyMetaAndAttributes(e,this.element),rn}};const Qs=class extends Zs{constructor(e){super(e),this.fieldPatternPredicate=Bs}};class er extends(Fs(Qs,Js,ys)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>qn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const tr=er;class nr extends(Fs(Qs,Js,ys)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>qn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const sr=nr;class rr extends(Fs(Qs,Js,ys)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>qn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ir=rr;const or=class extends ys{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ar=class extends ys{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 cr extends(Fs(Ls,Js,ys)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(e=>{const t=qn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),rn}}const lr=cr;class ur extends(Fs(Ls,Js,ys)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(e=>{const t=qn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),rn}}const pr=ur;class hr extends(Fs(Ls,Js,ys)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(e=>{const t=qn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),rn}}const mr=hr;class fr extends(Fs(Qs,Js,ys)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>qn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const dr=fr;class yr extends(Fs(Ls,Js,ys)){constructor(e){super(e),this.element=new o.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),rn}}const gr=yr;class vr extends(Fs(zs,ys)){constructor(e){super(e),this.element=new kn,this.specPath=z(["document","objects","JSONReference"])}ObjectElement(e){const t=zs.prototype.ObjectElement.call(this,e);return re(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const br=vr;const Er=class extends ys{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const wr=we(function(e,t,n){return E(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})});const xr=c(function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}});var jr=l(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const Sr=jr;const Pr=c(function(e){return _e(0,e)});const Or=c(h);const Ar=Ze(Bn);const _r=Mt(Rt,Cs);function Mr(e){return function(e){if(Array.isArray(e))return kr(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 kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(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 kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}var $r=Et(Sr(xr(function(e,t){return e.length>t.length})),Pr,Me("length")),Ir=Gn(function(e,t,n){var s=n.apply(void 0,Mr(e));return Ar(s)?Or(s):t});const Rr=wr(_r,function(e){var t=$r(e);return E(t,function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return yt(Ir(n),void 0,e)})},J);const Tr=class extends Ls{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>wr(e,z(t),J)),n=Rr(t)(e);return this.element=this.toRefractedElement(n,e),rn}};const Fr=class extends Tr{constructor(e){super(e),this.alternator=[{predicate:qn,specPath:["document","objects","JSONReference"]},{predicate:ns,specPath:["document","objects","JSONSchema"]}]}};class Dr extends(Fs(zs,ys)){constructor(e){super(e),this.element=new In,this.specPath=z(["document","objects","Media"])}}const Nr=Dr;class Cr extends(Fs(zs,ys)){constructor(e){super(e),this.element=new Tn,this.specPath=z(["document","objects","LinkDescription"])}}const qr={visitors:{value:ys,JSONSchemaOrJSONReferenceVisitor:Fr,document:{objects:{JSONSchema:{$visitor:Gs,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:Fr,items:Ws,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Xs,properties:tr,additionalProperties:Fr,patternProperties:sr,dependencies:ir,enum:or,type:ar,allOf:lr,anyOf:pr,oneOf:mr,not:Fr,definitions:dr,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:gr,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:br,fixedFields:{$ref:Er}},Media:{$visitor:Nr,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Cr,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Fr,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Fr}}}}}},Vr=e=>{if(se(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Br={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...wn},Hr={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",_n),t.register("jSONReference",kn),t.register("media",In),t.register("linkDescription",Tn),t}},Lr=()=>{const e=Kt(Hr);return{predicates:{...t,isStringElement:re},namespace:e}},zr=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:s=qr}={})=>{const r=(0,o.e)(e),i=ts(s),a=new(Ie(t,i))({specObj:i});return xn(r,a),Sn(a.element,n,{toolboxCreator:Lr,visitorOptions:{keyMap:Br,nodeTypeGetter:Vr}})},Jr=e=>(t,n={})=>zr(t,{specPath:e,...n});_n.refract=Jr(["visitors","document","objects","JSONSchema","$visitor"]),kn.refract=Jr(["visitors","document","objects","JSONReference","$visitor"]),In.refract=Jr(["visitors","document","objects","Media","$visitor"]),Tn.refract=Jr(["visitors","document","objects","LinkDescription","$visitor"]);const Ur=c(function(e){return _e(-1,e)});const Gr=class extends tn{};const Kr=class extends Gr{};const Wr=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Kr("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Kr("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Kr("latest method in MediaTypes class is not yet implemented.")}};class Xr extends Wr{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find(e=>e.includes(n))||this.unknownMediaType}latest(e="generic"){return Ur(this.filterByFormat(e))}}const Yr=new Xr("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0");class Zr extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",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 Qr=Zr;class ei extends o.Om{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const ti=ei;class ni extends o.Sh{constructor(e,t,n){super(e,t,n),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 si=ni;class ri extends o.Sh{constructor(e,t,n){super(e,t,n),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 ii=ri;class oi extends o.Sh{constructor(e,t,n){super(e,t,n),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 ai=oi;class ci extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="paths"}}const li=ci;class ui extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",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 parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const pi=ui;class hi extends o.Sh{constructor(e,t,n){super(e,t,n),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 responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new o.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const mi=hi;class fi extends o.Sh{constructor(e,t,n){super(e,t,n),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 di=fi;const yi=class extends _n{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new Gr("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new Gr("idProp setter in Parameter class is not not supported.")}get $schema(){throw new Gr("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new Gr("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new Gr("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new Gr("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new Gr("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new Gr("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new Gr("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new Gr("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new Gr("properties getter in Parameter class is not not supported.")}set properties(e){throw new Gr("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new Gr("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new Gr("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new Gr("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new Gr("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new Gr("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new Gr("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new Gr("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new Gr("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new Gr("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new Gr("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new Gr("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new Gr("oneOf setter in Parameter class is not not supported.")}get not(){throw new Gr("not getter in Parameter class is not not supported.")}set not(e){throw new Gr("not setter in Parameter class is not not supported.")}get definitions(){throw new Gr("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new Gr("definitions setter in Parameter class is not not supported.")}get title(){throw new Gr("title getter in Parameter class is not not supported.")}set title(e){throw new Gr("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new Gr("base getter in Parameter class is not not supported.")}set base(e){throw new Gr("base setter in Parameter class is not not supported.")}get links(){throw new Gr("links getter in Parameter class is not not supported.")}set links(e){throw new Gr("links setter in Parameter class is not not supported.")}get media(){throw new Gr("media getter in Parameter class is not not supported.")}set media(e){throw new Gr("media setter in Parameter class is not not supported.")}get readOnly(){throw new Gr("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new Gr("readOnly setter in Parameter class is not not supported.")}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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const gi=class extends _n{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new Gr("idProp getter in Items class is not not supported.")}set idProp(e){throw new Gr("idProp setter in Items class is not not supported.")}get $schema(){throw new Gr("$schema getter in Items class is not not supported.")}set $schema(e){throw new Gr("$schema setter in Items class is not not supported.")}get additionalItems(){throw new Gr("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new Gr("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new Gr("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new Gr("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new Gr("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new Gr("minProperties setter in Items class is not not supported.")}get required(){throw new Gr("required getter in Items class is not not supported.")}set required(e){throw new Gr("required setter in Items class is not not supported.")}get properties(){throw new Gr("properties getter in Items class is not not supported.")}set properties(e){throw new Gr("properties setter in Items class is not not supported.")}get additionalProperties(){throw new Gr("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new Gr("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new Gr("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new Gr("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new Gr("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new Gr("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new Gr("allOf getter in Items class is not not supported.")}set allOf(e){throw new Gr("allOf setter in Items class is not not supported.")}get anyOf(){throw new Gr("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new Gr("anyOf setter in Items class is not not supported.")}get oneOf(){throw new Gr("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new Gr("oneOf setter in Items class is not not supported.")}get not(){throw new Gr("not getter in Items class is not not supported.")}set not(e){throw new Gr("not setter in Items class is not not supported.")}get definitions(){throw new Gr("definitions getter in Items class is not not supported.")}set definitions(e){throw new Gr("definitions setter in Items class is not not supported.")}get title(){throw new Gr("title getter in Items class is not not supported.")}set title(e){throw new Gr("title setter in Items class is not not supported.")}get description(){throw new Gr("description getter in Items class is not not supported.")}set description(e){throw new Gr("description setter in Items class is not not supported.")}get base(){throw new Gr("base getter in Items class is not not supported.")}set base(e){throw new Gr("base setter in Items class is not not supported.")}get links(){throw new Gr("links getter in Items class is not not supported.")}set links(e){throw new Gr("links setter in Items class is not not supported.")}get media(){throw new Gr("media getter in Items class is not not supported.")}set media(e){throw new Gr("media setter in Items class is not not supported.")}get readOnly(){throw new Gr("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new Gr("readOnly setter in Items class is not not supported.")}};class vi extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="example"}}const bi=vi;class Ei extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const wi=Ei;class xi extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const ji=xi;class Si extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="headers"}}const Pi=Si;const Oi=class extends _n{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new Gr("idProp getter in Header class is not not supported.")}set idProp(e){throw new Gr("idProp setter in Header class is not not supported.")}get $schema(){throw new Gr("$schema getter in Header class is not not supported.")}set $schema(e){throw new Gr("$schema setter in Header class is not not supported.")}get additionalItems(){throw new Gr("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new Gr("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new Gr("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new Gr("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new Gr("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new Gr("minProperties setter in Header class is not not supported.")}get required(){throw new Gr("required getter in Header class is not not supported.")}set required(e){throw new Gr("required setter in Header class is not not supported.")}get properties(){throw new Gr("properties getter in Header class is not not supported.")}set properties(e){throw new Gr("properties setter in Header class is not not supported.")}get additionalProperties(){throw new Gr("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new Gr("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new Gr("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new Gr("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new Gr("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new Gr("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new Gr("allOf getter in Header class is not not supported.")}set allOf(e){throw new Gr("allOf setter in Header class is not not supported.")}get anyOf(){throw new Gr("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new Gr("anyOf setter in Header class is not not supported.")}get oneOf(){throw new Gr("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new Gr("oneOf setter in Header class is not not supported.")}get not(){throw new Gr("not getter in Header class is not not supported.")}set not(e){throw new Gr("not setter in Header class is not not supported.")}get definitions(){throw new Gr("definitions getter in Header class is not not supported.")}set definitions(e){throw new Gr("definitions setter in Header class is not not supported.")}get title(){throw new Gr("title getter in Header class is not not supported.")}set title(e){throw new Gr("title setter in Header class is not not supported.")}get base(){throw new Gr("base getter in Header class is not not supported.")}set base(e){throw new Gr("base setter in Header class is not not supported.")}get links(){throw new Gr("links getter in Header class is not not supported.")}set links(e){throw new Gr("links setter in Header class is not not supported.")}get media(){throw new Gr("media getter in Header class is not not supported.")}set media(e){throw new Gr("media setter in Header class is not not supported.")}get readOnly(){throw new Gr("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new Gr("readOnly setter in Header class is not not supported.")}};class Ai extends o.Sh{constructor(e,t,n){super(e,t,n),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 _i=Ai;const Mi=class extends _n{constructor(e,t,n){super(e,t,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Gr("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Gr("idProp setter in Schema class is not not supported.")}get $schema(){throw new Gr("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Gr("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new Gr("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new Gr("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new Gr("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Gr("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Gr("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Gr("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new Gr("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new Gr("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new Gr("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new Gr("oneOf setter in Schema class is not not supported.")}get not(){throw new Gr("not getter in Schema class is not not supported.")}set not(e){throw new Gr("not setter in Schema class is not not supported.")}get definitions(){throw new Gr("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Gr("definitions setter in Schema class is not not supported.")}get base(){throw new Gr("base getter in Schema class is not not supported.")}set base(e){throw new Gr("base setter in Schema class is not not supported.")}get links(){throw new Gr("links getter in Schema class is not not supported.")}set links(e){throw new Gr("links setter in Schema class is not not supported.")}get media(){throw new Gr("media getter in Schema class is not not supported.")}set media(e){throw new Gr("media setter in Schema class is not not supported.")}};class ki extends o.Sh{constructor(e,t,n){super(e,t,n),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 $i=ki;class Ii extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Ri=Ii;class Ti extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="definitions"}}const Fi=Ti;class Di extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}const Ni=Di;class Ci extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}const qi=Ci;class Vi extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}const Bi=Vi;class Hi extends o.Sh{constructor(e,t,n){super(e,t,n),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 flow(){return this.get("flow")}set flow(e){this.set("flow",e)}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 scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Li=Hi;class zi extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="scopes"}}const Ji=zi;class Ui extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const Gi=Ui,Ki={namespace:e=>{const{base:t}=e;return t.register("swagger",Qr),t.register("swaggerVersion",ti),t.register("info",si),t.register("contact",ii),t.register("license",ai),t.register("paths",li),t.register("pathItem",pi),t.register("operation",mi),t.register("externalDocumentation",di),t.register("parameter",yi),t.register("items",gi),t.register("responses",wi),t.register("response",ji),t.register("headers",Pi),t.register("example",bi),t.register("header",Oi),t.register("tag",_i),t.register("reference",Ri),t.register("schema",Mi),t.register("xml",$i),t.register("definitions",Fi),t.register("parametersDefinitions",Ni),t.register("responsesDefinitions",qi),t.register("securityDefinitions",Bi),t.register("securityScheme",Li),t.register("scopes",Ji),t.register("securityRequirement",Gi),t}};class Wi extends o.wE{static primaryClass="operation-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Wi.primaryClass)}}const Xi=Wi;class Yi extends o.wE{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Yi.primaryClass),this.classes.push("parameters")}}const Zi=Yi;class Qi extends o.wE{static primaryClass="operation-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Qi.primaryClass)}}const eo=Qi;class to extends o.wE{static primaryClass="operation-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(to.primaryClass)}}const no=to;class so extends o.wE{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(so.primaryClass),this.classes.push("security")}}const ro=so;class io extends o.wE{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(io.primaryClass),this.classes.push("tags")}}const oo=io;class ao extends o.wE{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(ao.primaryClass),this.classes.push("parameters")}}const co=ao;class lo extends o.wE{static primaryClass="swagger-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(lo.primaryClass)}}const uo=lo;class po extends o.wE{static primaryClass="swagger-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(po.primaryClass)}}const ho=po;class mo extends o.wE{static primaryClass="swagger-produces";constructor(e,t,n){super(e,t,n),this.classes.push(mo.primaryClass)}}const fo=mo;class yo extends o.wE{static primaryClass="swagger-security";constructor(e,t,n){super(e,t,n),this.classes.push(yo.primaryClass),this.classes.push("security")}}const go=yo;class vo extends o.wE{static primaryClass="swagger-tags";constructor(e,t,n){super(e,t,n),this.classes.push(vo.primaryClass)}}const bo=vo,Eo=e=>{if(se(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},wo={SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"],...wn},xo={SwaggerElement:{info:(...e)=>new si(...e),schemes:(...e)=>new uo(...e),consumes:(...e)=>new ho(...e),produces:(...e)=>new fo(...e),paths:(...e)=>new li(...e),definitions:(...e)=>new Fi(...e),parameters:(...e)=>new Ni(...e),responses:(...e)=>new qi(...e),securityDefinitions:(...e)=>new Bi(...e),security:(...e)=>new go(...e),tags:(...e)=>new bo(...e),externalDocs:(...e)=>new di(...e)},InfoElement:{contact:(...e)=>new ii(...e),license:(...e)=>new ai(...e)},PathsElement:{"[key: *]":function(...e){return new pi(...e)}},PathItemElement:{get:(...e)=>new mi(...e),put:(...e)=>new mi(...e),post:(...e)=>new mi(...e),delete:(...e)=>new mi(...e),options:(...e)=>new mi(...e),head:(...e)=>new mi(...e),patch:(...e)=>new mi(...e),parameters:(...e)=>new co(...e)},OperationElement:{tags:(...e)=>new oo(...e),externalDocs:(...e)=>new di(...e),consumes:(...e)=>new Xi(...e),produces:(...e)=>new eo(...e),parameters:(...e)=>new Zi(...e),responses:(...e)=>new wi(...e),schemes:(...e)=>new no(...e),security:(...e)=>new ro(...e)},ParameterElement:{schema:(...e)=>new Mi(...e),items:(...e)=>new gi(...e)},ItemsElement:{items:(...e)=>new gi(...e)},ResponsesElement:{"[key: *]":function(...e){return new ji(...e)}},ResponseElement:{schema:(...e)=>new Mi(...e),headers:(...e)=>new Pi(...e),examples:(...e)=>new bi(...e)},HeadersElement:{"[key: *]":function(...e){return new Oi(...e)}},HeaderElement:{items:(...e)=>new gi(...e)},TagElement:{externalDocs:(...e)=>new di(...e)},SchemaElement:{items:(...e)=>new Mi(...e),allOf(...e){const t=new o.wE(...e);return t.classes.push("json-schema-allOf"),t},properties(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new Mi(...e),xml:(...e)=>new $i(...e),externalDocs:(...e)=>new di(...e)},DefinitionsElement:{"[key: *]":function(...e){return new Mi(...e)}},ParametersDefinitionsElement:{"[key: *]":function(...e){return new yi(...e)}},ResponsesDefinitionsElement:{"[key: *]":function(...e){return new ji(...e)}},SecurityDefinitionsElement:{"[key: *]":function(...e){return new Li(...e)}},SecuritySchemeElement:{scopes:(...e)=>new Ji(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new o.wE(...e)}},[Zi.primaryClass]:{"<*>":function(...e){return new yi(...e)}},[ro.primaryClass]:{"<*>":function(...e){return new Gi(...e)}},[co.primaryClass]:{"<*>":function(...e){return new yi(...e)}},[go.primaryClass]:{"<*>":function(...e){return new Gi(...e)}},[bo.primaryClass]:{"<*>":function(...e){return new _i(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new Mi(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Mi(...e)}}},jo=(e,t)=>{const n=Eo(e),s=xo[n]||xo[ls(e.classes.first)];return void 0===s?void 0:Object.hasOwn(s,"[key: *]")?s["[key: *]"]:s[t]},So=()=>()=>({visitor:{StringElement(e,t,n,s,r){if(!(e=>re(e)&&Ee(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...r,n].filter(se),o=i.at(-1);let a,c;return le(o)?(c=e,a=jo(o,"<*>")):ue(o)&&(c=i.at(-2),a=jo(c,ls(o.key))),"function"==typeof a?a.call({context:c},void 0,fn(e.meta),fn(e.attributes)):void 0}}});const Po=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=fs(t.meta,e.meta),ve(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=fs(t.attributes,e.attributes))}};const Oo=class extends Po{enter(e){return this.element=fn(e),rn}};const Ao=class extends Po{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Hs(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Dt(Pt,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const s=this.retrieveVisitorInstance(e,n);return s instanceof Oo&&s?.constructor===Oo?fn(t):(xn(t,s,n),s.element)}};var _o=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=f,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?h(n):n},e}();function Mo(e){return function(t){return new _o(e,t)}}const ko=l(p(["take"],Mo,function(e,t){return Te(0,e<0?1/0:e,t)}));const $o=l(function(e,t){return N(ko(e.length,t),e)}),Io=e=>re(e.key)&&$o("x-",ls(e.key)),Ro=e=>ce(e)&&e.hasKey("$ref");const To=class extends Ao{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Io;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:n,specificationExtensionPredicate:s,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach((e,s,r)=>{if(re(s)&&n.includes(ls(s))&&!this.ignoredFields.includes(ls(s))){const n=this.toRefractedElement([...t,"fixedFields",ls(s)],e),i=new o.Pr(fn(s),n);this.copyMetaAndAttributes(r,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else this.ignoredFields.includes(ls(s))||this.element.content.push(fn(r))}),this.copyMetaAndAttributes(e,this.element),rn}};class Fo extends(Fs(To,Oo)){constructor(e){super(e),this.element=new Qr,this.specPath=z(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}}const Do=Fo;class No extends(Fs(Ao,Oo)){StringElement(e){const t=new ti(ls(e));return this.copyMetaAndAttributes(e,t),this.element=t,rn}}const Co=No;const qo=class extends Oo{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}};const Vo=class extends Oo{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}};const Bo=class extends Oo{constructor(e){super(e),this.element=new uo}ArrayElement(e){return this.element=this.element.concat(fn(e)),rn}};const Ho=class extends Oo{constructor(e){super(e),this.element=new ho}ArrayElement(e){return this.element=this.element.concat(fn(e)),rn}};const Lo=class extends Oo{constructor(e){super(e),this.element=new fo}ArrayElement(e){return this.element=this.element.concat(fn(e)),rn}};class zo extends(Fs(Ao,Oo)){constructor(e){super(e),this.element=new go}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),rn}}const Jo=zo;class Uo extends(Fs(Ao,Oo)){constructor(e){super(e),this.element=new bo}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),rn}}const Go=Uo;class Ko extends(Fs(To,Oo)){constructor(e){super(e),this.element=new si,this.specPath=z(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Wo=Ko;const Xo=class extends Oo{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Yo extends(Fs(To,Oo)){constructor(e){super(e),this.element=new ii,this.specPath=z(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Zo=Yo;class Qo extends(Fs(To,Oo)){constructor(e){super(e),this.element=new ai,this.specPath=z(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const ea=Qo;const ta=class extends Ao{specPath;ignoredFields;fieldPatternPredicate=Ys;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Io;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){return e.forEach((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(ls(t))&&this.fieldPatternPredicate(ls(t))){const s=this.specPath(e),r=this.toRefractedElement(s,e),i=new o.Pr(fn(t),r);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ls(t))||this.element.content.push(fn(n))}),this.copyMetaAndAttributes(e,this.element),rn}},na=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Qr||e(s)&&t("swagger",s)&&n("object",s)),sa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof ti||e(s)&&t("swaggerVersion",s)&&n("string",s)),ra=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof si||e(s)&&t("info",s)&&n("object",s)),ia=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof ai||e(s)&&t("license",s)&&n("object",s)),oa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof ii||e(s)&&t("contact",s)&&n("object",s)),aa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof li||e(s)&&t("paths",s)&&n("object",s)),ca=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof pi||e(s)&&t("pathItem",s)&&n("object",s)),la=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof mi||e(s)&&t("operation",s)&&n("object",s)),ua=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof di||e(s)&&t("externalDocumentation",s)&&n("object",s)),pa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof yi||e(s)&&t("parameter",s)&&n("object",s)),ha=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof gi||e(s)&&t("items",s)&&n("object",s)),ma=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof wi||e(s)&&t("responses",s)&&n("object",s)),fa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof ji||e(s)&&t("response",s)&&n("object",s)),da=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Pi||e(s)&&t("headers",s)&&n("object",s)),ya=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof bi||e(s)&&t("example",s)&&n("object",s)),ga=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Oi||e(s)&&t("header",s)&&n("object",s)),va=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof _i||e(s)&&t("tag",s)&&n("object",s)),ba=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Ri||e(s)&&t("reference",s)&&n("object",s)),Ea=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Mi||e(s)&&t("schema",s)&&n("object",s)),wa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof $i||e(s)&&t("xml",s)&&n("object",s)),xa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof qi||e(s)&&t("responsesDefinitions",s)&&n("object",s)),ja=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Bi||e(s)&&t("securityDefinitions",s)&&n("object",s)),Sa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Fi||e(s)&&t("definitions",s)&&n("object",s)),Pa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Ni||e(s)&&t("parametersDefinitions",s)&&n("object",s)),Oa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Li||e(s)&&t("securityScheme",s)&&n("object",s)),Aa=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Ji||e(s)&&t("scopes",s)&&n("object",s)),_a=ne(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>s=>s instanceof Gi||e(s)&&t("securityRequirement",s)&&n("object",s));class Ma extends(Fs(ta,Oo)){element;constructor(e){super(e),this.element=new li,this.specPath=z(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=ns}ObjectElement(e){const t=ta.prototype.ObjectElement.call(this,e);return this.element.filter(ca).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",fn(t))}),t}}const ka=Ma;class $a extends(Fs(To,Oo)){constructor(e){super(e),this.element=new pi,this.specPath=z(["document","objects","PathItem"])}ObjectElement(e){const t=To.prototype.ObjectElement.call(this,e);return this.element.filter(la).forEach((e,t)=>{const n=fn(t);n.content=ls(n).toUpperCase(),e.setMetaProperty("http-method",n)}),re(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ia=$a;const Ra=class extends Oo{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Ta extends(Fs(Ao,Oo)){constructor(e){super(e),this.element=new co}ArrayElement(e){return e.forEach(e=>{const t=Ro(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);ba(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),rn}}const Fa=Ta;class Da extends(Fs(To,Oo)){constructor(e){super(e),this.element=new mi,this.specPath=z(["document","objects","Operation"])}}const Na=Da;const Ca=class extends Oo{constructor(e){super(e),this.element=new oo}ArrayElement(e){return this.element=this.element.concat(fn(e)),rn}};const qa=class extends Oo{constructor(e){super(e),this.element=new Xi}ArrayElement(e){return this.element=this.element.concat(fn(e)),rn}};const Va=class extends Oo{constructor(e){super(e),this.element=new eo}ArrayElement(e){return this.element=this.element.concat(fn(e)),rn}};class Ba extends(Fs(Ao,Oo)){constructor(e){super(e),this.element=new Zi}ArrayElement(e){return e.forEach(e=>{const t=Ro(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);ba(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),rn}}const Ha=Ba;const La=class extends Oo{constructor(e){super(e),this.element=new no}ArrayElement(e){return this.element=this.element.concat(fn(e)),rn}};class za extends(Fs(Ao,Oo)){constructor(e){super(e),this.element=new ro}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),rn}}const Ja=za;class Ua extends(Fs(To,Oo)){constructor(e){super(e),this.element=new di,this.specPath=z(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Ga=Ua;class Ka extends(Fs(To,Oo)){constructor(e){super(e),this.element=new yi,this.specPath=z(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const Wa=Ka;class Xa extends(Fs(To,Oo)){specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new gi,this.specPath=z(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}}const Ya=Xa;const Za=l(function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+ct(e));var n;return function(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}(e).test(t)});function Qa(e){return"[object Number]"===Object.prototype.toString.call(e)}const ec=l(function(e,t){if(!Qa(e)||!Qa(t))throw new TypeError("Both arguments to range must be numbers");for(var n=e<t?Math.ceil(t-e):0,s=Array(n),r=0;r<n;)s[r]=r+e,r+=1;return s});function tc(e,t,n){var s,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(s=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===s):n._nativeSet.has(e):r in n._items?e in n._items[r]||(t&&(n._items[r][e]=!0),!1):(t&&(n._items[r]={},n._items[r][e]=!0),!1);case"boolean":if(r in n._items){var i=e?1:0;return!!n._items[r][i]||(t&&(n._items[r][i]=!0),!1)}return t&&(n._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(s=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===s):n._nativeSet.has(e):r in n._items?!!C(e,n._items[r])||(t&&n._items[r].push(e),!1):(t&&(n._items[r]=[e]),!1);case"undefined":return!!n._items[r]||(t&&(n._items[r]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(r=Object.prototype.toString.call(e))in n._items?!!C(e,n._items[r])||(t&&n._items[r].push(e),!1):(t&&(n._items[r]=[e]),!1)}}const nc=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!tc(e,!0,this)},e.prototype.has=function(e){return tc(e,!1,this)},e}();const sc=l(function(e,t){for(var n=[],s=0,r=e.length,i=t.length,o=new nc,a=0;a<i;a+=1)o.add(t[a]);for(;s<r;)o.add(e[s])&&(n[n.length]=e[s]),s+=1;return n});class rc extends(Fs(To,ta)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...sc(e.keys(),t)],To.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,ta.prototype.ObjectElement.call(this,e);const s=e.keys();this.element.content.sort((e,t)=>s.indexOf(ls(e.key))-s.indexOf(ls(t.key)))}catch(e){throw this.specPath=t,e}return rn}}const ic=rc;class oc extends(Fs(ic,Oo)){constructor(e){super(e),this.element=new wi,this.specPathFixedFields=z(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Ro(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=Za(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${ec(100,600).join("|")})$`))}ObjectElement(e){const t=ic.prototype.ObjectElement.call(this,e);return this.element.filter(ba).forEach(e=>{e.setMetaProperty("referenced-element","response")}),this.element.filter(fa).forEach((e,t)=>{const n=fn(t);this.fieldPatternPredicate(ls(n))&&e.setMetaProperty("http-status-code",n)}),t}}const ac=oc;const cc=class extends Ao{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>wr(e,z(t),J)),n=Rr(t)(e);return this.element=this.toRefractedElement(n,e),rn}};class lc extends(Fs(cc,Oo)){constructor(e){super(e),this.alternator=[{predicate:Ro,specPath:["document","objects","Reference"]},{predicate:ns,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=cc.prototype.enter.call(this,e);return ba(this.element)?this.element.setMetaProperty("referenced-element","response"):fa(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const uc=lc;class pc extends(Fs(To,Oo)){constructor(e){super(e),this.element=new ji,this.specPath=z(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}const hc=pc;const mc=class extends ta{constructor(e){super(e),this.fieldPatternPredicate=Bs}};class fc extends(Fs(mc,Oo)){constructor(e){super(e),this.element=new Pi,this.specPath=z(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}const dc=fc;class yc extends(Fs(mc,Oo)){constructor(e){super(e),this.element=new bi,this.specPath=z(["value"]),this.canSupportSpecificationExtensions=!1}}const gc=yc;class vc extends(Fs(To,Oo)){constructor(e){super(e),this.element=new Oi,this.specPath=z(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const bc=vc;class Ec extends(Fs(To,Oo)){constructor(e){super(e),this.element=new _i,this.specPath=z(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const wc=Ec;class xc extends(Fs(To,Oo)){constructor(e){super(e),this.element=new Ri,this.specPath=z(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=To.prototype.ObjectElement.call(this,e);return re(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const jc=xc;const Sc=class extends Oo{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Pc extends(Fs(To,Oo)){constructor(e){super(e),this.element=new Mi,this.specPath=z(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Oc=Pc,Ac=qr.visitors.document.objects.JSONSchema.fixedFields.allOf;const _c=class extends Ac{ArrayElement(e){const t=Ac.prototype.ArrayElement.call(this,e);return this.element.filter(Dn).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Mc=qr.visitors.document.objects.JSONSchema.fixedFields.items;const kc=class extends Mc{ObjectElement(e){const t=Mc.prototype.ObjectElement.call(this,e);return Dn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){const t=Mc.prototype.ArrayElement.call(this,e);return this.element.filter(Dn).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},$c=qr.visitors.document.objects.JSONSchema.fixedFields.properties;const Ic=class extends $c{ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(Dn).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Rc=qr.visitors.JSONSchemaOrJSONReferenceVisitor;const Tc=class extends Rc{ObjectElement(e){const t=Rc.prototype.enter.call(this,e);return Dn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Fc extends(Fs(To,Oo)){constructor(e){super(e),this.element=new $i,this.specPath=z(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Dc=Fc;class Nc extends(Fs(mc,Oo)){constructor(e){super(e),this.element=new Fi,this.specPath=e=>qn(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=mc.prototype.ObjectElement.call(this,e);return this.element.filter(Dn).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}}const Cc=Nc;class qc extends(Fs(mc,Oo)){constructor(e){super(e),this.element=new qi,this.specPath=z(["document","objects","Response"])}}const Vc=qc;class Bc extends(Fs(mc,Oo)){constructor(e){super(e),this.element=new Ni,this.specPath=z(["document","objects","Parameter"])}}const Hc=Bc;class Lc extends(Fs(mc,Oo)){element;constructor(e){super(e),this.element=new Bi,this.specPath=z(["document","objects","SecurityScheme"])}}const zc=Lc;class Jc extends(Fs(To,Oo)){constructor(e){super(e),this.element=new Li,this.specPath=z(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Uc=Jc;class Gc extends(Fs(mc,Oo)){constructor(e){super(e),this.element=new Ji,this.specPath=z(["value"]),this.canSupportSpecificationExtensions=!0}}const Kc=Gc;class Wc extends(Fs(mc,Oo)){constructor(e){super(e),this.element=new Gi,this.specPath=z(["value"])}}const Xc=Wc;const Yc=class extends Ao{MemberElement(e){return this.element=fn(e),this.element.classes.push("specification-extension"),rn}},{fixedFields:Zc}=qr.visitors.document.objects.JSONSchema,Qc={visitors:{value:Oo,document:{objects:{JSONReference:qr.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:Do,fixedFields:{swagger:Co,info:{$ref:"#/visitors/document/objects/Info"},host:qo,basePath:Vo,schemes:Bo,consumes:Ho,produces:Lo,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:Jo,tags:Go,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Wo,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:Xo}},Contact:{$visitor:Zo,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:ea,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:ka},PathItem:{$visitor:Ia,fixedFields:{$ref:Ra,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"},parameters:Fa}},Operation:{$visitor:Na,fixedFields:{tags:Ca,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:qa,produces:Va,parameters:Ha,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:La,deprecated:{$ref:"#/visitors/value"},security:Ja}},ExternalDocumentation:{$visitor:Ga,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Wa,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:Zc.description,required:Zc.required,schema:Tc,type:Zc.type,format:Zc.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Zc.default,maximum:Zc.maximum,exclusiveMaximum:Zc.exclusiveMaximum,minimum:Zc.minimum,exclusiveMinimum:Zc.exclusiveMinimum,maxLength:Zc.maxLength,minLength:Zc.minLength,pattern:Zc.pattern,maxItems:Zc.maxItems,minItems:Zc.minItems,uniqueItems:Zc.uniqueItems,enum:Zc.enum,multipleOf:Zc.multipleOf}},Items:{$visitor:Ya,fixedFields:{type:Zc.type,format:Zc.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Zc.default,maximum:Zc.maximum,exclusiveMaximum:Zc.exclusiveMaximum,minimum:Zc.minimum,exclusiveMinimum:Zc.exclusiveMinimum,maxLength:Zc.maxLength,minLength:Zc.minLength,pattern:Zc.pattern,maxItems:Zc.maxItems,minItems:Zc.minItems,uniqueItems:Zc.uniqueItems,enum:Zc.enum,multipleOf:Zc.multipleOf}},Responses:{$visitor:ac,fixedFields:{default:uc}},Response:{$visitor:hc,fixedFields:{description:{$ref:"#/visitors/value"},schema:Tc,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:dc},Example:{$visitor:gc},Header:{$visitor:bc,fixedFields:{description:Zc.description,type:Zc.type,format:Zc.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Zc.default,maximum:Zc.maximum,exclusiveMaximum:Zc.exclusiveMaximum,minimum:Zc.minimum,exclusiveMinimum:Zc.exclusiveMinimum,maxLength:Zc.maxLength,minLength:Zc.minLength,pattern:Zc.pattern,maxItems:Zc.maxItems,minItems:Zc.minItems,uniqueItems:Zc.uniqueItems,enum:Zc.enum,multipleOf:Zc.multipleOf}},Tag:{$visitor:wc,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:jc,fixedFields:{$ref:Sc}},Schema:{$visitor:Oc,fixedFields:{format:Zc.format,title:Zc.title,description:Zc.description,default:Zc.default,multipleOf:Zc.multipleOf,maximum:Zc.maximum,exclusiveMaximum:Zc.exclusiveMaximum,minimum:Zc.minimum,exclusiveMinimum:Zc.exclusiveMinimum,maxLength:Zc.maxLength,minLength:Zc.minLength,pattern:Zc.pattern,maxItems:Zc.maxItems,minItems:Zc.minItems,uniqueItems:Zc.uniqueItems,maxProperties:Zc.maxProperties,minProperties:Zc.minProperties,required:Zc.required,enum:Zc.enum,type:Zc.type,readOnly:Zc.readOnly,items:kc,allOf:_c,properties:Ic,additionalProperties:Tc,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Dc,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Cc},ParametersDefinitions:{$visitor:Hc},ResponsesDefinitions:{$visitor:Vc},SecurityDefinitions:{$visitor:zc},SecurityScheme:{$visitor:Uc,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:Kc},SecurityRequirement:{$visitor:Xc}},extension:{$visitor:Yc}}}},el=()=>{const e=Kt(Ki);return{predicates:{...r,...i,isStringElement:re},namespace:e}},tl=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const s=(0,o.e)(e),r=ts(Qc),i=new(Ie(t,r))({specObj:r});return xn(s,i),Sn(i.element,n,{toolboxCreator:el,visitorOptions:{keyMap:wo,nodeTypeGetter:Eo}})},nl=e=>(t,n={})=>tl(t,{specPath:e,...n}),sl=tl})(),s})());
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsOpenApi2=t():e.apidomNsOpenApi2=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:()=>wo,BaseAlternatingVisitor:()=>Ao,BaseFixedFieldsVisitor:()=>ko,BaseMapVisitor:()=>jo,BaseMixedFieldsVisitor:()=>Fo,BasePatternedFieldsVisitor:()=>Io,BaseSpecificationVisitor:()=>Po,ContactElement:()=>Rr,DefinitionsElement:()=>si,ExampleElement:()=>Xr,ExternalDocumentationElement:()=>Vr,FallbackVisitor:()=>co,FixedFieldsVisitor:()=>go,HeaderElement:()=>Yr,HeadersElement:()=>Kr,InfoElement:()=>qr,ItemsElement:()=>zr,JSONReferenceElement:()=>D,LicenseElement:()=>Br,MapVisitor:()=>xo,MixedFieldsVisitor:()=>So,MixedFieldsVisitorBase:()=>Oo,OpenAPIMediaTypes:()=>Cr,OperationConsumesElement:()=>pi,OperationElement:()=>Ur,OperationParametersElement:()=>hi,OperationProducesElement:()=>fi,OperationSchemesElement:()=>yi,OperationSecurityElement:()=>wi,OperationTagsElement:()=>vi,ParameterElement:()=>Gr,ParametersDefinitionsElement:()=>ni,PathItemElement:()=>Hr,PathItemParametersElement:()=>Oi,PathsElement:()=>Lr,PatternedFieldsVisitor:()=>yo,ReferenceElement:()=>ti,ResponseElement:()=>Wr,ResponsesDefinitionsElement:()=>ri,ResponsesElement:()=>Jr,SchemaElement:()=>Qr,ScopesElement:()=>ci,SecurityDefinitionsElement:()=>ii,SecurityRequirementElement:()=>ai,SecuritySchemeElement:()=>oi,SpecificationVisitor:()=>ao,SwaggerConsumesElement:()=>Ii,SwaggerElement:()=>Nr,SwaggerProducesElement:()=>Ai,SwaggerSchemesElement:()=>Pi,SwaggerSecurityElement:()=>Mi,SwaggerTagsElement:()=>Di,SwaggerVersionElement:()=>_r,TagElement:()=>Zr,Visitor:()=>oo,XmlElement:()=>ei,default:()=>li,isContactElement:()=>Jo,isDefinitionsElement:()=>dc,isExampleElement:()=>rc,isExternalDocumentationElement:()=>Zo,isHeaderElement:()=>ic,isHeadersElement:()=>nc,isInfoElement:()=>zo,isItemsElement:()=>ec,isJSONReferenceElement:()=>C,isJSONReferenceLikeElement:()=>J,isLicenseElement:()=>Xo,isOperationElement:()=>Yo,isParameterElement:()=>Qo,isParametersDefinitionsElement:()=>hc,isPathItemElement:()=>Ko,isPathsElement:()=>Wo,isReferenceElement:()=>cc,isReferenceLikeElement:()=>fo,isResponseElement:()=>sc,isResponsesDefinitionsElement:()=>uc,isResponsesElement:()=>tc,isSchemaElement:()=>ac,isScopesElement:()=>fc,isSecurityDefinitionsElement:()=>pc,isSecurityRequirementElement:()=>gc,isSecuritySchemeElement:()=>mc,isSwaggerElement:()=>Vo,isSwaggerExtension:()=>mo,isSwaggerVersionElement:()=>Go,isTagElement:()=>oc,isXmlElement:()=>lc,mediaTypes:()=>$r,refract:()=>Na,refractContact:()=>da,refractDefinitions:()=>Aa,refractExample:()=>Oa,refractExternalDocumentation:()=>ya,refractHeader:()=>Sa,refractHeaders:()=>Ea,refractInfo:()=>pa,refractItems:()=>wa,refractLicense:()=>ha,refractOperation:()=>ga,refractParameter:()=>xa,refractParametersDefinitions:()=>Fa,refractPathItem:()=>fa,refractPaths:()=>ma,refractReference:()=>ka,refractResponse:()=>va,refractResponses:()=>ba,refractResponsesDefinitions:()=>Ma,refractSchema:()=>Ia,refractScopes:()=>Ca,refractSecurityDefinitions:()=>Ta,refractSecurityRequirement:()=>$a,refractSecurityScheme:()=>Da,refractSwagger:()=>ua,refractTag:()=>Pa,refractXml:()=>ja,refractorPluginReplaceEmptyElement:()=>Ni,specificationObj:()=>ca});var s={};e.r(s),e.d(s,{isReferenceLikeElement:()=>fo,isSwaggerExtension:()=>mo});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){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 c(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function a(e,t,s){for(var n=0,r=s.length;n<r;){if(e(t,s[n]))return!0;n+=1}return!1}function l(e,t){return Object.prototype.hasOwnProperty.call(t,e)}e.r(n),e.d(n,{isContactElement:()=>Jo,isDefinitionsElement:()=>dc,isExampleElement:()=>rc,isExternalDocumentationElement:()=>Zo,isHeaderElement:()=>ic,isHeadersElement:()=>nc,isInfoElement:()=>zo,isItemsElement:()=>ec,isLicenseElement:()=>Xo,isOperationElement:()=>Yo,isParameterElement:()=>Qo,isParametersDefinitionsElement:()=>hc,isPathItemElement:()=>Ko,isPathsElement:()=>Wo,isReferenceElement:()=>cc,isResponseElement:()=>sc,isResponsesDefinitionsElement:()=>uc,isResponsesElement:()=>tc,isSchemaElement:()=>ac,isScopesElement:()=>fc,isSecurityDefinitionsElement:()=>pc,isSecurityRequirementElement:()=>gc,isSecuritySchemeElement:()=>mc,isSwaggerElement:()=>Vo,isSwaggerVersionElement:()=>Go,isTagElement:()=>oc,isXmlElement:()=>lc});const u="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var p=Object.prototype.toString;const d=function(){return"[object Arguments]"===p.call(arguments)?function(e){return"[object Arguments]"===p.call(e)}:function(e){return l("callee",e)}}();var h=!{toString:null}.propertyIsEnumerable("toString"),m=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],f=function(){return arguments.propertyIsEnumerable("length")}(),g=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},y="function"!=typeof Object.keys||f?i(function(e){if(Object(e)!==e)return[];var t,s,n=[],r=f&&d(e);for(t in e)!l(t,e)||r&&"length"===t||(n[n.length]=t);if(h)for(s=m.length-1;s>=0;)l(t=m[s],e)&&!g(n,t)&&(n[n.length]=t),s-=1;return n}):i(function(e){return Object(e)!==e?[]:Object.keys(e)});const x=y;const w=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function b(e,t,s,n){var r=c(e);function i(e,t){return v(e,t,s.slice(),n.slice())}return!a(function(e,t){return!a(i,t,e)},c(t),r)}function v(e,t,s,n){if(u(e,t))return!0;var r,i,o=w(e);if(o!==w(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||!u(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!u(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&&b(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&b(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=x(e);if(a.length!==x(t).length)return!1;var p=s.concat([e]),d=n.concat([t]);for(c=a.length-1;c>=0;){var h=a[c];if(!l(h,t)||!v(t[h],e[h],p,d))return!1;c-=1}return!0}const E=o(function(e,t){return v(e,t,[],[])});const O=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class S{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 S(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 S(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 P=S;class k{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 k)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 O)this._content=e;else if(e instanceof P)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 k?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 k?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 O){const t=[];return e.key&&t.push(e.key),e.value&&t.push(e.value),t}return e instanceof k?[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 k||e instanceof O?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){return E(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 I=k;class j extends I{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 A=j;const F=class extends I{constructor(e,t,s,n){super(new O,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 M=class extends A{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 F(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 P(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 P(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 T=class extends M{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 D=class extends M{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)}},C=e=>e instanceof D;const $=class extends I{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content?.length??0}};const N=class extends I{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const _=class extends I{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 q=class extends I{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};const R=class extends A{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([])}},B=e=>e instanceof I,L=e=>e instanceof $,H=e=>e instanceof N,U=e=>e instanceof _,V=e=>e instanceof q,G=e=>e instanceof R,z=e=>e instanceof M,X=e=>e instanceof F,J=e=>z(e)&&e.hasKey("$ref");function W(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}const K=o(function(e,t){return W(function(s,n){return s[n]=e(t[n],n,t),s},{},x(t))});const Y=i(function(e){return null==e});var Z=o(function(e,t){if(0===e.length||Y(t))return!1;for(var s=t,n=0;n<e.length;){if(Y(s)||!l(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const Q=Z;var ee=o(function(e,t){return Q([e],t)});const te=ee;function se(e){return function t(s,n,c){switch(arguments.length){case 0:return t;case 1:return r(s)?t:o(function(t,n){return e(s,t,n)});case 2:return r(s)&&r(n)?t:r(s)?o(function(t,s){return e(t,n,s)}):r(n)?o(function(t,n){return e(s,t,n)}):i(function(t){return e(s,n,t)});default:return r(s)&&r(n)&&r(c)?t:r(s)&&r(n)?o(function(t,s){return e(t,s,c)}):r(s)&&r(c)?o(function(t,s){return e(t,n,s)}):r(n)&&r(c)?o(function(t,n){return e(s,t,n)}):r(s)?i(function(t){return e(t,n,c)}):r(n)?i(function(t){return e(s,t,c)}):r(c)?i(function(t){return e(s,n,t)}):e(s,n,c)}}}const ne=Number.isInteger||function(e){return(e|0)===e};function re(e,t){return t[e<0?t.length+e:e]}const ie=o(function(e,t){if(null!=t)return ne(e)?re(e,t):t[e]});const oe=se(function(e,t,s){return e(ie(t,s))});function ce(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=ne(r)?re(r,s):s[r]}return s}const ae=o(ce);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 ue(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const pe=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function de(e){return"[object String]"===Object.prototype.toString.call(e)}const he=i(function(e){return!!pe(e)||!!e&&("object"==typeof e&&(!de(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var me="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function fe(e,t,s){return function(n,r,i){if(he(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[me])return s(n,r,i[me]());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 ge(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 ye=o(function(e,t){return le(e.length,function(){return e.apply(t,arguments)})});function xe(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 we(e,t,s,n){return e["@@transducer/result"](s[n](ye(e["@@transducer/step"],e),t))}const be=fe(ge,we,xe);var ve=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 Ee=se(function(e,t,s){return be("function"==typeof e?new ve(e):e,t,s)});function Oe(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return pe(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const Se=se(Oe("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const Pe=i(Oe("tail",Se(1,1/0)));function ke(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return le(arguments[0].length,Ee(ue,arguments[0],Pe(arguments)))}var Ie=function(e,t){switch(arguments.length){case 0:return Ie;case 1:return function t(s){return 0===arguments.length?t:u(e,s)};default:return u(e,t)}};const je=Ie;function Ae(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(E(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function Fe(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}function Me(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 Te=function(e){return(e<10?"0":"")+e};const De="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Te(e.getUTCMonth()+1)+"-"+Te(e.getUTCDate())+"T"+Te(e.getUTCHours())+":"+Te(e.getUTCMinutes())+":"+Te(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Ce(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!pe(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 $e(e){return"[object Object]"===Object.prototype.toString.call(e)}const Ne=function(){return this.xf["@@transducer/init"]()},_e=function(e){return this.xf["@@transducer/result"](e)};var qe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ne,e.prototype["@@transducer/result"]=_e,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Re(e){return function(t){return new qe(e,t)}}var Be=o(Ce(["fantasy-land/filter","filter"],Re,function(e,t){return $e(t)?W(function(s,n){return e(t[n])&&(s[n]=t[n]),s},{},x(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 Le=Be;const He=o(function(e,t){return Le((s=e,function(){return!s.apply(this,arguments)}),t);var s});function Ue(e,t){var s=function(s){var n=t.concat([e]);return Ae(s,n)?"<Circular>":Ue(s,n)},n=function(e,t){return Fe(function(t){return Me(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Fe(s,e).join(", ")+"))";case"[object Array]":return"["+Fe(s,e).concat(n(e,He(function(e){return/^\d+$/.test(e)},x(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):Me(De(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())+")":Me(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,x(e)).join(", ")+"}"}}const Ve=i(function(e){return Ue(e,[])});const Ge=se(function(e,t,s){return e(ce(t,s))});function ze(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Xe=o(function(e,t){return e&&t});function Je(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function We(e,t,s,n){return s[n](e,t)}const Ke=fe(W,We,Je);var Ye=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ne,e.prototype["@@transducer/result"]=_e,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Ze=function(e){return function(t){return new Ye(e,t)}};function Qe(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),Qe(e,n,s))}}const et=o(function(e,t){return 1===e?i(t):le(e,Qe(e,[],t))});const tt=o(Ce(["fantasy-land/map","map"],Ze,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return et(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return W(function(s,n){return s[n]=e(t[n]),s},{},x(t));default:return Fe(e,t)}}));const st=o(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))}:Ke(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,tt(s,t))},[],e)});const nt=o(function(e,t){var s=et(e,t);return et(e,function(){return W(st,tt(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const rt=i(function(e){return nt(e.length,e)});const it=o(function(e,t){return ze(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:rt(Xe)(e,t)});const ot=E(null);const ct=rt(i(function(e){return!e}));const at=ct(ot);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 ut=function(e){return"object"===lt(e)};const pt=et(1,it(at,ut));const dt=o(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=Ve(e),o=s(i,Ve(t));return void 0!==o&&o===i?e:t});const ht=o(function(e,t){return tt(ie(e),t)});const mt=i(function(e){return et(Ee(dt,0,ht("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 ft=et(1,ke(w,je("GeneratorFunction")));const gt=et(1,ke(w,je("AsyncFunction")));const yt=mt([ke(w,je("Function")),ft,gt]);var xt=ke(w,je("Object")),wt=ke(Ve,E(Ve(Object))),bt=Ge(it(yt,wt),["constructor"]);const vt=et(1,function(e){if(!pt(e)||!xt(e))return!1;var t=Object.getPrototypeOf(e);return!!ot(t)||bt(t)});const Et=et(1,ke(w,je("String")));const Ot=i(function(e){return et(e.length,e)});const St=o(function(e,t){return et(e+1,function(){var s=arguments[e];if(null!=s&&ze(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ve(s)+' does not have a method named "'+t+'"')})});const Pt=St(1,"split");var kt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ne,e.prototype["@@transducer/result"]=_e,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 It(e){return function(t){return new kt(e,t)}}const jt=o(Ce(["dropWhile"],It,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return Se(s,1/0,t)}));const At=St(1,"join");const Ft=i(function(e){return et(e.length,function(t,s){var n=Array.prototype.slice.call(arguments,0);return n[0]=s,n[1]=t,e.apply(this,n)})})(o(Ae));const Mt=Ot(function(e,t){return ke(Pt(""),jt(Ft(e)),At(""))(t)}),Tt=new WeakMap,Dt=e=>{if(Tt.has(e))return Tt.get(e);const t={},s=(e,n,r)=>("string"==typeof e.element&&(t[e.element]=e.$visitor?[...r,"$visitor"]:r),K((e,t)=>{const i=[...r,t];if(vt(e)&&te("$ref",e)&&oe(Et,"$ref",e)){const t=ae(["$ref"],e),s=Mt("#/",t);return ae(s.split("/"),n)}return vt(e)?s(e,n,i):e},e)),n=s(e,e,[]);return n.elementMap=t,Tt.set(e,n),n};const Ct=class extends M{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 $t=class extends M{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)}},Nt=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,_t=(e,t)=>0===t.length||!!B(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class qt extends ${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(Bt).join("");const a=new qt(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=Lt(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const Rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Bt(e){let t=e>>>0,s="";do{let e=31&t;t>>>=5,0!==t&&(e|=32),s+=Rt[e]}while(0!==t);return s}function Lt(e,t=0){let s=0,n=0,r=t;for(;;){const t=e[r++],i=Rt.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 Ht=qt;class Ut 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 Vt=Ut;class Gt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Vt,e)}constructor(e,t){super(e,t),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const zt=Gt;const Xt=class extends zt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const Jt=class extends Xt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Wt=class extends Jt{};const Kt=class extends Jt{},Yt=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=ts(e);s.set(e,r);const{content:i}=e;return Array.isArray(i)?r.content=i.map(e=>Yt(e,n)):B(i)?r.content=Yt(i,n):r.content=i instanceof O?Zt(i,n):i,r},Zt=(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?Yt(r,n):void 0,c=void 0!==i?Yt(i,n):void 0,a=new O(o,c);return s.set(e,a),a},Qt=(e,t={})=>{if(e instanceof O)return Zt(e,t);if(e instanceof P)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=>Yt(e,n)),i=new P(r);return s.set(e,i),i})(e,t);if(B(e))return Yt(e,t);throw new Wt("Value provided to cloneDeep function couldn't be cloned",{value:e})};Qt.safe=e=>{try{return Qt(e)}catch{return e}};const es=e=>{const{key:t,value:s}=e;return new O(t,s)},ts=e=>{const t=new(0,e.constructor);t.element=e.element,e.isMetaEmpty||(t.meta=Qt(e.meta)),e.isAttributesEmpty||(t.attributes=Qt(e.attributes)),Nt(e)&&Ht.transfer(e,t);const{content:s}=e;return B(s)?t.content=ts(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof O?es(s):s,t},ss=e=>{if(e instanceof O)return es(e);if(e instanceof P)return(e=>{const t=[...e];return new P(t)})(e);if(B(e))return ts(e);throw new Kt("Value provided to cloneShallow function couldn't be cloned",{value:e})};ss.safe=e=>{try{return ss(e)}catch{return e}};const ns=class extends I{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 rs=class extends I{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 is=class extends ${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 os=class extends ${constructor(e,t,s){super(e,t,s),this.element="comment"}};const cs=class extends R{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>_t(e,["api"])).first}get results(){return this.filter(e=>_t(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&&_t(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&_t(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)}},as=e=>e instanceof ns,ls=e=>e instanceof rs,us=e=>{if(!B(e))return e;if(L(e)||H(e)||V(e)||U(e))return e.toValue();const t=new WeakMap,s=e=>{if(!B(e))return e;if(z(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(G(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 ls(e)?String(e.toValue()):as(e)?L(e.href)?e.href.toValue():"":e.toValue()};return s(e)},ps=e=>{const t=e.isMetaEmpty?void 0:Qt(e.meta),s=e.isAttributesEmpty?void 0:Qt(e.attributes);return new e.constructor(void 0,t,s)},ds=(e,t)=>t.clone&&t.isMergeableElement(e)?ms(ps(e),e,t):e,hs={clone:!0,isMergeableElement:e=>z(e)||G(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>ds(e,s))),objectElementMerge:(e,t,s)=>{const n=z(e)?ps(e):ps(t);return z(e)&&e.forEach((e,t,r)=>{const i=ss(r);i.value=ds(e,s),n.content.push(i)}),t.forEach((t,r,i)=>{const o=us(r);let c;if(z(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=ss(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return ms;const s=t.customMerge(e,t);return"function"==typeof s?s:ms})(r,s)(n,t,s)}else c=ss(i),c.value=ds(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},ms=(e,t,s)=>{const n={...hs,...s};n.isMergeableElement=n.isMergeableElement??hs.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??hs.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??hs.objectElementMerge;const r=G(t);if(!(r===G(e)))return ds(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=>Qt(e):e.customMetaMerge)(n)(e.meta,t.meta),i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Qt(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),i};ms.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new M:e.reduce((e,s)=>ms(e,s,t),ps(e[0]))};const fs=ms;const gs=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new M:t.meta,n=e.isMetaEmpty?new M:e.meta;t.meta=fs(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new M:t.attributes,n=e.isAttributesEmpty?new M:e.attributes;t.attributes=fs(s,n)}Ht.transfer(e,t)}};const ys=class extends gs{enter(e){this.element=Qt(e.node),e.stop()}};const xs=i(function(e){return function(){return e}});const ws=o(function(e,t){return null==t||t!=t?e:t});const bs=xs(void 0);const vs=E(bs());const Es=i(function(e){return et(Ee(dt,0,ht("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 Os=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:pe(e)?[]:de(e)?"":$e(e)?{}:d(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 Ss=Os;const Ps=i(function(e){return null!=e&&E(e,Ss(e))});const ks=i(function(e){return!Ps(e)});const Is=o(function(e,t){return e||t});const js=et(1,it(at,o(function(e,t){return ze(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:rt(Is)(e,t)})(ut,yt)));var As=ct(js);const Fs=Es([Et,As,ks]);const Ms=o(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}),Ts=function(){const e=Cs,t=Ds,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,d=0,h=0,m=0,f=0,g=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(y,x,b,v)=>{const E=`${n}parse(): `;p=0,d=0,h=0,m=0,f=0,r=void 0,i=void 0,o=void 0,c=void 0,g.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(b),r=y.rules,i=y.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=v,o=[{type:e.RNM,index:S}],w(0,0),o=void 0;let P=!1;switch(g.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:P=!1;break;case e.EMPTY:case e.MATCH:P=g.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:P,state:g.state,stateName:e.idName(g.state),length:c.length,matched:g.phraseLength,maxMatched:f,maxTreeDepth:h,nodeHits:m}};const y=(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 d,h,m;const f=o[t],y=i[f.index];g.UdtIndex=y.index,p||(m=s.ast&&s.ast.udtDefined(f.index),m&&(h=r.length+f.index,d=s.ast.getLength(),s.ast.down(h,y.name)));const x=c.length-a;l[f.index](g,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}`)}})(y,g,x),p||m&&(g.state===e.NOMATCH?s.ast.setLength(d):s.ast.up(h,y.name,a,g.phraseLength))},w=(t,i)=>{const l=`${n}opExecute(): `,b=o[t];switch(m+=1,d>h&&(h=d),d+=1,g.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&&(w(n.children[t],s),g.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(w(l.children[t],c),g.state===e.NOMATCH){r=!1;break}c+=g.phraseLength,a+=g.phraseLength}r?(g.state=0===a?e.EMPTY:e.MATCH,g.phraseLength=a):(g.state=e.NOMATCH,g.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 g.state=e.EMPTY,void(g.phraseLength=0);for(i=n,a=0,l=0,s.ast&&(r=s.ast.getLength());!(i>=c.length)&&(w(t+1,i),g.state!==e.NOMATCH)&&g.state!==e.EMPTY&&(l+=1,a+=g.phraseLength,i+=g.phraseLength,l!==u.max););g.state===e.EMPTY||l>=u.min?(g.state=0===a?e.EMPTY:e.MATCH,g.phraseLength=a):(g.state=e.NOMATCH,g.phraseLength=0,s.ast&&s.ast.setLength(r))})(t,i);break;case e.RNM:((t,n)=>{let i,l,d;const h=o[t],m=r[h.index],f=a[m.index];if(p||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(i=s.ast.getLength(),s.ast.down(h.index,r[h.index].name))),f){const t=c.length-n;f(g,c,n,u),y(m,g,t,!0),g.state===e.ACTIVE&&(d=o,o=m.opcodes,w(0,n),o=d,f(g,c,n,u),y(m,g,t,!1))}else d=o,o=m.opcodes,w(0,n,g),o=d;p||l&&(g.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(h.index,m.name,n,g.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const n=o[t];g.state=e.NOMATCH,s<c.length&&n.min<=c[s]&&c[s]<=n.max&&(g.state=e.MATCH,g.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const n=o[t],r=n.string.length;if(g.state=e.NOMATCH,s+r<=c.length){for(let e=0;e<r;e+=1)if(c[s+e]!==n.string[e])return;g.state=e.MATCH,g.phraseLength=r}})(t,i);break;case e.TLS:((t,s)=>{let n;const r=o[t];g.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;g.state=e.MATCH,g.phraseLength=i}}else g.state=e.EMPTY})(t,i);break;case e.UDT:x(t,i);break;case e.AND:((t,s)=>{switch(p+=1,w(t+1,s),p-=1,g.phraseLength=0,g.state){case e.EMPTY:case e.MATCH:g.state=e.EMPTY;break;case e.NOMATCH:g.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${g.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(p+=1,w(t+1,s),p-=1,g.phraseLength=0,g.state){case e.EMPTY:case e.MATCH:g.state=e.NOMATCH;break;case e.NOMATCH:g.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${g.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+g.phraseLength>f&&(f=i+g.phraseLength),s.stats&&s.stats.collect(b,g),s.trace&&s.trace.up(b,g.state,i,g.phraseLength),d-=1}},Ds={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)}},Cs={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 Cs.ALT:return"ALT";case Cs.CAT:return"CAT";case Cs.REP:return"REP";case Cs.RNM:return"RNM";case Cs.TRG:return"TRG";case Cs.TBS:return"TBS";case Cs.TLS:return"TLS";case Cs.UDT:return"UDT";case Cs.AND:return"AND";case Cs.NOT:return"NOT";case Cs.ACTIVE:return"ACTIVE";case Cs.EMPTY:return"EMPTY";case Cs.MATCH:return"MATCH";case Cs.NOMATCH:return"NOMATCH";case Cs.SEM_PRE:return"SEM_PRE";case Cs.SEM_POST:return"SEM_POST";case Cs.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function $s(){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 Ns 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 _s=Ns;new $s;new $s,new Ts,new $s,new Ts,new $s,new Ts,new $s,new Ts;const qs=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 Rs=class extends _s{},Bs=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 qs(String(e))}).join("/")}`}catch(t){throw new Rs("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class Ls 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 Hs=Ls;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 Us=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 Vs=class extends Hs{},Gs=e=>{if(!Array.isArray(e))throw new Vs("Selectors must be an array, got: "+typeof e,{selectors:e});try{return`$${e.map(e=>{if("string"==typeof e)return`['${Us(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 Vs("Failed to compile normalized JSONPath",{cause:t,selectors:e})}};class zs{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?Gs(t):Bs(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 Xs=et(1,it(js,ke(Ve,E("[object Promise]")))),Js=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},Ws=e=>B(e),Ks=e=>ss(e),Ys=(e,t,s)=>{X(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},Zs=e=>X(e)?["key","value"]:G(e)||z(e)?["content"]:[],Qs=(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]}},en=(e,t,s)=>{if(void 0===t)return null;const n=e,r=s?"leave":"enter",i=Qs(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=Qs(o,t);if("function"==typeof e)return e}return null},tn=(e,t={})=>{const{visitFnGetter:s=en,nodeTypeGetter:n=Js,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=nn(t,a),n=i.call(e[u],s);if(Xs(n))throw new Xt("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=nn(t,r),n=i.call(e[a],s);if(Xs(n))throw new Xt("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)}}},sn=(e,t={})=>{const{visitFnGetter:s=en,nodeTypeGetter:n=Js,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=nn(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=nn(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 nn(e,t){return new zs(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 d,h,m=Array.isArray(e),f=[e],g=-1,y=[],x=e,w=null,b=null;const v=[];do{g+=1;const e=g===f.length;let s;const E=e&&0!==y.length;if(e){if(s=0===v.length?void 0:w?.key,x=h,h=v.pop(),b=w?.parentPath?.parentPath??null,E)if(l)for(const[e,t]of y)u(x,e,t);else if(m){x=x.slice();let e=0;for(const[t,s]of y){const n=t-e;null===s?(x.splice(n,1),e+=1):x[n]=s}}else{x=c(x);for(const[e,t]of y)x[e]=t}if(void 0!==d){g=d.index,f=d.keys,y=d.edits;const e=d.inArray;if(b=d.parentPath,d=d.prev,E&&!l){const t=e?g:f[g];y.push([t,x])}m=e}}else if(void 0!==h&&(s=m?g:f[g],x=h[s],void 0===x))continue;if(!Array.isArray(x)){if(!o(x))throw new Xt(`Invalid AST Node: ${String(x)}`,{node:x});if(a&&v.includes(x))continue;w=new zs(x,h,b,s,m);const n=en(t,i(x),e);if(n){for(const[e,s]of Object.entries(r))t[e]=s;const i=yield{visitFn:n,path:w,isLeaving:e};if(w.shouldStop)break;if(w.shouldSkip&&!e)continue;if(w.removed){if(y.push([s,null]),!e)continue}else if(w._wasReplaced()){const t=w._getReplacementNode();if(y.push([s,t]),!e){if(!o(t))continue;x=t}}else if(void 0!==i&&(y.push([s,i]),!e)){if(!o(i))continue;x=i}w._markStale()}}if(!e){if(d={inArray:m,index:g,keys:f,edits:y,parentPath:b,prev:d},m=Array.isArray(x),m)f=x;else if(p)f=n(x);else{const e=i(x);f=void 0!==e?n[e]??[]:[]}g=-1,y=[],void 0!==h&&v.push(h),h=x,b=w}}while(void 0!==d);return 0!==y.length?y.at(-1)[1]:e}tn[Symbol.for("nodejs.util.promisify.custom")]=sn;const on=(e,t,s={})=>{const n=rn(e,t,{keyMap:s.keyMap??Zs,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Js,nodePredicate:s.nodePredicate??Ws,nodeCloneFn:s.nodeCloneFn??Ks,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??Ys});let r=n.next();for(;!r.done;){const e=r.value,s=e.visitFn.call(t,e.path);if(Xs(s))throw new Xt("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});r=n.next(s)}return r.value},cn=async(e,t,s={})=>{const n=rn(e,t,{keyMap:s.keyMap??Zs,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Js,nodePredicate:s.nodePredicate??Ws,nodeCloneFn:s.nodeCloneFn??Ks,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??Ys});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};on[Symbol.for("nodejs.util.promisify.custom")]=cn,zs.prototype.traverse=function(e,t){return on(this.node,e,t)},zs.prototype.traverseAsync=function(e,t){return cn(this.node,e,t)};const an=class extends gs{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Ms(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ae(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ge(yt,["visitors",...e],this.specObj)?ae(["visitors",...e],this.specObj):ae(["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 ys&&n?.constructor===ys?Qt(t):(on(t,n,s),n.element)}};const ln=class extends an{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=us(t);if(L(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new F(Qt(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(Qt(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},un=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},pn=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:pn(s,[...t,s])},dn=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>pn(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=pn(r);for(let t of e){let e=pn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(un(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},hn=e=>e.filter((t,s)=>e.indexOf(t)==s),mn=(e,t)=>{const s=t.map(e=>pn(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++}},fn=(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(mn(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==mn(n,e)||void 0!==t[n],get:(s,n)=>(mn(n,e)||t)[n],set(t,s,n){const r=mn(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)))}),gn=null,yn="copy",xn="copy",wn="deep",bn=new WeakMap,vn=e=>bn.get(e),En=(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},On=(e,t)=>{var s,n,r,i;return{property:En(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:En(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Sn=(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:On(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:On(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Pn=new Map,kn=(...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=[...pn(e.prototype).map(e=>e.constructor),...null!==(t=vn(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=>Pn.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>Sn(e,t))},In=e=>{let t=Pn.get(e);return t||(t={},Pn.set(e,t)),t};function jn(...e){var t,s,n;const r=e.map(e=>e.prototype),i=gn;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)un(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===xn?dn(r,o):(c=r,a=o,fn([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===yn?dn(e,null,["prototype"]):fn(e,Function.prototype));let l=o;if("none"!==wn){const r="deep"===wn?kn(...e):((...e)=>{const t=e.map(e=>In(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>Sn(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)}An(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},l),An(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},l.prototype)}var u,p;return u=l,p=e,bn.set(u,p),l}const An=(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 Fn=function(){return!1};const Mn=class extends an{specPath;ignoredFields;fieldPatternPredicate=Fn;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=us(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new F(Qt(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(Qt(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Tn=class extends Mn{constructor(e){super(e),this.fieldPatternPredicate=Fs}};const Dn=class{parent;constructor({parent:e}){this.parent=e}},Cn=jn(ln,Dn,ys),$n=jn(ln,ys),Nn=jn(ln,ys),_n=jn(ln,ys),qn=jn(an,Dn,ys),Rn=jn(an,Dn,ys),Bn=jn(an,Dn,ys),Ln=jn(an,Dn,ys),Hn=jn(an,Dn,ys),Un=jn(Tn,Dn,ys),Vn=jn(Tn,Dn,ys),Gn=jn(Tn,Dn,ys),zn=jn(Tn,Dn,ys);const Xn=class extends Cn{constructor(e){super(e),this.element=new T,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,ln.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(vs(this.parent)&&!L(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof T&&!L(e.get("$schema"))){const e=ws(us(this.parent.meta.get("inheritedDialectIdentifier")),us(this.parent.$schema));this.element.meta.set("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?Qt(this.parent.meta.get("ancestorsSchemaIdentifiers")??new R):new R,n=us(e.get(t));Fs(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}};const Jn=class extends Ln{ObjectElement(e){const t=e.node,s=J(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new R,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=J(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Wn=class extends ys{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const Kn=class extends zn{constructor(e){super(e),this.element=new M,this.element.classes.push("json-schema-properties"),this.specPath=e=>J(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Yn=class extends Gn{constructor(e){super(e),this.element=new M,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>J(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Zn=class extends Vn{constructor(e){super(e),this.element=new M,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>J(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Qn=class extends ys{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const er=class extends ys{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 tr=class extends qn{constructor(e){super(e),this.element=new R,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=J(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const sr=class extends Rn{constructor(e){super(e),this.element=new R,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=J(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const nr=class extends Bn{constructor(e){super(e),this.element=new R,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=J(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 Un{constructor(e){super(e),this.element=new M,this.element.classes.push("json-schema-definitions"),this.specPath=e=>J(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const ir=class extends Hn{constructor(e){super(e),this.element=new R,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 or=class extends $n{constructor(e){super(e),this.element=new D,this.specPath=xs(["document","objects","JSONReference"])}ObjectElement(e){ln.prototype.ObjectElement.call(this,e),L(this.element.$ref)&&this.element.classes.push("reference-element")}};const cr=class extends ys{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const ar=function(){return!0};const lr=se(function(e,t,s){return et(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const ur=i(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var pr=o(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const dr=pr;const hr=i(function(e){return re(0,e)});function mr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const fr=i(mr);const gr=ct(Y);const yr=et(1,yt(Array.isArray)?Array.isArray:ke(w,je("Array")));const xr=it(yr,ks);function wr(e){return function(e){if(Array.isArray(e))return br(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 br(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)?br(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 br(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 vr=ke(dr(ur(function(e,t){return e.length>t.length})),hr,ie("length")),Er=Ot(function(e,t,s){var n=s.apply(void 0,wr(e));return gr(n)?fr(n):t});const Or=lr(xr,function(e){var t=vr(e);return et(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return Ee(Er(s),void 0,e)})},bs);const Sr=class extends an{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),bs)),n=Or(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const Pr=class extends Sr{constructor(e){super(e),this.alternator=[{predicate:J,specPath:["document","objects","JSONReference"]},{predicate:ar,specPath:["document","objects","JSONSchema"]}]}};const kr=class extends _n{constructor(e){super(e),this.element=new Ct,this.specPath=xs(["document","objects","Media"])}};const Ir={visitors:{value:ys,JSONSchemaOrJSONReferenceVisitor:Pr,document:{objects:{JSONSchema:{element:"jSONSchemaDraft4",$visitor:Xn,fixedFields:{id:{$visitor:ys,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:Pr,items:{$visitor:Jn,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Wn,properties:Kn,additionalProperties:Pr,patternProperties:Yn,dependencies:Zn,enum:Qn,type:er,allOf:tr,anyOf:sr,oneOf:nr,not:Pr,definitions:rr,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:ir,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"jSONReference",$visitor:or,fixedFields:{$ref:cr}},Media:{element:"media",$visitor:kr,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:class extends Nn{constructor(e){super(e),this.element=new $t,this.specPath=xs(["document","objects","LinkDescription"])}},fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Pr,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Pr}}}}}},jr=Dt(Ir),Ar=e=>Object.entries(e).map(([e,t])=>vt(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(T,"fixedFields",{get:()=>Ar(jr.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(D,"fixedFields",{get:()=>Ar(jr.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(Ct,"fixedFields",{get:()=>Ar(jr.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty($t,"fixedFields",{get:()=>Ar(jr.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Fr=i(function(e){return re(-1,e)});const Mr=class extends zt{};const Tr=class extends Mr{};const Dr=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Tr("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Tr("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Tr("latest method in MediaTypes class is not yet implemented.")}};class Cr extends Dr{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="2.0",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 Fr(this.filterByFormat(e))}}const $r=new Cr("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0");const Nr=class extends M{constructor(e,t,s){super(e,t,s),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",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 _r=class extends ${constructor(e,t,s){super(e,t,s),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}};const qr=class extends M{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 Rr=class extends M{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 Br=class extends M{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 Lr=class extends M{constructor(e,t,s){super(e,t,s),this.element="paths"}};const Hr=class extends M{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 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 parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}};const Ur=class extends M{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 responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new q(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}};const Vr=class extends M{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 Gr=class extends T{constructor(e,t,s){super(e,t,s),this.element="parameter",this.classes.push("json-schema-draft-4")}get idField(){throw new Mr("idField getter in Parameter class is not not supported.")}set idField(e){throw new Mr("idField setter in Parameter class is not not supported.")}get $schema(){throw new Mr("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new Mr("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new Mr("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new Mr("additionalItems setter in Parameter class is not not supported.")}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get maxProperties(){throw new Mr("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new Mr("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new Mr("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new Mr("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new Mr("properties getter in Parameter class is not not supported.")}set properties(e){throw new Mr("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new Mr("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new Mr("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new Mr("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new Mr("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new Mr("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new Mr("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new Mr("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new Mr("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new Mr("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new Mr("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new Mr("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new Mr("oneOf setter in Parameter class is not not supported.")}get not(){throw new Mr("not getter in Parameter class is not not supported.")}set not(e){throw new Mr("not setter in Parameter class is not not supported.")}get definitions(){throw new Mr("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new Mr("definitions setter in Parameter class is not not supported.")}get title(){throw new Mr("title getter in Parameter class is not not supported.")}set title(e){throw new Mr("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new Mr("base getter in Parameter class is not not supported.")}set base(e){throw new Mr("base setter in Parameter class is not not supported.")}get linksField(){throw new Mr("linksField getter in Parameter class is not not supported.")}set linksField(e){throw new Mr("linksField setter in Parameter class is not not supported.")}get media(){throw new Mr("media getter in Parameter class is not not supported.")}set media(e){throw new Mr("media setter in Parameter class is not not supported.")}get readOnly(){throw new Mr("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new Mr("readOnly setter in Parameter class is not not supported.")}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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const zr=class extends T{constructor(e,t,s){super(e,t,s),this.element="items",this.classes.push("json-schema-draft-4")}get idField(){throw new Mr("idField getter in Items class is not not supported.")}set idField(e){throw new Mr("idField setter in Items class is not not supported.")}get $schema(){throw new Mr("$schema getter in Items class is not not supported.")}set $schema(e){throw new Mr("$schema setter in Items class is not not supported.")}get additionalItems(){throw new Mr("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new Mr("additionalItems setter in Items class is not not supported.")}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get maxProperties(){throw new Mr("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new Mr("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new Mr("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new Mr("minProperties setter in Items class is not not supported.")}get required(){throw new Mr("required getter in Items class is not not supported.")}set required(e){throw new Mr("required setter in Items class is not not supported.")}get properties(){throw new Mr("properties getter in Items class is not not supported.")}set properties(e){throw new Mr("properties setter in Items class is not not supported.")}get additionalProperties(){throw new Mr("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new Mr("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new Mr("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new Mr("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new Mr("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new Mr("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new Mr("allOf getter in Items class is not not supported.")}set allOf(e){throw new Mr("allOf setter in Items class is not not supported.")}get anyOf(){throw new Mr("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new Mr("anyOf setter in Items class is not not supported.")}get oneOf(){throw new Mr("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new Mr("oneOf setter in Items class is not not supported.")}get not(){throw new Mr("not getter in Items class is not not supported.")}set not(e){throw new Mr("not setter in Items class is not not supported.")}get definitions(){throw new Mr("definitions getter in Items class is not not supported.")}set definitions(e){throw new Mr("definitions setter in Items class is not not supported.")}get title(){throw new Mr("title getter in Items class is not not supported.")}set title(e){throw new Mr("title setter in Items class is not not supported.")}get description(){throw new Mr("description getter in Items class is not not supported.")}set description(e){throw new Mr("description setter in Items class is not not supported.")}get base(){throw new Mr("base getter in Items class is not not supported.")}set base(e){throw new Mr("base setter in Items class is not not supported.")}get linksField(){throw new Mr("linksField getter in Items class is not not supported.")}set linksField(e){throw new Mr("linksField setter in Items class is not not supported.")}get media(){throw new Mr("media getter in Items class is not not supported.")}set media(e){throw new Mr("media setter in Items class is not not supported.")}get readOnly(){throw new Mr("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new Mr("readOnly setter in Items class is not not supported.")}};const Xr=class extends M{constructor(e,t,s){super(e,t,s),this.element="example"}};const Jr=class extends M{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 Wr=class extends M{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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Kr=class extends M{constructor(e,t,s){super(e,t,s),this.element="headers"}};const Yr=class extends T{constructor(e,t,s){super(e,t,s),this.element="header",this.classes.push("json-schema-draft-4")}get idField(){throw new Mr("idField getter in Header class is not not supported.")}set idField(e){throw new Mr("idField setter in Header class is not not supported.")}get $schema(){throw new Mr("$schema getter in Header class is not not supported.")}set $schema(e){throw new Mr("$schema setter in Header class is not not supported.")}get additionalItems(){throw new Mr("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new Mr("additionalItems setter in Header class is not not supported.")}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get maxProperties(){throw new Mr("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new Mr("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new Mr("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new Mr("minProperties setter in Header class is not not supported.")}get required(){throw new Mr("required getter in Header class is not not supported.")}set required(e){throw new Mr("required setter in Header class is not not supported.")}get properties(){throw new Mr("properties getter in Header class is not not supported.")}set properties(e){throw new Mr("properties setter in Header class is not not supported.")}get additionalProperties(){throw new Mr("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new Mr("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new Mr("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new Mr("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new Mr("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new Mr("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new Mr("allOf getter in Header class is not not supported.")}set allOf(e){throw new Mr("allOf setter in Header class is not not supported.")}get anyOf(){throw new Mr("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new Mr("anyOf setter in Header class is not not supported.")}get oneOf(){throw new Mr("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new Mr("oneOf setter in Header class is not not supported.")}get not(){throw new Mr("not getter in Header class is not not supported.")}set not(e){throw new Mr("not setter in Header class is not not supported.")}get definitions(){throw new Mr("definitions getter in Header class is not not supported.")}set definitions(e){throw new Mr("definitions setter in Header class is not not supported.")}get title(){throw new Mr("title getter in Header class is not not supported.")}set title(e){throw new Mr("title setter in Header class is not not supported.")}get base(){throw new Mr("base getter in Header class is not not supported.")}set base(e){throw new Mr("base setter in Header class is not not supported.")}get linksField(){throw new Mr("linksField getter in Header class is not not supported.")}set linksField(e){throw new Mr("linksField setter in Header class is not not supported.")}get media(){throw new Mr("media getter in Header class is not not supported.")}set media(e){throw new Mr("media setter in Header class is not not supported.")}get readOnly(){throw new Mr("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new Mr("readOnly setter in Header class is not not supported.")}};const Zr=class extends M{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 Qr=class extends T{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idField(){throw new Mr("idField getter in Schema class is not not supported.")}set idField(e){throw new Mr("idField setter in Schema class is not not supported.")}get $schema(){throw new Mr("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Mr("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new Mr("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new Mr("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new Mr("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Mr("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Mr("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Mr("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new Mr("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new Mr("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new Mr("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new Mr("oneOf setter in Schema class is not not supported.")}get not(){throw new Mr("not getter in Schema class is not not supported.")}set not(e){throw new Mr("not setter in Schema class is not not supported.")}get definitions(){throw new Mr("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Mr("definitions setter in Schema class is not not supported.")}get base(){throw new Mr("base getter in Schema class is not not supported.")}set base(e){throw new Mr("base setter in Schema class is not not supported.")}get linksField(){throw new Mr("linksField getter in Schema class is not not supported.")}set linksField(e){throw new Mr("linksField setter in Schema class is not not supported.")}get media(){throw new Mr("media getter in Schema class is not not supported.")}set media(e){throw new Mr("media setter in Schema class is not not supported.")}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",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)}};const ei=class extends M{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 ti=class extends M{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 si=class extends M{constructor(e,t,s){super(e,t,s),this.element="definitions"}};const ni=class extends M{constructor(e,t,s){super(e,t,s),this.element="parametersDefinitions"}};const ri=class extends M{constructor(e,t,s){super(e,t,s),this.element="responsesDefinitions"}};const ii=class extends M{constructor(e,t,s){super(e,t,s),this.element="securityDefinitions"}};const oi=class extends M{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 flow(){return this.get("flow")}set flow(e){this.set("flow",e)}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 scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}};const ci=class extends M{constructor(e,t,s){super(e,t,s),this.element="scopes"}};const ai=class extends M{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}},li={namespace:e=>{const{base:t}=e;return t.register("swagger",Nr),t.register("swaggerVersion",_r),t.register("info",qr),t.register("contact",Rr),t.register("license",Br),t.register("paths",Lr),t.register("pathItem",Hr),t.register("operation",Ur),t.register("externalDocumentation",Vr),t.register("parameter",Gr),t.register("items",zr),t.register("responses",Jr),t.register("response",Wr),t.register("headers",Kr),t.register("example",Xr),t.register("header",Yr),t.register("tag",Zr),t.register("reference",ti),t.register("schema",Qr),t.register("xml",ei),t.register("definitions",si),t.register("parametersDefinitions",ni),t.register("responsesDefinitions",ri),t.register("securityDefinitions",ii),t.register("securityScheme",oi),t.register("scopes",ci),t.register("securityRequirement",ai),t}};class ui extends R{static primaryClass="operation-consumes";constructor(e,t,s){super(e,t,s),this.classes.push(ui.primaryClass)}}const pi=ui;class di extends R{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(di.primaryClass),this.classes.push("parameters")}}const hi=di;class mi extends R{static primaryClass="operation-produces";constructor(e,t,s){super(e,t,s),this.classes.push(mi.primaryClass)}}const fi=mi;class gi extends R{static primaryClass="operation-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(gi.primaryClass)}}const yi=gi;class xi extends R{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(xi.primaryClass),this.classes.push("security")}}const wi=xi;class bi extends R{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(bi.primaryClass),this.classes.push("tags")}}const vi=bi;class Ei extends R{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Ei.primaryClass),this.classes.push("parameters")}}const Oi=Ei;class Si extends R{static primaryClass="swagger-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(Si.primaryClass)}}const Pi=Si;class ki extends R{static primaryClass="swagger-consumes";constructor(e,t,s){super(e,t,s),this.classes.push(ki.primaryClass)}}const Ii=ki;class ji extends R{static primaryClass="swagger-produces";constructor(e,t,s){super(e,t,s),this.classes.push(ji.primaryClass)}}const Ai=ji;class Fi extends R{static primaryClass="swagger-security";constructor(e,t,s){super(e,t,s),this.classes.push(Fi.primaryClass),this.classes.push("security")}}const Mi=Fi;class Ti extends R{static primaryClass="swagger-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Ti.primaryClass)}}const Di=Ti,Ci={SwaggerElement:{info:(...e)=>new qr(...e),schemes:(...e)=>new Pi(...e),consumes:(...e)=>new Ii(...e),produces:(...e)=>new Ai(...e),paths:(...e)=>new Lr(...e),definitions:(...e)=>new si(...e),parameters:(...e)=>new ni(...e),responses:(...e)=>new ri(...e),securityDefinitions:(...e)=>new ii(...e),security:(...e)=>new Mi(...e),tags:(...e)=>new Di(...e),externalDocs:(...e)=>new Vr(...e)},InfoElement:{contact:(...e)=>new Rr(...e),license:(...e)=>new Br(...e)},PathsElement:{"[key: *]":function(...e){return new Hr(...e)}},PathItemElement:{get:(...e)=>new Ur(...e),put:(...e)=>new Ur(...e),post:(...e)=>new Ur(...e),delete:(...e)=>new Ur(...e),options:(...e)=>new Ur(...e),head:(...e)=>new Ur(...e),patch:(...e)=>new Ur(...e),parameters:(...e)=>new Oi(...e)},OperationElement:{tags:(...e)=>new vi(...e),externalDocs:(...e)=>new Vr(...e),consumes:(...e)=>new pi(...e),produces:(...e)=>new fi(...e),parameters:(...e)=>new hi(...e),responses:(...e)=>new Jr(...e),schemes:(...e)=>new yi(...e),security:(...e)=>new wi(...e)},ParameterElement:{schema:(...e)=>new Qr(...e),items:(...e)=>new zr(...e)},ItemsElement:{items:(...e)=>new zr(...e)},ResponsesElement:{"[key: *]":function(...e){return new Wr(...e)}},ResponseElement:{schema:(...e)=>new Qr(...e),headers:(...e)=>new Kr(...e),examples:(...e)=>new Xr(...e)},HeadersElement:{"[key: *]":function(...e){return new Yr(...e)}},HeaderElement:{items:(...e)=>new zr(...e)},TagElement:{externalDocs:(...e)=>new Vr(...e)},SchemaElement:{items:(...e)=>new Qr(...e),allOf(...e){const t=new R(...e);return t.classes.push("json-schema-allOf"),t},properties(...e){const t=new M(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new Qr(...e),xml:(...e)=>new ei(...e),externalDocs:(...e)=>new Vr(...e)},DefinitionsElement:{"[key: *]":function(...e){return new Qr(...e)}},ParametersDefinitionsElement:{"[key: *]":function(...e){return new Gr(...e)}},ResponsesDefinitionsElement:{"[key: *]":function(...e){return new Wr(...e)}},SecurityDefinitionsElement:{"[key: *]":function(...e){return new oi(...e)}},SecuritySchemeElement:{scopes:(...e)=>new ci(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new R(...e)}},[hi.primaryClass]:{"<*>":function(...e){return new Gr(...e)}},[wi.primaryClass]:{"<*>":function(...e){return new ai(...e)}},[Oi.primaryClass]:{"<*>":function(...e){return new Gr(...e)}},[Mi.primaryClass]:{"<*>":function(...e){return new ai(...e)}},[Di.primaryClass]:{"<*>":function(...e){return new Zr(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new Qr(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Qr(...e)}}},$i=(e,t)=>{const s=Js(e),n=Ci[s]||Ci[us(e.classes.first)];return void 0===n?void 0:Object.hasOwn(n,"[key: *]")?n["[key: *]"]:n[t]},Ni=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>L(e)&&_t(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse().filter(B),n=s.at(-1);let r,i;if(G(n)?(i=t,r=$i(n,"<*>")):X(n)&&(i=s.at(-2),r=$i(i,us(n.key))),"function"!=typeof r)return;const o=r.call({context:i},void 0,Qt(t.meta),Qt(t.attributes));Ht.transfer(t,o),e.replaceWith(o)}}});const _i=se(function(e,t,s){var n,r={};for(n in s=s||{},t=t||{})l(n,t)&&(r[n]=l(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)l(n,s)&&!l(n,r)&&(r[n]=s[n]);return r});const qi=se(function e(t,s,n){return _i(function(s,n,r){return $e(n)&&$e(r)?e(t,n,r):t(s,n,r)},s,n)});const Ri=o(function(e,t){return qi(function(e,t,s){return s},e,t)});const Bi=se(function(e,t,s){return ws(e,ie(t,s))});const Li=Se(0,-1);const Hi=o(function(e,t){return e.apply(this,t)});const Ui=ct(yt);const Vi=it(yr,Ps);const Gi=et(3,function(e,t,s){var n=ae(e,s),r=ae(Li(e),s);if(!Ui(n)&&!Vi(e)){var i=ye(n,r);return Hi(i,t)}});const zi=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 Ht)){const s=Ht.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]))})}},Xi=e=>null===e,Ji=e=>"string"==typeof e,Wi=e=>"number"==typeof e,Ki=e=>"boolean"==typeof e,Yi=e=>null!==e&&"object"==typeof e;class Zi{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=I,this.KeyValuePair=O,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",_).register("string",$).register("number",N).register("boolean",q).register("array",R).register("object",M).register("member",F).register("ref",rs).register("link",ns).register("sourceMap",Ht),this.detect(Xi,_,!1).detect(Ji,$,!1).detect(Wi,N,!1).detect(Ki,q,!1).detect(Array.isArray,R,!1).detect(Yi,M,!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 zi(this)}}zi.prototype.Namespace=Zi;const Qi=Zi,eo=new Qi,to={isElement:B,isStringElement:L,isNumberElement:H,isNullElement:U,isBooleanElement:V,isArrayElement:G,isObjectElement:z,isMemberElement:X,isPrimitiveElement:e=>z(e)&&"object"===e.element||G(e)&&"array"===e.element||V(e)&&"boolean"===e.element||H(e)&&"number"===e.element||L(e)&&"string"===e.element||U(e)&&"null"===e.element||X(e)&&"member"===e.element,isLinkElement:as,isRefElement:ls,isAnnotationElement:e=>e instanceof is,isCommentElement:e=>e instanceof os,isParseResultElement:e=>e instanceof cs,isSourceMapElement:e=>e instanceof Ht,hasElementSourceMap:Nt,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!G(s)&&t.every(e=>s.includes(e))},includesClasses:_t},so={toolboxCreator:()=>({predicates:to,namespace:eo}),visitorOptions:{exposeEdits:!0}},no=(e,t,s={})=>{if(0===t.length)return e;const n=Ri(so,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=tn(c.map(Bi({},"visitor")),i);c.forEach(Gi(["pre"],[]));const l=on(e,a);return c.forEach(Gi(["post"],[])),l};function ro(e){return void 0===e?new _:io(e)}function io(e){if(e instanceof I)return e;if("string"==typeof e)return new $(e);if("number"==typeof e)return new N(e);if("boolean"==typeof e)return new q(e);if(null===e)return new _;if(Array.isArray(e))return new R(e.map(ro));if("object"==typeof e)return new M(e);throw new Error("Cannot refract value of type "+typeof e)}no[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=Ri(so,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=sn(c.map(Bi({},"visitor")),i);await Promise.allSettled(c.map(Gi(["pre"],[])));const l=await cn(e,a);return await Promise.allSettled(c.map(Gi(["post"],[]))),l},I.prototype.ObjectElement=M,I.prototype.ArrayElement=R,I.prototype.RefElement=rs,I.prototype.MemberElement=F,I.prototype.refract=io;const oo=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new M:t.meta,n=e.isMetaEmpty?new M:e.meta;t.meta=fs(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new M:t.attributes,n=e.isAttributesEmpty?new M:e.attributes;t.attributes=fs(s,n)}Ht.transfer(e,t)}};const co=class extends oo{enter(e){this.element=Qt(e.node),e.stop()}};const ao=class extends oo{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Ms(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ae(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ge(yt,["visitors",...e],this.specObj)?ae(["visitors",...e],this.specObj):ae(["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 co&&n?.constructor===co?Qt(t):(on(t,n),n.element)}};var lo=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Ne,e.prototype["@@transducer/result"]=_e,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?mr(s):s},e}();function uo(e){return function(t){return new lo(e,t)}}const po=o(Ce(["take"],uo,function(e,t){return Se(0,e<0?1/0:e,t)}));const ho=o(function(e,t){return E(po(e.length,t),e)}),mo=e=>L(e.key)&&ho("x-",us(e.key)),fo=e=>z(e)&&e.hasKey("$ref");const go=class extends ao{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=mo;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=us(t);if(L(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new F(Qt(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(Qt(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const yo=class extends ao{specPath;ignoredFields;fieldPatternPredicate=Fn;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=mo;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=us(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 F(Qt(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(Qt(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const xo=class extends yo{constructor(e){super(e),this.fieldPatternPredicate=Fs}};const wo=class extends ao{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),bs)),n=Or(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};function bo(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?!!Ae(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?!!Ae(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const vo=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!bo(e,!0,this)},e.prototype.has=function(e){return bo(e,!1,this)},e}();const Eo=o(function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new vo,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}),Oo=jn(go,yo);const So=class extends Oo{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,...Eo(t.keys(),s)],go.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,yo.prototype.ObjectElement.call(this,e);const r=t.keys();this.element.content.sort((e,t)=>r.indexOf(us(e.key))-r.indexOf(us(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}},Po=jn(ao,co),ko=jn(go,co),Io=jn(yo,co),jo=jn(xo,co),Ao=jn(wo,co),Fo=jn(So,co);const Mo=class extends ko{constructor(e){super(e),this.element=new Nr,this.specPath=xs(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}};const To=class extends Po{StringElement(e){const t=e.node,s=new _r(us(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const Do=class extends co{StringElement(e){super.enter(e),this.element.classes.push("swagger-host")}};const Co=class extends co{StringElement(e){super.enter(e),this.element.classes.push("swagger-base-path")}};const $o=class extends co{constructor(e){super(e),this.element=new Pi}ArrayElement(e){const t=e.node;this.element=this.element.concat(Qt(t)),e.stop()}};const No=class extends co{constructor(e){super(e),this.element=new Ii}ArrayElement(e){const t=e.node;this.element=this.element.concat(Qt(t)),e.stop()}};const _o=class extends co{constructor(e){super(e),this.element=new Ai}ArrayElement(e){const t=e.node;this.element=this.element.concat(Qt(t)),e.stop()}};const qo=class extends Po{constructor(e){super(e),this.element=new Mi}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ro=class extends Po{constructor(e){super(e),this.element=new Di}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Bo=class extends ko{constructor(e){super(e),this.element=new qr,this.specPath=xs(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const Lo=class extends co{StringElement(e){super.enter(e),this.element.classes.push("api-version"),this.element.classes.push("version")}};const Ho=class extends ko{constructor(e){super(e),this.element=new Rr,this.specPath=xs(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const Uo=class extends ko{constructor(e){super(e),this.element=new Br,this.specPath=xs(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},Vo=e=>e instanceof Nr,Go=e=>e instanceof _r,zo=e=>e instanceof qr,Xo=e=>e instanceof Br,Jo=e=>e instanceof Rr,Wo=e=>e instanceof Lr,Ko=e=>e instanceof Hr,Yo=e=>e instanceof Ur,Zo=e=>e instanceof Vr,Qo=e=>e instanceof Gr,ec=e=>e instanceof zr,tc=e=>e instanceof Jr,sc=e=>e instanceof Wr,nc=e=>e instanceof Kr,rc=e=>e instanceof Xr,ic=e=>e instanceof Yr,oc=e=>e instanceof Zr,cc=e=>e instanceof ti,ac=e=>e instanceof Qr,lc=e=>e instanceof ei,uc=e=>e instanceof ri,pc=e=>e instanceof ii,dc=e=>e instanceof si,hc=e=>e instanceof ni,mc=e=>e instanceof oi,fc=e=>e instanceof ci,gc=e=>e instanceof ai;const yc=class extends Io{element;constructor(e){super(e),this.element=new Lr,this.specPath=xs(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=ar}ObjectElement(e){Io.prototype.ObjectElement.call(this,e),this.element.filter(Ko).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.meta.set("path",Qt(t))})}};const xc=class extends ko{constructor(e){super(e),this.element=new Hr,this.specPath=xs(["document","objects","PathItem"])}ObjectElement(e){ko.prototype.ObjectElement.call(this,e),this.element.filter(Yo).forEach((e,t)=>{const s=Qt(t);s.content=us(s).toUpperCase(),e.meta.set("http-method",s)}),L(this.element.$ref)&&this.element.classes.push("reference-element")}};const wc=class extends co{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const bc=class extends Po{constructor(e){super(e),this.element=new Oi}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=fo(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);cc(s)&&s.meta.set("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const vc=class extends ko{constructor(e){super(e),this.element=new Ur,this.specPath=xs(["document","objects","Operation"])}};const Ec=class extends co{constructor(e){super(e),this.element=new vi}ArrayElement(e){const t=e.node;this.element=this.element.concat(Qt(t)),e.stop()}};const Oc=class extends co{constructor(e){super(e),this.element=new pi}ArrayElement(e){const t=e.node;this.element=this.element.concat(Qt(t)),e.stop()}};const Sc=class extends co{constructor(e){super(e),this.element=new fi}ArrayElement(e){const t=e.node;this.element=this.element.concat(Qt(t)),e.stop()}};const Pc=class extends Po{constructor(e){super(e),this.element=new hi}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=fo(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);cc(s)&&s.meta.set("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const kc=class extends co{constructor(e){super(e),this.element=new yi}ArrayElement(e){const t=e.node;this.element=this.element.concat(Qt(t)),e.stop()}};const Ic=class extends Po{constructor(e){super(e),this.element=new wi}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const jc=class extends ko{constructor(e){super(e),this.element=new Vr,this.specPath=xs(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const Ac=class extends ko{constructor(e){super(e),this.element=new Gr,this.specPath=xs(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}};const Fc=class extends ko{specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new zr,this.specPath=xs(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}};const Mc=o(function(e,t){if(s=e,"[object RegExp]"!==Object.prototype.toString.call(s))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ve(e));var s;return function(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}(e).test(t)});function Tc(e){return"[object Number]"===Object.prototype.toString.call(e)}const Dc=o(function(e,t){if(!Tc(e)||!Tc(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 Cc=class extends Fo{constructor(e){super(e),this.element=new Jr,this.specPathFixedFields=xs(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>fo(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=Mc(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Dc(100,600).join("|")})$`))}ObjectElement(e){Fo.prototype.ObjectElement.call(this,e),this.element.filter(cc).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(sc).forEach((e,t)=>{const s=Qt(t);this.fieldPatternPredicate(us(s))&&e.meta.set("http-status-code",s)})}};const $c=class extends Ao{constructor(e){super(e),this.alternator=[{predicate:fo,specPath:["document","objects","Reference"]},{predicate:ar,specPath:["document","objects","Response"]}]}ObjectElement(e){wo.prototype.enter.call(this,e),cc(this.element)?this.element.meta.set("referenced-element","response"):sc(this.element)&&this.element.meta.set("http-status-code","default")}};const Nc=class extends ko{constructor(e){super(e),this.element=new Wr,this.specPath=xs(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}};const _c=class extends jo{constructor(e){super(e),this.element=new Kr,this.specPath=xs(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}};const qc=class extends jo{constructor(e){super(e),this.element=new Xr,this.specPath=xs(["value"]),this.canSupportSpecificationExtensions=!1}};const Rc=class extends ko{constructor(e){super(e),this.element=new Yr,this.specPath=xs(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}};const Bc=class extends ko{constructor(e){super(e),this.element=new Zr,this.specPath=xs(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const Lc=class extends ko{constructor(e){super(e),this.element=new ti,this.specPath=xs(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){ko.prototype.ObjectElement.call(this,e),L(this.element.$ref)&&this.element.classes.push("reference-element")}};const Hc=class extends co{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Uc=class extends ko{constructor(e){super(e),this.element=new Qr,this.specPath=xs(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}},Vc=Ir.visitors.document.objects.JSONSchema.fixedFields.allOf;const Gc=class extends Vc{ArrayElement(e){Vc.prototype.ArrayElement.call(this,e),this.element.filter(C).forEach(e=>{e.meta.set("referenced-element","schema")})}};const zc=class extends Jn{ObjectElement(e){Jn.prototype.ObjectElement.call(this,e),C(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){Jn.prototype.ArrayElement.call(this,e),this.element.filter(C).forEach(e=>{e.meta.set("referenced-element","schema")})}},Xc=Ir.visitors.document.objects.JSONSchema.fixedFields.properties;const Jc=class extends Xc{ObjectElement(e){Xc.prototype.ObjectElement.call(this,e),this.element.filter(C).forEach(e=>{e.meta.set("referenced-element","schema")})}},Wc=Ir.visitors.JSONSchemaOrJSONReferenceVisitor;const Kc=class extends Wc{ObjectElement(e){Wc.prototype.enter.call(this,e),C(this.element)&&this.element.meta.set("referenced-element","schema")}};const Yc=class extends ko{constructor(e){super(e),this.element=new ei,this.specPath=xs(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}};const Zc=class extends jo{constructor(e){super(e),this.element=new si,this.specPath=e=>J(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){jo.prototype.ObjectElement.call(this,e),this.element.filter(C).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Qc=class extends jo{constructor(e){super(e),this.element=new ri,this.specPath=xs(["document","objects","Response"])}};const ea=class extends jo{constructor(e){super(e),this.element=new ni,this.specPath=xs(["document","objects","Parameter"])}};const ta=class extends jo{element;constructor(e){super(e),this.element=new ii,this.specPath=xs(["document","objects","SecurityScheme"])}};const sa=class extends ko{constructor(e){super(e),this.element=new oi,this.specPath=xs(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const na=class extends jo{constructor(e){super(e),this.element=new ci,this.specPath=xs(["value"]),this.canSupportSpecificationExtensions=!0}};const ra=class extends jo{constructor(e){super(e),this.element=new ai,this.specPath=xs(["value"])}};const ia=class extends ao{MemberElement(e){this.element=Qt(e.node),this.element.classes.push("specification-extension"),e.stop()}},{fixedFields:oa}=Ir.visitors.document.objects.JSONSchema,ca={visitors:{value:co,document:{objects:{JSONReference:Ir.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:Mo,element:"swagger",fixedFields:{swagger:To,info:{$ref:"#/visitors/document/objects/Info"},host:Do,basePath:Co,schemes:$o,consumes:No,produces:_o,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:qo,tags:Ro,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Bo,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:Lo}},Contact:{$visitor:Ho,element:"contact",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Uo,element:"license",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:yc,element:"paths"},PathItem:{$visitor:xc,element:"pathItem",fixedFields:{$ref:wc,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"},parameters:bc}},Operation:{$visitor:vc,element:"operation",fixedFields:{tags:Ec,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:Oc,produces:Sc,parameters:Pc,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:kc,deprecated:{$ref:"#/visitors/value"},security:Ic}},ExternalDocumentation:{$visitor:jc,element:"externalDocumentation",fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Ac,element:"parameter",fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:oa.description,required:oa.required,schema:Kc,type:oa.type,format:oa.format,items:{$visitor:Fc,alias:"itemsField"},collectionFormat:{$ref:"#/visitors/value"},default:oa.default,maximum:oa.maximum,exclusiveMaximum:oa.exclusiveMaximum,minimum:oa.minimum,exclusiveMinimum:oa.exclusiveMinimum,maxLength:oa.maxLength,minLength:oa.minLength,pattern:oa.pattern,maxItems:oa.maxItems,minItems:oa.minItems,uniqueItems:oa.uniqueItems,enum:oa.enum,multipleOf:oa.multipleOf}},Items:{$visitor:Fc,element:"items",fixedFields:{type:oa.type,format:oa.format,items:{$visitor:Fc,alias:"itemsField"},collectionFormat:{$ref:"#/visitors/value"},default:oa.default,maximum:oa.maximum,exclusiveMaximum:oa.exclusiveMaximum,minimum:oa.minimum,exclusiveMinimum:oa.exclusiveMinimum,maxLength:oa.maxLength,minLength:oa.minLength,pattern:oa.pattern,maxItems:oa.maxItems,minItems:oa.minItems,uniqueItems:oa.uniqueItems,enum:oa.enum,multipleOf:oa.multipleOf}},Responses:{$visitor:Cc,element:"responses",fixedFields:{default:$c}},Response:{$visitor:Nc,element:"response",fixedFields:{description:{$ref:"#/visitors/value"},schema:Kc,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:_c,element:"headers"},Example:{$visitor:qc,element:"example"},Header:{$visitor:Rc,element:"header",fixedFields:{description:oa.description,type:oa.type,format:oa.format,items:{$visitor:Fc,alias:"itemsField"},collectionFormat:{$ref:"#/visitors/value"},default:oa.default,maximum:oa.maximum,exclusiveMaximum:oa.exclusiveMaximum,minimum:oa.minimum,exclusiveMinimum:oa.exclusiveMinimum,maxLength:oa.maxLength,minLength:oa.minLength,pattern:oa.pattern,maxItems:oa.maxItems,minItems:oa.minItems,uniqueItems:oa.uniqueItems,enum:oa.enum,multipleOf:oa.multipleOf}},Tag:{$visitor:Bc,element:"tag",fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Lc,element:"reference",fixedFields:{$ref:Hc}},Schema:{$visitor:Uc,element:"schema",fixedFields:{format:oa.format,title:oa.title,description:oa.description,default:oa.default,multipleOf:oa.multipleOf,maximum:oa.maximum,exclusiveMaximum:oa.exclusiveMaximum,minimum:oa.minimum,exclusiveMinimum:oa.exclusiveMinimum,maxLength:oa.maxLength,minLength:oa.minLength,pattern:oa.pattern,maxItems:oa.maxItems,minItems:oa.minItems,uniqueItems:oa.uniqueItems,maxProperties:oa.maxProperties,minProperties:oa.minProperties,required:oa.required,enum:oa.enum,type:oa.type,readOnly:oa.readOnly,items:zc,allOf:Gc,properties:Jc,additionalProperties:Kc,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Yc,element:"xml",fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Zc,element:"definitions"},ParametersDefinitions:{$visitor:ea,element:"parametersDefinitions"},ResponsesDefinitions:{$visitor:Qc,element:"responsesDefinitions"},SecurityDefinitions:{$visitor:ta,element:"securityDefinitions"},SecurityScheme:{$visitor:sa,element:"securityScheme",fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:na,element:"scopes"},SecurityRequirement:{$visitor:ra,element:"securityRequirement"}},extension:{$visitor:ia}}}},aa=()=>{const e=new Qi,t={...s,...n,isStringElement:L};return e.use(li),{predicates:t,namespace:e}},la=(e,{element:t="swagger",plugins:s=[],specificationObj:n=ca}={})=>{const r=io(e),i=Dt(n),o=i.elementMap[t];if(!o)throw new Error(`Unknown element type: "${t}"`);const c=new(ae(o,i))({specObj:i});return on(r,c),no(c.element,s,{toolboxCreator:aa})},ua=(e,t={})=>la(e,{...t,element:"swagger"}),pa=(e,t={})=>la(e,{...t,element:"info"}),da=(e,t={})=>la(e,{...t,element:"contact"}),ha=(e,t={})=>la(e,{...t,element:"license"}),ma=(e,t={})=>la(e,{...t,element:"paths"}),fa=(e,t={})=>la(e,{...t,element:"pathItem"}),ga=(e,t={})=>la(e,{...t,element:"operation"}),ya=(e,t={})=>la(e,{...t,element:"externalDocumentation"}),xa=(e,t={})=>la(e,{...t,element:"parameter"}),wa=(e,t={})=>la(e,{...t,element:"items"}),ba=(e,t={})=>la(e,{...t,element:"responses"}),va=(e,t={})=>la(e,{...t,element:"response"}),Ea=(e,t={})=>la(e,{...t,element:"headers"}),Oa=(e,t={})=>la(e,{...t,element:"example"}),Sa=(e,t={})=>la(e,{...t,element:"header"}),Pa=(e,t={})=>la(e,{...t,element:"tag"}),ka=(e,t={})=>la(e,{...t,element:"reference"}),Ia=(e,t={})=>la(e,{...t,element:"schema"}),ja=(e,t={})=>la(e,{...t,element:"xml"}),Aa=(e,t={})=>la(e,{...t,element:"definitions"}),Fa=(e,t={})=>la(e,{...t,element:"parametersDefinitions"}),Ma=(e,t={})=>la(e,{...t,element:"responsesDefinitions"}),Ta=(e,t={})=>la(e,{...t,element:"securityDefinitions"}),Da=(e,t={})=>la(e,{...t,element:"securityScheme"}),Ca=(e,t={})=>la(e,{...t,element:"scopes"}),$a=(e,t={})=>la(e,{...t,element:"securityRequirement"}),Na=la;return t})());
|