@swagger-api/apidom-ns-json-schema-2020-12 1.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/LICENSES/AFL-3.0.txt +182 -0
  3. package/LICENSES/Apache-2.0.txt +202 -0
  4. package/LICENSES/BSD-3-Clause.txt +26 -0
  5. package/LICENSES/MIT.txt +9 -0
  6. package/NOTICE +83 -0
  7. package/README.md +186 -0
  8. package/dist/apidom-ns-json-schema-2020-12.browser.js +1 -0
  9. package/package.json +64 -0
  10. package/src/elements/JSONSchema.cjs +148 -0
  11. package/src/elements/JSONSchema.mjs +145 -0
  12. package/src/elements/LinkDescription.cjs +50 -0
  13. package/src/elements/LinkDescription.mjs +46 -0
  14. package/src/index.cjs +48 -0
  15. package/src/index.mjs +15 -0
  16. package/src/media-types.cjs +34 -0
  17. package/src/media-types.mjs +30 -0
  18. package/src/namespace.cjs +21 -0
  19. package/src/namespace.mjs +16 -0
  20. package/src/predicates.cjs +29 -0
  21. package/src/predicates.mjs +24 -0
  22. package/src/refractor/index.cjs +54 -0
  23. package/src/refractor/index.mjs +48 -0
  24. package/src/refractor/plugins/replace-empty-element.cjs +264 -0
  25. package/src/refractor/plugins/replace-empty-element.mjs +257 -0
  26. package/src/refractor/registration.cjs +13 -0
  27. package/src/refractor/registration.mjs +6 -0
  28. package/src/refractor/specification.cjs +16 -0
  29. package/src/refractor/specification.mjs +11 -0
  30. package/src/refractor/toolbox.cjs +21 -0
  31. package/src/refractor/toolbox.mjs +15 -0
  32. package/src/refractor/visitors/json-schema/PrefixItemsVisitor.cjs +30 -0
  33. package/src/refractor/visitors/json-schema/PrefixItemsVisitor.mjs +27 -0
  34. package/src/refractor/visitors/json-schema/index.cjs +22 -0
  35. package/src/refractor/visitors/json-schema/index.mjs +17 -0
  36. package/src/refractor/visitors/json-schema/link-description/index.cjs +17 -0
  37. package/src/refractor/visitors/json-schema/link-description/index.mjs +12 -0
  38. package/src/traversal/visitor.cjs +15 -0
  39. package/src/traversal/visitor.mjs +10 -0
  40. package/types/apidom-ns-json-schema-2020-12.d.ts +443 -0
