@swagger-api/apidom-parser-adapter-asyncapi-json-2 1.5.0 → 1.5.1

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.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterAsyncApiJson2=t():e.apidomParserAdapterAsyncApiJson2=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,s)=>{"use strict";s(9828);var n=s(1100),r=s(8900),i=s(1811),o=s(6625);for(var a in n)i(r[a],a),o[a]=o.Array},88:(e,t,s)=>{var n=s(4700);e.exports=function(e){return n(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,s)=>{"use strict";var n=s(9098),r=s(4713),i=s(4871),o=s(3410),a=s(2769),c=s(1926),u=s(3671),l=s(3491),d=s(1811),m=s(3999),h=s(3508),p=s(8655),_=s(6625),g=s(2621),f=o.PROPER,b=o.CONFIGURABLE,v=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,p,g,O){c(s,t,o);var M,B,P,A=function(e){if(e===p&&R)return R;if(!y&&e&&e in C)return C[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},T=t+" Iterator",$=!1,C=e.prototype,I=C[w]||C["@@iterator"]||p&&C[p],R=!y&&I||A(p),F="Array"===t&&C.entries||I;if(F&&(M=u(F.call(new e)))!==Object.prototype&&M.next&&(i||u(M)===v||(l?l(M,v):a(M[w])||h(M,w,j)),d(M,T,!0,!0),i&&(_[T]=j)),f&&p===x&&I&&I.name!==x&&(!i&&b?m(C,"name",x):($=!0,R=function(){return r(I,this)})),p)if(B={values:A(x),keys:g?R:A(E),entries:A(S)},O)for(P in B)(y||$||!(P in C))&&h(C,P,B[P]);else n({target:t,proto:!0,forced:y||$},B);return i&&!O||C[w]===R||h(C,w,R,{name:p}),_[t]=R,B}},195:(e,t,s)=>{var n=s(4882),r=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},208:(e,t,s)=>{"use strict";var n=s(4572),r=s(4713),i=s(7235),o=s(459),a=s(2877),c=s(8130),u=s(4317),l=s(1613),d=s(967),m=s(1743),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},_=p.prototype;e.exports=function(e,t,s){var g,f,b,v,y,w,E,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),j=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),M=!(!s||!s.INTERRUPTED),B=n(t,x),P=function(e){return g&&m(g,"normal",e),new p(!0,e)},A=function(e){return S?(i(e),M?B(e[0],e[1],P):B(e[0],e[1])):M?B(e,P):B(e)};if(j)g=e.iterator;else if(O)g=e;else{if(!(f=d(e)))throw new h(o(e)+" is not iterable");if(a(f)){for(b=0,v=c(e);v>b;b++)if((y=A(e[b]))&&u(_,y))return y;return new p(!1)}g=l(e,f)}for(w=j?e.next:g.next;!(E=r(w,g)).done;){try{y=A(E.value)}catch(e){m(g,"throw",e)}if("object"==typeof y&&y&&u(_,y))return y}return new p(!1)}},239:(e,t,s)=>{"use strict";s(5442);var n=s(6656);s(85),e.exports=n},262:(e,t,s)=>{"use strict";var n=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},353:(e,t,s)=>{var n=s(1340),r=s(3934),i=s(8861),o=s(1182),a=s(8486),c=s(3142),u=s(5853),l=s(8666),d="[object Arguments]",m="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,g,f){var b=c(e),v=c(t),y=b?m:a(e),w=v?m:a(t),E=(y=y==d?h:y)==h,x=(w=w==d?h:w)==h,S=y==w;if(S&&u(e)){if(!u(t))return!1;b=!0,E=!1}if(S&&!E)return f||(f=new n),b||l(e)?r(e,t,s,_,g,f):i(e,t,y,s,_,g,f);if(!(1&s)){var j=E&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(j||O){var M=j?e.value():e,B=O?t.value():t;return f||(f=new n),g(M,B,s,_,f)}}return!!S&&(f||(f=new n),o(e,t,s,_,g,f))}},358:(e,t,s)=>{var n=s(6137),r=s(3283),i=s(3142),o=s(5853),a=s(9632),c=s(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),l=!s&&r(e),d=!s&&!l&&o(e),m=!s&&!l&&!d&&c(e),h=s||l||d||m,p=h?n(e.length,String):[],_=p.length;for(var g in e)!t&&!u.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||m&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,_))||p.push(g);return p}},393:(e,t,s)=>{var n=s(8244),r=s(7979),i=s(1211);e.exports=function(e){return n(e,i,r)}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,s)=>{"use strict";var n=s(9098),r=s(8900),i=s(7013),o=s(6453),a="WebAssembly",c=r[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var s={};s[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},s)},d=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},s)}};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)}})),d("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},493:(e,t,s)=>{"use strict";var n=s(4713),r=s(262),i=s(6281),o=s(4674),a=s(9258),c=s(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var s,c=o(e,l);if(c){if(void 0===t&&(t="default"),s=n(c,e,t),!r(s)||i(s))return s;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,s)=>{var n=s(7379),r=s(5387),i=s(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&r(e.length)&&!!o[n(e)]}},701:(e,t,s)=>{"use strict";var n=s(6100),r=s(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}},814:(e,t,s)=>{"use strict";var n=s(2769),r=s(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(r(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,s)=>{"use strict";var n=s(8407),r=s(4674),i=s(3057),o=s(6625),a=s(8655)("iterator");e.exports=function(e){if(!i(e))return r(e,a)||r(e,"@@iterator")||o[n(e)]}},986:(e,t,s)=>{var n=s(7379),r=s(547);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==n(e)}},1003:(e,t,s)=>{"use strict";var n=s(8099),r=s(8900),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(r[e]):n[e]&&n[e][t]||r[e]&&r[e][t]}},1005:(e,t,s)=>{"use strict";var n=s(3273),r=s(4574),i=s(8130),o=function(e){return function(t,s,o){var a=n(t),c=i(a);if(0===c)return!e&&-1;var u,l=r(o,c);if(e&&s!=s){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===s)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},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}},1112:(e,t,s)=>{var n=s(4497),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return r.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var s=-1,n=t.length,r=e.length;++s<n;)e[r+s]=t[s];return e}},1139:(e,t,s)=>{"use strict";var n=s(8407),r=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},1182:(e,t,s)=>{var n=s(393),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,a){var c=1&s,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var d=l;d--;){var m=u[d];if(!(c?m in t:r.call(t,m)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=c;++d<l;){var f=e[m=u[d]],b=t[m];if(i)var v=c?i(b,f,m,t,e,a):i(f,b,m,e,t,a);if(!(void 0===v?f===b||o(f,b,s,i,a):v)){_=!1;break}g||(g="constructor"==m)}if(_&&!g){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(_=!1)}return a.delete(e),a.delete(t),_}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,s)=>{var n=s(358),r=s(195),i=s(6529);e.exports=function(e){return i(e)?n(e):r(e)}},1212:(e,t,s)=>{e.exports=s(8411)},1268:(e,t,s)=>{"use strict";var n=s(6100),r=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+i,36)}},1314:(e,t,s)=>{"use strict";var n=s(8900),r=s(2769),i=n.WeakMap;e.exports=r(i)&&/native code/.test(String(i))},1330:(e,t,s)=>{"use strict";var n=s(5024),r=s(1203);e.exports=n&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,s)=>{var n=s(1386),r=s(4103),i=s(1779),o=s(4162),a=s(7462),c=s(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},1386:(e,t,s)=>{var n=s(2393),r=s(2049),i=s(7144),o=s(7452),a=s(3964);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1395:(e,t,s)=>{"use strict";var n=s(6100),r=s(1203),i=s(9932),o=Object,a=n("".split);e.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,s)=>{"use strict";var n=s(4713),r=s(814),i=s(7235),o=s(459),a=s(967),c=TypeError;e.exports=function(e,t){var s=arguments.length<2?a(e):t;if(r(s))return i(n(s,e));throw new c(o(e)+" is not iterable")}},1623:(e,t,s)=>{var n=s(8942).Uint8Array;e.exports=n},1743:(e,t,s)=>{"use strict";var n=s(4713),r=s(7235),i=s(4674);e.exports=function(e,t,s){var o,a;r(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw s;if(a)throw o;return r(o),s}},1779:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},1780:(e,t,s)=>{"use strict";var n=s(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,s)=>{"use strict";var n=s(4904),r=s(9989).f,i=s(3999),o=s(701),a=s(9559),c=s(8655)("toStringTag");e.exports=function(e,t,s,u){var l=s?e:e&&e.prototype;l&&(o(l,c)||r(l,c,{configurable:!0,value:t}),u&&!n&&i(l,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,s)=>{"use strict";var n=s(2621).IteratorPrototype,r=s(5780),i=s(480),o=s(1811),a=s(6625),c=function(){return this};e.exports=function(e,t,s,u){var l=t+" Iterator";return e.prototype=r(n,{next:i(+!u,s)}),o(e,l,!1,!0),a[l]=c,e}},1950:(e,t,s)=>{var n=s(8942)["__core-js_shared__"];e.exports=n},1966:(e,t,s)=>{"use strict";var n=s(2937),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}},2049:(e,t,s)=>{var n=s(7034),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=n(t,e);return!(s<0)&&(s==t.length-1?t.pop():r.call(t,s,1),--this.size,!0)}},2137:(e,t,s)=>{"use strict";var n=s(5426),r=Object;e.exports=function(e){return r(n(e))}},2306:(e,t,s)=>{e=s.nmd(e);var n=s(4967),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},2555:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,s)=>{var n=s(7379),r=s(547);e.exports=function(e){return!0===e||!1===e||r(e)&&"[object Boolean]"==n(e)}},2621:(e,t,s)=>{"use strict";var n,r,i,o=s(1203),a=s(2769),c=s(262),u=s(5780),l=s(3671),d=s(3508),m=s(8655),h=s(4871),p=m("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(r=l(l(i)))!==Object.prototype&&(n=r):_=!0),!c(n)||o((function(){var e={};return n[p].call(e)!==e}))?n={}:h&&(n=u(n)),a(n[p])||d(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:_}},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}},2871:(e,t,s)=>{"use strict";var n=s(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,s)=>{"use strict";var n=s(8655),r=s(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},2937:(e,t,s)=>{"use strict";var n=s(262);e.exports=function(e){return n(e)||null===e}},3004:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e||null,t,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3078:()=>{},3085:(e,t,s)=>{"use strict";var n=s(9098),r=s(4317),i=s(3671),o=s(3491),a=s(7464),c=s(5780),u=s(3999),l=s(480),d=s(8148),m=s(4279),h=s(208),p=s(4879),_=s(8655)("toStringTag"),g=Error,f=[].push,b=function(e,t){var s,n=r(v,this);o?s=o(new g,n?i(this):v):(s=n?this:c(v),u(s,_,"Error")),void 0!==t&&u(s,"message",p(t)),m(s,b,s.stack,1),arguments.length>2&&d(s,arguments[2]);var a=[];return h(e,f,{that:a}),u(s,"errors",a),s};o?o(b,g):a(b,g,{name:!0});var v=b.prototype=c(g.prototype,{constructor:l(1,b),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:b})},3103:(e,t,s)=>{var n=s(4715)(s(8942),"DataView");e.exports=n},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,s)=>{const n=s(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(s.attributes=this.serialiseObject(n))}if(n)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(s.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let r=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),r.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.length&&r.unshift(e.content),r=r.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),r.length&&t.set("samples",r),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==s.content||(s.content=n),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const r=new t(n);r.element=s.element,e.push(r)}))}));const r=e.shift();s.content=r?r.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let n=s.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,s)=>{if(e){const n=s.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},3212:(e,t,s)=>{var n=s(8250),r=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new n;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=i,e.exports=o},3273:(e,t,s)=>{"use strict";var n=s(1395),r=s(5426);e.exports=function(e){return n(r(e))}},3283:(e,t,s)=>{var n=s(6027),r=s(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return r(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,s)=>{var n=s(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3311:(e,t,s)=>{const n=s(1517),r=s(4123);class i extends r{map(e,t){return this.elements.map((s=>e.bind(t)(s.value,s.key,s)))}filter(e,t){return new i(this.elements.filter((s=>e.bind(t)(s.value,s.key,s))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,n)=>{e.bind(t)(s.value,s.key,s,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3410:(e,t,s)=>{"use strict";var n=s(5024),r=s(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=r(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3489:(e,t,s)=>{"use strict";var n=s(1003);e.exports=n("document","documentElement")},3491:(e,t,s)=>{"use strict";var n=s(3574),r=s(262),i=s(5426),o=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=n(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,n){return i(s),o(n),r(s)?(t?e(s,n):s.__proto__=n,s):s}}():void 0)},3507:(e,t,s)=>{"use strict";var n=s(2769),r=s(262),i=s(3491);e.exports=function(e,t,s){var o,a;return i&&n(o=t.constructor)&&o!==s&&r(a=o.prototype)&&a!==s.prototype&&i(e,a),e}},3508:(e,t,s)=>{"use strict";var n=s(3999);e.exports=function(e,t,s,r){return r&&r.enumerable?e[t]=s:n(e,t,s),e}},3531:(e,t,s)=>{"use strict";var n=s(8900).navigator,r=n&&n.userAgent;e.exports=r?String(r):""},3574:(e,t,s)=>{"use strict";var n=s(6100),r=s(814);e.exports=function(e,t,s){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},3655:(e,t,s)=>{var n=s(7379),r=s(1580);e.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,s)=>{"use strict";var n=s(701),r=s(2769),i=s(2137),o=s(4275),a=s(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var s=t.constructor;return r(s)&&t instanceof s?s.prototype:t instanceof u?l:null}},3753:(e,t,s)=>{"use strict";var n=s(4871),r=s(8900),i=s(7525),o="__core-js_shared__",a=e.exports=r[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(s){return e(t(s))}}},3832:(e,t,s)=>{"use strict";var n=s(5571).charAt,r=s(1139),i=s(8417),o=s(164),a=s(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:r(e),index:0})}),(function(){var e,t=l(this),s=t.string,r=t.index;return r>=s.length?a(void 0,!0):(e=n(s,r),t.index+=e.length,a(e,!1))}))},3833:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(3078),nodePath=__webpack_require__(4142);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((s,n)=>{fs.readFile(e,t?void 0:"utf8",((e,r)=>{e?n(e):s(t?r.buffer:r)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,s)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{(200==n.status||0==n.status&&n.response)&&s(n.response),t(n.status)},n.onerror=t,n.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,s){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(s,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,s,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,s,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,s).then(n,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,s,n)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var s=getDylinkMetadata(t);return s.neededDynlibs&&(dynamicLibraries=s.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var s=GOT[t];return s||(s=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(s.required=!0),s}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,s)=>{for(var n=t+s,r=t;e[r]&&!(r>=n);)++r;if(r-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,r));for(var i="";t<r;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i},getDylinkMetadata=e=>{var t=0,s=0;function n(){for(var s=0,n=1;;){var r=e[t++];if(s+=(127&r)*n,n*=128,!(128&r))break}return s}function r(){var s=n();return UTF8ArrayToString(e,(t+=s)-s,s)}function i(e,t){if(e)throw new Error(t)}var o="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,o);0===a.length&&(o="dylink",a=WebAssembly.Module.customSections(e,o)),i(0===a.length,"need dylink section"),s=(e=new Uint8Array(a[0])).length}else{var c=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);i(!(1836278016==c[0]||6386541==c[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var u=n();s=t+u,o=r()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){l.memorySize=n(),l.memoryAlign=n(),l.tableSize=n(),l.tableAlign=n();for(var d=n(),m=0;m<d;++m){var h=r();l.neededDynlibs.push(h)}}else{i("dylink.0"!==o);for(;t<s;){var p=e[t++],_=n();if(1===p)l.memorySize=n(),l.memoryAlign=n(),l.tableSize=n(),l.tableAlign=n();else if(2===p)for(d=n(),m=0;m<d;++m)h=r(),l.neededDynlibs.push(h);else if(3===p)for(var g=n();g--;){var f=r();256&n()&&l.tlsExports.add(f)}else if(4===p)for(g=n();g--;){r(),f=r();1==(3&n())&&l.weakImports.add(f)}else t+=_}}return l};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,s)=>{var n={refcount:1/0,name:e,exports:s,global:!0};return LDSO.loadedLibsByName[e]=n,null!=t&&(LDSO.loadedLibsByHandle[t]=n),n},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,s=t+alignMemory(e,16);return ___heap_base=s,GOT.__heap_base.value=s,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},s={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)s.parameters.push(t[e[n]]);return s},generateFuncType=(e,t)=>{var s=e.slice(0,1),n=e.slice(1),r={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(n.length,t);for(var i=0;i<n.length;++i)t.push(r[n[i]]);"v"==s?t.push(0):t.push(1,r[s])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var s=[1];generateFuncType(t,s);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(s.length,n),n.push(...s),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var r=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(r,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var s=e;s<e+t;s++){var n=getWasmTableEntry(s);n&&functionsInTableMap.set(n,s)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var s=getFunctionAddress(e);if(s)return s;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(s){if(!(s instanceof TypeError))throw s;var r=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,r)}return functionsInTableMap.set(e,n),n},updateGOT=(e,t)=>{for(var s in e)if(!isInternalSym(s)){var n=e[s];s.startsWith("orig$")&&(s=s.split("$")[1],t=!0),GOT[s]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[s].value)&&("function"==typeof n?GOT[s].value=addFunction(n):"number"==typeof n?GOT[s].value=n:err(`unhandled export type for '${s}': ${typeof n}`))}},relocateExports=(e,t,s)=>{var n={};for(var r in e){var i=e[r];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),n[r]=i}return updateGOT(n,s),n},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,s)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...s)),dynCall=(e,t,s=[])=>e.includes("j")?dynCallLegacy(e,t,s):getWasmTableEntry(t)(...s),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...s)=>{var n=stackSave();try{return dynCall(e,t,s)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var s;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?s=wasmImports[e]:e.startsWith("invoke_")&&(s=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:s,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var s;t in e||(e[t]=(...e)=>(s||=resolveSymbol(t),s(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[s,n]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=n)};e(s);const t="__main_argc_argv";"main"==s&&e(t),s==t&&e("main"),s.startsWith("dynCall_")&&!Module.hasOwnProperty(s)&&(Module[s]=n)}},asyncLoad=(e,t,s,n)=>{var r=n?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),r&&removeRunDependency(r)}),(t=>{if(!s)throw`Loading data file "${e}" failed.`;s()})),r&&addRunDependency(r)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},s,n){var r=LDSO.loadedLibsByName[e];if(r)return t.global?r.global||(r.global=!0,mergeLibSymbols(r.exports,e)):s&&Object.assign(s,r.exports),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,n&&(LDSO.loadedLibsByHandle[n]=r),!t.loadAsync||Promise.resolve(!0);function i(){if(n){var s=LE_HEAP_LOAD_U32(4*(n+28>>2)),r=LE_HEAP_LOAD_U32(4*(n+32>>2));if(s&&r){var i=HEAP8.slice(s,s+r);return t.loadAsync?Promise.resolve(i):i}}var o=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(o,e,t)}));if(!readBinary)throw new Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?i().then((r=>loadWebAssemblyModule(r,t,e,s,n))):loadWebAssemblyModule(i(),t,e,s,n)}function a(t){r.global?mergeLibSymbols(t,e):s&&Object.assign(s,t),r.exports=t}return(r=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,r.global=t.global,t.loadAsync?o().then((e=>(a(e),!0))):(a(o()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var s=resolveGlobalSymbol(e,!0).sym;if(!s&&!t.required)continue;if("function"==typeof s)t.value=addFunction(s,s.sig);else{if("number"!=typeof s)throw new Error(`bad export type for '${e}': ${typeof s}`);t.value=s}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,s="i8"){switch(s.endsWith("*")&&(s="*"),s){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${s}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,s)=>HEAPU8.copyWithin(e,t,t+s);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var s=getHeapMax();if(e>s)return!1;for(var n,r,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var a=Math.min(s,(n=Math.max(e,o))+((r=65536)-n%r)%r);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,s,n,r){convertI32PairToI53Checked(t,s);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var s=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(s,0)),s.length=0):s.push(t)},_fd_write=(e,t,s,n)=>{for(var r=0,i=0;i<s;i++){var o=LE_HEAP_LOAD_U32(4*(t>>2)),a=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var c=0;c<a;c++)printChar(e,HEAPU8[o+c]);r+=a}return LE_HEAP_STORE_U32(4*(n>>2),r),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const s=UTF8ToString(t);currentLogCallback(s,0!==e)}}function _tree_sitter_parse_callback(e,t,s,n,r){const i=currentParseCallback(t,{row:s,column:n});"string"==typeof i?(setValue(r,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(r,0,"i32")}_fd_write.sig="iippp";var runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,s=0;s<e.length;++s){var n=e.charCodeAt(s);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++s):t+=3}return t},stringToUTF8Array=(e,t,s,n)=>{if(!(n>0))return 0;for(var r=s,i=s+n-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o);if(a<=127){if(s>=i)break;t[s++]=a}else if(a<=2047){if(s+1>=i)break;t[s++]=192|a>>6,t[s++]=128|63&a}else if(a<=65535){if(s+2>=i)break;t[s++]=224|a>>12,t[s++]=128|a>>6&63,t[s++]=128|63&a}else{if(s+3>=i)break;t[s++]=240|a>>18,t[s++]=128|a>>12&63,t[s++]=128|a>>6&63,t[s++]=128|63&a}}return t[s]=0,s-r},stringToUTF8=(e,t,s)=>stringToUTF8Array(e,HEAPU8,t,s),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,s=stackAlloc(t);return stringToUTF8(e,s,t),s},stringToUTF16=(e,t,s)=>{if(s??=2147483647,s<2)return 0;for(var n=t,r=(s-=2)<2*e.length?s/2:e.length,i=0;i<r;++i){var o=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),o),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-n},AsciiToString=e=>{for(var t="";;){var s=HEAPU8[e++];if(!s)return t;t+=String.fromCharCode(s)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,s)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,s),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,s,n)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,s,n),_strncmp=Module._strncmp=(e,t,s)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,s),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,s)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,s),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,s)=>(_memset=Module._memset=wasmExports.memset)(e,t,s),_memcpy=Module._memcpy=(e,t,s)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,s),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,s)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,s),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,s)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,s),_memmove=Module._memmove=(e,t,s)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,s),_memcmp=Module._memcmp=(e,t,s)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,s),_ts_query_new=Module._ts_query_new=(e,t,s,n,r)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,s,n,r),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,s)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,s),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,s)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,s),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,s)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,s),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,s)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,s),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,s,n,r)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,s,n,r),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,s,n,r,i,o)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,s,n,r,i,o),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,s,n,r,i,o,a,c,u,l)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,s,n,r,i,o,a,c,u,l),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,s,n,r,i,o,a,c,u,l)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,s,n,r,i,o,a,c,u,l),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,s)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,s),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,s)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,s),_strncpy=Module._strncpy=(e,t,s)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,s),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,s,n,r)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,s,n,r),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var s=e.length,n=stackAlloc(4*(s+1)),r=n;e.forEach((e=>{LE_HEAP_STORE_U32(4*(r>>2),stringToUTF8OnStack(e)),r+=4})),LE_HEAP_STORE_U32(4*(r>>2),0);try{var i=t(s,n);return exitJS(i,!0),i}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const s=C._ts_language_version(t);if(s<MIN_COMPATIBLE_VERSION||VERSION<s)throw new Error(`Incompatible language version ${s}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,s){if("string"==typeof e)currentParseCallback=(t,s)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,r=0;if(s?.includedRanges){n=s.includedRanges.length,r=C._calloc(n,SIZE_OF_RANGE);let e=r;for(let t=0;t<n;t++)marshalRange(e,s.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,r,n);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const o=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,o}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return s}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,s,n){assertInternal(e),this[0]=t,this.language=s,this.textCallback=n}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),marshalPoint(s+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)n[s]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return s}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)n[s]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(s)}return n}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,s){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),s||(s=ZERO_POINT);const n=[],r=this.tree.language.types;for(let t=0,s=r.length;t<s;t++)e.includes(r[t])&&n.push(t);const i=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)setValue(i+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,s.row,s.column);const o=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(i),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const s=lengthBytesUTF8(e),n=C._malloc(s+1);stringToUTF8(e,n,s+1);const r=C._ts_language_symbol_for_name(this[0],n,s,t);return C._free(n),r||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1);const n=C._ts_query_new(this[0],s,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!n){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=getValue(TRANSFER_BUFFER,"i32"),r=UTF8ToString(s,n).length,i=e.substr(r,100).split("\n")[0];let o,a=i.match(QUERY_WORD_REGEX)[0];switch(t){case 2:o=new RangeError(`Bad node name '${a}'`);break;case 3:o=new RangeError(`Bad field name '${a}'`);break;case 4:o=new RangeError(`Bad capture name @${a}`);break;case 5:o=new TypeError(`Bad pattern structure at offset ${r}: '${i}'...`),a="";break;default:o=new SyntaxError(`Bad syntax at offset ${r}: '${i}'...`),a=""}throw o.index=r,o.length=a.length,C._free(s),o}const r=C._ts_query_string_count(n),i=C._ts_query_capture_count(n),o=C._ts_query_pattern_count(n),a=new Array(i),c=new Array(r);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(n,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,s)}for(let e=0;e<r;e++){const t=C._ts_query_string_value_for_id(n,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,s)}const u=new Array(o),l=new Array(o),d=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(n,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");m[e]=[],h[e]=[];const r=[];let i=t;for(let t=0;t<s;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const s=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)r.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)r.push({type:"string",value:c[s]});else if(r.length>0){if("string"!==r[0].type)throw new Error("Predicates must begin with a literal value");const t=r[0].value;let s,n=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":n=!1;case"any-eq?":case"eq?":if(3!==r.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${r.length-1}`);if("capture"!==r[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${r[1].value}"`);if(i=!t.startsWith("any-"),"capture"===r[2].type){const t=r[1].name,s=r[2].name;h[e].push((e=>{const r=[],o=[];for(const n of e)n.name===t&&r.push(n.node),n.name===s&&o.push(n.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?r.every((e=>o.some((t=>a(e,t,n))))):r.some((e=>o.some((t=>a(e,t,n)))))}))}else{s=r[1].name;const t=r[2].value,o=e=>e.text===t,a=e=>e.text!==t;h[e].push((e=>{const t=[];for(const n of e)n.name===s&&t.push(n.node);const r=n?o:a;return i?t.every(r):t.some(r)}))}break;case"any-not-match?":case"not-match?":n=!1;case"any-match?":case"match?":if(3!==r.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${r.length-1}.`);if("capture"!==r[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${r[1].value}".`);if("string"!==r[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${r[2].value}.`);s=r[1].name;const o=new RegExp(r[2].value);i=!t.startsWith("any-"),h[e].push((e=>{const t=[];for(const n of e)n.name===s&&t.push(n.node.text);const r=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!n:i?t.every((e=>r(e,n))):t.some((e=>r(e,n)))}));break;case"set!":if(r.length<2||r.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${r.length-1}.`);if(r.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][r[1].value]=r[2]?r[2].value:null;break;case"is?":case"is-not?":if(r.length<2||r.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${r.length-1}.`);if(r.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?l:d;a[e]||(a[e]={}),a[e][r[1].value]=r[2]?r[2].value:null;break;case"not-any-of?":n=!1;case"any-of?":if(r.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${r.length-1}.`);if("capture"!==r[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${r[1].value}".`);for(let e=2;e<r.length;e++)if("string"!==r[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);s=r[1].name;const c=r.slice(2).map((e=>e.value));h[e].push((e=>{const t=[];for(const n of e)n.name===s&&t.push(n.node.text);return 0===t.length?!n:t.every((e=>c.includes(e)))===n}));break;default:m[e].push({operator:t,operands:r.slice(1)})}r.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(d[e])}return C._free(s),new Query(INTERNAL,n,a,h,m,Object.freeze(u),Object.freeze(l),Object.freeze(d))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const s=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(s))}else t=fetch(s).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const s=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${s}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),s=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));s||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[s]();return new Language(INTERNAL,n)}))}}class LookaheadIterable{constructor(e,t,s){assertInternal(e),this[0]=t,this.language=s}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,s,n,r,i,o,a){assertInternal(e),this[0]=t,this.captureNames=s,this.textPredicates=n,this.predicates=r,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:n=0,endIndex:r=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,n,r,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=new Array(c);this.exceededMatchLimit=Boolean(l);let m=0,h=u;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const n=new Array(s);if(h=unmarshalCaptures(this,e.tree,h,n),this.textPredicates[t].every((e=>e(n)))){d[m]={pattern:t,captures:n};const e=this.setProperties[t];e&&(d[m].setProperties=e);const s=this.assertedProperties[t];s&&(d[m].assertedProperties=s);const r=this.refutedProperties[t];r&&(d[m].refutedProperties=r),m++}}return d.length=m,C._free(u),d}captures(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:n=0,endIndex:r=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,n,r,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=[];this.exceededMatchLimit=Boolean(l);const m=[];let h=u;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const n=getValue(h,"i32");if(h+=SIZE_OF_INT,m.length=s,h=unmarshalCaptures(this,e.tree,h,m),this.textPredicates[t].every((e=>e(m)))){const e=m[n],s=this.setProperties[t];s&&(e.setProperties=s);const r=this.assertedProperties[t];r&&(e.assertedProperties=r);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),d.push(e)}}return C._free(u),d}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1),C._ts_query_disable_capture(this[0],s,t),C._free(s)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,s){const n=s-t;let r=e.textCallback(t,null,s);for(t+=r.length;t<s;){const n=e.textCallback(t,null,s);if(!(n&&n.length>0))break;t+=n.length,r+=n}return t>s&&(r=r.slice(0,n)),r}function unmarshalCaptures(e,t,s,n){for(let r=0,i=n.length;r<i;r++){const i=getValue(s,"i32"),o=unmarshalNode(t,s+=SIZE_OF_INT);s+=SIZE_OF_NODE,n[r]={name:e.captureNames[i],node:o}}return s}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const s=getValue(t,"i32");if(0===s)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),r=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=s,a.startIndex=n,a.startPosition={row:r,column:i},a[0]=o,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},3885:(e,t,s)=>{"use strict";var n=s(6100),r=Error,i=n("".replace),o=String(new r("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},3934:(e,t,s)=>{var n=s(3212),r=s(6465),i=s(5568);e.exports=function(e,t,s,o,a,c){var u=1&s,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var p=-1,_=!0,g=2&s?new n:void 0;for(c.set(e,t),c.set(t,e);++p<l;){var f=e[p],b=t[p];if(o)var v=u?o(b,f,p,t,e,c):o(f,b,p,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(g){if(!r(t,(function(e,t){if(!i(g,t)&&(f===e||a(f,e,s,o,c)))return g.push(t)}))){_=!1;break}}else if(f!==b&&!a(f,b,s,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},3964:(e,t,s)=>{var n=s(7034);e.exports=function(e,t){var s=this.__data__,r=n(s,e);return r<0?(++this.size,s.push([e,t])):s[r][1]=t,this}},3999:(e,t,s)=>{"use strict";var n=s(5024),r=s(9989),i=s(480);e.exports=n?function(e,t,s){return r.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,e}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},4103:(e,t,s)=>{var n=s(1386);e.exports=function(){this.__data__=new n,this.size=0}},4123:(e,t,s)=>{const n=s(1517);function r(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((n=>{const r=e.bind(t)(n);r&&s.push(r)})),s}filter(e,t){return e=r(e),new i(this.elements.filter(e,t))}reject(e,t){return e=r(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=r(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,s)=>{"use strict";var n=s(8141),r=s(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},4279:(e,t,s)=>{"use strict";var n=s(3999),r=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,a){i&&(o?o(e,t):n(e,"stack",r(s,a)))}},4317:(e,t,s)=>{"use strict";var n=s(6100);e.exports=n({}.isPrototypeOf)},4497:(e,t,s)=>{var n=s(4715)(Object,"create");e.exports=n},4512:(e,t,s)=>{var n=s(4715)(s(8942),"Set");e.exports=n},4543:(e,t,s)=>{"use strict";var n=s(5024),r=s(4713),i=s(7161),o=s(480),a=s(3273),c=s(5341),u=s(701),l=s(9665),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=c(t),l)try{return d(e,t)}catch(e){}if(u(e,t))return o(!r(i.f,e,t),e[t])}},4572:(e,t,s)=>{"use strict";var n=s(9344),r=s(814),i=s(1780),o=n(n.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,s)=>{"use strict";var n=s(9903),r=Math.max,i=Math.min;e.exports=function(e,t){var s=n(e);return s<0?r(s+t,0):i(s,t)}},4603:(e,t,s)=>{"use strict";var n=s(5547),r=s(1203),i=s(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4674:(e,t,s)=>{"use strict";var n=s(814),r=s(3057);e.exports=function(e,t){var s=e[t];return r(s)?void 0:n(s)}},4687:(e,t,s)=>{var n=s(353),r=s(547);e.exports=function e(t,s,i,o,a){return t===s||(null==t||null==s||!r(t)&&!r(s)?t!=t&&s!=s:n(t,s,i,o,e,a))}},4700:(e,t,s)=>{var n=s(9067);e.exports=function(e,t){var s=e.__data__;return n(t)?s["string"==typeof t?"string":"hash"]:s.map}},4713:(e,t,s)=>{"use strict";var n=s(1780),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},4715:(e,t,s)=>{var n=s(9624),r=s(155);e.exports=function(e,t){var s=r(e,t);return n(s)?s:void 0}},4732:(e,t,s)=>{var n=s(4700);e.exports=function(e){return n(this,e).has(e)}},4759:(e,t,s)=>{var n,r=s(1950),i=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,s)=>{"use strict";var n=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},4904:(e,t,s)=>{"use strict";var n={};n[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},4967:(e,t,s)=>{var n="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=n},5024:(e,t,s)=>{"use strict";var n=s(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,s)=>{var n=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,s)=>{var n=s(3305),r=s(9361),i=s(1112),o=s(5276),a=s(5071);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5116:(e,t,s)=>{"use strict";var n=s(8600),r=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,s)=>{var n=s(4497),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}},5341:(e,t,s)=>{"use strict";var n=s(493),r=s(6281);e.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,s)=>{"use strict";var n=s(3057),r=TypeError;e.exports=function(e){if(n(e))throw new r("Can't call method on "+e);return e}},5442:(e,t,s)=>{"use strict";s(5695)},5516:(e,t,s)=>{"use strict";var n=s(9989).f;e.exports=function(e,t,s){s in e||n(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5547:(e,t,s)=>{"use strict";var n,r,i=s(8900),o=s(3531),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(r=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,s)=>{"use strict";var n=s(6100),r=s(9903),i=s(1139),o=s(5426),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,s){var n,l,d=i(o(t)),m=r(s),h=d.length;return m<0||m>=h?e?"":void 0:(n=c(d,m))<55296||n>56319||m+1===h||(l=c(d,m+1))<56320||l>57343?e?a(d,m):n:e?u(d,m,m+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5642:(e,t,s)=>{const n=s(1517),r=s(1580),i=s(9796),o=s(7309),a=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((s=>s.key.toValue()!==e||(t=s,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(r(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,n=this.getMember(s);return n?n.value=t:this.content.push(new o(s,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((n,r,i)=>{const o=e.bind(t)(n,r,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},5650:(e,t,s)=>{var n=s(8942).Symbol;e.exports=n},5681:(e,t,s)=>{var n=s(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,s)=>{"use strict";var n=s(1003),r=s(6100),i=s(5116),o=s(7313),a=s(7235),c=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),s=o.f;return s?c(t,s(e)):t}},5695:(e,t,s)=>{"use strict";s(3085)},5735:(e,t,s)=>{const n=s(9310),r=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),u=s(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(r,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,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,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const n=this.elementDetection[s][0],r=this.elementDetection[s][1];if(n(e)){t=new r(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?s:t)(n)}},5780:(e,t,s)=>{"use strict";var n,r=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),u=s(9619),l=s(4275),d="prototype",m="script",h=l("IE_PROTO"),p=function(){},_=function(e){return"<"+m+">"+e+"</"+m+">"},g=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},f=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;f="undefined"!=typeof document?document.domain&&n?g(n):(t=u("iframe"),s="java"+m+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):g(n);for(var r=o.length;r--;)delete f[d][o[r]];return f()};a[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(p[d]=r(e),s=new p,p[d]=null,s[h]=e):s=f(),void 0===t?s:i.f(s,t)}},5791:(e,t,s)=>{"use strict";var n=s(1203),r=s(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},5853:(e,t,s)=>{e=s.nmd(e);var n=s(8942),r=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||r;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,n){s[++t]=[n,e]})),s}},6027:(e,t,s)=>{var n=s(7379),r=s(547);e.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}},6100:(e,t,s)=>{"use strict";var n=s(1780),r=Function.prototype,i=r.call,o=n&&r.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var s=-1,n=Array(e);++s<e;)n[s]=t(s);return n}},6138:(e,t,s)=>{"use strict";var n=s(9098),r=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",u=r(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),l,!0)})},6281:(e,t,s)=>{"use strict";var n=s(1003),r=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&i(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,s)=>{var n=s(4687);e.exports=function(e,t){return n(e,t)}},6453:(e,t,s)=>{"use strict";var n=s(1003),r=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),u=s(5516),l=s(3507),d=s(4879),m=s(8148),h=s(4279),p=s(5024),_=s(4871);e.exports=function(e,t,s,g){var f="stackTraceLimit",b=g?2:1,v=e.split("."),y=v[v.length-1],w=n.apply(null,v);if(w){var E=w.prototype;if(!_&&r(E,"cause")&&delete E.cause,!s)return w;var x=n("Error"),S=t((function(e,t){var s=d(g?t:e,void 0),n=g?new w(e):new w;return void 0!==s&&i(n,"message",s),h(n,S,n.stack,2),this&&o(E,this)&&l(n,this,S),arguments.length>b&&m(n,arguments[b]),n}));if(S.prototype=E,"Error"!==y?a?a(S,x):c(S,x,{name:!0}):p&&f in w&&(u(S,w,f),u(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==y&&i(E,"name",y),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var s=-1,n=null==e?0:e.length;++s<n;)if(t(e[s],s,e))return!0;return!1}},6529:(e,t,s)=>{var n=s(3655),r=s(5387);e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,s)=>{var n=s(1386),r=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof n){var o=s.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var n=s(8099);e.exports=n.AggregateError},7013:(e,t,s)=>{"use strict";var n=s(1780),r=Function.prototype,i=r.apply,o=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,s)=>{var n=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(n(e[s][0],t))return s;return-1}},7144:(e,t,s)=>{var n=s(7034);e.exports=function(e){var t=this.__data__,s=n(t,e);return s<0?void 0:t[s][1]}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!s.call({1:2},1);t.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:s},7202:(e,t,s)=>{"use strict";var n=s(239);e.exports=n},7235:(e,t,s)=>{"use strict";var n=s(262),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(r(e)+" is not an object")}},7309:(e,t,s)=>{const n=s(2322),r=s(8631);e.exports=class extends r{constructor(e,t,s,r){super(new n,s,r),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,s)=>{var n=s(5650),r=s(8870),i=s(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):i(e)}},7389:(e,t,s)=>{"use strict";var n=s(5024),r=s(1330),i=s(9989),o=s(7235),a=s(3273),c=s(8364);t.f=n&&!r?Object.defineProperties:function(e,t){o(e);for(var s,n=a(t),r=c(t),u=r.length,l=0;u>l;)i.f(e,s=r[l++],n[s]);return e}},7447:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}},7452:(e,t,s)=>{var n=s(7034);e.exports=function(e){return n(this.__data__,e)>-1}},7460:(e,t,s)=>{"use strict";var n=s(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,s)=>{"use strict";var n=s(701),r=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var a=r(t),c=o.f,u=i.f,l=0;l<a.length;l++){var d=a[l];n(e,d)||s&&n(s,d)||c(e,d,u(t,d))}}},7525:(e,t,s)=>{"use strict";var n=s(8900),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(s){n[e]=t}return t}},7547:(e,t,s)=>{const n=s(8631),r=s(3004),i=s(8712),o=s(2536),a=s(2555),c=s(9796),u=s(7309),l=s(5642),d=s(9620),m=s(593),h=s(4123),p=s(3311),_=s(2322);function g(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 a(e);if(null===e)return new r;if(Array.isArray(e))return new c(e.map(g));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=m,n.prototype.MemberElement=u,n.prototype.refract=g,h.prototype.refract=g,e.exports={Element:n,NullElement:r,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:d,RefElement:m,refract:g,ArraySlice:h,ObjectSlice:p,KeyValuePair:_}},7979:(e,t,s)=>{var n=s(9847),r=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:r;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,s)=>{var n=s(3766)(Object.keys,Object);e.exports=n},8130:(e,t,s)=>{"use strict";var n=s(8146);e.exports=function(e){return n(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,s)=>{var n=s(7379),r=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!r(e)&&i(e)&&"[object String]"==n(e)}},8141:(e,t,s)=>{"use strict";var n=s(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},8146:(e,t,s)=>{"use strict";var n=s(9903),r=Math.min;e.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}},8148:(e,t,s)=>{"use strict";var n=s(262),r=s(3999);e.exports=function(e,t){n(t)&&"cause"in t&&r(e,"cause",t.cause)}},8244:(e,t,s)=>{var n=s(1129),r=s(3142);e.exports=function(e,t,s){var i=t(e);return r(e)?i:n(i,s(e))}},8250:(e,t,s)=>{var n=s(9753),r=s(5681),i=s(88),o=s(4732),a=s(9068);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8326:(e,t,s)=>{const n=s(5735),r=s(7547);t.g$=n,t.KeyValuePair=s(2322),t.G6=r.ArraySlice,t.ot=r.ObjectSlice,t.Hg=r.Element,t.Om=r.StringElement,t.kT=r.NumberElement,t.bd=r.BooleanElement,t.Os=r.NullElement,t.wE=r.ArrayElement,t.Sh=r.ObjectElement,t.Pr=r.MemberElement,t.sI=r.RefElement,t.Ft=r.LinkElement,t.e=r.refract,s(394),s(3148)},8337:(e,t,s)=>{"use strict";s(5442);var n=s(7202);e.exports=n},8364:(e,t,s)=>{"use strict";var n=s(8600),r=s(9683);e.exports=Object.keys||function(e){return n(e,r)}},8407:(e,t,s)=>{"use strict";var n=s(4904),r=s(2769),i=s(9932),o=s(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,s,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?s:c?i(t):"Object"===(n=i(t))&&r(t.callee)?"Arguments":n}},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8417:(e,t,s)=>{"use strict";var n,r,i,o=s(1314),a=s(8900),c=s(262),u=s(3999),l=s(701),d=s(3753),m=s(4275),h=s(5241),p="Object already initialized",_=a.TypeError,g=a.WeakMap;if(o||d.state){var f=d.state||(d.state=new g);f.get=f.get,f.has=f.has,f.set=f.set,n=function(e,t){if(f.has(e))throw new _(p);return t.facade=e,f.set(e,t),t},r=function(e){return f.get(e)||{}},i=function(e){return f.has(e)}}else{var b=m("state");h[b]=!0,n=function(e,t){if(l(e,b))throw new _(p);return t.facade=e,u(e,b,t),t},r=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:n,get:r,has:i,enforce:function(e){return i(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var s;if(!c(t)||(s=r(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return s}}}},8486:(e,t,s)=>{var n=s(3103),r=s(9770),i=s(9413),o=s(4512),a=s(9270),c=s(7379),u=s(4066),l="[object Map]",d="[object Promise]",m="[object Set]",h="[object WeakMap]",p="[object DataView]",_=u(n),g=u(r),f=u(i),b=u(o),v=u(a),y=c;(n&&y(new n(new ArrayBuffer(1)))!=p||r&&y(new r)!=l||i&&y(i.resolve())!=d||o&&y(new o)!=m||a&&y(new a)!=h)&&(y=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,n=s?u(s):"";if(n)switch(n){case _:return p;case g:return l;case f:return d;case b:return m;case v:return h}return t}),e.exports=y},8600:(e,t,s)=>{"use strict";var n=s(6100),r=s(701),i=s(3273),o=s(1005).indexOf,a=s(5241),c=n([].push);e.exports=function(e,t){var s,n=i(e),u=0,l=[];for(s in n)!r(a,s)&&r(n,s)&&c(l,s);for(;t.length>u;)r(n,s=t[u++])&&(~o(l,s)||c(l,s));return l}},8631:(e,t,s)=>{const n=s(6343),r=s(2322),i=s(4123);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof r?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let s=new i;const n=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(n,e),s.content instanceof r&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let s=t.parents.map((e=>e.element));for(const t in e){const n=e[t],r=s.indexOf(n);if(-1===r)return!1;s=s.splice(0,r)}return!0}))),s}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof r)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof r){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8655:(e,t,s)=>{"use strict";var n=s(8900),r=s(8141),i=s(701),o=s(1268),a=s(4603),c=s(7460),u=n.Symbol,l=r("wks"),d=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:d("Symbol."+e)),l[e]}},8666:(e,t,s)=>{var n=s(674),r=s(9460),i=s(2306),o=i&&i.isTypedArray,a=o?r(o):n;e.exports=a},8696:(e,t,s)=>{"use strict";var n=s(1203),r=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=c[a(e)];return s===l||s!==u&&(r(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},8712:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,s)=>{var n=s(5650),r=s(1623),i=s(6285),o=s(3934),a=s(5894),c=s(7447),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,s,n,u,d,m){switch(s){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var p=1&n;if(h||(h=c),e.size!=t.size&&!p)return!1;var _=m.get(e);if(_)return _==t;n|=2,m.set(e,t);var g=o(h(e),h(t),n,u,d,m);return m.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8870:(e,t,s)=>{var n=s(5650),r=Object.prototype,i=r.hasOwnProperty,o=r.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var n=!0}catch(e){}var r=o.call(e);return n&&(t?e[a]=s:delete e[a]),r}},8900:function(e,t,s){"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 s.g&&s.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,s)=>{var n=s(4967),r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();e.exports=i},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,s)=>{var n=s(4700);e.exports=function(e,t){var s=n(this,e),r=s.size;return s.set(e,t),this.size+=s.size==r?0:1,this}},9098:(e,t,s)=>{"use strict";var n=s(8900),r=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),u=s(8099),l=s(4572),d=s(3999),m=s(701);s(3753);var h=function(e){var t=function(s,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,n)}return new e(s,n,i)}return r(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,r,p,_,g,f,b,v,y,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?n:x?n[w]:n[w]&&n[w].prototype,O=E?u:u[w]||d(u,w,{})[w],M=O.prototype;for(_ in t)r=!(s=c(E?_:w+(x?".":"#")+_,e.forced))&&j&&m(j,_),f=O[_],r&&(b=e.dontCallGetSet?(y=a(j,_))&&y.value:j[_]),g=r&&b?b:t[_],(s||S||typeof f!=typeof g)&&(v=e.bind&&r?l(g,n):e.wrap&&r?h(g):S&&o(g)?i(g):g,(e.sham||g&&g.sham||f&&f.sham)&&d(v,"sham",!0),d(O,_,v),S&&(m(u,p=w+"Prototype")||d(u,p,{}),d(u[p],_,g),e.real&&M&&(s||!M[_])&&d(M,_,g)))}},9258:(e,t,s)=>{"use strict";var n=s(4713),r=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,a;if("string"===t&&r(s=e.toString)&&!i(a=n(s,e)))return a;if(r(s=e.valueOf)&&!i(a=n(s,e)))return a;if("string"!==t&&r(s=e.toString)&&!i(a=n(s,e)))return a;throw new o("Can't convert object to primitive value")}},9270:(e,t,s)=>{var n=s(4715)(s(8942),"WeakMap");e.exports=n},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,s)=>{"use strict";var n=s(9932),r=s(6100);e.exports=function(e){if("Function"===n(e))return r(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,s)=>{var n=s(4715)(s(8942),"Promise");e.exports=n},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,s)=>{"use strict";var n=s(4904),r=s(8407);e.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},9619:(e,t,s)=>{"use strict";var n=s(8900),r=s(262),i=n.document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,s)=>{const n=s(8631);e.exports=class extends n{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,s)=>{var n=s(3655),r=s(4759),i=s(1580),o=s(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,m=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||r(e))&&(n(e)?m:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var n=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<s}},9665:(e,t,s)=>{"use strict";var n=s(5024),r=s(1203),i=s(9619);e.exports=!n&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,s)=>{var n=s(5098),r=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}},9770:(e,t,s)=>{var n=s(4715)(s(8942),"Map");e.exports=n},9796:(e,t,s)=>{const n=s(1517),r=s(8631),i=s(4123);class o extends r{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((n=>{const r=e.bind(t)(n);r&&s.push(r)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];n="object"===this.primitive()?this.refract(e(n,s.value,s.key,s,this)):this.refract(e(n,s,t,this))}return n}forEach(e,t){this.content.forEach(((s,n)=>{e.bind(t)(s,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},n=!!s.recursive,r=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:r,recursive:n}),e(t,s,i)&&r.push(t)})),r}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:(e,t,s)=>{"use strict";var n=s(3273),r=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),u=s(877),l=s(4871),d=s(5024),m="Array Iterator",h=o.set,p=o.getterFor(m);e.exports=c(Array,"Array",(function(e,t){h(this,{type:m,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,s=e.index++;if(!t||s>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(s,!1);case"values":return u(t[s],!1)}return u([s,t[s]],!1)}),"values");var _=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!l&&d&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var s=-1,n=null==e?0:e.length,r=0,i=[];++s<n;){var o=e[s];t(o,s,e)&&(i[r++]=o)}return i}},9903:(e,t,s)=>{"use strict";var n=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9932:(e,t,s)=>{"use strict";var n=s(6100),r=n({}.toString),i=n("".slice);e.exports=function(e){return i(r(e),8,-1)}},9989:(e,t,s)=>{"use strict";var n=s(5024),r=s(9665),i=s(1330),o=s(7235),a=s(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",m="configurable",h="writable";t.f=n?i?function(e,t,s){if(o(e),t=a(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&h in s&&!s[h]){var n=l(e,t);n&&n[h]&&(e[t]=s.value,s={configurable:m in s?s[m]:n[m],enumerable:d in s?s[d]:n[d],writable:!1})}return u(e,t,s)}:u:function(e,t,s){if(o(e),t=a(t),o(s),r)try{return u(e,t,s)}catch(e){}if("get"in s||"set"in s)throw new c("Accessors not supported");return"value"in s&&(e[t]=s.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(s.exports,s,s.exports,__webpack_require__),s.loaded=!0,s.exports}__webpack_require__.d=(e,t)=>{for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=s[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>_b,detectionRegExp:()=>pb,mediaTypes:()=>hb,namespace:()=>fb,parse:()=>gb});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>Qt,includesClasses:()=>ts,includesSymbols:()=>es,isAnnotationElement:()=>Zt,isArrayElement:()=>Ht,isBooleanElement:()=>Ut,isCommentElement:()=>Kt,isElement:()=>qt,isLinkElement:()=>Gt,isMemberElement:()=>Jt,isNullElement:()=>Lt,isNumberElement:()=>Dt,isObjectElement:()=>Wt,isParseResultElement:()=>Xt,isPrimitiveElement:()=>Yt,isRefElement:()=>zt,isStringElement:()=>Vt});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Jr,isJSONSchemaElement:()=>Hr,isLinkDescriptionElement:()=>zr,isMediaElement:()=>Gr});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isJSONReferenceElement:()=>Jr,isJSONSchemaElement:()=>io,isLinkDescriptionElement:()=>oo,isMediaElement:()=>Gr});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONReferenceElement:()=>Jr,isJSONSchemaElement:()=>Da,isLinkDescriptionElement:()=>La});var r={};function i(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function o(e){return function t(s){return 0===arguments.length||i(s)?t:e.apply(this,arguments)}}function a(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return i(s)?t:o((function(t){return e(s,t)}));default:return i(s)&&i(n)?t:i(s)?o((function(t){return e(t,n)})):i(n)?o((function(t){return e(s,t)})):e(s,n)}}}function c(e){return function t(s,n,r){switch(arguments.length){case 0:return t;case 1:return i(s)?t:a((function(t,n){return e(s,t,n)}));case 2:return i(s)&&i(n)?t:i(s)?a((function(t,s){return e(t,n,s)})):i(n)?a((function(t,n){return e(s,t,n)})):o((function(t){return e(s,n,t)}));default:return i(s)&&i(n)&&i(r)?t:i(s)&&i(n)?a((function(t,s){return e(t,s,r)})):i(s)&&i(r)?a((function(t,s){return e(t,n,s)})):i(n)&&i(r)?a((function(t,n){return e(s,t,n)})):i(s)?o((function(t){return e(t,n,r)})):i(n)?o((function(t){return e(s,t,r)})):i(r)?o((function(t){return e(s,n,t)})):e(s,n,r)}}}__webpack_require__.r(r),__webpack_require__.d(r,{isAsyncApi2Element:()=>sc,isAsyncApiVersionElement:()=>nc,isBooleanJsonSchemaElement:()=>fc,isChannelBindingsElement:()=>rc,isChannelItemElement:()=>ic,isChannelsElement:()=>oc,isComponentsElement:()=>ac,isContactElement:()=>cc,isIdentifierElement:()=>uc,isInfoElement:()=>lc,isLicenseElement:()=>dc,isOperationElement:()=>mc,isParameterElement:()=>hc,isParametersElement:()=>pc,isReferenceElement:()=>_c,isSchemaElement:()=>gc,isSecurityRequirementElement:()=>bc,isServerBindingsElement:()=>yc,isServerElement:()=>vc,isServerVariableElement:()=>Ec,isServersElement:()=>wc});const u=a((function(e,t){return null==t||t!=t?e:t})),l=Number.isInteger||function(e){return(e|0)===e};function d(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e,t){var s=e<0?t.length+e:e;return d(t)?t.charAt(s):t[s]}const h=a((function(e,t){if(null!=t)return l(e)?m(e,t):t[e]}));const p=c((function(e,t,s){return u(e,h(t,s))}));var _=a((function(e,t){for(var s={},n={},r=0,i=e.length;r<i;)n[e[r]]=1,r+=1;for(var o in t)n.hasOwnProperty(o)||(s[o]=t[o]);return s}));const g=_;function f(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}const b=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const v=o((function(e){return!!b(e)||!!e&&("object"==typeof e&&(!d(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var y="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function w(e,t,s){return function(n,r,i){if(v(i))return e(n,r,i);if(null==i)return r;if("function"==typeof i["fantasy-land/reduce"])return t(n,r,i,"fantasy-land/reduce");if(null!=i[y])return s(n,r,i[y]());if("function"==typeof i.next)return s(n,r,i);if("function"==typeof i.reduce)return t(n,r,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function E(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function x(e,t,s,n){return s[n](e,t)}const S=w(f,x,E);function j(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!b(n)){for(var r=0;r<e.length;){if("function"==typeof n[e[r]])return n[e[r]].apply(n,Array.prototype.slice.call(arguments,0,-1));r+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return s.apply(this,arguments)}}function O(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}const M=function(){return this.xf["@@transducer/init"]()},B=function(e){return this.xf["@@transducer/result"](e)};var P=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=B,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const A=function(e){return function(t){return new P(e,t)}};function T(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,n){return t.apply(this,arguments)};case 4:return function(e,s,n,r){return t.apply(this,arguments)};case 5:return function(e,s,n,r,i){return t.apply(this,arguments)};case 6:return function(e,s,n,r,i,o){return t.apply(this,arguments)};case 7:return function(e,s,n,r,i,o,a){return t.apply(this,arguments)};case 8:return function(e,s,n,r,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,s,n,r,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,s,n,r,i,o,a,c,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 $(e,t,s){return function(){for(var n=[],r=0,o=e,a=0,c=!1;a<t.length||r<arguments.length;){var u;a<t.length&&(!i(t[a])||r>=arguments.length)?u=t[a]:(u=arguments[r],r+=1),n[a]=u,i(u)?c=!0:o-=1,a+=1}return!c&&o<=0?s.apply(this,n):T(Math.max(0,o),$(e,n,s))}}const C=a((function(e,t){return 1===e?o(t):T(e,$(e,[],t))}));function I(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var R=Object.prototype.toString;const F=function(){return"[object Arguments]"===R.call(arguments)?function(e){return"[object Arguments]"===R.call(e)}:function(e){return I("callee",e)}}();var k=!{toString:null}.propertyIsEnumerable("toString"),N=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],q=function(){return arguments.propertyIsEnumerable("length")}(),V=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},D="function"!=typeof Object.keys||q?o((function(e){if(Object(e)!==e)return[];var t,s,n=[],r=q&&F(e);for(t in e)!I(t,e)||r&&"length"===t||(n[n.length]=t);if(k)for(s=N.length-1;s>=0;)I(t=N[s],e)&&!V(n,t)&&(n[n.length]=t),s-=1;return n})):o((function(e){return Object(e)!==e?[]:Object.keys(e)}));const L=D;const U=a(j(["fantasy-land/map","map"],A,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return C(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return f((function(s,n){return s[n]=e(t[n]),s}),{},L(t));default:return O(e,t)}})));const W=a((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:S((function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,r=t.length,i=[];for(s=0;s<n;)i[i.length]=e[s],s+=1;for(s=0;s<r;)i[i.length]=t[s],s+=1;return i}(e,U(s,t))}),[],e)}));const H=a((function(e,t){var s=C(e,t);return C(e,(function(){return f(W,U(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const J=o((function(e){return H(e.length,e)}));const G=J(o((function(e){return!e})));function z(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function Z(e,t,s){for(var n=0,r=s.length;n<r;){if(e(t,s[n]))return!0;n+=1}return!1}const K="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const X=o((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Y(e,t,s,n){var r=z(e);function i(e,t){return Q(e,t,s.slice(),n.slice())}return!Z((function(e,t){return!Z(i,t,e)}),z(t),r)}function Q(e,t,s,n){if(K(e,t))return!0;var r,i,o=X(e);if(o!==X(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(r=e.constructor,null==(i=String(r).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!K(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!K(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=s.length-1;a>=0;){if(s[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Y(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&Y(e.values(),t.values(),s.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=L(e);if(c.length!==L(t).length)return!1;var u=s.concat([e]),l=n.concat([t]);for(a=c.length-1;a>=0;){var d=c[a];if(!I(d,t)||!Q(t[d],e[d],u,l))return!1;a-=1}return!0}const ee=a((function(e,t){return Q(e,t,[],[])}));const te=o((function(e){return function(){return e}}));const se=te(void 0);const ne=ee(se());const re=G(ne);var ie=__webpack_require__(8326);function oe(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ae(e,t,s){for(var n=0,r=s.length;n<r;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const ce=a((function(e,t){return T(e.length,(function(){return e.apply(t,arguments)}))}));function ue(e,t,s){for(var n=s.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=s.next()}return e["@@transducer/result"](t)}function le(e,t,s,n){return e["@@transducer/result"](s[n](ce(e["@@transducer/step"],e),t))}const de=w(ae,le,ue);var me=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 he=c((function(e,t,s){return de("function"==typeof e?new me(e):e,t,s)}));function pe(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return b(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const _e=c(pe("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const ge=o(pe("tail",_e(1,1/0)));function fe(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return T(arguments[0].length,he(oe,arguments[0],ge(arguments)))}var be=function(e,t){switch(arguments.length){case 0:return be;case 1:return function t(s){return 0===arguments.length?t:K(e,s)};default:return K(e,t)}};const ve=be;function ye(e,t){return function(e,t,s){var n,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(r=e[s])&&1/r===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(r=e[s])&&r!=r)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(ee(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function we(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 Ee=function(e){return(e<10?"0":"")+e};const xe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ee(e.getUTCMonth()+1)+"-"+Ee(e.getUTCDate())+"T"+Ee(e.getUTCHours())+":"+Ee(e.getUTCMinutes())+":"+Ee(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var je=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=B,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Oe(e){return function(t){return new je(e,t)}}const Me=a(j(["fantasy-land/filter","filter"],Oe,(function(e,t){return Se(t)?f((function(s,n){return e(t[n])&&(s[n]=t[n]),s}),{},L(t)):function(e,t){for(var s=0,n=t.length,r=[];s<n;)e(t[s])&&(r[r.length]=t[s]),s+=1;return r}(e,t)})));const Be=a((function(e,t){return Me((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Pe(e,t){var s=function(s){var n=t.concat([e]);return ye(s,n)?"<Circular>":Pe(s,n)},n=function(e,t){return O((function(t){return we(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+O(s,e).join(", ")+"))";case"[object Array]":return"["+O(s,e).concat(n(e,Be((function(e){return/^\d+$/.test(e)}),L(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):we(xe(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":we(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var r=e.toString();if("[object Object]"!==r)return r}return"{"+n(e,L(e)).join(", ")+"}"}}const Ae=o((function(e){return Pe(e,[])}));function Te(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=l(r)?m(r,s):s[r]}return s}const $e=c((function(e,t,s){return e(Te(t,s))}));function Ce(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ie=a((function(e,t){return e&&t}));const Re=a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:J(Ie)(e,t)}));const Fe=ee(null);const ke=G(Fe);function Ne(e){return Ne="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},Ne(e)}const qe=function(e){return"object"===Ne(e)};const Ve=C(1,Re(ke,qe));const De=a((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var n=s(e,t);if(void 0!==n)return n;var r=s(typeof e,typeof t);if(void 0!==r)return r===typeof e?e:t;var i=Ae(e),o=s(i,Ae(t));return void 0!==o&&o===i?e:t}));const Le=a((function(e,t){return U(h(e),t)}));const Ue=o((function(e){return C(he(De,0,Le("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const We=C(1,fe(X,ve("GeneratorFunction")));const He=C(1,fe(X,ve("AsyncFunction")));const Je=Ue([fe(X,ve("Function")),We,He]);var Ge=fe(X,ve("Object")),ze=fe(Ae,ee(Ae(Object))),Ze=$e(Re(Je,ze),["constructor"]);const Ke=C(1,(function(e){if(!Ve(e)||!Ge(e))return!1;var t=Object.getPrototypeOf(e);return!!Fe(t)||Ze(t)}));class Xe extends ie.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Ye=Xe;class Qe extends ie.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const et=Qe;class tt extends ie.wE{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(ne(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const st=tt;class nt extends ie.g${constructor(){super(),this.register("annotation",Ye),this.register("comment",et),this.register("parseResult",st)}}const rt=new nt,it=e=>{const t=new nt;return Ke(e)&&t.use(e),t},ot=rt;const at=C(1,fe(X,ve("String"))),ct=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",ut=globalThis.fetch;Je(ut)&&(globalThis.fetch=(...e)=>at(e[0])&&e[0].endsWith("tree-sitter.wasm")?ut.apply(globalThis,[ct,ge(e)]):ut.apply(globalThis,e));var lt=__webpack_require__(3833),dt=__webpack_require__(1212);const mt=class extends dt{constructor(e,t,s){if(super(e,t,s),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!=s&&"object"==typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class ht extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(mt,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 pt=ht,_t=__webpack_require__.p+"8b9a42208b2f0cb650aa7e5c4e293a15.wasm";let gt=null,ft=null,bt=null;const vt=async e=>{if(null===gt&&null===ft)ft=lt.init().then((()=>lt.Language.load(_t))).then((e=>{const t=new lt;return t.setLanguage(e),t})).finally((()=>{ft=null})),gt=await ft;else if(null===gt&&null!==ft)gt=await ft;else if(null===gt)throw new pt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return bt=gt.parse(e),gt.reset(),bt};const yt=class extends pt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},wt=(e,t,s)=>{const n=e[t];if(null!=n){if(!s&&"function"==typeof n)return n;const e=s?n.leave:n.enter;if("function"==typeof e)return e}else{const n=s?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},Et={},xt=e=>null==e?void 0:e.type,St=e=>"string"==typeof xt(e),jt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Ot=(e,{visitFnGetter:t=wt,nodeTypeGetter:s=xt,breakSymbol:n=Et,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,l,d,m,h,p){let _=u,g=!1;const f={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],s(_),!1);if("function"==typeof a){const t=a.call(e[u],_,l,d,m,h,f);if("function"==typeof(null==t?void 0:t.then))throw new yt("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===i)c[u]=_;else if(t===n)c[u]=n;else{if(t===r)return t;if(void 0!==t){if(!o)return t;_=t,g=!0}}}}return g?_:void 0},leave(r,o,u,l,d,m){let h=r;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let r=0;r<e.length;r+=1)if(c[r]===a){const a=t(e[r],s(h),!0);if("function"==typeof a){const t=a.call(e[r],h,o,u,l,d,p);if("function"==typeof(null==t?void 0:t.then))throw new yt("Async visitor not supported in sync mode",{visitor:e[r],visitFn:a});if(t===n)c[r]=n;else if(void 0!==t&&t!==i)return t}}else c[r]===h&&(c[r]=a)}}};Ot[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=wt,nodeTypeGetter:s=xt,breakSymbol:n=Et,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,d,m,h,p){let _=u,g=!1;const f={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],s(_),!1);if("function"==typeof a){const t=await a.call(e[u],_,l,d,m,h,f);if(t===i)c[u]=_;else if(t===n)c[u]=n;else{if(t===r)return t;if(void 0!==t){if(!o)return t;_=t,g=!0}}}}return g?_:void 0},async leave(r,o,u,l,d,m){let h=r;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let r=0;r<e.length;r+=1)if(c[r]===a){const a=t(e[r],s(h),!0);if("function"==typeof a){const t=await a.call(e[r],h,o,u,l,d,p);if(t===n)c[r]=n;else if(void 0!==t&&t!==i)return t}}else c[r]===h&&(c[r]=a)}}};const Mt=(e,t,{keyMap:s=null,state:n={},breakSymbol:r=Et,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=wt,nodeTypeGetter:c=xt,nodePredicate:u=St,nodeCloneFn:l=jt,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,g=Array.isArray(e),f=[e],b=-1,v=[],y=e;const w=[],E=[];do{b+=1;const e=b===f.length;let s;const j=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),y=_,_=E.pop(),j)if(g){y=y.slice();let e=0;for(const[t,s]of v){const n=t-e;s===i?(y.splice(n,1),e+=1):y[n]=s}}else{y=l(y);for(const[e,t]of v)y[e]=t}b=p.index,f=p.keys,v=p.edits,g=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=g?b:f[b],y=_[s],y===i||void 0===y)continue;w.push(s)}let O;if(!Array.isArray(y)){var x;if(!u(y))throw new yt(`Invalid AST Node: ${String(y)}`,{node:y});if(d&&E.includes(y)){"function"==typeof m&&m(y,s,_,w,E),w.pop();continue}const i=a(t,c(y),e);if(i){for(const[e,s]of Object.entries(n))t[e]=s;const r={replaceWith(t,n){"function"==typeof n?n(t,y,s,_,w,E):_&&(_[s]=t),e||(y=t)}};O=i.call(t,y,s,_,w,E,r)}if("function"==typeof(null===(x=O)||void 0===x?void 0:x.then))throw new yt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===r)break;if(O===o){if(!e){w.pop();continue}}else if(void 0!==O&&(v.push([s,O]),!e)){if(!u(O)){w.pop();continue}y=O}}var S;if(void 0===O&&j&&v.push([s,y]),!e)p={inArray:g,index:b,keys:f,edits:v,prev:p},g=Array.isArray(y),f=g?y:null!==(S=h[c(y)])&&void 0!==S?S:[],b=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=y}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};function Bt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}Mt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:n={},breakSymbol:r=Et,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=wt,nodeTypeGetter:c=xt,nodePredicate:u=St,nodeCloneFn:l=jt,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,g=Array.isArray(e),f=[e],b=-1,v=[],y=e;const w=[],E=[];do{b+=1;const e=b===f.length;let s;const S=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),y=_,_=E.pop(),S)if(g){y=y.slice();let e=0;for(const[t,s]of v){const n=t-e;s===i?(y.splice(n,1),e+=1):y[n]=s}}else{y=l(y);for(const[e,t]of v)y[e]=t}b=p.index,f=p.keys,v=p.edits,g=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=g?b:f[b],y=_[s],y===i||void 0===y)continue;w.push(s)}let j;if(!Array.isArray(y)){if(!u(y))throw new yt(`Invalid AST Node: ${String(y)}`,{node:y});if(d&&E.includes(y)){"function"==typeof m&&m(y,s,_,w,E),w.pop();continue}const i=a(t,c(y),e);if(i){for(const[e,s]of Object.entries(n))t[e]=s;const r={replaceWith(t,n){"function"==typeof n?n(t,y,s,_,w,E):_&&(_[s]=t),e||(y=t)}};j=await i.call(t,y,s,_,w,E,r)}if(j===r)break;if(j===o){if(!e){w.pop();continue}}else if(void 0!==j&&(v.push([s,j]),!e)){if(!u(j)){w.pop();continue}y=j}}var x;if(void 0===j&&S&&v.push([s,y]),!e)p={inArray:g,index:b,keys:f,edits:v,prev:p},g=Array.isArray(y),f=g?y:null!==(x=h[c(y)])&&void 0!==x?x:[],b=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=y}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};var Pt=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Bt(this.xf["@@transducer/step"](e,!1))),e},e}();function At(e){return function(t){return new Pt(e,t)}}const Tt=a(j(["all"],At,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0})));const $t=o((function(e){return C(e.length,(function(t,s){var n=Array.prototype.slice.call(arguments,0);return n[0]=s,n[1]=t,e.apply(this,n)}))}))(a(ye)),Ct=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],It=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Rt=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Ft=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ie.wE)&&t.classes.includes(e),kt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Nt=e=>e({hasMethod:Ct,hasBasicElementProps:It,primitiveEq:Rt,isElementType:kt,hasClass:Ft}),qt=Nt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ie.Hg||e(s)&&t(void 0,s))),Vt=Nt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ie.Om||e(s)&&t("string",s))),Dt=Nt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ie.kT||e(s)&&t("number",s))),Lt=Nt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ie.Os||e(s)&&t("null",s))),Ut=Nt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ie.bd||e(s)&&t("boolean",s))),Wt=Nt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>n=>n instanceof ie.Sh||e(n)&&t("object",n)&&s("keys",n)&&s("values",n)&&s("items",n))),Ht=Nt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>n=>n instanceof ie.wE&&!(n instanceof ie.Sh)||e(n)&&t("array",n)&&s("push",n)&&s("unshift",n)&&s("map",n)&&s("reduce",n))),Jt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ie.Pr||e(n)&&t("member",n)&&s(void 0,n))),Gt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ie.Ft||e(n)&&t("link",n)&&s(void 0,n))),zt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ie.sI||e(n)&&t("ref",n)&&s(void 0,n))),Zt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ye||e(n)&&t("annotation",n)&&s("array",n))),Kt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof et||e(n)&&t("comment",n)&&s("string",n))),Xt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof st||e(n)&&t("parseResult",n)&&s("array",n))),Yt=e=>kt("object",e)||kt("array",e)||kt("boolean",e)||kt("number",e)||kt("string",e)||kt("null",e)||kt("member",e),Qt=e=>!!qt(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),es=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Ht(s)&&Tt($t(s.toValue()),e)},ts=(e,t)=>0===e.length||Tt($t(t.classes.toValue()),e);const ss=class extends yt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ns=class extends ss{};const rs=class extends ss{};const is=a((function(e,t){return f((function(s,n){return s[n]=e(t[n],n,t),s}),{},L(t))}));const os=o((function(e){return null==e}));var as=a((function(e,t){if(0===e.length||os(t))return!1;for(var s=t,n=0;n<e.length;){if(os(s)||!I(e[n],s))return!1;s=s[e[n]],n+=1}return!0}));const cs=as;var us=a((function(e,t){return cs([e],t)}));const ls=us;const ds=c((function(e,t,s){return e(h(t,s))}));const ms=a(Te);const hs=o((function(e){return C(e.length,e)}));const ps=a((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&Ce(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ae(s)+' does not have a method named "'+t+'"')}))}));const _s=ps(1,"split");var gs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=B,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 fs(e){return function(t){return new gs(e,t)}}const bs=a(j(["dropWhile"],fs,(function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return _e(s,1/0,t)})));const vs=ps(1,"join");const ys=hs((function(e,t){return fe(_s(""),bs($t(e)),vs(""))(t)})),ws=(e,t)=>{const s=u(e,t);return is((e=>{if(Ke(e)&&ls("$ref",e)&&ds(at,"$ref",e)){const t=ms(["$ref"],e),n=ys("#/",t);return ms(n.split("/"),s)}return Ke(e)?ws(e,s):e}),e)},Es=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),xs=(e,t={})=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof ie.KeyValuePair){const{key:t,value:r}=e,i=qt(t)?xs(t,n):t,o=qt(r)?xs(r,n):r,a=new ie.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ie.ot){const t=e=>xs(e,n),r=[...e].map(t),i=new ie.ot(r);return s.set(e,i),i}if(e instanceof ie.G6){const t=e=>xs(e,n),r=[...e].map(t),i=new ie.G6(r);return s.set(e,i),i}if(qt(e)){const t=Os(e);if(s.set(e,t),e.content)if(qt(e.content))t.content=xs(e.content,n);else if(e.content instanceof ie.KeyValuePair)t.content=xs(e.content,n);else if(Array.isArray(e.content)){const s=e=>xs(e,n);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new ns("Value provided to cloneDeep function couldn't be cloned",{value:e})};xs.safe=e=>{try{return xs(e)}catch{return e}};const Ss=e=>{const{key:t,value:s}=e;return new ie.KeyValuePair(t,s)},js=e=>{const t=new e.constructor;if(t.element=e.element,Qt(e)&&Es(t,e),e.meta.length>0&&(t._meta=xs(e.meta)),e.attributes.length>0&&(t._attributes=xs(e.attributes)),qt(e.content)){const s=e.content;t.content=js(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ie.KeyValuePair?t.content=Ss(e.content):t.content=e.content;return t},Os=e=>{if(e instanceof ie.KeyValuePair)return Ss(e);if(e instanceof ie.ot)return(e=>{const t=[...e];return new ie.ot(t)})(e);if(e instanceof ie.G6)return(e=>{const t=[...e];return new ie.G6(t)})(e);if(qt(e))return js(e);throw new rs("Value provided to cloneShallow function couldn't be cloned",{value:e})};Os.safe=e=>{try{return Os(e)}catch{return e}};const Ms=e=>Wt(e)?"ObjectElement":Ht(e)?"ArrayElement":Jt(e)?"MemberElement":Vt(e)?"StringElement":Ut(e)?"BooleanElement":Dt(e)?"NumberElement":Lt(e)?"NullElement":Gt(e)?"LinkElement":zt(e)?"RefElement":void 0,Bs=e=>qt(e)?Os(e):jt(e),Ps=fe(Ms,at),As={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Ts=(e,t,{keyMap:s=As,...n}={})=>Mt(e,t,{keyMap:s,nodeTypeGetter:Ms,nodePredicate:Ps,nodeCloneFn:Bs,...n});Ts[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=As,...n}={})=>Mt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:Ms,nodePredicate:Ps,nodeCloneFn:Bs,...n});const $s=c((function(e,t,s){var n,r={};for(n in s=s||{},t=t||{})I(n,t)&&(r[n]=I(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)I(n,s)&&!I(n,r)&&(r[n]=s[n]);return r}));const Cs=c((function e(t,s,n){return $s((function(s,n,r){return Se(n)&&Se(r)?e(t,n,r):t(s,n,r)}),s,n)}));const Is=a((function(e,t){return Cs((function(e,t,s){return s}),e,t)}));const Rs=_e(0,-1);const Fs=a((function(e,t){return e.apply(this,t)}));const ks=G(Je);var Ns=o((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():b(e)?[]:d(e)?"":Se(e)?{}:F(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 qs=Ns;const Vs=o((function(e){return null!=e&&ee(e,qs(e))}));const Ds=C(1,Je(Array.isArray)?Array.isArray:fe(X,ve("Array")));const Ls=Re(Ds,Vs);const Us=C(3,(function(e,t,s){var n=ms(e,s),r=ms(Rs(e),s);if(!ks(n)&&!Ls(e)){var i=ce(n,r);return Fs(i,t)}})),Ws=()=>({predicates:{...e},namespace:ot}),Hs={toolboxCreator:Ws,visitorOptions:{nodeTypeGetter:Ms,exposeEdits:!0}},Js=(e,t,s={})=>{if(0===t.length)return e;const n=Is(Hs,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),a=t.map((e=>e(o))),c=Ot(a.map(p({},"visitor")),{...i});a.forEach(Us(["pre"],[]));const u=Ts(e,c,i);return a.forEach(Us(["post"],[])),u};Js[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=Is(Hs,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),a=t.map((e=>e(o))),c=Ot[Symbol.for("nodejs.util.promisify.custom")],u=Ts[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(p({},"visitor")),{...i});await Promise.allSettled(a.map(Us(["pre"],[])));const d=await u(e,l,i);return await Promise.allSettled(a.map(Us(["post"],[]))),d};const Gs=(e,{Type:t,plugins:s=[]})=>{const n=new t(e);return qt(e)&&(e.meta.length>0&&(n.meta=xs(e.meta)),e.attributes.length>0&&(n.attributes=xs(e.attributes))),Js(n,s,{toolboxCreator:Ws,visitorOptions:{nodeTypeGetter:Ms}})},zs=e=>(t,s={})=>Gs(t,{...s,Type:e});ie.Sh.refract=zs(ie.Sh),ie.wE.refract=zs(ie.wE),ie.Om.refract=zs(ie.Om),ie.bd.refract=zs(ie.bd),ie.Os.refract=zs(ie.Os),ie.kT.refract=zs(ie.kT),ie.Ft.refract=zs(ie.Ft),ie.sI.refract=zs(ie.sI),Ye.refract=zs(Ye),et.refract=zs(et),st.refract=zs(st);const Zs=class{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPositionRow=e.startPosition.row,this.startPositionColumn=e.startPosition.column,this.startIndex=e.startIndex,this.endPositionRow=e.endPosition.row,this.endPositionColumn=e.endPosition.column,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}pushChildren(...e){this.children.push(...e)}};const Ks=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Yt);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof Zs&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s=new Ye(`(Missing ${t})`);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}document(e){const t=new st;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new ie.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new ie.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new ie.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new ie.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new ie.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ie.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ie.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ie.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,n){const r=!e.hasError,i=e.text,o=new Ye(r?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===n.length){const e=new st;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){this.sourceMap&&Es(t,e)}};class Xs{cursor;constructor(e){this.cursor=e}document(){return new Zs(this.cursor)}object(){return new Zs(this.cursor).setFieldName(this.cursor)}array(){return new Zs(this.cursor).setFieldName(this.cursor)}pair(){return new Zs(this.cursor)}string(){return new Zs(this.cursor).setFieldName(this.cursor)}number(){return new Zs(this.cursor).setFieldName(this.cursor)}null(){return new Zs(this.cursor).setFieldName(this.cursor)}true(){return new Zs(this.cursor).setFieldName(this.cursor)}false(){return new Zs(this.cursor).setFieldName(this.cursor)}ERROR(){return new Zs(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Zs(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Xs(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Xs(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Ys=Xs,Qs={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...As},en=e=>Xt(e)?"ParseResultElement":qt(e)?Ms(e):xt(e),tn=e=>qt(e)||St(e),sn=(e,{sourceMap:t=!1}={})=>{const s=new Ks,n=e.walk(),r=new Ys(n),[i]=Array.from(r);return Mt(i,s,{keyMap:Qs,nodeTypeGetter:en,nodePredicate:tn,state:{sourceMap:t}})};const nn=o((function(e){return m(0,e)}));const rn=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:s,startPositionColumn:n,startIndex:r,endPositionRow:i,endPositionColumn:o,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=s,this.startPositionColumn=n,this.startIndex=r,this.endPositionRow=i,this.endPositionColumn=o,this.endIndex=a}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}};const on=class extends rn{};const an=class extends on{static type="document";get child(){return nn(this.children)}};const cn=class extends rn{static type="parseResult";get rootNode(){return nn(this.children)}};const un=class extends rn{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},ln=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,dn=e=>ln("string",e),mn=e=>ln("false",e),hn=e=>ln("true",e),pn=e=>ln("null",e),_n=e=>ln("number",e),gn=e=>ln("array",e),fn=e=>ln("object",e),bn=e=>ln("property",e),vn=e=>ln("key",e);const yn=class extends on{static type="object";get properties(){return this.children.filter(bn)}};const wn=class extends on{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>ln("stringContent",e))(e)||(e=>ln("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const En=class extends wn{static type="key"};const xn=class extends on{static type="property";get key(){return this.children.find(vn)}get value(){return this.children.find((e=>mn(e)||hn(e)||pn(e)||_n(e)||dn(e)||gn(e)||fn(e)))}};const Sn=class extends on{static type="array";get items(){return this.children.filter((e=>mn(e)||hn(e)||pn(e)||_n(e)||dn(e)||gn(e)||fn))}};const jn=class extends on{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const On=class extends jn{static type="stringContent"};const Mn=class extends jn{static type="number"};const Bn=class extends jn{static type="null"};const Pn=class extends jn{static type="true"};const An=class extends jn{static type="false"};const Tn=class extends rn{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}},$n={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};const Cn=class{document={enter:e=>new an(Es({children:e.children,isMissing:e.isMissing},e)),leave:e=>new cn({children:[e]})};enter(e){if(e instanceof Zs&&!e.isNamed){const t=e.type||e.text,{isMissing:s}=e;return new un(Es({value:t,isMissing:s},e))}}object(e){return new yn(Es({children:e.children,isMissing:e.isMissing},e))}pair(e){const t=e.children.slice(1),{keyNode:s}=e,n=new En(Es({children:(null==s?void 0:s.children)||[],isMissing:null!=s&&s.isMissing},s));return new xn(Es({children:[n,...t],isMissing:e.isMissing},e))}array(e){return new Sn(Es({children:e.children,isMissing:e.isMissing},e))}string(e){const t=new On({value:JSON.parse(e.text)});return new wn(Es({children:[t],isMissing:e.isMissing},e))}number(e){const t=e.text;return new Mn(Es({value:t,isMissing:e.isMissing},e))}null(e){const t=e.text;return new Bn(Es({value:t,isMissing:e.isMissing},e))}true(e){const t=e.text;return new Pn(Es({value:t,isMissing:e.isMissing},e))}false(e){const t=e.text;return new An(Es({value:t,isMissing:e.isMissing},e))}ERROR(e,t,s,n){const r=new Tn(Es({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===n.length?new cn({children:[r]}):r}},In={[cn.type]:["children"],[an.type]:["children"],[yn.type]:["children"],[xn.type]:["children"],[Sn.type]:["children"],[Tn.type]:["children"],...As},Rn=e=>Xt(e)?"ParseResultElement":qt(e)?Ms(e):xt(e),Fn=e=>qt(e)||St(e);const kn=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Yt);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new st;return t._content=e.children,t}object(e){const t=new ie.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new ie.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new ie.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new ie.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new ie.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new ie.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ie.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ie.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ie.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new Ye(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,n){const r=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,i=new Ye(r);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===n.length){const e=new st;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&Es(t,e)}},Nn=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),n=new Ys(s),[r]=Array.from(n),i=new Cn,o=new kn,a=Mt(r,i,{keyMap:$n,state:{sourceMap:t}});return Mt(a.rootNode,o,{keyMap:In,nodeTypeGetter:Rn,nodePredicate:Fn,state:{sourceMap:t}})},qn=(it(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);var Vn=c((function e(t,s,n){if(0===t.length)return s;var r=t[0];if(t.length>1){var i=!os(n)&&I(r,n)&&"object"==typeof n[r]?n[r]:l(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(l(e)&&b(s)){var n=[].concat(s);return n[e]=t,n}var r={};for(var i in s)r[i]=s[i];return r[e]=t,r}(r,s,n)}));const Dn=Vn;const Ln=c((function(e,t,s){var n=Array.prototype.slice.call(s,0);return n.splice(e,t),n}));var Un=c((function(e,t,s){return Dn([e],t,s)}));const Wn=Un;var Hn=a((function e(t,s){if(null==s)return s;switch(t.length){case 0:return s;case 1:return function(e,t){if(null==t)return t;if(l(e)&&b(t))return Ln(e,1,t);var s={};for(var n in t)s[n]=t[n];return delete s[e],s}(t[0],s);default:var n=t[0],r=Array.prototype.slice.call(t,1);return null==s[n]?function(e,t){if(l(e)&&b(t))return[].concat(t);var s={};for(var n in t)s[n]=t[n];return s}(n,s):Wn(n,e(r,s[n]),s)}}));const Jn=Hn;const Gn=function(){return!0},zn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Ms(e),Zn={EphemeralObject:["content"],EphemeralArray:["content"],...As},Kn=(e,t,{keyMap:s=Zn,...n}={})=>Ts(e,t,{keyMap:s,nodeTypeGetter:zn,nodePredicate:Gn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Kn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Zn,...s}={})=>Ts[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:zn,nodePredicate:Gn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const Xn=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 Yn=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 Qn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Yn(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 Xn(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 s;const n=t[3];return"EphemeralObject"===(null===(s=n[n.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Vt(e.href)?e.href.toValue():""}}const er=e=>qt(e)?Vt(e)||Dt(e)||Ut(e)||Lt(e)?e.toValue():Kn(e,new Qn):e,tr=e=>{const t=e.meta.length>0?xs(e.meta):void 0,s=e.attributes.length>0?xs(e.attributes):void 0;return new e.constructor(void 0,t,s)},sr=(e,t)=>t.clone&&t.isMergeableElement(e)?rr(tr(e),e,t):e,nr={clone:!0,isMergeableElement:e=>Wt(e)||Ht(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>sr(e,s))),objectElementMerge:(e,t,s)=>{const n=Wt(e)?tr(e):tr(t);return Wt(e)&&e.forEach(((e,t,r)=>{const i=Os(r);i.value=sr(e,s),n.content.push(i)})),t.forEach(((t,r,i)=>{const o=er(r);let a;if(Wt(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);a=Os(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return rr;const s=t.customMerge(e,t);return"function"==typeof s?s:rr})(r,s)(n,t,s)}else a=Os(i),a.value=sr(t,s);n.remove(o),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},rr=(e,t,s)=>{var n,r,i;const o={...nr,...s};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:nr.isMergeableElement,o.arrayElementMerge=null!==(r=o.arrayElementMerge)&&void 0!==r?r:nr.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:nr.objectElementMerge;const a=Ht(t);if(!(a===Ht(e)))return sr(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>xs(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>xs(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};rr.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ie.Sh:e.reduce(((e,s)=>rr(e,s,t)),tr(e[0]))};const ir=rr;const or=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ir(t.meta,e.meta)),Qt(e)&&Es(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ir(t.attributes,e.attributes))}};const ar=class extends or{enter(e){return this.element=xs(e),Et}},cr=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},ur=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:ur(s,[...t,s])},lr=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>ur(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(r),o=ur(r);for(let t of e){let e=ur(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(cr(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},dr=e=>e.filter(((t,s)=>e.indexOf(t)==s)),mr=(e,t)=>{const s=t.map((e=>ur(e)));let n=0,r=!0;for(;r;){r=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][n];if(null!=t&&(r=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}n++}},hr=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(mr(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==mr(n,e)||void 0!==t[n],get:(s,n)=>(mr(n,e)||t)[n],set(t,s,n){const r=mr(s,e);if(void 0===r)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return r[s]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),pr=null,_r="copy",gr="copy",fr="deep",br=new WeakMap,vr=e=>br.get(e),yr=(e,t)=>{var s,n;const r=dr([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=dr([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},wr=(e,t)=>{var s,n,r,i;return{property:yr(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:yr(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Er=(e,t)=>{var s,n,r,i,o,a;return{class:dr([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:wr(null!==(r=null==e?void 0:e.static)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:wr(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},xr=new Map,Sr=(...e)=>{const t=((...e)=>{var t;const s=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const r=[...ur(e.prototype).map((e=>e.constructor)),...null!==(t=vr(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of r)n.add(e);s.add(e),n.delete(e)}return[...s]})(...e).map((e=>xr.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Er(e,t)))},jr=e=>{let t=xr.get(e);return t||(t={},xr.set(e,t)),t};function Or(...e){var t,s,n;const r=e.map((e=>e.prototype)),i=pr;if(null!==i){const e=r.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};r.push(s)}function o(...t){for(const s of e)cr(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===gr?lr(r,o):(a=r,c=o,hr([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===_r?lr(e,null,["prototype"]):hr(e,Function.prototype));let u=o;if("none"!==fr){const r="deep"===fr?Sr(...e):((...e)=>{const t=e.map((e=>jr(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Er(e,t)))})(...e);for(let e of null!==(t=null==r?void 0:r.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Mr(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},u),Mr(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},u.prototype)}var l,d;return l=u,d=e,br.set(l,d),u}const Mr=(e,t)=>{const s=e.property,n=e.method;if(s)for(let e in s)for(let n of s[e])n(t,e);if(n)for(let e in n)for(let s of n[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const Br=o((function(e){return C(he(De,0,Le("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Pr=o((function(e){return!Vs(e)}));const Ar=a((function(e,t){return e||t}));var Tr=G(C(1,Re(ke,a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:J(Ar)(e,t)}))(qe,Je))));const $r=Br([at,Tr,Pr]);const Cr=a((function(e,t){for(var s={},n=0;n<e.length;)e[n]in t&&(s[e[n]]=t[e[n]]),n+=1;return s}));const Ir=class extends or{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Cr(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ms(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return $e(Je,["visitors",...e],this.specObj)?ms(["visitors",...e],this.specObj):ms(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof ar&&(null==n?void 0:n.constructor)===ar?xs(t):(Ts(t,n,s),n.element)}};const Rr=class extends Ir{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,n,r)=>{if(Vt(n)&&s.includes(er(n))&&!this.ignoredFields.includes(er(n))){const s=this.toRefractedElement([...t,"fixedFields",er(n)],e),i=new ie.Pr(xs(n),s);this.copyMetaAndAttributes(r,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(er(n))||this.element.content.push(xs(r))})),this.copyMetaAndAttributes(e,this.element),Et}};const Fr=class{parent;constructor({parent:e}){this.parent=e}};class kr extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Nr=kr;class qr extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Vr=qr;class Dr extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Lr=Dr;class Ur extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Wr=Ur,Hr=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Nr||e(n)&&t("JSONSchemaDraft4",n)&&s("object",n))),Jr=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Vr||e(n)&&t("JSONReference",n)&&s("object",n))),Gr=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Lr||e(n)&&t("media",n)&&s("object",n))),zr=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Wr||e(n)&&t("linkDescription",n)&&s("object",n)));class Zr extends(Or(Rr,Fr,ar)){constructor(e){super(e),this.element=new Nr,this.specPath=te(["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,Rr.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(ne(this.parent)&&!Vt(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Hr(this.parent)&&!Vt(e.get("$schema"))){const e=u(er(this.parent.meta.get("inheritedDialectIdentifier")),er(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?xs(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ie.wE,n=er(e.get(t));$r(n)&&s.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const Kr=Zr,Xr=e=>Wt(e)&&e.hasKey("$ref");class Yr extends(Or(Ir,Fr,ar)){ObjectElement(e){const t=Xr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Et}ArrayElement(e){return this.element=new ie.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Xr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Et}}const Qr=Yr;const ei=class extends ar{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const ti=function(){return!1};const si=class extends Ir{specPath;ignoredFields;fieldPatternPredicate=ti;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(er(t))&&this.fieldPatternPredicate(er(t))){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new ie.Pr(xs(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(er(t))||this.element.content.push(xs(s))})),this.copyMetaAndAttributes(e,this.element),Et}};const ni=class extends si{constructor(e){super(e),this.fieldPatternPredicate=$r}};class ri extends(Or(ni,Fr,ar)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Xr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ii=ri;class oi extends(Or(ni,Fr,ar)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Xr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ai=oi;class ci extends(Or(ni,Fr,ar)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Xr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ui=ci;const li=class extends ar{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const di=class extends ar{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 mi extends(Or(Ir,Fr,ar)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Xr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Et}}const hi=mi;class pi extends(Or(Ir,Fr,ar)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Xr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Et}}const _i=pi;class gi extends(Or(Ir,Fr,ar)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Xr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Et}}const fi=gi;class bi extends(Or(ni,Fr,ar)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Xr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const vi=bi;class yi extends(Or(Ir,Fr,ar)){constructor(e){super(e),this.element=new ie.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),Et}}const wi=yi;class Ei extends(Or(Rr,ar)){constructor(e){super(e),this.element=new Vr,this.specPath=te(["document","objects","JSONReference"])}ObjectElement(e){const t=Rr.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const xi=Ei;const Si=class extends ar{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const ji=c((function(e,t,s){return C(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const Oi=o((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var Mi=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Bi=Mi;const Pi=o(Bt);const Ai=G(os);const Ti=Re(Ds,Pr);function $i(e){return function(e){if(Array.isArray(e))return Ci(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 Ci(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Ci(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 Ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,n=Array(t);s<t;s++)n[s]=e[s];return n}var Ii=fe(Bi(Oi((function(e,t){return e.length>t.length}))),nn,h("length")),Ri=hs((function(e,t,s){var n=s.apply(void 0,$i(e));return Ai(n)?Pi(n):t}));const Fi=ji(Ti,(function(e){var t=Ii(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return he(Ri(s),void 0,e)}))}),se);const ki=class extends Ir{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ji(e,te(t),se))),s=Fi(t)(e);return this.element=this.toRefractedElement(s,e),Et}};const Ni=class extends ki{constructor(e){super(e),this.alternator=[{predicate:Xr,specPath:["document","objects","JSONReference"]},{predicate:Gn,specPath:["document","objects","JSONSchema"]}]}};class qi extends(Or(Rr,ar)){constructor(e){super(e),this.element=new Lr,this.specPath=te(["document","objects","Media"])}}const Vi=qi;class Di extends(Or(Rr,ar)){constructor(e){super(e),this.element=new Wr,this.specPath=te(["document","objects","LinkDescription"])}}const Li=Di,Ui={visitors:{value:ar,JSONSchemaOrJSONReferenceVisitor:Ni,document:{objects:{JSONSchema:{$visitor:Kr,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:Ni,items:Qr,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:ei,properties:ii,additionalProperties:Ni,patternProperties:ai,dependencies:ui,enum:li,type:di,allOf:hi,anyOf:_i,oneOf:fi,not:Ni,definitions:vi,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:wi,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:xi,fixedFields:{$ref:Si}},Media:{$visitor:Vi,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Li,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ni,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ni}}}}}};const Wi=class extends pt{},Hi=e=>{if(qt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ji={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...As},Gi={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Nr),t.register("jSONReference",Vr),t.register("media",Lr),t.register("linkDescription",Wr),t}},zi=()=>{const e=it(Gi);return{predicates:{...t,isStringElement:Vt},namespace:e}},Zi=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:n=Ui}={})=>{const r=(0,ie.e)(e),i=ws(n),o=new(ms(t,i))({specObj:i});return Ts(r,o),Js(o.element,s,{toolboxCreator:zi,visitorOptions:{keyMap:Ji,nodeTypeGetter:Hi}})},Ki=e=>(t,s={})=>Zi(t,{specPath:e,...s});Nr.refract=Ki(["visitors","document","objects","JSONSchema","$visitor"]),Vr.refract=Ki(["visitors","document","objects","JSONReference","$visitor"]),Lr.refract=Ki(["visitors","document","objects","Media","$visitor"]),Wr.refract=Ki(["visitors","document","objects","LinkDescription","$visitor"]);const Xi=class extends Nr{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new Wi("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Wi("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 Yi=class extends Kr{constructor(e){super(e),this.element=new Xi}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 Qi=class extends Qr{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Et}};const eo=class extends ar{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const to=class extends Wr{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 Wi("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Wi("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 Wi("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Wi("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Wi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Wi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};const so=class extends Li{constructor(e){super(e),this.element=new to}},no=fe(Dn(["visitors","document","objects","JSONSchema","$visitor"],Yi),Jn(["visitors","document","objects","JSONSchema","fixedFields","id"]),Dn(["visitors","document","objects","JSONSchema","fixedFields","$id"],Ui.visitors.value),Dn(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ui.visitors.JSONSchemaOrJSONReferenceVisitor),Dn(["visitors","document","objects","JSONSchema","fixedFields","items"],Qi),Dn(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ui.visitors.JSONSchemaOrJSONReferenceVisitor),Dn(["visitors","document","objects","JSONSchema","fixedFields","const"],Ui.visitors.value),Dn(["visitors","document","objects","JSONSchema","fixedFields","examples"],eo),Dn(["visitors","document","objects","LinkDescription","$visitor"],so),Dn(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ui.visitors.JSONSchemaOrJSONReferenceVisitor),Jn(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Dn(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ui.visitors.JSONSchemaOrJSONReferenceVisitor),Jn(["visitors","document","objects","LinkDescription","fixedFields","method"]),Jn(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Dn(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Ui.visitors.value))(Ui),ro={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...As},io=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Xi||e(n)&&t("JSONSchemaDraft6",n)&&s("object",n))),oo=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof to||e(n)&&t("linkDescription",n)&&s("object",n))),ao={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Xi),t.register("jSONReference",Vr),t.register("media",Lr),t.register("linkDescription",to),t}},co=()=>{const e=it(ao);return{predicates:{...s,isStringElement:Vt},namespace:e}},uo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:n=no}={})=>{const r=(0,ie.e)(e),i=ws(n),o=new(ms(t,i))({specObj:i});return Ts(r,o),Js(o.element,s,{toolboxCreator:co,visitorOptions:{keyMap:ro,nodeTypeGetter:Hi}})},lo=e=>(t,s={})=>uo(t,{specPath:e,...s});Xi.refract=lo(["visitors","document","objects","JSONSchema","$visitor"]),to.refract=lo(["visitors","document","objects","LinkDescription","$visitor"]);const mo=class extends Xi{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",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 Wi('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Wi('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 ho=class extends Yi{constructor(e){super(e),this.element=new mo}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const po=class extends to{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 Wi("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Wi("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 Wi("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Wi("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 _o=class extends so{constructor(e){super(e),this.element=new po}},go=fe(Dn(["visitors","document","objects","JSONSchema","$visitor"],ho),Dn(["visitors","document","objects","JSONSchema","fixedFields","$comment"],no.visitors.value),Dn(["visitors","document","objects","JSONSchema","fixedFields","if"],no.visitors.JSONSchemaOrJSONReferenceVisitor),Dn(["visitors","document","objects","JSONSchema","fixedFields","then"],no.visitors.JSONSchemaOrJSONReferenceVisitor),Dn(["visitors","document","objects","JSONSchema","fixedFields","else"],no.visitors.JSONSchemaOrJSONReferenceVisitor),Jn(["visitors","document","objects","JSONSchema","fixedFields","media"]),Dn(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],no.visitors.value),Dn(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],no.visitors.value),Dn(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],no.visitors.value),Dn(["visitors","document","objects","LinkDescription","$visitor"],_o),Dn(["visitors","document","objects","LinkDescription","fixedFields","anchor"],no.visitors.value),Dn(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],no.visitors.value),Jn(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Dn(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],no.visitors.value),Dn(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],no.visitors.value),Dn(["visitors","document","objects","LinkDescription","fixedFields","description"],no.visitors.value),Dn(["visitors","document","objects","LinkDescription","fixedFields","$comment"],no.visitors.value),Dn(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],no.visitors.JSONSchemaOrJSONReferenceVisitor),Jn(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Dn(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],no.visitors.value))(no);const fo=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ir(t.meta,e.meta)),Qt(e)&&Es(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ir(t.attributes,e.attributes))}};const bo=class extends fo{enter(e){return this.element=xs(e),Et}};const vo=class extends fo{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Cr(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ms(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return $e(Je,["visitors",...e],this.specObj)?ms(["visitors",...e],this.specObj):ms(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof bo&&(null==n?void 0:n.constructor)===bo?xs(t):(Ts(t,n,s),n.element)}};const yo=class extends vo{MemberElement(e){return this.element=xs(e),this.element.classes.push("specification-extension"),Et}};var wo=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=B,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Bt(s):s},e}();function Eo(e){return function(t){return new wo(e,t)}}const xo=a(j(["take"],Eo,(function(e,t){return _e(0,e<0?1/0:e,t)})));const So=a((function(e,t){return ee(xo(e.length,t),e)})),jo=e=>Wt(e)&&e.hasKey("$ref"),Oo=e=>Vt(e.key)&&So("x-",er(e.key));const Mo=class extends vo{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Oo;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,n,r)=>{if(Vt(n)&&s.includes(er(n))&&!this.ignoredFields.includes(er(n))){const s=this.toRefractedElement([...t,"fixedFields",er(n)],e),i=new ie.Pr(xs(n),s);i.classes.push("fixed-field"),this.copyMetaAndAttributes(r,i),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else this.ignoredFields.includes(er(n))||this.element.content.push(xs(r))})),this.copyMetaAndAttributes(e,this.element),Et}};class Bo extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="asyncApi2",this.classes.push("api")}get asyncapi(){return this.get("asyncapi")}set asyncapi(e){this.set("asyncapi",e)}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get defaultContentType(){return this.get("defaultContentType")}set defaultContentType(e){this.set("defaultContentType",e)}get channels(){return this.get("channels")}set channels(e){this.set("channels",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Po=Bo;class Ao extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Po,this.specPath=te(["document","objects","AsyncApi"]),this.canSupportSpecificationExtensions=!0}}const To=Ao;class $o extends ie.Om{constructor(e,t,s){super(e,t,s),this.element="asyncApiVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Co=$o;class Io extends(Or(vo,bo)){StringElement(e){const t=new Co(er(e));return this.copyMetaAndAttributes(e,t),this.element=t,Et}}const Ro=Io;class Fo extends ie.Om{constructor(e,t,s){super(e,t,s),this.element="identifier"}}const ko=Fo;class No extends(Or(vo,bo)){StringElement(e){const t=new ko(er(e));return this.copyMetaAndAttributes(e,t),this.element=t,Et}}const qo=No;class Vo extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}}const Do=Vo;class Lo extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Do,this.specPath=te(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Uo=Lo;const Wo=class extends bo{StringElement(e){return this.element=new ie.Om(er(e)),this.copyMetaAndAttributes(e,this.element),this.element.classes.push("api-version"),this.element.classes.push("version"),Et}};class Ho extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Jo=Ho;class Go extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Jo,this.specPath=te(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const zo=Go;class Zo extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="correlationID"}get description(){return this.get("description")}set description(e){this.set("description",e)}get location(){return this.get("location")}set location(e){this.set("location",e)}}const Ko=Zo;class Xo extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Ko,this.specPath=te(["document","objects","CorrelationID"]),this.canSupportSpecificationExtensions=!0}}const Yo=Xo;class Qo extends ie.Om{constructor(e,t,s){super(e,t,s),this.element="defaultContentType"}}const ea=Qo;class ta extends(Or(vo,bo)){StringElement(e){const t=new ea(er(e));return this.copyMetaAndAttributes(e,t),this.element=t,Et}}const sa=ta;class na extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const ra=na;class ia extends(Or(Mo,bo)){constructor(e){super(e),this.element=new ra,this.specPath=te(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const oa=ia;class aa extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const ca=aa;class ua extends(Or(Mo,bo)){constructor(e){super(e),this.element=new ca,this.specPath=te(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const la=ua;class da extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const ma=da;class ha extends(Or(Mo,bo)){constructor(e){super(e),this.element=new ma,this.specPath=te(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const pa=ha;class _a extends ie.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(_a.primaryClass)}}const ga=_a;const fa=class extends vo{specPath;ignoredFields;fieldPatternPredicate=ti;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Oo;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(er(t))&&this.fieldPatternPredicate(er(t))){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new ie.Pr(xs(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(er(t))||this.element.content.push(xs(s))})),this.copyMetaAndAttributes(e,this.element),Et}};const ba=class extends fa{constructor(e){super(e),this.fieldPatternPredicate=$r}};class va extends(Or(ba,bo)){constructor(e){super(e),this.element=new ga,this.specPath=te(["value"])}}const ya=va;const wa=a((function(e,t){if(s=e,"[object RegExp]"!==Object.prototype.toString.call(s))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ae(e));var s;return function(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}(e).test(t)}));class Ea extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="servers"}}const xa=Ea;class Sa extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="channelBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}}const ja=Sa;class Oa extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="channelItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get subscribe(){return this.get("subscribe")}set subscribe(e){this.set("subscribe",e)}get publish(){return this.get("publish")}set publish(e){this.set("publish",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}}const Ma=Oa;class Ba extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="channels"}}const Pa=Ba;class Aa extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get serverVariables(){return this.get("serverVariables")}set serverVariables(e){this.set("serverVariables",e)}get messages(){return this.get("messages")}set messages(e){this.set("messages",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get correlationIds(){return this.get("correlationIds")}set correlationIds(e){this.set("correlationIds",e)}get operationTraits(){return this.get("operationTraits")}set operationTraits(e){this.set("operationTraits",e)}get messageTraits(){return this.get("messageTraits")}set messageTraits(e){this.set("messageTraits",e)}get serverBindings(){return this.get("serverBindings")}set serverBindings(e){this.set("serverBindings",e)}get channelBindings(){return this.get("channelBindings")}set channelBindings(e){this.set("channelBindings",e)}get operationBindings(){return this.get("operationBindings")}set operationBindings(e){this.set("operationBindings",e)}get messageBindings(){return this.get("messageBindings")}set messageBindings(e){this.set("messageBindings",e)}}const Ta=Aa;class $a extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="operation"}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get traits(){return this.get("traits")}set traits(e){this.set("traits",e)}get message(){return this.get("message")}set message(e){this.set("message",e)}}const Ca=$a;class Ia extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="parameter"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get location(){return this.get("location")}set location(e){this.set("location",e)}}const Ra=Ia;class Fa extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="parameters"}}const ka=Fa;class Na extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("json-reference"),this.classes.push("asyncapi-reference")}set $ref(e){this.set("$ref",e)}get $ref(){return this.get("$ref")}}const qa=Na,Va={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...As},Da=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof mo||e(n)&&t("JSONSchemaDraft7",n)&&s("object",n))),La=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof po||e(n)&&t("linkDescription",n)&&s("object",n))),Ua={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",mo),t.register("jSONReference",Vr),t.register("linkDescription",po),t}},Wa=()=>{const e=it(Ua);return{predicates:{...n,isStringElement:Vt},namespace:e}},Ha=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:n=go}={})=>{const r=(0,ie.e)(e),i=ws(n),o=new(ms(t,i))({specObj:i});return Ts(r,o),Js(o.element,s,{toolboxCreator:Wa,visitorOptions:{keyMap:Va,nodeTypeGetter:Hi}})},Ja=e=>(t,s={})=>Ha(t,{specPath:e,...s});mo.refract=Ja(["visitors","document","objects","JSONSchema","$visitor"]),po.refract=Ja(["visitors","document","objects","LinkDescription","$visitor"]);const Ga=class extends mo{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-7")}get not(){return this.get("not")}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 items(){return this.get("items")}set items(e){this.set("items",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get discriminator(){return this.get("discriminator")}get externalDocs(){return this.get("externalDocs")}get deprecated(){return this.get("deprecated")}};class za extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Za=za;class Ka extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get protocol(){return this.get("protocol")}set protocol(e){this.set("protocol",e)}get protocolVersion(){return this.get("protocolVersion")}set protocolVersion(e){this.set("protocolVersion",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}}const Xa=Ka;class Ya extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="serverBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}}const Qa=Ya;class ec extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const tc=ec,sc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:n})=>r=>r instanceof Po&&r.constructor===Po||e(r)&&t("asyncApi2",r)&&s("object",r)&&n("api",r))),nc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Co||e(n)&&t("asyncApiVersion",n)&&s("string",n))),rc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ja||e(n)&&t("channelBindings",n)&&s("object",n))),ic=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ma||e(n)&&t("channelItem",n)&&s("object",n))),oc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Pa||e(n)&&t("channels",n)&&s("object",n))),ac=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ta||e(n)&&t("components",n)&&s("object",n))),cc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Jo||e(n)&&t("contact",n)&&s("object",n))),uc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ko||e(n)&&t("identifier",n)&&s("string",n))),lc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Do||e(n)&&t("info",n)&&s("object",n))),dc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ra||e(n)&&t("license",n)&&s("object",n))),mc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ca||e(n)&&t("operation",n)&&s("object",n))),hc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ra||e(n)&&t("parameter",n)&&s("object",n))),pc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ka||e(n)&&t("parameters",n)&&s("object",n))),_c=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof qa||e(n)&&t("reference",n)&&s("object",n))),gc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ga||e(n)&&t("schema",n)&&s("object",n))),fc=e=>Ut(e)&&e.classes.includes("boolean-json-schema"),bc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Za||e(n)&&t("securityRequirement",n)&&s("object",n))),vc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Xa||e(n)&&t("server",n)&&s("object",n))),yc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Qa||e(n)&&t("serverBindings",n)&&s("object",n))),wc=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof xa||e(n)&&t("servers",n)&&s("object",n))),Ec=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof tc||e(n)&&t("serverVariable",n)&&s("object",n)));class xc extends(Or(fa,bo)){constructor(e){super(e),this.element=new xa,this.element.classes.push("servers"),this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","Server"],this.canSupportSpecificationExtensions=!1,this.fieldPatternPredicate=wa(/^[A-Za-z0-9_-]+$/)}ObjectElement(e){const t=fa.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","server")})),t}}const Sc=xc;class jc extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Xa,this.specPath=te(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Oc=jc;const Mc=class extends bo{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};const Bc=class extends vo{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ji(e,te(t),se))),s=Fi(t)(e);return this.element=this.toRefractedElement(s,e),Et}};class Pc extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","ServerBindings"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","serverBindings"),t}}const Ac=Pc;class Tc extends ie.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Tc.primaryClass)}}const $c=Tc;class Cc extends(Or(ba,bo)){constructor(e){super(e),this.element=new $c,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","ServerVariable"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","serverVariable")})),t}}const Ic=Cc;class Rc extends ie.wE{static primaryClass="server-security";constructor(e,t,s){super(e,t,s),this.classes.push(Rc.primaryClass)}}const Fc=Rc;class kc extends(Or(vo,bo)){constructor(e){super(e),this.element=new Fc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Et}}const Nc=kc;class qc extends(Or(Mo,bo)){constructor(e){super(e),this.element=new tc,this.specPath=te(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Vc=qc;class Dc extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Qa,this.specPath=te(["document","objects","ServerBindings"]),this.canSupportSpecificationExtensions=!0}}const Lc=Dc;class Uc extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Wc=Uc;class Hc extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Wc,this.specPath=te(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Jc=Hc;class Gc extends(Or(ba,bo)){constructor(e){super(e),this.element=new Za,this.specPath=te(["value"])}}const zc=Gc;class Zc extends(Or(Mo,bo)){constructor(e){super(e),this.element=new qa,this.specPath=te(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Mo.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Kc=Zc;const Xc=class extends bo{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Yc extends(Or(Mo,bo)){constructor(e){super(e),this.specPath=te(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return this.element=new Ga,Mo.prototype.ObjectElement.call(this,e)}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}}const Qc=Yc,eu=go.visitors.JSONSchemaOrJSONReferenceVisitor;const tu=class extends eu{enter(e){const t=eu.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}},su=go.visitors.document.objects.JSONSchema.fixedFields.allOf;const nu=class extends su{ArrayElement(e){const t=su.prototype.ArrayElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},ru=go.visitors.document.objects.JSONSchema.fixedFields.anyOf;const iu=class extends ru{ArrayElement(e){const t=ru.prototype.ArrayElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},ou=go.visitors.document.objects.JSONSchema.fixedFields.oneOf;const au=class extends ou{ArrayElement(e){const t=ou.prototype.ArrayElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},cu=go.visitors.document.objects.JSONSchema.fixedFields.definitions;const uu=class extends cu{ObjectElement(e){const t=cu.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},lu=go.visitors.document.objects.JSONSchema.fixedFields.dependencies;const du=class extends lu{ObjectElement(e){const t=lu.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},mu=go.visitors.document.objects.JSONSchema.fixedFields.items;const hu=class extends mu{ObjectElement(e){const t=mu.prototype.ObjectElement.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){const t=mu.prototype.ArrayElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},pu=go.visitors.document.objects.JSONSchema.fixedFields.patternProperties;const _u=class extends pu{ObjectElement(e){const t=pu.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},gu=go.visitors.document.objects.JSONSchema.fixedFields.properties;const fu=class extends gu{ObjectElement(e){const t=gu.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},bu=U((e=>e===go.visitors.JSONSchemaOrJSONReferenceVisitor?tu:e),go.visitors.document.objects.JSONSchema.fixedFields);class vu extends(Or(fa,bo)){constructor(e){super(e),this.element=new ka,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","Parameter"],this.canSupportSpecificationExtensions=!1,this.fieldPatternPredicate=e=>"string"==typeof e&&/^[A-Za-z0-9_-]+$/.test(e)}ObjectElement(e){const t=fa.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const yu=vu;class wu extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Ra,this.specPath=te(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const Eu=wu;class xu extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Su=xu;class ju extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ou=ju;class Mu extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Ou,this.specPath=te(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Bu=Mu;class Pu extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Ta,this.specPath=te(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Au=Pu;class Tu extends ie.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Tu.primaryClass)}}const $u=Tu;class Cu extends(Or(ba,bo)){constructor(e){super(e),this.element=new $u,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Iu=Cu;class Ru extends ie.Sh{static primaryClass="components-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Ru.primaryClass)}}const Fu=Ru;class ku extends(Or(ba,bo)){constructor(e){super(e),this.element=new Fu,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","Server"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","server")})),t}}const Nu=ku;class qu extends ie.Sh{static primaryClass="components-server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(qu.primaryClass)}}const Vu=qu;class Du extends(Or(ba,bo)){constructor(e){super(e),this.element=new Vu,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","ServerVariable"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","serverVariable")})),t}}const Lu=Du;class Uu extends ie.Sh{static primaryClass="components-channels";constructor(e,t,s){super(e,t,s),this.classes.push(Uu.primaryClass)}}const Wu=Uu;class Hu extends(Or(ba,bo)){constructor(e){super(e),this.element=new Wu,this.specPath=te(["document","objects","ChannelItem"])}}const Ju=Hu;class Gu extends ie.Sh{static primaryClass="components-messages";constructor(e,t,s){super(e,t,s),this.classes.push(Gu.primaryClass)}}const zu=Gu;class Zu extends(Or(ba,bo)){constructor(e){super(e),this.element=new zu,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","Message"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","message")})),t}}const Ku=Zu;class Xu extends ie.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(Xu.primaryClass)}}const Yu=Xu;class Qu extends(Or(ba,bo)){constructor(e){super(e),this.element=new Yu,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const el=Qu;class tl extends ie.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(tl.primaryClass)}}const sl=tl;class nl extends(Or(ba,bo)){constructor(e){super(e),this.element=new sl,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const rl=nl;class il extends ie.Sh{static primaryClass="components-correlation-ids";constructor(e,t,s){super(e,t,s),this.classes.push(il.primaryClass)}}const ol=il;class al extends(Or(ba,bo)){constructor(e){super(e),this.element=new ol,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","CorrelationID"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","correlationID")})),t}}const cl=al;class ul extends ie.Sh{static primaryClass="components-operation-traits";constructor(e,t,s){super(e,t,s),this.classes.push(ul.primaryClass)}}const ll=ul;class dl extends(Or(ba,bo)){constructor(e){super(e),this.element=new ll,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","OperationTrait"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","operationTrait")})),t}}const ml=dl;class hl extends ie.Sh{static primaryClass="components-message-traits";constructor(e,t,s){super(e,t,s),this.classes.push(hl.primaryClass)}}const pl=hl;class _l extends(Or(ba,bo)){constructor(e){super(e),this.element=new pl,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","MessageTrait"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","messageTrait")})),t}}const gl=_l;class fl extends ie.Sh{static primaryClass="components-server-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(fl.primaryClass)}}const bl=fl;class vl extends(Or(ba,bo)){constructor(e){super(e),this.element=new bl,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","ServerBindings"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","serverBindings")})),t}}const yl=vl;class wl extends ie.Sh{static primaryClass="components-channel-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(wl.primaryClass)}}const El=wl;class xl extends(Or(ba,bo)){constructor(e){super(e),this.element=new El,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","ChannelBindings"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","channelBindings")})),t}}const Sl=xl;class jl extends ie.Sh{static primaryClass="components-operation-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(jl.primaryClass)}}const Ol=jl;class Ml extends(Or(ba,bo)){constructor(e){super(e),this.element=new Ol,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","OperationBindings"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","operationBindings")})),t}}const Bl=Ml;class Pl extends ie.Sh{static primaryClass="components-message-bindings";constructor(e,t,s){super(e,t,s),this.classes.push(Pl.primaryClass)}}const Al=Pl;class Tl extends(Or(ba,bo)){constructor(e){super(e),this.element=new Al,this.specPath=e=>jo(e)?["document","objects","Reference"]:["document","objects","MessageBindings"]}ObjectElement(e){const t=ba.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","messageBindings")})),t}}const $l=Tl;class Cl extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Ca,this.specPath=te(["document","objects","Operation"])}}const Il=Cl;class Rl extends ie.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Rl.primaryClass)}}const Fl=Rl;class kl extends(Or(vo,bo)){constructor(e){super(e),this.element=new Fl}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Et}}const Nl=kl;class ql extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","OperationBindings"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","operationBindings"),t}}const Vl=ql;class Dl extends ie.wE{static primaryClass="operation-traits";constructor(e,t,s){super(e,t,s),this.classes.push(Dl.primaryClass)}}const Ll=Dl;class Ul extends(Or(vo,bo)){constructor(e){super(e),this.element=new Ll}ArrayElement(e){return e.forEach((e=>{let t;jo(e)?(t=this.toRefractedElement(["document","objects","Reference"],e),t.setMetaProperty("referenced-element","operationTrait")):t=this.toRefractedElement(["document","objects","OperationTrait"],e),this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Et}}const Wl=Ul;class Hl extends ie.Sh{static primaryClass="operation-message-map";constructor(e,t,s){super(e,t,s),this.classes.push(Hl.primaryClass)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}}const Jl=Hl;class Gl extends ie.wE{static primaryClass="operation-message";constructor(e,t,s){super(e,t,s),this.classes.push(Gl.primaryClass)}}const zl=Gl;class Zl extends(Or(vo,bo)){ObjectElement(e){if(jo(e))this.element=this.toRefractedElement(["document","objects","Reference"],e),this.element.setMetaProperty("referenced-element","message");else if(Ht(e.get("oneOf"))){this.element=new Jl;const t=new zl;e.get("oneOf").forEach((e=>{let s;jo(e)?(s=this.toRefractedElement(["document","objects","Reference"],e),s.setMetaProperty("referenced-element","message")):s=this.toRefractedElement(["document","objects","Message"],e),t.push(s)})),this.element.oneOf=t}else this.element=this.toRefractedElement(["document","objects","Message"],e);return this.copyMetaAndAttributes(e,this.element),Et}}const Kl=Zl;class Xl extends ie.wE{constructor(e,t,s){super(e,t,s),this.element="tags"}}const Yl=Xl;class Ql extends(Or(vo,bo)){constructor(e){super(e),this.element=new Yl}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Et}}const ed=Ql;class td extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const sd=td;class nd extends(Or(Mo,bo)){constructor(e){super(e),this.element=new sd,this.specPath=te(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const rd=nd;class id extends(Or(ba,bo)){constructor(e){super(e),this.element=new Pa,this.specPath=te(["document","objects","ChannelItem"])}}const od=id;class ad extends(Or(Mo,bo)){constructor(e){super(e),this.element=new ja,this.specPath=te(["document","objects","ChannelBindings"]),this.canSupportSpecificationExtensions=!0}}const cd=ad;class ud extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Ma,this.specPath=te(["document","objects","ChannelItem"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Mo.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","channelItem")),t}}const ld=ud;const dd=class extends bo{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class md extends ie.wE{static primaryClass="channel-item-server-names-list";constructor(e,t,s){super(e,t,s),this.classes.push(md.primaryClass)}}const hd=md;class pd extends(Or(vo,bo)){constructor(e){super(e),this.element=new hd}ArrayElement(e){return e.forEach((e=>{const t=xs(e);Vt(t)&&t.classes.push("server-name"),this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Et}}const _d=pd;class gd extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","ChannelBindings"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","channelBindings"),t}}const fd=gd;class bd extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="messageBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}}const vd=bd;class yd extends(Or(Mo,bo)){constructor(e){super(e),this.element=new vd,this.specPath=te(["document","objects","MessageBindings"]),this.canSupportSpecificationExtensions=!0}}const wd=yd;class Ed extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="messageExample"}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get payload(){return this.get("payload")}set payload(e){this.set("payload",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}}const xd=Ed;class Sd extends(Or(Mo,bo)){constructor(e){super(e),this.element=new xd,this.specPath=te(["document","objects","MessageExample"]),this.canSupportSpecificationExtensions=!0}}const jd=Sd;class Od extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="messageTrait"}get messageId(){return this.get("messageId")}set messageId(e){this.set("messageId",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get correlationId(){return this.get("correlationId")}set correlationId(e){this.set("correlationId",e)}get schemaFormat(){return this.get("schemaFormat")}set schemaFormat(e){this.set("schemaFormat",e)}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const Md=Od;class Bd extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Md,this.specPath=te(["document","objects","MessageTrait"]),this.canSupportSpecificationExtensions=!0}}const Pd=Bd;class Ad extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Td=Ad;class $d extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","CorrelationID"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","correlationID"),t}}const Cd=$d;class Id extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","MessageBindings"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","messageBindings"),t}}const Rd=Id;class Fd extends ie.wE{static primaryClass="message-trait-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Fd.primaryClass)}}const kd=Fd;class Nd extends(Or(vo,bo)){constructor(e){super(e),this.element=new kd}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","MessageExample"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Et}}const qd=Nd;const Vd=o((function(e){return m(-1,e)}));const Dd=class extends Wi{};const Ld=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Dd("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Dd("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Dd("latest method in MediaTypes class is not yet implemented.")}};class Ud extends Ld{filterByFormat(e="generic"){const t="generic"===e?"asyncapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.6.0",t="generic"){const s="generic"===t?`vnd.aai.asyncapi;version=${e}`:`vnd.aai.asyncapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return Vd(this.filterByFormat(e))}}const Wd=new Ud("application/vnd.aai.asyncapi;version=2.0.0","application/vnd.aai.asyncapi+json;version=2.0.0","application/vnd.aai.asyncapi+yaml;version=2.0.0","application/vnd.aai.asyncapi;version=2.1.0","application/vnd.aai.asyncapi+json;version=2.1.0","application/vnd.aai.asyncapi+yaml;version=2.1.0","application/vnd.aai.asyncapi;version=2.2.0","application/vnd.aai.asyncapi+json;version=2.2.0","application/vnd.aai.asyncapi+yaml;version=2.2.0","application/vnd.aai.asyncapi;version=2.3.0","application/vnd.aai.asyncapi+json;version=2.3.0","application/vnd.aai.asyncapi+yaml;version=2.3.0","application/vnd.aai.asyncapi;version=2.4.0","application/vnd.aai.asyncapi+json;version=2.4.0","application/vnd.aai.asyncapi+yaml;version=2.4.0","application/vnd.aai.asyncapi;version=2.5.0","application/vnd.aai.asyncapi+json;version=2.5.0","application/vnd.aai.asyncapi+yaml;version=2.5.0","application/vnd.aai.asyncapi;version=2.6.0","application/vnd.aai.asyncapi+json;version=2.6.0","application/vnd.aai.asyncapi+yaml;version=2.6.0");class Hd extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="message"}get messageId(){return this.get("messageId")}set messageId(e){this.set("messageId",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get payload(){return this.get("payload")}set payload(e){this.set("payload",e)}get correlationId(){return this.get("correlationId")}set correlationId(e){this.set("correlationId",e)}get schemaFormat(){return this.get("schemaFormat")}set schemaFormat(e){this.set("schemaFormat",e)}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get traits(){return this.get("traits")}set traits(e){this.set("traits",e)}}const Jd=Hd;class Gd extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Jd,this.specPath=te(["document","objects","Message"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Mo.prototype.ObjectElement.call(this,e),s=this.element.get("payload"),n=u(Wd.latest(),er(e.get("schemaFormat")));if(Wd.includes(n)&&jo(s)){const e=this.toRefractedElement(["document","objects","Reference"],s);e.meta.set("referenced-element","schema"),this.element.payload=e}else Wd.includes(n)&&Wt(this.element.payload)&&(this.element.payload=this.toRefractedElement(["document","objects","Schema"],s));return t}}const zd=Gd;class Zd extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Kd=Zd;class Xd extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","CorrelationID"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","correlationID"),t}}const Yd=Xd;class Qd extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","MessageBindings"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","messageBindings"),t}}const em=Qd;class tm extends ie.wE{static primaryClass="message-examples";constructor(e,t,s){super(e,t,s),this.classes.push(tm.primaryClass)}}const sm=tm;class nm extends(Or(vo,bo)){constructor(e){super(e),this.element=new sm}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","MessageExample"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Et}}const rm=nm;class im extends ie.wE{static primaryClass="message-traits";constructor(e,t,s){super(e,t,s),this.classes.push(im.primaryClass)}}const om=im;class am extends(Or(vo,bo)){constructor(e){super(e),this.element=new om}ArrayElement(e){return e.forEach((e=>{let t;jo(e)?(t=this.toRefractedElement(["document","objects","Reference"],e),t.setMetaProperty("referenced-element","messageTrait")):t=this.toRefractedElement(["document","objects","MessageTrait"],e),this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Et}}const cm=am;class um extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="operationBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}}const lm=um;class dm extends(Or(Mo,bo)){constructor(e){super(e),this.element=new lm,this.specPath=te(["document","objects","OperationBindings"]),this.canSupportSpecificationExtensions=!0}}const mm=dm;class hm extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="operationTrait"}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}}const pm=hm;class _m extends(Or(Mo,bo)){constructor(e){super(e),this.element=new pm,this.specPath=te(["document","objects","OperationTrait"]),this.canSupportSpecificationExtensions=!0}}const gm=_m;class fm extends ie.wE{static primaryClass="operation-trait-security";constructor(e,t,s){super(e,t,s),this.classes.push(fm.primaryClass)}}const bm=fm;class vm extends(Or(vo,bo)){constructor(e){super(e),this.element=new bm}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Et}}const ym=vm;class wm extends(Or(Bc,bo)){constructor(e){super(e),this.alternator=[{predicate:jo,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","OperationBindings"]}]}ObjectElement(e){const t=Bc.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","operationBindings"),t}}const Em=wm;class xm extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="amqpChannelBinding",this.classes.push("channel-binding")}get is(){return this.get("is")}set is(e){this.set("is",e)}get exchange(){return this.get("exchange")}set exchange(e){this.set("exchange",e)}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const Sm=xm;class jm extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Sm,this.specPath=te(["document","objects","bindings","amqp","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Om=jm;class Mm extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="amqpMessageBinding",this.classes.push("message-binding")}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get messageType(){return this.get("messageType")}set messageType(e){this.set("messageType",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const Bm=Mm;class Pm extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Bm,this.specPath=te(["document","objects","bindings","amqp","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Am=Pm;class Tm extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="amqpOperationBinding",this.classes.push("operation-binding")}get expiration(){return this.get("expiration")}set expiration(e){this.set("expiration",e)}get userId(){return this.get("userId")}set userId(e){this.set("userId",e)}get cc(){return this.get("cc")}set cc(e){this.set("cc",e)}get priority(){return this.get("priority")}set priority(e){this.set("priority",e)}get deliveryMode(){return this.get("deliveryMode")}set deliveryMode(e){this.set("deliveryMode",e)}get mandatory(){return this.get("mandatory")}set mandatory(e){this.set("mandatory",e)}get bcc(){return this.get("bcc")}set bcc(e){this.set("bcc",e)}get replyTo(){return this.get("replyTo")}set replyTo(e){this.set("replyTo",e)}get timestamp(){return this.get("timestamp")}set timestamp(e){this.set("timestamp",e)}get ack(){return this.get("ack")}set ack(e){this.set("ack",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const $m=Tm;class Cm extends(Or(Mo,bo)){constructor(e){super(e),this.element=new $m,this.specPath=te(["document","objects","bindings","amqp","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const Im=Cm;class Rm extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="amqpServerBinding",this.classes.push("server-binding")}}const Fm=Rm;class km extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Fm,this.specPath=te(["document","objects","bindings","amqp","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const Nm=km;class qm extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="amqp1ChannelBinding",this.classes.push("channel-binding")}}const Vm=qm;class Dm extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Vm,this.specPath=te(["document","objects","bindings","amqp1","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Lm=Dm;class Um extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="amqp1MessageBinding",this.classes.push("message-binding")}}const Wm=Um;class Hm extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Wm,this.specPath=te(["document","objects","bindings","amqp1","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Jm=Hm;class Gm extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="amqp1OperationBinding",this.classes.push("operation-binding")}}const zm=Gm;class Zm extends(Or(Mo,bo)){constructor(e){super(e),this.element=new zm,this.specPath=te(["document","objects","bindings","amqp1","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const Km=Zm;class Xm extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="amqp1ServerBinding",this.classes.push("server-binding")}}const Ym=Xm;class Qm extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Ym,this.specPath=te(["document","objects","bindings","amqp1","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const eh=Qm;class th extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="anypointmqChannelBinding",this.classes.push("channel-binding")}get destination(){return this.get("destination")}set destination(e){this.set("destination",e)}get destinationType(){return this.get("destinationType")}set destinationType(e){this.set("destinationType",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const sh=th;class nh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new sh,this.specPath=te(["document","objects","bindings","anypointmq","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const rh=nh;class ih extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="anypointmqMessageBinding",this.classes.push("message-binding")}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const oh=ih;class ah extends(Or(Mo,bo)){constructor(e){super(e),this.element=new oh,this.specPath=te(["document","objects","bindings","anypointmq","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const ch=ah;class uh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="anypointmqOperationBinding",this.classes.push("operation-binding")}}const lh=uh;class dh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new lh,this.specPath=te(["document","objects","bindings","anypointmq","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const mh=dh;class hh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="anypointmqServerBinding",this.classes.push("server-binding")}}const ph=hh;class _h extends(Or(Mo,bo)){constructor(e){super(e),this.element=new ph,this.specPath=te(["document","objects","bindings","anypointmq","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const gh=_h;class fh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="httpChannelBinding",this.classes.push("channel-binding")}}const bh=fh;class vh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new bh,this.specPath=te(["document","objects","bindings","http","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const yh=vh;class wh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="httpMessageBinding",this.classes.push("message-binding")}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const Eh=wh;class xh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Eh,this.specPath=te(["document","objects","bindings","http","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Sh=xh;class jh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="httpOperationBinding",this.classes.push("operation-binding")}get type(){return this.get("type")}set type(e){this.set("type",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get query(){return this.get("query")}set query(e){this.set("query",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const Oh=jh;class Mh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Oh,this.specPath=te(["document","objects","bindings","http","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const Bh=Mh;class Ph extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="httpServerBinding",this.classes.push("server-binding")}}const Ah=Ph;class Th extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Ah,this.specPath=te(["document","objects","bindings","http","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const $h=Th;class Ch extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="googlepubsubChannelBinding",this.classes.push("channel-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get labels(){return this.get("labels")}set labels(e){this.set("labels",e)}get messageRetentionDuration(){return this.get("messageRetentionDuration")}set messageRetentionDuration(e){this.set("messageRetentionDuration",e)}get messageStoragePolicy(){return this.get("messageStoragePolicy")}set messageStoragePolicy(e){this.set("messageStoragePolicy",e)}get schemaSettings(){return this.get("schemaSettings")}set schemaSettings(e){this.set("schemaSettings",e)}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}}const Ih=Ch;class Rh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Ih,this.specPath=te(["document","objects","bindings","googlepubsub","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Fh=Rh;class kh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="googlepubsubMessageBinding",this.classes.push("message-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get attributesProp(){return this.get("attributes")}set attributesProp(e){this.set("attributes",e)}get orderingKey(){return this.get("orderingKey")}set orderingKey(e){this.set("orderingKey",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Nh=kh;class qh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Nh,this.specPath=te(["document","objects","bindings","googlepubusb","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Vh=qh;class Dh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="googlepubsubOperationBinding",this.classes.push("operation-binding")}}const Lh=Dh;class Uh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Lh,this.specPath=te(["document","objects","bindings","googlepubsub","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const Wh=Uh;class Hh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="googlepubsubServerBinding",this.classes.push("server-binding")}}const Jh=Hh;class Gh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Jh,this.specPath=te(["document","objects","bindings","googlepubsub","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const zh=Gh;class Zh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="ibmmqChannelBinding",this.classes.push("channel-binding")}get destinationType(){return this.get("destinationType")}set destinationType(e){this.set("destinationType",e)}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}get maxMsgLength(){return this.get("maxMsgLength")}set maxMsgLength(e){this.set("maxMsgLength",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const Kh=Zh;class Xh extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Kh,this.specPath=te(["document","objects","bindings","ibmmq","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Yh=Xh;class Qh extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="ibmmqMessageBinding",this.classes.push("message-binding")}get type(){return this.get("type")}set type(e){this.set("type",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get expiry(){return this.get("expiry")}set expiry(e){this.set("expiry",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const ep=Qh;class tp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new ep,this.specPath=te(["document","objects","bindings","ibmmq","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const sp=tp;class np extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="ibmmqOperationBinding",this.classes.push("operation-binding")}}const rp=np;class ip extends(Or(Mo,bo)){constructor(e){super(e),this.element=new rp,this.specPath=te(["document","objects","bindings","ibmmq","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const op=ip;class ap extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="ibmmqServerBinding",this.classes.push("server-binding")}get groupId(){return this.get("groupId")}set groupId(e){this.set("groupId",e)}get ccdtQueueManagerName(){return this.get("ccdtQueueManagerName")}set ccdtQueueManagerName(e){this.set("ccdtQueueManagerName",e)}get cipherSpec(){return this.get("cipherSpec")}set cipherSpec(e){this.set("cipherSpec",e)}get multiEndpointServer(){return this.get("multiEndpointServer")}set multiEndpointServer(e){this.set("multiEndpointServer",e)}get heartBeatInterval(){return this.get("heartBeatInterval")}set heartBeatInterval(e){this.set("heartBeatInterval",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const cp=ap;class up extends(Or(Mo,bo)){constructor(e){super(e),this.element=new cp,this.specPath=te(["document","objects","bindings","ibmmq","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const lp=up;class dp extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="jmsChannelBinding",this.classes.push("channel-binding")}}const mp=dp;class hp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new mp,this.specPath=te(["document","objects","bindings","jms","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const pp=hp;class _p extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="jmsMessageBinding",this.classes.push("message-binding")}}const gp=_p;class fp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new gp,this.specPath=te(["document","objects","bindings","jms","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const bp=fp;class vp extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="jmsOperationBinding",this.classes.push("operation-binding")}}const yp=vp;class wp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new yp,this.specPath=te(["document","objects","bindings","jms","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const Ep=wp;class xp extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="jmsServerBinding",this.classes.push("server-binding")}}const Sp=xp;class jp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Sp,this.specPath=te(["document","objects","bindings","jms","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const Op=jp;class Mp extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="kafkaChannelBinding",this.classes.push("channel-binding")}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}get partitions(){return this.get("partitions")}set partitions(e){this.set("partitions",e)}get replicas(){return this.get("replicas")}set replicas(e){this.set("replicas",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const Bp=Mp;class Pp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Bp,this.specPath=te(["document","objects","bindings","kafka","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Ap=Pp;class Tp extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="kafkaMessageBinding",this.classes.push("message-binding")}get key(){return this.get("key")}set key(e){this.set("key",e)}get schemaIdLocation(){return this.get("schemaIdLocation")}set schemaIdLocation(e){this.set("schemaIdLocation",e)}get schemaIdPayloadEncoding(){return this.get("schemaIdPayloadEncoding")}set schemaIdPayloadEncoding(e){this.set("schemaIdPayloadEncoding",e)}get schemaLookupStrategy(){return this.get("schemaLookupStrategy")}set schemaLookupStrategy(e){this.set("schemaLookupStrategy",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const $p=Tp;class Cp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new $p,this.specPath=te(["document","objects","bindings","kafka","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Ip=Cp;class Rp extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="kafkaOperationBinding",this.classes.push("operation-binding")}get groupId(){return this.get("groupId")}set groupId(e){this.set("groupId",e)}get clientId(){return this.get("clientId")}set clientId(e){this.set("clientId",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const Fp=Rp;class kp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Fp,this.specPath=te(["document","objects","bindings","kafka","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const Np=kp;class qp extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="kafkaServerBinding",this.classes.push("server-binding")}get schemaRegistryUrl(){return this.get("schemaRegistryUrl")}set schemaRegistryUrl(e){this.set("schemaRegistryUrl",e)}get schemaRegistryVendor(){return this.get("schemaRegistryVendor")}set schemaRegistryVendor(e){this.set("schemaRegistryVendor",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const Vp=qp;class Dp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Vp,this.specPath=te(["document","objects","bindings","kafka","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const Lp=Dp;class Up extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mercureChannelBinding",this.classes.push("channel-binding")}}const Wp=Up;class Hp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Wp,this.specPath=te(["document","objects","bindings","mercure","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Jp=Hp;class Gp extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mercureMessageBinding",this.classes.push("message-binding")}}const zp=Gp;class Zp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new zp,this.specPath=te(["document","objects","bindings","mercure","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Kp=Zp;class Xp extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mercureOperationBinding",this.classes.push("operation-binding")}}const Yp=Xp;class Qp extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Yp,this.specPath=te(["document","objects","bindings","mercure","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const e_=Qp;class t_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mercureServerBinding",this.classes.push("server-binding")}}const s_=t_;class n_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new s_,this.specPath=te(["document","objects","bindings","mercure","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const r_=n_;class i_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mqttChannelBinding",this.classes.push("channel-binding")}}const o_=i_;class a_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new o_,this.specPath=te(["document","objects","bindings","mqtt","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const c_=a_;class u_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mqttMessageBinding",this.classes.push("message-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const l_=u_;class d_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new l_,this.specPath=te(["document","objects","bindings","mqtt","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const m_=d_;class h_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mqttOperationBinding",this.classes.push("operation-binding")}get qos(){return this.get("qos")}set qos(e){this.set("qos",e)}get retain(){return this.get("retain")}set retain(e){this.set("retain",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const p_=h_;class __ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new p_,this.specPath=te(["document","objects","bindings","mqtt","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const g_=__;class f_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mqttServerBinding",this.classes.push("server-binding")}get clientId(){return this.get("clientId")}set clientId(e){this.set("clientId",e)}get cleanSession(){return this.get("cleanSession")}set cleanSession(e){this.set("cleanSession",e)}get lastWill(){return this.get("lastWill")}set lastWill(e){this.set("lastWill",e)}get keepAlive(){return this.get("keepAlive")}set keepAlive(e){this.set("keepAlive",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const b_=f_;class v_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new b_,this.specPath=te(["document","objects","bindings","mqtt","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const y_=v_;class w_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mqtt5ChannelBinding",this.classes.push("channel-binding")}}const E_=w_;class x_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new E_,this.specPath=te(["document","objects","bindings","mqtt5","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const S_=x_;class j_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mqtt5MessageBinding",this.classes.push("message-binding")}}const O_=j_;class M_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new O_,this.specPath=te(["document","objects","bindings","mqtt5","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const B_=M_;class P_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mqtt5OperationBinding",this.classes.push("operation-binding")}}const A_=P_;class T_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new A_,this.specPath=te(["document","objects","bindings","mqtt5","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const $_=T_;class C_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="mqtt5ServerBinding",this.classes.push("server-binding")}}const I_=C_;class R_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new I_,this.specPath=te(["document","objects","bindings","mqtt5","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const F_=R_;class k_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="natsChannelBinding",this.classes.push("channel-binding")}}const N_=k_;class q_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new N_,this.specPath=te(["document","objects","bindings","nats","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const V_=q_;class D_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="natsMessageBinding",this.classes.push("message-binding")}}const L_=D_;class U_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new L_,this.specPath=te(["document","objects","bindings","nats","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const W_=U_;class H_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="natsOperationBinding",this.classes.push("operation-binding")}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const J_=H_;class G_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new J_,this.specPath=te(["document","objects","bindings","nats","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const z_=G_;class Z_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="natsServerBinding",this.classes.push("server-binding")}}const K_=Z_;class X_ extends(Or(Mo,bo)){constructor(e){super(e),this.element=new K_,this.specPath=te(["document","objects","bindings","nats","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const Y_=X_;class Q_ extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="pulsarChannelBinding",this.classes.push("channel-binding")}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get persistence(){return this.get("persistence")}set persistence(e){this.set("persistence",e)}get compaction(){return this.get("compaction")}set compaction(e){this.set("compaction",e)}get"geo-replication"(){return this.get("compaction")}set"geo-replication"(e){this.set("geo-replication",e)}get retention(){return this.get("retention")}set retention(e){this.set("retention",e)}get ttl(){return this.get("ttl")}set ttl(e){this.set("ttl",e)}get deduplication(){return this.get("deduplication")}set deduplication(e){this.set("deduplication",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const eg=Q_;class tg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new eg,this.specPath=te(["document","objects","bindings","pulsar","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const sg=tg;class ng extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="pulsarMessageBinding",this.classes.push("message-binding")}}const rg=ng;class ig extends(Or(Mo,bo)){constructor(e){super(e),this.element=new rg,this.specPath=te(["document","objects","bindings","pulsar","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const og=ig;class ag extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="pulsarOperationBinding",this.classes.push("operation-binding")}}const cg=ag;class ug extends(Or(Mo,bo)){constructor(e){super(e),this.element=new cg,this.specPath=te(["document","objects","bindings","pulsar","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const lg=ug;class dg extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="pulsarServerBinding",this.classes.push("server-binding")}get tenant(){return this.get("tenant")}set tenant(e){this.set("tenant",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const mg=dg;class hg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new mg,this.specPath=te(["document","objects","bindings","pulsar","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const pg=hg;class _g extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="redisChannelBinding",this.classes.push("channel-binding")}}const gg=_g;class fg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new gg,this.specPath=te(["document","objects","bindings","redis","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const bg=fg;class vg extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="redisMessageBinding",this.classes.push("message-binding")}}const yg=vg;class wg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new yg,this.specPath=te(["document","objects","bindings","redis","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Eg=wg;class xg extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="redisOperationBinding",this.classes.push("operation-binding")}}const Sg=xg;class jg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Sg,this.specPath=te(["document","objects","bindings","redis","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const Og=jg;class Mg extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="redisServerBinding",this.classes.push("server-binding")}}const Bg=Mg;class Pg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Bg,this.specPath=te(["document","objects","bindings","redis","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const Ag=Pg;class Tg extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="snsChannelBinding",this.classes.push("channel-binding")}}const $g=Tg;class Cg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new $g,this.specPath=te(["document","objects","bindings","sns","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Ig=Cg;class Rg extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="snsMessageBinding",this.classes.push("message-binding")}}const Fg=Rg;class kg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Fg,this.specPath=te(["document","objects","bindings","sns","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Ng=kg;class qg extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="snsOperationBinding",this.classes.push("operation-binding")}}const Vg=qg;class Dg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Vg,this.specPath=te(["document","objects","bindings","sns","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const Lg=Dg;class Ug extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="snsServerBinding",this.classes.push("server-binding")}}const Wg=Ug;class Hg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Wg,this.specPath=te(["document","objects","bindings","sns","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const Jg=Hg;class Gg extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="solaceChannelBinding",this.classes.push("channel-binding")}}const zg=Gg;class Zg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new zg,this.specPath=te(["document","objects","bindings","solace","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Kg=Zg;class Xg extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="solaceMessageBinding",this.classes.push("message-binding")}}const Yg=Xg;class Qg extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Yg,this.specPath=te(["document","objects","bindings","solace","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const ef=Qg;class tf extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="solaceOperationBinding",this.classes.push("operation-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get destinations(){return this.get("destinations")}set destinations(e){this.set("destinations",e)}}const sf=tf;class nf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new sf,this.specPath=te(["document","objects","bindings","solace","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const rf=nf;class of extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="solaceServerBinding",this.classes.push("server-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get msgVpn(){return this.get("msgVpn")}set msgVpn(e){this.set("msgVpn",e)}}const af=of;class cf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new af,this.specPath=te(["document","objects","bindings","solace","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const uf=cf;class lf extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="sqsChannelBinding",this.classes.push("channel-binding")}}const df=lf;class mf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new df,this.specPath=te(["document","objects","bindings","sqs","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const hf=mf;class pf extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="sqsMessageBinding",this.classes.push("message-binding")}}const _f=pf;class gf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new _f,this.specPath=te(["document","objects","bindings","sqs","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const ff=gf;class bf extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="sqsOperationBinding",this.classes.push("operation-binding")}}const vf=bf;class yf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new vf,this.specPath=te(["document","objects","bindings","sqs","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const wf=yf;class Ef extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="sqsServerBinding",this.classes.push("server-binding")}}const xf=Ef;class Sf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new xf,this.specPath=te(["document","objects","bindings","sqs","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const jf=Sf;class Of extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="stompChannelBinding",this.classes.push("channel-binding")}}const Mf=Of;class Bf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Mf,this.specPath=te(["document","objects","bindings","stomp","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Pf=Bf;class Af extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="stompMessageBinding",this.classes.push("message-binding")}}const Tf=Af;class $f extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Tf,this.specPath=te(["document","objects","bindings","stomp","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Cf=$f;class If extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="stompOperationBinding",this.classes.push("operation-binding")}}const Rf=If;class Ff extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Rf,this.specPath=te(["document","objects","bindings","stomp","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const kf=Ff;class Nf extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="stompServerBinding",this.classes.push("server-binding")}}const qf=Nf;class Vf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new qf,this.specPath=te(["document","objects","bindings","stomp","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const Df=Vf;class Lf extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="webSocketChannelBinding",this.classes.push("channel-binding")}get method(){return this.get("method")}set method(e){this.set("method",e)}get query(){return this.get("query")}set query(e){this.set("query",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}const Uf=Lf;class Wf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Uf,this.specPath=te(["document","objects","bindings","ws","ChannelBinding"]),this.canSupportSpecificationExtensions=!1}}const Hf=Wf;class Jf extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="webSocketMessageBinding",this.classes.push("message-binding")}}const Gf=Jf;class zf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Gf,this.specPath=te(["document","objects","bindings","ws","MessageBinding"]),this.canSupportSpecificationExtensions=!1}}const Zf=zf;class Kf extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="webSocketOperationBinding",this.classes.push("operation-binding")}}const Xf=Kf;class Yf extends(Or(Mo,bo)){constructor(e){super(e),this.element=new Xf,this.specPath=te(["document","objects","bindings","ws","OperationBinding"]),this.canSupportSpecificationExtensions=!1}}const Qf=Yf;class eb extends ie.Sh{constructor(e,t,s){super(e,t,s),this.element="webSocketServerBinding",this.classes.push("server-binding")}}const tb=eb;class sb extends(Or(Mo,bo)){constructor(e){super(e),this.element=new tb,this.specPath=te(["document","objects","bindings","ws","ServerBinding"]),this.canSupportSpecificationExtensions=!1}}const nb=sb,rb={$visitor:Kc,fixedFields:{$ref:Xc}},ib={$visitor:Qc,fixedFields:{...bu,allOf:nu,anyOf:iu,oneOf:au,items:hu,properties:fu,patternProperties:_u,dependencies:du,definitions:uu,discriminator:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},deprecated:{$ref:"#/visitors/value"}}},ob={visitors:{value:bo,document:{objects:{AsyncApi:{$visitor:To,fixedFields:{asyncapi:{$ref:"#/visitors/document/objects/AsyncApiVersion"},id:{$ref:"#/visitors/document/objects/Identifier"},info:{$ref:"#/visitors/document/objects/Info"},servers:{$ref:"#/visitors/document/objects/Servers"},defaultContentType:{$ref:"#/visitors/document/objects/DefaultContentType"},channels:{$ref:"#/visitors/document/objects/Channels"},components:{$ref:"#/visitors/document/objects/Components"},tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},AsyncApiVersion:{$visitor:Ro},Identifier:{$visitor:qo},Info:{$visitor:Uo,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},version:Wo,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"}}},Contact:{$visitor:zo,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:oa,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Servers:{$visitor:Sc},Server:{$visitor:Oc,fixedFields:{url:Mc,protocol:{$ref:"#/visitors/value"},protocolVersion:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},variables:Ic,security:Nc,tags:{$ref:"#/visitors/document/objects/Tags"},bindings:Ac}},ServerVariable:{$visitor:Vc,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},examples:{$ref:"#/visitors/value"}}},DefaultContentType:{$visitor:sa},Channels:{$visitor:od},ChannelItem:{$visitor:ld,fixedFields:{$ref:dd,description:{$ref:"#/visitors/value"},servers:_d,subscribe:{$ref:"#/visitors/document/objects/Operation"},publish:{$ref:"#/visitors/document/objects/Operation"},parameters:{$ref:"#/visitors/document/objects/Parameters"},bindings:fd}},Operation:{$visitor:Il,fixedFields:{operationId:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},security:Nl,tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Vl,traits:Wl,message:Kl}},OperationTrait:{$visitor:gm,fixedFields:{operationId:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},security:ym,tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Em}},Message:{$visitor:zd,fixedFields:{messageId:{$ref:"#/visitors/value"},headers:Kd,payload:{$ref:"#/visitors/value"},correlationId:Yd,schemaFormat:{$ref:"#/visitors/value"},contentType:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:em,examples:rm,traits:cm}},MessageTrait:{$visitor:Pd,fixedFields:{messageId:{$ref:"#/visitors/value"},headers:Td,correlationId:Cd,schemaFormat:{$ref:"#/visitors/value"},contentType:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},tags:{$ref:"#/visitors/document/objects/Tags"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},bindings:Rd,examples:qd}},MessageExample:{$visitor:jd,fixedFields:{headers:{$ref:"#/visitors/value"},payload:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"}}},Tags:{$visitor:ed},Tag:{$visitor:rd,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},ExternalDocumentation:{$visitor:Bu,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Components:{$visitor:Au,fixedFields:{schemas:Iu,servers:Nu,serverVariables:Lu,channels:Ju,messages:Ku,securitySchemes:el,parameters:rl,correlationIds:cl,operationTraits:ml,messageTraits:gl,serverBindings:yl,channelBindings:Sl,operationBindings:Bl,messageBindings:$l}},JSONReference:rb,Reference:rb,JSONSchema:ib,Schema:ib,LinkDescription:go.visitors.document.objects.LinkDescription,SecurityScheme:{$visitor:Jc,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},SecurityRequirement:{$visitor:zc},OAuthFlows:{$visitor:la,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:pa,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:ya}},ServerBindings:{$visitor:Lc,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/ServerBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/ServerBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/ServerBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/ServerBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/ServerBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/ServerBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/ServerBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/ServerBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/ServerBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/ServerBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/ServerBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/ServerBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/ServerBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/ServerBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/ServerBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/ServerBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/ServerBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/ServerBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/ServerBinding"}}},Parameters:{$visitor:yu},Parameter:{$visitor:Eu,fixedFields:{description:{$ref:"#/visitors/value"},schema:Su,location:{$ref:"#/visitors/value"}}},ChannelBindings:{$visitor:cd,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/ChannelBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/ChannelBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/ChannelBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/ChannelBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/ChannelBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/ChannelBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/ChannelBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/ChannelBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/ChannelBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/ChannelBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/ChannelBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/ChannelBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/ChannelBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/ChannelBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/ChannelBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/ChannelBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/ChannelBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/ChannelBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/ChannelBinding"}}},OperationBindings:{$visitor:mm,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/OperationBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/OperationBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/OperationBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/OperationBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/OperationBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/OperationBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/OperationBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/OperationBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/OperationBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/OperationBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/OperationBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/OperationBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/OperationBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/OperationBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/OperationBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/OperationBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/OperationBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/OperationBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/OperationBinding"}}},MessageBindings:{$visitor:wd,fixedFields:{http:{$ref:"#/visitors/document/objects/bindings/http/MessageBinding"},ws:{$ref:"#/visitors/document/objects/bindings/ws/MessageBinding"},kafka:{$ref:"#/visitors/document/objects/bindings/kafka/MessageBinding"},anypointmq:{$ref:"#/visitors/document/objects/bindings/anypointmq/MessageBinding"},amqp:{$ref:"#/visitors/document/objects/bindings/amqp/MessageBinding"},amqp1:{$ref:"#/visitors/document/objects/bindings/amqp1/MessageBinding"},mqtt:{$ref:"#/visitors/document/objects/bindings/mqtt/MessageBinding"},mqtt5:{$ref:"#/visitors/document/objects/bindings/mqtt5/MessageBinding"},nats:{$ref:"#/visitors/document/objects/bindings/nats/MessageBinding"},jms:{$ref:"#/visitors/document/objects/bindings/jms/MessageBinding"},sns:{$ref:"#/visitors/document/objects/bindings/sns/MessageBinding"},solace:{$ref:"#/visitors/document/objects/bindings/solace/MessageBinding"},sqs:{$ref:"#/visitors/document/objects/bindings/sqs/MessageBinding"},stomp:{$ref:"#/visitors/document/objects/bindings/stomp/MessageBinding"},redis:{$ref:"#/visitors/document/objects/bindings/redis/MessageBinding"},mercure:{$ref:"#/visitors/document/objects/bindings/mercure/MessageBinding"},ibmmq:{$ref:"#/visitors/document/objects/bindings/ibmmq/MessageBinding"},googlepubsub:{$ref:"#/visitors/document/objects/bindings/googlepubsub/MessageBinding"},pulsar:{$ref:"#/visitors/document/objects/bindings/pulsar/MessageBinding"}}},CorrelationID:{$visitor:Yo,fixedFields:{description:{$ref:"#/visitors/value"},location:{$ref:"#/visitors/value"}}},bindings:{http:{ServerBinding:{$visitor:$h},ChannelBinding:{$visitor:yh},OperationBinding:{$visitor:Bh,fixedFields:{type:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},query:tu,bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{$visitor:Sh,fixedFields:{headers:tu,bindingVersion:{$ref:"#/visitors/value"}}}},ws:{ServerBinding:{$visitor:nb},ChannelBinding:{$visitor:Hf,fixedFields:{method:{$ref:"#/visitors/value"},query:tu,headers:tu,bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{$visitor:Qf},MessageBinding:{$visitor:Zf}},kafka:{ServerBinding:{$visitor:Lp,fixedFields:{schemaRegistryUrl:{$ref:"#/visitors/value"},schemaRegistryVendor:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{$visitor:Ap,fixedFields:{topic:{$ref:"#/visitors/value"},partitions:{$ref:"#/visitors/value"},replicas:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{$visitor:Np,fixedFields:{groupId:tu,clientId:tu,bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{$visitor:Ip,fixedFields:{key:tu,schemaIdLocation:{$ref:"#/visitors/value"},schemaIdPayloadEncoding:{$ref:"#/visitors/value"},schemaLookupStrategy:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}}},anypointmq:{ServerBinding:{$visitor:gh},ChannelBinding:{$visitor:rh,fixedFields:{destination:{$ref:"#/visitors/value"},destinationType:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{$visitor:mh},MessageBinding:{$visitor:ch,fixedFields:{headers:tu,bindingVersion:{$ref:"#/visitors/value"}}}},amqp:{ServerBinding:{$visitor:Nm},ChannelBinding:{$visitor:Om,fixedFields:{is:{$ref:"#/visitors/value"},exchange:{$ref:"#/visitors/value"},queue:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{$visitor:Im,fixedFields:{expiration:{$ref:"#/visitors/value"},userId:{$ref:"#/visitors/value"},cc:{$ref:"#/visitors/value"},priority:{$ref:"#/visitors/value"},deliveryMode:{$ref:"#/visitors/value"},mandatory:{$ref:"#/visitors/value"},bcc:{$ref:"#/visitors/value"},replyTo:{$ref:"#/visitors/value"},timestamp:{$ref:"#/visitors/value"},ack:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{$visitor:Am,fixedFields:{contentEncoding:{$ref:"#/visitors/value"},messageType:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}}},amqp1:{ServerBinding:{$visitor:eh},ChannelBinding:{$visitor:Lm},OperationBinding:{$visitor:Km},MessageBinding:{$visitor:Jm}},mqtt:{ServerBinding:{$visitor:y_,fixedFields:{clientId:{$ref:"#/visitors/value"},cleanSession:{$ref:"#/visitors/value"},lastWill:{$ref:"#/visitors/value"},keepAlive:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{$visitor:c_},OperationBinding:{$visitor:g_,fixedFields:{qos:{$ref:"#/visitors/value"},retain:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{$visitor:m_,fixedFields:{bindingVersion:{$ref:"#/visitors/value"}}}},mqtt5:{ServerBinding:{$visitor:F_},ChannelBinding:{$visitor:S_},OperationBinding:{$visitor:$_},MessageBinding:{$visitor:B_}},nats:{ServerBinding:{$visitor:Y_},ChannelBinding:{$visitor:V_},OperationBinding:{$visitor:z_,fixedFields:{queue:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{$visitor:W_}},pulsar:{ServerBinding:{$visitor:pg,fixedFields:{tenant:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{$visitor:sg,fixedFields:{namespace:{$ref:"#/visitors/value"},persistence:{$ref:"#/visitors/value"},compaction:{$ref:"#/visitors/value"},"geo-replication":{$ref:"#/visitors/value"},retention:{$ref:"#/visitors/value"},ttl:{$ref:"#/visitors/value"},deduplication:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{$visitor:lg},MessageBinding:{$visitor:og}},jms:{ServerBinding:{$visitor:Op},ChannelBinding:{$visitor:pp},OperationBinding:{$visitor:Ep},MessageBinding:{$visitor:bp}},sns:{ServerBinding:{$visitor:Jg},ChannelBinding:{$visitor:Ig},OperationBinding:{$visitor:Lg},MessageBinding:{$visitor:Ng}},solace:{ServerBinding:{$visitor:uf,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},msgVpn:{$ref:"#/visitors/value"}}},ChannelBinding:{$visitor:Kg},OperationBinding:{$visitor:rf,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},destinations:{$ref:"#/visitors/value"}}},MessageBinding:{$visitor:ef}},sqs:{ServerBinding:{$visitor:jf},ChannelBinding:{$visitor:hf},OperationBinding:{$visitor:wf},MessageBinding:{$visitor:ff}},stomp:{ServerBinding:{$visitor:Df},ChannelBinding:{$visitor:Pf},OperationBinding:{$visitor:kf},MessageBinding:{$visitor:Cf}},redis:{ServerBinding:{$visitor:Ag},ChannelBinding:{$visitor:bg},OperationBinding:{$visitor:Og},MessageBinding:{$visitor:Eg}},mercure:{ServerBinding:{$visitor:r_},ChannelBinding:{$visitor:Jp},OperationBinding:{$visitor:e_},MessageBinding:{$visitor:Kp}},googlepubsub:{ServerBinding:{$visitor:zh},ChannelBinding:{$visitor:Fh,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},labels:{$ref:"#/visitors/value"},messageRetentionDuration:{$ref:"#/visitors/value"},messageStoragePolicy:{$ref:"#/visitors/value"},schemaSettings:{$ref:"#/visitors/value"},topic:{$ref:"#/visitors/value"}}},OperationBinding:{$visitor:Wh},MessageBinding:{$visitor:Vh,fixedFields:{bindingVersion:{$ref:"#/visitors/value"},attributes:{$ref:"#/visitors/value"},orderingKey:{$ref:"#/visitors/value"},schema:{$ref:"#/visitors/value"}}}},ibmmq:{ServerBinding:{$visitor:lp,fixedFields:{groupId:{$ref:"#/visitors/value"},ccdtQueueManagerName:{$ref:"#/visitors/value"},cipherSpec:{$ref:"#/visitors/value"},multiEndpointServer:{$ref:"#/visitors/value"},heartBeatInterval:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},ChannelBinding:{$visitor:Yh,fixedFields:{destinationType:{$ref:"#/visitors/value"},queue:{$ref:"#/visitors/value"},topic:{$ref:"#/visitors/value"},maxMsgLength:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},MessageBinding:{$visitor:sp,fixedFields:{type:{$ref:"#/visitors/value"},headers:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},expiry:{$ref:"#/visitors/value"},bindingVersion:{$ref:"#/visitors/value"}}},OperationBinding:{$visitor:op}}}},extension:{$visitor:yo}}}},ab=e=>{if(qt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},cb={AsyncApi2Element:["content"],AsyncApiVersionElement:[],ChannelBindingsElement:["content"],ChannelItemElement:["content"],ChannelsElement:["content"],ComponentsElement:["content"],ContactElement:["content"],CorrelationIDElement:["content"],DefaultContentType:[],ExternalDocumentationElement:["content"],InfoElement:["content"],LicenseElement:["content"],MessageElement:["content"],MessageBindingsElement:["content"],MessageTraitElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OperationElement:["content"],OperationBindingsElement:["content"],OperationTraitElement:["content"],ParameterElement:["content"],ParametersElement:["content"],ReferenceElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerBindingsElement:["content"],ServersElement:["content"],ServerVariableElement:["content"],TagElement:["content"],TagsElement:["content"],AmqpChannelBindingElement:["content"],AmqpMessageBindingElement:["content"],AmqpOperationBindingElement:["content"],AmqpServerBindingElement:["content"],Amqp1ChannelBindingElement:["content"],Amqp1MessageBindingElement:["content"],Amqp1OperationBindingElement:["content"],Amqp1ServerBindingElement:["content"],AnypointmqChannelBindingElement:["content"],AnypointmqMessageBindingElement:["content"],AnypointmqOperationBindingElement:["content"],AnypointmqServerBindingElement:["content"],GooglepubsubChannelBindingElement:["content"],GooglepubsubMessageBindingElement:["content"],GooglepubsubOperationBindingElement:["content"],GooglepubsubServerBindingElement:["content"],HttpChannelBindingElement:["content"],HttpMessageBindingElement:["content"],HttpOperationBindingElement:["content"],HttpServerBindingElement:["content"],IbmmqChannelBindingElement:["content"],IbmmqMessageBindingElement:["content"],IbmmqChannelOperationElement:["content"],IbmmqServerBindingElement:["content"],JmsChannelBindingElement:["content"],JmsMessageBindingElement:["content"],JmsOperationBindingElement:["content"],JmsServerBindingElement:["content"],KafkaChannelBindingElement:["content"],KafkaMessageBindingElement:["content"],KafkaOperationBindingElement:["content"],KafkaServerBindingElement:["content"],MercureChannelBindingElement:["content"],MercureMessageBindingElement:["content"],MercureOperationBindingElement:["content"],MercureServerBindingElement:["content"],MqttChannelBindingElement:["content"],MqttMessageBindingElement:["content"],MqttOperationBindingElement:["content"],MqttServerBindingElement:["content"],Mqtt5ChannelBindingElement:["content"],Mqtt5MessageBindingElement:["content"],Mqtt5OperationBindingElement:["content"],Mqtt5ServerBindingElement:["content"],NatsChannelBindingElement:["content"],NatsMessageBindingElement:["content"],NatsOperationBindingElement:["content"],NatsServerBindingElement:["content"],PulsarChannelBindingElement:["content"],PulsarMessageBindingElement:["content"],PulsarOperationBindingElement:["content"],PulsarServerBindingElement:["content"],RedisChannelBindingElement:["content"],RedisMessageBindingElement:["content"],RedisOperationBindingElement:["content"],RedisServerBindingElement:["content"],SnsChannelBindingElement:["content"],SnsMessageBindingElement:["content"],SnsOperationBindingElement:["content"],SnsServerBindingElement:["content"],SolaceChannelBindingElement:["content"],SolaceMessageBindingElement:["content"],SolaceOperationBindingElement:["content"],SolaceServerBindingElement:["content"],SqsChannelBindingElement:["content"],SqsMessageBindingElement:["content"],SqsOperationBindingElement:["content"],SqsServerBindingElement:["content"],StompChannelBindingElement:["content"],StompMessageBindingElement:["content"],StompOperationBindingElement:["content"],StompServerBindingElement:["content"],WebSocketChannelBindingElement:["content"],WebSocketMessageBindingElement:["content"],WebSocketOperationBindingElement:["content"],WebSocketServerBindingElement:["content"],...As},ub={namespace:e=>{const{base:t}=e;return t.register("asyncApi2",Po),t.register("asyncApiVersion",Co),t.register("channelBindings",ja),t.register("channelItem",Ma),t.register("channels",Pa),t.register("components",Ta),t.register("contact",Jo),t.register("correlationID",Ko),t.register("defaultContentType",ea),t.register("externalDocumentation",Ou),t.register("identifier",ko),t.register("info",Do),t.register("license",ra),t.register("message",Jd),t.register("messageBindings",vd),t.register("messageExample",xd),t.register("messageTrait",Md),t.register("oAuthFlow",ma),t.register("oAuthFlows",ca),t.register("operation",Ca),t.register("operationBindings",lm),t.register("operationTrait",pm),t.register("parameter",Ra),t.register("parameters",ka),t.register("reference",qa),t.register("schema",Ga),t.register("securityRequirement",Za),t.register("securityScheme",Wc),t.register("server",Xa),t.register("serverBindings",Qa),t.register("servers",xa),t.register("serverVariable",tc),t.register("tag",sd),t.register("tags",Yl),t.register("amqpChannelBinding",Sm),t.register("amqpMessageBinding",Bm),t.register("amqpOperationBinding",$m),t.register("amqpServerBinding",Fm),t.register("amqp1ChannelBinding",Vm),t.register("amqp1MessageBinding",Wm),t.register("amqp1OperationBinding",zm),t.register("amqp1ServerBinding",Ym),t.register("anypointmqChannelBinding",sh),t.register("anypointmqMessageBinding",oh),t.register("anypointmqOperationBinding",lh),t.register("anypointmqServerBinding",ph),t.register("googlepubsubChannelBinding",Ih),t.register("googlepubsubMessageBinding",Nh),t.register("googlepubsubOperationBinding",Lh),t.register("googlepubsubServerBinding",Jh),t.register("httpChannelBinding",bh),t.register("httpMessageBinding",Eh),t.register("httpOperationBinding",Oh),t.register("httpServerBinding",Ah),t.register("ibmmqChannelBinding",Kh),t.register("ibmmqMessageBinding",ep),t.register("ibmmqOperationBinding",rp),t.register("ibmmqServerBinding",cp),t.register("jmsChannelBinding",mp),t.register("jmsMessageBinding",gp),t.register("jmsOperationBinding",yp),t.register("jmsServerBinding",Sp),t.register("kafkaChannelBinding",Bp),t.register("kafkaMessageBinding",$p),t.register("kafkaOperationBinding",Fp),t.register("kafkaServerBinding",Vp),t.register("mercureChannelBinding",Wp),t.register("mercureMessageBinding",zp),t.register("mercureOperationBinding",Yp),t.register("mercureServerBinding",s_),t.register("mqttChannelBinding",o_),t.register("mqttMessageBinding",l_),t.register("mqttOperationBinding",p_),t.register("mqttServerBinding",b_),t.register("mqtt5ChannelBinding",E_),t.register("mqtt5MessageBinding",O_),t.register("mqtt5OperationBinding",A_),t.register("mqtt5ServerBinding",I_),t.register("natsChannelBinding",N_),t.register("natsMessageBinding",L_),t.register("natsOperationBinding",J_),t.register("natsServerBinding",K_),t.register("pulsarChannelBinding",eg),t.register("pulsarMessageBinding",rg),t.register("pulsarOperationBinding",cg),t.register("pulsarServerBinding",mg),t.register("redisChannelBinding",gg),t.register("redisMessageBinding",yg),t.register("redisOperationBinding",Sg),t.register("redisServerBinding",Bg),t.register("snsChannelBinding",$g),t.register("snsMessageBinding",Fg),t.register("snsOperationBinding",Vg),t.register("snsServerBinding",Wg),t.register("solaceChannelBinding",zg),t.register("solaceMessageBinding",Yg),t.register("solaceOperationBinding",sf),t.register("solaceServerBinding",af),t.register("sqsChannelBinding",df),t.register("sqsMessageBinding",_f),t.register("sqsOperationBinding",vf),t.register("sqsServerBinding",xf),t.register("stompChannelBinding",Mf),t.register("stompMessageBinding",Tf),t.register("stompOperationBinding",Rf),t.register("stompServerBinding",qf),t.register("webSocketChannelBinding",Uf),t.register("webSocketMessageBinding",Gf),t.register("webSocketOperationBinding",Xf),t.register("webSocketServerBinding",tb),t}},lb=()=>{const e=it(ub);return{predicates:{...r,isStringElement:Vt},namespace:e}},db=(e,{specPath:t=["visitors","document","objects","AsyncApi","$visitor"],plugins:s=[]}={})=>{const n=(0,ie.e)(e),r=ws(ob),i=new(ms(t,r))({specObj:r});return Ts(n,i),Js(i.element,s,{toolboxCreator:lb,visitorOptions:{keyMap:cb,nodeTypeGetter:ab}})},mb=e=>(t,s={})=>db(t,{...s,specPath:e});Po.refract=mb(["visitors","document","objects","AsyncApi","$visitor"]),Co.refract=mb(["visitors","document","objects","AsyncApiVersion","$visitor"]),ja.refract=mb(["visitors","document","objects","ChannelBindings","$visitor"]),Ma.refract=mb(["visitors","document","objects","ChannelItem","$visitor"]),Pa.refract=mb(["visitors","document","objects","Channels","$visitor"]),Ta.refract=mb(["visitors","document","objects","Components","$visitor"]),Jo.refract=mb(["visitors","document","objects","Contact","$visitor"]),Ko.refract=mb(["visitors","document","objects","CorrelationID","$visitor"]),ea.refract=mb(["visitors","document","objects","DefaultContentType","$visitor"]),Ou.refract=mb(["visitors","document","objects","ExternalDocumentation","$visitor"]),ko.refract=mb(["visitors","document","objects","Identifier","$visitor"]),Do.refract=mb(["visitors","document","objects","Info","$visitor"]),ra.refract=mb(["visitors","document","objects","License","$visitor"]),Jd.refract=mb(["visitors","document","objects","Message","$visitor"]),vd.refract=mb(["visitors","document","objects","MessageBindings","$visitor"]),xd.refract=mb(["visitors","document","objects","MessageExample","$visitor"]),Md.refract=mb(["visitors","document","objects","MessageTrait","$visitor"]),ma.refract=mb(["visitors","document","objects","OAuthFlow","$visitor"]),ca.refract=mb(["visitors","document","objects","OAuthFlows","$visitor"]),Ca.refract=mb(["visitors","document","objects","Operation","$visitor"]),lm.refract=mb(["visitors","document","objects","OperationBindings","$visitor"]),pm.refract=mb(["visitors","document","objects","OperationTrait","$visitor"]),Ra.refract=mb(["visitors","document","objects","Parameter","$visitor"]),ka.refract=mb(["visitors","document","objects","Parameters","$visitor"]),qa.refract=mb(["visitors","document","objects","Reference","$visitor"]),Ga.refract=mb(["visitors","document","objects","Schema","$visitor"]),Za.refract=mb(["visitors","document","objects","SecurityRequirement","$visitor"]),Wc.refract=mb(["visitors","document","objects","SecurityScheme","$visitor"]),Xa.refract=mb(["visitors","document","objects","Server","$visitor"]),Qa.refract=mb(["visitors","document","objects","ServerBindings","$visitor"]),xa.refract=mb(["visitors","document","objects","Servers","$visitor"]),tc.refract=mb(["visitors","document","objects","ServerVariable","$visitor"]),sd.refract=mb(["visitors","document","objects","Tag","$visitor"]),Yl.refract=mb(["visitors","document","objects","Tags","$visitor"]),Sm.refract=mb(["visitors","document","objects","bindings","amqp","ChannelBinding","$visitor"]),Bm.refract=mb(["visitors","document","objects","bindings","amqp","MessageBinding","$visitor"]),$m.refract=mb(["visitors","document","objects","bindings","amqp","OperationBinding","$visitor"]),Fm.refract=mb(["visitors","document","objects","bindings","amqp","ServerBinding","$visitor"]),Vm.refract=mb(["visitors","document","objects","bindings","amqp1","ChannelBinding","$visitor"]),Wm.refract=mb(["visitors","document","objects","bindings","amqp1","MessageBinding","$visitor"]),zm.refract=mb(["visitors","document","objects","bindings","amqp1","OperationBinding","$visitor"]),Ym.refract=mb(["visitors","document","objects","bindings","amqp1","ServerBinding","$visitor"]),bh.refract=mb(["visitors","document","objects","bindings","http","ChannelBinding","$visitor"]),Eh.refract=mb(["visitors","document","objects","bindings","http","MessageBinding","$visitor"]),Oh.refract=mb(["visitors","document","objects","bindings","http","OperationBinding","$visitor"]),Ah.refract=mb(["visitors","document","objects","bindings","http","ServerBinding","$visitor"]),Ih.refract=mb(["visitors","document","objects","bindings","googlepubsub","ChannelBinding","$visitor"]),Nh.refract=mb(["visitors","document","objects","bindings","googlepubsub","MessageBinding","$visitor"]),Lh.refract=mb(["visitors","document","objects","bindings","googlepubsub","OperationBinding","$visitor"]),Jh.refract=mb(["visitors","document","objects","bindings","googlepubsub","ServerBinding","$visitor"]),Kh.refract=mb(["visitors","document","objects","bindings","ibmmq","ChannelBinding","$visitor"]),ep.refract=mb(["visitors","document","objects","bindings","ibmmq","MessageBinding","$visitor"]),rp.refract=mb(["visitors","document","objects","bindings","ibmmq","OperationBinding","$visitor"]),cp.refract=mb(["visitors","document","objects","bindings","ibmmq","ServerBinding","$visitor"]),mp.refract=mb(["visitors","document","objects","bindings","jms","ChannelBinding","$visitor"]),gp.refract=mb(["visitors","document","objects","bindings","jms","MessageBinding","$visitor"]),yp.refract=mb(["visitors","document","objects","bindings","jms","OperationBinding","$visitor"]),Sp.refract=mb(["visitors","document","objects","bindings","jms","ServerBinding","$visitor"]),Bp.refract=mb(["visitors","document","objects","bindings","kafka","ChannelBinding","$visitor"]),$p.refract=mb(["visitors","document","objects","bindings","kafka","MessageBinding","$visitor"]),Fp.refract=mb(["visitors","document","objects","bindings","kafka","OperationBinding","$visitor"]),Vp.refract=mb(["visitors","document","objects","bindings","kafka","ServerBinding","$visitor"]),sh.refract=mb(["visitors","document","objects","bindings","anypointmq","ChannelBinding","$visitor"]),oh.refract=mb(["visitors","document","objects","bindings","anypointmq","MessageBinding","$visitor"]),lh.refract=mb(["visitors","document","objects","bindings","anypointmq","OperationBinding","$visitor"]),ph.refract=mb(["visitors","document","objects","bindings","anypointmq","ServerBinding","$visitor"]),Wp.refract=mb(["visitors","document","objects","bindings","mercure","ChannelBinding","$visitor"]),zp.refract=mb(["visitors","document","objects","bindings","mercure","MessageBinding","$visitor"]),Yp.refract=mb(["visitors","document","objects","bindings","mercure","OperationBinding","$visitor"]),s_.refract=mb(["visitors","document","objects","bindings","mercure","ServerBinding","$visitor"]),o_.refract=mb(["visitors","document","objects","bindings","mqtt","ChannelBinding","$visitor"]),l_.refract=mb(["visitors","document","objects","bindings","mqtt","MessageBinding","$visitor"]),p_.refract=mb(["visitors","document","objects","bindings","mqtt","OperationBinding","$visitor"]),b_.refract=mb(["visitors","document","objects","bindings","mqtt","ServerBinding","$visitor"]),E_.refract=mb(["visitors","document","objects","bindings","mqtt5","ChannelBinding","$visitor"]),O_.refract=mb(["visitors","document","objects","bindings","mqtt5","MessageBinding","$visitor"]),A_.refract=mb(["visitors","document","objects","bindings","mqtt5","OperationBinding","$visitor"]),I_.refract=mb(["visitors","document","objects","bindings","mqtt5","ServerBinding","$visitor"]),N_.refract=mb(["visitors","document","objects","bindings","nats","ChannelBinding","$visitor"]),L_.refract=mb(["visitors","document","objects","bindings","nats","MessageBinding","$visitor"]),J_.refract=mb(["visitors","document","objects","bindings","nats","OperationBinding","$visitor"]),K_.refract=mb(["visitors","document","objects","bindings","nats","ServerBinding","$visitor"]),eg.refract=mb(["visitors","document","objects","bindings","pulsar","ChannelBinding","$visitor"]),rg.refract=mb(["visitors","document","objects","bindings","pulsar","MessageBinding","$visitor"]),cg.refract=mb(["visitors","document","objects","bindings","pulsar","OperationBinding","$visitor"]),mg.refract=mb(["visitors","document","objects","bindings","pulsar","ServerBinding","$visitor"]),gg.refract=mb(["visitors","document","objects","bindings","redis","ChannelBinding","$visitor"]),yg.refract=mb(["visitors","document","objects","bindings","redis","MessageBinding","$visitor"]),Sg.refract=mb(["visitors","document","objects","bindings","redis","OperationBinding","$visitor"]),Bg.refract=mb(["visitors","document","objects","bindings","redis","ServerBinding","$visitor"]),$g.refract=mb(["visitors","document","objects","bindings","sns","ChannelBinding","$visitor"]),Fg.refract=mb(["visitors","document","objects","bindings","sns","MessageBinding","$visitor"]),Vg.refract=mb(["visitors","document","objects","bindings","sns","OperationBinding","$visitor"]),Wg.refract=mb(["visitors","document","objects","bindings","sns","ServerBinding","$visitor"]),zg.refract=mb(["visitors","document","objects","bindings","solace","ChannelBinding","$visitor"]),Yg.refract=mb(["visitors","document","objects","bindings","solace","MessageBinding","$visitor"]),sf.refract=mb(["visitors","document","objects","bindings","solace","OperationBinding","$visitor"]),af.refract=mb(["visitors","document","objects","bindings","solace","ServerBinding","$visitor"]),df.refract=mb(["visitors","document","objects","bindings","sqs","ChannelBinding","$visitor"]),_f.refract=mb(["visitors","document","objects","bindings","sqs","MessageBinding","$visitor"]),vf.refract=mb(["visitors","document","objects","bindings","sqs","OperationBinding","$visitor"]),xf.refract=mb(["visitors","document","objects","bindings","sqs","ServerBinding","$visitor"]),Mf.refract=mb(["visitors","document","objects","bindings","stomp","ChannelBinding","$visitor"]),Tf.refract=mb(["visitors","document","objects","bindings","stomp","MessageBinding","$visitor"]),Rf.refract=mb(["visitors","document","objects","bindings","stomp","OperationBinding","$visitor"]),qf.refract=mb(["visitors","document","objects","bindings","stomp","ServerBinding","$visitor"]),Uf.refract=mb(["visitors","document","objects","bindings","ws","ChannelBinding","$visitor"]),Gf.refract=mb(["visitors","document","objects","bindings","ws","MessageBinding","$visitor"]),Xf.refract=mb(["visitors","document","objects","bindings","ws","OperationBinding","$visitor"]),tb.refract=mb(["visitors","document","objects","bindings","ws","ServerBinding","$visitor"]);const hb=new Ud(...Wd.filterByFormat("generic"),...Wd.filterByFormat("json")),pb=/"asyncapi"\s*:\s*"(?<version_json>2\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))"/,_b=async e=>pb.test(e)&&await(async e=>{if(!qn.test(e))return!1;try{const t=await vt(e),s="ERROR"!==t.rootNode.type;return t.delete(),s}catch{return!1}})(e),gb=async(e,t={})=>{const s=p({},"refractorOpts",t),n=g(["refractorOpts"],t),r=await(async(e,{sourceMap:t=!1,syntacticAnalysis:s="direct"}={})=>{const n=await vt(e);let r;return r="indirect"===s?Nn(n,{sourceMap:t}):sn(n,{sourceMap:t}),n.delete(),r})(e,n),{result:i}=r;if(re(i)){const e=Po.refract(i,s);e.classes.push("result"),r.replaceResult(e)}return r},fb=it(ub)})(),__webpack_exports__})()));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("fs"),require("path")):"function"==typeof define&&define.amd?define(["exports","fs","path"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).apidomParserAdapterAsyncapiJson2={},e.fs,e.path)}(this,(function(exports,require$$0,require$$1){"use strict";var F=function(){return!1},T=function(){return!0};function _isPlaceholder(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function _curry1(e){return function t(r){return 0===arguments.length||_isPlaceholder(r)?t:e.apply(this,arguments)}}function _curry2(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return _isPlaceholder(r)?t:_curry1((function(t){return e(r,t)}));default:return _isPlaceholder(r)&&_isPlaceholder(s)?t:_isPlaceholder(r)?_curry1((function(t){return e(t,s)})):_isPlaceholder(s)?_curry1((function(t){return e(r,t)})):e(r,s)}}}function _concat(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}function _arity(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,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,a){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,a,o){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,a,o,u){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,a,o,u,c){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,a,o,u,c,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 _curryN(e,t,r){return function(){for(var s=[],n=0,i=e,a=0,o=!1;a<t.length||n<arguments.length;){var u;a<t.length&&(!_isPlaceholder(t[a])||n>=arguments.length)?u=t[a]:(u=arguments[n],n+=1),s[a]=u,_isPlaceholder(u)?o=!0:i-=1,a+=1}return!o&&i<=0?r.apply(this,s):_arity(Math.max(0,i),_curryN(e,s,r))}}var curryN=_curry2((function(e,t){return 1===e?_curry1(t):_arity(e,_curryN(e,[],t))}));function _curry3(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return _isPlaceholder(r)?t:_curry2((function(t,s){return e(r,t,s)}));case 2:return _isPlaceholder(r)&&_isPlaceholder(s)?t:_isPlaceholder(r)?_curry2((function(t,r){return e(t,s,r)})):_isPlaceholder(s)?_curry2((function(t,s){return e(r,t,s)})):_curry1((function(t){return e(r,s,t)}));default:return _isPlaceholder(r)&&_isPlaceholder(s)&&_isPlaceholder(n)?t:_isPlaceholder(r)&&_isPlaceholder(s)?_curry2((function(t,r){return e(t,r,n)})):_isPlaceholder(r)&&_isPlaceholder(n)?_curry2((function(t,r){return e(t,s,r)})):_isPlaceholder(s)&&_isPlaceholder(n)?_curry2((function(t,s){return e(r,t,s)})):_isPlaceholder(r)?_curry1((function(t){return e(t,s,n)})):_isPlaceholder(s)?_curry1((function(t){return e(r,t,n)})):_isPlaceholder(n)?_curry1((function(t){return e(r,s,t)})):e(r,s,n)}}}const _isArray=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function _isTransformer(e){return null!=e&&"function"==typeof e["@@transducer/step"]}function _dispatchable(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!_isArray(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(_isTransformer(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function _reduced(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var XAll=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=_xfBase.init,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=_reduced(this.xf["@@transducer/step"](e,!1))),e},e}();function _xall(e){return function(t){return new XAll(e,t)}}var all=_curry2(_dispatchable(["all"],_xall,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function _arrayFromIterator(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function _includesWith(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function _functionName(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}function _has(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function _objectIs$1(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}const _objectIs="function"==typeof Object.is?Object.is:_objectIs$1;var toString$2=Object.prototype.toString,_isArguments=function(){return"[object Arguments]"===toString$2.call(arguments)?function(e){return"[object Arguments]"===toString$2.call(e)}:function(e){return _has("callee",e)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},keys="function"!=typeof Object.keys||hasArgsEnumBug?_curry1((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=hasArgsEnumBug&&_isArguments(e);for(t in e)!_has(t,e)||n&&"length"===t||(s[s.length]=t);if(hasEnumBug)for(r=nonEnumerableProps.length-1;r>=0;)_has(t=nonEnumerableProps[r],e)&&!contains(s,t)&&(s[s.length]=t),r-=1;return s})):_curry1((function(e){return Object(e)!==e?[]:Object.keys(e)})),type=_curry1((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function _uniqContentEquals(e,t,r,s){var n=_arrayFromIterator(e);function i(e,t){return _equals(e,t,r.slice(),s.slice())}return!_includesWith((function(e,t){return!_includesWith(i,t,e)}),_arrayFromIterator(t),n)}function _equals(e,t,r,s){if(_objectIs(e,t))return!0;var n=type(e);if(n!==type(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(n){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===_functionName(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!_objectIs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!_objectIs(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 i=r.length-1;i>=0;){if(r[i]===e)return s[i]===t;i-=1}switch(n){case"Map":return e.size===t.size&&_uniqContentEquals(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&_uniqContentEquals(e.values(),t.values(),r.concat([e]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=keys(e);if(a.length!==keys(t).length)return!1;var o=r.concat([e]),u=s.concat([t]);for(i=a.length-1;i>=0;){var c=a[i];if(!_has(c,t)||!_equals(t[c],e[c],o,u))return!1;i-=1}return!0}var equals=_curry2((function(e,t){return _equals(e,t,[],[])}));function _indexOf(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)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(equals(e[r],t))return r;r+=1}return-1}function _includes(e,t){return _indexOf(t,e,0)>=0}function _map(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function _quote(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 pad=function(e){return(e<10?"0":"")+e},_toISOString="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+pad(e.getUTCMonth()+1)+"-"+pad(e.getUTCDate())+"T"+pad(e.getUTCHours())+":"+pad(e.getUTCMinutes())+":"+pad(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(e){return function(){return!e.apply(this,arguments)}}function _arrayReduce(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}function _filter(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}function _isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}var XFilter=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function _xfilter(e){return function(t){return new XFilter(e,t)}}var filter=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,(function(e,t){return _isObject(t)?_arrayReduce((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},keys(t)):_filter(e,t)}))),reject=_curry2((function(e,t){return filter(_complement(e),t)}));function _toString(e,t){var r=function(r){var s=t.concat([e]);return _includes(r,s)?"<Circular>":_toString(r,s)},s=function(e,t){return _map((function(t){return _quote(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+_map(r,e).join(", ")+"))";case"[object Array]":return"["+_map(r,e).concat(s(e,reject((function(e){return/^\d+$/.test(e)}),keys(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):_quote(_toISOString(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())+")":_quote(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,keys(e)).join(", ")+"}"}}var toString$1=_curry1((function(e){return _toString(e,[])})),max=_curry2((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=toString$1(e),a=r(i,toString$1(t));return void 0!==a&&a===i?e:t})),XMap=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),_xmap=function(e){return function(t){return new XMap(e,t)}},map=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return curryN(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return _arrayReduce((function(r,s){return r[s]=e(t[s]),r}),{},keys(t));default:return _map(e,t)}})));const _isInteger=Number.isInteger||function(e){return(e|0)===e};function _isString(e){return"[object String]"===Object.prototype.toString.call(e)}function _nth(e,t){var r=e<0?t.length+e:e;return _isString(t)?t.charAt(r):t[r]}var prop=_curry2((function(e,t){if(null!=t)return _isInteger(e)?_nth(e,t):t[e]})),pluck=_curry2((function(e,t){return map(prop(e),t)})),_isArrayLike=_curry1((function(e){return!!_isArray(e)||!!e&&("object"==typeof e&&(!_isString(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),symIterator="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function _createReduce(e,t,r){return function(s,n,i){if(_isArrayLike(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[symIterator])return r(s,n,i[symIterator]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function _xArrayReduce(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}var bind=_curry2((function(e,t){return _arity(e.length,(function(){return e.apply(t,arguments)}))}));function _xIterableReduce(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function _xMethodReduce(e,t,r,s){return e["@@transducer/result"](r[s](bind(e["@@transducer/step"],e),t))}var _xReduce=_createReduce(_xArrayReduce,_xMethodReduce,_xIterableReduce),XWrap=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}();function _xwrap(e){return new XWrap(e)}var reduce=_curry3((function(e,t,r){return _xReduce("function"==typeof e?_xwrap(e):e,t,r)})),allPass=_curry1((function(e){return curryN(reduce(max,0,pluck("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))})),always=_curry1((function(e){return function(){return e}})),and=_curry2((function(e,t){return e&&t})),anyPass=_curry1((function(e){return curryN(reduce(max,0,pluck("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 _iterableReduce(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function _methodReduce(e,t,r,s){return r[s](e,t)}var _reduce=_createReduce(_arrayReduce,_methodReduce,_iterableReduce),ap=_curry2((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))}:_reduce((function(e,r){return _concat(e,map(r,t))}),[],e)})),apply=_curry2((function(e,t){return e.apply(this,t)})),curry=_curry1((function(e){return curryN(e.length,e)}));function _assoc(e,t,r){if(_isInteger(e)&&_isArray(r)){var s=[].concat(r);return s[e]=t,s}var n={};for(var i in r)n[i]=r[i];return n[e]=t,n}var isNil=_curry1((function(e){return null==e})),assocPath=_curry3((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!isNil(s)&&_has(n,s)&&"object"==typeof s[n]?s[n]:_isInteger(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return _assoc(n,r,s)})),assoc=_curry3((function(e,t,r){return assocPath([e],t,r)}));function _isFunction(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var liftN=_curry2((function(e,t){var r=curryN(e,t);return curryN(e,(function(){return _arrayReduce(ap,map(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),lift=_curry1((function(e){return liftN(e.length,e)})),both=_curry2((function(e,t){return _isFunction(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:lift(and)(e,t)})),comparator=_curry1((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}})),not=_curry1((function(e){return!e})),complement=lift(not);function _pipe(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function _checkForMethod(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return _isArray(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}var slice=_curry3(_checkForMethod("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)}))),tail=_curry1(_checkForMethod("tail",slice(1,1/0)));function pipe(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,reduce(_pipe,arguments[0],tail(arguments)))}var head=_curry1((function(e){return _nth(0,e)})),defaultTo=_curry2((function(e,t){return null==t||t!=t?e:t})),remove=_curry3((function(e,t,r){var s=Array.prototype.slice.call(r,0);return s.splice(e,t),s}));function _dissoc(e,t){if(null==t)return t;if(_isInteger(e)&&_isArray(t))return remove(e,1,t);var r={};for(var s in t)r[s]=t[s];return delete r[e],r}function _shallowCloneObject(e,t){if(_isInteger(e)&&_isArray(t))return[].concat(t);var r={};for(var s in t)r[s]=t[s];return r}var dissocPath=_curry2((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return _dissoc(t[0],r);default:var s=t[0],n=Array.prototype.slice.call(t,1);return null==r[s]?_shallowCloneObject(s,r):assoc(s,e(n,r[s]),r)}})),last=_curry1((function(e){return _nth(-1,e)})),XDropWhile=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,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 _xdropWhile(e){return function(t){return new XDropWhile(e,t)}}var dropWhile=_curry2(_dispatchable(["dropWhile"],_xdropWhile,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return slice(r,1/0,t)}))),or=_curry2((function(e,t){return e||t})),either=_curry2((function(e,t){return _isFunction(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:lift(or)(e,t)}));function _isTypedArray(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}var empty=_curry1((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():_isArray(e)?[]:_isString(e)?"":_isObject(e)?{}:_isArguments(e)?function(){return arguments}():_isTypedArray(e)?e.constructor.from(""):void 0})),flip=_curry1((function(e){return curryN(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))})),hasPath=_curry2((function(e,t){if(0===e.length||isNil(t))return!1;for(var r=t,s=0;s<e.length;){if(isNil(r)||!_has(e[s],r))return!1;r=r[e[s]],s+=1}return!0})),has=_curry2((function(e,t){return hasPath([e],t)})),identical=function(e,t){switch(arguments.length){case 0:return identical;case 1:return function t(r){return 0===arguments.length?t:_objectIs(e,r)};default:return _objectIs(e,t)}},ifElse=_curry3((function(e,t,r){return curryN(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))})),includes=_curry2(_includes),init=slice(0,-1),invoker=_curry2((function(e,t){return curryN(e+1,(function(){var r=arguments[e];if(null!=r&&_isFunction(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(toString$1(r)+' does not have a method named "'+t+'"')}))})),isEmpty=_curry1((function(e){return null!=e&&equals(e,empty(e))})),isNotEmpty=_curry1((function(e){return!isEmpty(e)})),join=invoker(1,"join");function _path(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=_isInteger(n)?_nth(n,r):r[n]}return r}var mapObjIndexed=_curry2((function(e,t){return _arrayReduce((function(r,s){return r[s]=e(t[s],s,t),r}),{},keys(t))})),mergeWithKey=_curry3((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})_has(s,t)&&(n[s]=_has(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)_has(s,r)&&!_has(s,n)&&(n[s]=r[s]);return n})),mergeDeepWithKey=_curry3((function e(t,r,s){return mergeWithKey((function(r,s,n){return _isObject(s)&&_isObject(n)?e(t,s,n):t(r,s,n)}),r,s)})),mergeDeepRight=_curry2((function(e,t){return mergeDeepWithKey((function(e,t,r){return r}),e,t)})),omit=_curry2((function(e,t){for(var r={},s={},n=0,i=e.length;n<i;)s[e[n]]=1,n+=1;for(var a in t)s.hasOwnProperty(a)||(r[a]=t[a]);return r})),path$1=_curry2(_path),pathSatisfies=_curry3((function(e,t,r){return e(_path(t,r))})),pick=_curry2((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r})),propOr=_curry3((function(e,t,r){return defaultTo(e,prop(t,r))})),propSatisfies=_curry3((function(e,t,r){return e(prop(t,r))})),reduced=_curry1(_reduced),sort=_curry2((function(e,t){return Array.prototype.slice.call(t,0).sort(e)})),split=invoker(1,"split"),stubUndefined=always(void 0),isUndefined=equals(stubUndefined()),isNotUndefined=complement(isUndefined),isNull$1=equals(null),isNotNull=complement(isNull$1),isNotNil=complement(isNil),isGeneratorFunction=curryN(1,pipe(type,identical("GeneratorFunction"))),isAsyncFunction=curryN(1,pipe(type,identical("AsyncFunction"))),isFunction=anyPass([pipe(type,identical("Function")),isGeneratorFunction,isAsyncFunction]),isArray$1=curryN(1,isFunction(Array.isArray)?Array.isArray:pipe(type,identical("Array"))),isEmptyArray=both(isArray$1,isEmpty),isNonEmptyArray=both(isArray$1,isNotEmpty),isString$1=curryN(1,pipe(type,identical("String")));function _typeof(e){return _typeof="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},_typeof(e)}var isOfTypeObject=function(e){return"object"===_typeof(e)},isObj=curryN(1,both(isNotNull,either(isOfTypeObject,isFunction))),isNotObj=complement(isObj),isNonEmptyString=allPass([isString$1,isNotObj,isNotEmpty]),isNotFunction=complement(isFunction),isObjLike=curryN(1,both(isNotNull,isOfTypeObject)),isObject$2=pipe(type,identical("Object")),isObjectConstructor=pipe(toString$1,equals(toString$1(Object))),hasObjectConstructor=pathSatisfies(both(isFunction,isObjectConstructor),["constructor"]),isPlainObj=curryN(1,(function(e){if(!isObjLike(e)||!isObject$2(e))return!1;var t=Object.getPrototypeOf(e);return!!isNull$1(t)||hasObjectConstructor(t)}));function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(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)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var byArity=comparator((function(e,t){return e.length>t.length})),getMaxArity=pipe(sort(byArity),head,prop("length")),iteratorFn=curry((function(e,t,r){var s=r.apply(void 0,_toConsumableArray(e));return isNotNil(s)?reduced(s):t})),dispatchImpl=function(e){var t=getMaxArity(e);return curryN(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return reduce(iteratorFn(r),void 0,e)}))},dispatch=ifElse(isNonEmptyArray,dispatchImpl,stubUndefined),included=flip(includes),invokeArgs=curryN(3,(function(e,t,r){var s=path$1(e,r),n=path$1(init(e),r);if(!isNotFunction(s)&&!isEmptyArray(e)){var i=bind(s,n);return apply(i,t)}})),trimCharsStart=curry((function(e,t){return pipe(split(""),dropWhile(included(e)),join(""))(t)})),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var minim={},isNull_1,hasRequiredIsNull,_freeGlobal,hasRequired_freeGlobal,_root,hasRequired_root,_Symbol,hasRequired_Symbol,_getRawTag,hasRequired_getRawTag,_objectToString,hasRequired_objectToString,_baseGetTag,hasRequired_baseGetTag,isArray_1,hasRequiredIsArray,isObjectLike_1,hasRequiredIsObjectLike,isString_1,hasRequiredIsString,isNumber_1,hasRequiredIsNumber,isBoolean_1,hasRequiredIsBoolean,isObject_1,hasRequiredIsObject$1,JSONSerialiser_1,hasRequiredJSONSerialiser,_listCacheClear,hasRequired_listCacheClear,eq_1,hasRequiredEq,_assocIndexOf,hasRequired_assocIndexOf,_listCacheDelete,hasRequired_listCacheDelete,_listCacheGet,hasRequired_listCacheGet,_listCacheHas,hasRequired_listCacheHas,_listCacheSet,hasRequired_listCacheSet,_ListCache,hasRequired_ListCache,_stackClear,hasRequired_stackClear,_stackDelete,hasRequired_stackDelete,_stackGet,hasRequired_stackGet,_stackHas,hasRequired_stackHas,isFunction_1,hasRequiredIsFunction,_coreJsData,hasRequired_coreJsData,_isMasked,hasRequired_isMasked,_toSource,hasRequired_toSource,_baseIsNative,hasRequired_baseIsNative,_getValue,hasRequired_getValue,_getNative,hasRequired_getNative,_Map,hasRequired_Map,_nativeCreate,hasRequired_nativeCreate,_hashClear,hasRequired_hashClear,_hashDelete,hasRequired_hashDelete,_hashGet,hasRequired_hashGet,_hashHas,hasRequired_hashHas,_hashSet,hasRequired_hashSet,_Hash,hasRequired_Hash,_mapCacheClear,hasRequired_mapCacheClear,_isKeyable,hasRequired_isKeyable,_getMapData,hasRequired_getMapData,_mapCacheDelete,hasRequired_mapCacheDelete,_mapCacheGet,hasRequired_mapCacheGet,_mapCacheHas,hasRequired_mapCacheHas,_mapCacheSet,hasRequired_mapCacheSet,_MapCache,hasRequired_MapCache,_stackSet,hasRequired_stackSet,_Stack,hasRequired_Stack,_setCacheAdd,hasRequired_setCacheAdd,_setCacheHas,hasRequired_setCacheHas,_SetCache,hasRequired_SetCache,_arraySome,hasRequired_arraySome,_cacheHas,hasRequired_cacheHas,_equalArrays,hasRequired_equalArrays,_Uint8Array,hasRequired_Uint8Array,_mapToArray,hasRequired_mapToArray,_setToArray,hasRequired_setToArray,_equalByTag,hasRequired_equalByTag,_arrayPush,hasRequired_arrayPush,_baseGetAllKeys,hasRequired_baseGetAllKeys,_arrayFilter,hasRequired_arrayFilter,stubArray_1,hasRequiredStubArray,_getSymbols,hasRequired_getSymbols,_baseTimes,hasRequired_baseTimes,_baseIsArguments,hasRequired_baseIsArguments,isArguments_1,hasRequiredIsArguments;function requireIsNull(){if(hasRequiredIsNull)return isNull_1;return hasRequiredIsNull=1,isNull_1=function(e){return null===e}}function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var e="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=e}function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var e=require_freeGlobal(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return _root=r}function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var e=require_root().Symbol;return _Symbol=e}function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var e=require_Symbol(),t=Object.prototype,r=t.hasOwnProperty,s=t.toString,n=e?e.toStringTag:void 0;return _getRawTag=function(e){var t=r.call(e,n),i=e[n];try{e[n]=void 0;var a=!0}catch(e){}var o=s.call(e);return a&&(t?e[n]=i:delete e[n]),o}}function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var e=Object.prototype.toString;return _objectToString=function(t){return e.call(t)}}function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var e=require_Symbol(),t=require_getRawTag(),r=require_objectToString(),s=e?e.toStringTag:void 0;return _baseGetTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?t(e):r(e)}}function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var e=Array.isArray;return isArray_1=e}function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;return hasRequiredIsObjectLike=1,isObjectLike_1=function(e){return null!=e&&"object"==typeof e}}function requireIsString(){if(hasRequiredIsString)return isString_1;hasRequiredIsString=1;var e=require_baseGetTag(),t=requireIsArray(),r=requireIsObjectLike();return isString_1=function(s){return"string"==typeof s||!t(s)&&r(s)&&"[object String]"==e(s)}}function requireIsNumber(){if(hasRequiredIsNumber)return isNumber_1;hasRequiredIsNumber=1;var e=require_baseGetTag(),t=requireIsObjectLike();return isNumber_1=function(r){return"number"==typeof r||t(r)&&"[object Number]"==e(r)}}function requireIsBoolean(){if(hasRequiredIsBoolean)return isBoolean_1;hasRequiredIsBoolean=1;var e=require_baseGetTag(),t=requireIsObjectLike();return isBoolean_1=function(r){return!0===r||!1===r||t(r)&&"[object Boolean]"==e(r)}}function requireIsObject$1(){if(hasRequiredIsObject$1)return isObject_1;return hasRequiredIsObject$1=1,isObject_1=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},isObject_1}function requireJSONSerialiser(){if(hasRequiredJSONSerialiser)return JSONSerialiser_1;hasRequiredJSONSerialiser=1;return JSONSerialiser_1=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]))}))}},JSONSerialiser_1}function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;return hasRequired_listCacheClear=1,_listCacheClear=function(){this.__data__=[],this.size=0}}function requireEq(){if(hasRequiredEq)return eq_1;return hasRequiredEq=1,eq_1=function(e,t){return e===t||e!=e&&t!=t}}function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();return _assocIndexOf=function(t,r){for(var s=t.length;s--;)if(e(t[s][0],r))return s;return-1}}function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype.splice;return _listCacheDelete=function(r){var s=this.__data__,n=e(s,r);return!(n<0)&&(n==s.length-1?s.pop():t.call(s,n,1),--this.size,!0)}}function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();return _listCacheGet=function(t){var r=this.__data__,s=e(r,t);return s<0?void 0:r[s][1]}}function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();return _listCacheHas=function(t){return e(this.__data__,t)>-1}}function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();return _listCacheSet=function(t,r){var s=this.__data__,n=e(s,t);return n<0?(++this.size,s.push([t,r])):s[n][1]=r,this}}function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),r=require_listCacheGet(),s=require_listCacheHas(),n=require_listCacheSet();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=s,i.prototype.set=n,_ListCache=i}function require_stackClear(){if(hasRequired_stackClear)return _stackClear;hasRequired_stackClear=1;var e=require_ListCache();return _stackClear=function(){this.__data__=new e,this.size=0}}function require_stackDelete(){if(hasRequired_stackDelete)return _stackDelete;return hasRequired_stackDelete=1,_stackDelete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}}function require_stackGet(){if(hasRequired_stackGet)return _stackGet;return hasRequired_stackGet=1,_stackGet=function(e){return this.__data__.get(e)}}function require_stackHas(){if(hasRequired_stackHas)return _stackHas;return hasRequired_stackHas=1,_stackHas=function(e){return this.__data__.has(e)}}function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var e=require_baseGetTag(),t=requireIsObject$1();return isFunction_1=function(r){if(!t(r))return!1;var s=e(r);return"[object Function]"==s||"[object GeneratorFunction]"==s||"[object AsyncFunction]"==s||"[object Proxy]"==s}}function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var e=require_root()["__core-js_shared__"];return _coreJsData=e}function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var e=require_coreJsData(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return _isMasked=function(e){return!!t&&t in e}}function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var e=Function.prototype.toString;return _toSource=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var e=requireIsFunction(),t=require_isMasked(),r=requireIsObject$1(),s=require_toSource(),n=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=RegExp("^"+o.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return _baseIsNative=function(i){return!(!r(i)||t(i))&&(e(i)?c:n).test(s(i))}}function require_getValue(){if(hasRequired_getValue)return _getValue;return hasRequired_getValue=1,_getValue=function(e,t){return null==e?void 0:e[t]}}function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var e=require_baseIsNative(),t=require_getValue();return _getNative=function(r,s){var n=t(r,s);return e(n)?n:void 0}}function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var e=require_getNative()(require_root(),"Map");return _Map=e}function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var e=require_getNative()(Object,"create");return _nativeCreate=e}function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var e=require_nativeCreate();return _hashClear=function(){this.__data__=e?e(null):{},this.size=0}}function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;return hasRequired_hashDelete=1,_hashDelete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var e=require_nativeCreate(),t=Object.prototype.hasOwnProperty;return _hashGet=function(r){var s=this.__data__;if(e){var n=s[r];return"__lodash_hash_undefined__"===n?void 0:n}return t.call(s,r)?s[r]:void 0}}function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var e=require_nativeCreate(),t=Object.prototype.hasOwnProperty;return _hashHas=function(r){var s=this.__data__;return e?void 0!==s[r]:t.call(s,r)}}function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var e=require_nativeCreate();return _hashSet=function(t,r){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=e&&void 0===r?"__lodash_hash_undefined__":r,this}}function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var e=require_hashClear(),t=require_hashDelete(),r=require_hashGet(),s=require_hashHas(),n=require_hashSet();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=s,i.prototype.set=n,_Hash=i}function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var e=require_Hash(),t=require_ListCache(),r=require_Map();return _mapCacheClear=function(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}}function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;return hasRequired_isKeyable=1,_isKeyable=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},_isKeyable}function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var e=require_isKeyable();return _getMapData=function(t,r){var s=t.__data__;return e(r)?s["string"==typeof r?"string":"hash"]:s.map},_getMapData}function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var e=require_getMapData();return _mapCacheDelete=function(t){var r=e(this,t).delete(t);return this.size-=r?1:0,r}}function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var e=require_getMapData();return _mapCacheGet=function(t){return e(this,t).get(t)}}function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var e=require_getMapData();return _mapCacheHas=function(t){return e(this,t).has(t)}}function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var e=require_getMapData();return _mapCacheSet=function(t,r){var s=e(this,t),n=s.size;return s.set(t,r),this.size+=s.size==n?0:1,this}}function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var e=require_mapCacheClear(),t=require_mapCacheDelete(),r=require_mapCacheGet(),s=require_mapCacheHas(),n=require_mapCacheSet();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=s,i.prototype.set=n,_MapCache=i}function require_stackSet(){if(hasRequired_stackSet)return _stackSet;hasRequired_stackSet=1;var e=require_ListCache(),t=require_Map(),r=require_MapCache();return _stackSet=function(s,n){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([s,n]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(s,n),this.size=i.size,this}}function require_Stack(){if(hasRequired_Stack)return _Stack;hasRequired_Stack=1;var e=require_ListCache(),t=require_stackClear(),r=require_stackDelete(),s=require_stackGet(),n=require_stackHas(),i=require_stackSet();function a(t){var r=this.__data__=new e(t);this.size=r.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=s,a.prototype.has=n,a.prototype.set=i,_Stack=a}function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;return _setCacheAdd=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;return hasRequired_setCacheHas=1,_setCacheHas=function(e){return this.__data__.has(e)}}function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var e=require_MapCache(),t=require_setCacheAdd(),r=require_setCacheHas();function s(t){var r=-1,s=null==t?0:t.length;for(this.__data__=new e;++r<s;)this.add(t[r])}return s.prototype.add=s.prototype.push=t,s.prototype.has=r,_SetCache=s}function require_arraySome(){if(hasRequired_arraySome)return _arraySome;return hasRequired_arraySome=1,_arraySome=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}}function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;return hasRequired_cacheHas=1,_cacheHas=function(e,t){return e.has(t)}}function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var e=require_SetCache(),t=require_arraySome(),r=require_cacheHas();return _equalArrays=function(s,n,i,a,o,u){var c=1&i,l=s.length,d=n.length;if(l!=d&&!(c&&d>l))return!1;var h=u.get(s),m=u.get(n);if(h&&m)return h==n&&m==s;var p=-1,_=!0,g=2&i?new e:void 0;for(u.set(s,n),u.set(n,s);++p<l;){var f=s[p],y=n[p];if(a)var b=c?a(y,f,p,n,s,u):a(f,y,p,s,n,u);if(void 0!==b){if(b)continue;_=!1;break}if(g){if(!t(n,(function(e,t){if(!r(g,t)&&(f===e||o(f,e,i,a,u)))return g.push(t)}))){_=!1;break}}else if(f!==y&&!o(f,y,i,a,u)){_=!1;break}}return u.delete(s),u.delete(n),_}}function require_Uint8Array(){if(hasRequired_Uint8Array)return _Uint8Array;hasRequired_Uint8Array=1;var e=require_root().Uint8Array;return _Uint8Array=e}function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;return hasRequired_mapToArray=1,_mapToArray=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r},_mapToArray}function require_setToArray(){if(hasRequired_setToArray)return _setToArray;return hasRequired_setToArray=1,_setToArray=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}}function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var e=require_Symbol(),t=require_Uint8Array(),r=requireEq(),s=require_equalArrays(),n=require_mapToArray(),i=require_setToArray(),a=e?e.prototype:void 0,o=a?a.valueOf:void 0;return _equalByTag=function(e,a,u,c,l,d,h){switch(u){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var m=n;case"[object Set]":var p=1&c;if(m||(m=i),e.size!=a.size&&!p)return!1;var _=h.get(e);if(_)return _==a;c|=2,h.set(e,a);var g=s(m(e),m(a),c,l,d,h);return h.delete(e),g;case"[object Symbol]":if(o)return o.call(e)==o.call(a)}return!1}}function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;return hasRequired_arrayPush=1,_arrayPush=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}}function require_baseGetAllKeys(){if(hasRequired_baseGetAllKeys)return _baseGetAllKeys;hasRequired_baseGetAllKeys=1;var e=require_arrayPush(),t=requireIsArray();return _baseGetAllKeys=function(r,s,n){var i=s(r);return t(r)?i:e(i,n(r))}}function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;return hasRequired_arrayFilter=1,_arrayFilter=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var a=e[r];t(a,r,e)&&(i[n++]=a)}return i}}function requireStubArray(){if(hasRequiredStubArray)return stubArray_1;return hasRequiredStubArray=1,stubArray_1=function(){return[]}}function require_getSymbols(){if(hasRequired_getSymbols)return _getSymbols;hasRequired_getSymbols=1;var e=require_arrayFilter(),t=requireStubArray(),r=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;return _getSymbols=s?function(t){return null==t?[]:(t=Object(t),e(s(t),(function(e){return r.call(t,e)})))}:t}function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;return hasRequired_baseTimes=1,_baseTimes=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}}function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var e=require_baseGetTag(),t=requireIsObjectLike();return _baseIsArguments=function(r){return t(r)&&"[object Arguments]"==e(r)}}function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var e=require_baseIsArguments(),t=requireIsObjectLike(),r=Object.prototype,s=r.hasOwnProperty,n=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&s.call(e,"callee")&&!n.call(e,"callee")};return isArguments_1=i}var isBuffer={exports:{}},stubFalse_1,hasRequiredStubFalse,hasRequiredIsBuffer,_isIndex,hasRequired_isIndex,isLength_1,hasRequiredIsLength,_baseIsTypedArray,hasRequired_baseIsTypedArray,_baseUnary,hasRequired_baseUnary;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;return hasRequiredStubFalse=1,stubFalse_1=function(){return!1}}function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,function(e,t){var r=require_root(),s=requireStubFalse(),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,a=i&&i.exports===n?r.Buffer:void 0,o=(a?a.isBuffer:void 0)||s;e.exports=o}(isBuffer,isBuffer.exports)),isBuffer.exports}function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var e=/^(?:0|[1-9]\d*)$/;return _isIndex=function(t,r){var s=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&e.test(t))&&t>-1&&t%1==0&&t<r},_isIndex}function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;return isLength_1=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var e=require_baseGetTag(),t=requireIsLength(),r=requireIsObjectLike(),s={};return s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,_baseIsTypedArray=function(n){return r(n)&&t(n.length)&&!!s[e(n)]}}function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;return hasRequired_baseUnary=1,_baseUnary=function(e){return function(t){return e(t)}}}isBuffer.exports;var _nodeUtil={exports:{}},hasRequired_nodeUtil,isTypedArray_1,hasRequiredIsTypedArray,_arrayLikeKeys,hasRequired_arrayLikeKeys,_isPrototype,hasRequired_isPrototype,_overArg,hasRequired_overArg,_nativeKeys,hasRequired_nativeKeys,_baseKeys,hasRequired_baseKeys,isArrayLike_1,hasRequiredIsArrayLike,keys_1,hasRequiredKeys,_getAllKeys,hasRequired_getAllKeys,_equalObjects,hasRequired_equalObjects,_DataView,hasRequired_DataView,_Promise,hasRequired_Promise,_Set,hasRequired_Set,_WeakMap,hasRequired_WeakMap,_getTag,hasRequired_getTag,_baseIsEqualDeep,hasRequired_baseIsEqualDeep,_baseIsEqual,hasRequired_baseIsEqual,isEqual_1,hasRequiredIsEqual,KeyValuePair_1,hasRequiredKeyValuePair,negate_1,hasRequiredNegate,ArraySlice_1,hasRequiredArraySlice,Element_1,hasRequiredElement,NullElement_1,hasRequiredNullElement,StringElement_1,hasRequiredStringElement,NumberElement_1,hasRequiredNumberElement,BooleanElement_1,hasRequiredBooleanElement,ArrayElement_1,hasRequiredArrayElement,MemberElement_1,hasRequiredMemberElement,ObjectSlice_1,hasRequiredObjectSlice,ObjectElement_1,hasRequiredObjectElement,LinkElement_1,hasRequiredLinkElement,RefElement_1,hasRequiredRefElement,elements,hasRequiredElements,Namespace_1,hasRequiredNamespace,JSON06Serialiser_1,hasRequiredJSON06Serialiser,hasRequiredMinim;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,function(e,t){var r=require_freeGlobal(),s=t&&!t.nodeType&&t,n=s&&e&&!e.nodeType&&e,i=n&&n.exports===s&&r.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var e=require_baseIsTypedArray(),t=require_baseUnary(),r=require_nodeUtil(),s=r&&r.isTypedArray,n=s?t(s):e;return isTypedArray_1=n}function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var e=require_baseTimes(),t=requireIsArguments(),r=requireIsArray(),s=requireIsBuffer(),n=require_isIndex(),i=requireIsTypedArray(),a=Object.prototype.hasOwnProperty;return _arrayLikeKeys=function(o,u){var c=r(o),l=!c&&t(o),d=!c&&!l&&s(o),h=!c&&!l&&!d&&i(o),m=c||l||d||h,p=m?e(o.length,String):[],_=p.length;for(var g in o)!u&&!a.call(o,g)||m&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||n(g,_))||p.push(g);return p}}function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var e=Object.prototype;return _isPrototype=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}}function require_overArg(){if(hasRequired_overArg)return _overArg;return hasRequired_overArg=1,_overArg=function(e,t){return function(r){return e(t(r))}}}function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var e=require_overArg()(Object.keys,Object);return _nativeKeys=e}function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var e=require_isPrototype(),t=require_nativeKeys(),r=Object.prototype.hasOwnProperty;return _baseKeys=function(s){if(!e(s))return t(s);var n=[];for(var i in Object(s))r.call(s,i)&&"constructor"!=i&&n.push(i);return n}}function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var e=requireIsFunction(),t=requireIsLength();return isArrayLike_1=function(r){return null!=r&&t(r.length)&&!e(r)}}function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var e=require_arrayLikeKeys(),t=require_baseKeys(),r=requireIsArrayLike();return keys_1=function(s){return r(s)?e(s):t(s)}}function require_getAllKeys(){if(hasRequired_getAllKeys)return _getAllKeys;hasRequired_getAllKeys=1;var e=require_baseGetAllKeys(),t=require_getSymbols(),r=requireKeys();return _getAllKeys=function(s){return e(s,r,t)}}function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var e=require_getAllKeys(),t=Object.prototype.hasOwnProperty;return _equalObjects=function(r,s,n,i,a,o){var u=1&n,c=e(r),l=c.length;if(l!=e(s).length&&!u)return!1;for(var d=l;d--;){var h=c[d];if(!(u?h in s:t.call(s,h)))return!1}var m=o.get(r),p=o.get(s);if(m&&p)return m==s&&p==r;var _=!0;o.set(r,s),o.set(s,r);for(var g=u;++d<l;){var f=r[h=c[d]],y=s[h];if(i)var b=u?i(y,f,h,s,r,o):i(f,y,h,r,s,o);if(!(void 0===b?f===y||a(f,y,n,i,o):b)){_=!1;break}g||(g="constructor"==h)}if(_&&!g){var E=r.constructor,q=s.constructor;E==q||!("constructor"in r)||!("constructor"in s)||"function"==typeof E&&E instanceof E&&"function"==typeof q&&q instanceof q||(_=!1)}return o.delete(r),o.delete(s),_}}function require_DataView(){if(hasRequired_DataView)return _DataView;hasRequired_DataView=1;var e=require_getNative()(require_root(),"DataView");return _DataView=e}function require_Promise(){if(hasRequired_Promise)return _Promise;hasRequired_Promise=1;var e=require_getNative()(require_root(),"Promise");return _Promise=e}function require_Set(){if(hasRequired_Set)return _Set;hasRequired_Set=1;var e=require_getNative()(require_root(),"Set");return _Set=e}function require_WeakMap(){if(hasRequired_WeakMap)return _WeakMap;hasRequired_WeakMap=1;var e=require_getNative()(require_root(),"WeakMap");return _WeakMap=e}function require_getTag(){if(hasRequired_getTag)return _getTag;hasRequired_getTag=1;var e=require_DataView(),t=require_Map(),r=require_Promise(),s=require_Set(),n=require_WeakMap(),i=require_baseGetTag(),a=require_toSource(),o="[object Map]",u="[object Promise]",c="[object Set]",l="[object WeakMap]",d="[object DataView]",h=a(e),m=a(t),p=a(r),_=a(s),g=a(n),f=i;return(e&&f(new e(new ArrayBuffer(1)))!=d||t&&f(new t)!=o||r&&f(r.resolve())!=u||s&&f(new s)!=c||n&&f(new n)!=l)&&(f=function(e){var t=i(e),r="[object Object]"==t?e.constructor:void 0,s=r?a(r):"";if(s)switch(s){case h:return d;case m:return o;case p:return u;case _:return c;case g:return l}return t}),_getTag=f}function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var e=require_Stack(),t=require_equalArrays(),r=require_equalByTag(),s=require_equalObjects(),n=require_getTag(),i=requireIsArray(),a=requireIsBuffer(),o=requireIsTypedArray(),u="[object Arguments]",c="[object Array]",l="[object Object]",d=Object.prototype.hasOwnProperty;return _baseIsEqualDeep=function(h,m,p,_,g,f){var y=i(h),b=i(m),E=y?c:n(h),q=b?c:n(m),S=(E=E==u?l:E)==l,v=(q=q==u?l:q)==l,w=E==q;if(w&&a(h)){if(!a(m))return!1;y=!0,S=!1}if(w&&!S)return f||(f=new e),y||o(h)?t(h,m,p,_,g,f):r(h,m,E,p,_,g,f);if(!(1&p)){var O=S&&d.call(h,"__wrapped__"),R=v&&d.call(m,"__wrapped__");if(O||R){var x=O?h.value():h,A=R?m.value():m;return f||(f=new e),g(x,A,p,_,f)}}return!!w&&(f||(f=new e),s(h,m,p,_,g,f))}}function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var e=require_baseIsEqualDeep(),t=requireIsObjectLike();return _baseIsEqual=function r(s,n,i,a,o){return s===n||(null==s||null==n||!t(s)&&!t(n)?s!=s&&n!=n:e(s,n,i,a,r,o))},_baseIsEqual}function requireIsEqual(){if(hasRequiredIsEqual)return isEqual_1;hasRequiredIsEqual=1;var e=require_baseIsEqual();return isEqual_1=function(t,r){return e(t,r)}}function requireKeyValuePair(){if(hasRequiredKeyValuePair)return KeyValuePair_1;hasRequiredKeyValuePair=1;class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}return KeyValuePair_1=e}function requireNegate(){if(hasRequiredNegate)return negate_1;hasRequiredNegate=1;return negate_1=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)}},negate_1}function requireArraySlice(){if(hasRequiredArraySlice)return ArraySlice_1;hasRequiredArraySlice=1;const e=requireNegate();function t(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class r{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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,s){return e=t(e),new r(this.elements.filter(e,s))}reject(s,n){return s=t(s),new r(this.elements.filter(e(s),n))}find(e,r){return e=t(e),this.elements.find(e,r)}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]}}return"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),ArraySlice_1=r}function requireElement(){if(hasRequiredElement)return Element_1;hasRequiredElement=1;const e=requireIsEqual(),t=requireKeyValuePair(),r=requireArraySlice();class s{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 s?this.content.toValue():this.content instanceof t?{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 s=e.pop();let n=new r;const i=(e,t)=>(e.push(t),e),a=(e,r)=>{r.element===s&&e.push(r);const n=r.findRecursive(s);return n&&n.reduce(i,e),r.content instanceof t&&(r.content.key&&a(e,r.content.key),r.content.value&&a(e,r.content.value)),e};return this.content&&(this.content.element&&a(n,this.content),Array.isArray(this.content)&&this.content.reduce(a,n)),e.isEmpty||(n=n.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),n}set(e){return this.content=e,this}equals(t){return e(this.toValue(),t)}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 s)this._content=e;else if(e instanceof r)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 t)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 r;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new r(this.content);if(this.content instanceof t){const e=new r([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof s?new r([this.content]):new r}get recursiveChildren(){const e=new r;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}return Element_1=s}function requireNullElement(){if(hasRequiredNullElement)return NullElement_1;hasRequiredNullElement=1;const e=requireElement();return NullElement_1=class extends e{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")}}}function requireStringElement(){if(hasRequiredStringElement)return StringElement_1;hasRequiredStringElement=1;const e=requireElement();return StringElement_1=class extends e{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}}function requireNumberElement(){if(hasRequiredNumberElement)return NumberElement_1;hasRequiredNumberElement=1;const e=requireElement();return NumberElement_1=class extends e{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}}function requireBooleanElement(){if(hasRequiredBooleanElement)return BooleanElement_1;hasRequiredBooleanElement=1;const e=requireElement();return BooleanElement_1=class extends e{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}}function requireArrayElement(){if(hasRequiredArrayElement)return ArrayElement_1;hasRequiredArrayElement=1;const e=requireNegate(),t=requireElement(),r=requireArraySlice();class s extends t{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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new r(this.content.filter(e,t))}reject(t,r){return this.filter(e(t),r)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new r(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)}}return s.empty=function(){return new this},s["fantasy-land/empty"]=s.empty,"undefined"!=typeof Symbol&&(s.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),ArrayElement_1=s}function requireMemberElement(){if(hasRequiredMemberElement)return MemberElement_1;hasRequiredMemberElement=1;const e=requireKeyValuePair(),t=requireElement();return MemberElement_1=class extends t{constructor(t,r,s,n){super(new e,s,n),this.element="member",this.key=t,this.value=r}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)}}}function requireObjectSlice(){if(hasRequiredObjectSlice)return ObjectSlice_1;hasRequiredObjectSlice=1;const e=requireNegate(),t=requireArraySlice();class r extends t{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new r(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(t,r){return this.filter(e(t.bind(r)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}return ObjectSlice_1=r}function requireObjectElement(){if(hasRequiredObjectElement)return ObjectElement_1;hasRequiredObjectElement=1;const e=requireNegate(),t=requireIsObject$1(),r=requireArrayElement(),s=requireMemberElement(),n=requireObjectSlice();return ObjectElement_1=class extends r{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,r){if(t(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,i=this.getMember(n);return i?i.value=r:this.content.push(new s(n,r)),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(((s,n,i)=>{const a=e.bind(t)(s,n,i);a&&r.push(a)})),r}filter(e,t){return new n(this.content).filter(e,t)}reject(t,r){return this.filter(e(t),r)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}}function requireLinkElement(){if(hasRequiredLinkElement)return LinkElement_1;hasRequiredLinkElement=1;const e=requireElement();return LinkElement_1=class extends e{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)}}}function requireRefElement(){if(hasRequiredRefElement)return RefElement_1;hasRequiredRefElement=1;const e=requireElement();return RefElement_1=class extends e{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)}}}function requireElements(){if(hasRequiredElements)return elements;hasRequiredElements=1;const e=requireElement(),t=requireNullElement(),r=requireStringElement(),s=requireNumberElement(),n=requireBooleanElement(),i=requireArrayElement(),a=requireMemberElement(),o=requireObjectElement(),u=requireLinkElement(),c=requireRefElement(),l=requireArraySlice(),d=requireObjectSlice(),h=requireKeyValuePair();function m(a){if(a instanceof e)return a;if("string"==typeof a)return new r(a);if("number"==typeof a)return new s(a);if("boolean"==typeof a)return new n(a);if(null===a)return new t;if(Array.isArray(a))return new i(a.map(m));if("object"==typeof a){return new o(a)}return a}return e.prototype.ObjectElement=o,e.prototype.RefElement=c,e.prototype.MemberElement=a,e.prototype.refract=m,l.prototype.refract=m,elements={Element:e,NullElement:t,StringElement:r,NumberElement:s,BooleanElement:n,ArrayElement:i,MemberElement:a,ObjectElement:o,LinkElement:u,RefElement:c,refract:m,ArraySlice:l,ObjectSlice:d,KeyValuePair:h}}function requireNamespace(){if(hasRequiredNamespace)return Namespace_1;hasRequiredNamespace=1;const e=requireIsNull(),t=requireIsString(),r=requireIsNumber(),s=requireIsBoolean(),n=requireIsObject$1(),i=requireJSONSerialiser(),a=requireElements();class o{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=a.Element,this.KeyValuePair=a.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",a.NullElement).register("string",a.StringElement).register("number",a.NumberElement).register("boolean",a.BooleanElement).register("array",a.ArrayElement).register("object",a.ObjectElement).register("member",a.MemberElement).register("ref",a.RefElement).register("link",a.LinkElement),this.detect(e,a.NullElement,!1).detect(t,a.StringElement,!1).detect(r,a.NumberElement,!1).detect(s,a.BooleanElement,!1).detect(Array.isArray,a.ArrayElement,!1).detect(n,a.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 s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new i(this)}}return i.prototype.Namespace=o,Namespace_1=o}function requireJSON06Serialiser(){if(hasRequiredJSON06Serialiser)return JSON06Serialiser_1;hasRequiredJSON06Serialiser=1;const e=requireJSONSerialiser();return JSON06Serialiser_1=class extends e{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 s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)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 s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}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([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),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 s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);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 s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}}function requireMinim(){if(hasRequiredMinim)return minim;hasRequiredMinim=1;const e=requireNamespace(),t=requireElements();return minim.Namespace=e,minim.namespace=function(t){return new e(t)},minim.KeyValuePair=requireKeyValuePair(),minim.ArraySlice=t.ArraySlice,minim.ObjectSlice=t.ObjectSlice,minim.Element=t.Element,minim.StringElement=t.StringElement,minim.NumberElement=t.NumberElement,minim.BooleanElement=t.BooleanElement,minim.NullElement=t.NullElement,minim.ArrayElement=t.ArrayElement,minim.ObjectElement=t.ObjectElement,minim.MemberElement=t.MemberElement,minim.RefElement=t.RefElement,minim.LinkElement=t.LinkElement,minim.refract=t.refract,minim.JSONSerialiser=requireJSONSerialiser(),minim.JSON06Serialiser=requireJSON06Serialiser(),minim}_nodeUtil.exports;var minimExports=requireMinim();class Annotation extends minimExports.StringElement{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)}}class Comment extends minimExports.StringElement{constructor(e,t,r){super(e,t,r),this.element="comment"}}let ParseResult$1=class extends minimExports.ArrayElement{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(isUndefined(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}};const hasMethod=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],hasBasicElementProps=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,primitiveEq=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),hasClass=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof minimExports.ArrayElement)&&t.classes.includes(e),isElementType=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,createPredicate=e=>e({hasMethod:hasMethod,hasBasicElementProps:hasBasicElementProps,primitiveEq:primitiveEq,isElementType:isElementType,hasClass:hasClass}),isElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.Element||e(r)&&t(void 0,r))),isStringElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.StringElement||e(r)&&t("string",r))),isNumberElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.NumberElement||e(r)&&t("number",r))),isNullElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.NullElement||e(r)&&t("null",r))),isBooleanElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.BooleanElement||e(r)&&t("boolean",r))),isObjectElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof minimExports.ObjectElement||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),isArrayElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof minimExports.ArrayElement&&!(s instanceof minimExports.ObjectElement)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),isMemberElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof minimExports.MemberElement||e(s)&&t("member",s)&&r(void 0,s))),isLinkElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof minimExports.LinkElement||e(s)&&t("link",s)&&r(void 0,s))),isRefElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof minimExports.RefElement||e(s)&&t("ref",s)&&r(void 0,s))),isAnnotationElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Annotation||e(s)&&t("annotation",s)&&r("array",s))),isCommentElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Comment||e(s)&&t("comment",s)&&r("string",s))),isParseResultElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ParseResult$1||e(s)&&t("parseResult",s)&&r("array",s))),isPrimitiveElement=e=>isElementType("object",e)||isElementType("array",e)||isElementType("boolean",e)||isElementType("number",e)||isElementType("string",e)||isElementType("null",e)||isElementType("member",e),hasElementSourceMap=e=>!!isElement(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),includesSymbols=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!isArrayElement(r)&&all(included(r.toValue()),e)},includesClasses=(e,t)=>0===e.length||all(included(t.classes.toValue()),e),basePredicates=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:hasElementSourceMap,includesClasses:includesClasses,includesSymbols:includesSymbols,isAnnotationElement:isAnnotationElement,isArrayElement:isArrayElement,isBooleanElement:isBooleanElement,isCommentElement:isCommentElement,isElement:isElement,isLinkElement:isLinkElement,isMemberElement:isMemberElement,isNullElement:isNullElement,isNumberElement:isNumberElement,isObjectElement:isObjectElement,isParseResultElement:isParseResultElement,isPrimitiveElement:isPrimitiveElement,isRefElement:isRefElement,isStringElement:isStringElement},Symbol.toStringTag,{value:"Module"}));class Namespace extends minimExports.Namespace{constructor(){super(),this.register("annotation",Annotation),this.register("comment",Comment),this.register("parseResult",ParseResult$1)}}const namespace$1=new Namespace,createNamespace=e=>{const t=new Namespace;return isPlainObj(e)&&t.use(e),t},createToolbox$3=()=>({predicates:{...basePredicates},namespace:namespace$1});class Node{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:r,startPositionColumn:s,startIndex:n,endPositionRow:i,endPositionColumn:a,endIndex:o}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=r,this.startPositionColumn=s,this.startIndex=n,this.endPositionRow=i,this.endPositionColumn=a,this.endIndex=o}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}}class JsonNode extends Node{}class JsonDocument extends JsonNode{static type="document";get child(){return head(this.children)}}const isNodeType=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,isString=e=>isNodeType("string",e),isFalse=e=>isNodeType("false",e),isTrue=e=>isNodeType("true",e),isNull=e=>isNodeType("null",e),isNumber=e=>isNodeType("number",e),isArray=e=>isNodeType("array",e),isObject$1=e=>isNodeType("object",e),isStringContent=e=>isNodeType("stringContent",e),isEscapeSequence=e=>isNodeType("escapeSequence",e),isProperty=e=>isNodeType("property",e),isKey=e=>isNodeType("key",e);class JsonObject extends JsonNode{static type="object";get properties(){return this.children.filter(isProperty)}}class JsonProperty extends JsonNode{static type="property";get key(){return this.children.find(isKey)}get value(){return this.children.find((e=>isFalse(e)||isTrue(e)||isNull(e)||isNumber(e)||isString(e)||isArray(e)||isObject$1(e)))}}class JsonArray extends JsonNode{static type="array";get items(){return this.children.filter((e=>isFalse(e)||isTrue(e)||isNull(e)||isNumber(e)||isString(e)||isArray(e)||isObject$1))}}class JsonValue extends JsonNode{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}}class JsonString extends JsonNode{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>isStringContent(e)||isEscapeSequence(e))).reduce(((e,t)=>e+t.value),"")}}class JsonKey extends JsonString{static type="key"}class JsonStringContent extends JsonValue{static type="stringContent"}class JsonNumber extends JsonValue{static type="number"}class JsonTrue extends JsonValue{static type="true"}class JsonFalse extends JsonValue{static type="false"}class JsonNull extends JsonValue{static type="null"}var esnext_aggregateError={},es_aggregateError={},es_aggregateError_constructor={},globalThis_1,hasRequiredGlobalThis,fails,hasRequiredFails,functionBindNative,hasRequiredFunctionBindNative,functionApply,hasRequiredFunctionApply,functionUncurryThis,hasRequiredFunctionUncurryThis,classofRaw,hasRequiredClassofRaw,functionUncurryThisClause,hasRequiredFunctionUncurryThisClause,isCallable,hasRequiredIsCallable;function requireGlobalThis(){if(hasRequiredGlobalThis)return globalThis_1;hasRequiredGlobalThis=1;var e=function(e){return e&&e.Math===Math&&e};return globalThis_1=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof commonjsGlobal&&commonjsGlobal)||e("object"==typeof globalThis_1&&globalThis_1)||function(){return this}()||Function("return this")()}function requireFails(){return hasRequiredFails?fails:(hasRequiredFails=1,fails=function(e){try{return!!e()}catch(e){return!0}})}function requireFunctionBindNative(){return hasRequiredFunctionBindNative?functionBindNative:(hasRequiredFunctionBindNative=1,functionBindNative=!requireFails()((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})))}function requireFunctionApply(){if(hasRequiredFunctionApply)return functionApply;hasRequiredFunctionApply=1;var e=requireFunctionBindNative(),t=Function.prototype,r=t.apply,s=t.call;return functionApply="object"==typeof Reflect&&Reflect.apply||(e?s.bind(r):function(){return s.apply(r,arguments)}),functionApply}function requireFunctionUncurryThis(){if(hasRequiredFunctionUncurryThis)return functionUncurryThis;hasRequiredFunctionUncurryThis=1;var e=requireFunctionBindNative(),t=Function.prototype,r=t.call,s=e&&t.bind.bind(r,r);return functionUncurryThis=e?s:function(e){return function(){return r.apply(e,arguments)}},functionUncurryThis}function requireClassofRaw(){if(hasRequiredClassofRaw)return classofRaw;hasRequiredClassofRaw=1;var e=requireFunctionUncurryThis(),t=e({}.toString),r=e("".slice);return classofRaw=function(e){return r(t(e),8,-1)}}function requireFunctionUncurryThisClause(){if(hasRequiredFunctionUncurryThisClause)return functionUncurryThisClause;hasRequiredFunctionUncurryThisClause=1;var e=requireClassofRaw(),t=requireFunctionUncurryThis();return functionUncurryThisClause=function(r){if("Function"===e(r))return t(r)}}function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e="object"==typeof document&&document.all;return isCallable=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var objectGetOwnPropertyDescriptor={},descriptors,hasRequiredDescriptors,functionCall,hasRequiredFunctionCall;function requireDescriptors(){return hasRequiredDescriptors?descriptors:(hasRequiredDescriptors=1,descriptors=!requireFails()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function requireFunctionCall(){if(hasRequiredFunctionCall)return functionCall;hasRequiredFunctionCall=1;var e=requireFunctionBindNative(),t=Function.prototype.call;return functionCall=e?t.bind(t):function(){return t.apply(t,arguments)},functionCall}var objectPropertyIsEnumerable={},hasRequiredObjectPropertyIsEnumerable,createPropertyDescriptor,hasRequiredCreatePropertyDescriptor,indexedObject,hasRequiredIndexedObject,isNullOrUndefined,hasRequiredIsNullOrUndefined,requireObjectCoercible,hasRequiredRequireObjectCoercible,toIndexedObject,hasRequiredToIndexedObject,isObject,hasRequiredIsObject,path,hasRequiredPath,getBuiltIn,hasRequiredGetBuiltIn,objectIsPrototypeOf,hasRequiredObjectIsPrototypeOf,environmentUserAgent,hasRequiredEnvironmentUserAgent,environmentV8Version,hasRequiredEnvironmentV8Version,symbolConstructorDetection,hasRequiredSymbolConstructorDetection,useSymbolAsUid,hasRequiredUseSymbolAsUid,isSymbol,hasRequiredIsSymbol,tryToString,hasRequiredTryToString,aCallable,hasRequiredACallable,getMethod,hasRequiredGetMethod,ordinaryToPrimitive,hasRequiredOrdinaryToPrimitive;function requireObjectPropertyIsEnumerable(){if(hasRequiredObjectPropertyIsEnumerable)return objectPropertyIsEnumerable;hasRequiredObjectPropertyIsEnumerable=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return objectPropertyIsEnumerable.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,objectPropertyIsEnumerable}function requireCreatePropertyDescriptor(){return hasRequiredCreatePropertyDescriptor?createPropertyDescriptor:(hasRequiredCreatePropertyDescriptor=1,createPropertyDescriptor=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function requireIndexedObject(){if(hasRequiredIndexedObject)return indexedObject;hasRequiredIndexedObject=1;var e=requireFunctionUncurryThis(),t=requireFails(),r=requireClassofRaw(),s=Object,n=e("".split);return indexedObject=t((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?n(e,""):s(e)}:s}function requireIsNullOrUndefined(){return hasRequiredIsNullOrUndefined?isNullOrUndefined:(hasRequiredIsNullOrUndefined=1,isNullOrUndefined=function(e){return null==e})}function requireRequireObjectCoercible(){if(hasRequiredRequireObjectCoercible)return requireObjectCoercible;hasRequiredRequireObjectCoercible=1;var e=requireIsNullOrUndefined(),t=TypeError;return requireObjectCoercible=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function requireToIndexedObject(){if(hasRequiredToIndexedObject)return toIndexedObject;hasRequiredToIndexedObject=1;var e=requireIndexedObject(),t=requireRequireObjectCoercible();return toIndexedObject=function(r){return e(t(r))}}function requireIsObject(){if(hasRequiredIsObject)return isObject;hasRequiredIsObject=1;var e=requireIsCallable();return isObject=function(t){return"object"==typeof t?null!==t:e(t)}}function requirePath(){return hasRequiredPath?path:(hasRequiredPath=1,path={})}function requireGetBuiltIn(){if(hasRequiredGetBuiltIn)return getBuiltIn;hasRequiredGetBuiltIn=1;var e=requirePath(),t=requireGlobalThis(),r=requireIsCallable(),s=function(e){return r(e)?e:void 0};return getBuiltIn=function(r,n){return arguments.length<2?s(e[r])||s(t[r]):e[r]&&e[r][n]||t[r]&&t[r][n]},getBuiltIn}function requireObjectIsPrototypeOf(){return hasRequiredObjectIsPrototypeOf?objectIsPrototypeOf:(hasRequiredObjectIsPrototypeOf=1,objectIsPrototypeOf=requireFunctionUncurryThis()({}.isPrototypeOf))}function requireEnvironmentUserAgent(){if(hasRequiredEnvironmentUserAgent)return environmentUserAgent;hasRequiredEnvironmentUserAgent=1;var e=requireGlobalThis().navigator,t=e&&e.userAgent;return environmentUserAgent=t?String(t):""}function requireEnvironmentV8Version(){if(hasRequiredEnvironmentV8Version)return environmentV8Version;hasRequiredEnvironmentV8Version=1;var e,t,r=requireGlobalThis(),s=requireEnvironmentUserAgent(),n=r.process,i=r.Deno,a=n&&n.versions||i&&i.version,o=a&&a.v8;return o&&(t=(e=o.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&s&&(!(e=s.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=s.match(/Chrome\/(\d+)/))&&(t=+e[1]),environmentV8Version=t}function requireSymbolConstructorDetection(){if(hasRequiredSymbolConstructorDetection)return symbolConstructorDetection;hasRequiredSymbolConstructorDetection=1;var e=requireEnvironmentV8Version(),t=requireFails(),r=requireGlobalThis().String;return symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function requireUseSymbolAsUid(){return hasRequiredUseSymbolAsUid?useSymbolAsUid:(hasRequiredUseSymbolAsUid=1,useSymbolAsUid=requireSymbolConstructorDetection()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol;hasRequiredIsSymbol=1;var e=requireGetBuiltIn(),t=requireIsCallable(),r=requireObjectIsPrototypeOf(),s=Object;return isSymbol=requireUseSymbolAsUid()?function(e){return"symbol"==typeof e}:function(n){var i=e("Symbol");return t(i)&&r(i.prototype,s(n))}}function requireTryToString(){if(hasRequiredTryToString)return tryToString;hasRequiredTryToString=1;var e=String;return tryToString=function(t){try{return e(t)}catch(e){return"Object"}}}function requireACallable(){if(hasRequiredACallable)return aCallable;hasRequiredACallable=1;var e=requireIsCallable(),t=requireTryToString(),r=TypeError;return aCallable=function(s){if(e(s))return s;throw new r(t(s)+" is not a function")}}function requireGetMethod(){if(hasRequiredGetMethod)return getMethod;hasRequiredGetMethod=1;var e=requireACallable(),t=requireIsNullOrUndefined();return getMethod=function(r,s){var n=r[s];return t(n)?void 0:e(n)}}function requireOrdinaryToPrimitive(){if(hasRequiredOrdinaryToPrimitive)return ordinaryToPrimitive;hasRequiredOrdinaryToPrimitive=1;var e=requireFunctionCall(),t=requireIsCallable(),r=requireIsObject(),s=TypeError;return ordinaryToPrimitive=function(n,i){var a,o;if("string"===i&&t(a=n.toString)&&!r(o=e(a,n)))return o;if(t(a=n.valueOf)&&!r(o=e(a,n)))return o;if("string"!==i&&t(a=n.toString)&&!r(o=e(a,n)))return o;throw new s("Can't convert object to primitive value")}}var sharedStore={exports:{}},isPure,hasRequiredIsPure,defineGlobalProperty,hasRequiredDefineGlobalProperty,hasRequiredSharedStore,shared,hasRequiredShared,toObject,hasRequiredToObject,hasOwnProperty_1,hasRequiredHasOwnProperty,uid,hasRequiredUid,wellKnownSymbol,hasRequiredWellKnownSymbol,toPrimitive,hasRequiredToPrimitive,toPropertyKey,hasRequiredToPropertyKey,documentCreateElement,hasRequiredDocumentCreateElement,ie8DomDefine,hasRequiredIe8DomDefine,hasRequiredObjectGetOwnPropertyDescriptor,isForced_1,hasRequiredIsForced,functionBindContext,hasRequiredFunctionBindContext;function requireIsPure(){return hasRequiredIsPure?isPure:(hasRequiredIsPure=1,isPure=!0)}function requireDefineGlobalProperty(){if(hasRequiredDefineGlobalProperty)return defineGlobalProperty;hasRequiredDefineGlobalProperty=1;var e=requireGlobalThis(),t=Object.defineProperty;return defineGlobalProperty=function(r,s){try{t(e,r,{value:s,configurable:!0,writable:!0})}catch(t){e[r]=s}return s}}function requireSharedStore(){if(hasRequiredSharedStore)return sharedStore.exports;hasRequiredSharedStore=1;var e=requireIsPure(),t=requireGlobalThis(),r=requireDefineGlobalProperty(),s="__core-js_shared__",n=sharedStore.exports=t[s]||r(s,{});return(n.versions||(n.versions=[])).push({version:"3.42.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),sharedStore.exports}function requireShared(){if(hasRequiredShared)return shared;hasRequiredShared=1;var e=requireSharedStore();return shared=function(t,r){return e[t]||(e[t]=r||{})}}function requireToObject(){if(hasRequiredToObject)return toObject;hasRequiredToObject=1;var e=requireRequireObjectCoercible(),t=Object;return toObject=function(r){return t(e(r))}}function requireHasOwnProperty(){if(hasRequiredHasOwnProperty)return hasOwnProperty_1;hasRequiredHasOwnProperty=1;var e=requireFunctionUncurryThis(),t=requireToObject(),r=e({}.hasOwnProperty);return hasOwnProperty_1=Object.hasOwn||function(e,s){return r(t(e),s)}}function requireUid(){if(hasRequiredUid)return uid;hasRequiredUid=1;var e=requireFunctionUncurryThis(),t=0,r=Math.random(),s=e(1..toString);return uid=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++t+r,36)}}function requireWellKnownSymbol(){if(hasRequiredWellKnownSymbol)return wellKnownSymbol;hasRequiredWellKnownSymbol=1;var e=requireGlobalThis(),t=requireShared(),r=requireHasOwnProperty(),s=requireUid(),n=requireSymbolConstructorDetection(),i=requireUseSymbolAsUid(),a=e.Symbol,o=t("wks"),u=i?a.for||a:a&&a.withoutSetter||s;return wellKnownSymbol=function(e){return r(o,e)||(o[e]=n&&r(a,e)?a[e]:u("Symbol."+e)),o[e]}}function requireToPrimitive(){if(hasRequiredToPrimitive)return toPrimitive;hasRequiredToPrimitive=1;var e=requireFunctionCall(),t=requireIsObject(),r=requireIsSymbol(),s=requireGetMethod(),n=requireOrdinaryToPrimitive(),i=TypeError,a=requireWellKnownSymbol()("toPrimitive");return toPrimitive=function(o,u){if(!t(o)||r(o))return o;var c,l=s(o,a);if(l){if(void 0===u&&(u="default"),c=e(l,o,u),!t(c)||r(c))return c;throw new i("Can't convert object to primitive value")}return void 0===u&&(u="number"),n(o,u)}}function requireToPropertyKey(){if(hasRequiredToPropertyKey)return toPropertyKey;hasRequiredToPropertyKey=1;var e=requireToPrimitive(),t=requireIsSymbol();return toPropertyKey=function(r){var s=e(r,"string");return t(s)?s:s+""}}function requireDocumentCreateElement(){if(hasRequiredDocumentCreateElement)return documentCreateElement;hasRequiredDocumentCreateElement=1;var e=requireGlobalThis(),t=requireIsObject(),r=e.document,s=t(r)&&t(r.createElement);return documentCreateElement=function(e){return s?r.createElement(e):{}}}function requireIe8DomDefine(){if(hasRequiredIe8DomDefine)return ie8DomDefine;hasRequiredIe8DomDefine=1;var e=requireDescriptors(),t=requireFails(),r=requireDocumentCreateElement();return ie8DomDefine=!e&&!t((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))}function requireObjectGetOwnPropertyDescriptor(){if(hasRequiredObjectGetOwnPropertyDescriptor)return objectGetOwnPropertyDescriptor;hasRequiredObjectGetOwnPropertyDescriptor=1;var e=requireDescriptors(),t=requireFunctionCall(),r=requireObjectPropertyIsEnumerable(),s=requireCreatePropertyDescriptor(),n=requireToIndexedObject(),i=requireToPropertyKey(),a=requireHasOwnProperty(),o=requireIe8DomDefine(),u=Object.getOwnPropertyDescriptor;return objectGetOwnPropertyDescriptor.f=e?u:function(e,c){if(e=n(e),c=i(c),o)try{return u(e,c)}catch(e){}if(a(e,c))return s(!t(r.f,e,c),e[c])},objectGetOwnPropertyDescriptor}function requireIsForced(){if(hasRequiredIsForced)return isForced_1;hasRequiredIsForced=1;var e=requireFails(),t=requireIsCallable(),r=/#|\.prototype\./,s=function(r,s){var u=i[n(r)];return u===o||u!==a&&(t(s)?e(s):!!s)},n=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=s.data={},a=s.NATIVE="N",o=s.POLYFILL="P";return isForced_1=s}function requireFunctionBindContext(){if(hasRequiredFunctionBindContext)return functionBindContext;hasRequiredFunctionBindContext=1;var e=requireFunctionUncurryThisClause(),t=requireACallable(),r=requireFunctionBindNative(),s=e(e.bind);return functionBindContext=function(e,n){return t(e),void 0===n?e:r?s(e,n):function(){return e.apply(n,arguments)}},functionBindContext}var objectDefineProperty={},v8PrototypeDefineBug,hasRequiredV8PrototypeDefineBug,anObject,hasRequiredAnObject,hasRequiredObjectDefineProperty,createNonEnumerableProperty,hasRequiredCreateNonEnumerableProperty,_export,hasRequired_export,sharedKey,hasRequiredSharedKey,correctPrototypeGetter,hasRequiredCorrectPrototypeGetter,objectGetPrototypeOf,hasRequiredObjectGetPrototypeOf,functionUncurryThisAccessor,hasRequiredFunctionUncurryThisAccessor,isPossiblePrototype,hasRequiredIsPossiblePrototype,aPossiblePrototype,hasRequiredAPossiblePrototype,objectSetPrototypeOf,hasRequiredObjectSetPrototypeOf;function requireV8PrototypeDefineBug(){return hasRequiredV8PrototypeDefineBug?v8PrototypeDefineBug:(hasRequiredV8PrototypeDefineBug=1,v8PrototypeDefineBug=requireDescriptors()&&requireFails()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function requireAnObject(){if(hasRequiredAnObject)return anObject;hasRequiredAnObject=1;var e=requireIsObject(),t=String,r=TypeError;return anObject=function(s){if(e(s))return s;throw new r(t(s)+" is not an object")}}function requireObjectDefineProperty(){if(hasRequiredObjectDefineProperty)return objectDefineProperty;hasRequiredObjectDefineProperty=1;var e=requireDescriptors(),t=requireIe8DomDefine(),r=requireV8PrototypeDefineBug(),s=requireAnObject(),n=requireToPropertyKey(),i=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return objectDefineProperty.f=e?r?function(e,t,r){if(s(e),t=n(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&l in r&&!r[l]){var i=o(e,t);i&&i[l]&&(e[t]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:u in r?r[u]:i[u],writable:!1})}return a(e,t,r)}:a:function(e,r,o){if(s(e),r=n(r),s(o),t)try{return a(e,r,o)}catch(e){}if("get"in o||"set"in o)throw new i("Accessors not supported");return"value"in o&&(e[r]=o.value),e},objectDefineProperty}function requireCreateNonEnumerableProperty(){if(hasRequiredCreateNonEnumerableProperty)return createNonEnumerableProperty;hasRequiredCreateNonEnumerableProperty=1;var e=requireDescriptors(),t=requireObjectDefineProperty(),r=requireCreatePropertyDescriptor();return createNonEnumerableProperty=e?function(e,s,n){return t.f(e,s,r(1,n))}:function(e,t,r){return e[t]=r,e}}function require_export(){if(hasRequired_export)return _export;hasRequired_export=1;var e=requireGlobalThis(),t=requireFunctionApply(),r=requireFunctionUncurryThisClause(),s=requireIsCallable(),n=requireObjectGetOwnPropertyDescriptor().f,i=requireIsForced(),a=requirePath(),o=requireFunctionBindContext(),u=requireCreateNonEnumerableProperty(),c=requireHasOwnProperty(),l=function(e){var r=function(s,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,n)}return new e(s,n,i)}return t(e,this,arguments)};return r.prototype=e.prototype,r};return _export=function(t,d){var h,m,p,_,g,f,y,b,E,q=t.target,S=t.global,v=t.stat,w=t.proto,O=S?e:v?e[q]:e[q]&&e[q].prototype,R=S?a:a[q]||u(a,q,{})[q],x=R.prototype;for(_ in d)m=!(h=i(S?_:q+(v?".":"#")+_,t.forced))&&O&&c(O,_),f=R[_],m&&(y=t.dontCallGetSet?(E=n(O,_))&&E.value:O[_]),g=m&&y?y:d[_],(h||w||typeof f!=typeof g)&&(b=t.bind&&m?o(g,e):t.wrap&&m?l(g):w&&s(g)?r(g):g,(t.sham||g&&g.sham||f&&f.sham)&&u(b,"sham",!0),u(R,_,b),w&&(c(a,p=q+"Prototype")||u(a,p,{}),u(a[p],_,g),t.real&&x&&(h||!x[_])&&u(x,_,g)))}}function requireSharedKey(){if(hasRequiredSharedKey)return sharedKey;hasRequiredSharedKey=1;var e=requireShared(),t=requireUid(),r=e("keys");return sharedKey=function(e){return r[e]||(r[e]=t(e))}}function requireCorrectPrototypeGetter(){return hasRequiredCorrectPrototypeGetter||(hasRequiredCorrectPrototypeGetter=1,correctPrototypeGetter=!requireFails()((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))),correctPrototypeGetter}function requireObjectGetPrototypeOf(){if(hasRequiredObjectGetPrototypeOf)return objectGetPrototypeOf;hasRequiredObjectGetPrototypeOf=1;var e=requireHasOwnProperty(),t=requireIsCallable(),r=requireToObject(),s=requireSharedKey(),n=requireCorrectPrototypeGetter(),i=s("IE_PROTO"),a=Object,o=a.prototype;return objectGetPrototypeOf=n?a.getPrototypeOf:function(s){var n=r(s);if(e(n,i))return n[i];var u=n.constructor;return t(u)&&n instanceof u?u.prototype:n instanceof a?o:null}}function requireFunctionUncurryThisAccessor(){if(hasRequiredFunctionUncurryThisAccessor)return functionUncurryThisAccessor;hasRequiredFunctionUncurryThisAccessor=1;var e=requireFunctionUncurryThis(),t=requireACallable();return functionUncurryThisAccessor=function(r,s,n){try{return e(t(Object.getOwnPropertyDescriptor(r,s)[n]))}catch(e){}}}function requireIsPossiblePrototype(){if(hasRequiredIsPossiblePrototype)return isPossiblePrototype;hasRequiredIsPossiblePrototype=1;var e=requireIsObject();return isPossiblePrototype=function(t){return e(t)||null===t}}function requireAPossiblePrototype(){if(hasRequiredAPossiblePrototype)return aPossiblePrototype;hasRequiredAPossiblePrototype=1;var e=requireIsPossiblePrototype(),t=String,r=TypeError;return aPossiblePrototype=function(s){if(e(s))return s;throw new r("Can't set "+t(s)+" as a prototype")}}function requireObjectSetPrototypeOf(){if(hasRequiredObjectSetPrototypeOf)return objectSetPrototypeOf;hasRequiredObjectSetPrototypeOf=1;var e=requireFunctionUncurryThisAccessor(),t=requireIsObject(),r=requireRequireObjectCoercible(),s=requireAPossiblePrototype();return objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,i=!1,a={};try{(n=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return r(e),s(a),t(e)?(i?n(e,a):e.__proto__=a,e):e}}():void 0)}var objectGetOwnPropertyNames={},mathTrunc,hasRequiredMathTrunc,toIntegerOrInfinity,hasRequiredToIntegerOrInfinity,toAbsoluteIndex,hasRequiredToAbsoluteIndex,toLength,hasRequiredToLength,lengthOfArrayLike,hasRequiredLengthOfArrayLike,arrayIncludes,hasRequiredArrayIncludes,hiddenKeys,hasRequiredHiddenKeys,objectKeysInternal,hasRequiredObjectKeysInternal,enumBugKeys,hasRequiredEnumBugKeys,hasRequiredObjectGetOwnPropertyNames;function requireMathTrunc(){if(hasRequiredMathTrunc)return mathTrunc;hasRequiredMathTrunc=1;var e=Math.ceil,t=Math.floor;return mathTrunc=Math.trunc||function(r){var s=+r;return(s>0?t:e)(s)}}function requireToIntegerOrInfinity(){if(hasRequiredToIntegerOrInfinity)return toIntegerOrInfinity;hasRequiredToIntegerOrInfinity=1;var e=requireMathTrunc();return toIntegerOrInfinity=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function requireToAbsoluteIndex(){if(hasRequiredToAbsoluteIndex)return toAbsoluteIndex;hasRequiredToAbsoluteIndex=1;var e=requireToIntegerOrInfinity(),t=Math.max,r=Math.min;return toAbsoluteIndex=function(s,n){var i=e(s);return i<0?t(i+n,0):r(i,n)}}function requireToLength(){if(hasRequiredToLength)return toLength;hasRequiredToLength=1;var e=requireToIntegerOrInfinity(),t=Math.min;return toLength=function(r){var s=e(r);return s>0?t(s,9007199254740991):0}}function requireLengthOfArrayLike(){if(hasRequiredLengthOfArrayLike)return lengthOfArrayLike;hasRequiredLengthOfArrayLike=1;var e=requireToLength();return lengthOfArrayLike=function(t){return e(t.length)}}function requireArrayIncludes(){if(hasRequiredArrayIncludes)return arrayIncludes;hasRequiredArrayIncludes=1;var e=requireToIndexedObject(),t=requireToAbsoluteIndex(),r=requireLengthOfArrayLike(),s=function(s){return function(n,i,a){var o=e(n),u=r(o);if(0===u)return!s&&-1;var c,l=t(a,u);if(s&&i!=i){for(;u>l;)if((c=o[l++])!=c)return!0}else for(;u>l;l++)if((s||l in o)&&o[l]===i)return s||l||0;return!s&&-1}};return arrayIncludes={includes:s(!0),indexOf:s(!1)}}function requireHiddenKeys(){return hasRequiredHiddenKeys?hiddenKeys:(hasRequiredHiddenKeys=1,hiddenKeys={})}function requireObjectKeysInternal(){if(hasRequiredObjectKeysInternal)return objectKeysInternal;hasRequiredObjectKeysInternal=1;var e=requireFunctionUncurryThis(),t=requireHasOwnProperty(),r=requireToIndexedObject(),s=requireArrayIncludes().indexOf,n=requireHiddenKeys(),i=e([].push);return objectKeysInternal=function(e,a){var o,u=r(e),c=0,l=[];for(o in u)!t(n,o)&&t(u,o)&&i(l,o);for(;a.length>c;)t(u,o=a[c++])&&(~s(l,o)||i(l,o));return l}}function requireEnumBugKeys(){return hasRequiredEnumBugKeys?enumBugKeys:(hasRequiredEnumBugKeys=1,enumBugKeys=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function requireObjectGetOwnPropertyNames(){if(hasRequiredObjectGetOwnPropertyNames)return objectGetOwnPropertyNames;hasRequiredObjectGetOwnPropertyNames=1;var e=requireObjectKeysInternal(),t=requireEnumBugKeys().concat("length","prototype");return objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(r){return e(r,t)},objectGetOwnPropertyNames}var objectGetOwnPropertySymbols={},hasRequiredObjectGetOwnPropertySymbols,ownKeys,hasRequiredOwnKeys,copyConstructorProperties,hasRequiredCopyConstructorProperties;function requireObjectGetOwnPropertySymbols(){return hasRequiredObjectGetOwnPropertySymbols||(hasRequiredObjectGetOwnPropertySymbols=1,objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols),objectGetOwnPropertySymbols}function requireOwnKeys(){if(hasRequiredOwnKeys)return ownKeys;hasRequiredOwnKeys=1;var e=requireGetBuiltIn(),t=requireFunctionUncurryThis(),r=requireObjectGetOwnPropertyNames(),s=requireObjectGetOwnPropertySymbols(),n=requireAnObject(),i=t([].concat);return ownKeys=e("Reflect","ownKeys")||function(e){var t=r.f(n(e)),a=s.f;return a?i(t,a(e)):t},ownKeys}function requireCopyConstructorProperties(){if(hasRequiredCopyConstructorProperties)return copyConstructorProperties;hasRequiredCopyConstructorProperties=1;var e=requireHasOwnProperty(),t=requireOwnKeys(),r=requireObjectGetOwnPropertyDescriptor(),s=requireObjectDefineProperty();return copyConstructorProperties=function(n,i,a){for(var o=t(i),u=s.f,c=r.f,l=0;l<o.length;l++){var d=o[l];e(n,d)||a&&e(a,d)||u(n,d,c(i,d))}},copyConstructorProperties}var objectDefineProperties={},objectKeys,hasRequiredObjectKeys,hasRequiredObjectDefineProperties,html,hasRequiredHtml,objectCreate,hasRequiredObjectCreate,installErrorCause,hasRequiredInstallErrorCause,errorStackClear,hasRequiredErrorStackClear,errorStackInstallable,hasRequiredErrorStackInstallable,errorStackInstall,hasRequiredErrorStackInstall,iterators,hasRequiredIterators,isArrayIteratorMethod,hasRequiredIsArrayIteratorMethod,toStringTagSupport,hasRequiredToStringTagSupport,classof,hasRequiredClassof,getIteratorMethod,hasRequiredGetIteratorMethod,getIterator,hasRequiredGetIterator,iteratorClose,hasRequiredIteratorClose,iterate,hasRequiredIterate,toString,hasRequiredToString,normalizeStringArgument,hasRequiredNormalizeStringArgument,hasRequiredEs_aggregateError_constructor,hasRequiredEs_aggregateError,hasRequiredEsnext_aggregateError;function requireObjectKeys(){if(hasRequiredObjectKeys)return objectKeys;hasRequiredObjectKeys=1;var e=requireObjectKeysInternal(),t=requireEnumBugKeys();return objectKeys=Object.keys||function(r){return e(r,t)}}function requireObjectDefineProperties(){if(hasRequiredObjectDefineProperties)return objectDefineProperties;hasRequiredObjectDefineProperties=1;var e=requireDescriptors(),t=requireV8PrototypeDefineBug(),r=requireObjectDefineProperty(),s=requireAnObject(),n=requireToIndexedObject(),i=requireObjectKeys();return objectDefineProperties.f=e&&!t?Object.defineProperties:function(e,t){s(e);for(var a,o=n(t),u=i(t),c=u.length,l=0;c>l;)r.f(e,a=u[l++],o[a]);return e},objectDefineProperties}function requireHtml(){return hasRequiredHtml?html:(hasRequiredHtml=1,html=requireGetBuiltIn()("document","documentElement"))}function requireObjectCreate(){if(hasRequiredObjectCreate)return objectCreate;hasRequiredObjectCreate=1;var e,t=requireAnObject(),r=requireObjectDefineProperties(),s=requireEnumBugKeys(),n=requireHiddenKeys(),i=requireHtml(),a=requireDocumentCreateElement(),o="prototype",u="script",c=requireSharedKey()("IE_PROTO"),l=function(){},d=function(e){return"<"+u+">"+e+"</"+u+">"},h=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,n;m="undefined"!=typeof document?document.domain&&e?h(e):(r=a("iframe"),n="java"+u+":",r.style.display="none",i.appendChild(r),r.src=String(n),(t=r.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):h(e);for(var c=s.length;c--;)delete m[o][s[c]];return m()};return n[c]=!0,objectCreate=Object.create||function(e,s){var n;return null!==e?(l[o]=t(e),n=new l,l[o]=null,n[c]=e):n=m(),void 0===s?n:r.f(n,s)}}function requireInstallErrorCause(){if(hasRequiredInstallErrorCause)return installErrorCause;hasRequiredInstallErrorCause=1;var e=requireIsObject(),t=requireCreateNonEnumerableProperty();return installErrorCause=function(r,s){e(s)&&"cause"in s&&t(r,"cause",s.cause)}}function requireErrorStackClear(){if(hasRequiredErrorStackClear)return errorStackClear;hasRequiredErrorStackClear=1;var e=Error,t=requireFunctionUncurryThis()("".replace),r=String(new e("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,n=s.test(r);return errorStackClear=function(r,i){if(n&&"string"==typeof r&&!e.prepareStackTrace)for(;i--;)r=t(r,s,"");return r}}function requireErrorStackInstallable(){if(hasRequiredErrorStackInstallable)return errorStackInstallable;hasRequiredErrorStackInstallable=1;var e=requireFails(),t=requireCreatePropertyDescriptor();return errorStackInstallable=!e((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)}))}function requireErrorStackInstall(){if(hasRequiredErrorStackInstall)return errorStackInstall;hasRequiredErrorStackInstall=1;var e=requireCreateNonEnumerableProperty(),t=requireErrorStackClear(),r=requireErrorStackInstallable(),s=Error.captureStackTrace;return errorStackInstall=function(n,i,a,o){r&&(s?s(n,i):e(n,"stack",t(a,o)))}}function requireIterators(){return hasRequiredIterators?iterators:(hasRequiredIterators=1,iterators={})}function requireIsArrayIteratorMethod(){if(hasRequiredIsArrayIteratorMethod)return isArrayIteratorMethod;hasRequiredIsArrayIteratorMethod=1;var e=requireWellKnownSymbol(),t=requireIterators(),r=e("iterator"),s=Array.prototype;return isArrayIteratorMethod=function(e){return void 0!==e&&(t.Array===e||s[r]===e)}}function requireToStringTagSupport(){if(hasRequiredToStringTagSupport)return toStringTagSupport;hasRequiredToStringTagSupport=1;var e={};return e[requireWellKnownSymbol()("toStringTag")]="z",toStringTagSupport="[object z]"===String(e)}function requireClassof(){if(hasRequiredClassof)return classof;hasRequiredClassof=1;var e=requireToStringTagSupport(),t=requireIsCallable(),r=requireClassofRaw(),s=requireWellKnownSymbol()("toStringTag"),n=Object,i="Arguments"===r(function(){return arguments}());return classof=e?r:function(e){var a,o,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(a=n(e),s))?o:i?r(a):"Object"===(u=r(a))&&t(a.callee)?"Arguments":u}}function requireGetIteratorMethod(){if(hasRequiredGetIteratorMethod)return getIteratorMethod;hasRequiredGetIteratorMethod=1;var e=requireClassof(),t=requireGetMethod(),r=requireIsNullOrUndefined(),s=requireIterators(),n=requireWellKnownSymbol()("iterator");return getIteratorMethod=function(i){if(!r(i))return t(i,n)||t(i,"@@iterator")||s[e(i)]}}function requireGetIterator(){if(hasRequiredGetIterator)return getIterator;hasRequiredGetIterator=1;var e=requireFunctionCall(),t=requireACallable(),r=requireAnObject(),s=requireTryToString(),n=requireGetIteratorMethod(),i=TypeError;return getIterator=function(a,o){var u=arguments.length<2?n(a):o;if(t(u))return r(e(u,a));throw new i(s(a)+" is not iterable")},getIterator}function requireIteratorClose(){if(hasRequiredIteratorClose)return iteratorClose;hasRequiredIteratorClose=1;var e=requireFunctionCall(),t=requireAnObject(),r=requireGetMethod();return iteratorClose=function(s,n,i){var a,o;t(s);try{if(!(a=r(s,"return"))){if("throw"===n)throw i;return i}a=e(a,s)}catch(e){o=!0,a=e}if("throw"===n)throw i;if(o)throw a;return t(a),i}}function requireIterate(){if(hasRequiredIterate)return iterate;hasRequiredIterate=1;var e=requireFunctionBindContext(),t=requireFunctionCall(),r=requireAnObject(),s=requireTryToString(),n=requireIsArrayIteratorMethod(),i=requireLengthOfArrayLike(),a=requireObjectIsPrototypeOf(),o=requireGetIterator(),u=requireGetIteratorMethod(),c=requireIteratorClose(),l=TypeError,d=function(e,t){this.stopped=e,this.result=t},h=d.prototype;return iterate=function(m,p,_){var g,f,y,b,E,q,S,v=_&&_.that,w=!(!_||!_.AS_ENTRIES),O=!(!_||!_.IS_RECORD),R=!(!_||!_.IS_ITERATOR),x=!(!_||!_.INTERRUPTED),A=e(p,v),I=function(e){return g&&c(g,"normal",e),new d(!0,e)},T=function(e){return w?(r(e),x?A(e[0],e[1],I):A(e[0],e[1])):x?A(e,I):A(e)};if(O)g=m.iterator;else if(R)g=m;else{if(!(f=u(m)))throw new l(s(m)+" is not iterable");if(n(f)){for(y=0,b=i(m);b>y;y++)if((E=T(m[y]))&&a(h,E))return E;return new d(!1)}g=o(m,f)}for(q=O?m.next:g.next;!(S=t(q,g)).done;){try{E=T(S.value)}catch(e){c(g,"throw",e)}if("object"==typeof E&&E&&a(h,E))return E}return new d(!1)}}function requireToString(){if(hasRequiredToString)return toString;hasRequiredToString=1;var e=requireClassof(),t=String;return toString=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function requireNormalizeStringArgument(){if(hasRequiredNormalizeStringArgument)return normalizeStringArgument;hasRequiredNormalizeStringArgument=1;var e=requireToString();return normalizeStringArgument=function(t,r){return void 0===t?arguments.length<2?"":r:e(t)},normalizeStringArgument}function requireEs_aggregateError_constructor(){if(hasRequiredEs_aggregateError_constructor)return es_aggregateError_constructor;hasRequiredEs_aggregateError_constructor=1;var e=require_export(),t=requireObjectIsPrototypeOf(),r=requireObjectGetPrototypeOf(),s=requireObjectSetPrototypeOf(),n=requireCopyConstructorProperties(),i=requireObjectCreate(),a=requireCreateNonEnumerableProperty(),o=requireCreatePropertyDescriptor(),u=requireInstallErrorCause(),c=requireErrorStackInstall(),l=requireIterate(),d=requireNormalizeStringArgument(),h=requireWellKnownSymbol()("toStringTag"),m=Error,p=[].push,_=function(e,n){var o,f=t(g,this);s?o=s(new m,f?r(this):g):(o=f?this:i(g),a(o,h,"Error")),void 0!==n&&a(o,"message",d(n)),c(o,_,o.stack,1),arguments.length>2&&u(o,arguments[2]);var y=[];return l(e,p,{that:y}),a(o,"errors",y),o};s?s(_,m):n(_,m,{name:!0});var g=_.prototype=i(m.prototype,{constructor:o(1,_),message:o(1,""),name:o(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:_}),es_aggregateError_constructor}function requireEs_aggregateError(){return hasRequiredEs_aggregateError||(hasRequiredEs_aggregateError=1,requireEs_aggregateError_constructor()),es_aggregateError}function requireEsnext_aggregateError(){return hasRequiredEsnext_aggregateError||(hasRequiredEsnext_aggregateError=1,requireEs_aggregateError()),esnext_aggregateError}var es_error_cause={},proxyAccessor,hasRequiredProxyAccessor,inheritIfRequired,hasRequiredInheritIfRequired,wrapErrorConstructorWithCause,hasRequiredWrapErrorConstructorWithCause,hasRequiredEs_error_cause;function requireProxyAccessor(){if(hasRequiredProxyAccessor)return proxyAccessor;hasRequiredProxyAccessor=1;var e=requireObjectDefineProperty().f;return proxyAccessor=function(t,r,s){s in t||e(t,s,{configurable:!0,get:function(){return r[s]},set:function(e){r[s]=e}})}}function requireInheritIfRequired(){if(hasRequiredInheritIfRequired)return inheritIfRequired;hasRequiredInheritIfRequired=1;var e=requireIsCallable(),t=requireIsObject(),r=requireObjectSetPrototypeOf();return inheritIfRequired=function(s,n,i){var a,o;return r&&e(a=n.constructor)&&a!==i&&t(o=a.prototype)&&o!==i.prototype&&r(s,o),s}}function requireWrapErrorConstructorWithCause(){if(hasRequiredWrapErrorConstructorWithCause)return wrapErrorConstructorWithCause;hasRequiredWrapErrorConstructorWithCause=1;var e=requireGetBuiltIn(),t=requireHasOwnProperty(),r=requireCreateNonEnumerableProperty(),s=requireObjectIsPrototypeOf(),n=requireObjectSetPrototypeOf(),i=requireCopyConstructorProperties(),a=requireProxyAccessor(),o=requireInheritIfRequired(),u=requireNormalizeStringArgument(),c=requireInstallErrorCause(),l=requireErrorStackInstall(),d=requireDescriptors(),h=requireIsPure();return wrapErrorConstructorWithCause=function(m,p,_,g){var f="stackTraceLimit",y=g?2:1,b=m.split("."),E=b[b.length-1],q=e.apply(null,b);if(q){var S=q.prototype;if(!h&&t(S,"cause")&&delete S.cause,!_)return q;var v=e("Error"),w=p((function(e,t){var n=u(g?t:e,void 0),i=g?new q(e):new q;return void 0!==n&&r(i,"message",n),l(i,w,i.stack,2),this&&s(S,this)&&o(i,this,w),arguments.length>y&&c(i,arguments[y]),i}));if(w.prototype=S,"Error"!==E?n?n(w,v):i(w,v,{name:!0}):d&&f in q&&(a(w,q,f),a(w,q,"prepareStackTrace")),i(w,q),!h)try{S.name!==E&&r(S,"name",E),S.constructor=w}catch(e){}return w}},wrapErrorConstructorWithCause}function requireEs_error_cause(){if(hasRequiredEs_error_cause)return es_error_cause;hasRequiredEs_error_cause=1;var e=require_export(),t=requireGlobalThis(),r=requireFunctionApply(),s=requireWrapErrorConstructorWithCause(),n="WebAssembly",i=t[n],a=7!==new Error("e",{cause:7}).cause,o=function(t,r){var n={};n[t]=s(t,r,a),e({global:!0,constructor:!0,arity:1,forced:a},n)},u=function(t,r){if(i&&i[t]){var o={};o[t]=s(n+"."+t,r,a),e({target:n,stat:!0,constructor:!0,arity:1,forced:a},o)}};return o("Error",(function(e){return function(t){return r(e,this,arguments)}})),o("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),o("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),o("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),o("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),o("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),o("URIError",(function(e){return function(t){return r(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}})),es_error_cause}var es_aggregateError_cause={},hasRequiredEs_aggregateError_cause,addToUnscopables,hasRequiredAddToUnscopables,weakMapBasicDetection,hasRequiredWeakMapBasicDetection,internalState,hasRequiredInternalState,functionName,hasRequiredFunctionName,defineBuiltIn,hasRequiredDefineBuiltIn,iteratorsCore,hasRequiredIteratorsCore,objectToString,hasRequiredObjectToString,setToStringTag,hasRequiredSetToStringTag,iteratorCreateConstructor,hasRequiredIteratorCreateConstructor,iteratorDefine,hasRequiredIteratorDefine,createIterResultObject,hasRequiredCreateIterResultObject,es_array_iterator,hasRequiredEs_array_iterator;function requireEs_aggregateError_cause(){if(hasRequiredEs_aggregateError_cause)return es_aggregateError_cause;hasRequiredEs_aggregateError_cause=1;var e=require_export(),t=requireGetBuiltIn(),r=requireFunctionApply(),s=requireFails(),n=requireWrapErrorConstructorWithCause(),i="AggregateError",a=t(i),o=!s((function(){return 1!==a([1]).errors[0]}))&&s((function(){return 7!==a([1],i,{cause:7}).cause}));return e({global:!0,constructor:!0,arity:2,forced:o},{AggregateError:n(i,(function(e){return function(t,s){return r(e,this,arguments)}}),o,!0)}),es_aggregateError_cause}function requireAddToUnscopables(){return hasRequiredAddToUnscopables?addToUnscopables:(hasRequiredAddToUnscopables=1,addToUnscopables=function(){})}function requireWeakMapBasicDetection(){if(hasRequiredWeakMapBasicDetection)return weakMapBasicDetection;hasRequiredWeakMapBasicDetection=1;var e=requireGlobalThis(),t=requireIsCallable(),r=e.WeakMap;return weakMapBasicDetection=t(r)&&/native code/.test(String(r))}function requireInternalState(){if(hasRequiredInternalState)return internalState;hasRequiredInternalState=1;var e,t,r,s=requireWeakMapBasicDetection(),n=requireGlobalThis(),i=requireIsObject(),a=requireCreateNonEnumerableProperty(),o=requireHasOwnProperty(),u=requireSharedStore(),c=requireSharedKey(),l=requireHiddenKeys(),d="Object already initialized",h=n.TypeError,m=n.WeakMap;if(s||u.state){var p=u.state||(u.state=new m);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new h(d);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var _=c("state");l[_]=!0,e=function(e,t){if(o(e,_))throw new h(d);return t.facade=e,a(e,_,t),t},t=function(e){return o(e,_)?e[_]:{}},r=function(e){return o(e,_)}}return internalState={set:e,get:t,has:r,enforce:function(s){return r(s)?t(s):e(s,{})},getterFor:function(e){return function(r){var s;if(!i(r)||(s=t(r)).type!==e)throw new h("Incompatible receiver, "+e+" required");return s}}}}function requireFunctionName(){if(hasRequiredFunctionName)return functionName;hasRequiredFunctionName=1;var e=requireDescriptors(),t=requireHasOwnProperty(),r=Function.prototype,s=e&&Object.getOwnPropertyDescriptor,n=t(r,"name"),i=n&&"something"===function(){}.name,a=n&&(!e||e&&s(r,"name").configurable);return functionName={EXISTS:n,PROPER:i,CONFIGURABLE:a}}function requireDefineBuiltIn(){if(hasRequiredDefineBuiltIn)return defineBuiltIn;hasRequiredDefineBuiltIn=1;var e=requireCreateNonEnumerableProperty();return defineBuiltIn=function(t,r,s,n){return n&&n.enumerable?t[r]=s:e(t,r,s),t}}function requireIteratorsCore(){if(hasRequiredIteratorsCore)return iteratorsCore;hasRequiredIteratorsCore=1;var e,t,r,s=requireFails(),n=requireIsCallable(),i=requireIsObject(),a=requireObjectCreate(),o=requireObjectGetPrototypeOf(),u=requireDefineBuiltIn(),c=requireWellKnownSymbol(),l=requireIsPure(),d=c("iterator"),h=!1;return[].keys&&("next"in(r=[].keys())?(t=o(o(r)))!==Object.prototype&&(e=t):h=!0),!i(e)||s((function(){var t={};return e[d].call(t)!==t}))?e={}:l&&(e=a(e)),n(e[d])||u(e,d,(function(){return this})),iteratorsCore={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function requireObjectToString(){if(hasRequiredObjectToString)return objectToString;hasRequiredObjectToString=1;var e=requireToStringTagSupport(),t=requireClassof();return objectToString=e?{}.toString:function(){return"[object "+t(this)+"]"}}function requireSetToStringTag(){if(hasRequiredSetToStringTag)return setToStringTag;hasRequiredSetToStringTag=1;var e=requireToStringTagSupport(),t=requireObjectDefineProperty().f,r=requireCreateNonEnumerableProperty(),s=requireHasOwnProperty(),n=requireObjectToString(),i=requireWellKnownSymbol()("toStringTag");return setToStringTag=function(a,o,u,c){var l=u?a:a&&a.prototype;l&&(s(l,i)||t(l,i,{configurable:!0,value:o}),c&&!e&&r(l,"toString",n))}}function requireIteratorCreateConstructor(){if(hasRequiredIteratorCreateConstructor)return iteratorCreateConstructor;hasRequiredIteratorCreateConstructor=1;var e=requireIteratorsCore().IteratorPrototype,t=requireObjectCreate(),r=requireCreatePropertyDescriptor(),s=requireSetToStringTag(),n=requireIterators(),i=function(){return this};return iteratorCreateConstructor=function(a,o,u,c){var l=o+" Iterator";return a.prototype=t(e,{next:r(+!c,u)}),s(a,l,!1,!0),n[l]=i,a}}function requireIteratorDefine(){if(hasRequiredIteratorDefine)return iteratorDefine;hasRequiredIteratorDefine=1;var e=require_export(),t=requireFunctionCall(),r=requireIsPure(),s=requireFunctionName(),n=requireIsCallable(),i=requireIteratorCreateConstructor(),a=requireObjectGetPrototypeOf(),o=requireObjectSetPrototypeOf(),u=requireSetToStringTag(),c=requireCreateNonEnumerableProperty(),l=requireDefineBuiltIn(),d=requireWellKnownSymbol(),h=requireIterators(),m=requireIteratorsCore(),p=s.PROPER,_=s.CONFIGURABLE,g=m.IteratorPrototype,f=m.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",E="values",q="entries",S=function(){return this};return iteratorDefine=function(s,d,m,v,w,O,R){i(m,d,v);var x,A,I,T=function(e){if(e===w&&N)return N;if(!f&&e&&e in C)return C[e];switch(e){case b:case E:case q:return function(){return new m(this,e)}}return function(){return new m(this)}},M=d+" Iterator",j=!1,C=s.prototype,P=C[y]||C["@@iterator"]||w&&C[w],N=!f&&P||T(w),k="Array"===d&&C.entries||P;if(k&&(x=a(k.call(new s)))!==Object.prototype&&x.next&&(r||a(x)===g||(o?o(x,g):n(x[y])||l(x,y,S)),u(x,M,!0,!0),r&&(h[M]=S)),p&&w===E&&P&&P.name!==E&&(!r&&_?c(C,"name",E):(j=!0,N=function(){return t(P,this)})),w)if(A={values:T(E),keys:O?N:T(b),entries:T(q)},R)for(I in A)(f||j||!(I in C))&&l(C,I,A[I]);else e({target:d,proto:!0,forced:f||j},A);return r&&!R||C[y]===N||l(C,y,N,{name:w}),h[d]=N,A}}function requireCreateIterResultObject(){return hasRequiredCreateIterResultObject?createIterResultObject:(hasRequiredCreateIterResultObject=1,createIterResultObject=function(e,t){return{value:e,done:t}})}function requireEs_array_iterator(){if(hasRequiredEs_array_iterator)return es_array_iterator;hasRequiredEs_array_iterator=1;var e=requireToIndexedObject(),t=requireAddToUnscopables(),r=requireIterators(),s=requireInternalState(),n=requireObjectDefineProperty().f,i=requireIteratorDefine(),a=requireCreateIterResultObject(),o=requireIsPure(),u=requireDescriptors(),c="Array Iterator",l=s.set,d=s.getterFor(c);es_array_iterator=i(Array,"Array",(function(t,r){l(this,{type:c,target:e(t),index:0,kind:r})}),(function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(r,!1);case"values":return a(t[r],!1)}return a([r,t[r]],!1)}),"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!o&&u&&"values"!==h.name)try{n(h,"name",{value:"values"})}catch(e){}return es_array_iterator}var es_string_iterator={},stringMultibyte,hasRequiredStringMultibyte,hasRequiredEs_string_iterator,aggregateError$5,hasRequiredAggregateError$5;function requireStringMultibyte(){if(hasRequiredStringMultibyte)return stringMultibyte;hasRequiredStringMultibyte=1;var e=requireFunctionUncurryThis(),t=requireToIntegerOrInfinity(),r=requireToString(),s=requireRequireObjectCoercible(),n=e("".charAt),i=e("".charCodeAt),a=e("".slice),o=function(e){return function(o,u){var c,l,d=r(s(o)),h=t(u),m=d.length;return h<0||h>=m?e?"":void 0:(c=i(d,h))<55296||c>56319||h+1===m||(l=i(d,h+1))<56320||l>57343?e?n(d,h):c:e?a(d,h,h+2):l-56320+(c-55296<<10)+65536}};return stringMultibyte={codeAt:o(!1),charAt:o(!0)}}function requireEs_string_iterator(){if(hasRequiredEs_string_iterator)return es_string_iterator;hasRequiredEs_string_iterator=1;var e=requireStringMultibyte().charAt,t=requireToString(),r=requireInternalState(),s=requireIteratorDefine(),n=requireCreateIterResultObject(),i="String Iterator",a=r.set,o=r.getterFor(i);return s(String,"String",(function(e){a(this,{type:i,string:t(e),index:0})}),(function(){var t,r=o(this),s=r.string,i=r.index;return i>=s.length?n(void 0,!0):(t=e(s,i),r.index+=t.length,n(t,!1))})),es_string_iterator}function requireAggregateError$5(){return hasRequiredAggregateError$5?aggregateError$5:(hasRequiredAggregateError$5=1,requireEs_error_cause(),requireEs_aggregateError(),requireEs_aggregateError_cause(),requireEs_array_iterator(),requireEs_string_iterator(),aggregateError$5=requirePath().AggregateError)}var web_domCollections_iterator={},domIterables,hasRequiredDomIterables,hasRequiredWeb_domCollections_iterator,aggregateError$4,hasRequiredAggregateError$4,aggregateError$3,hasRequiredAggregateError$3,aggregateError$2,hasRequiredAggregateError$2,aggregateError$1,hasRequiredAggregateError$1,aggregateError,hasRequiredAggregateError;function requireDomIterables(){return hasRequiredDomIterables?domIterables:(hasRequiredDomIterables=1,domIterables={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})}function requireWeb_domCollections_iterator(){if(hasRequiredWeb_domCollections_iterator)return web_domCollections_iterator;hasRequiredWeb_domCollections_iterator=1,requireEs_array_iterator();var e=requireDomIterables(),t=requireGlobalThis(),r=requireSetToStringTag(),s=requireIterators();for(var n in e)r(t[n],n),s[n]=s.Array;return web_domCollections_iterator}function requireAggregateError$4(){if(hasRequiredAggregateError$4)return aggregateError$4;hasRequiredAggregateError$4=1,requireEsnext_aggregateError();var e=requireAggregateError$5();return requireWeb_domCollections_iterator(),aggregateError$4=e}function requireAggregateError$3(){return hasRequiredAggregateError$3?aggregateError$3:(hasRequiredAggregateError$3=1,aggregateError$3=requireAggregateError$4())}function requireAggregateError$2(){return hasRequiredAggregateError$2?aggregateError$2:(hasRequiredAggregateError$2=1,requireEsnext_aggregateError(),aggregateError$2=requireAggregateError$3())}function requireAggregateError$1(){return hasRequiredAggregateError$1?aggregateError$1:(hasRequiredAggregateError$1=1,aggregateError$1=requireAggregateError$2())}function requireAggregateError(){return hasRequiredAggregateError?aggregateError:(hasRequiredAggregateError=1,aggregateError=requireAggregateError$1())}var aggregateErrorExports=requireAggregateError();const _AggregateError=getDefaultExportFromCjs(aggregateErrorExports);class ApiDOMAggregateError extends _AggregateError{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 ApiDOMError extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ApiDOMAggregateError,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}`)}}}class ApiDOMStructuredError extends ApiDOMError{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}class UnsupportedOperationError extends ApiDOMError{}class NotImplementedError extends UnsupportedOperationError{}class Literal extends Node{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}}let Error$1=class extends Node{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}};class ParseResult extends Node{static type="parseResult";get rootNode(){return head(this.children)}}const getVisitFn=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},BREAK={},getNodeType$4=e=>null==e?void 0:e.type,isNode$3=e=>"string"==typeof getNodeType$4(e),cloneNode$1=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),mergeAll=(e,{visitFnGetter:t=getVisitFn,nodeTypeGetter:r=getNodeType$4,breakSymbol:s=BREAK,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{enter(c,l,d,h,m,p){let _=c,g=!1;const f={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let c=0;c<e.length;c+=1)if(u[c]===o){const o=t(e[c],r(_),!1);if("function"==typeof o){const t=o.call(e[c],_,l,d,h,m,f);if("function"==typeof(null==t?void 0:t.then))throw new ApiDOMStructuredError("Async visitor not supported in sync mode",{visitor:e[c],visitFn:o});if(t===i)u[c]=_;else if(t===s)u[c]=s;else{if(t===n)return t;if(void 0!==t){if(!a)return t;_=t,g=!0}}}}return g?_:void 0},leave(n,a,c,l,d,h){let m=n;const p={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(u[n]===o){const o=t(e[n],r(m),!0);if("function"==typeof o){const t=o.call(e[n],m,a,c,l,d,p);if("function"==typeof(null==t?void 0:t.then))throw new ApiDOMStructuredError("Async visitor not supported in sync mode",{visitor:e[n],visitFn:o});if(t===s)u[n]=s;else if(void 0!==t&&t!==i)return t}}else u[n]===m&&(u[n]=o)}}},mergeAllAsync=(e,{visitFnGetter:t=getVisitFn,nodeTypeGetter:r=getNodeType$4,breakSymbol:s=BREAK,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{async enter(c,l,d,h,m,p){let _=c,g=!1;const f={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let c=0;c<e.length;c+=1)if(u[c]===o){const o=t(e[c],r(_),!1);if("function"==typeof o){const t=await o.call(e[c],_,l,d,h,m,f);if(t===i)u[c]=_;else if(t===s)u[c]=s;else{if(t===n)return t;if(void 0!==t){if(!a)return t;_=t,g=!0}}}}return g?_:void 0},async leave(n,a,c,l,d,h){let m=n;const p={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(u[n]===o){const o=t(e[n],r(m),!0);if("function"==typeof o){const t=await o.call(e[n],m,a,c,l,d,p);if(t===s)u[n]=s;else if(void 0!==t&&t!==i)return t}}else u[n]===m&&(u[n]=o)}}};mergeAll[Symbol.for("nodejs.util.promisify.custom")]=mergeAllAsync;const visit$2=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=BREAK,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=getVisitFn,nodeTypeGetter:u=getNodeType$4,nodePredicate:c=isNode$3,nodeCloneFn:l=cloneNode$1,detectCycles:d=!0,detectCyclesCallback:h=null}={})=>{const m=r||{};let p,_,g=Array.isArray(e),f=[e],y=-1,b=[],E=e;const q=[],S=[];do{y+=1;const e=y===f.length;let r;const O=e&&0!==b.length;if(e){if(r=0===S.length?void 0:q.pop(),E=_,_=S.pop(),O)if(g){E=E.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(E.splice(s,1),e+=1):E[s]=r}}else{E=l(E);for(const[e,t]of b)E[e]=t}y=p.index,f=p.keys,b=p.edits,g=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(r=g?y:f[y],E=_[r],E===i||void 0===E)continue;q.push(r)}let R;if(!Array.isArray(E)){var v;if(!c(E))throw new ApiDOMStructuredError(`Invalid AST Node: ${String(E)}`,{node:E});if(d&&S.includes(E)){"function"==typeof h&&h(E,r,_,q,S),q.pop();continue}const i=o(t,u(E),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,E,r,_,q,S):_&&(_[r]=t),e||(E=t)}};R=i.call(t,E,r,_,q,S,n)}if("function"==typeof(null===(v=R)||void 0===v?void 0:v.then))throw new ApiDOMStructuredError("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(R===n)break;if(R===a){if(!e){q.pop();continue}}else if(void 0!==R&&(b.push([r,R]),!e)){if(!c(R)){q.pop();continue}E=R}}var w;if(void 0===R&&O&&b.push([r,E]),!e)p={inArray:g,index:y,keys:f,edits:b,prev:p},g=Array.isArray(E),f=g?E:null!==(w=m[u(E)])&&void 0!==w?w:[],y=-1,b=[],_!==i&&void 0!==_&&S.push(_),_=E}while(void 0!==p);return 0!==b.length?b[b.length-1][1]:e};visit$2[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=BREAK,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=getVisitFn,nodeTypeGetter:u=getNodeType$4,nodePredicate:c=isNode$3,nodeCloneFn:l=cloneNode$1,detectCycles:d=!0,detectCyclesCallback:h=null}={})=>{const m=r||{};let p,_,g=Array.isArray(e),f=[e],y=-1,b=[],E=e;const q=[],S=[];do{y+=1;const e=y===f.length;let r;const w=e&&0!==b.length;if(e){if(r=0===S.length?void 0:q.pop(),E=_,_=S.pop(),w)if(g){E=E.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(E.splice(s,1),e+=1):E[s]=r}}else{E=l(E);for(const[e,t]of b)E[e]=t}y=p.index,f=p.keys,b=p.edits,g=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(r=g?y:f[y],E=_[r],E===i||void 0===E)continue;q.push(r)}let O;if(!Array.isArray(E)){if(!c(E))throw new ApiDOMStructuredError(`Invalid AST Node: ${String(E)}`,{node:E});if(d&&S.includes(E)){"function"==typeof h&&h(E,r,_,q,S),q.pop();continue}const i=o(t,u(E),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,E,r,_,q,S):_&&(_[r]=t),e||(E=t)}};O=await i.call(t,E,r,_,q,S,n)}if(O===n)break;if(O===a){if(!e){q.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!e)){if(!c(O)){q.pop();continue}E=O}}var v;if(void 0===O&&w&&b.push([r,E]),!e)p={inArray:g,index:y,keys:f,edits:b,prev:p},g=Array.isArray(E),f=g?E:null!==(v=m[u(E)])&&void 0!==v?v:[],y=-1,b=[],_!==i&&void 0!==_&&S.push(_),_=E}while(void 0!==p);return 0!==b.length?b[b.length-1][1]:e};class CloneError extends ApiDOMStructuredError{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class DeepCloneError extends CloneError{}class ShallowCloneError extends CloneError{}const dereference=(e,t)=>{const r=defaultTo(e,t);return mapObjIndexed((e=>{if(isPlainObj(e)&&has("$ref",e)&&propSatisfies(isString$1,"$ref",e)){const t=path$1(["$ref"],e),s=trimCharsStart("#/",t);return path$1(s.split("/"),r)}return isPlainObj(e)?dereference(e,r):e}),e)},assignSourceMap=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),cloneDeep=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof minimExports.KeyValuePair){const{key:t,value:n}=e,i=isElement(t)?cloneDeep(t,s):t,a=isElement(n)?cloneDeep(n,s):n,o=new minimExports.KeyValuePair(i,a);return r.set(e,o),o}if(e instanceof minimExports.ObjectSlice){const t=e=>cloneDeep(e,s),n=[...e].map(t),i=new minimExports.ObjectSlice(n);return r.set(e,i),i}if(e instanceof minimExports.ArraySlice){const t=e=>cloneDeep(e,s),n=[...e].map(t),i=new minimExports.ArraySlice(n);return r.set(e,i),i}if(isElement(e)){const t=cloneShallow(e);if(r.set(e,t),e.content)if(isElement(e.content))t.content=cloneDeep(e.content,s);else if(e.content instanceof minimExports.KeyValuePair)t.content=cloneDeep(e.content,s);else if(Array.isArray(e.content)){const r=e=>cloneDeep(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new DeepCloneError("Value provided to cloneDeep function couldn't be cloned",{value:e})};cloneDeep.safe=e=>{try{return cloneDeep(e)}catch{return e}};const cloneShallowKeyValuePair=e=>{const{key:t,value:r}=e;return new minimExports.KeyValuePair(t,r)},cloneShallowArraySlice=e=>{const t=[...e];return new minimExports.ArraySlice(t)},cloneShallowObjectSlice=e=>{const t=[...e];return new minimExports.ObjectSlice(t)},cloneShallowElement=e=>{const t=new e.constructor;if(t.element=e.element,hasElementSourceMap(e)&&assignSourceMap(t,e),e.meta.length>0&&(t._meta=cloneDeep(e.meta)),e.attributes.length>0&&(t._attributes=cloneDeep(e.attributes)),isElement(e.content)){const r=e.content;t.content=cloneShallowElement(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof minimExports.KeyValuePair?t.content=cloneShallowKeyValuePair(e.content):t.content=e.content;return t},cloneShallow=e=>{if(e instanceof minimExports.KeyValuePair)return cloneShallowKeyValuePair(e);if(e instanceof minimExports.ObjectSlice)return cloneShallowObjectSlice(e);if(e instanceof minimExports.ArraySlice)return cloneShallowArraySlice(e);if(isElement(e))return cloneShallowElement(e);throw new ShallowCloneError("Value provided to cloneShallow function couldn't be cloned",{value:e})};cloneShallow.safe=e=>{try{return cloneShallow(e)}catch{return e}};const getNodeType$3=e=>isObjectElement(e)?"ObjectElement":isArrayElement(e)?"ArrayElement":isMemberElement(e)?"MemberElement":isStringElement(e)?"StringElement":isBooleanElement(e)?"BooleanElement":isNumberElement(e)?"NumberElement":isNullElement(e)?"NullElement":isLinkElement(e)?"LinkElement":isRefElement(e)?"RefElement":void 0,cloneNode=e=>isElement(e)?cloneShallow(e):cloneNode$1(e),isNode$2=pipe(getNodeType$3,isString$1),keyMapDefault$1={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]},visit$1=(e,t,{keyMap:r=keyMapDefault$1,...s}={})=>visit$2(e,t,{keyMap:r,nodeTypeGetter:getNodeType$3,nodePredicate:isNode$2,nodeCloneFn:cloneNode,...s});visit$1[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=keyMapDefault$1,...s}={})=>visit$2[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:getNodeType$3,nodePredicate:isNode$2,nodeCloneFn:cloneNode,...s});const defaultDispatchPluginsOptions={toolboxCreator:createToolbox$3,visitorOptions:{nodeTypeGetter:getNodeType$3,exposeEdits:!0}},dispatchPluginsSync=(e,t,r={})=>{if(0===t.length)return e;const s=mergeDeepRight(defaultDispatchPluginsOptions,r),{toolboxCreator:n,visitorOptions:i}=s,a=n(),o=t.map((e=>e(a))),u=mergeAll(o.map(propOr({},"visitor")),{...i});o.forEach(invokeArgs(["pre"],[]));const c=visit$1(e,u,i);return o.forEach(invokeArgs(["post"],[])),c},dispatchPluginsAsync=async(e,t,r={})=>{if(0===t.length)return e;const s=mergeDeepRight(defaultDispatchPluginsOptions,r),{toolboxCreator:n,visitorOptions:i}=s,a=n(),o=t.map((e=>e(a))),u=mergeAll[Symbol.for("nodejs.util.promisify.custom")],c=visit$1[Symbol.for("nodejs.util.promisify.custom")],l=u(o.map(propOr({},"visitor")),{...i});await Promise.allSettled(o.map(invokeArgs(["pre"],[])));const d=await c(e,l,i);return await Promise.allSettled(o.map(invokeArgs(["post"],[]))),d};dispatchPluginsSync[Symbol.for("nodejs.util.promisify.custom")]=dispatchPluginsAsync;class MediaTypes extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new NotImplementedError("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new NotImplementedError("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new NotImplementedError("latest method in MediaTypes class is not yet implemented.")}}const refract$3=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return isElement(e)&&(e.meta.length>0&&(s.meta=cloneDeep(e.meta)),e.attributes.length>0&&(s.attributes=cloneDeep(e.attributes))),dispatchPluginsSync(s,r,{toolboxCreator:createToolbox$3,visitorOptions:{nodeTypeGetter:getNodeType$3}})},createRefractor$3=e=>(t,r={})=>refract$3(t,{...r,Type:e});minimExports.ObjectElement.refract=createRefractor$3(minimExports.ObjectElement),minimExports.ArrayElement.refract=createRefractor$3(minimExports.ArrayElement),minimExports.StringElement.refract=createRefractor$3(minimExports.StringElement),minimExports.BooleanElement.refract=createRefractor$3(minimExports.BooleanElement),minimExports.NullElement.refract=createRefractor$3(minimExports.NullElement),minimExports.NumberElement.refract=createRefractor$3(minimExports.NumberElement),minimExports.LinkElement.refract=createRefractor$3(minimExports.LinkElement),minimExports.RefElement.refract=createRefractor$3(minimExports.RefElement),Annotation.refract=createRefractor$3(Annotation),Comment.refract=createRefractor$3(Comment),ParseResult$1.refract=createRefractor$3(ParseResult$1);const nodeTypeGetter=e=>"string"==typeof(null==e?void 0:e.type)?e.type:getNodeType$3(e),keyMapDefault={EphemeralObject:["content"],EphemeralArray:["content"],...keyMapDefault$1},visit=(e,t,{keyMap:r=keyMapDefault,...s}={})=>visit$1(e,t,{keyMap:r,nodeTypeGetter:nodeTypeGetter,nodePredicate:T,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});visit[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=keyMapDefault,...r}={})=>visit$1[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:nodeTypeGetter,nodePredicate:T,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class EphemeralArray{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}}class EphemeralObject{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))}}let Visitor$1=class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new EphemeralObject(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 EphemeralArray(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 s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return isStringElement(e.href)?e.href.toValue():""}};const serializer=e=>isElement(e)?isStringElement(e)||isNumberElement(e)||isBooleanElement(e)||isNullElement(e)?e.toValue():visit(e,new Visitor$1):e,emptyElement=e=>{const t=e.meta.length>0?cloneDeep(e.meta):void 0,r=e.attributes.length>0?cloneDeep(e.attributes):void 0;return new e.constructor(void 0,t,r)},cloneUnlessOtherwiseSpecified=(e,t)=>t.clone&&t.isMergeableElement(e)?deepmerge(emptyElement(e),e,t):e,getMergeFunction=(e,t)=>{if("function"!=typeof t.customMerge)return deepmerge;const r=t.customMerge(e,t);return"function"==typeof r?r:deepmerge},getMetaMergeFunction=e=>"function"!=typeof e.customMetaMerge?e=>cloneDeep(e):e.customMetaMerge,getAttributesMergeFunction=e=>"function"!=typeof e.customAttributesMerge?e=>cloneDeep(e):e.customAttributesMerge,mergeArrayElement=(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>cloneUnlessOtherwiseSpecified(e,r))),mergeObjectElement=(e,t,r)=>{const s=isObjectElement(e)?emptyElement(e):emptyElement(t);return isObjectElement(e)&&e.forEach(((e,t,n)=>{const i=cloneShallow(n);i.value=cloneUnlessOtherwiseSpecified(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const a=serializer(n);let o;if(isObjectElement(e)&&e.hasKey(a)&&r.isMergeableElement(t)){const s=e.get(a);o=cloneShallow(i),o.value=getMergeFunction(n,r)(s,t,r)}else o=cloneShallow(i),o.value=cloneUnlessOtherwiseSpecified(t,r);s.remove(a),s.content.push(o)})),s},defaultOptions={clone:!0,isMergeableElement:e=>isObjectElement(e)||isArrayElement(e),arrayElementMerge:mergeArrayElement,objectElementMerge:mergeObjectElement,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},deepmerge=(e,t,r)=>{var s,n,i;const a={...defaultOptions,...r};a.isMergeableElement=null!==(s=a.isMergeableElement)&&void 0!==s?s:defaultOptions.isMergeableElement,a.arrayElementMerge=null!==(n=a.arrayElementMerge)&&void 0!==n?n:defaultOptions.arrayElementMerge,a.objectElementMerge=null!==(i=a.objectElementMerge)&&void 0!==i?i:defaultOptions.objectElementMerge;const o=isArrayElement(t);if(!(o===isArrayElement(e)))return cloneUnlessOtherwiseSpecified(t,a);const u=o&&"function"==typeof a.arrayElementMerge?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a);return u.meta=getMetaMergeFunction(a)(e.meta,t.meta),u.attributes=getAttributesMergeFunction(a)(e.attributes,t.attributes),u};deepmerge.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new minimExports.ObjectElement:e.reduce(((e,r)=>deepmerge(e,r,t)),emptyElement(e[0]))};const treeSitterWasm="undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/0327c07adfa215ef7ce8dfd6d8cbfc6b.wasm").href:new URL("0327c07adfa215ef7ce8dfd6d8cbfc6b.wasm","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href,realFetch=globalThis.fetch;isFunction(realFetch)&&(globalThis.fetch=(...e)=>isString$1(e[0])&&e[0].endsWith("tree-sitter.wasm")?realFetch.apply(globalThis,[treeSitterWasm,tail(e)]):realFetch.apply(globalThis,e));var treeSitter={exports:{}},hasRequiredTreeSitter;function requireTreeSitter(){return hasRequiredTreeSitter||(hasRequiredTreeSitter=1,function(module,exports$1){var Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=require$$0,nodePath=require$$1;scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((r,s)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?s(e):r(t?n.buffer:n)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,r)=>{var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=()=>{(200==s.status||0==s.status&&s.response)&&r(s.response),t(s.status)},s.onerror=t,s.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=new Uint16Array(e),Module.HEAP32=new Int32Array(e),Module.HEAPU32=new Uint32Array(e),Module.HEAPF32=new Float32Array(e),Module.HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,r,s){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,s):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(s,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,s)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency(),wasmExports}if(addRunDependency(),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,r)=>{for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var i="";t<n;){var a=e[t++];if(128&a){var o=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|o<<6|u:(7&a)<<18|o<<12|u<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|o)}else i+=String.fromCharCode(a)}return i},getDylinkMetadata=e=>{var t=0,r=0;function s(){for(var r=0,s=1;;){var n=e[t++];if(r+=(127&n)*s,s*=128,!(128&n))break}return r}function n(){var r=s();return UTF8ArrayToString(e,(t+=r)-r,r)}function i(e,t){if(e)throw new Error(t)}var a="dylink.0";if(e instanceof WebAssembly.Module){var o=WebAssembly.Module.customSections(e,a);0===o.length&&(a="dylink",o=WebAssembly.Module.customSections(e,a)),i(0===o.length,"need dylink section"),r=(e=new Uint8Array(o[0])).length}else{var u=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);i(!(1836278016==u[0]||6386541==u[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var c=s();r=t+c,a=n()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==a){l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();for(var d=s(),h=0;h<d;++h){var m=n();l.neededDynlibs.push(m)}}else{i("dylink.0"!==a);for(;t<r;){var p=e[t++],_=s();if(1===p)l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();else if(2===p)for(d=s(),h=0;h<d;++h)m=n(),l.neededDynlibs.push(m);else if(3===p)for(var g=s();g--;){var f=n();256&s()&&l.tlsExports.add(f)}else if(4===p)for(g=s();g--;){n();f=n();1==(3&s())&&l.weakImports.add(f)}else t+=_}}return l};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,r)=>{var s={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=s,null!=t&&(LDSO.loadedLibsByHandle[t]=s),s},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},s=1;s<e.length;++s)r.parameters.push(t[e[s]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),s=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(s.length,t);for(var i=0;i<s.length;++i)t.push(n[s[i]]);"v"==r?t.push(0):t.push(1,n[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var s=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,s),s.push(...r),s.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(s));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var s=getWasmTableEntry(r);s&&functionsInTableMap.set(s,r)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var s=getEmptyTableSlot();try{setWasmTableEntry(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(s,n)}return functionsInTableMap.set(e,s),s},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var s=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof s?GOT[r].value=addFunction(s):"number"==typeof s?GOT[r].value=s:err(`unhandled export type for '${r}': ${typeof s}`))}},relocateExports=(e,t,r)=>{var s={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),s[n]=i}return updateGOT(s,r),s},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,r)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t)(...r),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var s=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0,tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var r;t in e||(e[t]=(...e)=>(r||=resolveSymbol(t),r(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,s]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=s)};e(r);const t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=s)}},asyncLoad=(e,t,r,s)=>{var n=getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency()}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),n&&addRunDependency()};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,s){var n=LDSO.loadedLibsByName[e];if(n)return t.global&&(n.global||(n.global=!0,mergeLibSymbols(n.exports))),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,!t.loadAsync||Promise.resolve(!0);function i(){var r=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(r,e,t)}));if(!readBinary)throw new Error(`${r}: file not found, and synchronous loading of external files is not available`);return readBinary(r)}function a(){return t.loadAsync?i().then((s=>loadWebAssemblyModule(s,t,e,r))):loadWebAssemblyModule(i(),t,e,r)}function o(e){n.global&&mergeLibSymbols(e),n.exports=e}return(n=newDSO(e,s,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?a().then((e=>(o(e),!0))):(o(a()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error(`bad export type for '${e}': ${typeof r}`);t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency(),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency()}))):reportUndefinedSymbols()};function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${r}`)}}Module.noExitRuntime;var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,r)=>HEAPU8.copyWithin(e,t,t+r),_emscripten_get_now;__emscripten_memcpy_js.sig="vppp",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var s,n,i=1;i<=4;i*=2){var a=t*(1+.2/i);a=Math.min(a,e+100663296);var o=Math.min(r,(s=Math.max(e,a))+((n=65536)-s%n)%n);if(growMemory(o))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;function _fd_seek(e,t,r,s,n){return 70}_fd_close.sig="ii",_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},_fd_write=(e,t,r,s)=>{for(var n=0,i=0;i<r;i++){var a=LE_HEAP_LOAD_U32(4*(t>>2)),o=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var u=0;u<o;u++)printChar(e,HEAPU8[a+u]);n+=o}return LE_HEAP_STORE_U32(4*(s>>2),n),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,s,n){const i=currentParseCallback(t,{row:r,column:s});"string"==typeof i?(setValue(n,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(n,0,"i32")}_fd_write.sig="iippp";var _proc_exit=e=>{EXITSTATUS=e,quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,r=0;r<e.length;++r){var s=e.charCodeAt(r);s<=127?t++:s<=2047?t+=2:s>=55296&&s<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,s)=>{if(!(s>0))return 0;for(var n=r,i=r+s-1,a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o>=55296&&o<=57343)o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a);if(o<=127){if(r>=i)break;t[r++]=o}else if(o<=2047){if(r+1>=i)break;t[r++]=192|o>>6,t[r++]=128|63&o}else if(o<=65535){if(r+2>=i)break;t[r++]=224|o>>12,t[r++]=128|o>>6&63,t[r++]=128|63&o}else{if(r+3>=i)break;t[r++]=240|o>>18,t[r++]=128|o>>12&63,t[r++]=128|o>>6&63,t[r++]=128|63&o}}return t[r]=0,r-n},stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stringToUTF16=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var s=t,n=(r-=2)<2*e.length?r/2:e.length,i=0;i<n;++i){var a=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),a),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-s},AsciiToString=e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e);Module._calloc=(e,t)=>(Module._calloc=wasmExports.calloc)(e,t),Module._realloc=(e,t)=>(Module._realloc=wasmExports.realloc)(e,t),Module._free=e=>(Module._free=wasmExports.free)(e),Module._ts_language_symbol_count=e=>(Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),Module._ts_language_state_count=e=>(Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),Module._ts_language_version=e=>(Module._ts_language_version=wasmExports.ts_language_version)(e),Module._ts_language_field_count=e=>(Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),Module._ts_language_next_state=(e,t,r)=>(Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),Module._ts_language_symbol_name=(e,t)=>(Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),Module._ts_language_symbol_for_name=(e,t,r,s)=>(Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,s),Module._strncmp=(e,t,r)=>(Module._strncmp=wasmExports.strncmp)(e,t,r),Module._ts_language_symbol_type=(e,t)=>(Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),Module._ts_language_field_name_for_id=(e,t)=>(Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),Module._ts_lookahead_iterator_new=(e,t)=>(Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),Module._ts_lookahead_iterator_delete=e=>(Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),Module._ts_lookahead_iterator_reset_state=(e,t)=>(Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),Module._ts_lookahead_iterator_reset=(e,t,r)=>(Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),Module._ts_lookahead_iterator_next=e=>(Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),Module._ts_lookahead_iterator_current_symbol=e=>(Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),Module._memset=(e,t,r)=>(Module._memset=wasmExports.memset)(e,t,r),Module._memcpy=(e,t,r)=>(Module._memcpy=wasmExports.memcpy)(e,t,r),Module._ts_parser_delete=e=>(Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),Module._ts_parser_reset=e=>(Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),Module._ts_parser_set_language=(e,t)=>(Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),Module._ts_parser_timeout_micros=e=>(Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),Module._ts_parser_set_timeout_micros=(e,t,r)=>(Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),Module._ts_parser_set_included_ranges=(e,t,r)=>(Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),Module._memmove=(e,t,r)=>(Module._memmove=wasmExports.memmove)(e,t,r),Module._memcmp=(e,t,r)=>(Module._memcmp=wasmExports.memcmp)(e,t,r),Module._ts_query_new=(e,t,r,s,n)=>(Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,s,n),Module._ts_query_delete=e=>(Module._ts_query_delete=wasmExports.ts_query_delete)(e),Module._iswspace=e=>(Module._iswspace=wasmExports.iswspace)(e),Module._iswalnum=e=>(Module._iswalnum=wasmExports.iswalnum)(e),Module._ts_query_pattern_count=e=>(Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),Module._ts_query_capture_count=e=>(Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),Module._ts_query_string_count=e=>(Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),Module._ts_query_capture_name_for_id=(e,t,r)=>(Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),Module._ts_query_string_value_for_id=(e,t,r)=>(Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),Module._ts_query_predicates_for_pattern=(e,t,r)=>(Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),Module._ts_query_disable_capture=(e,t,r)=>(Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),Module._ts_tree_copy=e=>(Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),Module._ts_tree_delete=e=>(Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),Module._ts_init=()=>(Module._ts_init=wasmExports.ts_init)(),Module._ts_parser_new_wasm=()=>(Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),Module._ts_parser_enable_logger_wasm=(e,t)=>(Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),Module._ts_parser_parse_wasm=(e,t,r,s,n)=>(Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,s,n),Module._ts_parser_included_ranges_wasm=e=>(Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),Module._ts_language_type_is_named_wasm=(e,t)=>(Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),Module._ts_language_type_is_visible_wasm=(e,t)=>(Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),Module._ts_tree_root_node_wasm=e=>(Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),Module._ts_tree_root_node_with_offset_wasm=e=>(Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),Module._ts_tree_edit_wasm=e=>(Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),Module._ts_tree_included_ranges_wasm=e=>(Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),Module._ts_tree_cursor_new_wasm=e=>(Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),Module._ts_tree_cursor_delete_wasm=e=>(Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),Module._ts_tree_cursor_reset_wasm=e=>(Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),Module._ts_tree_cursor_goto_first_child_wasm=e=>(Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),Module._ts_tree_cursor_goto_last_child_wasm=e=>(Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),Module._ts_tree_cursor_goto_parent_wasm=e=>(Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),Module._ts_tree_cursor_current_node_type_id_wasm=e=>(Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),Module._ts_tree_cursor_current_node_state_id_wasm=e=>(Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),Module._ts_tree_cursor_current_node_is_named_wasm=e=>(Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),Module._ts_tree_cursor_current_node_id_wasm=e=>(Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),Module._ts_tree_cursor_start_position_wasm=e=>(Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),Module._ts_tree_cursor_end_position_wasm=e=>(Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),Module._ts_tree_cursor_start_index_wasm=e=>(Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),Module._ts_tree_cursor_end_index_wasm=e=>(Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),Module._ts_tree_cursor_current_field_id_wasm=e=>(Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),Module._ts_tree_cursor_current_depth_wasm=e=>(Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),Module._ts_tree_cursor_current_descendant_index_wasm=e=>(Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),Module._ts_tree_cursor_current_node_wasm=e=>(Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),Module._ts_node_symbol_wasm=e=>(Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),Module._ts_node_field_name_for_child_wasm=(e,t)=>(Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),Module._ts_node_children_by_field_id_wasm=(e,t)=>(Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),Module._ts_node_first_child_for_byte_wasm=e=>(Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),Module._ts_node_first_named_child_for_byte_wasm=e=>(Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),Module._ts_node_grammar_symbol_wasm=e=>(Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),Module._ts_node_child_count_wasm=e=>(Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),Module._ts_node_named_child_count_wasm=e=>(Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),Module._ts_node_child_wasm=(e,t)=>(Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),Module._ts_node_named_child_wasm=(e,t)=>(Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),Module._ts_node_child_by_field_id_wasm=(e,t)=>(Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),Module._ts_node_next_sibling_wasm=e=>(Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),Module._ts_node_prev_sibling_wasm=e=>(Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),Module._ts_node_next_named_sibling_wasm=e=>(Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),Module._ts_node_prev_named_sibling_wasm=e=>(Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),Module._ts_node_descendant_count_wasm=e=>(Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),Module._ts_node_parent_wasm=e=>(Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),Module._ts_node_descendant_for_index_wasm=e=>(Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),Module._ts_node_named_descendant_for_index_wasm=e=>(Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),Module._ts_node_descendant_for_position_wasm=e=>(Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),Module._ts_node_named_descendant_for_position_wasm=e=>(Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),Module._ts_node_start_point_wasm=e=>(Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),Module._ts_node_end_point_wasm=e=>(Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),Module._ts_node_start_index_wasm=e=>(Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),Module._ts_node_end_index_wasm=e=>(Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),Module._ts_node_to_string_wasm=e=>(Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),Module._ts_node_children_wasm=e=>(Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),Module._ts_node_named_children_wasm=e=>(Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),Module._ts_node_descendants_of_type_wasm=(e,t,r,s,n,i,a)=>(Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,s,n,i,a),Module._ts_node_is_named_wasm=e=>(Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),Module._ts_node_has_changes_wasm=e=>(Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),Module._ts_node_has_error_wasm=e=>(Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),Module._ts_node_is_error_wasm=e=>(Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),Module._ts_node_is_missing_wasm=e=>(Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),Module._ts_node_is_extra_wasm=e=>(Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),Module._ts_node_parse_state_wasm=e=>(Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),Module._ts_node_next_parse_state_wasm=e=>(Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),Module._ts_query_matches_wasm=(e,t,r,s,n,i,a,o,u,c,l)=>(Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,s,n,i,a,o,u,c,l),Module._ts_query_captures_wasm=(e,t,r,s,n,i,a,o,u,c,l)=>(Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,s,n,i,a,o,u,c,l),Module._iswalpha=e=>(Module._iswalpha=wasmExports.iswalpha)(e),Module._iswblank=e=>(Module._iswblank=wasmExports.iswblank)(e),Module._iswdigit=e=>(Module._iswdigit=wasmExports.iswdigit)(e),Module._iswlower=e=>(Module._iswlower=wasmExports.iswlower)(e),Module._iswupper=e=>(Module._iswupper=wasmExports.iswupper)(e),Module._iswxdigit=e=>(Module._iswxdigit=wasmExports.iswxdigit)(e),Module._memchr=(e,t,r)=>(Module._memchr=wasmExports.memchr)(e,t,r),Module._strlen=e=>(Module._strlen=wasmExports.strlen)(e),Module._strcmp=(e,t)=>(Module._strcmp=wasmExports.strcmp)(e,t),Module._strncat=(e,t,r)=>(Module._strncat=wasmExports.strncat)(e,t,r),Module._strncpy=(e,t,r)=>(Module._strncpy=wasmExports.strncpy)(e,t,r),Module._towlower=e=>(Module._towlower=wasmExports.towlower)(e),Module._towupper=e=>(Module._towupper=wasmExports.towupper)(e);var _setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,s=stackAlloc(4*(r+1)),n=s;e.forEach((e=>{LE_HEAP_STORE_U32(4*(n>>2),stringToUTF8OnStack(e)),n+=4})),LE_HEAP_STORE_U32(4*(n>>2),0);try{var i=t(r,s);return exitJS(i,!0),i}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.dynCall_jiji=(e,t,r,s,n)=>(Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,s,n),Module._orig$ts_parser_timeout_micros=e=>(Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),Module._orig$ts_parser_set_timeout_micros=(e,t)=>(Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let s=0,n=0;if(r?.includedRanges){s=r.includedRanges.length,n=C._calloc(s,SIZE_OF_RANGE);let e=n;for(let t=0;t<s;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,s);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const a=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,a}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return r}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,s){assertInternal(e),this[0]=t,this.language=r,this.textCallback=s}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return s}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return r}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return s}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const s=[],n=this.tree.language.types;for(let t=0,r=n.length;t<r;t++)e.includes(n[t])&&s.push(t);const i=C._malloc(SIZE_OF_INT*s.length);for(let e=0,t=s.length;e<t;e++)setValue(i+e*SIZE_OF_INT,s[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,s.length,t.row,t.column,r.row,r.column);const a=getValue(TRANSFER_BUFFER,"i32"),o=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=new Array(a);if(a>0){let e=o;for(let t=0;t<a;t++)u[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(o),C._free(i),u}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),s=C._malloc(r+1);stringToUTF8(e,s,r+1);const n=C._ts_language_symbol_for_name(this[0],s,r,t);return C._free(s),n||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const s=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!s){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(r,s).length,i=e.substr(n,100).split("\n")[0];let a,o=i.match(QUERY_WORD_REGEX)[0];switch(t){case 2:a=new RangeError(`Bad node name '${o}'`);break;case 3:a=new RangeError(`Bad field name '${o}'`);break;case 4:a=new RangeError(`Bad capture name @${o}`);break;case 5:a=new TypeError(`Bad pattern structure at offset ${n}: '${i}'...`),o="";break;default:a=new SyntaxError(`Bad syntax at offset ${n}: '${i}'...`),o=""}throw a.index=n,a.length=o.length,C._free(r),a}const n=C._ts_query_string_count(s),i=C._ts_query_capture_count(s),a=C._ts_query_pattern_count(s),o=new Array(i),u=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");o[e]=UTF8ToString(t,r)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");u[e]=UTF8ToString(t,r)}const c=new Array(a),l=new Array(a),d=new Array(a),h=new Array(a),m=new Array(a);for(let e=0;e<a;e++){const t=C._ts_query_predicates_for_pattern(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");h[e]=[],m[e]=[];const n=[];let i=t;for(let t=0;t<r;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const r=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:o[r]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:u[r]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let r,s=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":s=!1;case"any-eq?":case"eq?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}"`);if(i=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,r=n[2].name;m[e].push((e=>{const n=[],a=[];for(const s of e)s.name===t&&n.push(s.node),s.name===r&&a.push(s.node);const o=(e,t,r)=>r?e.text===t.text:e.text!==t.text;return i?n.every((e=>a.some((t=>o(e,t,s))))):n.some((e=>a.some((t=>o(e,t,s)))))}))}else{r=n[1].name;const t=n[2].value,a=e=>e.text===t,o=e=>e.text!==t;m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node);const n=s?a:o;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":s=!1;case"any-match?":case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${n[2].value}.`);r=n[1].name;const a=new RegExp(n[2].value);i=!t.startsWith("any-"),m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node.text);const n=(e,t)=>t?a.test(e):!a.test(e);return 0===t.length?!s:i?t.every((e=>n(e,s))):t.some((e=>n(e,s)))}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');c[e]||(c[e]={}),c[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:d;o[e]||(o[e]={}),o[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":s=!1;case"any-of?":if(n.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);for(let e=2;e<n.length;e++)if("string"!==n[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);r=n[1].name;const u=n.slice(2).map((e=>e.value));m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node.text);return 0===t.length?!s:t.every((e=>u.includes(e)))===s}));break;default:h[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(c[e]),Object.freeze(l[e]),Object.freeze(d[e])}return C._free(r),new Query(INTERNAL,s,o,m,h,Object.freeze(c),Object.freeze(l),Object.freeze(d))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=require$$0;t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const s=e[r]();return new Language(INTERNAL,s)}))}}class LookaheadIterable{constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,r,s,n,i,a,o){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=s,this.predicates=n,this.setProperties=i,this.assertedProperties=a,this.refutedProperties=o,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:s=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:a=4294967295,timeoutMicros:o=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s,n,i,a,o);const u=getValue(TRANSFER_BUFFER,"i32"),c=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=new Array(u);this.exceededMatchLimit=Boolean(l);let h=0,m=c;for(let t=0;t<u;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const s=new Array(r);if(m=unmarshalCaptures(this,e.tree,m,s),this.textPredicates[t].every((e=>e(s)))){d[h]={pattern:t,captures:s};const e=this.setProperties[t];e&&(d[h].setProperties=e);const r=this.assertedProperties[t];r&&(d[h].assertedProperties=r);const n=this.refutedProperties[t];n&&(d[h].refutedProperties=n),h++}}return d.length=h,C._free(c),d}captures(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:s=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:a=4294967295,timeoutMicros:o=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s,n,i,a,o);const u=getValue(TRANSFER_BUFFER,"i32"),c=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=[];this.exceededMatchLimit=Boolean(l);const h=[];let m=c;for(let t=0;t<u;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const s=getValue(m,"i32");if(m+=SIZE_OF_INT,h.length=r,m=unmarshalCaptures(this,e.tree,m,h),this.textPredicates[t].every((e=>e(h)))){const e=h[s],r=this.setProperties[t];r&&(e.setProperties=r);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),d.push(e)}}return C._free(c),d}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const s=r-t;let n=e.textCallback(t,null,r);for(t+=n.length;t<r;){const s=e.textCallback(t,null,r);if(!(s&&s.length>0))break;t+=s.length,n+=s}return t>r&&(n=n.slice(0,s)),n}function unmarshalCaptures(e,t,r,s){for(let n=0,i=s.length;n<i;n++){const i=getValue(r,"i32"),a=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,s[n]={name:e.captureNames[i],node:a}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const s=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),a=getValue(t+=SIZE_OF_INT,"i32"),o=new Node(INTERNAL,e);return o.id=r,o.startIndex=s,o.startPosition={row:n,column:i},o[0]=a,o}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter}(treeSitter)),treeSitter.exports}var treeSitterExports=requireTreeSitter();const Parser=getDefaultExportFromCjs(treeSitterExports),treeSitterJson="undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/f951efd18f4932becb741545caa37c8d.wasm").href:new URL("f951efd18f4932becb741545caa37c8d.wasm","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href;let parser=null,parserInitLock=null,currentTree=null;const analyze$2=async e=>{if(null===parser&&null===parserInitLock)parserInitLock=Parser.init().then((()=>Parser.Language.load(treeSitterJson))).then((e=>{const t=new Parser;return t.setLanguage(e),t})).finally((()=>{parserInitLock=null})),parser=await parserInitLock;else if(null===parser&&null!==parserInitLock)parser=await parserInitLock;else if(null===parser)throw new ApiDOMError("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return currentTree=parser.parse(e),parser.reset(),currentTree};class TreeCursorSyntaxNode{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPositionRow=e.startPosition.row,this.startPositionColumn=e.startPosition.column,this.startIndex=e.startIndex,this.endPositionRow=e.endPosition.row,this.endPositionColumn=e.endPosition.column,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}pushChildren(...e){this.children.push(...e)}}let CstVisitor$1=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(isPrimitiveElement);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof TreeCursorSyntaxNode&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new Annotation(`(Missing ${t})`);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}document(e){const t=new ParseResult$1;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new minimExports.ObjectElement;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new minimExports.ArrayElement;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new minimExports.MemberElement;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new minimExports.StringElement(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new minimExports.NumberElement(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new minimExports.NullElement;return this.maybeAddSourceMap(e,t),t}true(e){const t=new minimExports.BooleanElement(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new minimExports.BooleanElement(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,s){const n=!e.hasError,i=e.text,a=new Annotation(n?`(Unexpected ${i})`:`(Error ${i})`);if(a.classes.push("error"),this.maybeAddSourceMap(e,a),0===s.length){const e=new ParseResult$1;return e.push(a),e}return this.annotations.push(a),null}maybeAddSourceMap(e,t){this.sourceMap&&assignSourceMap(t,e)}};class TreeCursorIterator{cursor;constructor(e){this.cursor=e}document(){return new TreeCursorSyntaxNode(this.cursor)}object(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}array(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}pair(){return new TreeCursorSyntaxNode(this.cursor)}string(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}number(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}null(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}true(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}false(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}ERROR(){return new TreeCursorSyntaxNode(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new TreeCursorSyntaxNode(this.cursor),this.cursor.gotoFirstChild()){const[t]=new TreeCursorIterator(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new TreeCursorIterator(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const keyMap$5={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...keyMapDefault$1},getNodeType$2=e=>isParseResultElement(e)?"ParseResultElement":isElement(e)?getNodeType$3(e):getNodeType$4(e),isNode$1=e=>isElement(e)||isNode$3(e),analyze$1=(e,{sourceMap:t=!1}={})=>{const r=new CstVisitor$1,s=e.walk(),n=new TreeCursorIterator(s),[i]=Array.from(n);return visit$2(i,r,{keyMap:keyMap$5,nodeTypeGetter:getNodeType$2,nodePredicate:isNode$1,state:{sourceMap:t}})},keyMap$4={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class CstVisitor{document={enter:e=>new JsonDocument(assignSourceMap({children:e.children,isMissing:e.isMissing},e)),leave:e=>new ParseResult({children:[e]})};enter(e){if(e instanceof TreeCursorSyntaxNode&&!e.isNamed){const t=e.type||e.text,{isMissing:r}=e;return new Literal(assignSourceMap({value:t,isMissing:r},e))}}object(e){return new JsonObject(assignSourceMap({children:e.children,isMissing:e.isMissing},e))}pair(e){const t=e.children.slice(1),{keyNode:r}=e,s=new JsonKey(assignSourceMap({children:(null==r?void 0:r.children)||[],isMissing:null!=r&&r.isMissing},r));return new JsonProperty(assignSourceMap({children:[s,...t],isMissing:e.isMissing},e))}array(e){return new JsonArray(assignSourceMap({children:e.children,isMissing:e.isMissing},e))}string(e){const t=new JsonStringContent({value:JSON.parse(e.text)});return new JsonString(assignSourceMap({children:[t],isMissing:e.isMissing},e))}number(e){const t=e.text;return new JsonNumber(assignSourceMap({value:t,isMissing:e.isMissing},e))}null(e){const t=e.text;return new JsonNull(assignSourceMap({value:t,isMissing:e.isMissing},e))}true(e){const t=e.text;return new JsonTrue(assignSourceMap({value:t,isMissing:e.isMissing},e))}false(e){const t=e.text;return new JsonFalse(assignSourceMap({value:t,isMissing:e.isMissing},e))}ERROR(e,t,r,s){const n=new Error$1(assignSourceMap({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===s.length?new ParseResult({children:[n]}):n}}const keyMap$3={[ParseResult.type]:["children"],[JsonDocument.type]:["children"],[JsonObject.type]:["children"],[JsonProperty.type]:["children"],[JsonArray.type]:["children"],[Error$1.type]:["children"],...keyMapDefault$1},getNodeType$1=e=>isParseResultElement(e)?"ParseResultElement":isElement(e)?getNodeType$3(e):getNodeType$4(e),isNode=e=>isElement(e)||isNode$3(e);class JsonAstVisitor{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(isPrimitiveElement);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new ParseResult$1;return t._content=e.children,t}object(e){const t=new minimExports.ObjectElement;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new minimExports.MemberElement;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new minimExports.StringElement(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new minimExports.ArrayElement;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new minimExports.StringElement(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new minimExports.NumberElement(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new minimExports.NullElement;return this.maybeAddSourceMap(e,t),t}true(e){const t=new minimExports.BooleanElement(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new minimExports.BooleanElement(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new Annotation(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,s){const n=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,i=new Annotation(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===s.length){const e=new ParseResult$1;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&assignSourceMap(t,e)}}const analyze=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=new TreeCursorIterator(r),[n]=Array.from(s),i=new CstVisitor,a=new JsonAstVisitor,o=visit$2(n,i,{keyMap:keyMap$4,state:{sourceMap:t}});return visit$2(o.rootNode,a,{keyMap:keyMap$3,nodeTypeGetter:getNodeType$1,nodePredicate:isNode,state:{sourceMap:t}})};createNamespace();const detectionRegExp$1=/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/,detect$1=async e=>{if(!detectionRegExp$1.test(e))return!1;try{const t=await analyze$2(e),r="ERROR"!==t.rootNode.type;return t.delete(),r}catch{return!1}},parse$1=async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const s=await analyze$2(e);let n;return n="indirect"===r?analyze(s,{sourceMap:t}):analyze$1(s,{sourceMap:t}),s.delete(),n};class AsyncAPIMediaTypes extends MediaTypes{filterByFormat(e="generic"){const t="generic"===e?"asyncapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.6.0",t="generic"){const r="generic"===t?`vnd.aai.asyncapi;version=${e}`:`vnd.aai.asyncapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return last(this.filterByFormat(e))}}const mediaTypes=new AsyncAPIMediaTypes("application/vnd.aai.asyncapi;version=2.0.0","application/vnd.aai.asyncapi+json;version=2.0.0","application/vnd.aai.asyncapi+yaml;version=2.0.0","application/vnd.aai.asyncapi;version=2.1.0","application/vnd.aai.asyncapi+json;version=2.1.0","application/vnd.aai.asyncapi+yaml;version=2.1.0","application/vnd.aai.asyncapi;version=2.2.0","application/vnd.aai.asyncapi+json;version=2.2.0","application/vnd.aai.asyncapi+yaml;version=2.2.0","application/vnd.aai.asyncapi;version=2.3.0","application/vnd.aai.asyncapi+json;version=2.3.0","application/vnd.aai.asyncapi+yaml;version=2.3.0","application/vnd.aai.asyncapi;version=2.4.0","application/vnd.aai.asyncapi+json;version=2.4.0","application/vnd.aai.asyncapi+yaml;version=2.4.0","application/vnd.aai.asyncapi;version=2.5.0","application/vnd.aai.asyncapi+json;version=2.5.0","application/vnd.aai.asyncapi+yaml;version=2.5.0","application/vnd.aai.asyncapi;version=2.6.0","application/vnd.aai.asyncapi+json;version=2.6.0","application/vnd.aai.asyncapi+yaml;version=2.6.0");class AsyncApi2 extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="asyncApi2",this.classes.push("api")}get asyncapi(){return this.get("asyncapi")}set asyncapi(e){this.set("asyncapi",e)}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get defaultContentType(){return this.get("defaultContentType")}set defaultContentType(e){this.set("defaultContentType",e)}get channels(){return this.get("channels")}set channels(e){this.set("channels",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}class AsyncApiVersion extends minimExports.StringElement{constructor(e,t,r){super(e,t,r),this.element="asyncApiVersion",this.classes.push("spec-version"),this.classes.push("version")}}class ChannelBindings extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="channelBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}}class ChannelItem extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="channelItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get subscribe(){return this.get("subscribe")}set subscribe(e){this.set("subscribe",e)}get publish(){return this.get("publish")}set publish(e){this.set("publish",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}}class Channels extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="channels"}}class Components extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get serverVariables(){return this.get("serverVariables")}set serverVariables(e){this.set("serverVariables",e)}get messages(){return this.get("messages")}set messages(e){this.set("messages",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get correlationIds(){return this.get("correlationIds")}set correlationIds(e){this.set("correlationIds",e)}get operationTraits(){return this.get("operationTraits")}set operationTraits(e){this.set("operationTraits",e)}get messageTraits(){return this.get("messageTraits")}set messageTraits(e){this.set("messageTraits",e)}get serverBindings(){return this.get("serverBindings")}set serverBindings(e){this.set("serverBindings",e)}get channelBindings(){return this.get("channelBindings")}set channelBindings(e){this.set("channelBindings",e)}get operationBindings(){return this.get("operationBindings")}set operationBindings(e){this.set("operationBindings",e)}get messageBindings(){return this.get("messageBindings")}set messageBindings(e){this.set("messageBindings",e)}}class Contact extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}class CorrelationID extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="correlationID"}get description(){return this.get("description")}set description(e){this.set("description",e)}get location(){return this.get("location")}set location(e){this.set("location",e)}}class DefaultContentType extends minimExports.StringElement{constructor(e,t,r){super(e,t,r),this.element="defaultContentType"}}class ExternalDocumentation extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}class Identifier extends minimExports.StringElement{constructor(e,t,r){super(e,t,r),this.element="identifier"}}class Info extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}}class License extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}class Message extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="message"}get messageId(){return this.get("messageId")}set messageId(e){this.set("messageId",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get payload(){return this.get("payload")}set payload(e){this.set("payload",e)}get correlationId(){return this.get("correlationId")}set correlationId(e){this.set("correlationId",e)}get schemaFormat(){return this.get("schemaFormat")}set schemaFormat(e){this.set("schemaFormat",e)}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get traits(){return this.get("traits")}set traits(e){this.set("traits",e)}}class MessageBindings extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="messageBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}}class MessageExample extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="messageExample"}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get payload(){return this.get("payload")}set payload(e){this.set("payload",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}}class MessageTrait extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="messageTrait"}get messageId(){return this.get("messageId")}set messageId(e){this.set("messageId",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get correlationId(){return this.get("correlationId")}set correlationId(e){this.set("correlationId",e)}get schemaFormat(){return this.get("schemaFormat")}set schemaFormat(e){this.set("schemaFormat",e)}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}class OAuthFlow extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}class OAuthFlows extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}class Operation extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="operation"}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}get traits(){return this.get("traits")}set traits(e){this.set("traits",e)}get message(){return this.get("message")}set message(e){this.set("message",e)}}class OperationBindings extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="operationBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}}class OperationTrait extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="operationTrait"}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}}class Parameter extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="parameter"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get location(){return this.get("location")}set location(e){this.set("location",e)}}class Parameters extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="parameters"}}class Reference extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("json-reference"),this.classes.push("asyncapi-reference")}set $ref(e){this.set("$ref",e)}get $ref(){return this.get("$ref")}}let JSONSchema$2=class extends minimExports.ObjectElement{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)}};class JSONReference extends minimExports.ObjectElement{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)}}class Media extends minimExports.ObjectElement{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)}}let LinkDescription$2=class extends minimExports.ObjectElement{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 jsonSchemaDraft4={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",JSONSchema$2),t.register("jSONReference",JSONReference),t.register("media",Media),t.register("linkDescription",LinkDescription$2),t}},getNodeType=e=>{if(isElement(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},keyMap$2={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...keyMapDefault$1};class Visitor{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=deepmerge(t.meta,e.meta)),hasElementSourceMap(e)&&assignSourceMap(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=deepmerge(t.attributes,e.attributes))}}class FallbackVisitor extends Visitor{enter(e){return this.element=cloneDeep(e),BREAK}}const copyProps=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},protoChain=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:protoChain(r,[...t,r])},nearestCommonProto=(...e)=>{if(0===e.length)return;let t;const r=e.map((e=>protoChain(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t},hardMixProtos=(e,t,r=[])=>{var s;const n=null!==(s=nearestCommonProto(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),a=protoChain(n);for(let t of e){let e=protoChain(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===a.indexOf(s)&&(copyProps(i,s,["constructor",...r]),a.push(s))}}return i.constructor=t,i},unique=e=>e.filter(((t,r)=>e.indexOf(t)==r)),mixins=new WeakMap,getMixinsForClass=e=>mixins.get(e),registerMixins=(e,t)=>mixins.set(e,t),mergeObjectsOfDecorators=(e,t)=>{var r,s;const n=unique([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let a of n)i[a]=unique([...null!==(r=null==e?void 0:e[a])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[a])&&void 0!==s?s:[]]);return i},mergePropertyAndMethodDecorators=(e,t)=>{var r,s,n,i;return{property:mergeObjectsOfDecorators(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:mergeObjectsOfDecorators(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},mergeDecorators=(e,t)=>{var r,s,n,i,a,o;return{class:unique([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:mergePropertyAndMethodDecorators(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:mergePropertyAndMethodDecorators(null!==(a=null==e?void 0:e.instance)&&void 0!==a?a:{},null!==(o=null==t?void 0:t.instance)&&void 0!==o?o:{})}},decorators=new Map,findAllConstituentClasses=(...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...protoChain(e.prototype).map((e=>e.constructor)),...null!==(t=getMixinsForClass(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]},deepDecoratorSearch=(...e)=>{const t=findAllConstituentClasses(...e).map((e=>decorators.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>mergeDecorators(e,t)))};function Mixin(...e){var t,r,s;const n=e.map((e=>e.prototype));function i(...t){for(const r of e)copyProps(this,new r(...t))}i.prototype=hardMixProtos(n,i),Object.setPrototypeOf(i,hardMixProtos(e,null,["prototype"]));let a=i;{const n=deepDecoratorSearch(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(a);t&&(a=t)}applyPropAndMethodDecorators(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},a),applyPropAndMethodDecorators(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},a.prototype)}return registerMixins(a,e),a}const applyPropAndMethodDecorators=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};class SpecificationVisitor extends Visitor{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return pick(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=path$1(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return pathSatisfies(isFunction,["visitors",...e],this.specObj)?path$1(["visitors",...e],this.specObj):path$1(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof FallbackVisitor&&(null==s?void 0:s.constructor)===FallbackVisitor?cloneDeep(t):(visit$1(t,s,r),s.element)}}class FixedFieldsVisitor extends SpecificationVisitor{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,s,n)=>{if(isStringElement(s)&&r.includes(serializer(s))&&!this.ignoredFields.includes(serializer(s))){const r=this.toRefractedElement([...t,"fixedFields",serializer(s)],e),i=new minimExports.MemberElement(cloneDeep(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(serializer(s))||this.element.content.push(cloneDeep(n))})),this.copyMetaAndAttributes(e,this.element),BREAK}}class ParentSchemaAwareVisitor{parent;constructor({parent:e}){this.parent=e}}const isJSONSchemaElement$2=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof JSONSchema$2||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),isJSONReferenceElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof JSONReference||e(s)&&t("JSONReference",s)&&r("object",s))),isMediaElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Media||e(s)&&t("media",s)&&r("object",s))),isLinkDescriptionElement$2=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof LinkDescription$2||e(s)&&t("linkDescription",s)&&r("object",s))),jsonSchemaDraft4Predicates=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:isJSONReferenceElement,isJSONSchemaElement:isJSONSchemaElement$2,isLinkDescriptionElement:isLinkDescriptionElement$2,isMediaElement:isMediaElement},Symbol.toStringTag,{value:"Module"}));let JSONSchemaVisitor$2=class extends(Mixin(FixedFieldsVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new JSONSchema$2,this.specPath=always(["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,FixedFieldsVisitor.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(isUndefined(this.parent)&&!isStringElement(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(isJSONSchemaElement$2(this.parent)&&!isStringElement(e.get("$schema"))){const e=defaultTo(serializer(this.parent.meta.get("inheritedDialectIdentifier")),serializer(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?cloneDeep(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new minimExports.ArrayElement,s=serializer(e.get(t));isNonEmptyString(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}};const isJSONReferenceLikeElement=e=>isObjectElement(e)&&e.hasKey("$ref");let ItemsVisitor$1=class extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){ObjectElement(e){const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),BREAK}ArrayElement(e){return this.element=new minimExports.ArrayElement,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),BREAK}};class RequiredVisitor extends FallbackVisitor{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}}class PatternedFieldsVisitor extends SpecificationVisitor{specPath;ignoredFields;fieldPatternPredicate=F;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(serializer(t))&&this.fieldPatternPredicate(serializer(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new minimExports.MemberElement(cloneDeep(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(serializer(t))||this.element.content.push(cloneDeep(r))})),this.copyMetaAndAttributes(e,this.element),BREAK}}class MapVisitor extends PatternedFieldsVisitor{constructor(e){super(e),this.fieldPatternPredicate=isNonEmptyString}}class PropertiesVisitor extends(Mixin(MapVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=e=>isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class PatternPropertiesVisitor extends(Mixin(MapVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class DependenciesVisitor extends(Mixin(MapVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class EnumVisitor extends FallbackVisitor{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}}class TypeVisitor extends FallbackVisitor{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 AllOfVisitor extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),BREAK}}class AnyOfVisitor extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),BREAK}}class OneOfVisitor extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),BREAK}}class DefinitionsVisitor extends(Mixin(MapVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=e=>isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class LinksVisitor extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ArrayElement,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),BREAK}}class JSONReferenceVisitor extends(Mixin(FixedFieldsVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new JSONReference,this.specPath=always(["document","objects","JSONReference"])}ObjectElement(e){const t=FixedFieldsVisitor.prototype.ObjectElement.call(this,e);return isStringElement(this.element.$ref)&&this.element.classes.push("reference-element"),t}}class $RefVisitor extends FallbackVisitor{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}}class AlternatingVisitor extends SpecificationVisitor{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ifElse(e,always(t),stubUndefined))),r=dispatch(t)(e);return this.element=this.toRefractedElement(r,e),BREAK}}class SchemaOrReferenceVisitor extends AlternatingVisitor{constructor(e){super(e),this.alternator=[{predicate:isJSONReferenceLikeElement,specPath:["document","objects","JSONReference"]},{predicate:T,specPath:["document","objects","JSONSchema"]}]}}class MediaVisitor extends(Mixin(FixedFieldsVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new Media,this.specPath=always(["document","objects","Media"])}}let LinkDescriptionVisitor$2=class extends(Mixin(FixedFieldsVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new LinkDescription$2,this.specPath=always(["document","objects","LinkDescription"])}};const specification$2={visitors:{value:FallbackVisitor,JSONSchemaOrJSONReferenceVisitor:SchemaOrReferenceVisitor,document:{objects:{JSONSchema:{$visitor:JSONSchemaVisitor$2,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:SchemaOrReferenceVisitor,items:ItemsVisitor$1,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:RequiredVisitor,properties:PropertiesVisitor,additionalProperties:SchemaOrReferenceVisitor,patternProperties:PatternPropertiesVisitor,dependencies:DependenciesVisitor,enum:EnumVisitor,type:TypeVisitor,allOf:AllOfVisitor,anyOf:AnyOfVisitor,oneOf:OneOfVisitor,not:SchemaOrReferenceVisitor,definitions:DefinitionsVisitor,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:LinksVisitor,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:JSONReferenceVisitor,fixedFields:{$ref:$RefVisitor}},Media:{$visitor:MediaVisitor,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:LinkDescriptionVisitor$2,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:SchemaOrReferenceVisitor,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:SchemaOrReferenceVisitor}}}}}},createToolbox$2=()=>{const e=createNamespace(jsonSchemaDraft4);return{predicates:{...jsonSchemaDraft4Predicates,isStringElement:isStringElement},namespace:e}},refract$2=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=specification$2}={})=>{const n=minimExports.refract(e),i=dereference(s),a=new(path$1(t,i))({specObj:i});return visit$1(n,a),dispatchPluginsSync(a.element,r,{toolboxCreator:createToolbox$2,visitorOptions:{keyMap:keyMap$2,nodeTypeGetter:getNodeType}})},createRefractor$2=e=>(t,r={})=>refract$2(t,{specPath:e,...r});JSONSchema$2.refract=createRefractor$2(["visitors","document","objects","JSONSchema","$visitor"]),JSONReference.refract=createRefractor$2(["visitors","document","objects","JSONReference","$visitor"]),Media.refract=createRefractor$2(["visitors","document","objects","Media","$visitor"]),LinkDescription$2.refract=createRefractor$2(["visitors","document","objects","LinkDescription","$visitor"]);let JSONSchema$1=class extends JSONSchema$2{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new UnsupportedOperationError("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new UnsupportedOperationError("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)}},LinkDescription$1=class extends LinkDescription$2{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 UnsupportedOperationError("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new UnsupportedOperationError("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 UnsupportedOperationError("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new UnsupportedOperationError("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new UnsupportedOperationError("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new UnsupportedOperationError("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};const jsonSchemaDraft6={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",JSONSchema$1),t.register("jSONReference",JSONReference),t.register("media",Media),t.register("linkDescription",LinkDescription$1),t}},keyMap$1={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...keyMapDefault$1};let JSONSchemaVisitor$1=class extends JSONSchemaVisitor$2{constructor(e){super(e),this.element=new JSONSchema$1}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)}};class ItemsVisitor extends ItemsVisitor$1{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),BREAK}}class ExamplesVisitor extends FallbackVisitor{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}}let LinkDescriptionVisitor$1=class extends LinkDescriptionVisitor$2{constructor(e){super(e),this.element=new LinkDescription$1}};const specification$1=pipe(assocPath(["visitors","document","objects","JSONSchema","$visitor"],JSONSchemaVisitor$1),dissocPath(["visitors","document","objects","JSONSchema","fixedFields","id"]),assocPath(["visitors","document","objects","JSONSchema","fixedFields","$id"],specification$2.visitors.value),assocPath(["visitors","document","objects","JSONSchema","fixedFields","contains"],specification$2.visitors.JSONSchemaOrJSONReferenceVisitor),assocPath(["visitors","document","objects","JSONSchema","fixedFields","items"],ItemsVisitor),assocPath(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],specification$2.visitors.JSONSchemaOrJSONReferenceVisitor),assocPath(["visitors","document","objects","JSONSchema","fixedFields","const"],specification$2.visitors.value),assocPath(["visitors","document","objects","JSONSchema","fixedFields","examples"],ExamplesVisitor),assocPath(["visitors","document","objects","LinkDescription","$visitor"],LinkDescriptionVisitor$1),assocPath(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],specification$2.visitors.JSONSchemaOrJSONReferenceVisitor),dissocPath(["visitors","document","objects","LinkDescription","fixedFields","schema"]),assocPath(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],specification$2.visitors.JSONSchemaOrJSONReferenceVisitor),dissocPath(["visitors","document","objects","LinkDescription","fixedFields","method"]),dissocPath(["visitors","document","objects","LinkDescription","fixedFields","encType"]),assocPath(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],specification$2.visitors.value))(specification$2),isJSONSchemaElement$1=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof JSONSchema$1||e(s)&&t("JSONSchemaDraft6",s)&&r("object",s))),isLinkDescriptionElement$1=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof LinkDescription$1||e(s)&&t("linkDescription",s)&&r("object",s))),jsonSchemaDraft6Predicates=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:isJSONReferenceElement,isJSONSchemaElement:isJSONSchemaElement$1,isLinkDescriptionElement:isLinkDescriptionElement$1,isMediaElement:isMediaElement},Symbol.toStringTag,{value:"Module"})),createToolbox$1=()=>{const e=createNamespace(jsonSchemaDraft6);return{predicates:{...jsonSchemaDraft6Predicates,isStringElement:isStringElement},namespace:e}},refract$1=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=specification$1}={})=>{const n=minimExports.refract(e),i=dereference(s),a=new(path$1(t,i))({specObj:i});return visit$1(n,a),dispatchPluginsSync(a.element,r,{toolboxCreator:createToolbox$1,visitorOptions:{keyMap:keyMap$1,nodeTypeGetter:getNodeType}})},createRefractor$1=e=>(t,r={})=>refract$1(t,{specPath:e,...r});JSONSchema$1.refract=createRefractor$1(["visitors","document","objects","JSONSchema","$visitor"]),LinkDescription$1.refract=createRefractor$1(["visitors","document","objects","LinkDescription","$visitor"]);class JSONSchema extends JSONSchema$1{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 items(){return this.get("items")}set items(e){this.set("items",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 UnsupportedOperationError('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new UnsupportedOperationError('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)}}class LinkDescription extends LinkDescription$1{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 UnsupportedOperationError("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new UnsupportedOperationError("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 UnsupportedOperationError("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new UnsupportedOperationError("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 jsonSchemaDraft7={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",JSONSchema),t.register("jSONReference",JSONReference),t.register("linkDescription",LinkDescription),t}},keyMap={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...keyMapDefault$1};class JSONSchemaVisitor extends JSONSchemaVisitor$1{constructor(e){super(e),this.element=new JSONSchema}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}}class LinkDescriptionVisitor extends LinkDescriptionVisitor$1{constructor(e){super(e),this.element=new LinkDescription}}const specification=pipe(assocPath(["visitors","document","objects","JSONSchema","$visitor"],JSONSchemaVisitor),assocPath(["visitors","document","objects","JSONSchema","fixedFields","$comment"],specification$1.visitors.value),assocPath(["visitors","document","objects","JSONSchema","fixedFields","if"],specification$1.visitors.JSONSchemaOrJSONReferenceVisitor),assocPath(["visitors","document","objects","JSONSchema","fixedFields","then"],specification$1.visitors.JSONSchemaOrJSONReferenceVisitor),assocPath(["visitors","document","objects","JSONSchema","fixedFields","else"],specification$1.visitors.JSONSchemaOrJSONReferenceVisitor),dissocPath(["visitors","document","objects","JSONSchema","fixedFields","media"]),assocPath(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],specification$1.visitors.value),assocPath(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],specification$1.visitors.value),assocPath(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],specification$1.visitors.value),assocPath(["visitors","document","objects","LinkDescription","$visitor"],LinkDescriptionVisitor),assocPath(["visitors","document","objects","LinkDescription","fixedFields","anchor"],specification$1.visitors.value),assocPath(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],specification$1.visitors.value),dissocPath(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),assocPath(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],specification$1.visitors.value),assocPath(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],specification$1.visitors.value),assocPath(["visitors","document","objects","LinkDescription","fixedFields","description"],specification$1.visitors.value),assocPath(["visitors","document","objects","LinkDescription","fixedFields","$comment"],specification$1.visitors.value),assocPath(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],specification$1.visitors.JSONSchemaOrJSONReferenceVisitor),dissocPath(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),assocPath(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],specification$1.visitors.value))(specification$1),isJSONSchemaElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof JSONSchema||e(s)&&t("JSONSchemaDraft7",s)&&r("object",s))),isLinkDescriptionElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof LinkDescription||e(s)&&t("linkDescription",s)&&r("object",s))),jsonSchemaDraft7Predicates=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:isJSONReferenceElement,isJSONSchemaElement:isJSONSchemaElement,isLinkDescriptionElement:isLinkDescriptionElement},Symbol.toStringTag,{value:"Module"})),createToolbox=()=>{const e=createNamespace(jsonSchemaDraft7);return{predicates:{...jsonSchemaDraft7Predicates,isStringElement:isStringElement},namespace:e}},refract=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=specification}={})=>{const n=minimExports.refract(e),i=dereference(s),a=new(path$1(t,i))({specObj:i});return visit$1(n,a),dispatchPluginsSync(a.element,r,{toolboxCreator:createToolbox,visitorOptions:{keyMap:keyMap,nodeTypeGetter:getNodeType}})},createRefractor=e=>(t,r={})=>refract(t,{specPath:e,...r});JSONSchema.refract=createRefractor(["visitors","document","objects","JSONSchema","$visitor"]),LinkDescription.refract=createRefractor(["visitors","document","objects","LinkDescription","$visitor"]);class Schema extends JSONSchema{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-7")}get not(){return this.get("not")}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 items(){return this.get("items")}set items(e){this.set("items",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get discriminator(){return this.get("discriminator")}get externalDocs(){return this.get("externalDocs")}get deprecated(){return this.get("deprecated")}}class SecurityRequirement extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}class SecurityScheme extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}class Server extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get protocol(){return this.get("protocol")}set protocol(e){this.set("protocol",e)}get protocolVersion(){return this.get("protocolVersion")}set protocolVersion(e){this.set("protocolVersion",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get bindings(){return this.get("bindings")}set bindings(e){this.set("bindings",e)}}class ServerBindings extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="serverBindings"}get http(){return this.get("http")}set http(e){this.set("http",e)}get ws(){return this.get("ws")}set ws(e){this.set("ws",e)}get kafka(){return this.get("kafka")}set kafka(e){this.set("kafka",e)}get anypointmq(){return this.get("anypointmq")}set anypointmq(e){this.set("anypointmq",e)}get amqp(){return this.get("amqp")}set amqp(e){this.set("amqp",e)}get amqp1(){return this.get("amqp1")}set amqp1(e){this.set("amqp1",e)}get mqtt(){return this.get("mqtt")}set mqtt(e){this.set("mqtt",e)}get mqtt5(){return this.get("mqtt5")}set mqtt5(e){this.set("mqtt5",e)}get nats(){return this.get("nats")}set nats(e){this.set("nats",e)}get jms(){return this.get("jms")}set jms(e){this.set("jms",e)}get sns(){return this.get("sns")}set sns(e){this.set("sns",e)}get solace(){return this.get("solace")}set solace(e){this.set("solace",e)}get sqs(){return this.get("sqs")}set sqs(e){this.set("sqs",e)}get stomp(){return this.get("stomp")}set stomp(e){this.set("stomp",e)}get redis(){return this.get("redis")}set redis(e){this.set("redis",e)}get mercure(){return this.get("mercure")}set mercure(e){this.set("mercure",e)}get googlepubsub(){return this.get("googlepubsub")}set googlepubsub(e){this.set("googlepubsub",e)}get ibmmq(){return this.get("ibmmq")}set ibmmq(e){this.set("ibmmq",e)}}class Servers extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="servers"}}class ServerVariable extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}class Tag extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}class Tags extends minimExports.ArrayElement{constructor(e,t,r){super(e,t,r),this.element="tags"}}class AmqpChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="amqpChannelBinding",this.classes.push("channel-binding")}get is(){return this.get("is")}set is(e){this.set("is",e)}get exchange(){return this.get("exchange")}set exchange(e){this.set("exchange",e)}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class AmqpMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="amqpMessageBinding",this.classes.push("message-binding")}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get messageType(){return this.get("messageType")}set messageType(e){this.set("messageType",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class AmqpOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="amqpOperationBinding",this.classes.push("operation-binding")}get expiration(){return this.get("expiration")}set expiration(e){this.set("expiration",e)}get userId(){return this.get("userId")}set userId(e){this.set("userId",e)}get cc(){return this.get("cc")}set cc(e){this.set("cc",e)}get priority(){return this.get("priority")}set priority(e){this.set("priority",e)}get deliveryMode(){return this.get("deliveryMode")}set deliveryMode(e){this.set("deliveryMode",e)}get mandatory(){return this.get("mandatory")}set mandatory(e){this.set("mandatory",e)}get bcc(){return this.get("bcc")}set bcc(e){this.set("bcc",e)}get replyTo(){return this.get("replyTo")}set replyTo(e){this.set("replyTo",e)}get timestamp(){return this.get("timestamp")}set timestamp(e){this.set("timestamp",e)}get ack(){return this.get("ack")}set ack(e){this.set("ack",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class AmqpServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="amqpServerBinding",this.classes.push("server-binding")}}class Amqp1ChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="amqp1ChannelBinding",this.classes.push("channel-binding")}}class Amqp1MessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="amqp1MessageBinding",this.classes.push("message-binding")}}class Amqp1OperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="amqp1OperationBinding",this.classes.push("operation-binding")}}class Amqp1ServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="amqp1ServerBinding",this.classes.push("server-binding")}}class AnypointmqChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="anypointmqChannelBinding",this.classes.push("channel-binding")}get destination(){return this.get("destination")}set destination(e){this.set("destination",e)}get destinationType(){return this.get("destinationType")}set destinationType(e){this.set("destinationType",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class AnypointmqMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="anypointmqMessageBinding",this.classes.push("message-binding")}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class AnypointmqOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="anypointmqOperationBinding",this.classes.push("operation-binding")}}class AnypointmqServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="anypointmqServerBinding",this.classes.push("server-binding")}}class GooglepubsubChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="googlepubsubChannelBinding",this.classes.push("channel-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get labels(){return this.get("labels")}set labels(e){this.set("labels",e)}get messageRetentionDuration(){return this.get("messageRetentionDuration")}set messageRetentionDuration(e){this.set("messageRetentionDuration",e)}get messageStoragePolicy(){return this.get("messageStoragePolicy")}set messageStoragePolicy(e){this.set("messageStoragePolicy",e)}get schemaSettings(){return this.get("schemaSettings")}set schemaSettings(e){this.set("schemaSettings",e)}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}}class GooglepubsubMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="googlepubsubMessageBinding",this.classes.push("message-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get attributesProp(){return this.get("attributes")}set attributesProp(e){this.set("attributes",e)}get orderingKey(){return this.get("orderingKey")}set orderingKey(e){this.set("orderingKey",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class GooglepubsubOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="googlepubsubOperationBinding",this.classes.push("operation-binding")}}class GooglepubsubServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="googlepubsubServerBinding",this.classes.push("server-binding")}}class HttpChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="httpChannelBinding",this.classes.push("channel-binding")}}class HttpMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="httpMessageBinding",this.classes.push("message-binding")}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class HttpOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="httpOperationBinding",this.classes.push("operation-binding")}get type(){return this.get("type")}set type(e){this.set("type",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get query(){return this.get("query")}set query(e){this.set("query",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class HttpServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="httpServerBinding",this.classes.push("server-binding")}}class IbmmqChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="ibmmqChannelBinding",this.classes.push("channel-binding")}get destinationType(){return this.get("destinationType")}set destinationType(e){this.set("destinationType",e)}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}get maxMsgLength(){return this.get("maxMsgLength")}set maxMsgLength(e){this.set("maxMsgLength",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class IbmmqMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="ibmmqMessageBinding",this.classes.push("message-binding")}get type(){return this.get("type")}set type(e){this.set("type",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get expiry(){return this.get("expiry")}set expiry(e){this.set("expiry",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class IbmmqOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="ibmmqOperationBinding",this.classes.push("operation-binding")}}class IbmmqServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="ibmmqServerBinding",this.classes.push("server-binding")}get groupId(){return this.get("groupId")}set groupId(e){this.set("groupId",e)}get ccdtQueueManagerName(){return this.get("ccdtQueueManagerName")}set ccdtQueueManagerName(e){this.set("ccdtQueueManagerName",e)}get cipherSpec(){return this.get("cipherSpec")}set cipherSpec(e){this.set("cipherSpec",e)}get multiEndpointServer(){return this.get("multiEndpointServer")}set multiEndpointServer(e){this.set("multiEndpointServer",e)}get heartBeatInterval(){return this.get("heartBeatInterval")}set heartBeatInterval(e){this.set("heartBeatInterval",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class JmsChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="jmsChannelBinding",this.classes.push("channel-binding")}}class JmsMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="jmsMessageBinding",this.classes.push("message-binding")}}class JmsOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="jmsOperationBinding",this.classes.push("operation-binding")}}class JmsServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="jmsServerBinding",this.classes.push("server-binding")}}class KafkaChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="kafkaChannelBinding",this.classes.push("channel-binding")}get topic(){return this.get("topic")}set topic(e){this.set("topic",e)}get partitions(){return this.get("partitions")}set partitions(e){this.set("partitions",e)}get replicas(){return this.get("replicas")}set replicas(e){this.set("replicas",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class KafkaMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="kafkaMessageBinding",this.classes.push("message-binding")}get key(){return this.get("key")}set key(e){this.set("key",e)}get schemaIdLocation(){return this.get("schemaIdLocation")}set schemaIdLocation(e){this.set("schemaIdLocation",e)}get schemaIdPayloadEncoding(){return this.get("schemaIdPayloadEncoding")}set schemaIdPayloadEncoding(e){this.set("schemaIdPayloadEncoding",e)}get schemaLookupStrategy(){return this.get("schemaLookupStrategy")}set schemaLookupStrategy(e){this.set("schemaLookupStrategy",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class KafkaOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="kafkaOperationBinding",this.classes.push("operation-binding")}get groupId(){return this.get("groupId")}set groupId(e){this.set("groupId",e)}get clientId(){return this.get("clientId")}set clientId(e){this.set("clientId",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class KafkaServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="kafkaServerBinding",this.classes.push("server-binding")}get schemaRegistryUrl(){return this.get("schemaRegistryUrl")}set schemaRegistryUrl(e){this.set("schemaRegistryUrl",e)}get schemaRegistryVendor(){return this.get("schemaRegistryVendor")}set schemaRegistryVendor(e){this.set("schemaRegistryVendor",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class MercureChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mercureChannelBinding",this.classes.push("channel-binding")}}class MercureMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mercureMessageBinding",this.classes.push("message-binding")}}class MercureOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mercureOperationBinding",this.classes.push("operation-binding")}}class MercureServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mercureServerBinding",this.classes.push("server-binding")}}class MqttChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mqttChannelBinding",this.classes.push("channel-binding")}}class MqttMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mqttMessageBinding",this.classes.push("message-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class MqttOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mqttOperationBinding",this.classes.push("operation-binding")}get qos(){return this.get("qos")}set qos(e){this.set("qos",e)}get retain(){return this.get("retain")}set retain(e){this.set("retain",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class MqttServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mqttServerBinding",this.classes.push("server-binding")}get clientId(){return this.get("clientId")}set clientId(e){this.set("clientId",e)}get cleanSession(){return this.get("cleanSession")}set cleanSession(e){this.set("cleanSession",e)}get lastWill(){return this.get("lastWill")}set lastWill(e){this.set("lastWill",e)}get keepAlive(){return this.get("keepAlive")}set keepAlive(e){this.set("keepAlive",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class Mqtt5ChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mqtt5ChannelBinding",this.classes.push("channel-binding")}}class Mqtt5MessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mqtt5MessageBinding",this.classes.push("message-binding")}}class Mqtt5OperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mqtt5OperationBinding",this.classes.push("operation-binding")}}class Mqtt5ServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mqtt5ServerBinding",this.classes.push("server-binding")}}class NatsChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="natsChannelBinding",this.classes.push("channel-binding")}}class NatsMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="natsMessageBinding",this.classes.push("message-binding")}}class NatsOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="natsOperationBinding",this.classes.push("operation-binding")}get queue(){return this.get("queue")}set queue(e){this.set("queue",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class NatsServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="natsServerBinding",this.classes.push("server-binding")}}class PulsarChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="pulsarChannelBinding",this.classes.push("channel-binding")}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get persistence(){return this.get("persistence")}set persistence(e){this.set("persistence",e)}get compaction(){return this.get("compaction")}set compaction(e){this.set("compaction",e)}get"geo-replication"(){return this.get("compaction")}set"geo-replication"(e){this.set("geo-replication",e)}get retention(){return this.get("retention")}set retention(e){this.set("retention",e)}get ttl(){return this.get("ttl")}set ttl(e){this.set("ttl",e)}get deduplication(){return this.get("deduplication")}set deduplication(e){this.set("deduplication",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class PulsarMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="pulsarMessageBinding",this.classes.push("message-binding")}}class PulsarOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="pulsarOperationBinding",this.classes.push("operation-binding")}}class PulsarServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="pulsarServerBinding",this.classes.push("server-binding")}get tenant(){return this.get("tenant")}set tenant(e){this.set("tenant",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class RedisChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="redisChannelBinding",this.classes.push("channel-binding")}}class RedisMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="redisMessageBinding",this.classes.push("message-binding")}}class RedisOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="redisOperationBinding",this.classes.push("operation-binding")}}class RedisServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="redisServerBinding",this.classes.push("server-binding")}}class SnsChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="snsChannelBinding",this.classes.push("channel-binding")}}class SnsMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="snsMessageBinding",this.classes.push("message-binding")}}class SnsOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="snsOperationBinding",this.classes.push("operation-binding")}}class SnsServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="snsServerBinding",this.classes.push("server-binding")}}class SolaceChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="solaceChannelBinding",this.classes.push("channel-binding")}}class SolaceMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="solaceMessageBinding",this.classes.push("message-binding")}}class SolaceOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="solaceOperationBinding",this.classes.push("operation-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get destinations(){return this.get("destinations")}set destinations(e){this.set("destinations",e)}}class SolaceServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="solaceServerBinding",this.classes.push("server-binding")}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}get msgVpn(){return this.get("msgVpn")}set msgVpn(e){this.set("msgVpn",e)}}class SqsChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="sqsChannelBinding",this.classes.push("channel-binding")}}class SqsMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="sqsMessageBinding",this.classes.push("message-binding")}}class SqsOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="sqsOperationBinding",this.classes.push("operation-binding")}}class SqsServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="sqsServerBinding",this.classes.push("server-binding")}}class StompChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="stompChannelBinding",this.classes.push("channel-binding")}}class StompMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="stompMessageBinding",this.classes.push("message-binding")}}class StompOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="stompOperationBinding",this.classes.push("operation-binding")}}class StompServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="stompServerBinding",this.classes.push("server-binding")}}class WebSocketChannelBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="webSocketChannelBinding",this.classes.push("channel-binding")}get method(){return this.get("method")}set method(e){this.set("method",e)}get query(){return this.get("query")}set query(e){this.set("query",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get bindingVersion(){return this.get("bindingVersion")}set bindingVersion(e){this.set("bindingVersion",e)}}class WebSocketMessageBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="webSocketMessageBinding",this.classes.push("message-binding")}}class WebSocketOperationBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="webSocketOperationBinding",this.classes.push("operation-binding")}}class WebSocketServerBinding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="webSocketServerBinding",this.classes.push("server-binding")}}const asyncApi2={namespace:e=>{const{base:t}=e;return t.register("asyncApi2",AsyncApi2),t.register("asyncApiVersion",AsyncApiVersion),t.register("channelBindings",ChannelBindings),t.register("channelItem",ChannelItem),t.register("channels",Channels),t.register("components",Components),t.register("contact",Contact),t.register("correlationID",CorrelationID),t.register("defaultContentType",DefaultContentType),t.register("externalDocumentation",ExternalDocumentation),t.register("identifier",Identifier),t.register("info",Info),t.register("license",License),t.register("message",Message),t.register("messageBindings",MessageBindings),t.register("messageExample",MessageExample),t.register("messageTrait",MessageTrait),t.register("oAuthFlow",OAuthFlow),t.register("oAuthFlows",OAuthFlows),t.register("operation",Operation),t.register("operationBindings",OperationBindings),t.register("operationTrait",OperationTrait),t.register("parameter",Parameter),t.register("parameters",Parameters),t.register("reference",Reference),t.register("schema",Schema),t.register("securityRequirement",SecurityRequirement),t.register("securityScheme",SecurityScheme),t.register("server",Server),t.register("serverBindings",ServerBindings),t.register("servers",Servers),t.register("serverVariable",ServerVariable),t.register("tag",Tag),t.register("tags",Tags),t.register("amqpChannelBinding",AmqpChannelBinding),t.register("amqpMessageBinding",AmqpMessageBinding),t.register("amqpOperationBinding",AmqpOperationBinding),t.register("amqpServerBinding",AmqpServerBinding),t.register("amqp1ChannelBinding",Amqp1ChannelBinding),t.register("amqp1MessageBinding",Amqp1MessageBinding),t.register("amqp1OperationBinding",Amqp1OperationBinding),t.register("amqp1ServerBinding",Amqp1ServerBinding),t.register("anypointmqChannelBinding",AnypointmqChannelBinding),t.register("anypointmqMessageBinding",AnypointmqMessageBinding),t.register("anypointmqOperationBinding",AnypointmqOperationBinding),t.register("anypointmqServerBinding",AnypointmqServerBinding),t.register("googlepubsubChannelBinding",GooglepubsubChannelBinding),t.register("googlepubsubMessageBinding",GooglepubsubMessageBinding),t.register("googlepubsubOperationBinding",GooglepubsubOperationBinding),t.register("googlepubsubServerBinding",GooglepubsubServerBinding),t.register("httpChannelBinding",HttpChannelBinding),t.register("httpMessageBinding",HttpMessageBinding),t.register("httpOperationBinding",HttpOperationBinding),t.register("httpServerBinding",HttpServerBinding),t.register("ibmmqChannelBinding",IbmmqChannelBinding),t.register("ibmmqMessageBinding",IbmmqMessageBinding),t.register("ibmmqOperationBinding",IbmmqOperationBinding),t.register("ibmmqServerBinding",IbmmqServerBinding),t.register("jmsChannelBinding",JmsChannelBinding),t.register("jmsMessageBinding",JmsMessageBinding),t.register("jmsOperationBinding",JmsOperationBinding),t.register("jmsServerBinding",JmsServerBinding),t.register("kafkaChannelBinding",KafkaChannelBinding),t.register("kafkaMessageBinding",KafkaMessageBinding),t.register("kafkaOperationBinding",KafkaOperationBinding),t.register("kafkaServerBinding",KafkaServerBinding),t.register("mercureChannelBinding",MercureChannelBinding),t.register("mercureMessageBinding",MercureMessageBinding),t.register("mercureOperationBinding",MercureOperationBinding),t.register("mercureServerBinding",MercureServerBinding),t.register("mqttChannelBinding",MqttChannelBinding),t.register("mqttMessageBinding",MqttMessageBinding),t.register("mqttOperationBinding",MqttOperationBinding),t.register("mqttServerBinding",MqttServerBinding),t.register("mqtt5ChannelBinding",Mqtt5ChannelBinding),t.register("mqtt5MessageBinding",Mqtt5MessageBinding),t.register("mqtt5OperationBinding",Mqtt5OperationBinding),t.register("mqtt5ServerBinding",Mqtt5ServerBinding),t.register("natsChannelBinding",NatsChannelBinding),t.register("natsMessageBinding",NatsMessageBinding),t.register("natsOperationBinding",NatsOperationBinding),t.register("natsServerBinding",NatsServerBinding),t.register("pulsarChannelBinding",PulsarChannelBinding),t.register("pulsarMessageBinding",PulsarMessageBinding),t.register("pulsarOperationBinding",PulsarOperationBinding),t.register("pulsarServerBinding",PulsarServerBinding),t.register("redisChannelBinding",RedisChannelBinding),t.register("redisMessageBinding",RedisMessageBinding),t.register("redisOperationBinding",RedisOperationBinding),t.register("redisServerBinding",RedisServerBinding),t.register("snsChannelBinding",SnsChannelBinding),t.register("snsMessageBinding",SnsMessageBinding),t.register("snsOperationBinding",SnsOperationBinding),t.register("snsServerBinding",SnsServerBinding),t.register("solaceChannelBinding",SolaceChannelBinding),t.register("solaceMessageBinding",SolaceMessageBinding),t.register("solaceOperationBinding",SolaceOperationBinding),t.register("solaceServerBinding",SolaceServerBinding),t.register("sqsChannelBinding",SqsChannelBinding),t.register("sqsMessageBinding",SqsMessageBinding),t.register("sqsOperationBinding",SqsOperationBinding),t.register("sqsServerBinding",SqsServerBinding),t.register("stompChannelBinding",StompChannelBinding),t.register("stompMessageBinding",StompMessageBinding),t.register("stompOperationBinding",StompOperationBinding),t.register("stompServerBinding",StompServerBinding),t.register("webSocketChannelBinding",WebSocketChannelBinding),t.register("webSocketMessageBinding",WebSocketMessageBinding),t.register("webSocketOperationBinding",WebSocketOperationBinding),t.register("webSocketServerBinding",WebSocketServerBinding),t}},jsonMediaTypes=new AsyncAPIMediaTypes(...mediaTypes.filterByFormat("generic"),...mediaTypes.filterByFormat("json"));var __async=(e,t,r)=>new Promise(((s,n)=>{var i=e=>{try{o(r.next(e))}catch(e){n(e)}},a=e=>{try{o(r.throw(e))}catch(e){n(e)}},o=e=>e.done?s(e.value):Promise.resolve(e.value).then(i,a);o((r=r.apply(e,t)).next())}));const detectionRegExp=new RegExp('"asyncapi"\\s*:\\s*"(?<version_json>2\\.(?:[1-9]\\d*|0)\\.(?:[1-9]\\d*|0))"'),detect=e=>__async(null,null,(function*(){return detectionRegExp.test(e)&&(yield detect$1(e))})),parse=(e,...t)=>__async(null,[e,...t],(function*(e,t={}){const r=propOr({},"refractorOpts",t),s=omit(["refractorOpts"],t),n=yield parse$1(e,s),{result:i}=n;if(isNotUndefined(i)){const e=AsyncApi2.refract(i,r);e.classes.push("result"),n.replaceResult(e)}return n})),namespace=createNamespace(asyncApi2);exports.detect=detect,exports.detectionRegExp=detectionRegExp,exports.mediaTypes=jsonMediaTypes,exports.namespace=namespace,exports.parse=parse,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));