package/README.md ADDED
@@ -0,0 +1,186 @@
1
+ # @swagger-api/apidom-ns-json-schema-2020-12
2
+
3
+ `@swagger-api/apidom-ns-json-schema-2020-12` contains ApiDOM namespace specific to [JSON Schema 2020-12](https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01) specification.
4
+
5
+ ## Installation
6
+
7
+ You can install this package via [npm CLI](https://docs.npmjs.com/cli) by running the following command:
8
+
9
+ ```sh
10
+ $ npm install @swagger-api/apidom-ns-json-schema-2020-12
11
+ ```
12
+
13
+ ## JSON Schema 2020-12 namespace
14
+
15
+ JSON Schema 2020-12 namespace consists of [number of elements](https://github.com/swagger-api/apidom/tree/main/packages/apidom-ns-json-schema-2020-12/src/elements) implemented on top
16
+ of [primitive ones](https://github.com/refractproject/minim/tree/master/lib/primitives).
17
+
18
+ ```js
19
+ import { createNamespace } from '@swagger-api/apidom-core';
20
+ import jsonShema202012Namespace from '@swagger-api/apidom-ns-json-schema-2020-12';
21
+
22
+ const namespace = createNamespace(jsonShema202012Namespace);
23
+
24
+ const objectElement = new namespace.elements.Object();
25
+ const jsonSchemaElement = new namespace.elements.JSONSchema202012();
26
+ ```
27
+
28
+ When namespace instance is created in this way, it will extend the base namespace
29
+ with the namespace provided as an argument.
30
+
31
+ Elements from the namespace can also be used directly by importing them.
32
+
33
+ ```js
34
+ import { JSONSchemaElement, LinkDescriptionElement } from '@swagger-api/apidom-ns-json-schema-2020-12';
35
+
36
+ const jsonSchemaElement = new JSONSchemaElement();
37
+ const linkDescriptionElement = new LinkDescriptionElement();
38
+ ```
39
+
40
+ ## Predicates
41
+
42
+ This package exposes [predicates](https://github.com/swagger-api/apidom/blob/main/packages/apidom-ns-json-schema-2020-12/src/predicates.ts)
43
+ for all higher order elements that are part of this namespace.
44
+
45
+ ```js
46
+ import { isJSONSchemaElement, JSONSchemaElement } from '@swagger-api/apidom-ns-json-schema-2020-12';
47
+
48
+ const jsonSchemaElement = new JSONSchemaElement();
49
+
50
+ isJSONSchemaElement(jsonSchemaElement); // => true
51
+ ```
52
+
53
+ ## Traversal
54
+
55
+ Traversing ApiDOM in this namespace is possible by using `visit` function from `apidom` package.
56
+ This package comes with its own [keyMap](https://github.com/swagger-api/apidom/blob/main/packages/apidom-ns-json-schema-2020-12/src/traversal/visitor.ts#L11) and [nodeTypeGetter](https://github.com/swagger-api/apidom/blob/main/packages/apidom-ns-json-schema-2020-12/src/traversal/visitor.ts#L4).
57
+ To learn more about these `visit` configuration options please refer to [@swagger-api/apidom-ast documentation](https://github.com/swagger-api/apidom/blob/main/packages/apidom-ast/README.md#visit).
58
+
59
+ ```js
60
+ import { visit } from '@swagger-api/apidom-core';
61
+ import { JSONSchemaElement, keyMap, getNodeType } from '@swagger-api/apidom-ns-json-schema-2020-12';
62
+
63
+ const element = new JSONSchemaElement();
64
+
65
+ const visitor = {
66
+ JSONSchema202012Element(jsonSchemaElement) {
67
+ console.dir(jsonSchemaElement);
68
+ },
69
+ };
70
+
71
+ visit(element, visitor, { keyMap, nodeTypeGetter: getNodeType });
72
+ ```
73
+
74
+ ## Refractors
75
+
76
+ Refractor is a special layer inside the namespace that can transform either JavaScript structures
77
+ or generic ApiDOM structures into structures built from elements of this namespace.
78
+
79
+ **Refracting JavaScript structures**:
80
+
81
+ ```js
82
+ import { LinkDescriptionElement } from '@swagger-api/apidom-ns-json-schema-2020-12';
83
+
84
+ const object = {
85
+ anchor: 'nodes/{thisNodeId}',
86
+ anchorPointer: '#/relative/json/pointer',
87
+ };
88
+
89
+ LinkDescriptionElement.refract(object); // => LinkDescriptionElement({ anchor, anchorPointer })
90
+ ```
91
+
92
+ **Refracting generic ApiDOM structures**:
93
+
94
+ ```js
95
+ import { ObjectElement } from '@swagger-api/apidom-core';
96
+ import { LinkDescriptionElement } from '@swagger-api/apidom-ns-json-schema-2020-12';
97
+
98
+ const objectElement = new ObjectElement({
99
+ anchor: 'nodes/{thisNodeId}',
100
+ anchorPointer: '#/relative/json/pointer',
101
+ });
102
+
103
+ LinkDescriptionElement.refract(objectElement); // => LinkDescriptionElement({ anchor = 'nodes/{thisNodeId}', anchorPointer = '#/relative/json/pointer' })
104
+ ```
105
+
106
+ ### Refractor plugins
107
+
108
+ Refractors can accept plugins as a second argument of refract static method.
109
+
110
+ ```js
111
+ import { ObjectElement } from '@swagger-api/apidom-core';
112
+ import { LinkDescriptionElement } from '@swagger-api/apidom-ns-json-schema-2020-12';
113
+
114
+ const objectElement = new ObjectElement({
115
+ anchor: 'nodes/{thisNodeId}',
116
+ anchorPointer: '#/relative/json/pointer',
117
+ });
118
+
119
+ const plugin = ({ predicates, namespace }) => ({
120
+ name: 'plugin',
121
+ pre() {
122
+ console.dir('runs before traversal');
123
+ },
124
+ visitor: {
125
+ LinkDescriptionElement(linkDescriptionElement) {
126
+ linkDescriptionElement.anchorPointer = '#/relative/json/pointer/x';
127
+ },
128
+ },
129
+ post() {
130
+ console.dir('runs after traversal');
131
+ },
132
+ });
133
+
134
+ LinkDescriptionElement.refract(objectElement, { plugins: [plugin] }); // => LinkDescriptionElement({ anchor = 'nodes/{thisNodeId}', anchorPointer = '#/relative/json/pointer/x' })
135
+ ```
136
+
137
+ You can define as many plugins as needed to enhance the resulting namespaced ApiDOM structure.
138
+ If multiple plugins with the same visitor method are defined, they run in parallel (just like in Babel).
139
+
140
+ #### Replace Empty Element plugin
141
+
142
+ This plugin is specific to YAML 1.2 format, which allows defining key-value pairs with empty key,
143
+ empty value, or both. If the value is not provided in YAML format, this plugin compensates for
144
+ this missing value with the most appropriate semantic element type.
145
+
146
+ ```js
147
+ import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2';
148
+ import { refractorPluginReplaceEmptyElement, JSONSchemaElement } from '@swagger-api/apidom-ns-json-schema-2020-12';
149
+
150
+ const yamlDefinition = `
151
+ $schema: 'https://json-schema.org/draft/2020-12/schema'
152
+ if:
153
+ `;
154
+ const apiDOM = await parse(yamlDefinition);
155
+ const jsonSchemaElement = JSONSchemaElement.refract(apiDOM.result, {
156
+ plugins: [refractorPluginReplaceEmptyElement()],
157
+ });
158
+
159
+ // =>
160
+ // (JSONSchema202012Element
161
+ // (MemberElement
162
+ // (StringElement)
163
+ // (StringElement))
164
+ // (MemberElement
165
+ // (StringElement)
166
+ // (JSONSchema202012Element)))
167
+
168
+ // => without the plugin the result would be as follows:
169
+ // (JSONSchema202012Element
170
+ // (MemberElement
171
+ // (StringElement)
172
+ // (StringElement))
173
+ // (MemberElement
174
+ // (StringElement)
175
+ // (StringElement)))
176
+ ```
177
+
178
+ ## Implementation progress
179
+
180
+ Only fully implemented specification objects should be checked here.
181
+
182
+ - [x] [JSON Schema Object](https://json-schema.org/draft/2020-12/json-schema-core)
183
+ - [x] [Link Description Object](https://json-schema.org/draft/2019-09/draft-handrews-json-schema-hyperschema-02#rfc.section.6)
184
+
185
+
186
+
@@ -0,0 +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.apidomNsJSONSchema202012=t():e.apidomNsJSONSchema202012=t()}(self,(()=>(()=>{var e={3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},5098:(e,t,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),c=r(5071);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1386:(e,t,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),c=r(3964);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},8250:(e,t,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),c=r(9068);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),c=r(7462),a=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},358:(e,t,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),c=r(9632),a=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),h=!r&&!l&&o(e),f=!r&&!l&&!h&&a(e),m=r||l||h||f,p=m?n(e.length,String):[],d=p.length;for(var y in e)!t&&!u.call(e,y)||m&&("length"==y||h&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||p.push(y);return p}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,c))}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),c=r(8486),a=r(3142),u=r(5853),l=r(8666),h="[object Arguments]",f="[object Array]",m="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,v){var g=a(e),b=a(t),S=g?f:c(e),j=b?f:c(t),x=(S=S==h?m:S)==m,O=(j=j==h?m:j)==m,E=S==j;if(E&&u(e)){if(!u(t))return!1;g=!0,x=!1}if(E&&!x)return v||(v=new n),g||l(e)?s(e,t,r,d,y,v):i(e,t,S,r,d,y,v);if(!(1&r)){var w=x&&p.call(e,"__wrapped__"),k=O&&p.call(t,"__wrapped__");if(w||k){var A=w?e.value():e,P=k?t.value():t;return v||(v=new n),y(A,P,r,d,v)}}return!!E&&(v||(v=new n),o(e,t,r,d,y,v))}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,h=u.hasOwnProperty,f=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?f:c).test(o(e))}},674:(e,t,r)=>{var n=r(7379),s=r(5387),i=r(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)&&s(e.length)&&!!o[n(e)]}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,c,a){var u=1&r,l=e.length,h=t.length;if(l!=h&&!(u&&h>l))return!1;var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var p=-1,d=!0,y=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++p<l;){var v=e[p],g=t[p];if(o)var b=u?o(g,v,p,t,e,a):o(v,g,p,e,t,a);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(v===e||c(v,e,r,o,a)))return y.push(t)}))){d=!1;break}}else if(v!==g&&!c(v,g,r,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),c=r(5894),a=r(9828),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,h,f){switch(r){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||!h(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=c;case"[object Set]":var p=1&n;if(m||(m=a),e.size!=t.size&&!p)return!1;var d=f.get(e);if(d)return d==t;n|=2,f.set(e,t);var y=o(m(e),m(t),n,u,h,f);return f.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!a)return!1;for(var h=l;h--;){var f=u[h];if(!(a?f in t:s.call(t,f)))return!1}var m=c.get(e),p=c.get(t);if(m&&p)return m==t&&p==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++h<l;){var v=e[f=u[h]],g=t[f];if(i)var b=a?i(g,v,f,t,e,c):i(v,g,f,e,t,c);if(!(void 0===b?v===g||o(v,g,r,i,c):b)){d=!1;break}y||(y="constructor"==f)}if(d&&!y){var S=e.constructor,j=t.constructor;S==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof j&&j instanceof j||(d=!1)}return c.delete(e),c.delete(t),d}},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[c]=r:delete e[c]),s}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),c=r(9270),a=r(7379),u=r(4066),l="[object Map]",h="[object Promise]",f="[object Set]",m="[object WeakMap]",p="[object DataView]",d=u(n),y=u(s),v=u(i),g=u(o),b=u(c),S=a;(n&&S(new n(new ArrayBuffer(1)))!=p||s&&S(new s)!=l||i&&S(i.resolve())!=h||o&&S(new o)!=f||c&&S(new c)!=m)&&(S=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return p;case y:return l;case v:return h;case g:return f;case b:return m}return t}),e.exports=S},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},9828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,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""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,c=o?s(o):n;e.exports=c},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},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)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const n=r(1517);function s(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 r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(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},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},5735:(e,t,r)=>{const n=r(9310),s=r(8138),i=r(986),o=r(2563),c=r(1580),a=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.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",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.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,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=l,e.exports=l},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),c=r(2555),a=r(9796),u=r(7309),l=r(5642),h=r(9620),f=r(593),m=r(4123),p=r(3311),d=r(2322);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=f,n.prototype.MemberElement=u,n.prototype.refract=y,m.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:h,RefElement:f,refract:y,ArraySlice:m,ObjectSlice:p,KeyValuePair:d}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),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)}}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(e,t,r){super(e||[],t,r),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 r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}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},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),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 s?{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 r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)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 s){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},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),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)}}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),c=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),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((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,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((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}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(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),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),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}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,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[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 r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),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 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={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,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(7447),r(3832);var n=r(8099);e.exports=n.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var c=n(t),a=i(c);if(0===a)return!e&&-1;var u,l=s(o,a);if(e&&r!=r){for(;a>l;)if((u=c[l++])!=u)return!0}else for(;a>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var c=s(t),a=o.f,u=i.f,l=0;l<c.length;l++){var h=c[l];n(e,h)||r&&n(r,h)||a(e,h,u(t,h))}}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},5547:(e,t,r)=>{"use strict";var n,s,i=r(8900),o=r(3531),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):n(e,"stack",s(r,c)))}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),i=r(9344),o=r(2769),c=r(4543).f,a=r(8696),u=r(8099),l=r(4572),h=r(3999),f=r(701);r(3753);var m=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,p,d,y,v,g,b,S,j=e.target,x=e.global,O=e.stat,E=e.proto,w=x?n:O?n[j]:n[j]&&n[j].prototype,k=x?u:u[j]||h(u,j,{})[j],A=k.prototype;for(d in t)s=!(r=a(x?d:j+(O?".":"#")+d,e.forced))&&w&&f(w,d),v=k[d],s&&(g=e.dontCallGetSet?(S=c(w,d))&&S.value:w[d]),y=s&&g?g:t[d],(r||E||typeof v!=typeof y)&&(b=e.bind&&s?l(y,n):e.wrap&&s?m(y):E&&o(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&h(b,"sham",!0),h(k,d,b),E&&(f(u,p=j+"Prototype")||h(u,p,{}),h(u[p],d,y),e.real&&A&&(r||!A[d])&&h(A,d,y)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),c=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[n(e)]}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),c=r(967),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(s(r))return i(n(r,e));throw new a(o(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,c=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,c;return i&&n(o=t.constructor)&&o!==r&&s(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),c=r(8900),a=r(262),u=r(3999),l=r(701),h=r(3753),f=r(4275),m=r(5241),p="Object already initialized",d=c.TypeError,y=c.WeakMap;if(o||h.state){var v=h.state||(h.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new d(p);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var g=f("state");m[g]=!0,n=function(e,t){if(l(e,g))throw new d(p);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,c(e))}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),c=r(2877),a=r(8130),u=r(4317),l=r(1613),h=r(967),f=r(1743),m=TypeError,p=function(e,t){this.stopped=e,this.result=t},d=p.prototype;e.exports=function(e,t,r){var y,v,g,b,S,j,x,O=r&&r.that,E=!(!r||!r.AS_ENTRIES),w=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),P=n(t,O),N=function(e){return y&&f(y,"normal",e),new p(!0,e)},M=function(e){return E?(i(e),A?P(e[0],e[1],N):P(e[0],e[1])):A?P(e,N):P(e)};if(w)y=e.iterator;else if(k)y=e;else{if(!(v=h(e)))throw new m(o(e)+" is not iterable");if(c(v)){for(g=0,b=a(e);b>g;g++)if((S=M(e[g]))&&u(d,S))return S;return new p(!1)}y=l(e,v)}for(j=w?e.next:y.next;!(x=s(j,y)).done;){try{S=M(x.value)}catch(e){f(y,"throw",e)}if("object"==typeof S&&S&&u(d,S))return S}return new p(!1)}},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return s(o),r}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),c=r(6625),a=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),c[l]=a,e}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),c=r(2769),a=r(1926),u=r(3671),l=r(3491),h=r(1811),f=r(3999),m=r(3508),p=r(8655),d=r(6625),y=r(2621),v=o.PROPER,g=o.CONFIGURABLE,b=y.IteratorPrototype,S=y.BUGGY_SAFARI_ITERATORS,j=p("iterator"),x="keys",O="values",E="entries",w=function(){return this};e.exports=function(e,t,r,o,p,y,k){a(r,t,o);var A,P,N,M=function(e){if(e===p&&J)return J;if(!S&&e&&e in T)return T[e];switch(e){case x:case O:case E:return function(){return new r(this,e)}}return function(){return new r(this)}},_=t+" Iterator",$=!1,T=e.prototype,F=T[j]||T["@@iterator"]||p&&T[p],J=!S&&F||M(p),R="Array"===t&&T.entries||F;if(R&&(A=u(R.call(new e)))!==Object.prototype&&A.next&&(i||u(A)===b||(l?l(A,b):c(A[j])||m(A,j,w)),h(A,_,!0,!0),i&&(d[_]=w)),v&&p===O&&F&&F.name!==O&&(!i&&g?f(T,"name",O):($=!0,J=function(){return s(F,this)})),p)if(P={values:M(O),keys:y?J:M(x),entries:M(E)},k)for(N in P)(S||$||!(N in T))&&m(T,N,P[N]);else n({target:t,proto:!0,forced:S||$},P);return i&&!k||T[j]===J||m(T,j,J,{name:p}),d[t]=J,P}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),c=r(2769),a=r(262),u=r(5780),l=r(3671),h=r(3508),f=r(8655),m=r(4871),p=f("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!a(n)||o((function(){var e={};return n[p].call(e)!==e}))?n={}:m&&(n=u(n)),c(n[p])||h(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),c=r(5241),a=r(3489),u=r(9619),l=r(4275),h="prototype",f="script",m=l("IE_PROTO"),p=function(){},d=function(e){return"<"+f+">"+e+"</"+f+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?y(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete v[h][o[s]];return v()};c[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[h]=s(e),r=new p,p[h]=null,r[m]=e):r=v(),void 0===t?r:i.f(r,t)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),c=r(3273),a=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),c=r(5341),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",m="writable";t.f=n?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var n=l(e,t);n&&n[m]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:h in r?r[h]:n[h],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=c(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),c=r(3273),a=r(5341),u=r(701),l=r(9665),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(e,t){if(e=c(e),t=a(t),l)try{return h(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),i=r(2137),o=r(4275),c=r(2871),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(n(t,a))return t[a];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,c=r(5241),a=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(c,r)&&s(n,r)&&a(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||a(l,r));return l}},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),i=r(5426),o=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&s(r=e.toString)&&!i(c=n(r,e)))return c;if(s(r=e.valueOf)&&!i(c=n(r,e)))return c;if("string"!==t&&s(r=e.toString)&&!i(c=n(r,e)))return c;throw new o("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),c=r(7235),a=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),c=r(9559),a=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!n&&i(l,"toString",c))}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),i=r(7525),o="__core-js_shared__",c=e.exports=s[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),c=n("".charAt),a=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,h=i(o(t)),f=s(r),m=h.length;return f<0||f>=m?e?"":void 0:(n=a(h,f))<55296||n>56319||f+1===m||(l=a(h,f+1))<56320||l>57343?e?c(h,f):n:e?u(h,f,f+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),i=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),i=r(6281),o=r(4674),c=r(9258),a=r(8655),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,a=o(e,l);if(a){if(void 0===t&&(t="default"),r=n(a,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),i=r(701),o=r(1268),c=r(4603),a=r(7460),u=n.Symbol,l=s("wks"),h=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:h("Symbol."+e)),l[e]}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),c=r(3491),a=r(7464),u=r(5516),l=r(3507),h=r(4879),f=r(8148),m=r(4279),p=r(5024),d=r(4871);e.exports=function(e,t,r,y){var v="stackTraceLimit",g=y?2:1,b=e.split("."),S=b[b.length-1],j=n.apply(null,b);if(j){var x=j.prototype;if(!d&&s(x,"cause")&&delete x.cause,!r)return j;var O=n("Error"),E=t((function(e,t){var r=h(y?t:e,void 0),n=y?new j(e):new j;return void 0!==r&&i(n,"message",r),m(n,E,n.stack,2),this&&o(x,this)&&l(n,this,E),arguments.length>g&&f(n,arguments[g]),n}));if(E.prototype=x,"Error"!==S?c?c(E,O):a(E,O,{name:!0}):p&&v in j&&(u(E,j,v),u(E,j,"prepareStackTrace")),a(E,j),!d)try{x.name!==S&&i(x,"name",S),x.constructor=E}catch(e){}return E}}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),c=r(6453),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),c=r(7464),a=r(5780),u=r(3999),l=r(480),h=r(8148),f=r(4279),m=r(208),p=r(4879),d=r(8655)("toStringTag"),y=Error,v=[].push,g=function(e,t){var r,n=s(b,this);o?r=o(new y,n?i(this):b):(r=n?this:a(b),u(r,d,"Error")),void 0!==t&&u(r,"message",p(t)),f(r,g,r.stack,1),arguments.length>2&&h(r,arguments[2]);var c=[];return m(e,v,{that:c}),u(r,"errors",c),r};o?o(g,y):c(g,y,{name:!0});var b=g.prototype=a(y.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},5695:(e,t,r)=>{"use strict";r(3085)},7447:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),c=r(9989).f,a=r(164),u=r(877),l=r(4871),h=r(5024),f="Array Iterator",m=o.set,p=o.getterFor(f);e.exports=a(Array,"Array",(function(e,t){m(this,{type:f,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&h&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),i=r(7013),o=r(6453),c="WebAssembly",a=s[c],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},h=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,u),n({target:c,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),i=r(8417),o=r(164),c=r(877),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?c(void 0,!0):(e=n(r,s),t.index+=e.length,c(e,!1))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(7447);var n=r(1100),s=r(8900),i=r(1811),o=r(6625);for(var c in n)i(s[c],c),o[c]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AlternatingVisitor:()=>Vs,FallbackVisitor:()=>gn,FixedFieldsVisitor:()=>Un,JSONSchema202012MediaTypes:()=>Te,JSONSchemaElement:()=>lo,JSONSchemaVisitor:()=>vo,LinkDescriptionElement:()=>ho,LinkDescriptionVisitor:()=>So,MapVisitor:()=>os,ParentSchemaAwareVisitor:()=>Hn,PatternedFieldsVisitor:()=>is,SpecificationVisitor:()=>Gn,Visitor:()=>vn,createRefractor:()=>Ao,default:()=>fo,isArrayElement:()=>he,isBooleanElement:()=>ue,isElement:()=>ie,isJSONSchemaElement:()=>Oo,isLinkDescriptionElement:()=>Eo,isLinkElement:()=>me,isMemberElement:()=>fe,isNullElement:()=>ae,isNumberElement:()=>ce,isObjectElement:()=>le,isRefElement:()=>pe,isStringElement:()=>oe,mediaTypes:()=>Fe,refract:()=>Po,refractorPluginReplaceEmptyElement:()=>yo,specificationObj:()=>jo});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>Se,includesClasses:()=>xe,includesSymbols:()=>je,isAnnotationElement:()=>de,isArrayElement:()=>he,isBooleanElement:()=>ue,isCommentElement:()=>ye,isElement:()=>ie,isLinkElement:()=>me,isMemberElement:()=>fe,isNullElement:()=>ae,isNumberElement:()=>ce,isObjectElement:()=>le,isParseResultElement:()=>ve,isPrimitiveElement:()=>be,isRefElement:()=>pe,isSourceMapElement:()=>ge,isStringElement:()=>oe});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>Wn,isJSONSchemaElement:()=>Kn,isLinkDescriptionElement:()=>Xn,isMediaElement:()=>Yn});var s={};r.r(s),r.d(s,{isJSONReferenceElement:()=>Wn,isJSONSchemaElement:()=>di,isLinkDescriptionElement:()=>yi,isMediaElement:()=>Yn});var i={};r.r(i),r.d(i,{isJSONReferenceElement:()=>Wn,isJSONSchemaElement:()=>Ai,isLinkDescriptionElement:()=>Pi});var o={};r.r(o),r.d(o,{isJSONSchemaElement:()=>so,isLinkDescriptionElement:()=>io});var c={};r.r(c),r.d(c,{isJSONSchemaElement:()=>Oo,isLinkDescriptionElement:()=>Eo});var a=r(8326);function u(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function l(e){return function t(r){return 0===arguments.length||u(r)?t:e.apply(this,arguments)}}function h(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return u(r)?t:l((function(t){return e(r,t)}));default:return u(r)&&u(n)?t:u(r)?l((function(t){return e(t,n)})):u(n)?l((function(t){return e(r,t)})):e(r,n)}}}const f=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function m(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!f(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=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 r.apply(this,arguments)}}function p(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const d=function(){return this.xf["@@transducer/init"]()},y=function(e){return this.xf["@@transducer/result"](e)};var v=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=d,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=p(this.xf["@@transducer/step"](e,!1))),e},e}();function g(e){return function(t){return new v(e,t)}}const b=h(m(["all"],g,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function S(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,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function j(e,t,r){return function(){for(var n=[],s=0,i=e,o=0,c=!1;o<t.length||s<arguments.length;){var a;o<t.length&&(!u(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),n[o]=a,u(a)?c=!0:i-=1,o+=1}return!c&&i<=0?r.apply(this,n):S(Math.max(0,i),j(e,n,r))}}const x=h((function(e,t){return 1===e?l(t):S(e,j(e,[],t))}));const O=l((function(e){return x(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));function E(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function w(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function k(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const A="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 N=function(){return"[object Arguments]"===P.call(arguments)?function(e){return"[object Arguments]"===P.call(e)}:function(e){return k("callee",e)}}();var M=!{toString:null}.propertyIsEnumerable("toString"),_=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=function(){return arguments.propertyIsEnumerable("length")}(),T=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},F="function"!=typeof Object.keys||$?l((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=$&&N(e);for(t in e)!k(t,e)||s&&"length"===t||(n[n.length]=t);if(M)for(r=_.length-1;r>=0;)k(t=_[r],e)&&!T(n,t)&&(n[n.length]=t),r-=1;return n})):l((function(e){return Object(e)!==e?[]:Object.keys(e)}));const J=F;const R=l((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function I(e,t,r,n){var s=E(e);function i(e,t){return D(e,t,r.slice(),n.slice())}return!w((function(e,t){return!w(i,t,e)}),E(t),s)}function D(e,t,r,n){if(A(e,t))return!0;var s,i,o=R(e);if(o!==R(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!A(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!A(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=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),r.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=J(e);if(a.length!==J(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(c=a.length-1;c>=0;){var h=a[c];if(!k(h,t)||!D(t[h],e[h],u,l))return!1;c-=1}return!0}const C=h((function(e,t){return D(e,t,[],[])}));function L(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(C(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}const V=O(h(L));class q extends a.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const B=q;class z extends a.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const G=z;const U=l((function(e){return function(){return e}}));const H=U(void 0);const K=C(H());class W extends a.wE{constructor(e,t,r){super(e,t,r),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(K(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Y=W;class X extends a.wE{constructor(e,t,r){super(e,t,r),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 a.wE([e.start.row,e.start.column,e.start.char]),r=new a.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Z=X,Q=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],ee=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,te=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),re=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof a.wE)&&t.classes.includes(e),ne=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,se=e=>e({hasMethod:Q,hasBasicElementProps:ee,primitiveEq:te,isElementType:ne,hasClass:re}),ie=se((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof a.Hg||e(r)&&t(void 0,r))),oe=se((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof a.Om||e(r)&&t("string",r))),ce=se((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof a.kT||e(r)&&t("number",r))),ae=se((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof a.Os||e(r)&&t("null",r))),ue=se((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof a.bd||e(r)&&t("boolean",r))),le=se((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof a.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),he=se((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof a.wE&&!(n instanceof a.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),fe=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof a.Pr||e(n)&&t("member",n)&&r(void 0,n))),me=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof a.Ft||e(n)&&t("link",n)&&r(void 0,n))),pe=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof a.sI||e(n)&&t("ref",n)&&r(void 0,n))),de=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof B||e(n)&&t("annotation",n)&&r("array",n))),ye=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof G||e(n)&&t("comment",n)&&r("string",n))),ve=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Y||e(n)&&t("parseResult",n)&&r("array",n))),ge=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Z||e(n)&&t("sourceMap",n)&&r("array",n))),be=e=>ne("object",e)||ne("array",e)||ne("boolean",e)||ne("number",e)||ne("string",e)||ne("null",e)||ne("member",e),Se=e=>ge(e.meta.get("sourceMap")),je=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!he(r)&&b(V(r.toValue()),e)},xe=(e,t)=>0===e.length||b(V(t.classes.toValue()),e);function Oe(e){return"[object String]"===Object.prototype.toString.call(e)}function Ee(e,t){var r=e<0?t.length+e:e;return Oe(t)?t.charAt(r):t[r]}const we=l((function(e){return Ee(-1,e)}));var ke=r(1212);const Ae=class extends ke{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Pe extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Ae,e)}constructor(e,t){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.hasOwn(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}`)}}}const Ne=Pe;const Me=class extends Ne{};const _e=class extends Me{};const $e=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new _e("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new _e("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new _e("latest method in MediaTypes class is not yet implemented.")}};class Te extends $e{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2020-12",t="generic"){const r="generic"===t?`schema;version=${e}`:`schema+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return we(this.filterByFormat(e))}}const Fe=new Te("application/schema;version=2020-12","application/schema+json;version=2020-12","application/schema+yaml;version=2020-12");function Je(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return u(r)?t:h((function(t,n){return e(r,t,n)}));case 2:return u(r)&&u(n)?t:u(r)?h((function(t,r){return e(t,n,r)})):u(n)?h((function(t,n){return e(r,t,n)})):l((function(t){return e(r,n,t)}));default:return u(r)&&u(n)&&u(s)?t:u(r)&&u(n)?h((function(t,r){return e(t,r,s)})):u(r)&&u(s)?h((function(t,r){return e(t,n,r)})):u(n)&&u(s)?h((function(t,n){return e(r,t,n)})):u(r)?l((function(t){return e(t,n,s)})):u(n)?l((function(t){return e(r,t,s)})):u(s)?l((function(t){return e(r,n,t)})):e(r,n,s)}}}function Re(e){return"[object Object]"===Object.prototype.toString.call(e)}const Ie=Je((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})k(n,t)&&(s[n]=k(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)k(n,r)&&!k(n,s)&&(s[n]=r[n]);return s}));const De=Je((function e(t,r,n){return Ie((function(r,n,s){return Re(n)&&Re(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Ce=h((function(e,t){return De((function(e,t,r){return r}),e,t)}));const Le=h((function(e,t){return null==t||t!=t?e:t})),Ve=Number.isInteger||function(e){return(e|0)===e};const qe=h((function(e,t){if(null!=t)return Ve(e)?Ee(e,t):t[e]}));const Be=Je((function(e,t,r){return Le(e,qe(t,r))}));function ze(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=Ve(s)?Ee(s,r):r[s]}return r}const Ge=h(ze);function Ue(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return f(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const He=Je(Ue("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ke=He(0,-1);const We=h((function(e,t){return S(e.length,(function(){return e.apply(t,arguments)}))}));const Ye=h((function(e,t){return e.apply(this,t)}));function Xe(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const Ze=l((function(e){return!!f(e)||!!e&&("object"==typeof e&&(!Oe(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Qe="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function et(e,t,r){return function(n,s,i){if(Ze(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[Qe])return r(n,s,i[Qe]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function tt(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function rt(e,t,r,n){return r[n](e,t)}const nt=et(Xe,rt,tt);function st(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}var it=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=d,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const ot=h(m(["fantasy-land/map","map"],(function(e){return function(t){return new it(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return x(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Xe((function(r,n){return r[n]=e(t[n]),r}),{},J(t));default:return st(e,t)}})));const ct=h((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(r){return e(r)(t(r))}:nt((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,ot(r,t))}),[],e)}));const at=h((function(e,t){var r=x(e,t);return x(e,(function(){return Xe(ct,ot(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ut=l((function(e){return at(e.length,e)}));const lt=ut(l((function(e){return!e})));function ht(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 ft=function(e){return(e<10?"0":"")+e};const mt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ft(e.getUTCMonth()+1)+"-"+ft(e.getUTCDate())+"T"+ft(e.getUTCHours())+":"+ft(e.getUTCMinutes())+":"+ft(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var pt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=d,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function dt(e){return function(t){return new pt(e,t)}}const yt=h(m(["fantasy-land/filter","filter"],dt,(function(e,t){return Re(t)?Xe((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},J(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const vt=h((function(e,t){return yt((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function gt(e,t){var r=function(r){var n=t.concat([e]);return L(r,n)?"<Circular>":gt(r,n)},n=function(e,t){return st((function(t){return ht(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+st(r,e).join(", ")+"))";case"[object Array]":return"["+st(r,e).concat(n(e,vt((function(e){return/^\d+$/.test(e)}),J(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):ht(mt(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":ht(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,J(e)).join(", ")+"}"}}const bt=l((function(e){return gt(e,[])}));const St=h((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=bt(e),o=r(i,bt(t));return void 0!==o&&o===i?e:t}));const jt=h((function(e,t){return ot(qe(e),t)}));function xt(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function Ot(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function Et(e,t,r,n){return e["@@transducer/result"](r[n](We(e["@@transducer/step"],e),t))}const wt=et(xt,Et,Ot);var kt=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 At=Je((function(e,t,r){return wt("function"==typeof e?new kt(e):e,t,r)}));const Pt=l((function(e){return x(At(St,0,jt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function Nt(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Mt=l(Ue("tail",He(1,1/0)));function _t(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return S(arguments[0].length,At(Nt,arguments[0],Mt(arguments)))}var $t=function(e,t){switch(arguments.length){case 0:return $t;case 1:return function t(r){return 0===arguments.length?t:A(e,r)};default:return A(e,t)}};const Tt=$t;const Ft=x(1,_t(R,Tt("GeneratorFunction")));const Jt=x(1,_t(R,Tt("AsyncFunction")));const Rt=Pt([_t(R,Tt("Function")),Ft,Jt]);const It=lt(Rt);function Dt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ct=h((function(e,t){return e&&t}));const Lt=h((function(e,t){return Dt(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ut(Ct)(e,t)}));var Vt=l((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():f(e)?[]:Oe(e)?"":Re(e)?{}:N(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 qt=Vt;const Bt=l((function(e){return null!=e&&C(e,qt(e))}));const zt=x(1,Rt(Array.isArray)?Array.isArray:_t(R,Tt("Array")));const Gt=Lt(zt,Bt);const Ut=x(3,(function(e,t,r){var n=Ge(e,r),s=Ge(Ke(e),r);if(!It(n)&&!Gt(e)){var i=We(n,s);return Ye(i,t)}}));const Ht=Je((function(e,t,r){return e(ze(t,r))}));const Kt=C(null);const Wt=lt(Kt);function Yt(e){return Yt="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},Yt(e)}const Xt=function(e){return"object"===Yt(e)};const Zt=x(1,Lt(Wt,Xt));var Qt=_t(R,Tt("Object")),er=_t(bt,C(bt(Object))),tr=Ht(Lt(Rt,er),["constructor"]);const rr=x(1,(function(e){if(!Zt(e)||!Qt(e))return!1;var t=Object.getPrototypeOf(e);return!!Kt(t)||tr(t)}));class nr extends a.g${constructor(){super(),this.register("annotation",B),this.register("comment",G),this.register("parseResult",Y),this.register("sourceMap",Z)}}const sr=new nr,ir=e=>{const t=new nr;return rr(e)&&t.use(e),t},or=sr,cr=()=>({predicates:{...e},namespace:or});const ar=x(1,_t(R,Tt("String")));const ur=class extends Ne{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},lr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},hr={},fr=e=>null==e?void 0:e.type,mr=e=>"string"==typeof fr(e),pr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),dr=(e,{visitFnGetter:t=lr,nodeTypeGetter:r=fr,breakSymbol:n=hr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,l,h,f,m,p){let d=u,y=!1;const v={...p,replaceWith(e,t){p.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=c.call(e[u],d,l,h,f,m,v);if("function"==typeof(null==t?void 0:t.then))throw new ur("Async visitor not supported in sync mode",{visitor:e[u],visitFn:c});if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(s,o,u,l,h,f){let m=s;const p={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(m),!0);if("function"==typeof c){const t=c.call(e[s],m,o,u,l,h,p);if("function"==typeof(null==t?void 0:t.then))throw new ur("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===m&&(a[s]=c)}}};dr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=lr,nodeTypeGetter:r=fr,breakSymbol:n=hr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,l,h,f,m,p){let d=u,y=!1;const v={...p,replaceWith(e,t){p.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=await c.call(e[u],d,l,h,f,m,v);if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,h,f){let m=s;const p={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(m),!0);if("function"==typeof c){const t=await c.call(e[s],m,o,u,l,h,p);if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===m&&(a[s]=c)}}};const yr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=hr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=lr,nodeTypeGetter:a=fr,nodePredicate:u=mr,nodeCloneFn:l=pr,detectCycles:h=!0}={})=>{const f=r||{};let m,p,d=Array.isArray(e),y=[e],v=-1,g=[],b=e;const S=[],j=[];do{v+=1;const e=v===y.length;let r;const E=e&&0!==g.length;if(e){if(r=0===j.length?void 0:S.pop(),b=p,p=j.pop(),E)if(d){b=b.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=l(b);for(const[e,t]of g)b[e]=t}v=m.index,y=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(p!==i&&void 0!==p){if(r=d?v:y[v],b=p[r],b===i||void 0===b)continue;S.push(r)}let w;if(!Array.isArray(b)){var x;if(!u(b))throw new ur(`Invalid AST Node: ${String(b)}`,{node:b});if(h&&j.includes(b)){S.pop();continue}const i=c(t,a(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,b,r,p,S,j):p&&(p[r]=t),e||(b=t)}};w=i.call(t,b,r,p,S,j,s)}if("function"==typeof(null===(x=w)||void 0===x?void 0:x.then))throw new ur("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(w===s)break;if(w===o){if(!e){S.pop();continue}}else if(void 0!==w&&(g.push([r,w]),!e)){if(!u(w)){S.pop();continue}b=w}}var O;if(void 0===w&&E&&g.push([r,b]),!e)m={inArray:d,index:v,keys:y,edits:g,prev:m},d=Array.isArray(b),y=d?b:null!==(O=f[a(b)])&&void 0!==O?O:[],v=-1,g=[],p!==i&&void 0!==p&&j.push(p),p=b}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};yr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=hr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=lr,nodeTypeGetter:a=fr,nodePredicate:u=mr,nodeCloneFn:l=pr,detectCycles:h=!0}={})=>{const f=r||{};let m,p,d=Array.isArray(e),y=[e],v=-1,g=[],b=e;const S=[],j=[];do{v+=1;const e=v===y.length;let r;const O=e&&0!==g.length;if(e){if(r=0===j.length?void 0:S.pop(),b=p,p=j.pop(),O)if(d){b=b.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=l(b);for(const[e,t]of g)b[e]=t}v=m.index,y=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(p!==i&&void 0!==p){if(r=d?v:y[v],b=p[r],b===i||void 0===b)continue;S.push(r)}let E;if(!Array.isArray(b)){if(!u(b))throw new ur(`Invalid AST Node: ${String(b)}`,{node:b});if(h&&j.includes(b)){S.pop();continue}const i=c(t,a(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,b,r,p,S,j):p&&(p[r]=t),e||(b=t)}};E=await i.call(t,b,r,p,S,j,s)}if(E===s)break;if(E===o){if(!e){S.pop();continue}}else if(void 0!==E&&(g.push([r,E]),!e)){if(!u(E)){S.pop();continue}b=E}}var x;if(void 0===E&&O&&g.push([r,b]),!e)m={inArray:d,index:v,keys:y,edits:g,prev:m},d=Array.isArray(b),y=d?b:null!==(x=f[a(b)])&&void 0!==x?x:[],v=-1,g=[],p!==i&&void 0!==p&&j.push(p),p=b}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};const vr=class extends ur{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const gr=class extends vr{};const br=class extends vr{},Sr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof a.KeyValuePair){const{key:t,value:s}=e,i=ie(t)?Sr(t,n):t,o=ie(s)?Sr(s,n):s,c=new a.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof a.ot){const t=e=>Sr(e,n),s=[...e].map(t),i=new a.ot(s);return r.set(e,i),i}if(e instanceof a.G6){const t=e=>Sr(e,n),s=[...e].map(t),i=new a.G6(s);return r.set(e,i),i}if(ie(e)){const t=Or(e);if(r.set(e,t),e.content)if(ie(e.content))t.content=Sr(e.content,n);else if(e.content instanceof a.KeyValuePair)t.content=Sr(e.content,n);else if(Array.isArray(e.content)){const r=e=>Sr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new gr("Value provided to cloneDeep function couldn't be cloned",{value:e})};Sr.safe=e=>{try{return Sr(e)}catch{return e}};const jr=e=>{const{key:t,value:r}=e;return new a.KeyValuePair(t,r)},xr=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Sr(e.meta)),e.attributes.length>0&&(t._attributes=Sr(e.attributes)),ie(e.content)){const r=e.content;t.content=xr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof a.KeyValuePair?t.content=jr(e.content):t.content=e.content;return t},Or=e=>{if(e instanceof a.KeyValuePair)return jr(e);if(e instanceof a.ot)return(e=>{const t=[...e];return new a.ot(t)})(e);if(e instanceof a.G6)return(e=>{const t=[...e];return new a.G6(t)})(e);if(ie(e))return xr(e);throw new br("Value provided to cloneShallow function couldn't be cloned",{value:e})};Or.safe=e=>{try{return Or(e)}catch{return e}};const Er=e=>le(e)?"ObjectElement":he(e)?"ArrayElement":fe(e)?"MemberElement":oe(e)?"StringElement":ue(e)?"BooleanElement":ce(e)?"NumberElement":ae(e)?"NullElement":me(e)?"LinkElement":pe(e)?"RefElement":void 0,wr=e=>ie(e)?Or(e):pr(e),kr=_t(Er,ar),Ar={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Pr=(e,t,{keyMap:r=Ar,...n}={})=>yr(e,t,{keyMap:r,nodeTypeGetter:Er,nodePredicate:kr,nodeCloneFn:wr,...n});Pr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Ar,...n}={})=>yr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Er,nodePredicate:kr,nodeCloneFn:wr,...n});const Nr={toolboxCreator:cr,visitorOptions:{nodeTypeGetter:Er,exposeEdits:!0}},Mr=(e,t,r={})=>{if(0===t.length)return e;const n=Ce(Nr,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=dr(c.map(Be({},"visitor")),{...i});c.forEach(Ut(["pre"],[]));const u=Pr(e,a,i);return c.forEach(Ut(["post"],[])),u};Mr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Ce(Nr,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=dr[Symbol.for("nodejs.util.promisify.custom")],u=Pr[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(Be({},"visitor")),{...i});await Promise.allSettled(c.map(Ut(["pre"],[])));const h=await u(e,l,i);return await Promise.allSettled(c.map(Ut(["post"],[]))),h};const _r=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return ie(e)&&(e.meta.length>0&&(n.meta=Sr(e.meta)),e.attributes.length>0&&(n.attributes=Sr(e.attributes))),Mr(n,r,{toolboxCreator:cr,visitorOptions:{nodeTypeGetter:Er}})},$r=e=>(t,r={})=>_r(t,{...r,Type:e});a.Sh.refract=$r(a.Sh),a.wE.refract=$r(a.wE),a.Om.refract=$r(a.Om),a.bd.refract=$r(a.bd),a.Os.refract=$r(a.Os),a.kT.refract=$r(a.kT),a.Ft.refract=$r(a.Ft),a.sI.refract=$r(a.sI),B.refract=$r(B),G.refract=$r(G),Y.refract=$r(Y),Z.refract=$r(Z);class Tr extends a.Sh{constructor(e,t,r){super(e,t,r),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 Fr=Tr;class Jr extends a.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Rr=Jr;class Ir extends a.Sh{constructor(e,t,r){super(e,t,r),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 Dr=Ir;class Cr extends a.Sh{constructor(e,t,r){super(e,t,r),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 Lr=Cr;const Vr=h((function(e,t){return Xe((function(r,n){return r[n]=e(t[n],n,t),r}),{},J(t))}));const qr=l((function(e){return null==e}));var Br=h((function(e,t){if(0===e.length||qr(t))return!1;for(var r=t,n=0;n<e.length;){if(qr(r)||!k(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const zr=Br;var Gr=h((function(e,t){return zr([e],t)}));const Ur=Gr;const Hr=Je((function(e,t,r){return e(qe(t,r))}));const Kr=l((function(e){return x(e.length,e)}));const Wr=h((function(e,t){return x(e+1,(function(){var r=arguments[e];if(null!=r&&Dt(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(bt(r)+' does not have a method named "'+t+'"')}))}));const Yr=Wr(1,"split");var Xr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=d,e.prototype["@@transducer/result"]=y,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 Zr(e){return function(t){return new Xr(e,t)}}const Qr=h(m(["dropWhile"],Zr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return He(r,1/0,t)})));const en=Wr(1,"join");const tn=Kr((function(e,t){return _t(Yr(""),Qr(V(e)),en(""))(t)})),rn=(e,t)=>{const r=Le(e,t);return Vr((e=>{if(rr(e)&&Ur("$ref",e)&&Hr(ar,"$ref",e)){const t=Ge(["$ref"],e),n=tn("#/",t);return Ge(n.split("/"),r)}return rr(e)?rn(e,r):e}),e)};const nn=function(){return!0},sn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Er(e),on={EphemeralObject:["content"],EphemeralArray:["content"],...Ar},cn=(e,t,{keyMap:r=on,...n}={})=>Pr(e,t,{keyMap:r,nodeTypeGetter:sn,nodePredicate:nn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});cn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=on,...r}={})=>Pr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:sn,nodePredicate:nn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const an=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 un=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 ln{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new un(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 an(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){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return oe(e.href)?e.href.toValue():""}}const hn=e=>ie(e)?oe(e)||ce(e)||ue(e)||ae(e)?e.toValue():cn(e,new ln):e,fn=e=>{const t=e.meta.length>0?Sr(e.meta):void 0,r=e.attributes.length>0?Sr(e.attributes):void 0;return new e.constructor(void 0,t,r)},mn=(e,t)=>t.clone&&t.isMergeableElement(e)?dn(fn(e),e,t):e,pn={clone:!0,isMergeableElement:e=>le(e)||he(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>mn(e,r))),objectElementMerge:(e,t,r)=>{const n=le(e)?fn(e):fn(t);return le(e)&&e.forEach(((e,t,s)=>{const i=Or(s);i.value=mn(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=hn(s);let c;if(le(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);c=Or(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return dn;const r=t.customMerge(e,t);return"function"==typeof r?r:dn})(s,r)(n,t)}else c=Or(i),c.value=mn(t,r);n.remove(o),n.content.push(c)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},dn=(e,t,r)=>{var n,s,i;const o={...pn,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:pn.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:pn.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:pn.objectElementMerge;const c=he(t);if(!(c===he(e)))return mn(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Sr(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Sr(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};dn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new a.Sh:e.reduce(((e,r)=>dn(e,r,t)),fn(e[0]))};const yn=dn;const vn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=yn(t.meta,e.meta),Se(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=yn(t.attributes,e.attributes))}};const gn=class extends vn{enter(e){return this.element=Sr(e),hr}},bn=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},Sn=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Sn(r,[...t,r])},jn=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Sn(e)));for(;r.every((e=>e.length>0));){const e=r.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(s),o=Sn(s);for(let t of e){let e=Sn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(bn(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},xn=e=>e.filter(((t,r)=>e.indexOf(t)==r)),On=(e,t)=>{const r=t.map((e=>Sn(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},En=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(On(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==On(n,e)||void 0!==t[n],get:(r,n)=>(On(n,e)||t)[n],set(t,r,n){const s=On(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=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)))))}),wn=null,kn="copy",An="copy",Pn="deep",Nn=new WeakMap,Mn=e=>Nn.get(e),_n=(e,t)=>{var r,n;const s=xn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=xn([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},$n=(e,t)=>{var r,n,s,i;return{property:_n(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:_n(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Tn=(e,t)=>{var r,n,s,i,o,c;return{class:xn([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:$n(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:$n(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Fn=new Map,Jn=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...Sn(e.prototype).map((e=>e.constructor)),...null!==(t=Mn(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>Fn.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Tn(e,t)))},Rn=e=>{let t=Fn.get(e);return t||(t={},Fn.set(e,t)),t};function In(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=wn;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};s.push(r)}function o(...t){for(const r of e)bn(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===An?jn(s,o):(c=s,a=o,En([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===kn?jn(e,null,["prototype"]):En(e,Function.prototype));let u=o;if("none"!==Pn){const s="deep"===Pn?Jn(...e):((...e)=>{const t=e.map((e=>Rn(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Tn(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Dn(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),Dn(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,h;return l=u,h=e,Nn.set(l,h),u}const Dn=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Cn=l((function(e){return x(At(St,0,jt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ln=l((function(e){return!Bt(e)}));const Vn=h((function(e,t){return e||t}));var qn=lt(x(1,Lt(Wt,h((function(e,t){return Dt(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ut(Vn)(e,t)}))(Xt,Rt))));const Bn=Cn([ar,qn,Ln]);const zn=h((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const Gn=class extends vn{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return zn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ge(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ht(Rt,["visitors",...e],this.specObj)?Ge(["visitors",...e],this.specObj):Ge(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof gn&&(null==n?void 0:n.constructor)===gn?Sr(t):(Pr(t,n,r),n.element)}};const Un=class extends Gn{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(oe(n)&&r.includes(hn(n))&&!this.ignoredFields.includes(hn(n))){const r=this.toRefractedElement([...t,"fixedFields",hn(n)],e),i=new a.Pr(Sr(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(hn(n))||this.element.content.push(Sr(s))})),this.copyMetaAndAttributes(e,this.element),hr}};const Hn=class{parent;constructor({parent:e}){this.parent=e}},Kn=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fr||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Wn=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rr||e(n)&&t("JSONReference",n)&&r("object",n))),Yn=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dr||e(n)&&t("media",n)&&r("object",n))),Xn=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lr||e(n)&&t("linkDescription",n)&&r("object",n)));class Zn extends(In(Un,Hn,gn)){constructor(e){super(e),this.element=new Fr,this.specPath=U(["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,Un.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(K(this.parent)&&!oe(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Kn(this.parent)&&!oe(e.get("$schema"))){const e=Le(hn(this.parent.meta.get("inheritedDialectIdentifier")),hn(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?Sr(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new a.wE,n=hn(e.get(t));Bn(n)&&r.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Qn=Zn,es=e=>le(e)&&e.hasKey("$ref");class ts extends(In(Gn,Hn,gn)){ObjectElement(e){const t=es(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),hr}ArrayElement(e){return this.element=new a.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=es(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),hr}}const rs=ts;const ns=class extends gn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const ss=function(){return!1};const is=class extends Gn{specPath;ignoredFields;fieldPatternPredicate=ss;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(hn(t))&&this.fieldPatternPredicate(hn(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new a.Pr(Sr(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(hn(t))||this.element.content.push(Sr(r))})),this.copyMetaAndAttributes(e,this.element),hr}};const os=class extends is{constructor(e){super(e),this.fieldPatternPredicate=Bn}};class cs extends(In(os,Hn,gn)){constructor(e){super(e),this.element=new a.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>es(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const as=cs;class us extends(In(os,Hn,gn)){constructor(e){super(e),this.element=new a.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>es(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ls=us;class hs extends(In(os,Hn,gn)){constructor(e){super(e),this.element=new a.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>es(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const fs=hs;const ms=class extends gn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ps=class extends gn{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 ds extends(In(Gn,Hn,gn)){constructor(e){super(e),this.element=new a.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=es(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),hr}}const ys=ds;class vs extends(In(Gn,Hn,gn)){constructor(e){super(e),this.element=new a.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=es(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),hr}}const gs=vs;class bs extends(In(Gn,Hn,gn)){constructor(e){super(e),this.element=new a.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=es(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),hr}}const Ss=bs;class js extends(In(os,Hn,gn)){constructor(e){super(e),this.element=new a.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>es(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const xs=js;class Os extends(In(Gn,Hn,gn)){constructor(e){super(e),this.element=new a.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),hr}}const Es=Os;class ws extends(In(Un,gn)){constructor(e){super(e),this.element=new Rr,this.specPath=U(["document","objects","JSONReference"])}ObjectElement(e){const t=Un.prototype.ObjectElement.call(this,e);return oe(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ks=ws;const As=class extends gn{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Ps=Je((function(e,t,r){return x(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Ns=l((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Ms=h((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const _s=Ms;const $s=l((function(e){return Ee(0,e)}));const Ts=l(p);const Fs=lt(qr);const Js=Lt(zt,Ln);function Rs(e){return function(e){if(Array.isArray(e))return Is(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 Is(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Is(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 Is(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ds=_t(_s(Ns((function(e,t){return e.length>t.length}))),$s,qe("length")),Cs=Kr((function(e,t,r){var n=r.apply(void 0,Rs(e));return Fs(n)?Ts(n):t}));const Ls=Ps(Js,(function(e){var t=Ds(e);return x(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return At(Cs(r),void 0,e)}))}),H);const Vs=class extends Gn{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Ps(e,U(t),H))),r=Ls(t)(e);return this.element=this.toRefractedElement(r,e),hr}};const qs=class extends Vs{constructor(e){super(e),this.alternator=[{predicate:es,specPath:["document","objects","JSONReference"]},{predicate:nn,specPath:["document","objects","JSONSchema"]}]}};class Bs extends(In(Un,gn)){constructor(e){super(e),this.element=new Dr,this.specPath=U(["document","objects","Media"])}}const zs=Bs;class Gs extends(In(Un,gn)){constructor(e){super(e),this.element=new Lr,this.specPath=U(["document","objects","LinkDescription"])}}const Us=Gs,Hs={visitors:{value:gn,JSONSchemaOrJSONReferenceVisitor:qs,document:{objects:{JSONSchema:{$visitor:Qn,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:qs,items:rs,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:ns,properties:as,additionalProperties:qs,patternProperties:ls,dependencies:fs,enum:ms,type:ps,allOf:ys,anyOf:gs,oneOf:Ss,not:qs,definitions:xs,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Es,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:ks,fixedFields:{$ref:As}},Media:{$visitor:zs,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Us,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:qs,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:qs}}}}}},Ks=e=>{if(ie(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ws={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Ar},Ys={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Fr),t.register("jSONReference",Rr),t.register("media",Dr),t.register("linkDescription",Lr),t}},Xs=()=>{const e=ir(Ys);return{predicates:{...t,isStringElement:oe},namespace:e}},Zs=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Hs}={})=>{const s=(0,a.e)(e),i=rn(n),o=new(Ge(t,i))({specObj:i});return Pr(s,o),Mr(o.element,r,{toolboxCreator:Xs,visitorOptions:{keyMap:Ws,nodeTypeGetter:Ks}})},Qs=e=>(t,r={})=>Zs(t,{specPath:e,...r});Fr.refract=Qs(["visitors","document","objects","JSONSchema","$visitor"]),Rr.refract=Qs(["visitors","document","objects","JSONReference","$visitor"]),Dr.refract=Qs(["visitors","document","objects","Media","$visitor"]),Lr.refract=Qs(["visitors","document","objects","LinkDescription","$visitor"]);const ei=class extends Fr{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new Me("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Me("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const ti=class extends Lr{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Me("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Me("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Me("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Me("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Me("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Me("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var ri=Je((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!qr(n)&&k(s,n)&&"object"==typeof n[s]?n[s]:Ve(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Ve(e)&&f(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));const ni=ri;const si=Je((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n}));var ii=Je((function(e,t,r){return ni([e],t,r)}));const oi=ii;var ci=h((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(Ve(e)&&f(t))return si(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}(t[0],r);default:var n=t[0],s=Array.prototype.slice.call(t,1);return null==r[n]?function(e,t){if(Ve(e)&&f(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}(n,r):oi(n,e(s,r[n]),r)}}));const ai=ci;const ui=class extends Qn{constructor(e){super(e),this.element=new ei}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const li=class extends rs{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),hr}};const hi=class extends gn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const fi=class extends Us{constructor(e){super(e),this.element=new ti}},mi=_t(ni(["visitors","document","objects","JSONSchema","$visitor"],ui),ai(["visitors","document","objects","JSONSchema","fixedFields","id"]),ni(["visitors","document","objects","JSONSchema","fixedFields","$id"],Hs.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","contains"],Hs.visitors.JSONSchemaOrJSONReferenceVisitor),ni(["visitors","document","objects","JSONSchema","fixedFields","items"],li),ni(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Hs.visitors.JSONSchemaOrJSONReferenceVisitor),ni(["visitors","document","objects","JSONSchema","fixedFields","const"],Hs.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","examples"],hi),ni(["visitors","document","objects","LinkDescription","$visitor"],fi),ni(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Hs.visitors.JSONSchemaOrJSONReferenceVisitor),ai(["visitors","document","objects","LinkDescription","fixedFields","schema"]),ni(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Hs.visitors.JSONSchemaOrJSONReferenceVisitor),ai(["visitors","document","objects","LinkDescription","fixedFields","method"]),ai(["visitors","document","objects","LinkDescription","fixedFields","encType"]),ni(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Hs.visitors.value))(Hs),pi={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Ar},di=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ei||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n))),yi=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ti||e(n)&&t("linkDescription",n)&&r("object",n))),vi={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",ei),t.register("jSONReference",Rr),t.register("media",Dr),t.register("linkDescription",ti),t}},gi=()=>{const e=ir(vi);return{predicates:{...s,isStringElement:oe},namespace:e}},bi=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=mi}={})=>{const s=(0,a.e)(e),i=rn(n),o=new(Ge(t,i))({specObj:i});return Pr(s,o),Mr(o.element,r,{toolboxCreator:gi,visitorOptions:{keyMap:pi,nodeTypeGetter:Ks}})},Si=e=>(t,r={})=>bi(t,{specPath:e,...r});ei.refract=Si(["visitors","document","objects","JSONSchema","$visitor"]),ti.refract=Si(["visitors","document","objects","LinkDescription","$visitor"]);const ji=class extends ei{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Me('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Me('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const xi=class extends ti{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Me("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Me("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Me("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Me("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const Oi=class extends ui{constructor(e){super(e),this.element=new ji}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const Ei=class extends fi{constructor(e){super(e),this.element=new xi}},wi=_t(ni(["visitors","document","objects","JSONSchema","$visitor"],Oi),ni(["visitors","document","objects","JSONSchema","fixedFields","$comment"],mi.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","if"],mi.visitors.JSONSchemaOrJSONReferenceVisitor),ni(["visitors","document","objects","JSONSchema","fixedFields","then"],mi.visitors.JSONSchemaOrJSONReferenceVisitor),ni(["visitors","document","objects","JSONSchema","fixedFields","else"],mi.visitors.JSONSchemaOrJSONReferenceVisitor),ai(["visitors","document","objects","JSONSchema","fixedFields","media"]),ni(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],mi.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],mi.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],mi.visitors.value),ni(["visitors","document","objects","LinkDescription","$visitor"],Ei),ni(["visitors","document","objects","LinkDescription","fixedFields","anchor"],mi.visitors.value),ni(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],mi.visitors.value),ai(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),ni(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],mi.visitors.value),ni(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],mi.visitors.value),ni(["visitors","document","objects","LinkDescription","fixedFields","description"],mi.visitors.value),ni(["visitors","document","objects","LinkDescription","fixedFields","$comment"],mi.visitors.value),ni(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],mi.visitors.JSONSchemaOrJSONReferenceVisitor),ai(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),ni(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],mi.visitors.value))(mi),ki={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Ar},Ai=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ji||e(n)&&t("JSONSchemaDraft7",n)&&r("object",n))),Pi=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xi||e(n)&&t("linkDescription",n)&&r("object",n))),Ni={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",ji),t.register("jSONReference",Rr),t.register("linkDescription",xi),t}},Mi=()=>{const e=ir(Ni);return{predicates:{...i,isStringElement:oe},namespace:e}},_i=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=wi}={})=>{const s=(0,a.e)(e),i=rn(n),o=new(Ge(t,i))({specObj:i});return Pr(s,o),Mr(o.element,r,{toolboxCreator:Mi,visitorOptions:{keyMap:ki,nodeTypeGetter:Ks}})},$i=e=>(t,r={})=>_i(t,{specPath:e,...r});ji.refract=$i(["visitors","document","objects","JSONSchema","$visitor"]),xi.refract=$i(["visitors","document","objects","LinkDescription","$visitor"]);const Ti=class extends ji{constructor(e,t,r){super(e,t,r),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Me("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Me("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new Me("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Me("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const Fi=class extends xi{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Ji=class extends Oi{constructor(e){super(e),this.element=new Ti}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Un.prototype.ObjectElement.call(this,e);return oe(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Ri=class extends gn{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Ii=class extends gn{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Di extends(In(os,Hn,gn)){constructor(e){super(e),this.element=new a.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=U(["document","objects","JSONSchema"])}}const Ci=Di;class Li extends(In(Gn,Hn,gn)){constructor(e){super(e),this.element=new a.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),hr}}const Vi=Li;class qi extends(In(Gn,Hn,gn)){constructor(e){super(e),this.element=new a.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),hr}}const Bi=qi;class zi extends(In(Gn,Hn,gn)){constructor(e){super(e),this.element=new a.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),hr}}const Gi=zi;class Ui extends(In(os,Hn,gn)){constructor(e){super(e),this.element=new a.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=U(["document","objects","JSONSchema"])}}const Hi=Ui;class Ki extends(In(Gn,Hn,gn)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),hr}ArrayElement(e){return this.element=new a.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),hr}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),hr}}const Wi=Ki;class Yi extends(In(os,Hn,gn)){constructor(e){super(e),this.element=new a.Sh,this.element.classes.push("json-schema-properties"),this.specPath=U(["document","objects","JSONSchema"])}}const Xi=Yi;class Zi extends(In(os,Hn,gn)){constructor(e){super(e),this.element=new a.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=U(["document","objects","JSONSchema"])}}const Qi=Zi;const eo=class extends gn{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const to=class extends Ei{constructor(e){super(e),this.element=new Fi}},ro=_t(ni(["visitors","document","objects","JSONSchema","$visitor"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Ri),ni(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],wi.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],wi.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],wi.visitors.value),ai(["visitors","document","objects","JSONReference","$visitor"]),ni(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Ii),ai(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),ni(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Ci),ni(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Vi),ni(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Bi),ni(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Gi),ni(["visitors","document","objects","JSONSchema","fixedFields","not"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","if"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","then"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","else"],Ji),ai(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),ni(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Hi),ni(["visitors","document","objects","JSONSchema","fixedFields","items"],Wi),ni(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","properties"],Xi),ni(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Qi),ni(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Ji),ni(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],wi.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","minContains"],wi.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],eo),ni(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],wi.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Ji),ni(["visitors","document","objects","LinkDescription","$visitor"],to),ni(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Ji),ni(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ji),ni(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Ji),ni(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ji))(wi),no={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Ar},so=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ti||e(n)&&t("JSONSchema201909",n)&&r("object",n))),io=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fi||e(n)&&t("linkDescription",n)&&r("object",n))),oo={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Ti),t.register("linkDescription",Fi),t}},co=()=>{const e=ir(oo);return{predicates:{...o,isStringElement:oe},namespace:e}},ao=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=ro}={})=>{const s=(0,a.e)(e),i=rn(n),o=new(Ge(t,i))({specObj:i});return Pr(s,o),Mr(o.element,r,{toolboxCreator:co,visitorOptions:{keyMap:no,nodeTypeGetter:Ks}})},uo=e=>(t,r={})=>ao(t,{specPath:e,...r});Ti.refract=uo(["visitors","document","objects","JSONSchema","$visitor"]),Fi.refract=uo(["visitors","document","objects","LinkDescription","$visitor"]);const lo=class extends Ti{constructor(e,t,r){super(e,t,r),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Me("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Me("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Me("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Me("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){throw new Me("additionalItems keyword from Applicator vocabulary has been removed.")}set additionalItems(e){throw new Me("additionalItems keyword from Applicator vocabulary has been removed.")}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const ho=class extends Fi{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},fo={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",lo),t.register("linkDescription",ho),t}},mo={JSONSchema202012Element:{prefixItems(...e){const t=new a.wE(...e);return t.classes.push("json-schema-prefixItems"),t},items:(...e)=>new lo(...e),contains:(...e)=>new lo(...e),required(...e){const t=new a.wE(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new a.Sh(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new lo(...e),patternProperties(...e){const t=new a.Sh(...e);return t.classes.push("json-schema-patternProperties"),t},dependentSchemas(...e){const t=new a.Sh(...e);return t.classes.push("json-schema-dependentSchemas"),t},propertyNames:(...e)=>new lo(...e),enum(...e){const t=new a.wE(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new a.wE(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new a.wE(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new a.wE(...e);return t.classes.push("json-schema-oneOf"),t},if:(...e)=>new lo(...e),then:(...e)=>new lo(...e),else:(...e)=>new lo(...e),not:(...e)=>new lo(...e),$defs(...e){const t=new a.Sh(...e);return t.classes.push("json-schema-$defs"),t},examples(...e){const t=new a.wE(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new a.wE(...e);return t.classes.push("json-schema-links"),t},$vocabulary(...e){const t=new a.Sh(...e);return t.classes.push("json-schema-$vocabulary"),t},unevaluatedItems:(...e)=>new lo(...e),unevaluatedProperties:(...e)=>new lo(...e),$dependentRequired(...e){const t=new a.Sh(...e);return t.classes.push("json-schema-$dependentRequired"),t},contentSchema:(...e)=>new lo(...e),type(...e){const t=new a.wE(...e);return t.classes.push("json-schema-type"),t}},LinkDescriptionElement:{hrefSchema:(...e)=>new lo(...e),targetSchema:(...e)=>new lo(...e),submissionSchema:(...e)=>new lo(...e),templatePointers:(...e)=>new a.Sh(...e),templateRequired:(...e)=>new a.wE(...e),targetHints:(...e)=>new a.Sh(...e),headerSchema:(...e)=>new lo(...e)},"json-schema-prefixItems":{"<*>":function(...e){return new lo(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new lo(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new lo(...e)}},"json-schema-dependentSchemas":{"[key: *]":function(...e){return new lo(...e)}},"json-schema-allOf":{"<*>":function(...e){return new lo(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new lo(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new lo(...e)}},"json-schema-$defs":{"[key: *]":function(...e){return new lo(...e)}},"json-schema-links":{"<*>":function(...e){return new ho(...e)}}},po=(e,t)=>{const r=Ks(e),n=mo[r]||mo[hn(e.classes.first)];return void 0===n?void 0:Object.prototype.hasOwnProperty.call(n,"[key: *]")?n["[key: *]"]:n[t]},yo=()=>()=>({visitor:{StringElement(e,t,r,n,s){if(!(e=>oe(e)&&xe(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,r].filter(ie),o=i[i.length-1];let c,a;return he(o)?(a=e,c=po(o,"<*>")):fe(o)&&(a=i[i.length-2],c=po(a,hn(o.key))),"function"==typeof c?c.call({context:a},void 0,Sr(e.meta),Sr(e.attributes)):void 0}}});const vo=class extends Ji{constructor(e){super(e),this.element=new lo}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class go extends(In(Gn,Hn,gn)){constructor(e){super(e),this.element=new a.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),hr}}const bo=go;const So=class extends to{constructor(e){super(e),this.element=new ho}},jo=_t(ni(["visitors","document","objects","JSONSchema","$visitor"],vo),ai(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),ni(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],ro.visitors.value),ai(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),ni(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],ro.visitors.value),ni(["visitors","document","objects","JSONSchema","fixedFields","not"],vo),ni(["visitors","document","objects","JSONSchema","fixedFields","if"],vo),ni(["visitors","document","objects","JSONSchema","fixedFields","then"],vo),ni(["visitors","document","objects","JSONSchema","fixedFields","else"],vo),ni(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],bo),ni(["visitors","document","objects","JSONSchema","fixedFields","items"],vo),ni(["visitors","document","objects","JSONSchema","fixedFields","contains"],vo),ni(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],vo),ai(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),ni(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],vo),ni(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],vo),ni(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],vo),ni(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],vo),ni(["visitors","document","objects","LinkDescription","$visitor"],So),ni(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],vo),ni(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],vo),ni(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],vo),ni(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],vo))(ro),xo={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Ar},Oo=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lo||e(n)&&t("JSONSchema202012",n)&&r("object",n))),Eo=se((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ho||e(n)&&t("linkDescription",n)&&r("object",n))),wo=()=>{const e=ir(fo);return{predicates:{...c,isStringElement:oe},namespace:e}},ko=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=jo}={})=>{const s=(0,a.e)(e),i=rn(n),o=new(Ge(t,i))({specObj:i});return Pr(s,o),Mr(o.element,r,{toolboxCreator:wo,visitorOptions:{keyMap:xo,nodeTypeGetter:Ks}})},Ao=e=>(t,r={})=>ko(t,{specPath:e,...r}),Po=ko})(),n})()));